✏️ 正在编辑: _CmsController.php
路径:
/home/bpioifn/www/pigmentse/modules/appagebuilder/override/controllers/front/_CmsController.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * 2007-2015 Apollotheme * * NOTICE OF LICENSE * * ApPageBuilder is module help you can build content for your shop * * DISCLAIMER * * @author Apollotheme <apollotheme@gmail.com> * @copyright 2007-2015 Apollotheme * @license http://apollotheme.com - prestashop template provider */ class CmsController extends CmsControllerCore { public function initContent() { if ($this->assignCase == 1) { $cmsVar = $this->objectPresenter->present($this->cms); $filteredCmsContent = Hook::exec( 'filterCmsContent', array('object' => $cmsVar), $id_module = null, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = null, $chain = true ); if (!empty($filteredCmsContent['object'])) { $cmsVar = $filteredCmsContent['object']; } //DONGND:: print shortcode if ((bool)Module::isEnabled('appagebuilder')) { $appagebuilder = Module::getInstanceByName('appagebuilder'); $cmsVar['content'] = $appagebuilder->buildShortCode($cmsVar['content']); } $this->context->smarty->assign(array( 'cms' => $cmsVar, )); if ($this->cms->indexation == 0) { $this->context->smarty->assign('nobots', true); } $this->setTemplate( 'cms/page', array('entity' => 'cms', 'id' => $this->cms->id) ); } elseif ($this->assignCase == 2) { $cmsCategoryVar = $this->getTemplateVarCategoryCms(); $filteredCmsCategoryContent = Hook::exec( 'filterCmsCategoryContent', array('object' => $cmsCategoryVar), $id_module = null, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = null, $chain = true ); if (!empty($filteredCmsCategoryContent['object'])) { $cmsCategoryVar = $filteredCmsCategoryContent['object']; } $this->context->smarty->assign($cmsCategoryVar); $this->setTemplate('cms/category'); } FrontController::initContent(); // validate module unset($id_module); unset($array_return); unset($check_exceptions); unset($use_push); unset($id_shop); unset($chain); } }
💾 保存文件
← 返回文件管理器