| @@ 58-74 (lines=17) @@ | ||
| 55 | } |
|
| 56 | } |
|
| 57 | ||
| 58 | public function viewsCategoryList($inherit = true) |
|
| 59 | { |
|
| 60 | $return = []; |
|
| 61 | if ($inherit) { |
|
| 62 | $return['inherit'] = 'Как у родителя'; |
|
| 63 | } |
|
| 64 | $return['index'] = 'Обычная странциа'; |
|
| 65 | $conf = App::$primary->view->template->config; |
|
| 66 | if (!empty($conf['files']['modules']['Callbacks'])) { |
|
| 67 | foreach ($conf['files']['modules']['Callbacks'] as $file) { |
|
| 68 | if ($file['type'] == 'Category') { |
|
| 69 | $return[$file['file']] = $file['name']; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | } |
|
| 73 | return $return; |
|
| 74 | } |
|
| 75 | ||
| 76 | public function templatesCategoryList() |
|
| 77 | { |
|
| @@ 357-373 (lines=17) @@ | ||
| 354 | return $counts; |
|
| 355 | } |
|
| 356 | ||
| 357 | public function viewsCategoryList($inherit = true) |
|
| 358 | { |
|
| 359 | $return = []; |
|
| 360 | if ($inherit) { |
|
| 361 | $return['inherit'] = 'Как у родителя'; |
|
| 362 | } |
|
| 363 | $return['itemList'] = 'Список товаров'; |
|
| 364 | $conf = App::$primary->view->template->config; |
|
| 365 | if (!empty($conf['files']['modules']['Ecommerce'])) { |
|
| 366 | foreach ($conf['files']['modules']['Ecommerce'] as $file) { |
|
| 367 | if ($file['type'] == 'Category') { |
|
| 368 | $return[$file['file']] = $file['name']; |
|
| 369 | } |
|
| 370 | } |
|
| 371 | } |
|
| 372 | return $return; |
|
| 373 | } |
|
| 374 | ||
| 375 | public function templatesCategoryList() |
|
| 376 | { |
|