Skip to content

Commit

Permalink
Added more topic variables to article template files
Browse files Browse the repository at this point in the history
This allows us to build our own topic link in the article with an image instead of using the prebuilt ones like story_anchortag_and_image_no_align which are missing width and height attributes.
  • Loading branch information
eSilverStrike committed Jun 17, 2021
1 parent a6e2dd0 commit b4440bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/lib-article.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ function STORY_renderArticle($story, $index = '', $storyTpl = 'articletext.thtml
)
, false, true
);
$article->set_var('story_topic_image', $topicimage, false, true);

$article->set_var('story_topic_name', $topicname, false, true);
$article->set_var('story_topic_url', $topicurl, false, true);
$article->set_var('story_topic_image', $imageurl, false, true);

$topicimage_noalign = '<img src="' . $imageurl . '" alt="'
. $topicname . '" title="' . $topicname . '"' . XHTML . '>';
$article->set_var('story_anchortag_and_image_no_align',
Expand Down

0 comments on commit b4440bb

Please sign in to comment.