| @@ 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 | ||
| @@ 380-395 (lines=16) @@ | ||
| 377 | return $return; |
|
| 378 | } |
|
| 379 | ||
| 380 | public function templatesCategoryList() { |
|
| 381 | $return = [ |
|
| 382 | 'inherit' => 'Как у родителя', |
|
| 383 | 'current' => 'Текущая тема' |
|
| 384 | ]; |
|
| 385 | ||
| 386 | $conf = App::$primary->view->template->config; |
|
| 387 | ||
| 388 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
| 389 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
| 390 | $return[$file['file']] = '- ' . $file['name']; |
|
| 391 | } |
|
| 392 | } |
|
| 393 | return $return; |
|
| 394 | } |
|
| 395 | ||
| 396 | public function cartStatusDetector($event) { |
|
| 397 | $cart = $event['eventObject']; |
|
| 398 | if (!empty($cart->_changedParams['cart_cart_status_id'])) { |
|