{strip} {$_uniqid = uniqid()} {$_rule_name = ""} {if !empty($rule.id)} {$_rule_name = "rules[{$rule.id}]"} {else} {$_rule_name = "rules[new]"} {if isset($options.ident)} {$_rule_name = "{$_rule_name}[{$options.ident}]"} {/if} {/if} {$_mltplr = 9} {$_is_premium = false} {if shopLicensing::isPremium()}{$_mltplr = 5}{$_is_premium = true}{/if} {/strip} {$allowed_ai_styles = shopHelper::getAllowedProdAiImageStyles()}

[`A banner is a promo image displayed in the storefront home page. To change the sort order of banners, change the sort order of promos for a selected storefront.`]

{* @description Show this block when multiple banners are used *}
{if !empty($rule.rule_params.banners)} {foreach $rule.rule_params.banners as $_i => $_banner} {$_banner = $rule.rule_params.banners[$_i]|default:[]} {include file="./banner.item.html" banner=$_banner rule_name=$_rule_name allowed_ai_styles=$allowed_ai_styles inline} {/foreach} {/if}
[`Add at least one banner.`]
{capture assign="_banner_item_template"}{include file="./banner.item.html" allowed_ai_styles=$allowed_ai_styles}{/capture} {capture assign="_banner_confirm_dialog_template"}{include file="./banner_delete.dialog.html"}{/capture} {$_templates = [ 'banner_item_template' => $_banner_item_template, 'banner_confirm_dialog' => $_banner_confirm_dialog_template ]}