Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $x=1;
- foreach($aMenu as $aNav)
- {
- count($aMenu) == $x ? $nclass = ' class="last"' : $nclass = '';
- $postid == $aNav[id] ? $aclass = ' class="active"' : $aclass = '';
- isset($aNav[target]) ? $target = ' target="'.$aNav[target].'"' : $target = '';
- echo '<li'.$aclass.'><a href="'.$aNav[link].'"'.$nclass.$target.'>'.$aNav[desc].'</a></li>';
- $x++;
- }
- ?>
Add Comment
Please, Sign In to add comment