1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-18 16:58:18 +03:00

fix developer

This commit is contained in:
Denis Shakhov 2010-04-26 01:23:15 +00:00
parent 544492df96
commit 856980038d
6 changed files with 21 additions and 177 deletions

View file

@ -1,156 +0,0 @@
<script type="text/javascript" src="{$DIR_STATIC_SKIN}/js/comments.js"></script>
<div class="comments">
{if $oUserCurrent}
<div class="update" id="update">
<div class="refresh"><img class="update-comments" id="update-comments" alt="" src="{$DIR_STATIC_SKIN}/images/update.gif" onclick="lsCmtTree.responseNewComment({$oTopic->getId()},this); return false;"/></div>
<div class="new-comments" id="new-comments" style="display: none;" onclick="lsCmtTree.goNextComment();"></div>
</div>
{/if}
<div class="header">
<h3>{$aLang.comment_title} <span>(<span id="count-comments">{$oTopic->getCountComment()}</span>)</span></h3>
<a name="comments" ></a>
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_RSS}/comments/{$oTopic->getId()}/" class="rss">RSS</a>
<a href="#" onclick="lsCmtTree.collapseNodeAll(); return false;" onfocus="blur();">{$aLang.comment_collapse}</a> /
<a href="#" onclick="lsCmtTree.expandNodeAll(); return false;" onfocus="blur();">{$aLang.comment_expand}</a>
</div>
{literal}
<script>
window.addEvent('domready', function() {
{/literal}
lsCmtTree.setIdCommentLast({$iMaxIdComment});
{literal}
});
</script>
{/literal}
{assign var="nesting" value="-1"}
{foreach from=$aCommentsNew item=aComment name=rublist}
{assign var="cmtlevel" value=$aComment.level}
{if $cmtlevel>$BLOG_COMMENT_MAX_TREE_LEVEL}
{assign var="cmtlevel" value=$BLOG_COMMENT_MAX_TREE_LEVEL}
{/if}
{if $nesting < $cmtlevel}
{elseif $nesting > $cmtlevel}
{section name=closelist1 loop=`$nesting-$cmtlevel+1`}</div></div>{/section}
{elseif not $smarty.foreach.rublist.first}
</div></div>
{/if}
<div class="comment" id="comment_id_{$aComment.obj->getId()}">
{if !$aComment.obj->getDelete() or ($oUserCurrent and $oUserCurrent->isAdministrator())}
<img src="{$DIR_STATIC_SKIN}/images/folding-close.gif" alt="+" title="{$aLang.comment_collapse}/{$aLang.comment_expand}" class="folding" />
<a name="comment{$aComment.obj->getId()}" ></a>
<ul class="info">
<li class="avatar"><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PROFILE}/{$aComment.obj->getUserLogin()}/"><img src="{$aComment.obj->getUserProfileAvatarPath(24)}" alt="avatar" /></a></li>
<li><a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_PROFILE}/{$aComment.obj->getUserLogin()}/" class="author">{$aComment.obj->getUserLogin()}</a></li>
<li class="date">{date_format date=$aComment.obj->getDate()}</li>
<li><a href="#comment{$aComment.obj->getId()}">#</a></li>
{if $aComment.obj->getPid()}
<li class="goto-comment-parent"><a href="#comment{$aComment.obj->getPid()}" onclick="return lsCmtTree.goToParentComment($(this));" title="{$aLang.comment_goto_parent}">&uarr;</a></li>
{/if}
<li class="goto-comment-child hidden"><a href="#" onclick="return lsCmtTree.goToChildComment(this);" title="{$aLang.comment_goto_child}">&darr;</a></li>
{if !$aComment.obj->getDelete() and $oUserCurrent and $oUserCurrent->isAdministrator()}
<li><a href="#" class="delete" onclick="lsCmtTree.toggleComment(this,{$aComment.obj->getId()}); return false;">{$aLang.comment_delete}</a></li>
{/if}
{if $aComment.obj->getDelete() and $oUserCurrent and $oUserCurrent->isAdministrator()}
<li><a href="#" class="repair" onclick="lsCmtTree.toggleComment(this,{$aComment.obj->getId()}); return false;">{$aLang.comment_repair}</a></li>
{/if}
</ul>
<div class="voting {if $aComment.obj->getRating()>0}positive{elseif $aComment.obj->getRating()<0}negative{/if} {if !$oUserCurrent || $aComment.obj->getUserId()==$oUserCurrent->getId() || strtotime($aComment.obj->getDate())<$smarty.now-$VOTE_LIMIT_TIME_COMMENT}guest{/if} {if $aComment.obj->getUserIsVote()} voted {if $aComment.obj->getUserVoteDelta()>0}plus{else}minus{/if}{/if} ">
<span class="total">{if $aComment.obj->getRating()>0}+{/if}{$aComment.obj->getRating()}</span>
<a href="#" class="plus" onclick="lsVote.vote({$aComment.obj->getId()},this,1,'topic_comment'); return false;"></a>
<a href="#" class="minus" onclick="lsVote.vote({$aComment.obj->getId()},this,-1,'topic_comment'); return false;"></a>
</div>
<div id="comment_content_id_{$aComment.obj->getId()}" class="content {if $aComment.obj->getDelete() and $oUserCurrent and $oUserCurrent->isAdministrator()}del{elseif $oUserCurrent and $aComment.obj->getUserId()==$oUserCurrent->getId()}self{elseif $dDateTopicRead<=$aComment.obj->getDate()}new{/if}">
{if $oUserCurrent and $aComment.obj->getUserId()!=$oUserCurrent->getId() and $dDateTopicRead<=$aComment.obj->getDate()}
{literal}
<script>
window.addEvent('domready', function() {
{/literal}
lsCmtTree.addCommentScroll({$aComment.obj->getId()});
{literal}
});
</script>
{/literal}
{/if}
<div class="text">
{if $aComment.obj->isBad()}
<div style="display: none;" id="comment_text_{$aComment.obj->getId()}">
{$aComment.obj->getText()}
</div>
<a href="#" onclick="$('comment_text_{$aComment.obj->getId()}').style.display='block';$(this).style.display='none';return false;">{$aLang.comment_bad_open}</a>
{else}
{$aComment.obj->getText()}
{/if}
<br />
{if $oUserCurrent and !$aComment.obj->getDelete() and !$oTopic->getForbidComment()}
<span class="reply-link">(<a href="javascript:lsCmtTree.toggleCommentForm({$aComment.obj->getId()});" class="reply-link">{$aLang.comment_answer}</a>)</span>
{/if}
</div>
</div>
<div class="comment"><div class="content"><div class="text" id="comment_preview_{$aComment.obj->getId()}" style="display: none;"></div></div></div>
<div class="reply" id="reply_{$aComment.obj->getId()}" style="display: none;"></div>
{else}
<span class="delete">{$aLang.comment_was_delete}</span>
{/if}
<div class="comment-children" id="comment-children-{$aComment.obj->getId()}">
{assign var="nesting" value=$cmtlevel}
{if $smarty.foreach.rublist.last}
{section name=closelist2 loop=`$nesting+1`}</div></div>{/section}
{/if}
{/foreach}
<span id="comment-children-0"></span>
<br />
{if $oTopic->getForbidComment()}
{$aLang.topic_comment_notallow}
{else}
{if $oUserCurrent}
<h3 class="reply-title"><a href="javascript:lsCmtTree.toggleCommentForm(0);">{$aLang.topic_comment_add}</a></h3>
<div class="comment"><div class="content"><div class="text" id="comment_preview_0" style="display: none;"></div></div></div>
<div style="display: block;" id="reply_0" class="reply">
{if !$BLOG_USE_TINYMCE}
<div class="panel-form">
<a href="#" onclick="lsPanel.putTagAround('form_comment_text','b'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/images/panel/bold_ru.gif" width="20" height="20" title="{$aLang.panel_b}"></a>
<a href="#" onclick="lsPanel.putTagAround('form_comment_text','i'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/images/panel/italic_ru.gif" width="20" height="20" title="{$aLang.panel_i}"></a>
<a href="#" onclick="lsPanel.putTagAround('form_comment_text','u'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/images/panel/underline_ru.gif" width="20" height="20" title="{$aLang.panel_u}"></a>
<a href="#" onclick="lsPanel.putTagAround('form_comment_text','s'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/images/panel/strikethrough.gif" width="20" height="20" title="{$aLang.panel_s}"></a>
&nbsp;
<a href="#" onclick="lsPanel.putTagUrl('form_comment_text','Введите ссылку'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/images/panel/link.gif" width="20" height="20" title="{$aLang.panel_url}"></a>
<a href="#" onclick="lsPanel.putQuote('form_comment_text'); return false;"><img src="{$DIR_STATIC_SKIN}/images/panel/quote.gif" width="20" height="20" title="{$aLang.panel_quote}"></a>
<a href="#" onclick="lsPanel.putTagAround('form_comment_text','code'); return false;" class="button"><img src="{$DIR_STATIC_SKIN}/images/panel/code.gif" width="30" height="20" title="{$aLang.panel_code}"></a>
</div>
{/if}
<form action="" method="POST" id="form_comment" onsubmit="return false;" enctype="multipart/form-data">
<textarea name="comment_text" id="form_comment_text"></textarea>
<input type="submit" name="submit_preview" value="{$aLang.comment_preview}" onclick="lsCmtTree.preview($('form_comment_reply').getProperty('value')); return false;" />&nbsp;
<input type="submit" name="submit_comment" value="{$aLang.comment_add}" onclick="lsCmtTree.addComment('form_comment',{$oTopic->getId()}); return false;">
<input type="hidden" name="reply" value="" id="form_comment_reply">
<input type="hidden" name="cmt_topic_id" value="{$oTopic->getId()}" id="cmt_topic_id">
</form>
</div>
{else}
{$aLang.comment_unregistered}<br>
{/if}
{/if}
</div>

View file

@ -27,8 +27,7 @@
function addBlogInvite(idBlog) {
sUsers=$('blog_admin_user_add').get('value');
if(sUsers.length<2) {
msgErrorBox.alert('Error','Пользователь не указан');
if(!sUsers) {
return false;
}
$('blog_admin_user_add').set('value','');
@ -59,19 +58,19 @@
}
function reBlogInvite(idUser,idBlog) {
JsHttpRequest.query(
'POST '+aRouter['blog']+'ajaxrebloginvite/',
{ idUser: idUser, idBlog: idBlog, security_ls_key: LIVESTREET_SECURITY_KEY },
function(result, errors) {
if (!result) {
msgErrorBox.alert('Error','Please try again later');
}
if (result.bStateError) {
msgErrorBox.alert(result.sMsgTitle,result.sMsg);
} else {
msgNoticeBox.alert(result.sMsgTitle, result.sMsg);
}
},
true
'POST '+aRouter['blog']+'ajaxrebloginvite/',
{ idUser: idUser, idBlog: idBlog, security_ls_key: LIVESTREET_SECURITY_KEY },
function(result, errors) {
if (!result) {
msgErrorBox.alert('Error','Please try again later');
}
if (result.bStateError) {
msgErrorBox.alert(result.sMsgTitle,result.sMsg);
} else {
msgNoticeBox.alert(result.sMsgTitle, result.sMsg);
}
},
true
);
return false;
}
@ -93,7 +92,7 @@
{foreach from=$aBlogUsersInvited item=oBlogUser}
{assign var='oUser' value=$oBlogUser->getUser()}
<li><a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a> &mdash; <a href="#" onclick="return reBlogInvite({$oUser->getId()},{$oBlogEdit->getId()});">{$aLang.blog_user_invite_readd}</a></li>
<li><a href="{$oUser->getUserWebPath()}">{$oUser->getLogin()}</a> &mdash; <a href="#" class="local" onclick="return reBlogInvite({$oUser->getId()},{$oBlogEdit->getId()});">{$aLang.blog_user_invite_readd}</a></li>
{/foreach}
</ul>
{/if}

View file

@ -49,7 +49,7 @@ ul.autocompleter-choices li.autocompleter-selected span.autocompleter-queried
input.autocompleter-loading
{
background-image: url(../img/spinner.gif);
background-image: url(../images/spinner.gif);
background-repeat: no-repeat;
background-position: right 50%;
}

View file

@ -385,8 +385,9 @@ span.form-note { display: block; color: #aaa; font-size: 11px; line-height: 14px
/* Block - Blogs */
.block.blogs .list { border-top: 1px solid #eee; padding-top: 3px; margin-top: 10px; }
.block.blogs .list li { overflow: hidden; border-bottom: 1px solid #eee; padding-bottom: 5px; margin-bottom: 5px; }
.block.blogs .list li a { padding-right: 50px; color: #777; text-decoration: none; }
.block.blogs .list li a { color: #777; text-decoration: none; }
.block.blogs .list li .total { float: right; font-weight: bold; padding-right: 13px; }
.block.blogs .list li a.local { text-decoration: none; border-bottom: 1px dotted #777; }
.block.blogs .list li a.close { padding-right: 18px; background: url(../images/key.gif) no-repeat right; }
.block.blogs .user-list a { padding: 0 !important; color: #284ea2 !important; }
.block.blogs .user-list a.delete { font-size: 11px; color: #f00 !important; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -13,9 +13,9 @@
<a href="{router page='blog'}">{$aLang.blog_menu_collective}</a> {if $iCountTopicsCollectiveNew>0}+{$iCountTopicsCollectiveNew}{/if}
{if $sMenuItemSelect=='blog'}
<ul class="sub-menu" >
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{router page='blog'}">{$aLang.blog_menu_collective_good}</a></li>
{if $iCountTopicsBlogNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{router page='blog'}new/">{$aLang.blog_menu_collective_new}</a> +{$iCountTopicsBlogNew}</li>{/if}
<li {if $sMenuSubItemSelect=='bad'}class="active"{/if}><a href="{router page='blog'}bad/">{$aLang.blog_menu_collective_bad}</a></li>
<li {if $sMenuSubItemSelect=='good'}class="active"{/if}><a href="{$sMenuSubBlogUrl}">{$aLang.blog_menu_collective_good}</a></li>
{if $iCountTopicsBlogNew>0}<li {if $sMenuSubItemSelect=='new'}class="active"{/if}><a href="{$sMenuSubBlogUrl}new/">{$aLang.blog_menu_collective_new}</a> +{$iCountTopicsBlogNew}</li>{/if}
<li {if $sMenuSubItemSelect=='bad'}class="active"{/if}><a href="{$sMenuSubBlogUrl}bad/">{$aLang.blog_menu_collective_bad}</a></li>
</ul>
{/if}
</li>