1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/activity/settings.tpl

28 lines
972 B
Smarty
Raw Normal View History

2014-07-18 18:45:16 +03:00
{**
* Настройки активности
2014-07-18 18:45:16 +03:00
*
* @param array $types
* @param array $typesActive
*}
2016-01-19 04:34:44 +02:00
{component_define_params params=[ 'types', 'typesActive' ]}
2014-07-18 18:45:16 +03:00
{if $oUserCurrent}
<div class="activity-settings js-activity-settings">
<p class="text-help">
{$aLang.activity.settings.note}
</p>
2014-07-18 18:45:16 +03:00
2015-05-13 15:00:36 +03:00
<div class="ls-field-checkbox-group">
2016-01-19 04:34:44 +02:00
{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 ]
2016-01-19 04:34:44 +02:00
checked = in_array( $type, $typesActive )
label = $aLang.activity.settings.options[ $type ]}
{/if}
{/foreach}
</div>
</div>
2014-07-18 18:45:16 +03:00
{/if}