{strip} {function brand_plugin_category_tree categories=[]} {foreach $categories as $category}
  • {$category.name} {if count($category.children)} {/if}
  • {/foreach} {/function} {$pages_tabs}
    {$brand_image_url = $brand.image_url} {if !$brand_image_url} {$brand_image_url = $wa_app_static_url|cat:'img/image-dummy.png'} {/if}
    {$brand.name}
    {$description}
    {$column_categories = shopBrandViewHelper::groupCategoriesPlainTreeByColumns($brand_categories_plain_tree, 2)}
    {foreach $column_categories as $column => $categories} {$tree = shopBrandViewHelper::toTree($categories)}
      {call brand_plugin_category_tree categories=$tree}
    {/foreach}
    {/strip}