1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/application/frontend/skin/developer/blocks/block.activitySettings.tpl

28 lines
862 B
Smarty

{**
* Блок настройки ленты активности
*
* @styles css/blocks.css
*}
{extends 'blocks/block.aside.base.tpl'}
{block 'block_title'}{$aLang.stream_block_config_title}{/block}
{block 'block_type'}activity{/block}
{block 'block_content'}
{if $oUserCurrent}
<small class="note mb-15">{$aLang.stream_settings_note_filter}</small>
{foreach $aStreamEventTypes as $sType => $aEventType}
{if ! (Config::Get('module.stream.disable_vote_events') && substr($sType, 0, 4) == 'vote')}
{$sLangKey = "stream_event_type_`$sType`"}
{include 'components/field/field.checkbox.tpl'
sInputClasses = 'js-activity-settings-toggle'
sInputAttributes = "data-type=\"{$sType}\""
bChecked = in_array($sType, $aStreamTypesList)
sLabel = $aLang.$sLangKey}
{/if}
{/foreach}
{/if}
{/block}