summaryrefslogtreecommitdiff
path: root/templates/region.tpl.php
diff options
context:
space:
mode:
authorbboldi <bboldi@gmail.com>2011-09-13 12:08:50 +0200
committerbboldi <bboldi@gmail.com>2011-09-13 12:08:50 +0200
commit9438279fd24e0309abd1f78a9442b149f7bd6bef (patch)
tree77d5495a6e2d94f625f9d23c5e2dcd26af2d1819 /templates/region.tpl.php
downloadnuvemdario-9438279fd24e0309abd1f78a9442b149f7bd6bef.tar.gz
nuvemdario-9438279fd24e0309abd1f78a9442b149f7bd6bef.tar.bz2
Initial commit.
Diffstat (limited to 'templates/region.tpl.php')
-rw-r--r--templates/region.tpl.php25
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