Add meta data and feed icon for news page.

Icon was downloaded from http://www.feedicons.com and follow their
guidelines.



SVN revision: 46227
This commit is contained in:
Gustavo Sverzut Barbieri 2010-02-17 01:22:38 +00:00
parent b6851ccd2e
commit f4558f03a8
4 changed files with 12 additions and 3 deletions

BIN
i/feed-icon-14x14.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

8
p.php
View File

@ -8,6 +8,14 @@
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<link rel="icon" href="favicon.png" type="image/ico">
<link rel="shortcut icon" href="favicon.png" type="image/ico">
<?php
if (is_file("p/$page/$lang-head")) include "p/$page/$lang-head";
if (is_file("p/$page/$lang-rss"))
echo '<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.php?p=$page&l=$lang">';
?>
</head>
<body>

View File

@ -29,8 +29,9 @@ if ($news->has_archives() == true)
}
?>
<p><a href="/rss.php?p=<?php echo $page; ?>&amp;l=<?php echo $lang; ?>"><img src="/i/feed-icon-14x14.png" alt="rss" border="0" /> Be informed of updates using RSS 2.0.</a></p>
</div>
</td>
</tr>
</table>

View File

@ -1,11 +1,11 @@
<?php
header("Content-type: application/xml");
header("Content-type: application/rss+xml");
echo '<?xml version="1.0"?>'
?>
<?php include 'site/site.php'; ?>
<rss version="2.0">
<channel>
<title><?php echo "$lang"; ?></title>
<title><?php echo "$title"; ?></title>
<link>http://enlightenment.org/p.php?p=<?php echo "$page"; ?>&amp;l=<?php echo "$lang"; ?></link>
<language><?php echo "$lang"; ?></language>
<pubDate><?php echo strftime ("%a, %d %b %Y %H:%M:%S %z") ;?></pubDate>