Категории услуг и удаление latest из блога
This commit is contained in:
@@ -40,6 +40,20 @@ class ControllerCommonContentTop extends Controller {
|
||||
$layout_id = $this->model_catalog_information->getInformationLayoutId($this->request->get['information_id']);
|
||||
}
|
||||
|
||||
if ($route == 'service/category' && isset($this->request->get['service_category_id'])) {
|
||||
$this->load->model('service/category');
|
||||
|
||||
$path = explode('_', (string)$this->request->get['service_category_id']);
|
||||
|
||||
$layout_id = $this->model_service_category->getCategoryLayoutId(end($path));
|
||||
}
|
||||
|
||||
if ($route == 'service/service/info' && isset($this->request->get['service_id'])) {
|
||||
$this->load->model('service/service');
|
||||
|
||||
$layout_id = $this->model_service_service->getServiceLayoutId($this->request->get['service_id']);
|
||||
}
|
||||
|
||||
if (!$layout_id) {
|
||||
$layout_id = $this->model_design_layout->getLayout($route);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user