function tag_open($parse, $tag, $attr)
{
if (in_array($tag, $this->wp_tags)) {
$this->in_tag = substr($tag, 3);
return;
}
if (in_array($tag, $this->wp_sub_tags)) {
$this->in_sub_tag = substr($tag, 3);
return;
}
switch ($tag) {
case 'category':
if (isset($attr['domain'], $attr['nicename'])) {
$this->sub_data['domain'] = $attr['domain'];
$this->sub_data['slug'] = $attr['nicename'];
}
break;
case 'item':
$this->in_post = true;
case 'title':
if ($this->in_post) {
$this->in_tag = 'post_title';
}
break;
case 'guid':
$this->in_tag = 'guid';
break;
case 'dc:creator':
$this->in_tag = 'post_author';
break;
case 'content:encoded':
$this->in_tag = 'post_content';
break;
case 'excerpt:encoded':
$this->in_tag = 'post_excerpt';
break;
case 'wp:term_slug':
$this->in_tag = 'slug';
break;
case 'wp:meta_key':
$this->in_sub_tag = 'key';
break;
case 'wp:meta_value':
$this->in_sub_tag = 'value';
break;
}
}