public static function Error($code) { $tpl = new Template(); if ($code == 404) { self::$IndexTPL->SetParam('Content', $tpl->Fetch('templates/main/error404.tpl')); } }
public static function GetPanel() { $tpl = new Template(); $pages = Pages_Model::GetPages(); $tpl->SetParam('pages', $pages); return $tpl->Fetch('templates/pages/pages-panel.tpl'); }
public static function GetDeletePage($id, $assocArr = null) { $tpl = new Template(); $row = Topmenu_Model::GetMenuItemById($id); $tpl->SetParams($row); $tpl->SetParams($assocArr); return $tpl->Fetch('templates/topmenu/item-delete.tpl'); }
public static function GetOkPage() { $tpl = new Template(); return $tpl->Fetch('templates/cart/succes.tpl'); }
public static function GetMainPage() { $tpl = new Template(); return $tpl->Fetch('templates/main/main.tpl'); }
public static function GetFeedbackPage($assocArr = null) { $tpl = new Template(); return $tpl->Fetch('templates/users/feedback.tpl'); }
public static function GetProductPage($arr = null) { $tpl = new Template(); $tpl->SetParam('product', $arr); return $tpl->Fetch('templates/products/product-detail.tpl'); }
protected function Paginator() { $template = new Template(); $template->paginator = parent::Paginator(); return $template->Fetch('nav'); }