Категории услуг и удаление latest из блога

This commit is contained in:
Konstantin
2026-05-30 10:13:44 +03:00
parent e45a057ffa
commit 95ac0ef898
37 changed files with 1959 additions and 827 deletions
@@ -40,6 +40,20 @@ class ControllerCommonContentBottom 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);
}