Installation

Télécharger et décompresser le fichier simplepie.zip
Copier le fichier "simplepie.php" dans votre dossier "frog09x\frog\helpers"

Utilisation

Vous pouvez créer une page avec le code suivant :

<?php
use_helper('simplepie');
$feed = new SimplePie('http://simplepie.org/blog/feed/'); // or your rss url
$feed->handle_content_type();
?>

<h1><a href="<?php echo $feed->get_permalink(); ?>"><?php echo $feed->get_title(); ?></a></h1>
<p><?php echo $feed->get_description(); ?></p>

<?php
/* Here, we'll loop through all of the items in the feed, and $item represents the current item in the loop. */
foreach ($feed->get_items() as $item):
?>

<div class="item">
<h2><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h2>
<p><?php echo $item->get_description(); ?></p>
<p><small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small></p>
</div>

<?php endforeach; ?>

Téléchargement

télécharger Simplepie-helper (699 fois)

Installation

Download and unzip the simplepie.zip file
Copy the "simplepie.php" file in the helpers directory "frog09x\frog\helpers"

Usage

Vous can add a new page with the following code:

<?php
use_helper('simplepie');
$feed = new SimplePie('http://simplepie.org/blog/feed/'); // or your rss url
$feed->handle_content_type();
?>

<h1><a href="<?php echo $feed->get_permalink(); ?>"><?php echo $feed->get_title(); ?></a></h1>
<p><?php echo $feed->get_description(); ?></p>

<?php
/* Here, we'll loop through all of the items in the feed, and $item represents the current item in the loop. */
foreach ($feed->get_items() as $item):
?>

<div class="item">
<h2><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h2>
<p><?php echo $item->get_description(); ?></p>
<p><small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small></p>
</div>

<?php endforeach; ?>

Download

Simplepie-helper (699 fois)

Copyright

A PHP-Based RSS and Atom Feed Framework.
Takes the hard work out of managing a complete RSS/Atom solution.

Copyright (c) 2004-2008, Ryan Parman and Geoffrey Sneddon
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of the SimplePie Team nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

SimplePie version 1.1.1
Copyright 2004-2008 Ryan Parman, Geoffrey Sneddon
SimplePie
BSD License

Limiter à 5 articles (200 caractères), classés par date (en français)

Quick-n-Dirty Multifeeds Demo

L’Hebdo WordPress : Meetups – Discussion – Android

2012, l’année des rencontres WordPress Jane Wells déclare l’année 2012 comme étant l’année des rencontres WordPress. Que ce soit des WordCamps, des meetups formels ou non ou tou...

Source: WordPress Francophone | mardi 31 janvier 2012

L’Hebdo WordPress : Meetup Nantes – Widgets – Astuces

Un meetup WordPress à Nantes Cela fait de nombreux mois que l’idée d’un meetup à Nantes avait germé dans l’esprit de certains, notamment d’Ozh Richard. Cette fois, c’...

Source: WordPress Francophone | mardi 24 janvier 2012

L’Hebdo WordPress : Android – Akismet – BuddyPress

WordPress pour Android 2.0.4 La version pour Android poursuit son évolution et passe en version 2.0.4. Mettez donc à jour. Akismet 2.5.5 L’extension antispam la plus célèbre évolue beaucoup...

Source: WordPress Francophone | mardi 17 janvier 2012

L’Hebdo WordPress : WordPress 3.4 – Akismet – Android

Histoire de vous faire patienter jusqu’à 9 H 00 et le lancement officiel de Free Mobile, 4e opérateur français – je suis certain qu’un bon nombre d’entre vous va suivre avec...

Source: WordPress Francophone | mardi 10 janvier 2012

WordPress 3.3.1

WordPress 3.3.1 est disponible. Cette mise à jour apporte 15 correctifs depuis WordPress 3.3, dont une vulnérabilité XSS qui l’affectait. Merci à Joshua H., Hoang T., Stefan Zimmerman, Chris...

Source: WordPress Francophone | mardi 3 janvier 2012

Oração para o Ano Novo. Que venha 2012!

Hoje é o dia de escolher. É apenas mais um fim ou outra chance, um recomeço? Por Dé Guimarães – Blog do Guima   Querido Pai. Permita que eu tenha apenas o que precise, que eu colha ap...

Source: Blog do Guima | samedi 31 décembre 2011

“Blog” – primeira parte!

De onde veio o termo BLOG? Essa é a foto de Jorn Barger que deu origem em 17 de dezembro de 1997 ao termo “WEBLOG” (web+log=arquivo web), criando o que se pode chamar de “o primeiro...

Source: Blog do Guima | lundi 12 décembre 2011

Commentaires

0 comments