{if !empty($settings.features)} {foreach $settings.features as $f_id => $f} {$conditions_feature = ifset($settings, 'conditions', 'feature', [])} {$f.code} {if (isset($f.status) && $f.status == 'private')}{/if}
{* Rendering of characteristic values ​​for a new category occurs in products.category.js :: initGetFeatures () *} {if !empty($settings.id)} {$_feature_values = ifset($conditions_feature, $f.code, null)}
{* Особое оформление даты *} {if ($f.type === "date" || $f.type === "range.date")} {$_start = ifset($_feature_values, "begin", null)} {if !empty($_start)} {$_start = waDateTime::format('date', strtotime($_start))} {/if} {$_end = ifset($_feature_values, "end", null)} {if !empty($_end)} {$_end = waDateTime::format('date', strtotime($_end))} {/if}
{if !empty($_start) && !empty($_end)} {$_start} – {$_end} {elseif !empty($_start)} ≥ {$_start} {elseif !empty($_end)} ≤ {$_end} {else} [`Date not specified.`] {/if}
[`The value can be set up in the new section.`]
{* Прочее *} {else} {* Range поля *} {if substr($f.type, 0, 5) == 'range' || $_feature_values["type"] === "range"} {if !empty($_feature_values)}
{$begin = ifset($_feature_values, 'begin', null)} {$end = ifset($_feature_values, 'end', null)} [`from`] [`to`] {$_unit_id = ifset($_feature_values, 'unit', null)} {if !empty($_unit_id)} {$_unit = shopDimension::getUnit($f.type, $_unit_id)} {else} {$_unit = shopDimension::getBaseUnit($f.type)} {/if} {if !empty($_unit) && isset($_unit['title'])} {$_unit['title']} {/if}
{/if} {elseif !empty($f.values)} {foreach $f.values as $v_id => $value} {/foreach} {if $f.count > count($f.values)} [`Show all`] {/if} {/if} {/if}
{/if}
{/foreach} {/if} {literal} {% var count = 0; %} {% if (o.feature.type === 'date' || o.feature.type === 'range.date') { %}
[`Date not specified.`]
[`The value can be set up in the new section.`]
{% } else { %} {% for (var v_id in o.feature.values) { %} {% if (o.feature.values.hasOwnProperty(v_id)) { %} {% if (o.feature.type.substr(0, 5) !== 'range') { %} {% if (!o.show_all && count == 7) { %} [`Show all`] {% } %} {% count++; %} {% }else { %}
{% if (o.feature.values[v_id]) { %} [`from`] [`to`] {% if (o.feature.unit) { %}{%=o.feature.unit%}{% } %}
{% } %}
{% } %} {% } %} {% } %} {% if (!o.show_all) { %} {% } %} {% } %} {/literal} {%=o.feature.code%} {% if (o.feature.status == 'private') { %}{% } %}
{/literal}{$smarty.capture["template_feature_field_values"]}{literal}