{if isset($review.text) && !empty($review.text) && $fields['text']['show']}
<!-- <div class='reviewsplus-product-opinion-text'>
<h4>Комментарий: </h4>
<span itemprop="reviewBody">{$review.text|escape}</span>
</div>-->
{/if}
{if isset($review.dop_textarea)}
{$t_fields = []}
{foreach $fields as $k => $d}
{if $d['type'] == 'textarea'}
{$t_fields[$k] = $d['sort']}
{/if}
{/foreach}
{asort($t_fields)}
{var_dump( $t_fields)}
{foreach $t_fields as $k => $d}
{$val = false}
{if $k=='text' && isset($review.text) && !empty($review.text)}
{$t_fields[$k] = ['name' => 'Комментарий','name_id' => 'text', 'value'=>$review.text]}
{else}
{foreach $review.dop_textarea as $doptextarea}
{if $doptextarea['name_id'] == $k}
{$t_fields[$k] = $doptextarea}
{/if}
{/foreach}
{/if}
{/foreach}
{foreach $t_fields as $val => $doptextarea}
<div class='reviewsplus-product-opinion-text'>
{if $fields[$doptextarea['name_id']]['show']}
{if isset($doptextarea['name']) && $doptextarea['value'] != ""}
<h4>{$doptextarea['name']|escape}</h4>
{/if}
{$doptextarea['value']|escape}
{/if}
</div>
{/foreach}
{/if}
0 комментариев