Modifs ergo pour masquer la barre latérale (aside)
This commit is contained in:
151
templates/frontOffice/custom/category.html
Normal file
151
templates/frontOffice/custom/category.html
Normal file
@@ -0,0 +1,151 @@
|
||||
{extends file='layout.tpl'}
|
||||
|
||||
{block name="init"}
|
||||
{$category_id={category attr="id"}}
|
||||
{/block}
|
||||
|
||||
|
||||
{* Body Class *}
|
||||
{block name="body-class"}page-category{/block}
|
||||
|
||||
{* Page Title *}
|
||||
{block name='no-return-functions' append}
|
||||
{if $category_id}
|
||||
{loop name="category.seo.title" type="category" id=$category_id limit="1"}
|
||||
{$page_title = $META_TITLE}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* Meta *}
|
||||
{block name="meta"}
|
||||
{if $category_id}
|
||||
{loop name="category.seo.meta" type="category" id=$category_id limit="1"}
|
||||
{include file="includes/meta-seo.html"}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* Feeds *}
|
||||
{block name="feeds"}
|
||||
{if $category_id}
|
||||
<link rel="alternate" type="application/rss+xml" title="{intl l='All products in'} {category attr='title'}" href="{url path="/feed/catalog/%lang/%category_id" lang={lang attr="locale"} category_id={category attr="id"}}" />
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* Breadcrumb *}
|
||||
{block name='no-return-functions' append}
|
||||
{if $category_id}
|
||||
{$breadcrumbs = []}
|
||||
{loop name="category_path" type="category-path" category=$category_id}
|
||||
{$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* Content *}
|
||||
{block name="main-content"}
|
||||
|
||||
{$limit={$smarty.get.limit|default:8}}
|
||||
{$product_page={$smarty.get.page|default:1}}
|
||||
{$product_order={$smarty.get.order|default:'alpha'}}
|
||||
|
||||
{hook name="category.top" category="$category_id"}
|
||||
|
||||
<div class="main row">
|
||||
|
||||
{hook name="category.main-top" category="$category_id"}
|
||||
|
||||
<article class="col-main col-md-12 col-md-push-0 {$smarty.get.mode|default:"grid"}" role="main">
|
||||
|
||||
{hook name="category.content-top" category="$category_id"}
|
||||
|
||||
{if #category_display_detail# && $category_id}
|
||||
<section class="category-description">
|
||||
{loop name="category.description" type="category" id={$category_id} limit="1" }
|
||||
<h1 id="main-label" class="page-header">{category attr="title"}</h1>
|
||||
{loop name="category.image" type="image" source="category" source_id={$ID} width=218 height=146 resize_mode="borders"}
|
||||
<p><img itemprop="image" src="{$IMAGE_URL nofilter}" alt="{$TITLE}"></p>
|
||||
{/loop}
|
||||
{if $DESCRIPTION}
|
||||
<div class="description">
|
||||
{$DESCRIPTION nofilter}
|
||||
</div>
|
||||
{/if}
|
||||
{if $POSTSCRIPTUM}
|
||||
<small class="postscriptum">
|
||||
{$POSTSCRIPTUM}
|
||||
</small>
|
||||
{/if}
|
||||
{/loop}
|
||||
</section>
|
||||
<hr/>
|
||||
{/if}
|
||||
|
||||
{if #category_display_subcategories#}
|
||||
{ifloop rel="subcategories"}
|
||||
<div class="block-links">
|
||||
<div class="block-content">
|
||||
<ul>
|
||||
{loop name="subcategories" type="category" parent=$category_id}
|
||||
<li>
|
||||
<a href="{$URL}">{$TITLE}</a>
|
||||
</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{/ifloop}
|
||||
{/if}
|
||||
|
||||
{ifloop rel="product_list"}
|
||||
{$amount={count type="product" category=$category_id}}
|
||||
|
||||
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={$amount}}
|
||||
|
||||
<div id="category-products">
|
||||
<div class="products-content">
|
||||
<ul class="list-unstyled row">
|
||||
{loop type="product" name="product_list" category=$category_id limit=$limit page=$product_page order=$product_order}
|
||||
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true hasQuickView=true width="218" height="146"}
|
||||
{/loop}
|
||||
</ul>
|
||||
</div>
|
||||
</div><!-- /#category-products -->
|
||||
|
||||
{include file="includes/toolbar.html" toolbar="bottom" amount={$amount}}
|
||||
{/ifloop}
|
||||
|
||||
{elseloop rel="product_list"}
|
||||
<div class="alert alert-warning">
|
||||
{intl l="No products available in this category"}
|
||||
</div>
|
||||
{/elseloop}
|
||||
|
||||
{hook name="category.content-bottom" category="$category_id"}
|
||||
</article>
|
||||
|
||||
<!-- TheCoreDev le 25/03/2021 : On ne veut pas de la barre latérale
|
||||
<aside class="col-left col-md-3 col-md-pull-9" role="complementary" itemscope itemtype="http://schema.org/WPSideBar">
|
||||
{include file="includes/menu.html"}
|
||||
</aside>
|
||||
//-->
|
||||
|
||||
{hook name="category.main-bottom" category="$category_id"}
|
||||
|
||||
</div>
|
||||
{hook name="category.bottom" category="$category_id"}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="stylesheet"}
|
||||
{hook name="category.stylesheet"}
|
||||
{/block}
|
||||
|
||||
{block name="after-javascript-include"}
|
||||
{hook name="category.after-javascript-include"}
|
||||
{/block}
|
||||
|
||||
{block name="javascript-initialization"}
|
||||
{hook name="category.javascript-initialization"}
|
||||
{/block}
|
||||
111
templates/frontOffice/custom/content.html
Normal file
111
templates/frontOffice/custom/content.html
Normal file
@@ -0,0 +1,111 @@
|
||||
{extends file="layout.tpl"}
|
||||
|
||||
{block name='init'}
|
||||
{assign var="content_id" value={content attr="id"}}
|
||||
{/block}
|
||||
|
||||
{* Body Class *}
|
||||
{block name="body-class"}page-content{/block}
|
||||
|
||||
{* Page Title *}
|
||||
{block name='no-return-functions' append}
|
||||
{if {$content_id}}
|
||||
{loop name="content.seo.title" type="content" id={$content_id} limit="1"}
|
||||
{$page_title = $META_TITLE}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* Meta *}
|
||||
{block name="meta"}
|
||||
{if $content_id}
|
||||
{loop name="content.seo.meta" type="content" id=$content_id limit="1"}
|
||||
{include file="includes/meta-seo.html"}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{* Breadcrumb *}
|
||||
{block name='no-return-functions' append}
|
||||
{if $content_id}
|
||||
{$breadcrumbs = []}
|
||||
{loop type="content" name="content-breadcrumb" id=$content_id limit="1"}
|
||||
{loop name="folder_path" type="folder-path" folder={$DEFAULT_FOLDER}}
|
||||
{$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]}
|
||||
{/loop}
|
||||
{$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]}
|
||||
{/loop}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name="main-content"}
|
||||
{if $content_id}
|
||||
{hook name="content.top" content="$content_id"}
|
||||
<div class="main row">
|
||||
{hook name="content.main-top" content="$content_id"}
|
||||
<article id="content-main" class="col-main col-md-12 col-md-push-0" role="main" aria-labelledby="main-label">
|
||||
|
||||
{hook name="content.content-top" content="$content_id"}
|
||||
|
||||
{loop name="blog.content" type="content" id=$content_id limit="1"}
|
||||
<h1 id="main-label" class="page-header">{$TITLE}</h1>
|
||||
{if $CHAPO}
|
||||
<div class="chapo">
|
||||
{$CHAPO}
|
||||
</div>
|
||||
{/if}
|
||||
{if $DESCRIPTION}
|
||||
<div class="description">
|
||||
{$DESCRIPTION nofilter}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{ifloop rel="blog.document"}
|
||||
<div class="documents">
|
||||
<ul>
|
||||
{loop name="blog.document" type="document" content={$ID}}
|
||||
<li><a href="{$DOCUMENT_URL nofilter}" target="_blank">{$TITLE}</a></li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</div>
|
||||
{/ifloop}
|
||||
|
||||
{if $POSTSCRIPTUM}
|
||||
<small class="postscriptum">
|
||||
{$POSTSCRIPTUM}
|
||||
</small>
|
||||
{/if}
|
||||
{/loop}
|
||||
|
||||
{hook name="content.content-bottom" content="$content_id"}
|
||||
|
||||
</article>
|
||||
<!-- TheCoreDev le 25/03/2021 : On ne veut pas de la barre latérale
|
||||
<aside class="col-left col-md-3 col-md-pull-9" role="complementary" itemscope itemtype="http://schema.org/WPSideBar">
|
||||
{include file="includes/asides/articles.html"}
|
||||
</aside>
|
||||
//-->
|
||||
|
||||
{hook name="content.main-bottom" content="$content_id"}
|
||||
</div><!-- /.layout -->
|
||||
{hook name="content.bottom" content="$content_id"}
|
||||
{else}
|
||||
<div class="main">
|
||||
<article id="content-main" class="col-main" role="main" aria-labelledby="main-label">
|
||||
{include file="includes/empty.html"}
|
||||
</article>
|
||||
</div><!-- /.layout -->
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name="stylesheet"}
|
||||
{hook name="content.stylesheet"}
|
||||
{/block}
|
||||
|
||||
{block name="after-javascript-include"}
|
||||
{hook name="content.after-javascript-include"}
|
||||
{/block}
|
||||
|
||||
{block name="javascript-initialization"}
|
||||
{hook name="content.javascript-initialization"}
|
||||
{/block}
|
||||
@@ -180,6 +180,7 @@ GNU General Public License : http://www.gnu.org/licenses/
|
||||
</section>
|
||||
{/ifhook}
|
||||
{elsehook rel="main.footer-top"}
|
||||
<!--
|
||||
<section class="footer-banner">
|
||||
<div class="container">
|
||||
<div class="banner row banner-col-3">
|
||||
@@ -197,7 +198,9 @@ GNU General Public License : http://www.gnu.org/licenses/
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section><!-- /.footer-banner -->
|
||||
</section>
|
||||
//-->
|
||||
<!-- /.footer-banner -->
|
||||
{/elsehook}
|
||||
|
||||
{ifhook rel="main.footer-body"}
|
||||
|
||||
Reference in New Issue
Block a user