mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fixes #952 - Featurebox tabs issue.
This commit is contained in:
parent
e7b18489d5
commit
94686133ce
@ -233,9 +233,8 @@ class fb_main_ui extends e_admin_ui
|
||||
function init()
|
||||
{
|
||||
$categories = array();
|
||||
if(e107::getDb()->db_Select('featurebox_category'))
|
||||
if(e107::getDb()->select('featurebox_category'))
|
||||
{
|
||||
//$categories[0] = LAN_SELECT;
|
||||
while ($row = e107::getDb()->fetch())
|
||||
{
|
||||
$id = $row['fb_category_id'];
|
||||
@ -250,8 +249,8 @@ class fb_main_ui extends e_admin_ui
|
||||
|
||||
unset($menuCat['unassigned']);
|
||||
|
||||
$this->prefs['menu_category']['writeParms'] = $menuCat;
|
||||
$this->prefs['menu_category']['readParms'] = $menuCat;
|
||||
$this->prefs['menu_category']['writeParms']['optArray'] = $menuCat;
|
||||
$this->prefs['menu_category']['readParms']['optArray'] = $menuCat;
|
||||
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@ $text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
|
||||
|
||||
if(!$text)
|
||||
{
|
||||
echo "<div class='alert alert-block'>There are no featurebox items assigned to the ".$type." template</div>";
|
||||
echo "<div class='alert alert-block alert-warning'>There are no featurebox items assigned to the ".$type." template</div>";
|
||||
// e107::getMessage()->addDebug("There are no featurebox items using the ".$type." template");
|
||||
}
|
||||
|
||||
|
@ -227,7 +227,7 @@ $FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['list_start'] = '
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['list_end'] = '
|
||||
</div>
|
||||
<div class="clear"><!-- --></div>
|
||||
</div>
|
||||
|
||||
';
|
||||
// no column support
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['col_start'] = '<div id="tab-{FEATUREBOX_COLSCOUNT}" class="tab-pane {FEATUREBOX_ACTIVE}">';
|
||||
@ -242,7 +242,7 @@ $FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['item_separator'] = '<div class=
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['item_empty'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['nav_start'] = '<ul class="nav nav-tabs">';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['nav_item'] = '<li class="{FEATUREBOX_ACTIVE}"><a data-toggle="tab" href="#tab-{FEATUREBOX_COUNTER}">{FEATUREBOX_TITLE}</a></li>';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['nav_item'] = '<li class="{FEATUREBOX_ACTIVE}"><a data-toggle="tab" href="#tab-{FEATUREBOX_COLSCOUNT}">{FEATUREBOX_TITLE}</a></li>';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['nav_end'] = '</ul>';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['bootstrap_tabs']['nav_separator'] = '';
|
||||
//<div class="e-bootstrap_tabs">
|
||||
|
Loading…
x
Reference in New Issue
Block a user