// fix tab display and subtabbing
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8750 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -452,11 +452,15 @@ if ($adminObj = checkingTab($tab))
|
|||||||
$tabs = array_reverse($tabs);
|
$tabs = array_reverse($tabs);
|
||||||
$bread = '';
|
$bread = '';
|
||||||
foreach ($tabs AS $key => $item)
|
foreach ($tabs AS $key => $item)
|
||||||
$bread .= ' <img src="../img/admin/separator_breadcrum.png" style="margin-right:5px" alt=">" />
|
{
|
||||||
'.((sizeof($tabs) - 1 > $key)
|
$bread .= ' <img src="../img/admin/separator_breadcrum.png" style="margin-right:5px" alt=">" />';
|
||||||
? '<a href="?tab='.$item['class_name'].'&token='.Tools::getAdminToken($item['class_name'].intval($item['id_tab']).(int)Context::getContext()->employee->id).'">'
|
if (count($tabs) - 1 > $key)
|
||||||
: '').'
|
$bread .= '<a href="?tab='.$item['class_name'].'&token='.Tools::getAdminToken($item['class_name'].intval($item['id_tab']).(int)Context::getContext()->employee->id).'">';
|
||||||
'.$item['name'].((sizeof($tabs) - 1 > $key) ? '</a>' : '');
|
|
||||||
|
$bread .= $item['name'];
|
||||||
|
if (count($tabs) - 1 > $key)
|
||||||
|
$bread .= '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
// @TODO : a way to desactivate this feature
|
// @TODO : a way to desactivate this feature
|
||||||
echo'<script type="text/javascript">
|
echo'<script type="text/javascript">
|
||||||
|
|||||||
+1
-1
@@ -259,7 +259,7 @@ class TabCore extends ObjectModel
|
|||||||
$tabs[]= $adminTab;
|
$tabs[]= $adminTab;
|
||||||
if ($adminTab['id_parent'] > 0)
|
if ($adminTab['id_parent'] > 0)
|
||||||
{
|
{
|
||||||
$tabs[] = Tab::recursiveTab($adminTab['id_parent'], $tabs);
|
$tabs = Tab::recursiveTab($adminTab['id_parent'], $tabs);
|
||||||
}
|
}
|
||||||
return $tabs;
|
return $tabs;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user