mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
Issue #255 - Partial fix for empty sidebar menu.
This commit is contained in:
@@ -1087,6 +1087,10 @@ if(e_ADMIN_AREA)
|
||||
else
|
||||
{
|
||||
require_once (THEME.'theme.php');
|
||||
if(isset($SC_WRAPPER))
|
||||
{
|
||||
e107::scStyle($SC_WRAPPER);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -17,9 +17,7 @@ function navigation_shortcode($parm='')
|
||||
$data = $nav->initData($category);
|
||||
// $data = $nav->collection($category);
|
||||
|
||||
if($data)
|
||||
{
|
||||
return $nav->render($data, $template);
|
||||
}
|
||||
return $nav->render($data, $template);
|
||||
|
||||
}
|
||||
|
@@ -1371,7 +1371,10 @@ class e_navigation
|
||||
|
||||
$sc = e107::getScBatch('navigation');
|
||||
$sc->template = $template;
|
||||
$ret = $template['start'];
|
||||
$head = $template['start'];
|
||||
$foot = $template['end'];
|
||||
$ret = "";
|
||||
|
||||
foreach ($data as $_data)
|
||||
{
|
||||
$sc->setVars($_data);
|
||||
@@ -1379,10 +1382,8 @@ class e_navigation
|
||||
$itemTmpl = count($_data['link_sub']) > 0 ? $template['item_submenu'.$active] : $template['item'.$active];
|
||||
$ret .= e107::getParser()->parseTemplate($itemTmpl, TRUE);
|
||||
}
|
||||
|
||||
$ret .= $template['end'];
|
||||
|
||||
return $ret;
|
||||
|
||||
return ($ret != '') ? $head.$ret.$foot : '';
|
||||
}
|
||||
|
||||
|
||||
|
@@ -118,10 +118,11 @@ function tablestyle($caption, $text, $mode='')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// $SC_WRAPPER['NAVIGATION=side'] = '<div class="well sidebar-nav">{---}</div><!--/.well -->'; //FIXME
|
||||
|
||||
// TODO Convert to : default-home and default-other layouts.
|
||||
|
||||
|
||||
$HEADER['default'] = '
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
@@ -144,10 +145,7 @@ $HEADER['default'] = '
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
{NAVIGATION=side}
|
||||
|
||||
</div><!--/.well -->
|
||||
{NAVIGATION=side}
|
||||
{SETSTYLE=menu}
|
||||
{MENU=1}
|
||||
</div><!--/span-->
|
||||
|
Reference in New Issue
Block a user