{strip}
{capture name="banner_content"}
{if $banner_type == 'iframe_content' || $banner_type == 'js_content'}
{if $banner_data.type == 'T'}
{* Text banner's template *}
{if $banner_data.show_title == 'Y'}
| {$banner_data.title} |
{/if}
|
{$banner_data.content|nl2br}
|
{elseif $banner_data.type == 'G'}
{* Graphic banner's template *}
{*
*}
{if $banner_data.icon.image_type != 'application/x-shockwave-flash'}
{/if}
{include file="common_templates/image.tpl" object_type='common' image_id=$banner_data.image_id image=$banner_data.icon images=$banner_data object_id=$banner_data.banner_id image_index="$http_location/$image_index" flash_vars=$banner_data.flash_vars}
{if $banner_data.icon.image_type != 'application/x-shockwave-flash'}
{else}
{/if}
{elseif $banner_data.type == 'P'}
{* Product banner's template *}
{if $banner_type == 'iframe_content' && $banner_data.align}
{/if}
{capture name="image_content"}
{if $banner_data.banner_url}{/if} {if $banner_data.banner_url}{/if}
|
{/capture}
{capture name="product_name_content"}
|
{if $banner_data.banner_url}{/if}{$banner_data.product}{if $banner_data.banner_url}{/if}
|
{/capture}
{capture name="short_description_content"}
|
{$banner_data.product_short_description|nl2br}
|
{/capture}
{if $banner_data.image == 'T'}
{$smarty.capture.image_content}
{/if}
{if $banner_data.product_name == 'T'}
{$smarty.capture.product_name_content}
{/if}
{if $banner_data.short_description == 'T'}
{$smarty.capture.short_description_content}
{/if}
{if $banner_data.image == 'B'}
{$smarty.capture.image_content}
{/if}
{if $banner_data.product_name == 'B'}
{$smarty.capture.product_name_content}
{/if}
{if $banner_data.short_description == 'B'}
{$smarty.capture.short_description_content}
{/if}
{if $banner_type == 'iframe_content' && $banner_data.align}
{/if}
{/if}
{elseif $banner_type == 'iframe'}
{elseif $banner_type == 'js'}
{if $mode=='demo'}
{"$http_location/$customer_index?$target_name=banner&$mode_name=$mode&bid=`$banner_data.banner_id`&image=`$banner_data.image`&product_name=`$banner_data.product_name`&short_description=`$banner_data.short_description`&align=`$banner_data.align`&new_window=`$banner_data.new_window`&border=`$banner_data.border`&to_cart=`$banner_data.to_cart`&type=js_content&width=`$banner_data.width`&height=`$banner_data.height`&sl=$cart_language&product_ids=`$banner_data.product_ids`"}
{else}
{"$http_location/$customer_index?$target_name=banner&bid=`$banner_data.banner_id`&type=js_content&sl=$cart_language&product_ids=`$banner_data.product_ids`&aff_id=$partner_id"}
{/if}
{/if}
{/capture}
{/strip}
{if $banner_type != 'iframe' && $banner_type != 'js'}
{if $banner_type == 'iframe_content'}
{$smarty.capture.banner_content}
{elseif $banner_type == 'js_content'}
|
{$smarty.capture.banner_content}
|
{/if}
{else}
{$smarty.capture.banner_content}
{/if}