Example #1
0
 public static function GetPanel()
 {
     $tpl = new Template();
     $pages = Pages_Model::GetPages();
     $tpl->SetParam('pages', $pages);
     return $tpl->Fetch('templates/pages/pages-panel.tpl');
 }
Example #2
0
 public static function GetPanel()
 {
     $tpl = new Template();
     $items = Topmenu_Model::GetMenuItems();
     $tpl->SetParam('items', $items);
     return $tpl->Fetch('templates/topmenu/menu.tpl');
 }
Example #3
0
 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');
 }
Example #4
0
 public static function GetRegisterForm($error = '')
 {
     $tpl = new Template();
     $tpl->SetParam('Error', $error);
     return $tpl->Fetch('templates/users/register.tpl');
 }
Example #5
0
 public static function GetProductPage($arr = null)
 {
     $tpl = new Template();
     $tpl->SetParam('product', $arr);
     return $tpl->Fetch('templates/products/product-detail.tpl');
 }