| @@ 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 | ||
| @@ 281-296 (lines=16) @@ | ||
| 278 | return $return; |
|
| 279 | } |
|
| 280 | ||
| 281 | public function templatesCategoryList() { |
|
| 282 | $return = [ |
|
| 283 | 'inherit' => 'Как у родителя', |
|
| 284 | 'current' => 'Текущая тема' |
|
| 285 | ]; |
|
| 286 | ||
| 287 | $conf = App::$primary->view->template->config; |
|
| 288 | ||
| 289 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
| 290 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
| 291 | $return[$file['file']] = '- ' . $file['name']; |
|
| 292 | } |
|
| 293 | } |
|
| 294 | return $return; |
|
| 295 | } |
|
| 296 | ||
| 297 | public function cartStatusDetector($event) { |
|
| 298 | $cart = $event['eventObject']; |
|
| 299 | if (!empty($cart->_changedParams['cart_cart_status_id'])) { |
|