From 22dcaf246c3ebfd0b06db9e6bf9aeef955a65517 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Thu, 10 Oct 2013 15:36:50 +0200 Subject: [PATCH] // Add icon and specific title to list --- .../themes/default/template/helpers/list/list_header.tpl | 4 ++-- classes/helper/HelperList.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin-dev/themes/default/template/helpers/list/list_header.tpl b/admin-dev/themes/default/template/helpers/list/list_header.tpl index d8ba92952..ca389a060 100644 --- a/admin-dev/themes/default/template/helpers/list/list_header.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_header.tpl @@ -77,7 +77,7 @@ {block name="override_form_extra"}{/block}
- {if is_array($title)}{$title|end}{else}{$title}{/if} + {if isset($icon)} {/if}{if is_array($title)}{$title|end}{else}{$title}{/if} {if isset($toolbar_btn) && count($toolbar_btn) >0} {foreach from=$toolbar_btn item=btn key=k} @@ -177,7 +177,7 @@ {/if} {if $simple_header}
-

{if is_array($title)}{$title|end}{else}{$title}{/if}

+

{if isset($icon)} {/if}{if is_array($title)}{$title|end}{else}{$title}{/if}

{/if}
header_tpl->assign(array_merge($this->tpl_vars, array( - 'title' => $this->title, + 'title' => array_key_exists('title', $this->tpl_vars) ? $this->tpl_vars['title'] : $this->title, 'show_filters' => (count($this->_list) <= 1 && !$has_value) ? false : true, 'filters_has_value' => $has_value, 'show_toolbar' => $this->show_toolbar,