Lim10Ata adlı üyeden alıntı: mesajı görüntüle
Anladığım kadarıyla atıyorum yeni mesajlar butonuna basınca o sayfadaysan o butonun aktif olmasını istiyosun şuan mobilim pc geçince bakayım dostum.
@Lim10Ata; evet hocam aynen öyle xengen'de de tartıştık onca şey yaptık yok olmadı hatta şöyle bir kod verdiler {{ $pageSection == 'whatsNewPosts' ? 'selected' : ' ' }} mantığımca birşeyler yaptım olmadı.
dedikleri ile yaptığım kodlama şu şekilde
<div id="navbar">
        <a href="{$xf.homePageUrl}" rel="nofollow" class="active {{ $pageSection == 'home' ? 'selected' : ' ' }}">{{ phrase('home') }}</a>
            <xf:if is="$xf.visitor.user_id">
                <a href="{{ link('whats-new/posts') }}" rel="nofollow" class="{{ $pageSection == 'whatsNewPosts' ? 'selected' : ' ' }}">{{ phrase('new_posts') }}</a>
                <a href="{{ link('whats-new/latest-activity') }}" rel="nofollow" class="{{ $pageSection == 'latestActivity' ? 'selected' : ' ' }}">{{ phrase('latest_activity') }}</a>
            </xf:if>
            <xf:if is="!$xf.visitor.user_id">
                <a href="{{ link('login') }}"data-xf-click="overlay" data-follow-redirects="on">{{ phrase('log_in') }}</a>
                <a href="{{ link('register') }}"data-xf-click="overlay" data-follow-redirects="on">{{ phrase('register') }}</a>
        </xf:if>
    </div>