Documentation

Light-weight, fast, simple and powerful!
 

Differences

This shows you the differences between two versions of the page.

navbook:styledlist [2012-11-20 10:23]
Fortron
navbook:styledlist [2015-04-03 22:37] (current)
David updated for > 0.7.7
Line 10: Line 10:
   <li<?php echo url_match('/') ? ' class="current"': ''; ?>><a href="<?php echo URL_PUBLIC; ?>">Home</a></li>    <li<?php echo url_match('/') ? ' class="current"': ''; ?>><a href="<?php echo URL_PUBLIC; ?>">Home</a></li>
     <?php foreach($this->find('/')->children() as $menu): ?>      <?php foreach($this->find('/')->children() as $menu): ?>
-       <li <?php echo in_array($menu->slug, explode('/', $this->url)) ? ' class="current"': null; ?>> +       <li <?php echo in_array($menu->slug(), explode('/', $this->url(false))) ? ' class="current"': null; ?>> 
-      <?php echo $menu->link($menu->title); ?></li>+      <?php echo $menu->link($menu->title()); ?></li>
      <?php endforeach; ?>       <?php endforeach; ?>
    </ul>     </ul>
  </div> <!-- end #navigation -->   </div> <!-- end #navigation -->
</code> </code>
 
navbook/styledlist.txt · Last modified: 2015-04-03 22:37 by David
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside