| @@ 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' => 'Как у родителя', |
|
| @@ 252-268 (lines=17) @@ | ||
| 249 | return $counts; |
|
| 250 | } |
|
| 251 | ||
| 252 | public function viewsCategoryList($inherit = true) { |
|
| 253 | $return = []; |
|
| 254 | if ($inherit) { |
|
| 255 | $return['inherit'] = 'Как у родителя'; |
|
| 256 | } |
|
| 257 | $return['itemList'] = 'Список товаров'; |
|
| 258 | $conf = App::$primary->view->template->config; |
|
| 259 | if (!empty($conf['files']['modules']['Ecommerce'])) { |
|
| 260 | foreach ($conf['files']['modules']['Ecommerce'] as $file) { |
|
| 261 | if ($file['type'] == 'Category') { |
|
| 262 | $return[$file['file']] = $file['name']; |
|
| 263 | } |
|
| 264 | } |
|
| 265 | } |
|
| 266 | return $return; |
|
| 267 | } |
|
| 268 | ||
| 269 | public function templatesCategoryList() { |
|
| 270 | $return = [ |
|
| 271 | 'inherit' => 'Как у родителя', |
|