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:
parent
b6851ccd2e
commit
f4558f03a8
Binary file not shown.
After Width: | Height: | Size: 689 B |
8
p.php
8
p.php
|
@ -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>
|
||||
|
|
|
@ -29,8 +29,9 @@ if ($news->has_archives() == true)
|
|||
}
|
||||
|
||||
?>
|
||||
|
||||
<p><a href="/rss.php?p=<?php echo $page; ?>&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>
|
||||
|
||||
|
|
4
rss.php
4
rss.php
|
@ -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"; ?>&l=<?php echo "$lang"; ?></link>
|
||||
<language><?php echo "$lang"; ?></language>
|
||||
<pubDate><?php echo strftime ("%a, %d %b %Y %H:%M:%S %z") ;?></pubDate>
|
||||
|
|
Loading…
Reference in New Issue