Skip to content

Instantly share code, notes, and snippets.

@dgellow
Last active December 12, 2015 02:28
Show Gist options
  • Save dgellow/4698723 to your computer and use it in GitHub Desktop.
Save dgellow/4698723 to your computer and use it in GitHub Desktop.
<title><?php print($title) ?></title>
<link><?php print($site)?></link>
<description><?php print(description)?></description>';
<?php foreach ($articles as $a) { ?>
<item>
<title> <?php print($a->getName()); ?></title>
<link><?php print($site) ?>/article.php?id= <?php print($a->getId()) ?></link>
<pubDate> <?php print(date("D, d M Y H:i:s")) ?></pubDate>
</item>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment