Closed romainruaud closed 5 years ago
<div class="productlabel-wrapper <?php if ($view == 'category'){ echo 'category';}?> <?php if ($view == 'product'){ echo 'product';}?>" id="smile-productlabels-wrapper">
=> Why not just echoing the $view or getCurrentView() ? ?
$view
getCurrentView() ?
Seems like the foreach/switch part following could get simplified the same manner :
Done!
=> Why not just echoing the
$view
orgetCurrentView() ?
?Seems like the foreach/switch part following could get simplified the same manner :