global $image_maxheight, $image_maxwidth, $adminpath;
$str = str_replace(" ", "%20",$str);
$caption = stripslashes($caption);
list($width, $height, $type, $attr) = getimagesize("$str");
if(!$image_maxheight){ $image_maxheight = $height; }
if(!$image_maxwidth){ $image_maxwidth = $width; }
$str = str_replace("home/sites/mysitename.co.uk/public_html/content", "news", $str);
$fullpath = str_replace("home/sites/mysitename.co.uk/public_html/content", "news", $str);
return "<div class=\"image_container\" style=\"width: $new_width" . "px\"><a href=\"$str\"><img class=\"fullnewsimage\" alt=\"image\" src=\"" . $adminpath . "?action=options&mod=imageuploads&width=$new_width&height=$new_height&thumb=$str\" /></a><br style=\"clear: both\" /><span class=\"image_caption\">$caption</span></div>";
return "<div class=\"image_container\" style=\"width: $new_width" . "px\"><a href=\"$fullpath\"><img class=\"fullnewsimage\" alt=\"image\" src=\"" . $adminpath . "?action=options&mod=imageuploads&width=$new_width&height=$new_height&thumb=$str\" /></a><br style=\"clear: both\" /><span class=\"image_caption\">$caption</span></div>";
alt=\"image\"
title=\"Click to Enlarge\"