Хранилища Subversion ant

Редакция

Содержимое файла | Последнее изменение | Открыть журнал | RSS

Редакция Автор № строки Строка
304 alex-w 1
<?php
2
/**
3
* Smarty Internal Plugin Compile Strip Close
4
*
5
* Compiles the {/strip} tag
6
*
7
* @package Smarty
8
* @subpackage Compiler
9
* @author Uwe Tews
10
*/
11
/**
12
* Smarty Internal Plugin Compile StripClose Class
13
*/
14
class Smarty_Internal_Compile_StripClose extends Smarty_Internal_CompileBase {
15
    /**
16
    * Compiles code for the {/strip} tag
17
    *
18
    * @param array $args array with attributes from parser
19
    * @param object $compiler compiler object
20
    * @return string compiled code
21
    */
22
    public function compile($args, $compiler)
23
    {
24
        $this->compiler = $compiler;
25
        // check and get attributes
26
        $_attr = $this->_get_attributes($args);
27
 
28
        $saved_attr = $this->_close_tag(array('strip'));
29
 
30
        $_output = "<?php echo preg_replace('![\t ]*[\r\n]+[\t ]*!', '', ob_get_clean()); ?>\n";
31
        return $_output;
32
    }
33
}
34
 
35
?>