support dc:creator
This commit is contained in:
parent
d4992d6b48
commit
f11015058d
2 changed files with 14 additions and 1 deletions
|
@ -138,6 +138,13 @@ class FeedItem_Atom {
|
||||||
if ($email) return $email->nodeValue;
|
if ($email) return $email->nodeValue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$author = $this->xpath->query("dc:creator", $this->elem)->item(0);
|
||||||
|
|
||||||
|
if ($author) {
|
||||||
|
return $author->nodeValue;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -129,8 +129,14 @@ class FeedItem_RSS {
|
||||||
$email = $author->getElementsByTagName("email")->item(0);
|
$email = $author->getElementsByTagName("email")->item(0);
|
||||||
|
|
||||||
if ($email) return $email->nodeValue;
|
if ($email) return $email->nodeValue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$author = $this->xpath->query("dc:creator", $this->elem)->item(0);
|
||||||
|
|
||||||
|
if ($author) {
|
||||||
|
return $author->nodeValue;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue