* Init routine */ include "inc/init.inc.php"; /* * Defining the pages */ $pages = array("category"); /* * Controller routines */ $id = $_GET["id"]; $seo = $_GET["seo"]; $left_limit = 0; $right_limit = 0; if ($seo != "") { $res = ShopobjectsCtl::SeoGetShopobjects($seo, DEFAULT_LANGUAGE, "price", "ASC", 0, 0, array("name", "img1", "price", "short_description")); } else { $res = ShopobjectsCtl::GetShopobjects($id, DEFAULT_LANGUAGE, "price", "ASC", 0, 0, array("name", "img1", "price", "short_description")); } if (count($res["products"]) == 0) { $res = 0; } /* * Assignments to the engine */ $tpl->assign("content_pages", $pages); $tpl->assign("res", $res); $tpl->assign("title", $res["title"]); $tpl->assign("keywords", $res["keywords"]); $tpl->assign("description", $res["description"]); $tpl->assign("img", $res["attributes"]["img1"]["value"]);