Back to PhocacartUtilsInfo class

Method getInfo

public static
getInfo
(mixed $mode = 1)

Method getInfo - Source code

public static function getInfo($mode = 1)
{
    PluginHelper::importPlugin('phocatools');
    $results = Factory::getApplication()->triggerEvent('onPhocatoolsOnDisplayInfo', array('NjI5NTcyNzcxMTc='));
    if (isset($results[0]) && $results[0] === true) {
        return '';
    }
    if ($mode === 0) {
        return "\n\n" . 'Powered by Phoca Cart' . "\n" . 'https://www.phoca.cz/phocacart';
    } else {
        if ($mode === 2) {
            return '<div>Powered by <a href="https://www.phoca.cz/phocacart"><img src="' . JUri::root(true) . '/media/com_phocacart/images/phoca-cart.png" alt="Phoca Cart" style="height:1.2em;width:auto;margin-bottom: 3px;" /></a> & <a href="https://www.phoca.cz/phocacart"><img src="' . JUri::root(true) . '/media/com_phocacart/images/phoca-pos.png" alt="Phoca POS" style="height:1.2em;width:auto;margin-bottom: 3px;" /></a></div>';
        } else {
            return '<div style="text-align:right;display:block">Powered by <a href="https://www.phoca.cz/phocacart">Phoca Cart</a></div>';
        }
    }
}