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