@@ 235-241 (lines=7) @@ | ||
232 | $simpleDirectives = [ |
|
233 | 'actionAddForIBlock' => 'addForIBlock', |
|
234 | ]; |
|
235 | foreach ($simpleDirectives as $directive => $action) { |
|
236 | $compiler->directive($directive, function ($expression) use ($action) { |
|
237 | $expression = rtrim($expression, ')'); |
|
238 | $expression = ltrim($expression, '('); |
|
239 | return '<?php \Arrilot\BitrixHermitage\Action::' . $action . '($template, ' . $expression . '); ?>'; |
|
240 | }); |
|
241 | } |
|
242 | ||
243 | $echoDirectives = [ |
|
244 | 'actionEditIBlockElement' => 'editIBlockElement', |
|
@@ 256-262 (lines=7) @@ | ||
253 | 'actionDeleteHLBlockElement' => 'deleteHLBlockElement', |
|
254 | 'actionEditAndDeleteHLBlockElement' => 'editAndDeleteHLBlockElement', |
|
255 | ]; |
|
256 | foreach ($echoDirectives as $directive => $action) { |
|
257 | $compiler->directive($directive, function ($expression) use ($action) { |
|
258 | $expression = rtrim($expression, ')'); |
|
259 | $expression = ltrim($expression, '('); |
|
260 | return '<?= \Arrilot\BitrixHermitage\Action::' . $action . '($template, ' . $expression . '); ?>'; |
|
261 | }); |
|
262 | } |
|
263 | } |
|
264 | } |
|
265 |