// 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:
mMarinetti
2011-09-23 15:45:09 +00:00
parent 01d99a4d58
commit 4f5b1dd933
2 changed files with 10 additions and 6 deletions
+9 -5
View File
@@ -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="&gt;" /> {
'.((sizeof($tabs) - 1 > $key) $bread .= ' <img src="../img/admin/separator_breadcrum.png" style="margin-right:5px" alt="&gt;" />';
? '<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
View File
@@ -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;
} }