К новейшей редакции | Содержимое файла | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
304 | alex-w | 1 | <?php |
2 | /** |
||
3 | * Smarty Internal Plugin Compile Else |
||
4 | * |
||
5 | * Compiles the {else} tag |
||
6 | * |
||
7 | * @package Smarty |
||
8 | * @subpackage Compiler |
||
9 | * @author Uwe Tews |
||
10 | */ |
||
11 | |||
12 | /** |
||
13 | * Smarty Internal Plugin Compile Else Class |
||
14 | */ |
||
15 | class Smarty_Internal_Compile_Else extends Smarty_Internal_CompileBase { |
||
16 | /** |
||
17 | * Compiles code for the {else} 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', 'elseif')); |
||
27 | $this->_open_tag('else'); |
||
28 | |||
29 | return '<?php else: ?>'; |
||
30 | } |
||
31 | } |
||
32 | |||
33 | ?> |