Lines Matching refs:link

42  * @link http://simplepie.org/ SimplePie
189 $feeds = array_merge($feeds, $this->search_elements_by_tag('link', $done, $feeds));
207 foreach ($links as $link) {
211 if ($link->hasAttribute('href') && $link->hasAttribute('rel')) {
212 $rel = array_unique($this->registry->call(Misc::class, 'space_separated_tokens', [strtolower($link->getAttribute('rel'))]));
213 $line = method_exists($link, 'getLineNo') ? $link->getLineNo() : 1;
216 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->base]);
218 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->http_base]);
224 if (!in_array($href, $done) && in_array('feed', $rel) || (in_array('alternate', $rel) && !in_array('stylesheet', $rel) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call(Misc::class, 'parse_mime', [$link->getAttribute('type')])), ['text/html', 'application/rss+xml', 'application/atom+xml'])) && !isset($feeds[$href])) {
248 foreach ($links as $link) {
249 if ($link->hasAttribute('href')) {
250 $href = trim($link->getAttribute('href'));
253 if (method_exists($link, 'getLineNo') && $this->base_location < $link->getLineNo()) {
254 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->base]);
256 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->http_base]);
292 $query = '//a[@rel and @href] | //link[@rel and @href]';
293 foreach ($xpath->query($query) as $link) {
294 $href = trim($link->getAttribute('href'));
298 if (method_exists($link, 'getLineNo') &&
299 $this->base_location < $link->getLineNo()) {
303 [trim($link->getAttribute('href')), $this->base]
309 [trim($link->getAttribute('href')), $this->http_base]
315 $rel_values = explode(' ', strtolower($link->getAttribute('rel')));