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