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
 /**
  * @access private
  * @return string
  */
 private function getBodyMail()
 {
     $this->template->assign('data', $this->setBodyMail());
     return $this->template->fetch('mail/admin.tpl');
 }