+ }
+ $value = $xpath->evaluate('atom:author/poco:displayName/text()')->item(0)->nodeValue;
+ if ($value != "") {
+ $author["author-name"] = $value;
+ }
+ if ($simulate) {
+ $author["author-id"] = $xpath->evaluate('/atom:feed/atom:author/atom:uri/text()')->item(0)->nodeValue;
+
+ $value = $xpath->evaluate('atom:author/poco:preferredUsername/text()')->item(0)->nodeValue;
+ if ($value != "") {
+ $author["author-nick"] = $value;
+ }
+ $value = $xpath->evaluate('atom:author/poco:address/poco:formatted/text()', $context)->item(0)->nodeValue;
+ if ($value != "") {
+ $author["author-location"] = $value;
+ }
+ $value = $xpath->evaluate('atom:author/poco:note/text()')->item(0)->nodeValue;
+ if ($value != "") {
+ $author["author-about"] = $value;
+ }
+ $avatar = $xpath->evaluate("atom:author/atom:link[@rel='avatar']")->item(0)->attributes;
+ if (is_object($avatar)) {
+ foreach ($avatar AS $attributes) {
+ if ($attributes->name == "href") {
+ $author["author-avatar"] = $attributes->textContent;
+ }
+ }
+ }
+ }