mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +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);
|
// print_a($FORUM_VIEWTOPIC_TEMPLATE);
|
||||||
|
|
||||||
|
$FORUMCAPTION = $FORUM_VIEWTOPIC_TEMPLATE['caption'];
|
||||||
$FORUMSTART = $FORUM_VIEWTOPIC_TEMPLATE['start'];
|
$FORUMSTART = $FORUM_VIEWTOPIC_TEMPLATE['start'];
|
||||||
$FORUMTHREADSTYLE = $FORUM_VIEWTOPIC_TEMPLATE['thread'];
|
$FORUMTHREADSTYLE = $FORUM_VIEWTOPIC_TEMPLATE['thread'];
|
||||||
$FORUMEND = $FORUM_VIEWTOPIC_TEMPLATE['end'];
|
$FORUMEND = $FORUM_VIEWTOPIC_TEMPLATE['end'];
|
||||||
@@ -615,7 +616,7 @@ require_once (HEADERF);
|
|||||||
|
|
||||||
if ($forum->prefs->get('enclose'))
|
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'));
|
$ns->tablerender($forumTitle, $mes->render().$forumstring, array('forum_viewtopic', 'main'));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -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.
|
// New in v2.x - requires a bootstrap theme be loaded.
|
||||||
|
|
||||||
|
$FORUM_VIEWTOPIC_TEMPLATE['caption'] = "";
|
||||||
$FORUM_VIEWTOPIC_TEMPLATE['start'] = "
|
$FORUM_VIEWTOPIC_TEMPLATE['start'] = "
|
||||||
|
|
||||||
<div class='row-fluid'>
|
<div class='row-fluid'>
|
||||||
|
Reference in New Issue
Block a user