mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
34 lines
1,008 B
Smarty
34 lines
1,008 B
Smarty
{**
|
|
* Блок настройки ленты активности
|
|
*
|
|
* @styles css/blocks.css
|
|
*}
|
|
|
|
{extends file='blocks/block.aside.base.tpl'}
|
|
|
|
{block name='block_title'}{$aLang.stream_block_config_title}{/block}
|
|
{block name='block_type'}activity{/block}
|
|
|
|
{block name='block_content'}
|
|
{if $oUserCurrent}
|
|
<small class="note">{$aLang.stream_settings_note_filter}</small>
|
|
|
|
<ul class="activity-settings-filter">
|
|
{foreach from=$aStreamEventTypes key=sType item=aEventType}
|
|
{if !($oConfig->get('module.stream.disable_vote_events') && substr($sType, 0, 4) == 'vote')}
|
|
<li>
|
|
<label>
|
|
<input class="streamEventTypeCheckbox input-checkbox"
|
|
type="checkbox"
|
|
id="strn_et_{$sType}"
|
|
{if in_array($sType, $aStreamTypesList)}checked="checked"{/if}
|
|
onClick="ls.stream.switchEventType('{$sType}')" />
|
|
{assign var=langKey value="stream_event_type_`$sType`"}
|
|
{$aLang.$langKey}
|
|
</label>
|
|
</li>
|
|
{/if}
|
|
{/foreach}
|
|
</ul>
|
|
{/if}
|
|
{/block} |