mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
405a1c858e
* Добавлено наследование виджета ls-component многим виджетам * Документация для компонента alert * Доработана шапка в компоненте user * В ls.ajax добавлен дефолтный вывод всплывающих сообщений * Другие мелкие изменения
38 lines
1.2 KiB
Smarty
38 lines
1.2 KiB
Smarty
{**
|
|
* Список блогов
|
|
*
|
|
* @param array $blogs
|
|
* @param array $pagination
|
|
* @param boolean $useMore
|
|
* @param boolean $hideMore
|
|
* @param integer $searchCount
|
|
* @param string $textEmpty
|
|
*}
|
|
|
|
{if $smarty.local.blogs}
|
|
{* Заголовок *}
|
|
{if $smarty.local.searchCount}
|
|
<h3 class="h3">{lang name='blog.search.result_title' count=$smarty.local.searchCount plural=true}</h3>
|
|
{/if}
|
|
|
|
{* Список блогов *}
|
|
<ul class="object-list object-list-actions blog-list js-more-blogs-container">
|
|
{foreach $smarty.local.blogs as $blog}
|
|
{include './blog-list-item.tpl' blog=$blog}
|
|
{/foreach}
|
|
</ul>
|
|
|
|
{* Кнопка подгрузки *}
|
|
{if $smarty.local.useMore}
|
|
{if ! $smarty.local.hideMore}
|
|
{component 'more'
|
|
classes = 'js-more-search'
|
|
target = '.js-more-blogs-container'
|
|
ajaxParams = [ 'next_page' => 2 ]}
|
|
{/if}
|
|
{else}
|
|
{component 'pagination' paging=$smarty.local.pagination}
|
|
{/if}
|
|
{else}
|
|
{component 'alert' text=(($smarty.local.textEmpty) ? $smarty.local.textEmpty : $aLang.blog.alerts.empty) mods='empty'}
|
|
{/if} |