| @@ 33-48 (lines=16) @@ | ||
| 30 | return $return; | |
| 31 | } | |
| 32 | ||
| 33 |     public function templatesList() { | |
| 34 | $return = [ | |
| 35 | 'inherit' => 'Как у родителя', | |
| 36 | 'current' => 'Текущая тема' | |
| 37 | ]; | |
| 38 | ||
| 39 | $conf = App::$primary->view->template->config; | |
| 40 | ||
| 41 |         if (!empty($conf['files']['aditionTemplateFiels'])) { | |
| 42 |             foreach ($conf['files']['aditionTemplateFiels'] as $file) { | |
| 43 | $return[$file['file']] = '- ' . $file['name']; | |
| 44 | } | |
| 45 | } | |
| 46 | return $return; | |
| 47 | } | |
| 48 | ||
| 49 |     public function viewsCategoryList() { | |
| 50 | $return = [ | |
| 51 | 'inherit' => 'Как у родителя', | |
| @@ 67-82 (lines=16) @@ | ||
| 64 | return $return; | |
| 65 | } | |
| 66 | ||
| 67 |     public function templatesCategoryList() { | |
| 68 | $return = [ | |
| 69 | 'inherit' => 'Как у родителя', | |
| 70 | 'current' => 'Текущая тема' | |
| 71 | ]; | |
| 72 | ||
| 73 | $conf = App::$primary->view->template->config; | |
| 74 | ||
| 75 |         if (!empty($conf['files']['aditionTemplateFiels'])) { | |
| 76 |             foreach ($conf['files']['aditionTemplateFiels'] as $file) { | |
| 77 | $return[$file['file']] = '- ' . $file['name']; | |
| 78 | } | |
| 79 | } | |
| 80 | return $return; | |
| 81 | } | |
| 82 | ||
| 83 |     public function sitemap() { | |
| 84 | $map = []; | |
| 85 | $zeroMaterials = \Materials\Material::getList(['where' => ['category_id', 0]]); | |
| @@ 74-89 (lines=16) @@ | ||
| 71 | return $return; | |
| 72 | } | |
| 73 | ||
| 74 |     public function templatesCategoryList() { | |
| 75 | $return = [ | |
| 76 | 'inherit' => 'Как у родителя', | |
| 77 | 'current' => 'Текущая тема' | |
| 78 | ]; | |
| 79 | ||
| 80 | $conf = App::$primary->view->template->config; | |
| 81 | ||
| 82 |         if (!empty($conf['files']['aditionTemplateFiels'])) { | |
| 83 |             foreach ($conf['files']['aditionTemplateFiels'] as $file) { | |
| 84 | $return[$file['file']] = '- ' . $file['name']; | |
| 85 | } | |
| 86 | } | |
| 87 | return $return; | |
| 88 | } | |
| 89 | ||
| 90 | } | |
| 91 | ||
| @@ 348-363 (lines=16) @@ | ||
| 345 | return $return; | |
| 346 | } | |
| 347 | ||
| 348 |     public function templatesCategoryList() { | |
| 349 | $return = [ | |
| 350 | 'inherit' => 'Как у родителя', | |
| 351 | 'current' => 'Текущая тема' | |
| 352 | ]; | |
| 353 | ||
| 354 | $conf = App::$primary->view->template->config; | |
| 355 | ||
| 356 |         if (!empty($conf['files']['aditionTemplateFiels'])) { | |
| 357 |             foreach ($conf['files']['aditionTemplateFiels'] as $file) { | |
| 358 | $return[$file['file']] = '- ' . $file['name']; | |
| 359 | } | |
| 360 | } | |
| 361 | return $return; | |
| 362 | } | |
| 363 | ||
| 364 |     public function cartStatusDetector($event) { | |
| 365 | $cart = $event['eventObject']; | |
| 366 |         if (!empty($cart->_changedParams['cart_cart_status_id'])) { | |