Back to PhocacartRenderFront class

Method renderFeaturedIcon

public static
renderFeaturedIcon
(mixed $featured, mixed $size = 1)

Method renderFeaturedIcon - Source code

public static function renderFeaturedIcon($featured, $size = 1)
{
    $app = Factory::getApplication();
    $params = $app->getParams();
    $feat = $params->get('display_featured', '');
    $o = '';
    if ($featured == 0 || $feat == '') {
        $o .= '';
    } else {
        $o .= '<div class="ph-corner-icon-wrapper  ph-corner-icon' . $size . '-wrapper"><div class="ph-corner-icon ph-corner-icon' . $size . ' ph-corner-icon-featured">' . Text::_($feat) . '</div></div>';
    }
    return $o;
}