Esempio n. 1
0
    if (!empty($details['description'])) {
        echo '
		<itunes:summary text="' . $details['description'] . '"/>';
    }
    echo '
		<itunes:explicit>no</itunes:explicit>';
}
// loop through content
foreach ($feed_content as $item) {
    $item_title = $item['title'];
    $item_description = empty($item['summary']) ? create_summary($item['body']) : prepare_string($item['summary']);
    $item_body = '';
    // show complete article?
    if (!empty($config['admin']['complete_feed'])) {
        $body_text = "<p><strong>" . $item_description . "</strong></p>";
        $body_text .= strip_inline_styles($item['body']);
        $item_body = "<content:encoded><![CDATA[" . $body_text . "]]></content:encoded>";
    }
    $item_date = date('r', strtotime($item['date_uploaded']));
    // start output to browser
    echo '
		<item>
			<title>' . $item_title . '</title>
			<description>' . $item_description . '</description>
			' . $item_body . '
			<link>' . $item['link'] . '</link>';
    // some additional entries for podcasts
    if ($_GET['feed'] == 'podcast') {
        echo "\n\t\t\t<itunes:author>" . $item['author_name'] . "</itunes:author>\n\t\t\t<dc:creator>" . $item['author_name'] . "</dc:creator>";
        if (!empty($item['seo_keywords'])) {
            echo '
Esempio n. 2
0
    }
    echo '
		<itunes:explicit>no</itunes:explicit>';
}
// loop through content
foreach ($feed_content as $item) {
    $item_title = $item['title'];
    $item_description = empty($item['summary']) ? create_summary($item['body']) : prepare_string($item['summary']);
    // show complete article?
    if (!empty($config['admin']['complete_feed'])) {
        if ($_GET['feed'] == 'comments') {
            $summary = "<p>" . $item['summary'] . "</p>";
        } else {
            $summary = !empty($item['summary']) ? "<p><strong>" . prepare_string($item['summary']) . "</strong></p>" : '';
        }
        $body = strip_inline_styles($item['body']);
        $item_description = "<![CDATA[" . $summary . $body . "]]>";
    }
    $item_date = date('r', strtotime($item['date_uploaded']));
    // start output to browser
    echo '
		<item>
			<title>' . $item_title . '</title>
			<description>' . $item_description . '</description>
			<link>' . $item['link'] . '</link>';
    // some additional entries for podcasts
    if ($_GET['feed'] == 'podcast') {
        echo "\n\t\t\t<itunes:author>" . $item['author_name'] . "</itunes:author>\n\t\t\t<dc:creator>" . $item['author_name'] . "</dc:creator>";
        if (!empty($item['seo_keywords'])) {
            echo '
			<itunes:keywords>' . $item['seo_keywords'] . '</itunes:keywords>';