/** * Execute the extra */ public function execute() { // call parent parent::execute(); $this->loadTemplate(); $this->parse(); }
/** * Execute the extra * * @return void */ public function execute() { // call parent parent::execute(); // load template $this->loadTemplate(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadTemplate(); $this->loadForm(); $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->getTags(); $this->getRelated(); $this->loadTemplate(); $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadData(); $template = $this->assignTemplate(); $this->loadTemplate($template); $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); // add the css file $this->addCSS('location.css'); $this->loadTemplate(); $this->loadData(); $this->parse(); }
/** * Execute the extra * * @return void */ public function execute() { // call parent parent::execute(); // load template $this->loadTemplate(); // assign sitemap navigation $this->tpl->assign('widgetPagesNavigation', FrontendNavigation::getNavigationHTML('page', 0, null, array(), true)); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadTemplate(); if (!FrontendModel::getModuleSetting('faq', 'allow_own_question', false)) { return; } $this->loadForm(); $this->validateForm(); $this->parse(); }
/** * Execute the extra * * @return void */ public function execute() { // call the parent parent::execute(); // load template $this->loadTemplate(); // load form $this->loadForm(); // parse $this->parse(); }
/** * Execute the extra * * @return void */ public function execute() { // call parent parent::execute(); // get tags $this->getTags(); // get related "things" based on tags $this->getRelated(); // load template $this->loadTemplate(); // parse $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadData(); $widgetTemplatesPath = FRONTEND_MODULES_PATH . '/pages/layout/widgets'; // check if the given template exists try { $template = FrontendTheme::getPath($widgetTemplatesPath . '/' . $this->data['template']); } catch (FrontendException $e) { $template = FrontendTheme::getPath($widgetTemplatesPath . '/subpages_default.tpl'); } $this->loadTemplate($template); $this->parse(); }
/** * Execute the extra. */ public function execute() { parent::execute(); $this->loadTemplate(); $this->loadData(); // success message if (isset($_GET['identifier']) && $_GET['identifier'] == $this->item['identifier']) { $this->parseSuccessMessage(); } else { $this->loadForm(); $this->validateForm(); $this->parse(); } return $this->tpl->getContent(FRONTEND_MODULES_PATH . '/' . $this->getModule() . '/layout/widgets/' . $this->getAction() . '.tpl'); }
/** * Execute the extra * * @return void */ public function execute() { // parent execute parent::execute(); // load data $this->loadData(); // check if the given template exists try { $template = FrontendTheme::getPath(FRONTEND_MODULES_PATH . '/content_blocks/layout/widgets/' . $this->item['template']); } catch (FrontendException $e) { $template = FrontendTheme::getPath(FRONTEND_MODULES_PATH . '/content_blocks/layout/widgets/default.tpl'); } // load template $this->loadTemplate($template); // parse $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadTemplate(); /* * A bit dirty this; we overwrite the navigation template path of the FrontendNavigation * by a separate template for the sitemap. */ $widgetLayoutPath = FRONTEND_MODULES_PATH . '/pages/layout'; $originalTemplatePath = FrontendNavigation::getTemplatePath(); FrontendNavigation::setTemplatePath(FrontendTheme::getPath($widgetLayoutPath . '/templates/sitemap.tpl')); /* * Because the scope of the template is now changed to the new sitemap.tpl, we can * store the HTML of the new, parsed scope. Afterwards we reset to the original * template (FrontendNavigation might be used again after this). */ $sitemapNavigationHTML = $this->tpl->getContent(FrontendTheme::getPath($widgetLayoutPath . '/widgets/sitemap.tpl')); FrontendNavigation::setTemplatePath($originalTemplatePath); return $sitemapNavigationHTML; }
/** * Execute the action * We will build the classname, require the class and call the execute method. * * @return void */ public function execute() { // build action-class-name $actionClassName = 'Frontend' . SpoonFilter::toCamelCase($this->getModule() . '_widget_' . $this->getAction()); // build path to the module $frontendModulePath = FRONTEND_MODULES_PATH . '/' . $this->getModule(); // require the config file, we know it is there because we validated it before (possible actions are defined by existance off the file). require_once $frontendModulePath . '/widgets/' . $this->getAction() . '.php'; // validate if class exists (aka has correct name) if (!class_exists($actionClassName)) { throw new FrontendException('The actionfile is present, but the classname should be: ' . $actionClassName . '.'); } // create action-object $this->object = new $actionClassName($this->getModule(), $this->getAction(), $this->getData()); // validate if the execute-method is callable if (!is_callable(array($this->object, 'execute'))) { throw new FrontendException('The actionfile should contain a callable method "execute".'); } // call the execute method of the real action (defined in the module) $this->output = $this->object->execute(); }