diff --git a/language/english.php b/language/english.php
index 7bedfa379..84a7a86ca 100644
--- a/language/english.php
+++ b/language/english.php
@@ -926,6 +926,17 @@
'block_type_dynamic' => 'Dynamic'
);
+###############################################################################
+# Block Locations
+
+$LANG23 = array (
+ 'blocks_article_footer_name' => 'Article Footer',
+ 'blocks_article_footer_desc' => 'Display Blocks in article Footer',
+
+ 'blocks_article_topic_list_name' => 'Article Topic List',
+ 'blocks_article_topic_list_desc' => 'Displays Blocks right after every X number of articles in topics.'
+);
+
###############################################################################
# admin/article.php
@@ -2266,6 +2277,7 @@
'whats_related_max' => "Max What's Related to Display",
'whats_related_trim' => "What's Related Title Length",
'default_cache_time_article' => "Default Article Cache Time",
+ 'blocks_article_topic_list_repeat_after' => "Article Topic List Blocks Location Repeat",
'aftersave_user' => "After Saving User",
'show_right_blocks' => "Always Show Right Blocks?",
'showfirstasfeatured' => "Show First Article as Featured?",
diff --git a/language/english_utf-8.php b/language/english_utf-8.php
index 69f927562..fce39b056 100644
--- a/language/english_utf-8.php
+++ b/language/english_utf-8.php
@@ -926,6 +926,17 @@
'block_type_dynamic' => 'Dynamic'
);
+###############################################################################
+# Block Locations
+
+$LANG23 = array (
+ 'blocks_article_footer_name' => 'Article Footer',
+ 'blocks_article_footer_desc' => 'Display Blocks in article Footer',
+
+ 'blocks_article_topic_list_name' => 'Article Topic List',
+ 'blocks_article_topic_list_desc' => 'Displays Blocks right after every X number of articles in topics.'
+);
+
###############################################################################
# admin/article.php
@@ -2268,6 +2279,7 @@
'whats_related_max' => "Max What's Related to Display",
'whats_related_trim' => "What's Related Title Length",
'default_cache_time_article' => "Default Article Cache Time",
+ 'blocks_article_topic_list_repeat_after' => "Article Topic List Blocks Location Repeat",
'aftersave_user' => "After Saving User",
'show_right_blocks' => "Always Show Right Blocks?",
'showfirstasfeatured' => "Show First Article as Featured?",
diff --git a/language/japanese_utf-8.php b/language/japanese_utf-8.php
index c7a5ca7a7..092296d2a 100644
--- a/language/japanese_utf-8.php
+++ b/language/japanese_utf-8.php
@@ -931,6 +931,17 @@
'block_type_dynamic' => 'ダイナミック'
);
+###############################################################################
+# Block Locations
+
+$LANG23 = array (
+ 'blocks_article_footer_name' => 'Article Footer',
+ 'blocks_article_footer_desc' => 'Display Blocks in article Footer',
+
+ 'blocks_article_topic_list_name' => 'Article Topic List',
+ 'blocks_article_topic_list_desc' => 'Displays Blocks right after every X number of articles in topics.'
+);
+
###############################################################################
# admin/article.php
@@ -2274,6 +2285,7 @@
'whats_related_max' => '表示する関連情報の最大数',
'whats_related_trim' => '関連情報のタイトルの最大長',
'default_cache_time_article' => '記事のキャッシュ期間のデフォルト',
+ 'blocks_article_topic_list_repeat_after' => "Article Topic List Blocks Location Repeat",
'aftersave_user' => 'ユーザー保存後の画面遷移',
'show_right_blocks' => '右ブロックを常に表示する',
'showfirstasfeatured' => '最初の記事を注目記事として表示する',
diff --git a/public_html/admin/configuration_validation.php b/public_html/admin/configuration_validation.php
index 8235f9c8a..394fc96e5 100644
--- a/public_html/admin/configuration_validation.php
+++ b/public_html/admin/configuration_validation.php
@@ -225,6 +225,7 @@
$_CONF_VALIDATE['Core']['whats_related_max'] = array('rule' => 'numeric');
$_CONF_VALIDATE['Core']['whats_related_trim'] = array('rule' => 'numeric');
$_CONF_VALIDATE['Core']['default_cache_time_article'] = array('rule' => 'numeric');
+$_CONF_VALIDATE['Core']['blocks_article_topic_list_repeat_after'] = array('rule' => 'numeric');
/* Subgroup Stories and Trackback, Tab Trackback */
$_CONF_VALIDATE['Core']['trackback_enabled'] = array('rule' => 'boolean');
diff --git a/public_html/admin/install/config-install.php b/public_html/admin/install/config-install.php
index fc9cd85f0..e8b8f781d 100644
--- a/public_html/admin/install/config-install.php
+++ b/public_html/admin/install/config-install.php
@@ -145,6 +145,7 @@ function install_config()
$c->add('whats_related_max',0,'text',1,7,NULL,1370,TRUE, $me, 7);
$c->add('whats_related_trim',26,'text',1,7,NULL,1380,TRUE, $me, 7);
$c->add('default_cache_time_article',0,'text',1,7,NULL,1390,TRUE, $me, 7);
+ $c->add('blocks_article_topic_list_repeat_after',1,'text',1,7,NULL,1400,TRUE, $me, 7);
$c->add('tab_trackback', NULL, 'tab', 1, 8, NULL, 0, TRUE, $me, 8);
$c->add('fs_trackback', NULL, 'fieldset', 1, 8, NULL, 0, TRUE, $me, 8);
diff --git a/public_html/docs/english/config.html b/public_html/docs/english/config.html
index e5692896f..4890e47e1 100644
--- a/public_html/docs/english/config.html
+++ b/public_html/docs/english/config.html
@@ -472,6 +472,10 @@
0 = Not cached. Article is always regenerated.
-1 = Always cached and only regenerated when the article is updated and saved through the article editor.
+
+ blocks_article_topic_list_repeat_after |
+ 1 |
+ Article topic list blocks location repeats after this many article introductions are displayed in a topic. |
diff --git a/public_html/docs/japanese/config.html b/public_html/docs/japanese/config.html
index 3097eeeb4..0113321cb 100644
--- a/public_html/docs/japanese/config.html
+++ b/public_html/docs/japanese/config.html
@@ -433,6 +433,10 @@
0 = キャッシュしません。記事は常にデータベースから生成されます。
-1 = 常にキャッシュし、エディターで記事を更新・保存した場合に限り、キャッシュを再生成します。
+
+ blocks_article_topic_list_repeat_after |
+ 1 |
+ Article topic list blocks location repeats after this many article introductions are displayed in a topic. |
diff --git a/public_html/index.php b/public_html/index.php
index b6f48ab3b..441ad0923 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -346,7 +346,8 @@ function fixTopic(&$A, $tid_list)
}
// display first article
- $display .= STORY_renderArticle($story, 'y');
+ $articlecount = 1; // Post count of page
+ $display .= STORY_renderArticle($story, 'y', '', '', $articlecount);
// get plugin center blocks after featured article
if ($story->DisplayElements('featured') == 1) {
@@ -355,10 +356,11 @@ function fixTopic(&$A, $tid_list)
// get remaining stories
while ($A = DB_fetcharray($result)) {
+ $articlecount++;
fixTopic($A, $tid_list);
$story = new Article();
$story->loadFromArray($A);
- $display .= STORY_renderArticle($story, 'y');
+ $display .= STORY_renderArticle($story, 'y', '', '' , $articlecount);
}
// get plugin center blocks that follow articles
diff --git a/public_html/layout/denim/articletext.thtml b/public_html/layout/denim/articletext.thtml
index e00d64883..0756b1d9a 100644
--- a/public_html/layout/denim/articletext.thtml
+++ b/public_html/layout/denim/articletext.thtml
@@ -54,6 +54,13 @@
{!endif}
+{!if blocks_article_footer}
+{blocks_article_footer}
+{!endif}
+{!if blocks_article_topic_list}
+{blocks_article_topic_list}
+{!endif}
+
{!if link_url}