require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djcategory.php'; require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djseo.php'; require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djtheme.php'; require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djregion.php'; require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djimage.php'; // Include the syndicate functions only once require_once dirname(__FILE__) . DS . 'helper.php'; if (JRequest::getVar('option') != 'com_djclassifieds') { DJClassifiedsTheme::includeCSSfiles(); } $layout = $params->get('layout', 'cluster'); $items = modDjClassifiedsMaps::getItems($params); $regions = modDjClassifiedsMaps::getRegions(); $advert = ''; if ($params->get('follow_advert', 1) && JRequest::getVar('option', '') == 'com_djclassifieds' && JRequest::getVar('view', '') == 'item' && JRequest::getInt('id', 0) > 0) { $advert = modDjClassifiedsMaps::getAdvert(); } foreach ($items as $item) { $country = ''; $city = ''; if ($item->region_id != 0) { $rid = $item->region_id; if ($rid != 0 && count($regions)) { $reg_c = count($regions); while ($rid != 0) { $ri = 0; foreach ($regions as $li) { if ($li->id == $rid) { $rid = $li->parent_id; if ($li->country) { $country = $li->name;
*/ defined('_JEXEC') or die('Restricted access'); if (!defined("DS")) { define('DS', DIRECTORY_SEPARATOR); } require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djcategory.php'; require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djseo.php'; require_once JPATH_BASE . DS . 'administrator' . DS . 'components' . DS . 'com_djclassifieds' . DS . 'lib' . DS . 'djtheme.php'; // Include the syndicate functions only once require_once dirname(__FILE__) . DS . 'helper.php'; if (JRequest::getVar('option') != 'com_djclassifieds') { DJClassifiedsTheme::includeCSSfiles(); } $layout = $params->get('layout', 'cluster'); $items = modDjClassifiedsMaps::getItems($params); $regions = modDjClassifiedsMaps::getRegions(); foreach ($items as $item) { $country = ''; $city = ''; if ($item->region_id != 0) { $rid = $item->region_id; if ($rid != 0 && count($regions)) { $reg_c = count($regions); $ri = 0; while ($rid != 0) { foreach ($regions as $li) { if ($li->id == $rid) { $rid = $li->parent_id; if ($li->country) { $country = $li->name; }