Author: Tijs Verkoyen (tijs@sumocoders.be)
Author: Dieter Vanden Eynde (dieter@dieterve.be)
Author: Matthias Mullie (forkcms@mullie.eu)
Inheritance: extends Object
Exemplo n.º 1
0
 /**
  * Execute the extra
  *
  * @return void
  */
 public function execute()
 {
     // call parent
     parent::execute();
     // load template
     $this->loadTemplate();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     // call parent
     parent::execute();
     $this->loadTemplate();
     $this->parse();
 }
Exemplo n.º 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();
 }
Exemplo n.º 5
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadData();
     $this->parse();
 }
Exemplo n.º 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();
 }
Exemplo n.º 7
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->getTags();
     $this->getRelated();
     $this->loadTemplate();
     $this->parse();
 }
Exemplo n.º 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();
 }
Exemplo n.º 9
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadData();
     $template = $this->assignTemplate();
     $this->loadTemplate($template);
     $this->parse();
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 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();
 }
Exemplo n.º 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!
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 17
0
 /**
  * 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();
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 19
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadForm();
 }
Exemplo n.º 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');
 }
Exemplo n.º 21
0
 /**
  * Get the assigned template.
  *
  * @return array
  */
 public function getTemplate()
 {
     return $this->object->getTemplate();
 }