[-] BO : #PSTEST-778 : Bug in textures for attributes
This commit is contained in:
@@ -36,6 +36,17 @@
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="start_field_block"}
|
||||
<div class="margin-form">
|
||||
{if $input.name == 'current_texture'}
|
||||
{if isset($imageTextureExists) && $imageTextureExists}
|
||||
<img src="{$imageTexture}" alt="{l s='Texture'}" />
|
||||
{else}
|
||||
{l s='None'}
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block name="end_field_block"}
|
||||
{if $input.type == 'text' && $input.name == 'texture'}
|
||||
</div>
|
||||
|
||||
+5
-1
@@ -95,7 +95,11 @@
|
||||
{elseif isset($params.callback)}
|
||||
{$tr.$key}
|
||||
{elseif isset($tr.$key) && $key == 'color'}
|
||||
<div style="float: left; width: 18px; height: 12px; border: 1px solid #996633; background-color: {$tr.$key}; margin-right: 4px;"></div>
|
||||
{if isset($tr.$key['texture']) && $tr.$key['texture']|count_characters > 1}
|
||||
<img src="{$tr.$key.texture}" alt="" />
|
||||
{else}
|
||||
<div style="float: left; width: 18px; height: 12px; border: 1px solid #996633; background-color: {$tr.$key}; margin-right: 4px;"></div>
|
||||
{/if}
|
||||
{elseif isset($tr.$key)}
|
||||
{$tr.$key|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
|
||||
Reference in New Issue
Block a user