add page View All
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||||
|
|
||||||
<route id="home" path="/" >
|
<route id="home" path="/">
|
||||||
<default key="_controller">Thelia\Controller\Front\DefaultController::noAction</default>
|
<default key="_controller">Thelia\Controller\Front\DefaultController::noAction</default>
|
||||||
<default key="_view">index</default>
|
<default key="_view">index</default>
|
||||||
</route>
|
</route>
|
||||||
@@ -16,6 +16,11 @@
|
|||||||
<default key="_view">search</default>
|
<default key="_view">search</default>
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
|
<route id="view_all" path="/view_all" methods="get">
|
||||||
|
<default key="_controller">Thelia\Controller\Front\DefaultController::noAction</default>
|
||||||
|
<default key="_view">view_all</default>
|
||||||
|
</route>
|
||||||
|
|
||||||
<!-- Customer routes : Register -->
|
<!-- Customer routes : Register -->
|
||||||
<route id="customer.create.process" path="/register" methods="post">
|
<route id="customer.create.process" path="/register" methods="post">
|
||||||
<default key="_controller">Thelia\Controller\Front\CustomerController::createAction</default>
|
<default key="_controller">Thelia\Controller\Front\CustomerController::createAction</default>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<section id="products-new">
|
<section id="products-new">
|
||||||
<div class="products-heading">
|
<div class="products-heading">
|
||||||
<h2>{intl l="Latest"} <a href="#latest" class="btn-all">{intl l="+ View All"}</a></h2>
|
<h2>{intl l="Latest"} <a href="{url path="/view_all" type="new"}" class="btn-all">{intl l="+ View All"}</a></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="products-content">
|
<div class="products-content">
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
|
|
||||||
<section id="products-offer">
|
<section id="products-offer">
|
||||||
<div class="products-heading">
|
<div class="products-heading">
|
||||||
<h2>{intl l="Offers"} <a href="#offer" class="btn-all">{intl l="+ View All"}</a></h2>
|
<h2>{intl l="Offers"} <a href="{url path="/view_all" type="offers"}" class="btn-all">{intl l="+ View All"}</a></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="products-content">
|
<div class="products-content">
|
||||||
|
|||||||
58
templates/default/view_all.html
Normal file
58
templates/default/view_all.html
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
|
|
||||||
|
{block name="body-class"}page-view-all{/block}
|
||||||
|
|
||||||
|
{* Breadcrumb *}
|
||||||
|
{block name='no-return-functions' append}
|
||||||
|
{$breadcrumbs = [
|
||||||
|
['title' => {intl l="View all"}, 'url'=>{url path="/view_all"}]
|
||||||
|
]}
|
||||||
|
{/block}
|
||||||
|
|
||||||
|
{block name="main-content"}
|
||||||
|
<div class="main">
|
||||||
|
|
||||||
|
{$limit={$smarty.get.limit|default:8}}
|
||||||
|
{$product_page={$smarty.get.page|default:1}}
|
||||||
|
{$product_order={$smarty.get.order|default:'alpha'}}
|
||||||
|
|
||||||
|
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main" aria-labelledby="main-label">
|
||||||
|
|
||||||
|
{if $smarty.get.type == "new"}
|
||||||
|
<h1 id="main-label" class="page-header">{intl l="View all"} {$smarty.get.type} {intl l="products"}</h1>
|
||||||
|
{else}
|
||||||
|
<h1 id="main-label" class="page-header">{intl l="View all"} {intl l="offers"}</h1>
|
||||||
|
{/if}
|
||||||
|
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order}
|
||||||
|
<div id="category-products">
|
||||||
|
<div class="products-content">
|
||||||
|
{ifloop rel="product_list"}
|
||||||
|
<ul class="product-col-3">
|
||||||
|
{if $smarty.get.type == "new"}
|
||||||
|
{loop type="product" name="product_list" limit=$limit page=$product_page order=$product_order}
|
||||||
|
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="700" height="320"}
|
||||||
|
{/loop}
|
||||||
|
{else}
|
||||||
|
{loop type="product" name="product_list" promo="yes" limit=$limit page=$product_page order=$product_order}
|
||||||
|
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="700" height="320"}
|
||||||
|
{/loop}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
{/ifloop}
|
||||||
|
{elseloop rel="product_list"}
|
||||||
|
<h2 class="text-center">{intl l="No results found"} </h2>
|
||||||
|
{/elseloop}
|
||||||
|
</div>
|
||||||
|
</div><!-- /#category-products -->
|
||||||
|
{ifloop rel="product_list"}
|
||||||
|
{include file="includes/toolbar.html" toolbar="bottom"}
|
||||||
|
{/ifloop}
|
||||||
|
</article>
|
||||||
|
|
||||||
|
</div><!-- /.layout -->
|
||||||
|
{/block}
|
||||||
|
|
||||||
|
{block name="after-javascript-include"}{/block}
|
||||||
Reference in New Issue
Block a user