/** * Load and extract an external author definition * * @return NULL|\Jkphl\Micrometa\Item Author micro information item * @deprecated Will be dropped in favour of the authorship algorithm, see author() */ public function externalAuthor() { $author = null; $rels = $this->rels(); if (!empty($rels['author']) && is_array($rels['author'])) { foreach ($rels['author'] as $authorProfileUrl) { $authorProfile = new self($authorProfileUrl); $authorItem = $authorProfile->item('http://schema.org/Person', 'http://data-vocabulary.org/Person', 'h-card'); if ($authorItem instanceof \Jkphl\Micrometa\Item) { $author = $authorItem; break; } } } return $author; }