Skip to content

Commit 134e04a

Browse files
committed
1 parent cab74df commit 134e04a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/webapp/skins/9IPHP/article.ftl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@
9999
</#if>
100100
</div>
101101
</footer>
102-
<div id="externalRelevantArticles" class="list"></div>
103102
<@comments commentList=articleComments article=article></@comments>
103+
<div id="externalRelevantArticles" class="list"></div>
104+
<div id="relevantArticles" class="list"></div>
105+
<div id="randomArticles" class="list"></div>
104106
</article>
105107
</main>
106108
<#include "side.ftl">
@@ -109,10 +111,16 @@
109111
<#include "footer.ftl">
110112
<@comment_script oId=article.oId>
111113
page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}";
114+
<#if 0 != randomArticlesDisplayCount>
115+
page.loadRandomArticles();
116+
</#if>
112117
<#if 0 != externalRelevantArticlesDisplayCount>
113118
page.loadExternalRelevantArticles("<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,</#if></#list>"
114119
, "<header class='title'><h2>${externalRelevantArticlesLabel}</h2></header>");
115120
</#if>
121+
<#if 0 != relevantArticlesDisplayCount>
122+
page.loadRelevantArticles('${article.oId}', '<h4>${relevantArticlesLabel}</h4>');
123+
</#if>
116124
</@comment_script>
117125
</body>
118126
</html>

0 commit comments

Comments
 (0)