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