@@ 32-47 (lines=16) @@ | ||
29 | return $return; |
|
30 | } |
|
31 | ||
32 | public function templatesList() { |
|
33 | $return = [ |
|
34 | 'inherit' => 'Как у родителя', |
|
35 | 'current' => 'Текущая тема' |
|
36 | ]; |
|
37 | ||
38 | $conf = App::$primary->view->template->config; |
|
39 | ||
40 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
41 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
42 | $return[$file['file']] = '- ' . $file['name']; |
|
43 | } |
|
44 | } |
|
45 | return $return; |
|
46 | } |
|
47 | ||
48 | public function viewsCategoryList() { |
|
49 | $return = [ |
|
50 | 'inherit' => 'Как у родителя', |
|
@@ 66-81 (lines=16) @@ | ||
63 | return $return; |
|
64 | } |
|
65 | ||
66 | public function templatesCategoryList() { |
|
67 | $return = [ |
|
68 | 'inherit' => 'Как у родителя', |
|
69 | 'current' => 'Текущая тема' |
|
70 | ]; |
|
71 | ||
72 | $conf = App::$primary->view->template->config; |
|
73 | ||
74 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
75 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
76 | $return[$file['file']] = '- ' . $file['name']; |
|
77 | } |
|
78 | } |
|
79 | return $return; |
|
80 | } |
|
81 | ||
82 | function sitemap() { |
|
83 | $map = []; |
|
84 | $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 |
@@ 248-263 (lines=16) @@ | ||
245 | return $return; |
|
246 | } |
|
247 | ||
248 | public function templatesCategoryList() { |
|
249 | $return = [ |
|
250 | 'inherit' => 'Как у родителя', |
|
251 | 'current' => 'Текущая тема' |
|
252 | ]; |
|
253 | ||
254 | $conf = App::$primary->view->template->config; |
|
255 | ||
256 | if (!empty($conf['files']['aditionTemplateFiels'])) { |
|
257 | foreach ($conf['files']['aditionTemplateFiels'] as $file) { |
|
258 | $return[$file['file']] = '- ' . $file['name']; |
|
259 | } |
|
260 | } |
|
261 | return $return; |
|
262 | } |
|
263 | ||
264 | public function cartStatusDetector($event) { |
|
265 | $cart = $event['eventObject']; |
|
266 | if (!empty($cart->_changedParams['cart_cart_status_id'])) { |