} $ecard_count++; } switch ($ecard["pos"]) { case 0: $ecard["chooser"] = imagelisttable($ecard, "0:5:0:0", '', 1); break; //links //links case 1: $ecard["chooser"] = imagelisttable($ecard, "0:5:0:0", "center", 1); break; //center //center case 1: $ecard["chooser"] = imagelisttable($ecard, "0:5:0:0", "center", 1); break; //right } $ecard["form"] = str_replace('###ECARD_CHOOSER###', $ecard["chooser"], $ecard["form"]); if (!$ecard["send_err"]) { $ecard["form"] = preg_replace("/<!--FORM_ERROR_START-->(.*?)<!--FORM_ERROR_END-->/si", '', $ecard["form"]); } $ecard["form"] = preg_replace("/name=[\\'|\"]###SENDER_NAME###[\\'|\"]/i", 'name="ecard_sender_name"', $ecard["form"]); $ecard["form"] = preg_replace("/name=[\\'|\"]###SENDER_EMAIL###[\\'|\"]/i", 'name="ecard_sender_email"', $ecard["form"]); $ecard["form"] = preg_replace("/name=[\\'|\"]###RECIPIENT_NAME###[\\'|\"]/i", 'name="ecard_recipient_name"', $ecard["form"]); $ecard["form"] = preg_replace("/name=[\\'|\"]###RECIPIENT_EMAIL###[\\'|\"]/i", 'name="ecard_recipient_email"', $ecard["form"]); $ecard["form"] = preg_replace("/name=[\\'|\"]###SENDER_MESSAGE###[\\'|\"]/i", 'name="ecard_sender_msg"', $ecard["form"]); $ecard["form"] = str_replace('###SENDER_NAME###', isset($ecard["sender_name"]) ? html_specialchars($ecard["sender_name"]) : '', $ecard["form"]); $ecard["form"] = str_replace('###SENDER_EMAIL###', isset($ecard["sender_email"]) ? html_specialchars($ecard["sender_email"]) : '', $ecard["form"]); $ecard["form"] = str_replace('###RECIPIENT_NAME###', isset($ecard["recipient_name"]) ? html_specialchars($ecard["recipient_name"]) : '', $ecard["form"]);
$imagetable .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); } $image['class'] = $image['class_float_left']; $imagetable .= imagelisttable($image, "0:0:0:0", "left"); break; //im Text rechts //im Text rechts case 7: if ($crow['render_titles']) { $imagetable .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); } $image['class'] = $image['class_float_right']; $imagetable .= imagelisttable($image, "0:0:0:0", "right"); break; //oben links //oben links default: $image['class'] = $image['class_top_left']; $imagetable .= imagelisttable($image, "0:0:0:0", ""); if ($crow['render_titles']) { $imagetable .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); } } $GLOBALS['cnt_image_lightbox'] = 0; $cnt_image_lightbox = 0; $CNT_TMP .= LF . trim(str_replace('{ID}', $crow["acontent_id"], render_cnt_template($crow["acontent_template"], 'IMAGETABLE', $imagetable))) . LF; unset($imagetable); } else { $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); } unset($image);