/** * 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->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/Blocks.css'); $this->loadTemplate(); $this->parse(); }
/** * Execute the extra */ public function execute() { // call parent parent::execute(); $this->loadTemplate(); $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->header->addJS('/src/Frontend/Modules/' . $this->getModule() . '/Js/Frontpage.js'); $this->loadTemplate(); $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadTemplate(); $this->loadData(); $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $this->addJS('https://maps.googleapis.com/maps/api/js?sensor=false', true, false); $this->addJS('/src/Frontend/Modules/Addresses/Js/markerclusterer.js', true, false); $this->addJS('/src/Frontend/Modules/Addresses/Js/bootstrap.min.js', true, false); $this->addJS('/src/Frontend/Modules/Addresses/Js/bootstrap-multiselect.js', true, false); $this->addCSS('/src/Frontend/Modules/Addresses/Layout/Css/bootstrap-multiselect.css', true, false); $this->addCSS('/src/Frontend/Modules/Addresses/Layout/Css/Addresses.css', true, false); //--Get search $this->search = urldecode(\SpoonFilter::getGetValue("search", null, "")); if ($this->search != "") { $this->lat = urldecode(\SpoonFilter::getGetValue("lat", null, "")); $this->lng = urldecode(\SpoonFilter::getGetValue("lng", null, "")); } $this->addJSData('search', $this->search); $this->addJSData('lat', $this->lat); $this->addJSData('lng', $this->lng); /* $this->searchTopGroups =(\SpoonFilter::getGetValue("groups", null, array(),'array')); $this ->searchGroups = (\SpoonFilter::getGetValue("topgroups", null, array(),'array'));*/ $this->loadTemplate(); $this->loadData(); $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() { $this->addJS('https://maps.google.com/maps/api/js?sensor=true', true, false); parent::execute(); $this->loadTemplate(); $this->loadData(); $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(); $this->loadTemplate(); // Check if we're logged in, else redirect to the login form. if (!FrontendProfilesAuthentication::isLoggedIn()) { $queryString = $this->URL->getQueryString(); throw new RedirectException('Redirect', new RedirectResponse(Navigation::getURLForBlock('Profiles', 'Login') . '?queryString=' . $queryString)); } }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadTemplate(); if (!$this->get('fork.settings')->get('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 the data $this->getData(); // parse $this->parse(); }
/** * Execute the extra */ public function execute() { parent::execute(); $contentBlock = $this->get('content_blocks.repository.content_block')->findOneByIdAndLocale((int) $this->data['id'], Locale::frontendLanguage()); // if the content block is not found or if it is hidden, just return an array with empty text // @deprecated fix this for version 5, we just shouldn't assign this instead of this hack, but we need it for BC if (!$contentBlock instanceof ContentBlock || $contentBlock->isHidden()) { $contentBlock = ['text' => '']; } $this->tpl->assign('widgetContentBlocks', $contentBlock); // That's all folks! }
/** * Exceute the action */ public function execute() { parent::execute(); //--Add css $this->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/Gallery.css'); $this->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/colorbox.css'); //--Add javascript $this->header->addJS('/src/Frontend/Modules/' . $this->getModule() . '/Js/Jquery.colorbox-min.js'); $this->header->addJS('/src/Frontend/Modules/' . $this->getModule() . '/Js/Jquery.cycle.all.js'); $this->loadTemplate(); $this->loadData(); $this->parse(); }
/** * Exceute the action */ public function execute() { parent::execute(); //--Add css $this->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/Gallery.css'); //$this->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/Colorbox.css'); //--Add javascript (No we won't, add these to your theme...) //$this->header->addJS('/src/Frontend/Modules/' . $this->getModule() . '/Js/Jquery.colorbox-min.js'); //$this->header->addJS('/src/Frontend/Modules/' . $this->getModule() . '/Js/jquery.cycle2.min.js'); //$this->header->addJS('/src/Frontend/Modules/' . $this->getModule() . '/Js/jquery.cycle2.center.min.js'); $this->loadTemplate(); $this->loadData(); $this->parse(); }
/** * Execute the extra */ public function execute() { // define Google Maps API key $apikey = $this->get('fork.settings')->get('Core', 'google_maps_key'); // check Google Maps API key, otherwise show error if ($apikey == null) { trigger_error('Please provide a Google Maps API key.'); } $this->addJS('https://maps.googleapis.com/maps/api/js?key=' . $apikey, true, false); $this->addJS(FrontendLocationModel::getPathToMapStyles(false), true); parent::execute(); $this->loadTemplate(); $this->loadData(); $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 does not exist; assume subpages_default.tpl $template = FrontendTheme::getPath($widgetTemplatesPath . '/PreviousNextNavigation.tpl'); } $this->loadTemplate($template); $this->parse(); }
/** * Execute the extra. */ public function execute() { parent::execute(); $this->loadTemplate(); $this->loadData(); // success message if ($this->URL->hasParameter('identifier') && $this->URL->getParameter('identifier') == $this->item['identifier']) { $this->parseSuccessMessage(); } else { // create/handle form $this->loadForm(); $this->validateForm(); $this->parse(); } }
/** * Execute the extra */ public function execute() { parent::execute(); $this->loadTemplate(); $this->loadForm(); }
/** * Execute the extra. */ public function execute() { parent::execute(); $this->loadTemplate(); $this->loadData(); // success message if ($this->URL->hasParameter('identifier') && $this->URL->getParameter('identifier') == $this->item['identifier']) { $this->parseSuccessMessage(); } else { // create/handle form $this->loadForm(); $this->validateForm(); $this->parse(); } return $this->tpl->getContent(FRONTEND_MODULES_PATH . '/' . $this->getModule() . '/Layout/Widgets/' . $this->getAction() . '.tpl'); }
/** * Get the assigned template. * * @return array */ public function getTemplate() { return $this->object->getTemplate(); }