forked from pyrus/Pyrus_SimpleChannelFrontend
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move templates into html directory. Add directory for rss templates. …
…Get RSS feed of latest packages working.
- Loading branch information
1 parent
dd85bec
commit ff75a77
Showing
18 changed files
with
66 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php foreach($context as $package): ?> | ||
<item rdf:about="<?php echo pear2\SimpleChannelFrontend\Main::getURL().$package->name.'-'.$package->version['release']; ?>"> | ||
<title><?php echo $package->name.' '.$package->version['release']; ?></title> | ||
<link><?php echo pear2\SimpleChannelFrontend\Main::getURL().$package->name.'-'.$package->version['release']; ?></link> | ||
<content:encoded> | ||
<?php echo htmlspecialchars(nl2br($package->notes)); ?> | ||
</content:encoded> | ||
<dc:date><?php echo date('c', strtotime($package->date.' '.$package->time)); ?></dc:date> | ||
</item> | ||
<?php endforeach; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL; ?> | ||
<rdf:RDF | ||
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/" | ||
xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
> | ||
<channel rdf:about="<?php echo pear2\SimpleChannelFrontend\Main::getURL(); ?>"> | ||
<link><?php echo pear2\SimpleChannelFrontend\Main::getURL(); ?></link> | ||
<dc:creator>pear-webmaster@lists.php.net</dc:creator> | ||
<dc:publisher>pear-webmaster@lists.php.net</dc:publisher> | ||
<dc:language>en-us</dc:language> | ||
<title><?php echo pear2\SimpleChannelFrontend\Main::$channel->summary; ?>: Latest releases</title> | ||
<description>The latest releases for <?php echo pear2\SimpleChannelFrontend\Main::$channel->summary; ?>.</description> | ||
</channel> | ||
<?php echo $savant->render($context->page_content); ?> | ||
</rdf:RDF> |