mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Merge pull request #2039 from rica-carv/rica-carv-viewtopic_caption
Enable templating of viewtopic caption
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@@ -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'>
|
||||
|
Reference in New Issue
Block a user