Beispiel #1
0
 /**
  * Execute le plugin dans la partie public
  */
 public function run()
 {
     if (isset($this->pstring1) && isset($this->pnum1)) {
         $page = $this->getAboutPage(parent::getPageId($this->pnum1, $this->getlang));
         if ($page != null && $page['uri'] == $this->pstring1) {
             $this->template->assign('page', $page);
             $this->template->assign('parent', parent::getParent($page['parent'], $this->getlang));
             $this->template->display('index.tpl');
         }
     } else {
         $page = $this->getAboutPage(parent::getPage($this->getlang));
         $this->template->assign('page', $page);
         $this->template->display('index.tpl');
     }
 }
Beispiel #2
0
 /**
  * Execute le plugin dans la partie public
  */
 public function run()
 {
     $this->template->configLoad();
     $this->template->assign('faq', $this->getQAs());
     $this->template->display('index.tpl');
 }
Beispiel #3
0
 /**
  * getNotify
  * @param $type
  * @param null $subContent
  */
 private function getNotify($type, $subContent = null)
 {
     $this->template->assign('message', $this->setNotify($type, $subContent));
     $this->template->display('notify/message.tpl');
 }