| @@ 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 | ||
| @@ 336-351 (lines=16) @@ | ||
| 333 | return $return; |
|
| 334 | } |
|
| 335 | ||
| 336 | public function templatesCategoryList() { |
|
| 337 | $return = [ |
|
| 338 | 'inherit' => 'Как у родителя', |
|
| 339 | 'current' => 'Текущая тема' |
|
| 340 | ]; |
|
| 341 | ||
| 342 | $conf = App::$primary->view->template->config; |
|
| 343 | ||
| 344 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
| 345 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
| 346 | $return[$file['file']] = '- ' . $file['name']; |
|
| 347 | } |
|
| 348 | } |
|
| 349 | return $return; |
|
| 350 | } |
|
| 351 | ||
| 352 | public function cartStatusDetector($event) { |
|
| 353 | $cart = $event['eventObject']; |
|
| 354 | if (!empty($cart->_changedParams['cart_cart_status_id'])) { |
|