Réarrangement Item d'un flux RSS

Fermé
vlar Messages postés 2281 Date d'inscription vendredi 17 août 2007 Statut Membre Dernière intervention 29 novembre 2013 - 21 avril 2010 à 10:30
Bonjour a la communauté

Une autre question me taraude : Est-il possible de réarranger les items générés par un flux RSS généré par la bibliothèque simple pie

Je voudrais forcer la mise en page des images au centre est ce possible?

Et d'exclure les éléments affichant l'erreur suivante visible par une icone grisée comme si c'etait une mauvaise extension :

http://feeds.feedburner.com/~ff/rslinks-org?a%3DNlwwNDfbDcU:rqbQ7c6Ieko:F7zBnMyn0Lo

Que dois-ajouter dans mon echo suivant :

<?php if ($feed->error): ?>
<?php echo $feed->error; ?>
<?php endif; ?>

<h1>Derniers Ajouts </h1>

<?php foreach ($feed->get_items() as $item): ?>

<div class="chunk">

<?php /* Here, we'll use the $item->get_feed() method to gain access to the parent feed-level data for the specified item. */ ?>
<h4 class="title" style="background-image:url(<?php $feed = $item->get_feed(); echo $feed->get_favicon(); ?>);"><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h4>

<?php echo $item->get_content(); ?>

<p class="footnote">Source: <a href="<?php $feed = $item->get_feed(); echo $feed->get_permalink(); ?>"><?php $feed = $item->get_feed(); echo $feed->get_title(); ?></a> | <?php echo $item->get_date('j M Y | g:i a T'); ?></p>

</div>

<?php endforeach;?>