compiler = $compiler; $this->required_attributes = array('if condition'); // check and get attributes $_attr = $this->_get_attributes($args); list($nesting, $compiler->tag_nocache) = $this->_close_tag(array('if', 'elseif')); if (empty($this->compiler->prefix_code)) { $this->_open_tag('elseif', array($nesting, $compiler->tag_nocache)); return ''; } else { $tmp = ''; foreach ($this->compiler->prefix_code as $code) $tmp .= $code; $this->compiler->prefix_code = array(); $this->_open_tag('elseif', array($nesting + 1, $compiler->tag_nocache)); return '' . $tmp . ''; } } } ?>