mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Improve feed
This commit is contained in:
parent
f3ac7285ed
commit
6d0d3e87e6
1 changed files with 4 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
header("Content-Type: application/rss+xml; charset=UTF8");
|
header("Content-Type: application/rss+xml; charset=UTF8");
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,9 +12,8 @@ $_POST['rowCount'] = 50;
|
||||||
// send $_GET['catName'] to be able to filter by category
|
// send $_GET['catName'] to be able to filter by category
|
||||||
$rows = Video::getAllVideos("viewable");
|
$rows = Video::getAllVideos("viewable");
|
||||||
|
|
||||||
echo'<?xml version="1.0" encoding="UTF8"?>'
|
echo'<?xml version="1.0" encoding="UTF-8"?>'
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||||
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
|
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
@ -22,7 +21,7 @@ echo'<?xml version="1.0" encoding="UTF8"?>'
|
||||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||||
xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
|
xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
|
||||||
<channel>
|
<channel>
|
||||||
<atom:link href="<?php echo $global['webSiteRootURL']; ?>feed/" rel="self" type="application/rss+xml" />
|
<atom:link href="<?php echo $global['webSiteRootURL'], $_SERVER["REQUEST_URI"]; ?>" rel="self" type="application/rss+xml" />
|
||||||
<title>RSS <?php echo $config->getWebSiteTitle(); ?></title>
|
<title>RSS <?php echo $config->getWebSiteTitle(); ?></title>
|
||||||
<description>Rss Feed</description>
|
<description>Rss Feed</description>
|
||||||
<link><?php echo $global['webSiteRootURL']; ?></link>
|
<link><?php echo $global['webSiteRootURL']; ?></link>
|
||||||
|
@ -30,7 +29,7 @@ echo'<?xml version="1.0" encoding="UTF8"?>'
|
||||||
<sy:updateFrequency>1</sy:updateFrequency>
|
<sy:updateFrequency>1</sy:updateFrequency>
|
||||||
|
|
||||||
<image>
|
<image>
|
||||||
<title>RSS Feed</title>
|
<title>RSS <?php echo $config->getWebSiteTitle(); ?></title>
|
||||||
<url><?php echo $global['webSiteRootURL']; ?>videos/userPhoto/logo.png</url>
|
<url><?php echo $global['webSiteRootURL']; ?>videos/userPhoto/logo.png</url>
|
||||||
<link><?php echo $global['webSiteRootURL']; ?></link>
|
<link><?php echo $global['webSiteRootURL']; ?></link>
|
||||||
<width>144</width>
|
<width>144</width>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue