Exemplo n.º 1
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     // call parent
     parent::execute();
     $this->loadTemplate();
     $this->parse();
 }
Exemplo n.º 2
0
 /**
  * Execute the extra
  *
  * @return	void
  */
 public function execute()
 {
     // call parent
     parent::execute();
     // load template
     $this->loadTemplate();
 }
Exemplo n.º 3
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadTemplate();
     $this->loadForm();
     $this->parse();
 }
Exemplo n.º 4
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->getTags();
     $this->getRelated();
     $this->loadTemplate();
     $this->parse();
 }
Exemplo n.º 5
0
 /**
  * Execute the extra
  */
 public function execute()
 {
     parent::execute();
     $this->loadData();
     $template = $this->assignTemplate();
     $this->loadTemplate($template);
     $this->parse();
 }
Exemplo 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();
 }
Exemplo 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));
 }
Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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');
 }
Exemplo 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();
 }
Exemplo 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;
 }
Exemplo n.º 15
0
 /**
  * Get the assigned template.
  *
  * @return	array
  */
 public function getTemplate()
 {
     return $this->object->getTemplate();
 }