aslında basit mantığı var
her butona ayrı class vereceksin
<a href="/" class="anasayfa">anasayfa</a>
<a href="/whats-new" class="yenimesajlar">yeni mesajlar</a>
sonrasında ise aşağıdaki gibi extra.less'e if li değerlerle css ekleyeceksin ;
<xf:if is="$template == 'forum_list'">
.anasayfa {
border: 1px solid red;
}
</xf:if>
<xf:if is="$template == 'whats_new'">
.yenimesajlar {
border: 1px solid red;
}
</xf:if>
easy gg.
hocam sorunu bu kod ile çözdüm sonunda kodu bıraktım belki işine yarayan olur {{ $xf.reply.template == 'forum_list' ? 'selected' : '' }}
<div id="navbar">
<a href="{$xf.homePageUrl}" rel="nofollow" class="{{ $xf.reply.template == 'forum_list' ? 'selected' : '' }}">{{ phrase('home') }}</a>
<xf:if is="$xf.visitor.user_id">
<a href="{{ link('whats-new/posts') }}" rel="nofollow" class="{{ $xf.reply.template == 'whats_new_posts' ? 'selected' : '' }}">{{ phrase('new_posts') }}</a>
<a href="{{ link('whats-new/latest-activity') }}" rel="nofollow" class="{{ $xf.reply.template == 'latest_activity' ? 'selected' : '' }}">{{ phrase('latest_activity') }}</a>
</xf:if>
<xf:if is="!$xf.visitor.user_id">
<a href="{{ link('login') }}"data-follow-redirects="on" class="{{ $xf.reply.template == 'login' ? 'selected' : '' }}">{{ phrase('log_in') }}</a>
<a href="{{ link('register') }}"data-follow-redirects="on" class="{{ $xf.reply.template == 'register_form' ? 'selected' : '' }}">{{ phrase('register') }}</a>
</xf:if>
</div>