summaryrefslogtreecommitdiff
path: root/templates/region.tpl.php
blob: c7b21498e912e2bf42607e535b47cd139f39ccc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php if ($content): ?>
  <div class="<?php print $classes; ?>">
    <?php switch ($region) {
			case "navigation":
				print nuvemdario_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'];
						nuvemdario_vmenu_output($block_subject, $block_content);	}
					}
				
				break;
			default:
				print $content;
				break;
		}?>
  </div>
<?php endif; ?>