public static function render($name, $check_pro = false) { if (!$name) { return ''; } require_once __DIR__ . '/functions.php'; $alias = NNFrameworkFunctions::getAliasByName($name); $name = NNFrameworkFunctions::getNameByAlias($name); if ($check_pro && self::isPro($alias)) { return ''; } return '<div class="alert nn_licence">' . JText::sprintf('NN_IS_FREE_VERSION', $name) . '<br />' . JText::_('NN_FOR_MORE_GO_PRO') . '<br />' . '<a href="https://www.nonumber.nl/purchase?ext=' . $alias . '" target="_blank" class="btn btn-small btn-primary">' . ' <span class="icon-basket"></span>' . html_entity_decode(JText::_('NN_GO_PRO'), ENT_COMPAT, 'UTF-8') . '</a>' . '</div>'; }
private static function getFooterReview($name) { require_once __DIR__ . '/functions.php'; $alias = NNFrameworkFunctions::getAliasByName($name); $jed_url = 'http://nonr.nl/jed-' . $alias . '#reviews'; return html_entity_decode(JText::sprintf('NN_JED_REVIEW', '<a href="' . $jed_url . '" target="_blank">', '</a>' . ' <a href="' . $jed_url . '" target="_blank" class="stars">' . '<span class="icon-star"></span><span class="icon-star"></span><span class="icon-star"></span><span class="icon-star"></span><span class="icon-star"></span>' . '</a>')); }