From 1e6bf9df94d53e857e88667cb14e74fb048d9e20 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 15 Jun 2019 10:20:32 -0700 Subject: [PATCH] Added Forum breadcrumbs to {---BREADCRUMB---} --- e107_plugins/forum/forum.php | 4 ++++ e107_plugins/forum/forum_class.php | 1 + e107_plugins/forum/forum_stats.php | 1 + 3 files changed, 6 insertions(+) diff --git a/e107_plugins/forum/forum.php b/e107_plugins/forum/forum.php index fed103c4a..2ed6f7466 100644 --- a/e107_plugins/forum/forum.php +++ b/e107_plugins/forum/forum.php @@ -326,6 +326,7 @@ $breadarray = array( array('text'=> $forum->prefs->get('title'), 'url' => e107::url('forum','index') ) ); +e107::breadcrumb($breadarray); $sc->wrapper('forum/main/start'); $forum_main_start = $tp->parseTemplate($FORUM_MAIN_START, true, $sc); @@ -383,6 +384,7 @@ function forum_rules($action = 'check') ); $text = e107::getForm()->breadcrumb($breadarray); + e107::breadcrumb($breadarray); // assign to {---BREADCRUMB---} } $text .= "
".$rules_text."
"; @@ -495,6 +497,8 @@ function forum_track() array('text'=>LAN_FORUM_0030, 'url'=>null) ); + e107::breadcrumb($breadarray); // assign to {---BREADCRUMB---} + $data['FORUM_BREADCRUMB'] = e107::getForm()->breadcrumb($breadarray); } diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index c6ea29f83..6cae1efe7 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -2397,6 +2397,7 @@ class e107forum if(deftrue('BOOTSTRAP')) { $BREADCRUMB = $frm->breadcrumb($breadcrumb); + e107::breadcrumb($breadcrumb); // assign to {---BREADCRUMB---} } diff --git a/e107_plugins/forum/forum_stats.php b/e107_plugins/forum/forum_stats.php index 2a43b099d..0bdfdf413 100644 --- a/e107_plugins/forum/forum_stats.php +++ b/e107_plugins/forum/forum_stats.php @@ -462,6 +462,7 @@ class forumStats ); $text = $frm->breadcrumb($breadarray); + e107::breadcrumb($breadarray); // assign to {---BREADCRUMB---} $text = "
". $text . e107::getForm()->tabs($tabs)."
";