Skip to content

Commit

Permalink
MERC-4842 Add additional regions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Chu committed May 7, 2019
1 parent c7b95c5 commit 045206e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
5 changes: 0 additions & 5 deletions templates/pages/amp/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
<h1 class="categoryView-title">
{{category.name}}
</h1>

{{!-- Category descriptions should include valid AMP markup. Read more about what are valid components: https://www.ampproject.org/docs/reference/components

{{{category.description}}}
--}}
</div>
<main class="page-content" id="product-listing-container">
{{#if category.products}}
Expand Down
2 changes: 2 additions & 0 deletions templates/pages/brand.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</div>
{{/if}}
<h1 class="page-heading">{{brand.name}}</h1>
{{{region name="brand_below_header"}}}
<div class="page">
<aside class="page-sidebar" id="faceted-search-container">
{{> components/brand/sidebar}}
Expand All @@ -32,6 +33,7 @@ <h1 class="page-heading">{{brand.name}}</h1>
{{else}}
<p>{{lang 'brands.no_products'}}</p>
{{/if}}
{{{region name="brand_below_content"}}}
</main>
</div>

Expand Down
2 changes: 2 additions & 0 deletions templates/pages/brands.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<main class="page">
<h1 class="page-heading">{{lang 'brand.label'}}</h1>
{{{region name="brands_below_header"}}}
<ul class="brandGrid">
{{#each brands}}
<li class="brand">
Expand All @@ -29,6 +30,7 @@ <h4 class="card-title">
{{/each}}
</ul>
{{> components/common/paginator pagination.brands}}
{{{region name="brands_below_content"}}}
</main>
{{/partial}}
{{> layout/base}}
2 changes: 2 additions & 0 deletions templates/pages/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{{/if}}
{{#unless theme_settings.hide_category_page_heading }}
<h1 class="page-heading">{{category.name}}</h1>
{{{region name="category_below_header"}}}
{{/unless}}
{{{category.description}}}
<div class="page">
Expand All @@ -47,6 +48,7 @@ <h1 class="page-heading">{{category.name}}</h1>
{{else}}
<p>{{lang 'categories.no_products'}}</p>
{{/if}}
{{{region name="category_below_content"}}}
</main>
</div>

Expand Down
5 changes: 5 additions & 0 deletions templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
limit: {{theme_settings.homepage_blog_posts_count}}
---
{{#partial "hero"}}
{{{region name="menu_bottom"}}}
{{#if carousel}}
{{> components/carousel arrows=theme_settings.homepage_show_carousel_arrows}}
{{/if}}
{{{region name="home_below_carousel"}}}
{{/partial}}

{{#partial "page"}}
Expand All @@ -27,14 +29,17 @@
{{#if products.featured}}
{{> components/products/featured products=products.featured columns=theme_settings.homepage_featured_products_column_count}}
{{/if}}
{{{region name="home_below_featured"}}}

{{#if products.top_sellers}}
{{> components/products/top products=products.top_sellers columns=theme_settings.homepage_top_products_column_count}}
{{/if}}
{{{region name="home_below_top"}}}

{{#if products.new}}
{{> components/products/new products=products.new columns=theme_settings.homepage_new_products_column_count}}
{{/if}}
{{{region name="home_below_new"}}}
</div>
{{/partial}}
{{> layout/base}}
2 changes: 2 additions & 0 deletions templates/pages/product.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<div itemscope itemtype="http://schema.org/Product">
{{> components/products/product-view schema=true }}

{{{region name="product_below_content"}}}

{{#if product.videos.list.length}}
{{> components/products/videos product.videos}}
{{/if}}
Expand Down
3 changes: 2 additions & 1 deletion templates/pages/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,13 @@ <h5 class="suggestion-title">{{lang 'forms.search.suggestions.title'}}</h5>
</ul>
{{> components/common/paginator pagination.content_results reload=true}}
</div>

{{/if}}

<div id="product-listing-container" {{#if forms.search.section '!=' 'product'}}class="u-hiddenVisually"{{/if}}>
{{> components/search/product-listing}}
</div>

{{{region name="search_below_content"}}}
</main>
</section>

Expand Down

0 comments on commit 045206e

Please sign in to comment.