@@ 76-91 (lines=16) @@ | ||
73 | return $return; |
|
74 | } |
|
75 | ||
76 | public function templatesCategoryList() |
|
77 | { |
|
78 | $return = [ |
|
79 | 'inherit' => 'Как у родителя', |
|
80 | 'current' => 'Текущая тема' |
|
81 | ]; |
|
82 | ||
83 | $conf = App::$primary->view->template->config; |
|
84 | ||
85 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
86 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
87 | $return[$file['file']] = '- ' . $file['name']; |
|
88 | } |
|
89 | } |
|
90 | return $return; |
|
91 | } |
|
92 | ||
93 | } |
|
94 |
@@ 33-48 (lines=16) @@ | ||
30 | return $return; |
|
31 | } |
|
32 | ||
33 | public function templatesList() |
|
34 | { |
|
35 | $return = [ |
|
36 | 'inherit' => 'Как у родителя', |
|
37 | 'current' => 'Текущая тема' |
|
38 | ]; |
|
39 | ||
40 | $conf = App::$primary->view->template->config; |
|
41 | ||
42 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
43 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
44 | $return[$file['file']] = '- ' . $file['name']; |
|
45 | } |
|
46 | } |
|
47 | return $return; |
|
48 | } |
|
49 | ||
50 | public function viewsCategoryList() |
|
51 | { |
|
@@ 69-84 (lines=16) @@ | ||
66 | return $return; |
|
67 | } |
|
68 | ||
69 | public function templatesCategoryList() |
|
70 | { |
|
71 | $return = [ |
|
72 | 'inherit' => 'Как у родителя', |
|
73 | 'current' => 'Текущая тема' |
|
74 | ]; |
|
75 | ||
76 | $conf = App::$primary->view->template->config; |
|
77 | ||
78 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
79 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
80 | $return[$file['file']] = '- ' . $file['name']; |
|
81 | } |
|
82 | } |
|
83 | return $return; |
|
84 | } |
|
85 | ||
86 | function sitemap() |
|
87 | { |
@@ 432-447 (lines=16) @@ | ||
429 | return $return; |
|
430 | } |
|
431 | ||
432 | public function templatesCategoryList() { |
|
433 | $return = [ |
|
434 | 'inherit' => 'Как у родителя', |
|
435 | 'current' => 'Текущая тема' |
|
436 | ]; |
|
437 | ||
438 | $conf = App::$primary->view->template->config; |
|
439 | ||
440 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
441 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
442 | $return[$file['file']] = '- ' . $file['name']; |
|
443 | } |
|
444 | } |
|
445 | return $return; |
|
446 | } |
|
447 | ||
448 | public function cartStatusDetector($event) { |
|
449 | $cart = $event['eventObject']; |
|
450 | if (!empty($cart->_changedParams['cart_cart_status_id'])) { |