$brend_val = '';
$ves_val = '';
if ((string)$product->get_attribute('brend') !== '') {
$brend_val = '<p class="attribute-val">'. '<span class="attribute-val">Бренд: </span>' . $product->get_attribute('brend') .'</p>';
}
if ((string)$product->get_attribute('ves') !== '') {
$ves_val = '<p class="attribute-val">'. '<span class="attribute-val">Вес: </span>' . $product->get_attribute('ves') .'</p>';
}
if ( $brend_val !== '' || $ves_val !== '' ) {
echo '<div class="attribute-val">'
. $brend_val
. $ves_val .
'</div>';
}
new Date(Date.UTC(year, month, day, hour, minute, second));
function multBy(arr, n) {
for (let i = 0, len = arr.length; i < len; i++) {
arr[i] *= n;
}
return arr;
}
Redirect 301 "/aaa aaa.html" "bbb_bbb.html"