From 26106a315f04ca082152b474e6604cded843d08b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Sun, 20 Mar 2016 19:50:03 +0100 Subject: =?UTF-8?q?Added=20theme=20for=20M=C3=A1me=20r=C3=A1di=20p=C5=99?= =?UTF-8?q?=C3=ADrodu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/mrp/template.php | 132 +++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 sites/brdo.brontosaurus.cz.mrp/themes/mrp/template.php (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/template.php') diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/template.php b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/template.php new file mode 100644 index 000000000..99a9cc86d --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/template.php @@ -0,0 +1,132 @@ +type; + if (function_exists($function)) { + $function($variables, $hook); + } +} +// */ + +/** + * Override or insert variables into the comment templates. + * + * @param $variables + * An array of variables to pass to the theme template. + * @param $hook + * The name of the template being rendered ("comment" in this case.) + */ +/* -- Delete this line if you want to use this function +function STARTERKIT_preprocess_comment(&$variables, $hook) { + $variables['sample_variable'] = t('Lorem ipsum.'); +} +// */ + +/** + * Override or insert variables into the region templates. + * + * @param $variables + * An array of variables to pass to the theme template. + * @param $hook + * The name of the template being rendered ("region" in this case.) + */ +/* -- Delete this line if you want to use this function +function STARTERKIT_preprocess_region(&$variables, $hook) { + // Don't use Zen's region--sidebar.tpl.php template for sidebars. + //if (strpos($variables['region'], 'sidebar_') === 0) { + // $variables['theme_hook_suggestions'] = array_diff($variables['theme_hook_suggestions'], array('region__sidebar')); + //} +} +// */ + +/** + * Override or insert variables into the block templates. + * + * @param $variables + * An array of variables to pass to the theme template. + * @param $hook + * The name of the template being rendered ("block" in this case.) + */ +/* -- Delete this line if you want to use this function +function STARTERKIT_preprocess_block(&$variables, $hook) { + // Add a count to all the blocks in the region. + // $variables['classes_array'][] = 'count-' . $variables['block_id']; + + // By default, Zen will use the block--no-wrapper.tpl.php for the main + // content. This optional bit of code undoes that: + //if ($variables['block_html_id'] == 'block-system-main') { + // $variables['theme_hook_suggestions'] = array_diff($variables['theme_hook_suggestions'], array('block__no_wrapper')); + //} +} +// */ -- cgit v1.2.3