| @@ 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' => 'Как у родителя', |
|
| @@ 264-280 (lines=17) @@ | ||
| 261 | return $counts; |
|
| 262 | } |
|
| 263 | ||
| 264 | public function viewsCategoryList($inherit = true) { |
|
| 265 | $return = []; |
|
| 266 | if ($inherit) { |
|
| 267 | $return['inherit'] = 'Как у родителя'; |
|
| 268 | } |
|
| 269 | $return['itemList'] = 'Список товаров'; |
|
| 270 | $conf = App::$primary->view->template->config; |
|
| 271 | if (!empty($conf['files']['modules']['Ecommerce'])) { |
|
| 272 | foreach ($conf['files']['modules']['Ecommerce'] as $file) { |
|
| 273 | if ($file['type'] == 'Category') { |
|
| 274 | $return[$file['file']] = $file['name']; |
|
| 275 | } |
|
| 276 | } |
|
| 277 | } |
|
| 278 | return $return; |
|
| 279 | } |
|
| 280 | ||
| 281 | public function templatesCategoryList() { |
|
| 282 | $return = [ |
|
| 283 | 'inherit' => 'Как у родителя', |
|