diff options
Diffstat (limited to 'templates/region.tpl.php')
-rw-r--r-- | templates/region.tpl.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/region.tpl.php b/templates/region.tpl.php new file mode 100644 index 0000000..08cd625 --- /dev/null +++ b/templates/region.tpl.php @@ -0,0 +1,25 @@ +<?php if ($content): ?> + <div class="<?php print $classes; ?>"> + <?php switch ($region) { + case "navigation": + print art_menu_worker($content, true, 'b2-hmenu'); + break; + case "vnavigation_left": + case "vnavigation_right": +foreach (array_keys($variables['elements']) as $name) { + $element = &$variables['elements'][$name]; + if (is_array($element) + && isset($element['#block']) && isset($element['#block']->subject) + && isset($element['#children']) && is_string($element['#children']) && !empty($element['#children'])) { + $block_subject = $element['#block']->subject; + $block_content = $element['#children']; + art_vmenu_output($block_subject, $block_content); } + } + + break; + default: + print $content; + break; + }?> + </div> +<?php endif; ?>
\ No newline at end of file |