1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Added Breadcrumb to first page of forum.

This commit is contained in:
Cameron
2013-06-23 19:33:42 -07:00
parent 709c1a80a6
commit 6b53d47ba4
2 changed files with 13 additions and 1 deletions

View File

@@ -335,6 +335,9 @@ function parse_forum($f, $restricted_string = '')
$fVars->FORUMSUBFORUMS = ''; $fVars->FORUMSUBFORUMS = '';
$badgeReplies = ($f['forum_replies']) ? "badge-info" : ""; $badgeReplies = ($f['forum_replies']) ? "badge-info" : "";
$badgeThreads = ($f['forum_threads']) ? "badge-info" : ""; $badgeThreads = ($f['forum_threads']) ? "badge-info" : "";
@@ -494,6 +497,14 @@ if (e_QUERY == 'new')
} }
} }
$frm = e107::getForm();
$breadarray = array(
array('text'=> $forum->prefs->get('title'), 'url' => e_REQUEST_URL )
);
$fVars->FORUM_BREADCRUMB = $frm->breadcrumb($breadarray);
$forum_main_start = $tp->simpleParse($FORUM_MAIN_START, $fVars); $forum_main_start = $tp->simpleParse($FORUM_MAIN_START, $fVars);
$forum_main_end = $tp->simpleParse($FORUM_MAIN_END, $fVars); $forum_main_end = $tp->simpleParse($FORUM_MAIN_END, $fVars);

View File

@@ -79,7 +79,8 @@ $FORUM_TRACK_END = "<br />TRACK-END";
// New in v2.x - requires a bootstrap theme be loaded. // New in v2.x - requires a bootstrap theme be loaded.
$FORUM_TEMPLATE['main-start'] = "<div class='row'> $FORUM_TEMPLATE['main-start'] = "<div class='row-fluid'>
{FORUM_BREADCRUMB}
<div class='right'> <div class='right'>
{SEARCH} {SEARCH}
</div> </div>