Permalink
Browse files

Merge pull request #2502 from roadster31/hook-fix

Added category and brand ID in sidebar hooks
  • Loading branch information...
gillesbourgeat committed May 25, 2018
2 parents 6b84af3 + 618266a commit b060380a941b271d21dc8d0b5549abb727e6c998
@@ -1,6 +1,7 @@
{hook name="brand.sidebar-top"}
{$brand_id = {brand attr="id"}}
{hook name="brand.sidebar-top" brand=$brand_id}
{ifhook rel="brand.sidebar-body"}
{hook name="brand.sidebar-body"}
{hook name="brand.sidebar-body" brand=$brand_id}
{/ifhook}
{elsehook rel="brand.sidebar-body"}
<section id="brands" class="block block-nav" role="navigation" aria-labelledby="brands-label">
@@ -9,11 +10,11 @@
<nav class="nav-brands">
<ul id="brand" class="accordion">
{loop name="brands-list" type="brand"}
<li><a href="{$URL nofilter}">{$TITLE} ({count type="product" brand="{$ID}"})</a></li>
<li><a href="{$URL nofilter}">{$TITLE} ({count type="product" brand={$ID}})</a></li>
{/loop}
</ul>
</nav>
</div>
</section>
{/elsehook}
{hook name="brand.sidebar-bottom"}
{hook name="brand.sidebar-bottom" brand=$brand_id}

This file was deleted.

Oops, something went wrong.
@@ -1,6 +1,8 @@
{hook name="category.sidebar-top"}
{$category_id = {category attr="id"}}
{hook name="category.sidebar-top" category=$category_id}
{ifhook rel="category.sidebar-body"}
{hook name="category.sidebar-body"}
{hook name="category.sidebar-body" category=$category_id}
{/ifhook}
{elsehook rel="category.sidebar-body"}
<section id="categories" class="block block-nav" role="navigation" aria-labelledby="categories-label">
@@ -71,4 +73,4 @@ <h3 class="block-title" id="categories-label">{intl l="Categories"}</h3>
</div>
</section>
{/elsehook}
{hook name="category.sidebar-bottom"}
{hook name="category.sidebar-bottom" category=$category_id}

0 comments on commit b060380

Please sign in to comment.