XF 2.1 New Posts and New Posts ALL

ibaker

Well-known member
I have a need to give my users a quick and very simple option of being able to select What's New Posts (unread) and What's New Posts (all).

I have added in the whats_new_wrapper template:
Code:
    <a class="{$baseClass} {{ $pageSelected == 'new_thread' ? {$selectedClass} : '' }}" href="{{ link('whats-new/posts/?skip=1') }}" rel="nofollow">{{ phrase('new_posts_all') }}</a>

and I get:
1.webp

As you can see though both the New posts and the New posts (all) are both selected no matter which one you click so what I need to find out is if there is any way to make only the right one that the user has selected as highlighted and not both...thanks for your help
 
Top Bottom