2014-07-18 18:45:16 +03:00
|
|
|
{**
|
2014-12-05 13:49:29 +02: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}
|
2014-10-18 09:07:45 +03:00
|
|
|
<div class="activity-settings js-activity-settings">
|
2014-12-30 15:52:27 +02:00
|
|
|
<p class="text-help">
|
2014-10-18 09:07:45 +03:00
|
|
|
{$aLang.activity.settings.note}
|
2014-12-30 15:52:27 +02:00
|
|
|
</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}
|
2014-11-23 17:16:08 +02:00
|
|
|
{if ! (Config::Get('module.stream.disable_vote_events') && substr($type, 0, 4) == 'vote')}
|
2015-01-03 10:19:49 +02:00
|
|
|
{component 'field' template='checkbox'
|
2014-11-23 17:16:08 +02:00
|
|
|
inputClasses = 'js-activity-settings-type-checkbox'
|
2014-11-25 10:12:44 +02:00
|
|
|
inputAttributes = [ 'data-type' => $type ]
|
2016-01-19 04:34:44 +02:00
|
|
|
checked = in_array( $type, $typesActive )
|
2014-11-23 17:16:08 +02:00
|
|
|
label = $aLang.activity.settings.options[ $type ]}
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
2014-10-18 09:07:45 +03:00
|
|
|
</div>
|
2014-07-18 18:45:16 +03:00
|
|
|
{/if}
|