1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/application/frontend/skin/developer/navs/nav.topics.sub.tpl

21 lines
1.2 KiB
Smarty
Raw Normal View History

{**
* Саб-навигация по топикам (Интересные, новые и т.д.)
*}
{if $sNavTopicsSubUrl}
2014-04-28 13:31:49 +03:00
{include 'components/nav/nav.tpl'
sName = 'topics_sub'
2014-04-28 13:31:49 +03:00
sActiveItem = $sMenuSubItemSelect
sMods = 'pills'
aItems = [
[ 'name' => 'good', 'url' => $sNavTopicsSubUrl, 'text' => {lang name='blog.menu.all_good'} ],
[ 'name' => 'new', 'url' => "{$sNavTopicsSubUrl}newall/", 'text' => {lang name='blog.menu.all_new'}, 'title' => {lang name='blog.menu.top_period_all'}, 'count' => $iCountTopicsNew ],
[ 'name' => 'new', 'url' => "{$sNavTopicsSubUrl}new/", 'text' => "+$iCountTopicsSubNew", 'title' => {lang name='blog.menu.top_period_1'}, 'is_enabled' => $iCountTopicsSubNew ],
[ 'name' => 'discussed', 'url' => "{$sNavTopicsSubUrl}discussed/", 'text' => {lang name='blog.menu.all_discussed'} ],
[ 'name' => 'top', 'url' => "{$sNavTopicsSubUrl}top/", 'text' => {lang name='blog.menu.all_top'} ]
2014-04-28 13:31:49 +03:00
]}
{include file='components/sort/sort.timespan.tpl'}
{/if}
{hook run='nav_topics_sub_after' sMenuSubItemSelect=$sMenuSubItemSelect sNavTopicsSubUrl=$sNavTopicsSubUrl}