... aber irgendwie zeigt er mir zuerst die Überschrift dann den Text und erst am Schluss das Bild.
Dem Modul nach würde ich ja eigentlich schliessen, dass zuerst das Bild die Headline und dann der Text kommt. (So wie ich es ja auch möchte.)
Hier der Auszug aus dem Code:
Code: Alles auswählen
foreach ($aData as $aValue) {
echo '<li>', chr(10);
if ($aSettings["Elements"] > 0) {
for ($i = 0; $i < $aSettings["Elements"]; $i++) {
switch (TRUE) {
case ($aSettings["k".$i]["ElementType"] == "Image" || $aSettings["k".$i]["ElementType"] == "ExtractedImage"):
$image = $aValue["i".$i]["WebPath"];
$width = $aValue["i".$i]["Width"];
$height = $aValue["i".$i]["Height"];
if ($aSettings["k".$i]["ElementWidth"] > 0 && $aSettings["k".$i]["ElementHeight"] > 0) {
# Check, if resize necessary
if ($aValue["i".$i]["ServerPath"] != "" && file_exists($aValue["i".$i]["ServerPath"]) && ($aValue["i".$i]["Width"] > $aSettings["k".$i]["ElementWidth"] || $aValue["i".$i]["Height"] > $aSettings["k".$i]["ElementHeight"])) {
# Scale image
$image = capiImgScale($aValue["i".$i]["ServerPath"], $aSettings["k".$i]["ElementWidth"], $aSettings["k".$i]["ElementHeight"], false, false, 10, false);
#Get dimensions of the image
list ($width, $height, $type, $attr) = getimagesize($image);
} else {
$image = $aValue["i".$i]["WebPath"];
$width = $aValue["i".$i]["Width"];
$height = $aValue["i".$i]["Height"];
}
}
if ($image != "") {
echo ' <img src="'.$image.'" width="'.$width.'" height="'.$height.'" />', chr(10); }
break;
default: // Everything else is treated as "Text"
echo '<h1>'.$aValue["Headline"].'</h1>', chr(10);
echo '<p>'.$aValue["i".$i]["Value"].'</p>', chr(10);
}