Ejemplo n.º 1
0
 function cronNotifications()
 {
     $par = JComponentHelper::getParams('com_djclassifieds');
     $notify_days = $par->get('notify_days', '0');
     if ($notify_days > 0 && $par->get('notify_days_trigger', '1') == 3) {
         DJClassifiedsNotify::notifyExpired(0, 0);
     }
     die('done');
 }
Ejemplo n.º 2
0
 function display($tpl = null)
 {
     $par = JComponentHelper::getParams('com_djclassifieds');
     $user = JFactory::getUser();
     $notify_days = $par->get('notify_days', '0');
     if ($notify_days > 0 && $par->get('notify_days_trigger', '1') == 1) {
         DJClassifiedsNotify::notifyExpired();
     }
     if (class_exists('JHtmlSidebar')) {
         $this->sidebar = JHtmlSidebar::render();
     }
     JToolBarHelper::title('DJ-Classifieds');
     if ($user->authorise('core.admin', 'com_djclassifieds')) {
         JToolBarHelper::preferences('com_djclassifieds', 450, 800);
     }
     $model = $this->getModel();
     $model->checkCFImages();
     $version = new JVersion();
     if (version_compare($version->getShortVersion(), '3.0.0', '<')) {
         $tpl = 'legacy';
     }
     parent::display($tpl);
 }