* @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /** * @since 1.5.0 */ class ReferralprogramRulesModuleFrontController extends ModuleFrontController { public $content_only = true; public $display_header = false; public $display_footer = false; /** * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $xmlFile = _PS_MODULE_DIR_.'referralprogram/referralprogram.xml'; if (file_exists($xmlFile)) { if ($xml = @simplexml_load_file($xmlFile)) { $this->context->smarty->assign(array( 'xml' => $xml, 'paragraph' => 'paragraph_'.$this->context->language->id )); } } $this->setTemplate('rules.tpl'); } }