Example #1
0
?>
 articles <a href="rss.php">RSS Feed</a></div>
<?php 
foreach (getArticles(10) as $key => $article) {
    ?>
    <div class="title"><a href="article.php/<?php 
    echo prepareTitle(getArticleTitle($article));
    ?>
"><?php 
    echo getArticleTitle($article);
    ?>
</a></div>
    <div class="published">Published: <?php 
    echo date("F d Y H:i:s", getArticlePublished($article));
    ?>
</div>
    <div class="intro"><?php 
    echo getArticleIntro($article);
    ?>
</div>
<?php 
}
?>
<hr/>
<div align="center">
<a href="http://sourceforge.net/project/tinynews"><img src="images/tinynews.gif" border=0></a>&nbsp;
<a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=234340&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
</div>
</body>
</html>
Example #2
0
</description>
<link><?php 
echo $CONFIG['site']['url'];
?>
</link>
<copyright>W&amp;C Information Consultants CC</copyright>
<?php 
foreach (getArticles(10) as $key => $article) {
    ?>
    <item>
        <title><?php 
    echo htmlentities(strip_tags(getArticleTitle($article)));
    ?>
</title>
        <description><?php 
    echo htmlentities(strip_tags(getArticleIntro($article), 'ENT_QUOTES'));
    ?>
</description>
        <link><?php 
    echo $CONFIG['site']['url'] . 'article.php/' . prepareTitle(getArticleTitle($article));
    ?>
</link>
        <pubDate><?php 
    echo strftime("%a, %d %b %Y %T %Z", getArticlePublished($article));
    ?>
</pubDate>
     </item>
<?php 
}
?>
</channel>