Description
Включает отображение кол-ва тем для Категорий.
В шаблоне найдите файл forumRow
В самом файле найдите:
<dl> {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}} <dt class="ipsDataItem_stats_number">{number="$count"}</dt> <dd class="ipsDataItem_stats_type ipsType_light">{lang="posts_no_number" pluralize="$count"}</dd> </dl>
Замените на:
<dl> {{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}} <dt class="ipsDataItem_stats_number">{number="$count"}</dt> <dd class="ipsDataItem_stats_type ipsType_light">{lang="posts_no_number" pluralize="$count"}</dd> <dt class="ipsDataItem_stats_number">{number="$forum->topics"}</dt> <dd class="ipsDataItem_stats_type ipsType_light">{lang="{!# [1:тема][2:темы][3:темы][4:темы][?:тем]}" pluralize="$forum->topics"}</dd> </dl>
// Тут есть небольшой минус. Будет только один перевод (который вы укажете... в данном случае "ru"; Подскажите кто, как правильно сделать разбивку на языки (к примеру: ru, en)
До:
Скрытый текст
После:
Скрытый текст
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now