Lines Matching refs:enclosure
808 $enclosure = $this->get_enclosure(0);
811 } elseif ($enclosure !== null) {
812 return $enclosure->get_link();
899 * Get an enclosure from the item
901 * Supports the <enclosure> RSS tag, as well as Media RSS and iTunes RSS.
905 * @param int $key The enclosure that you want to return. Remember that arrays begin with 0, not 1
921 * Supports the <enclosure> RSS tag, as well as Media RSS and iTunes RSS.
2184 if (isset($link['attribs']['']['href']) && !empty($link['attribs']['']['rel']) && $link['attribs']['']['rel'] === 'enclosure') {
2220 if (isset($link['attribs']['']['href']) && !empty($link['attribs']['']['rel']) && $link['attribs']['']['rel'] === 'enclosure') {
2250 foreach ($this->get_item_tags(\SimplePie\SimplePie::NAMESPACE_RSS_20, 'enclosure') ?? [] as $enclosure) {
2251 if (isset($enclosure['attribs']['']['url'])) {
2268 $url = $this->sanitize($enclosure['attribs']['']['url'], \SimplePie\SimplePie::CONSTRUCT_IRI, $this->get_base($enclosure));
2270 if (isset($enclosure['attribs']['']['type'])) {
2271 $type = $this->sanitize($enclosure['attribs']['']['type'], \SimplePie\SimplePie::CONSTRUCT_TEXT);
2273 if (isset($enclosure['attribs']['']['length'])) {
2274 $length = intval($enclosure['attribs']['']['length']);