Example #1
0
 function __construct($config = array())
 {
     parent::__construct($config);
     $lang = JFactory::GetLanguage();
     $lang->load('com_djcatalog2');
     $this->registerTask('modfp', 'getFrontpageXMLData');
 }
Example #2
0
 function __construct($config = array())
 {
     parent::__construct($config);
     $lang = JFactory::GetLanguage();
     $lang->load('com_djclassifieds');
     $par = JComponentHelper::getParams('com_djclassifieds');
     $notify_days = $par->get('notify_days', '0');
     if ($notify_days > 0 && $par->get('notify_days_trigger', '1') == 2) {
         DJClassifiedsNotify::notifyExpired(5, 0);
     }
     //$this->registerTask( 'modfp',  'getFrontpageXMLData' );
 }
Example #3
0
*/
$document = JFactory::getDocument();
if (JRequest::getVar('view') == 'item') {
    if ($par->get('lightbox_type', 'slimbox') == 'picbox') {
        $assets = JURI::base(true) . '/components/com_djclassifieds/assets/picbox/';
        $document->addScript($assets . 'js/picbox.js');
        $document->addStyleSheet($assets . 'css/picbox.css');
    } else {
        $assets = JURI::base(true) . '/components/com_djclassifieds/assets/slimbox-1.8/';
        $document->addScript($assets . 'js/slimbox.js');
        $document->addStyleSheet($assets . 'css/slimbox.css');
    }
}
DJClassifiedsTheme::includeCSSfiles();
require_once JPATH_COMPONENT . DS . 'controller.php';
$lang = JFactory::GetLanguage();
if ($lang->getTag() != 'en-GB') {
    $lang = JFactory::getLanguage();
    $lang->load('com_djclassifieds', JPATH_SITE . '/components/com_djclassifieds', 'en-GB', true, false);
    if ($lang->getTag() == 'pl-PL') {
        $lang->load('com_djclassifieds', JPATH_SITE . '/components/com_djclassifieds', '', true, false);
    } else {
        $lang->load('com_djclassifieds', JPATH_SITE, '', true, false);
    }
}
$view = JRequest::getCmd('view', 'show');
if ($view == 'item' || $view == 'items' || $view == 'additem' || $view == 'payment' || $view == 'renewitem' || $view == 'profileedit' || $view == 'contact' || $view == 'checkout' || $view == 'registration') {
    $path = JPATH_COMPONENT . DS . 'controllers' . DS . $view . '.php';
    jimport('joomla.filesystem.file');
    if (JFile::exists($path)) {
        require_once $path;