| @@ 57-73 (lines=17) @@ | ||
| 54 | } |
|
| 55 | } |
|
| 56 | ||
| 57 | public function viewsCategoryList($inherit = true) { |
|
| 58 | $return = []; |
|
| 59 | if ($inherit) { |
|
| 60 | $return['inherit'] = 'Как у родителя'; |
|
| 61 | } |
|
| 62 | $return['index'] = 'Обычная странциа'; |
|
| 63 | $conf = App::$primary->view->template->config; |
|
| 64 | if (!empty($conf['files']['modules']['Callbacks'])) { |
|
| 65 | foreach ($conf['files']['modules']['Callbacks'] as $file) { |
|
| 66 | if ($file['type'] == 'Category') { |
|
| 67 | $return[$file['file']] = $file['name']; |
|
| 68 | } |
|
| 69 | } |
|
| 70 | } |
|
| 71 | return $return; |
|
| 72 | } |
|
| 73 | ||
| 74 | public function templatesCategoryList() { |
|
| 75 | $return = [ |
|
| 76 | 'inherit' => 'Как у родителя', |
|
| @@ 319-335 (lines=17) @@ | ||
| 316 | return $counts; |
|
| 317 | } |
|
| 318 | ||
| 319 | public function viewsCategoryList($inherit = true) { |
|
| 320 | $return = []; |
|
| 321 | if ($inherit) { |
|
| 322 | $return['inherit'] = 'Как у родителя'; |
|
| 323 | } |
|
| 324 | $return['itemList'] = 'Список товаров'; |
|
| 325 | $conf = App::$primary->view->template->config; |
|
| 326 | if (!empty($conf['files']['modules']['Ecommerce'])) { |
|
| 327 | foreach ($conf['files']['modules']['Ecommerce'] as $file) { |
|
| 328 | if ($file['type'] == 'Category') { |
|
| 329 | $return[$file['file']] = $file['name']; |
|
| 330 | } |
|
| 331 | } |
|
| 332 | } |
|
| 333 | return $return; |
|
| 334 | } |
|
| 335 | ||
| 336 | public function templatesCategoryList() { |
|
| 337 | $return = [ |
|
| 338 | 'inherit' => 'Как у родителя', |
|