This commit is contained in:
Michael RICOIS 2017-11-21 16:13:24 +01:00
parent 1234f7848d
commit 405708b9bc
3 changed files with 7 additions and 5 deletions

View File

@ -281,7 +281,7 @@ class PurchaseGuide extends Module
$id_main_category = $id_category;
$id_child_category = 0;
} else {
$mainCategory = $model->getParent($model->id_parent, $cookie->id_lang);
$mainCategory = $model->getCategoryLang($model->id_parent, $cookie->id_lang);
$id_main_category = $mainCategory['id_guide_category'];
$id_child_category = $id_category;
}

View File

@ -7,8 +7,8 @@
{foreach from=$categories item=c}
<div class="guide-content-category">
<a href="guide/{$c.id_guide_category}-{$c.link_rewrite}">
<img alt="{$c.name}" src="./img/purchaseguide/{$c.id_guide_category}.jpg">
<div class="guide-content-category-title"><h4>{$c.meta_title}</h4></div>
<img alt="{if $c.meta_title==''}{$c.name}{else}{$c.meta_title}{/if}" src="./img/purchaseguide/{$c.id_guide_category}.jpg">
<div class="guide-content-category-title"><h4>{$c.name}</h4></div>
</a>
</div>
{/foreach}

View File

@ -1,7 +1,8 @@
<div class="block-guide">
<h4>Guide d'achat</h4>
{foreach from=$menu item=c}
<h5><a{if $c.id_guide_category==$id_guide_category_select_main} class="selected"{/if} href="{$base_dir_ssl}{$c.rewrite}">{$c.name}</a></h5>
<h5><a{if $c.id_guide_category==$id_guide_category_select_main} class="selected"{/if} href="{$base_dir_ssl}{$c.rewrite}">
{$c.name}</a></h5>
{if $c.children|@count > 0}
<ul class="block_content">
{foreach from=$c.children item=children name=loopChild}
@ -15,7 +16,8 @@
{assign var="class" value="selected"}
{/if}
<li class="{$class}">
<a href="{$base_dir_ssl}{$children.rewrite}">{$children.name}</a>
<a href="{$base_dir_ssl}{$children.rewrite}"{if $children.meta_title!=''} alt="{$children.meta_title}"{/if}>
{$children.name}</a>
</li>
{/foreach}
</ul>