2011-07-31 19:52:50 +03:00
|
|
|
{if $oUserCurrent}
|
2011-06-25 11:04:19 +03:00
|
|
|
{literal}
|
|
|
|
<script language="JavaScript" type="text/javascript">
|
|
|
|
jQuery(document).ready( function() {
|
|
|
|
ls.autocomplete.add(jQuery('#stream_users_complete'), aRouter['ajax']+'autocompleter/user/?security_ls_key='+LIVESTREET_SECURITY_KEY);
|
|
|
|
jQuery('#stream_users_complete').keydown(function (event) {
|
|
|
|
if (event.which == 13) {
|
|
|
|
ls.stream.appendUser()
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{/literal}
|
|
|
|
|
2011-07-02 00:05:29 +03:00
|
|
|
<div class="block stream-settings">
|
|
|
|
<h2>{$aLang.stream_block_config_title}</h2>
|
|
|
|
|
|
|
|
<p class="note">{$aLang.stream_settings_note_filter}</p>
|
|
|
|
|
2011-07-22 18:07:41 +03:00
|
|
|
<ul class="stream-settings-filter">
|
|
|
|
{foreach from=$aStreamEventTypes key=sType item=aEventType}
|
|
|
|
<li>
|
|
|
|
<label>
|
|
|
|
<input class="streamEventTypeCheckbox input-checkbox"
|
|
|
|
type="checkbox"
|
|
|
|
id="strn_et_{$sType}"
|
|
|
|
{if in_array($sType, $aStreamTypesList)}checked="checked"{/if}
|
2011-07-31 19:52:50 +03:00
|
|
|
onClick="ls.stream.switchEventType('{$sType}')" />
|
2011-07-22 18:07:41 +03:00
|
|
|
{assign var=langKey value="stream_event_type_`$sType`"}
|
|
|
|
{$aLang.$langKey}
|
|
|
|
</label>
|
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
2011-07-02 00:05:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
<h3>{$aLang.stream_block_users_title}</h3>
|
|
|
|
|
|
|
|
<p class="note">{$aLang.stream_settings_note_follow_user}</p>
|
|
|
|
|
|
|
|
<div class="stream-settings-userlist">
|
|
|
|
<p><input type="text" id="stream_users_complete" autocomplete="off" />
|
|
|
|
<a href="javascript:ls.stream.appendUser()">{$aLang.stream_block_config_append}</a></p>
|
2011-08-15 19:20:42 +03:00
|
|
|
{if count($aStreamSubscribedUsers)}
|
|
|
|
<ul id="stream_block_users_list">
|
|
|
|
{foreach from=$aStreamSubscribedUsers item=oUser}
|
|
|
|
{assign var=iUserId value=$oUser->getId()}
|
|
|
|
{if !isset($aStreamFriends.$iUserId)}
|
|
|
|
<li><input class="streamUserCheckbox input-checkbox"
|
|
|
|
type="checkbox"
|
|
|
|
id="strm_u_{$iUserId}"
|
|
|
|
checked="checked"
|
|
|
|
onClick="if ($(this).attr('checked')) { ls.stream.subscribe({$iUserId}) } else { ls.stream.unsubscribe({$iUserId}) } " />
|
|
|
|
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
|
|
|
|
</li>
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
2011-07-04 13:01:14 +03:00
|
|
|
</ul>
|
|
|
|
{else}
|
|
|
|
<ul id="stream_block_users_list"></ul>
|
|
|
|
<p id="stream_no_subscribed_users">{$aLang.stream_no_subscribed_users}</p>
|
|
|
|
{/if}
|
2011-07-02 00:05:29 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{if count($aStreamFriends)}
|
|
|
|
<h3>{$aLang.stream_block_users_friends}</h3>
|
|
|
|
|
|
|
|
<p class="note">{$aLang.stream_settings_note_follow_friend}</p>
|
|
|
|
|
|
|
|
<ul class="stream-settings-friends">
|
|
|
|
{foreach from=$aStreamFriends item=oUser}
|
|
|
|
{assign var=iUserId value=$oUser->getId()}
|
|
|
|
<li><input class="streamUserCheckbox input-checkbox"
|
|
|
|
type="checkbox"
|
|
|
|
id="strm_u_{$iUserId}"
|
|
|
|
{if isset($aStreamSubscribedUsers.$iUserId)} checked="checked"{/if}
|
2011-07-04 13:01:14 +03:00
|
|
|
onClick="if ($(this).attr('checked')) { ls.stream.subscribe({$iUserId}) } else { ls.stream.unsubscribe({$iUserId}) } " />
|
2011-07-02 00:05:29 +03:00
|
|
|
<a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a>
|
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
{/if}
|
2011-07-31 19:52:50 +03:00
|
|
|
</div>
|
|
|
|
{/if}
|