Skip to content

Commit

Permalink
Moved all article templates in themes to article folder
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Feb 15, 2022
1 parent b7410cc commit 8d2a00d
Show file tree
Hide file tree
Showing 22 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions public_html/docs/english/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ <h2><a name="changes222">Theme changes in Geeklog 2.2.2</a></h2>
<li>For the <span class="tt">users\profile.thtml</span> file, all {end_block} template variables updated with unique names.</li>
<li>Edit link for topics added to <span class="tt">topic.thtml</li>
<li>New block template added called "_admin_list" which allows a theme to specify what block header and footer to use to wrap Admin Lists. Admin lists originally used "_admin_block" which is also used by the main admin page block.</li>
<li>Template files <span class="tt">archivearticlebodytext.thtml</span>, <span class="tt">archivearticletext.thtml</span>, <span class="tt">articlebodytext.thtml</span>, <span class="tt">articletext.thtml</span>, <span class="tt">featuredarticlebodytext.thtml</span>, and <span class="tt">featuredarticletext.thtml</span> moved from root folder to the folder "article".</li>
<li>Template file <span class="tt">printable.thtml</span> added to the root folder to the folder.</li>
<li>Template file <span class="tt">printable.thtml</span> removed from the "article" folder.</li>
</ul>

<h2><a name="changes221">Theme changes in Geeklog 2.2.1</a></h2>
Expand Down
3 changes: 3 additions & 0 deletions public_html/docs/japanese/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ <h2><a name="changes222">Theme changes in Geeklog 2.2.2</a></h2>
<li>For the <span class="tt">users\profile.thtml</span> file, all {end_block} template variables updated with unique names.</li>
<li>Edit link for topics added to <span class="tt">topic.thtml</li>
<li>New block template added called "_admin_list" which allows a theme to specify what block header and footer to use to wrap Admin Lists. Admin lists originally used "_admin_block" which is also used by the main admin page block.</li>
<li>Template files <span class="tt">archivearticlebodytext.thtml</span>, <span class="tt">archivearticletext.thtml</span>, <span class="tt">articlebodytext.thtml</span>, <span class="tt">articletext.thtml</span>, <span class="tt">featuredarticlebodytext.thtml</span>, and <span class="tt">featuredarticletext.thtml</span> moved from root folder to the folder "article".</li>
<li>Template file <span class="tt">printable.thtml</span> added to the root folder to the folder.</li>
<li>Template file <span class="tt">printable.thtml</span> removed from the "article" folder.</li>
</ul>

<h2><a name="changes221">Geeklog 2.2.1におけるテーマの変更点</a></h2>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion system/classes/article.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ public function renderImageTags($text)
$storyTpl = 'articletext.thtml';
}

$article = COM_newTemplate(CTL_core_templatePath($_CONF['path_layout']));
$article = COM_newTemplate(CTL_core_templatePath($_CONF['path_layout'] . 'article/'));
$article->set_file(array(
'article' => $article_filevar
));
Expand Down
4 changes: 2 additions & 2 deletions system/lib-article.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ function STORY_renderArticle($story, $index = '', $storyTpl = 'articletext.thtml
}

// Change article template file with the topic (feature request #275)
$templateDir = $_CONF['path_layout'];
$topicDir = $templateDir . 'topics/' . $story->DisplayElements('tid') . '/';
$templateDir = $_CONF['path_layout'] . 'article/';
$topicDir = $_CONF['path_layout'] . 'topics/' . $story->DisplayElements('tid') . '/';

if (is_dir($topicDir) && file_exists($topicDir . $storyTpl)) {
$templateDir = $topicDir;
Expand Down

0 comments on commit 8d2a00d

Please sign in to comment.