<?php // no direct access defined('_JEXEC') or die('Restricted access'); require_once dirname(__FILE__) . DS . 'helper.php'; $rokecwidPath = JPATH_SITE . DS . 'components' . DS . 'com_rokecwid' . DS . 'helpers'; if (!file_exists($rokecwidPath . DS . 'ecwid_catalog.php') || !file_exists($rokecwidPath . DS . 'ecwid_product_api.php')) { print "Need rokecwid component api files (ecwid_catalog.php, ecwid_product_api.php)\n for this module"; } else { modEcwidRelatedProducts::init(); modEcwidRelatedProducts::addCustomHeaders(); $modulePath = modEcwidRelatedProducts::$path; $basePath = JURI::base(); $storeId = modEcwidRelatedProducts::$storeId; require JModuleHelper::getLayoutPath('mod_ecwid_relatedproducts'); }