first commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{use_stylesheet src="appProductAttributesPlugin.css"}
|
||||
<div id="pa_attributes">
|
||||
<table class="table table-striped">
|
||||
{foreach from=$attributes key=id item=attribute}
|
||||
{if $attribute.type != 'B' && (!isset($variants[$id]) || empty($variants[$id]))}
|
||||
{php}continue{/php}
|
||||
{/if}
|
||||
<tr>
|
||||
<td class="label_td">{$attribute.name}:</td>
|
||||
<td>
|
||||
{if $attribute.type == 'B'}
|
||||
{if isset($variants[$id])}{__ text="Tak"}{else}{__ text="Nie"}{/if}
|
||||
{elseif $attribute.type == 'C'}
|
||||
<ul class="pa_variants">
|
||||
{foreach from=`$variants[$id]` item=variant}
|
||||
<li class="pa_color" title="{$variant.name}" style="{if $variant.type == 'C'}background-color: #{$variant.value}{else}background-image: url(/{$variant.value}){/if}"></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{else}
|
||||
{pa_text_variants variants=$variants[$id]}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div class="tooltip roundies"></div>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(function($) {
|
||||
$('#pa_attributes .pa_color').tooltip({
|
||||
tip: '#pa_attributes .tooltip',
|
||||
position: 'center right',
|
||||
offset: [0, 8],
|
||||
delay: 0
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
{/literal}
|
||||
Reference in New Issue
Block a user