Содержимое файла | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
304 | alex-w | 1 | <?php |
2 | /** |
||
3 | * Smarty Internal Plugin Compile If Close |
||
4 | * |
||
5 | * Compiles the {/if} tag |
||
6 | * |
||
7 | * @package Smarty |
||
8 | * @subpackage Compiler |
||
9 | * @author Uwe Tews |
||
10 | */ |
||
11 | |||
12 | /** |
||
13 | * Smarty Internal Plugin Compile IfClose Class |
||
14 | */ |
||
15 | class Smarty_Internal_Compile_IfClose extends Smarty_Internal_CompileBase { |
||
16 | /** |
||
17 | * Compiles code for the {/if} tag |
||
18 | * |
||
19 | * @param array $args array with attributes from parser |
||
20 | * @param object $compiler compiler object |
||
21 | * @return string compiled code |
||
22 | */ |
||
23 | public function compile($args, $compiler) |
||
24 | { |
||
25 | $this->compiler = $compiler; |
||
26 | $this->_close_tag(array('if', 'else', 'elseif')); |
||
27 | return "<?php endif;?>"; |
||
28 | } |
||
29 | } |
||
30 | |||
31 | ?> |