mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 14:05:07 +03:00
Адаптация шаблона new для Smarty 3
This commit is contained in:
parent
469fe317be
commit
a1395fa80c
|
@ -14,7 +14,7 @@
|
||||||
bAllowNewComment=$oTopic->getForbidComment()
|
bAllowNewComment=$oTopic->getForbidComment()
|
||||||
sNoticeNotAllow=$aLang.topic_comment_notallow
|
sNoticeNotAllow=$aLang.topic_comment_notallow
|
||||||
sNoticeCommentAdd=$aLang.topic_comment_add
|
sNoticeCommentAdd=$aLang.topic_comment_add
|
||||||
aPagingCmt=$aPagingCmt
|
aPagingCmt=$aPagingCmt}
|
||||||
}
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -4,6 +4,6 @@
|
||||||
{include file='blog_list.tpl'}
|
{include file='blog_list.tpl'}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -34,7 +34,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -34,7 +34,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -35,7 +35,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -31,7 +31,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -32,7 +32,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -48,5 +48,5 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -53,5 +53,5 @@
|
||||||
<input type="submit" name="submit_talk_del" value="{$aLang.talk_inbox_delete}" onclick="return ($$('.form_talks_checkbox:checked').length==0)?false:confirm('{$aLang.talk_inbox_delete_confirm}');">
|
<input type="submit" name="submit_talk_del" value="{$aLang.talk_inbox_delete}" onclick="return ($$('.form_talks_checkbox:checked').length==0)?false:confirm('{$aLang.talk_inbox_delete_confirm}');">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
|
@ -28,8 +28,7 @@
|
||||||
iCountComment=$oTalk->getCountComment()
|
iCountComment=$oTalk->getCountComment()
|
||||||
sDateReadLast=$oTalkUser->getDateLast()
|
sDateReadLast=$oTalkUser->getDateLast()
|
||||||
sNoticeCommentAdd=$aLang.topic_comment_add
|
sNoticeCommentAdd=$aLang.topic_comment_add
|
||||||
bNoCommentFavourites=true
|
bNoCommentFavourites=true}
|
||||||
}
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="cl"><div class="cr">
|
<div class="cl"><div class="cr">
|
||||||
|
|
||||||
<h1>{$aLang.talk_speaker_title}</h1>
|
<h1>{$aLang.talk_speaker_title}</h1>
|
||||||
{if $oTalk->getUserId()==$oUserCurrent->getId() or $oUserCurrent->isAdministrator() }
|
{if $oTalk->getUserId()==$oUserCurrent->getId() or $oUserCurrent->isAdministrator()}
|
||||||
{literal}
|
{literal}
|
||||||
<script language="JavaScript" type="text/javascript">
|
<script language="JavaScript" type="text/javascript">
|
||||||
document.addEvent('domready', function() {
|
document.addEvent('domready', function() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{include file='header.tpl' menu="blog" }
|
{include file='header.tpl' menu="blog"}
|
||||||
|
|
||||||
|
|
||||||
<div class="topic top">
|
<div class="topic top">
|
||||||
|
|
|
@ -40,4 +40,4 @@
|
||||||
</div>
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
|
@ -49,7 +49,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{if $nesting < $cmtlevel}
|
{if $nesting < $cmtlevel}
|
||||||
{elseif $nesting > $cmtlevel}
|
{elseif $nesting > $cmtlevel}
|
||||||
{section name=closelist1 loop=`$nesting-$cmtlevel+1`}</div></div>{/section}
|
{section name=closelist1 loop=($nesting-$cmtlevel+1)}</div></div>{/section}
|
||||||
{elseif not $smarty.foreach.rublist.first}
|
{elseif not $smarty.foreach.rublist.first}
|
||||||
</div></div>
|
</div></div>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
{assign var="nesting" value=$cmtlevel}
|
{assign var="nesting" value=$cmtlevel}
|
||||||
{if $smarty.foreach.rublist.last}
|
{if $smarty.foreach.rublist.last}
|
||||||
{section name=closelist2 loop=`$nesting+1`}</div></div>{/section}
|
{section name=closelist2 loop=($nesting+1)}</div></div>{/section}
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{include file='comment_paging.tpl' aPagingCmt=`$aPagingCmt`}
|
{include file='comment_paging.tpl' aPagingCmt=$aPagingCmt}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -84,9 +84,9 @@ var msgNoticeBox=new Roar({
|
||||||
<div id="debug" style="border: 2px #dd0000 solid; display: none;"></div>
|
<div id="debug" style="border: 2px #dd0000 solid; display: none;"></div>
|
||||||
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
{include file=header_top.tpl}
|
{include file='header_top.tpl'}
|
||||||
|
|
||||||
{include file=header_nav.tpl}
|
{include file='header_nav.tpl'}
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<div id="extra">
|
<div id="extra">
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $menu}
|
{if $menu}
|
||||||
{if in_array($menu,$aMenuContainers)}{$aMenuFetch.$menu}{else}{include file=menu.$menu.tpl}{/if}
|
{if in_array($menu,$aMenuContainers)}{$aMenuFetch.$menu}{else}{include file="menu.$menu.tpl"}{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{if $sAction=='profile'}
|
{if $sAction=='profile'}
|
||||||
<ul class="sub-menu" >
|
<ul class="sub-menu" >
|
||||||
<li {if $aParams[0]=='whois' or $aParams[0]==''}class="active"{/if}><div><a href="{router page='profile'}{$oUserProfile->getLogin()}/">{$aLang.user_menu_profile_whois}</a></div></li>
|
<li {if $aParams[0]=='whois' or $aParams[0]==''}class="active"{/if}><div><a href="{router page='profile'}{$oUserProfile->getLogin()}/">{$aLang.user_menu_profile_whois}</a></div></li>
|
||||||
<li {if $aParams[0]=='favourites'and$aParams[1]!='comments'}class="active"{/if}><div><a href="{router page='profile'}{$oUserProfile->getLogin()}/favourites/">{$aLang.user_menu_profile_favourites}</a>{if $iCountTopicFavourite} ({$iCountTopicFavourite}){/if}</div></li>
|
<li {if $aParams[0]=='favourites' and $aParams[1]!='comments'}class="active"{/if}><div><a href="{router page='profile'}{$oUserProfile->getLogin()}/favourites/">{$aLang.user_menu_profile_favourites}</a>{if $iCountTopicFavourite} ({$iCountTopicFavourite}){/if}</div></li>
|
||||||
<li {if $aParams[1]=='comments'}class="active"{/if}><div><a href="{router page='profile'}{$oUserProfile->getLogin()}/favourites/comments/">{$aLang.user_menu_profile_favourites_comments}</a>{if $iCountCommentFavourite} ({$iCountCommentFavourite}){/if}</div></li>
|
<li {if $aParams[1]=='comments'}class="active"{/if}><div><a href="{router page='profile'}{$oUserProfile->getLogin()}/favourites/comments/">{$aLang.user_menu_profile_favourites_comments}</a>{if $iCountCommentFavourite} ({$iCountCommentFavourite}){/if}</div></li>
|
||||||
{hook run='menu_profile_profile_item'}
|
{hook run='menu_profile_profile_item'}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
{if isset($aBlocks.right)}
|
{if isset($aBlocks.right)}
|
||||||
{foreach from=$aBlocks.right item=aBlock}
|
{foreach from=$aBlocks.right item=aBlock}
|
||||||
{if $aBlock.type=='block'}
|
{if $aBlock.type=='block'}
|
||||||
{insert name="block" block=`$aBlock.name` params=`$aBlock.params`}
|
{insert name="block" block=$aBlock.name params=$aBlock.params}
|
||||||
{/if}
|
{/if}
|
||||||
{if $aBlock.type=='template'}
|
{if $aBlock.type=='template'}
|
||||||
{include file=`$aBlock.name` params=`$aBlock.params`}
|
{include file=$aBlock.name params=$aBlock.params}
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
<!-- /Topic -->
|
<!-- /Topic -->
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
||||||
{include file='paging.tpl' aPaging=`$aPaging`}
|
{include file='paging.tpl' aPaging=$aPaging}
|
||||||
|
|
||||||
{else}
|
{else}
|
||||||
{$aLang.blog_no_topic}
|
{$aLang.blog_no_topic}
|
||||||
|
|
Loading…
Reference in a new issue