1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00
ifhub.club/application/frontend/components/activity/settings.tpl
2016-01-19 09:34:44 +07:00

28 lines
972 B
Smarty

{**
* Настройки активности
*
* @param array $types
* @param array $typesActive
*}
{component_define_params params=[ 'types', 'typesActive' ]}
{if $oUserCurrent}
<div class="activity-settings js-activity-settings">
<p class="text-help">
{$aLang.activity.settings.note}
</p>
<div class="ls-field-checkbox-group">
{foreach $types as $type => $data}
{if ! (Config::Get('module.stream.disable_vote_events') && substr($type, 0, 4) == 'vote')}
{component 'field' template='checkbox'
inputClasses = 'js-activity-settings-type-checkbox'
inputAttributes = [ 'data-type' => $type ]
checked = in_array( $type, $typesActive )
label = $aLang.activity.settings.options[ $type ]}
{/if}
{/foreach}
</div>
</div>
{/if}