diff --git a/templates/skin/developer-jquery/topic_link.tpl b/templates/skin/developer-jquery/topic_link.tpl
index a1ad5ac4..e3c11da8 100644
--- a/templates/skin/developer-jquery/topic_link.tpl
+++ b/templates/skin/developer-jquery/topic_link.tpl
@@ -26,20 +26,22 @@
- {if $bTopicList}
- {$oTopic->getTextShort()}
- {if $oTopic->getTextShort()!=$oTopic->getText()}
-
- {if $oTopic->getCutText()}
- {$oTopic->getCutText()}
- {else}
- {$aLang.topic_read_more}
- {/if}
-
- {/if}
- {else}
- {$oTopic->getText()}
- {/if}
+ {hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
+ {if $bTopicList}
+ {$oTopic->getTextShort()}
+ {if $oTopic->getTextShort()!=$oTopic->getText()}
+
+ {if $oTopic->getCutText()}
+ {$oTopic->getCutText()}
+ {else}
+ {$aLang.topic_read_more}
+ {/if}
+
+ {/if}
+ {else}
+ {$oTopic->getText()}
+ {/if}
+ {hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
diff --git a/templates/skin/developer-jquery/topic_photoset.tpl b/templates/skin/developer-jquery/topic_photoset.tpl
index 0cd2f6d7..1c6d09f4 100644
--- a/templates/skin/developer-jquery/topic_photoset.tpl
+++ b/templates/skin/developer-jquery/topic_photoset.tpl
@@ -42,6 +42,7 @@ jQuery(window).load(function($) {
{assign var=iPhotosCount value=$oTopic->getPhotosetCount()}
+ {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}
diff --git a/templates/skin/developer-jquery/topic_question.tpl b/templates/skin/developer-jquery/topic_question.tpl
index d6025432..fa57acd6 100644
--- a/templates/skin/developer-jquery/topic_question.tpl
+++ b/templates/skin/developer-jquery/topic_question.tpl
@@ -22,55 +22,55 @@
{/if}
+
+ {if !$oTopic->getUserQuestionIsVote()}
+
+
+
+
+
+
{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}
+ {else}
+
+ {foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
+ - getQuestionAnswerMax()==$aAnswer.count}class="most"{/if}>
+
+ -
+ {$oTopic->getQuestionAnswerPercent($key)}%
+ ({$aAnswer.count})
+
+ - {$aAnswer.text|escape:'html'}
+
+
+ {/foreach}
+
+
+
{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}
+ {/if}
+
-
- {if !$oTopic->getUserQuestionIsVote()}
-
-
-
-
-
-
-
{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}
- {else}
-
- {foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
- - getQuestionAnswerMax()==$aAnswer.count}class="most"{/if}>
-
- -
- {$oTopic->getQuestionAnswerPercent($key)}%
- ({$aAnswer.count})
-
- - {$aAnswer.text|escape:'html'}
-
-
- {/foreach}
-
-
-
{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}
- {/if}
-
-
- {if $bTopicList}
- {$oTopic->getTextShort()}
- {if $oTopic->getTextShort()!=$oTopic->getText()}
-
- {if $oTopic->getCutText()}
- {$oTopic->getCutText()}
- {else}
- {$aLang.topic_read_more}
- {/if}
-
- {/if}
- {else}
- {$oTopic->getText()}
- {/if}
+ {hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
+ {if $bTopicList}
+ {$oTopic->getTextShort()}
+ {if $oTopic->getTextShort()!=$oTopic->getText()}
+
+ {if $oTopic->getCutText()}
+ {$oTopic->getCutText()}
+ {else}
+ {$aLang.topic_read_more}
+ {/if}
+
+ {/if}
+ {else}
+ {$oTopic->getText()}
+ {/if}
+ {hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
diff --git a/templates/skin/developer-jquery/topic_topic.tpl b/templates/skin/developer-jquery/topic_topic.tpl
index 4fc78268..fcd4be32 100644
--- a/templates/skin/developer-jquery/topic_topic.tpl
+++ b/templates/skin/developer-jquery/topic_topic.tpl
@@ -25,20 +25,22 @@
- {if $bTopicList}
- {$oTopic->getTextShort()}
- {if $oTopic->getTextShort()!=$oTopic->getText()}
-
- {if $oTopic->getCutText()}
- {$oTopic->getCutText()}
- {else}
- {$aLang.topic_read_more}
- {/if}
-
- {/if}
- {else}
- {$oTopic->getText()}
- {/if}
+ {hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
+ {if $bTopicList}
+ {$oTopic->getTextShort()}
+ {if $oTopic->getTextShort()!=$oTopic->getText()}
+
+ {if $oTopic->getCutText()}
+ {$oTopic->getCutText()}
+ {else}
+ {$aLang.topic_read_more}
+ {/if}
+
+ {/if}
+ {else}
+ {$oTopic->getText()}
+ {/if}
+ {hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
diff --git a/templates/skin/new-jquery/topic_link.tpl b/templates/skin/new-jquery/topic_link.tpl
index ef80b96c..6747ab68 100644
--- a/templates/skin/new-jquery/topic_link.tpl
+++ b/templates/skin/new-jquery/topic_link.tpl
@@ -31,6 +31,7 @@
+ {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}
diff --git a/templates/skin/new-jquery/topic_photoset.tpl b/templates/skin/new-jquery/topic_photoset.tpl
index 1f29fdae..e3462298 100644
--- a/templates/skin/new-jquery/topic_photoset.tpl
+++ b/templates/skin/new-jquery/topic_photoset.tpl
@@ -52,6 +52,7 @@
{assign var=iPhotosCount value=$oTopic->getPhotosetCount()}
+ {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}
diff --git a/templates/skin/new-jquery/topic_question.tpl b/templates/skin/new-jquery/topic_question.tpl
index 34301516..0ba74888 100644
--- a/templates/skin/new-jquery/topic_question.tpl
+++ b/templates/skin/new-jquery/topic_question.tpl
@@ -70,7 +70,7 @@
-
+ {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}
diff --git a/templates/skin/new-jquery/topic_topic.tpl b/templates/skin/new-jquery/topic_topic.tpl
index 3e329823..6b2b3224 100644
--- a/templates/skin/new-jquery/topic_topic.tpl
+++ b/templates/skin/new-jquery/topic_topic.tpl
@@ -35,6 +35,7 @@
+ {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}