Skip to content

Commit

Permalink
CRO-314: also includes CRO-179. Hide brands in the footer if
Browse files Browse the repository at this point in the history
there are no brands, hide Info section in the footer if address isn't provided
  • Loading branch information
bc-nataliya committed Jul 26, 2017
1 parent 5577d65 commit bf8d1c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/components/common/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h5 class="footer-info-heading">{{lang 'footer.categories'}}</h5>
</ul>
</article>

{{#if theme_settings.shop_by_brand_show_footer}}
{{#and theme_settings.shop_by_brand_show_footer shop_by_brand.length}}
<article class="footer-info-col footer-info-col--small" data-section-type="footer-brands">
<h5 class="footer-info-heading">{{lang 'footer.brands'}}</h5>
<ul class="footer-info-list">
Expand All @@ -54,15 +54,17 @@ <h5 class="footer-info-heading">{{lang 'footer.brands'}}</h5>
<li><a href="{{urls.brands}}">{{lang 'common.view_all'}}</a></li>
</ul>
</article>
{{/if}}
{{/and}}

{{#if settings.address}}
<article class="footer-info-col footer-info-col--small" data-section-type="storeInfo">
<h5 class="footer-info-heading">{{lang 'footer.info'}}</h5>
<address>{{nl2br settings.address}}</address>
{{#if settings.phone_number}}
<strong>{{lang 'footer.call_us' phone_number=settings.phone_number}}</strong>
{{/if}}
</article>
{{/if}}

<article class="footer-info-col" data-section-type="newsletterSubscription">
{{#if settings.show_newsletter_box}}
Expand Down

0 comments on commit bf8d1c6

Please sign in to comment.