// #PSFV-94 AdminCategories breadcrumb in lead-in,

// bugfix helperList 

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9882 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti committed 2011-11-04 11:10:12 +00:00
1 parent 845d741024
commit 56e698165c
2 files changed
+21 -10

No files matched your search

@@ -0,0 +1,14 @@
{extends file="helper/list/list_header.tpl"}
{block name=leadin}
<div class="cat_bar2">
{if count($categories_tree) == 0}
&nbsp;<img src="../img/admin/home.gif" alt="" /> {l s='Home'}
{else}
&nbsp;<img src="../img/admin/home.gif" alt="" /> {l s='Home'}&nbsp;>&nbsp;
{foreach $categories_tree key=key item=category}
{$category.name}
{/foreach}
{/if}
</div>
{/block}
+7 -10
View File
@@ -319,7 +319,7 @@ class HelperListCore extends Helper
} }
} }
$this->content_tpl->assign(array( $this->content_tpl->assign(array_merge($this->tpl_vars, array(
'shop_link_type' => $this->shopLinkType, 'shop_link_type' => $this->shopLinkType,
'name' => isset($name) ? $name : null, 'name' => isset($name) ? $name : null,
'is_dnd_identifier' => $this->is_dnd_identifier, 'is_dnd_identifier' => $this->is_dnd_identifier,
@@ -344,8 +344,7 @@ class HelperListCore extends Helper
'has_actions' => !empty($this->actions), 'has_actions' => !empty($this->actions),
'has_bulk_actions' => !empty($this->bulk_actions), 'has_bulk_actions' => !empty($this->bulk_actions),
'list_skip_actions' => $this->list_skip_actions, 'list_skip_actions' => $this->list_skip_actions,
'tpl_vars' => $this->tpl_vars )));
));
return $this->content_tpl->fetch(); return $this->content_tpl->fetch();
} }
@@ -565,8 +564,8 @@ class HelperListCore extends Helper
$params['value'] = $value; $params['value'] = $value;
$this->fieldsDisplay[$key] = $params; $this->fieldsDisplay[$key] = $params;
} }
$this->header_tpl->assign(array( $this->header_tpl->assign(array_merge($this->tpl_vars, array(
'table' => $this->table, 'table' => $this->table,
'currentIndex' => $this->currentIndex, 'currentIndex' => $this->currentIndex,
'action' => $action, 'action' => $action,
@@ -597,8 +596,7 @@ class HelperListCore extends Helper
'back' => Tools::getValue('back'), 'back' => Tools::getValue('back'),
'no_back' => $this->no_back, 'no_back' => $this->no_back,
'tpl_vars' => $this->tpl_vars, )));
));
return $this->header_tpl->fetch(); return $this->header_tpl->fetch();
} }
@@ -608,7 +606,7 @@ class HelperListCore extends Helper
*/ */
public function displayListFooter($token = null) public function displayListFooter($token = null)
{ {
$this->footer_tpl->assign(array( $this->footer_tpl->assign(array_merge($this->tpl_vars, array(
'token' => $this->token, 'token' => $this->token,
'table' => $this->table, 'table' => $this->table,
'current' => $this->currentIndex, 'current' => $this->currentIndex,
@@ -617,8 +615,7 @@ class HelperListCore extends Helper
'back' => Tools::getValue('back'), 'back' => Tools::getValue('back'),
'no_back' => $this->no_back, 'no_back' => $this->no_back,
'tpl_vars' =>$this->tpl_vars )));
));
return $this->footer_tpl->fetch(); return $this->footer_tpl->fetch();
} }