1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Merge pull request #2039 from rica-carv/rica-carv-viewtopic_caption

Enable templating of viewtopic caption
This commit is contained in:
Cameron 2016-12-01 15:39:23 -08:00 committed by GitHub
commit bd0fc45c05
2 changed files with 4 additions and 2 deletions

View File

@ -211,6 +211,7 @@ if(deftrue('BOOTSTRAP',false))
// print_a($FORUM_VIEWTOPIC_TEMPLATE);
$FORUMCAPTION = $FORUM_VIEWTOPIC_TEMPLATE['caption'];
$FORUMSTART = $FORUM_VIEWTOPIC_TEMPLATE['start'];
$FORUMTHREADSTYLE = $FORUM_VIEWTOPIC_TEMPLATE['thread'];
$FORUMEND = $FORUM_VIEWTOPIC_TEMPLATE['end'];
@ -615,7 +616,7 @@ require_once (HEADERF);
if ($forum->prefs->get('enclose'))
{
$forumTitle = e107::pref('forum','title', LAN_PLUGIN_FORUM_NAME);
$forumTitle = empty($FORUMCAPTION) ? e107::pref('forum','title', LAN_PLUGIN_FORUM_NAME) : $tp->parseTemplate($FORUMCAPTION, TRUE, $sc);
$ns->tablerender($forumTitle, $mes->render().$forumstring, array('forum_viewtopic', 'main'));
}
else
@ -1090,4 +1091,4 @@ class e107ForumThread
}
}
?>
?>

View File

@ -310,6 +310,7 @@ $FORUM_CRUMB['forum']['value'] = "<a class='forumlink' href='{FORUM_HREF}'>{FORU
// New in v2.x - requires a bootstrap theme be loaded.
$FORUM_VIEWTOPIC_TEMPLATE['caption'] = "";
$FORUM_VIEWTOPIC_TEMPLATE['start'] = "
<div class='row-fluid'>