2014-07-19 19:50:52 +03:00
|
|
|
{**
|
|
|
|
* Выбор блогов для чтения в ленте
|
|
|
|
*
|
|
|
|
* @param array $types
|
|
|
|
* @param array $typesActive
|
|
|
|
*}
|
|
|
|
|
|
|
|
{if $oUserCurrent}
|
2014-10-18 09:07:45 +03:00
|
|
|
<div class="feed-blogs js-feed-blogs">
|
|
|
|
{$blogsSubscribed = $smarty.local.blogsSubscribed}
|
2014-07-19 19:50:52 +03:00
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
<small class="note mb-15">
|
|
|
|
{$aLang.feed.blogs.note}
|
|
|
|
</small>
|
2014-07-19 19:50:52 +03:00
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
{if $smarty.local.blogsJoined}
|
|
|
|
{foreach $smarty.local.blogsJoined as $blog}
|
|
|
|
{include 'components/field/field.checkbox.tpl'
|
|
|
|
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}
|
|
|
|
{else}
|
|
|
|
{include 'components/alert/alert.tpl' text=$aLang.feed.blogs.empty mods='info'}
|
|
|
|
{/if}
|
|
|
|
</div>
|
2014-07-19 19:50:52 +03:00
|
|
|
{/if}
|