Answer the question
In order to leave comments, you need to log in
Can't fix a bug in php or smarty?
Hello, the problem is this, there is such a template
<div class="property">
{capture name=surl assign=surl}{if $settings.enable_locations && in_array($v.depending.caption2, $location_fields)}javascript:;" onclick="changeLocation('{$live_site}', '{$v.depending.caption2}|{$t.name|rawurlencode}'){else}{if $seo_settings.enable_mod_rewrite}{if !isset($post_array[$v.depending.caption2])}{$constructed_url|replace:$sfield:$field_string}{else}{capture name=crt_field_string assign=crt_field_string}{$separator}{$v.depending.caption2}={if $post_array[$v.depending.caption2]|stristr:$t.name|rawurlencode}{$post_array[$v.depending.caption2]|lower|replace:{$t.name|lower}:''|trim:'|'}{else}{$t.name|lower|replace:'/':'_'|rawurlencode}|{$post_array[$v.depending.caption2]|lower}{/if}{/capture}{$constructed_url|replace:$sfield:$crt_field_string}{/if}{else}{if !isset($post_array[$v.depending.caption2])}{$constructed_url}{$separator}{$v.depending.caption2}={$t.name|replace:'/':'_'|rawurlencode}{else}{capture name=crt_field_string assign=crt_field_string}{if $post_array[$v.depending.caption2]|stristr:$t.name|rawurlencode}{$post_array[$v.depending.caption2]|lower|replace:{$t.name|lower}:''|trim:'|'}{else}{$t.name|lower|replace:'/':'_'|rawurlencode}|{$post_array[$v.depending.caption2]|lower}{/if}{/capture}{$constructed_url}{$separator}{$v.depending.caption2}={$crt_field_string}{/if}{/if}{/if}{/capture}
<a href="{$surl}" title="Выбрать этот параметр">{$t.name}{if $t.count>0} ({$t.count}){/if}</a>{if $v.depending.no==2 && (!$settings.enable_locations || !in_array($v.depending.caption2, $location_fields))}
<label style="float: right;" class="enh_checkbox chk_container">
<input type="checkbox" name="{$v.depending.caption2}_{$t.name|rawurlencode}" {if stristr($post_array[$v.depending.caption2], $t.name)}checked{/if} onclick="window.location='{$surl}'" /><div class="chk_indicator"></div></label>{/if}
</div>
$t.name
this is the value that is output to the templateAnswer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question