{if !empty($block.slides)} {if $block.slider_mode == 'responsive'} {block name=slider_responsive}
{foreach from=$block.slides item="slide" name="slides"}
{assign var="customhtmlOverridePath" value="{$smarty.const._PS_THEME_DIR_}modules/ws_customhtml/views/templates/hook/{$hookName}/banner.tpl"} {if file_exists($customhtmlOverridePath)} {include file="module:ws_customhtml/views/templates/hook/`$hookName`/banner.tpl" block=$slide group=$group hookName=$hookName} {else} {include file="module:ws_customhtml/views/templates/hook/_banner.tpl" block=$slide} {/if}
{/foreach}
{foreach from=$block.slides item="slide" name="slides"}
{assign var="customhtmlOverridePath" value="{$smarty.const._PS_THEME_DIR_}modules/ws_customhtml/views/templates/hook/{$hookName}/banner.tpl"} {if file_exists($customhtmlOverridePath)} {include file="module:ws_customhtml/views/templates/hook/`$hookName`/banner.tpl" block=$slide group=$group hookName=$hookName} {else} {include file="module:ws_customhtml/views/templates/hook/_banner.tpl" block=$slide} {/if}
{/foreach}
{/block} {/if} {if $block.slider_mode != 'responsive'} {block name=slider_always}
{foreach from=$block.slides item="slide" name="slides"}
{assign var="customhtmlOverridePath" value="{$smarty.const._PS_THEME_DIR_}modules/ws_customhtml/views/templates/hook/{$hookName}/banner.tpl"} {if file_exists($customhtmlOverridePath)} {include file="module:ws_customhtml/views/templates/hook/`$hookName`/banner.tpl" block=$slide group=$group hookName=$hookName} {else} {include file="module:ws_customhtml/views/templates/hook/_banner.tpl" block=$slide} {/if}
{/foreach}
{/block} {/if} {/if}