Author: Tijs Verkoyen (tijs@sumocoders.be)
Author: Dieter Vanden Eynde (dieter@dieterve.be)
Author: Matthias Mullie (forkcms@mullie.eu)
Inheritance: extends Object
Example #1
0
 /**
  * Execute the extra
  *
  * @return void
  */
 public function execute()
 {
     // call parent
     parent::execute();
     // load template
     $this->loadTemplate();
 }
Example #2
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->header->addCSS('/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/Blocks.css');
     $this->loadTemplate();
     $this->parse();
 }
Example #3
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     // call parent
     parent::execute();
     $this->loadTemplate();
     $this->parse();
 }
Example #4
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->header->addJS('/src/Frontend/Modules/' . $this->getModule() . '/Js/Frontpage.js');
     $this->loadTemplate();
     $this->parse();
 }
Example #5
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadData();
     $this->parse();
 }
Example #6
0
 /**
  * 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();
 }
Example #7
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->getTags();
     $this->getRelated();
     $this->loadTemplate();
     $this->parse();
 }
Example #8
0
 /**
  * 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();
 }
Example #9
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadData();
     $template = $this->assignTemplate();
     $this->loadTemplate($template);
     $this->parse();
 }
Example #10
0
 /**
  * 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));
     }
 }
Example #11
0
 /**
  * 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();
 }
Example #13
0
 /**
  * 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!
 }
Example #14
0
 /**
  * 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();
 }
Example #15
0
 /**
  * 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();
 }
Example #16
0
 /**
  * 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();
 }
Example #18
0
 /**
  * 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();
     }
 }
Example #19
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadForm();
 }
Example #20
0
 /**
  * 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');
 }
Example #21
0
 /**
  * Get the assigned template.
  *
  * @return array
  */
 public function getTemplate()
 {
     return $this->object->getTemplate();
 }