{$image_name = "Image_"|cat:{$product_id}:"_":{$image.id}:".":{$image.ext}}
{foreach $images as $k => $img} {if $img}
{else}
{/if} {/foreach}
[`Badge`]
{* @event backend_product_edit.%plugin_id%.image_toolbar_badge_li *} {if !empty($backend_product_edit)}{foreach $backend_product_edit as $_}{ifset($_.image_toolbar_badge_li)}{/foreach}{/if} {$badges = shopProductModel::badges()} {foreach $badges as $bid => $b}
{$b.name}
{if $bid == $product.badge}{shopHelper::getBadgeHtml($b.code)|escape}{/if}
{/foreach} {$custom_setted = $product.badge !== null && !isset($badges[$product.badge])}
[`Custom`]
{strip} {if $custom_setted} {$product.badge} {else}
[`YOUR TEXT`]
{/if} {/strip}
[`Remove badge`]
[`Edit`]
{* @event backend_product_edit.%plugin_id%.image_toolbar_edit_li *} {if !empty($backend_product_edit)}{foreach $backend_product_edit as $_}{ifset($_.image_toolbar_edit_li)}{/foreach}{/if}
[`Left`]
[`Right`]
[`Delete photo`]
{* @event backend_product_edit.%plugin_id%.image_toolbar_section *} {if !empty($backend_product_edit)}{foreach $backend_product_edit as $_}{ifset($_.image_toolbar_section)}{/foreach}{/if}
[`Full size`]:
{$image_name}
[`Dimensions`]:
{$image.width}x{$image.height}
{if $image.size}[`Size`]:
{$image.size}
{/if} {if $original_exists}
[`Original image`]:
{$image_name}
Восстановить
{/if}
{if ($image.dimensions.width && $image.dimensions.width < $image.width) || ($image.dimensions.height && $image.dimensions.height < $image.height) }
{/if}
{$wa->shop->badgeHtml($product.badge)}
{strip}
{/strip}
{$image.description}
[`edit`]
{* dialogs section *}
[`Delete image`]
{'[`Image “%s” will be deleted without the ability to restore. Are you sure?`]'|sprintf:$image_name}
{$wa->csrf()}
[`or`]
[`cancel`]
{$placeholder = '[`add description`]'}
{$wa->csrf()} {include './include.imageUpload.html' inline}