diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index aae32068f2e..42007a1aad0 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -3816,18 +3816,21 @@ EOD; * @return string */ public function more_menu($content, $navbarstyle) { + $tabs = ($navbarstyle == 'nav-tabs'); if (is_object($content)) { if (!isset($content->children) || count($content->children) == 0) { return false; } return $this->render_from_template('core/moremenu', (object) [ 'nodecollection' => $content, - 'navbarstyle' => $navbarstyle + 'navbarstyle' => $navbarstyle, + 'tabs' => $tabs ]); } else { return $this->render_from_template('core/moremenu', (object) [ 'nodearray' => $content, - 'navbarstyle' => $navbarstyle + 'navbarstyle' => $navbarstyle, + 'tabs' => $tabs ]); } } diff --git a/lib/templates/moremenu.mustache b/lib/templates/moremenu.mustache index 3e41d1f1c50..9111651ed95 100644 --- a/lib/templates/moremenu.mustache +++ b/lib/templates/moremenu.mustache @@ -45,7 +45,7 @@ } }}