$content["newsletter"]["email_name"] = html_specialchars($content["newsletter"]["email_name"]); } if ($content["newsletter"]["success"]) { $content["newsletter"]["success_text"] = str_replace("{NEWSLETTER_EMAIL}", "<strong>" . $content["newsletter"]["email_address"] . "</strong>", $content["newsletter"]["success_text"]); $CNT_TMP .= div_class($content["newsletter"]["success_text"] ? nl2br($content["newsletter"]["success_text"]) : "Email: " . $content["newsletter"]["email_address"] . " successfully registred. You will receive a verification email within seconds.", $template_default["article"]["text_class"]); } else { if (empty($content["newsletter"]["label_pos"])) { $label_pos = false; $label_pos_tr = LF; $label_pos_colspan = ' colspan="2"'; } else { $label_pos = true; $label_pos_tr = '</tr>' . LF . '<tr>'; $label_pos_colspan = ''; } $CNT_TMP .= $content["newsletter"]["text"] ? "<br />" . nl2br(div_class($content["newsletter"]["text"], $template_default["article"]["text_class"])) : ""; $CNT_TMP .= '<form action="' . FE_CURRENT_URL . '" method="post" id="newsletterSubscribeForm">' . LF; $CNT_TMP .= '<table border="0" cellpadding="0" cellspacing="0"'; switch ($content["newsletter"]["pos"]) { case 1: $CNT_TMP .= ' align="left"'; break; case 2: $CNT_TMP .= ' align="center"'; break; case 3: $CNT_TMP .= ' align="right"'; break; } $CNT_TMP .= ' summary="">' . LF; if ($content["newsletter"]["email_address_error"]) {
$CNT_TMP .= nl2br(div_class($map['text'], $template_default["article"]["text_class"])); } if ($map['loc']) { $CNT_TMP .= '<h5>' . html_specialchars($map['loc']['map_title']) . '</h5>'; $map["location"] = ''; $map['loc']['map_zip'] = trim($map['loc']['map_zip'] . ' ' . $map['loc']['map_city']); if ($map['loc']['map_zip']) { $map["location"] .= '<strong>' . html_specialchars($map['loc']['map_zip']) . "</strong>\n"; } if ($map['loc']['map_entry']) { $map["location"] .= $map['loc']['map_entry']; //html_specialchars($map['loc']['map_entry']) } $map["location"] = trim($map["location"]); if ($map["location"]) { $CNT_TMP .= nl2br(div_class($map["location"], $template_default["article"]["text_class"])); } } } else { if ($map['loc']) { // build location entry $map['tmpl_location'] = render_cnt_template($map['tmpl_location'], 'TITLE', html_specialchars($map['loc']['map_title'])); $map['tmpl_location'] = render_cnt_template($map['tmpl_location'], 'ZIP', html_specialchars($map['loc']['map_zip'])); $map['tmpl_location'] = render_cnt_template($map['tmpl_location'], 'CITY', html_specialchars($map['loc']['map_city'])); $map['tmpl_location'] = render_cnt_template($map['tmpl_location'], 'ENTRY', $map['loc']['map_entry']); } else { $map['tmpl_location'] = ''; } $map['tmpl_content'] = render_cnt_template($map['tmpl_content'], 'MAP', $map['map_img']); $map['tmpl_content'] = render_cnt_template($map['tmpl_content'], 'TEXT', nl2br(html_specialchars($map['text']))); $map['tmpl_content'] = render_cnt_template($map['tmpl_content'], 'LOCATION', $map['tmpl_location']);
} if ($clist_diff_next == 0) { //entry close tag $crow["acontent_text"] .= '</' . $clist_listentry . '>' . LF; } else { if ($clist_diff_next > 0) { //entry close tag and list close tag $crow["acontent_text"] .= '</' . $clist_listentry . '>' . LF . '</' . $clist_listmain . '>' . LF; if ($clist_diff_next >= 1) { for ($i = 0; $i < abs($clist_diff_next) - 1; $i++) { //entry close tag if (!$i) { $crow["acontent_text"] .= '</' . $clist_listentry . '>' . LF; } //list close tag $crow["acontent_text"] .= '</' . $clist_listmain . '>' . LF; } //entry close tag $crow["acontent_text"] .= '</' . $clist_listentry . '>' . LF; } } } } //list close tag $crow["acontent_text"] .= '</' . $clist_listmain . '>' . LF; } $CNT_TMP .= $crow["acontent_text"]; } else { // show text only and do nothing else $CNT_TMP .= div_class(plaintext_htmlencode($crow["acontent_text"]), $template_default["article"]["text_class"]); }