1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/frontend/components/feed/blogs.tpl
Denis Shakhov 19239e8b79 Добавление префикса ls компонентам
+ Обновление фреймворка
2015-05-20 23:27:10 +07:00

30 lines
1 KiB
Smarty

{**
* Выбор блогов для чтения в ленте
*
* @param array $types
* @param array $typesActive
*}
{if $oUserCurrent}
<div class="ls-feed-blogs js-feed-blogs">
{$blogsSubscribed = $smarty.local.blogsSubscribed}
<p class="text-help">
{$aLang.feed.blogs.note}
</p>
{if $smarty.local.blogsJoined}
<div class="ls-field-checkbox-group">
{foreach $smarty.local.blogsJoined as $blog}
{component 'field' template='checkbox'
inputClasses = 'js-feed-blogs-subscribe'
inputAttributes = [ 'data-id' => $blog->getId() ]
checked = isset($blogsSubscribed[ $blog->getId() ])
label = "<a href=\"{$blog->getUrlFull()}\">{$blog->getTitle()|escape}</a>"}
{/foreach}
</div>
{else}
{component 'alert' text=$aLang.feed.blogs.empty mods='info'}
{/if}
</div>
{/if}