More generically, and if you are using k2 this should work

<li <?php if($request->display_home) { ?>
        class="current_page_item"<?php } ?>><a href="<?php
Site::out_url( 'habari' ); ?>" title="<?php Options::out( 'title' ); ?
>"><?php echo $home_tab; ?></a></li>
<?php
// Menu tabs
foreach ( $pages as $tab ) {
?>
    <li<?php if(isset($post) && $post->slug == $tab->slug) { ?>
        class="current_page_item"<?php } ?>><a href="<?php echo $tab-
>permalink; ?>" title="<?php echo $tab->title; ?>"><?php echo $tab-
>title; ?></a></li>

Only tested briefly mind you, but seems to work.

~miklb


On Sep 1, 12:20 pm, Arthus Erea <[EMAIL PROTECTED]> wrote:
> This is what I am using:
>
> <li<?php if(isset($post) && $post->slug == 'thispage') { ?>
> class="current"<?php } ?>>...</li>
>
> On Sep 1, 4:25 am, Chris Starjive <[EMAIL PROTECTED]> wrote:
>
> > I just wonder if there is a easy way to be able to style the <li>
> > with  "current" or something similar as in the orginal K2 theme, i
> > have tryied all kinds of things with no luck :/ so reaching out for
> > help. Maybe have it in theme.php or should be nice if every theme
> > could make use of such thing.
>
> > Here is my 
> > sources:http://www.alistapart.com/articles/keepingcurrenthttp://bonrouge.com/...
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to