示例#1
0
文件: mprss.php 项目: palfrey/twfy
            }
            $date = $hdate . 'T' . $htime . '+00:00';
            $items .= '<rdf:li rdf:resource="' . $link . '" />' . "\n";
            $entries .= "<item rdf:about=\"{$link}\">\n\t<title>{$title}</title>\n\t<link>{$link}</link>\n\t<description>{$description}</description>\n\t<content:encoded><![CDATA[{$contentencoded}]]></content:encoded>\n\t<dc:date>{$date}</dc:date>\n</item>\n";
        }
    }
    // Prepare the whole text of the RSS file.
    $rsstext = '<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://purl.org/rss/1.0/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
		
<channel rdf:about="http://' . DOMAIN . $mpurl . '">
<title>' . entities_to_numbers($MEMBER->full_name()) . '\'s recent appearances (TheyWorkForYou)</title>
<link>http://' . DOMAIN . $mpurl . '</link>
<description></description>
<dc:language>en-gb</dc:language>
<dc:creator>TheyWorkForYou.com, mprss.php script</dc:creator>
<dc:date>' . $datenow . '</dc:date>

<items>
<rdf:Seq>
' . $items . '</rdf:Seq>
</items>

</channel>

' . $entries . '
示例#2
0
        ?>
<item>
<title><?php 
        if (isset($row['parent']) && count($row['parent']) > 0) {
            echo strip_tags($row['parent']['body']);
        }
        echo ' (' . format_date($row['hdate'], SHORTDATEFORMAT) . ')';
        ?>
</title>
<link>http://www.theyworkforyou.com<?php 
        echo $row['listurl'];
        ?>
</link>
<pubDate><?php 
        echo $date;
        ?>
</pubDate>
<description><?php 
        if (isset($row['speaker']) && count($row['speaker'])) {
            $sp = $row['speaker'];
            $name = ucfirst(member_full_name($sp['house'], $sp['title'], $sp['first_name'], $sp['last_name'], $sp['constituency']));
            echo entities_to_numbers($name) . ': ';
        }
        echo htmlspecialchars(str_replace(array('&#8212;', '<span class="hi">', '</span>'), array('-', '<b>', '</b>'), $row['body'])) . "</description>\n</item>\n";
    }
}
?>
</channel>
</rss>

示例#3
0
文件: mprss.php 项目: leowmjw/twfy
            }
            $date = $hdate . 'T' . $htime . '+00:00';
            $items .= '<rdf:li rdf:resource="' . $link . '" />' . "\n";
            $entries .= "<item rdf:about=\"{$link}\">\n\t<title>{$title}</title>\n\t<link>{$link}</link>\n\t<description>{$description}</description>\n\t<content:encoded><![CDATA[{$contentencoded}]]></content:encoded>\n\t<dc:date>{$date}</dc:date>\n</item>\n";
        }
    }
    // Prepare the whole text of the RSS file.
    $rsstext = '<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://purl.org/rss/1.0/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
		
<channel rdf:about="http://' . DOMAIN . $mpurl . '">
<title>' . entities_to_numbers($MEMBER->full_name()) . '\'s recent appearances (OpenAustralia.org)</title>
<link>http://' . DOMAIN . $mpurl . '</link>
<description></description>
<dc:language>en-gb</dc:language>
<dc:creator>OpenAustralia.org, mprss.php script</dc:creator>
<dc:date>' . $datenow . '</dc:date>

<items>
<rdf:Seq>
' . $items . '</rdf:Seq>
</items>

</channel>

' . $entries . '