| @@ 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 | { |
|
| @@ 416-432 (lines=17) @@ | ||
| 413 | return $counts; |
|
| 414 | } |
|
| 415 | ||
| 416 | public function viewsCategoryList($inherit = true) |
|
| 417 | { |
|
| 418 | $return = []; |
|
| 419 | if ($inherit) { |
|
| 420 | $return['inherit'] = 'Как у родителя'; |
|
| 421 | } |
|
| 422 | $return['itemList'] = 'Список товаров'; |
|
| 423 | $conf = App::$primary->view->template->config; |
|
| 424 | if (!empty($conf['files']['modules']['Ecommerce'])) { |
|
| 425 | foreach ($conf['files']['modules']['Ecommerce'] as $file) { |
|
| 426 | if ($file['type'] == 'Category') { |
|
| 427 | $return[$file['file']] = $file['name']; |
|
| 428 | } |
|
| 429 | } |
|
| 430 | } |
|
| 431 | return $return; |
|
| 432 | } |
|
| 433 | ||
| 434 | public function templatesCategoryList() |
|
| 435 | { |
|