1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-17 05:44:26 +03:00
ifhub.club/application/frontend/skin/developer/components/blog/blog-list.tpl
2014-10-28 19:08:03 +07:00

35 lines
1.1 KiB
Smarty

{**
* Список блогов
*
* @styles css/blog.css
* @scripts <frontend>/common/js/blog.js
*}
{* Список блогов *}
{if $aBlogs}
{if $iSearchCount}
<h3 class="h3">{lang name='blog.search.result_title' count=$iSearchCount plural=true}</h3>
{/if}
{* Список блогов *}
<ul class="object-list object-list-actions blog-list js-more-blogs-container">
{foreach $aBlogs as $blog}
{include './blog-list-item.tpl' blog=$blog}
{/foreach}
</ul>
{* Кнопка подгрузки *}
{if $bUseMore}
{if ! $bHideMore}
{include 'components/more/more.tpl'
classes = 'js-more-search'
target = '.js-more-blogs-container'
attributes = 'data-search-type="blogs" data-proxy-page-next="2"'}
{/if}
{else}
{include 'components/pagination/pagination.tpl' aPaging=$aPaging}
{/if}
{else}
{include 'components/alert/alert.tpl' text=(($sBlogsEmptyList) ? $sBlogsEmptyList : $aLang.blog.alerts.empty) mods='empty'}
{/if}