mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
28 lines
972 B
Smarty
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} |