From 638f59eb8f1231f50fe16d45be2c63d10ddbde85 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Thu, 25 Mar 2021 13:48:36 +0100 Subject: [PATCH] =?UTF-8?q?Modifs=20ergo=20pour=20masquer=20la=20barre=20l?= =?UTF-8?q?at=C3=A9rale=20(aside)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/frontOffice/custom/category.html | 151 +++++++++++++++++++++ templates/frontOffice/custom/content.html | 111 +++++++++++++++ templates/frontOffice/custom/layout.tpl | 5 +- 3 files changed, 266 insertions(+), 1 deletion(-) create mode 100644 templates/frontOffice/custom/category.html create mode 100644 templates/frontOffice/custom/content.html diff --git a/templates/frontOffice/custom/category.html b/templates/frontOffice/custom/category.html new file mode 100644 index 00000000..fb9b98ec --- /dev/null +++ b/templates/frontOffice/custom/category.html @@ -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} + +{/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"} + +
+ + {hook name="category.main-top" category="$category_id"} + +
+ + {hook name="category.content-top" category="$category_id"} + + {if #category_display_detail# && $category_id} +
+ {loop name="category.description" type="category" id={$category_id} limit="1" } +

{category attr="title"}

+ {loop name="category.image" type="image" source="category" source_id={$ID} width=218 height=146 resize_mode="borders"} +

{$TITLE}

+ {/loop} + {if $DESCRIPTION} +
+ {$DESCRIPTION nofilter} +
+ {/if} + {if $POSTSCRIPTUM} + + {$POSTSCRIPTUM} + + {/if} + {/loop} +
+
+ {/if} + + {if #category_display_subcategories#} + {ifloop rel="subcategories"} + + {/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}} + +
+
+
    + {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} +
+
+
+ + {include file="includes/toolbar.html" toolbar="bottom" amount={$amount}} + {/ifloop} + + {elseloop rel="product_list"} +
+ {intl l="No products available in this category"} +
+ {/elseloop} + + {hook name="category.content-bottom" category="$category_id"} +
+ + + + {hook name="category.main-bottom" category="$category_id"} + +
+ {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} diff --git a/templates/frontOffice/custom/content.html b/templates/frontOffice/custom/content.html new file mode 100644 index 00000000..3b337aab --- /dev/null +++ b/templates/frontOffice/custom/content.html @@ -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"} +
+ {hook name="content.main-top" content="$content_id"} +
+ + {hook name="content.content-top" content="$content_id"} + + {loop name="blog.content" type="content" id=$content_id limit="1"} +

{$TITLE}

+ {if $CHAPO} +
+ {$CHAPO} +
+ {/if} + {if $DESCRIPTION} +
+ {$DESCRIPTION nofilter} +
+ {/if} + + {ifloop rel="blog.document"} +
+
    + {loop name="blog.document" type="document" content={$ID}} +
  • {$TITLE}
  • + {/loop} +
+
+ {/ifloop} + + {if $POSTSCRIPTUM} + + {$POSTSCRIPTUM} + + {/if} + {/loop} + + {hook name="content.content-bottom" content="$content_id"} + +
+ + + {hook name="content.main-bottom" content="$content_id"} +
+ {hook name="content.bottom" content="$content_id"} +{else} +
+
+ {include file="includes/empty.html"} +
+
+{/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} diff --git a/templates/frontOffice/custom/layout.tpl b/templates/frontOffice/custom/layout.tpl index ec123cae..e894543b 100644 --- a/templates/frontOffice/custom/layout.tpl +++ b/templates/frontOffice/custom/layout.tpl @@ -180,6 +180,7 @@ GNU General Public License : http://www.gnu.org/licenses/ {/ifhook} {elsehook rel="main.footer-top"} + + + //--> + {/elsehook} {ifhook rel="main.footer-body"}