Add mobile view for purchase guide

This commit is contained in:
Michael RICOIS 2017-11-21 09:28:02 +01:00
parent 8b0a6077da
commit 097ecc3937
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{include file="$tpl_dir./breadcrumb.tpl"}
<h1 class="title"><span>Guide d'achat</span></h1>
<div class="rte{if $content_only} content_only{/if}">
<div class="row">
{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 style="clear:both;"><span>{$c.meta_title}</span></div>
</a>
</div>
{/foreach}
</div>
</div>

View File

@ -0,0 +1,35 @@
{include file="$tpl_dir./breadcrumb.tpl"}
<h1 class="title"><span>Guide d'achat - {$categoryTitle}</span></h1>
<div class="content-guide rte{if $content_only} content_only{/if}">
{if $subcategoryTitle !== null}
<div class="guide-intro">
<div class="guide-intro-left">
<h2 class="title">{$subcategoryTitle}</h2>
<div>
<p>{$subcategoryContent}</p>
</div>
</div>
</div>
<div class="guide-content">
<div class="guide-content-menu">
<ul>
{foreach from=$postList item=p}
<li{if $p.id_guide_post==$id_guide_post_select} class="selected"{/if}>
<a href="{$base_dir_ssl}guide/{$categoryRewrite}/{$subcategoryRewrite}/{$p.id_guide_post}-{$p.link_rewrite}">{$p.meta_title}</a>
</li>
{/foreach}
</ul>
</div>
<div class="guide-content-txt">
<h4>{$postTitle}</h4>
<div>{$postContent}</div>
</div>
</div>
{/if}
</div>