// output
$wicon = ImageCreateFromPNG ( $icon );
ImageCopyResampled($image, $wicon, imagesx($image)-95, $offset+5, 0, 0, imagesx($wicon)/2, imagesy($wicon)/2, imagesx($wicon), imagesy($wicon));
ImageDestroy($wicon);
$opt = array(
'width' => 150,
'align' => ALIGN_RIGHT
);
$text = $day."\n".$high."° | ".$low."°\n".$condition;
imagettftextboxopt($image, 13, 0, imagesx($image)-245, $offset, $style['textcolor'], $style['fontb'], $text, $opt);
}
}
}
//************************************************** Moonplugin *******************************************************************
require('plugins/MoonPlugin.php');
$current_icon = 'resources/icons/mond'.$mondphasen_img.'.png';
$wicon = ImageCreateFromPNG ( $current_icon );
//ImageAlphablending ($wicon, true);
ImageCopy($image, $wicon, imagesx($image)-90, +460, 0, 0, imagesx($wicon), imagesy($wicon));
ImageDestroy($wicon);
$opt = array(
'width' => 280,
'align' => ALIGN_RIGHT
);
$text = $phase_text;
imagettftextboxopt($image, 13, 0, imagesx($image)-380, 515, $style['textcolor'], $style['fontb'], $text, $opt);
$opt = array(
'width' => 350,
'align' => ALIGN_RIGHT
);
$text = $tweet;
imagettftextboxopt($image, 9, 0, imagesx($image)-355, 535, $style['textcolor'], $style['fontb'], $text, $opt);
$wicon = ImageCreateFromPNG ('resources/icons/balken.png');
ImageCopy($image, $wicon, imagesx($image)-320, +570, 0, 0, imagesx($wicon), imagesy($wicon));
ImageDestroy($wicon);
$wicon = ImageCreateFromPNG ('resources/icons/raster.png');
ImageCopy($image, $wicon, imagesx($image)-320, +570, 0, 0, imagesx($wicon), imagesy($wicon));
ImageCopy($image, $wicon, imagesx($image)-170, +570, 0, 0, imagesx($wicon), imagesy($wicon));
ImageCopy($image, $wicon, imagesx($image)-20, +570, 0, 0, imagesx($wicon), imagesy($wicon));
ImageDestroy($wicon);
imagettftextboxopt($image, 8, 0, imagesx($image)-650, 583, $style['textcolor'], $style['fontb'], 'Vollmond', $opt);
imagettftextboxopt($image, 8, 0, imagesx($image)-350, 583, $style['textcolor'], $style['fontb'], 'Vollmond', $opt);
imagettftextboxopt($image, 8, 0, imagesx($image)-500, 583, $style['textcolor'], $style['fontb'], 'Neumond', $opt);
imagettftextboxopt($image, 7, 0, imagesx($image)-407, 578, $style['textcolor'], $style['fontb'], 'zunehmender Mond', $opt);
imagettftextboxopt($image, 7, 0, imagesx($image)-556, 578, $style['textcolor'], $style['fontb'], 'abnehmender Mond', $opt);
//**************************************************************************************************************************************
}