Here is code that displays the Spaceweather.com sunspot image. In 'include-wxastronomy.php' substitute this section (shown in context):
// -----------------------------------------------------------------------------
// SUN: images available from: NASA Goddard Space Flight Center (128x128)
// OR from Spaceweather.com
date_default_timezone_set("US/Eastern"); # Spaceweather.com url needs these
$yrmoday = date("YMd"); // Today as 'yyyymondd'
date_default_timezone_set($SITE['tz']); # Reset 'tz' to default
$yr4 = substr($yrmoday,0,4);
$yr2 = substr($yr4,2,2);
$mo = strtolower(substr($yrmoday,4,3));
$today = substr($yrmoday,7,2);
// End Spaceweather.com calculations
$sunSW = array($today.$mo.$yr2.'/hmi200.gif',
'http://spaceweather.com/images'.$yr4.'/'.$today.$mo.$yr2.'/hmi4096_blank.jpg'); // Spaceweather rendition
$sunA128 = array('latest_aia_171_tn.gif',
'http://umbra.nascom.nasa.gov/images/latest_aia_171.gif'); // Fe IX, X 171 Å (blue ... sun spots and flares)
$sunB128 = array('latest_aia_193_tn.gif',
'http://umbra.nascom.nasa.gov/images/latest_aia_193.gif'); // Fe XII 193 Å (green ... sun spots and flares)
$sunC128 = array('latest_aia_211_tn.gif',
'http://umbra.nascom.nasa.gov/images/latest_aia_211.gif'); // Fe XV 211 Å (yellow ... sun spots and flares)
$sunD128 = array('latest_aia_304_tn.gif',
'http://umbra.nascom.nasa.gov/images/latest_aia_304.gif'); // He II 304 Å (orange ... sun spots and flares)
$sunE128 = array('latest_xrt_tn.gif',
'http://umbra.nascom.nasa.gov/images/latest_xrt.gif'); // Soft X-ray image in the titanium-polyimide
$sunF128 = array('latest_solisMG_thumbnail.gif',
'http://umbra.nascom.nasa.gov/images/latest_solisMG.gif'); // Photospheric longitudinal magnetograms (gray )
$sunG128 = array('latest_solisHe_thumbnail.gif',
'http://umbra.nascom.nasa.gov/images/latest_solisHe.gif'); // He I 10830 Å spectroheliograms (orange)
$sunH128 = array('latest_solisCh_thumbnail.gif',
'http://umbra.nascom.nasa.gov/images/latest_solisCh.gif'); // Ca II 8542 Å longitudinal magnetograms (red )
$sunI128 = array('latest_K_line_thumbnail.gif',
'http://umbra.nascom.nasa.gov/images/latest_K_line.gif'); // RISE/PSPT Ca II K filtergrams (blue )
$sunJ128 = array('latest_mk4_thumbnail.gif',
'http://umbra.nascom.nasa.gov/images/latest_mk4.gif'); // White-light Mk. 4 coronameter (halo )
$sunK128 = array('latest_hmi_igram_tn.gif',
'http://umbra.nascom.nasa.gov/images/latest_hmi_igram.gif'); // Helioseismic and Magnetic Imager (HMI) (orange ... smooth)
// pick your sun image from one of the above choices
$sunImg = $sunSW;
if ($sunImg == $sunSW) {
$sunURL = 'http://spaceweather.com/images'.$yr4.'/'; // Spaceweather rendition
} else {
$sunURL = 'http://umbra.nascom.nasa.gov/images/';
}
// -----------------------------------------------------------------------------
// EARTH: images available from: Fourmilab Switzerland (200x200) .
// -----------------------------------------------------------------------------
and this section (again shown in context):
<!-- SUN IMAGE -->
<td align="center">
<?php if ($sunImg == $sunSW) { ?>
<b><a href="http://spaceweather.com/" target="_blank" title="Off Site" style="color:#FF0000;"><?php echo langtransstr("Sun Spots"); ?></a></b><br />
<?php } else { ?>
<b style="color:#FF0000;"><?php echo langtransstr("Sun Spots"); ?></b><br />
<?php }?>
<a href="<?php echo $sunImg[1]?>" target="_blank">
<img border="0" src="<?php echo $sunURL.$sunImg[0] ?>" width="120" height="120"
alt ="<?php echo langtransstr('Sun Spots'); ?>"
title="<?php echo langtransstr('Click for Larger Sun Spots Image'); ?>"/></a><br />
</td>
<!-- EARTH IMAGE -->
I've added a link to the Spaceweather.com site in the 'Sun Spots' title over the thumbnail.
(My apologies for the formatting--I use tab2, and it gets messy here.)