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 GetPanel() { $tpl = new Template(); $items = Topmenu_Model::GetMenuItems(); $tpl->SetParam('items', $items); return $tpl->Fetch('templates/topmenu/menu.tpl'); }
public static function GetPageCart() { $tpl = new Template(); if (isset($_SESSION['cart'])) { $items = Products_Model::GetCartProducts(array_keys($_SESSION['cart']['products_id'])); } $tpl->SetParam('products', $items); return $tpl->Fetch('templates/cart/cart.tpl'); }
public static function GetRegisterForm($error = '') { $tpl = new Template(); $tpl->SetParam('Error', $error); return $tpl->Fetch('templates/users/register.tpl'); }
public static function GetProductPage($arr = null) { $tpl = new Template(); $tpl->SetParam('product', $arr); return $tpl->Fetch('templates/products/product-detail.tpl'); }