{** block-description:vendor_logos_and_product_count **} {$show_location = $block.properties.show_location|default:"N" == "Y"} {$show_rating = $block.properties.show_rating|default:"N" == "Y"} {$show_vendor_rating = $block.properties.show_vendor_rating|default:"N" == "Y"} {$show_products_count = $block.properties.show_products_count|default:"N" == "Y"} {$columns=$block.properties.number_of_columns} {$obj_prefix="`$block.block_id`000"} {if $items} {split data=$items size=$columns|default:"5" assign="splitted_companies"} {math equation="100 / x" x=$columns|default:"5" assign="cell_width"}
{strip} {foreach from=$splitted_companies item="scompanies" name="scomp"} {foreach from=$scompanies item="company" name="scompanies"}
{if $company} {if $company.logos} {$show_logo = true} {else} {$show_logo = false} {/if} {$obj_id=$company.company_id} {$obj_id_prefix="`$obj_prefix``$company.company_id`"} {include file="common/company_data.tpl" company=$company show_links=true show_logo=$show_logo show_location=$show_location}
{hook name="companies:featured_vendors"} {$location="location_`$obj_id`"} {if $show_location && $smarty.capture.$location|trim} {/if} {$rating="rating_`$obj_id`"} {if $smarty.capture.$rating && $show_rating}
{$smarty.capture.$rating nofilter}
{/if}
{$vendor_rating="vendor_rating_`$obj_id`"} {if $smarty.capture.$vendor_rating && $show_vendor_rating}
{$smarty.capture.$vendor_rating nofilter}
{/if}
{$products_count="products_count_`$obj_id`"} {if $smarty.capture.$products_count && $show_products_count} {$smarty.capture.$products_count nofilter} {/if}
{/hook}
{/if}
{/foreach} {/foreach} {/strip}
{/if}