Skip to content

Instantly share code, notes, and snippets.

@dgellow
Created February 5, 2013 12:09
Show Gist options
  • Save dgellow/4714103 to your computer and use it in GitHub Desktop.
Save dgellow/4714103 to your computer and use it in GitHub Desktop.
Main template for RSS feed - Module 151
<?php
/**
* Created by JetBrains PhpStorm.
* User: dainii
* Date: 31/01/13
* Time: 17:18
* To change this template use File | Settings | File Templates.
*/
?>
<?php
// Définit le header qui annonce que c'est un RSS
header("Content-Type: application/rss+xml; charset=ISO-8859-1");
?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Début du flux RSS -->
<rss version="2.0">
<channel>
<language>fr-ch</language>
<copyright>Copyright (C) 2013 microlulz.ch</copyright>
<!-- Affiche le flux -->
<?php print $rssfeed ?>
<!-- Ferme le flux -->
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment