Esempio n. 1
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     // call parent
     parent::execute();
     $this->loadTemplate();
     $this->parse();
 }
Esempio n. 2
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call parent
     parent::execute();
     // load template
     $this->loadTemplate();
 }
Esempio n. 3
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadForm();
     $this->parse();
 }
Esempio n. 4
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->getTags();
     $this->getRelated();
     $this->loadTemplate();
     $this->parse();
 }
Esempio n. 5
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadData();
     $template = $this->assignTemplate();
     $this->loadTemplate($template);
     $this->parse();
 }
Esempio n. 6
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     // add the css file
     $this->addCSS('location.css');
     $this->loadTemplate();
     $this->loadData();
     $this->parse();
 }
Esempio n. 7
0
 /**
  * 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));
 }
Esempio n. 8
0
 /**
  * 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();
 }
Esempio n. 9
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call the parent
     parent::execute();
     // load template
     $this->loadTemplate();
     // load form
     $this->loadForm();
     // parse
     $this->parse();
 }
Esempio n. 10
0
 /**
  * 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();
 }
Esempio n. 11
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 = FrontendTheme::getPath($widgetTemplatesPath . '/subpages_default.tpl');
     }
     $this->loadTemplate($template);
     $this->parse();
 }
Esempio n. 12
0
 /**
  * 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');
 }
Esempio n. 13
0
 /**
  * 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();
 }
Esempio n. 14
0
 /**
  * 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;
 }
Esempio n. 15
0
 /**
  * Get the assigned template.
  *
  * @return	array
  */
 public function getTemplate()
 {
     return $this->object->getTemplate();
 }