Browse Source

Add section data

pull/22/head
sim2github 11 years ago
parent
commit
4b44320d0d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cms/templates/default.tpl

+ 2
- 1
cms/templates/default.tpl View File

@ -29,7 +29,8 @@
<?php if ($menu_1 && isset($menus[$menu_1])): ?> <?php if ($menu_1 && isset($menus[$menu_1])): ?>
<ul class="nav nav-pills"> <ul class="nav nav-pills">
<?php foreach ($menus[$menu_1] as $item): ?> <?php foreach ($menus[$menu_1] as $item): ?>
<li<?php if (!empty($item['section']) && $item['section'] == $section[0]): ?> class="active"<?php endif; ?>>
<li data-section="<?php echo $item['section']?>"
<?php if (!empty($item['section']) && $item['section'] == $section[0]): ?> class="active"<?php endif; ?>>
<a href="<?php echo $item['link']; ?>" <a href="<?php echo $item['link']; ?>"
title="<?php echo $item['title']; ?>"<?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?>><?php echo $item['name']; ?></a> title="<?php echo $item['title']; ?>"<?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?>><?php echo $item['name']; ?></a>
</li><?php endforeach; ?> </li><?php endforeach; ?>


Loading…
Cancel
Save