get_channel_tags example

if (isset($caption['attribs']['']['end']))
                    {
                        $caption_endTime = $this->sanitize($caption['attribs']['']['end'], SIMPLEPIE_CONSTRUCT_TEXT);
                    }
                    if (isset($caption['data']))
                    {
                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
                    }
                    $captions_parent[] = $this->registry->create('Caption', array($caption_type$caption_lang$caption_startTime$caption_endTime$caption_text));
                }
            }
            elseif ($captions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'text'))
            {
                foreach ($captions as $caption)
                {
                    $caption_type = null;
                    $caption_lang = null;
                    $caption_startTime = null;
                    $caption_endTime = null;
                    $caption_text = null;
                    if (isset($caption['attribs']['']['type']))
                    {
                        $caption_type = $this->sanitize($caption['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
                    }

            if ($image = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'image'))
            {
                if (isset($image[0]['child'][$namespace][$tag]))
                {
                    return $image[0]['child'][$namespace][$tag];
                }
            }
        }
        if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
        {
            if ($image = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'image'))
            {
                if (isset($image[0]['child'][$namespace][$tag]))
                {
                    return $image[0]['child'][$namespace][$tag];
                }
            }
        }
        return null;
    }

    /** * Get the base URL value from the feed * * Uses `<xml:base>` if available, otherwise uses the first link in the * feed, or failing that, the URL of the feed itself. * * @see get_link * @see subscribe_url * * @param array $element * @return string */
Home | Imprint | This part of the site doesn't use cookies.