1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00

Хуки при выводе топиков Issue #40

This commit is contained in:
Mzhelskiy Maxim 2011-12-05 15:47:02 +04:00
parent a7cc4c6150
commit 71f4a16ec9
8 changed files with 88 additions and 75 deletions

View file

@ -26,6 +26,7 @@
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -40,6 +41,7 @@
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>

View file

@ -42,6 +42,7 @@ jQuery(window).load(function($) {
{assign var=iPhotosCount value=$oTopic->getPhotosetCount()}
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -56,6 +57,7 @@ jQuery(window).load(function($) {
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>
<!-- Topic Photo Image List -->

View file

@ -22,9 +22,6 @@
{/if}
</ul>
<div class="content">
<div id="topic_question_area_{$oTopic->getId()}" class="poll">
{if !$oTopic->getUserQuestionIsVote()}
<ul class="poll-vote">
@ -57,6 +54,8 @@
{/if}
</div>
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -71,6 +70,7 @@
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>

View file

@ -25,6 +25,7 @@
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -39,6 +40,7 @@
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>

View file

@ -31,6 +31,7 @@
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -45,6 +46,7 @@
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>

View file

@ -52,6 +52,7 @@
{assign var=iPhotosCount value=$oTopic->getPhotosetCount()}
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -66,6 +67,7 @@
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>

View file

@ -70,7 +70,7 @@
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -85,6 +85,7 @@
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>

View file

@ -35,6 +35,7 @@
<div class="content">
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
{if $bTopicList}
{$oTopic->getTextShort()}
{if $oTopic->getTextShort()!=$oTopic->getText()}
@ -49,6 +50,7 @@
{else}
{$oTopic->getText()}
{/if}
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
</div>