Étape 4: personnalisations
Il existe aussi d’autres aliments comme
(favoris)
(nouveau instructables de vos followers)
<? php
$url = « » ;
$feed = simplexml_load_file($url) ;
$feed_array = array() ;
foreach ($feed -> canal -> élément comme $item)
{
echo "< div style =" float : left ; Largeur : 200px ; hauteur : 300px ; marge-droit : 15px ; text-align : center; " > ";
echo "< a href =" ". $item -> lien. "" target = « _blank » > ";
Si (strpos ($item -> imageThumb, "com"))
{
echo "< img src =" ". $item -> imageThumb. "' />";
}
d’autre
{
echo "< img src =" http://www.instructables.com ". $item -> imageThumb. "' />";
}
echo "< br / >". $item -> title. "< /a >< / div >" ;
}
echo "< div style =' Effacer : les deux; » > & nbsp ; < / div > »
? >
Page générée à l’aide de ce Instructable < a href = « » target = « _blank » >