Unnamed
public text v1 · immutable<?php
if (is_single('35')) {
$ch = curl_init('http://ws.audioscrobbler.com/1.0/artist/Jedi%20Jane/fans.xml');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$curl_return = curl_exec($ch);
$xml = simplexml_load_string($curl_return);
echo $xml;
foreach ($xml as $element) {
if ($i< 12) {
echo '<a href="';
echo $element->url;
echo '">';
echo '<img src="';
echo $element->image;
echo '"/>';
echo '</a>';
}
$i++;
$result = count($element);
}
elseif (is_single('34')) {