} if($flg==0) $doc->addScript($namespace_js); * * */ //require_once(JPATH_SITE . DS .'components'. DS .'com_community'. DS .'libraries'. DS .'core.php'); // Include the syndicate functions only once require_once dirname(__FILE__) . DS . 'helper.php'; $helperPath = JPATH_SITE . DS . 'components' . DS . 'com_socialads' . DS . 'helper.php'; if (!class_exists('socialadshelper')) { JLoader::register('socialadshelper', $helperPath); JLoader::load('socialadshelper'); } require_once JPATH_ROOT . DS . 'components' . DS . 'com_socialads' . DS . 'adshelper.php'; $lang = JFactory::getLanguage(); $lang->load('mod_socialads', JPATH_SITE); $moduleid = $module->id; $zone_id = $params->get('zone', 0); $modSocialadsHelper = new modSocialadsHelper(); $ad_type = $modSocialadsHelper->getAdtypebyZone($zone_id); if ($params->get('create', 1)) { $socialadshelper = new socialadshelper(); $Itemid = $socialadshelper->getSocialadsItemid('buildad'); } $adRetriever = new adRetriever(); $ads = $adRetriever->getAdsforZone($params, $moduleid); require JModuleHelper::getLayoutPath('mod_socialads'); } ?>