Exemplo n.º 1
0
 public static function render($name, $check_pro = false)
 {
     if (!$name) {
         return '';
     }
     require_once __DIR__ . '/functions.php';
     $alias = RLFunctions::getAliasByName($name);
     $name = RLFunctions::getNameByAlias($name);
     if ($check_pro && self::isPro($alias)) {
         return '';
     }
     require_once __DIR__ . '/text.php';
     return '<div class="alert rl_licence">' . JText::sprintf('RL_IS_FREE_VERSION', $name) . '<br>' . JText::_('RL_FOR_MORE_GO_PRO') . '<br>' . '<a href="https://www.regularlabs.com/purchase?ext=' . $alias . '" target="_blank" class="btn btn-small btn-primary">' . ' <span class="icon-basket"></span>' . RLText::html_entity_decoder(JText::_('RL_GO_PRO')) . '</a>' . '</div>';
 }
Exemplo n.º 2
0
 private static function getFooterReview($name)
 {
     require_once __DIR__ . '/functions.php';
     $alias = RLFunctions::getAliasByName($name);
     $jed_url = 'http://regl.io/jed-' . $alias . '#reviews';
     return RLText::html_entity_decoder(JText::sprintf('RL_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>'));
 }