mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-14 23:08:18 +03:00
Фикс мелких багов, доработка девелопера
This commit is contained in:
parent
a845b5c9ec
commit
9c49045301
|
@ -45,7 +45,7 @@
|
|||
</td>
|
||||
<td>
|
||||
{strip}
|
||||
<a href="{router page='talk'}read/{$oTalk->getId()}/" class="js-title-comment" title="{$oTalk->getTextLast()|strip_tags|truncate:100:'...'}">
|
||||
<a href="{router page='talk'}read/{$oTalk->getId()}/" class="js-title-talk" title="{$oTalk->getTextLast()|strip_tags|truncate:100:'...'}">
|
||||
{if $oTalkUserAuthor->getCommentCountNew() or !$oTalkUserAuthor->getDateLast()}
|
||||
<strong>{$oTalk->getTitle()|escape:'html'}</strong>
|
||||
{else}
|
||||
|
|
|
@ -60,7 +60,8 @@
|
|||
<script type="text/javascript">
|
||||
var tinyMCE = false;
|
||||
ls.lang.load({json var = $aLangJs});
|
||||
ls.registry.set('comment_max_tree','{cfg name="module.comment.max_tree"}');
|
||||
ls.registry.set('comment_max_tree',{json var=$oConfig->Get('module.comment.max_tree')});
|
||||
ls.registry.set('block_stream_show_tip',{json var=$oConfig->Get('block.stream.show_tip')});
|
||||
</script>
|
||||
|
||||
|
||||
|
|
|
@ -89,14 +89,26 @@ jQuery(document).ready(function($){
|
|||
|
||||
|
||||
// Всплывающие сообщения
|
||||
$('.js-title-comment, .js-title-topic').poshytip({
|
||||
className: 'infobox-standart',
|
||||
if (ls.registry.get('block_stream_show_tip')) {
|
||||
$('.js-title-comment, .js-title-topic').poshytip({
|
||||
className: 'infobox-yellow',
|
||||
alignTo: 'target',
|
||||
alignX: 'left',
|
||||
alignY: 'center',
|
||||
offsetX: 10,
|
||||
liveEvents: true,
|
||||
showTimeout: 1000
|
||||
});
|
||||
}
|
||||
|
||||
$('.js-title-talk').poshytip({
|
||||
className: 'infobox-yellow',
|
||||
alignTo: 'target',
|
||||
alignX: 'left',
|
||||
alignY: 'center',
|
||||
offsetX: 5,
|
||||
offsetX: 10,
|
||||
liveEvents: true,
|
||||
showTimeout: 1500
|
||||
showTimeout: 500
|
||||
});
|
||||
|
||||
$('.js-infobox-vote-topic').poshytip({
|
||||
|
@ -123,6 +135,12 @@ jQuery(document).ready(function($){
|
|||
showTimeout: 500
|
||||
});
|
||||
|
||||
$('.js-infobox').poshytip({
|
||||
className: 'infobox-standart',
|
||||
liveEvents: true,
|
||||
showTimeout: 300
|
||||
});
|
||||
|
||||
// подсветка кода
|
||||
prettyPrint();
|
||||
|
||||
|
|
|
@ -25,10 +25,15 @@
|
|||
{if $aUsersList}
|
||||
{foreach from=$aUsersList item=oUserList}
|
||||
{assign var="oSession" value=$oUserList->getSession()}
|
||||
{assign var="oUserNote" value=$oUserList->getUserNote()}
|
||||
<tr>
|
||||
<td class="cell-name">
|
||||
<a href="{$oUserList->getUserWebPath()}"><img src="{$oUserList->getProfileAvatarPath(24)}" alt="avatar" class="avatar" /></a>
|
||||
<p class="username word-wrap"><a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a></p>
|
||||
<p class="username word-wrap"><a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a>
|
||||
{if $oUserNote}
|
||||
<i class="icon-comment js-infobox" title="{$oUserNote->getText()}"></i>
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td class="cell-date">{if $oSession}{date_format date=$oSession->getDateLast() format="d.m.y, H:i"}{/if}</td>
|
||||
<td class="cell-date">{date_format date=$oUserList->getDateRegister() format="d.m.y, H:i"}</td>
|
||||
|
|
|
@ -14,31 +14,32 @@
|
|||
{if $aUsersLast}
|
||||
{foreach from=$aUsersLast item=oUserList}
|
||||
{assign var="oSession" value=$oUserList->getSession()}
|
||||
<tr>
|
||||
<td class="cell-name">
|
||||
<a href="{$oUserList->getUserWebPath()}"><img src="{$oUserList->getProfileAvatarPath(48)}" alt="avatar" class="avatar" /></a>
|
||||
<div class="name {if !$oUserList->getProfileName()}no-realname{/if}">
|
||||
<p class="username word-wrap"><a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a></p>
|
||||
{if $oUserList->getProfileName()}<p class="realname">{$oUserList->getProfileName()}</p>{/if}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{if $oUserCurrent}
|
||||
{if $oUserNote}
|
||||
<button type="button" class="button button-action button-action-note js-infobox" title="{$oUserNote->getText()}"><i class="icon-synio-comments-green"></i></button>
|
||||
{assign var="oUserNote" value=$oUserList->getUserNote()}
|
||||
<tr>
|
||||
<td class="cell-name">
|
||||
<a href="{$oUserList->getUserWebPath()}"><img src="{$oUserList->getProfileAvatarPath(48)}" alt="avatar" class="avatar" /></a>
|
||||
<div class="name {if !$oUserList->getProfileName()}no-realname{/if}">
|
||||
<p class="username word-wrap"><a href="{$oUserList->getUserWebPath()}">{$oUserList->getLogin()}</a></p>
|
||||
{if $oUserList->getProfileName()}<p class="realname">{$oUserList->getProfileName()}</p>{/if}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{if $oUserCurrent}
|
||||
{if $oUserNote}
|
||||
<button type="button" class="button button-action button-action-note js-infobox" title="{$oUserNote->getText()}"><i class="icon-synio-comments-green"></i></button>
|
||||
{/if}
|
||||
<a href="{router page='talk'}add/?talk_users={$oUserList->getLogin()}"><button type="submit" class="button button-action button-action-send-message"><i class="icon-synio-send-message"></i><span>{$aLang.user_write_prvmsg}</span></button></a>
|
||||
{/if}
|
||||
<a href="{router page='talk'}add/?talk_users={$oUserList->getLogin()}"><button type="submit" class="button button-action button-action-send-message"><i class="icon-synio-send-message"></i><span>{$aLang.user_write_prvmsg}</span></button></a>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $oSession}
|
||||
{date_format date=$oSession->getDateLast() hours_back="12" minutes_back="60" now="60" day="day H:i" format="j F, H:i"}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="cell-rating {if $oUserList->getRating() < 0}negative{/if}"><strong>{$oUserList->getRating()}</strong></td>
|
||||
</tr>
|
||||
</td>
|
||||
<td>
|
||||
{if $oSession}
|
||||
{date_format date=$oSession->getDateLast() hours_back="12" minutes_back="60" now="60" day="day H:i" format="j F, H:i"}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="cell-rating {if $oUserList->getRating() < 0}negative{/if}"><strong>{$oUserList->getRating()}</strong></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
{$aLang.user_empty}
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
{add_block group='toolbar' name='toolbar_admin.tpl' priority=100}
|
||||
{add_block group='toolbar' name='toolbar_scrollup.tpl' priority=-100}
|
||||
|
||||
<body class="{$body_classes} width-{cfg name='view.grid.type'}"">
|
||||
<body class="{$body_classes} width-{cfg name='view.grid.type'}">
|
||||
{hook run='body_begin'}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue