[FAQ_QUESTION]

{FAQ_QUESTION}

[/FAQ_QUESTION] [FAQ_IMAGE]
{FAQ_IMAGE}[FAQ_CAPTION]
{FAQ_CAPTION}
[/FAQ_CAPTION]
[/FAQ_IMAGE] [FAQ_ANSWER]

{FAQ_ANSWER}

[/FAQ_ANSWER] '; } /* $thumb_image = get_cached_image( array( "target_ext" => $image[3], "image_name" => $image[2] . '.' . $image[3], "max_width" => $image[4], "max_height" => $image[5], "thumb_name" => md5($image[2].$image[4].$image[5].$phpwcms["sharpen_level"]) ) ); if($image[8]) { $zoominfo = get_cached_image( array( "target_ext" => $image[3], "image_name" => $image[2] . '.' . $image[3], "max_width" => $phpwcms["img_prev_width"], "max_height" => $phpwcms["img_prev_height"], "thumb_name" => md5($image[2].$phpwcms["img_prev_width"].$phpwcms["img_prev_height"].$phpwcms["sharpen_level"]) ) ); if($zoominfo == false) $image[8] = 0; } */ // 0 :1 :2 :3 :4 :5 :6 :7 :8 // dbid:filename:hash:extension:width:height:caption:position:zoom //build image/image link $thumb_image = false; $thumb_img = ''; $caption[0] = ''; if(!empty($crow["acontent_image"][2])) { $caption = getImageCaption(base64_decode($crow["acontent_image"][6])); $caption[0] = html_specialchars($caption[0]); $caption[3] = empty($caption[3]) ? '' : ' title="'.html_specialchars($caption[3]).'"'; //title $caption[1] = empty($caption[1]) ? html_specialchars($crow["acontent_image"][1]) : html_specialchars($caption[1]); $thumb_image = get_cached_image( array( "target_ext" => $crow["acontent_image"][3], "image_name" => $crow["acontent_image"][2] . '.' . $crow["acontent_image"][3], "max_width" => $crow["acontent_image"][4], "max_height" => $crow["acontent_image"][5], "thumb_name" => md5($crow["acontent_image"][2].$crow["acontent_image"][4].$crow["acontent_image"][5].$GLOBALS['phpwcms']["sharpen_level"]) )); if($thumb_image != false) { $thumb_img = ''; if($crow["acontent_image"][8]) { $zoominfo = get_cached_image( array( "target_ext" => $crow["acontent_image"][3], "image_name" => $crow["acontent_image"][2] . '.' . $crow["acontent_image"][3], "max_width" => $GLOBALS['phpwcms']["img_prev_width"], "max_height" => $GLOBALS['phpwcms']["img_prev_height"], "thumb_name" => md5($crow["acontent_image"][2].$GLOBALS['phpwcms']["img_prev_width"].$GLOBALS['phpwcms']["img_prev_height"].$GLOBALS['phpwcms']["sharpen_level"]) )); if($zoominfo != false) { $popup_img = 'image_zoom.php?'.getClickZoomImageParameter($zoominfo[0].'?'.$zoominfo[3]); if(!empty($caption[2][0])) { $open_link = $caption[2][0]; $return_false = ''; } else { $open_link = $popup_img; $return_false = 'return false;'; } $thumb_img = ''.$thumb_img.''; } } else { if($caption[2][0]) { $thumb_img = ''.$thumb_img.''; } } } } // now render whole recipe $crow["acontent_form"]['faq_template'] = render_cnt_template($crow["acontent_form"]['faq_template'], 'TITLE', html_specialchars($crow['acontent_title'])); $crow["acontent_form"]['faq_template'] = render_cnt_template($crow["acontent_form"]['faq_template'], 'SUBTITLE', html_specialchars($crow['acontent_subtitle'])); $crow["acontent_form"]['faq_template'] = render_cnt_template($crow["acontent_form"]['faq_template'], 'FAQ_QUESTION', html_specialchars($crow["acontent_text"])); $crow["acontent_form"]['faq_template'] = render_cnt_template($crow["acontent_form"]['faq_template'], 'FAQ_ANSWER', $crow["acontent_html"]); $crow["acontent_form"]['faq_template'] = render_cnt_template($crow["acontent_form"]['faq_template'], 'FAQ_IMAGE', $thumb_img); $crow["acontent_form"]['faq_template'] = render_cnt_template($crow["acontent_form"]['faq_template'], 'FAQ_CAPTION', $caption[0]); $crow["acontent_form"]['faq_template'] = str_replace('{FAQ_ID}', $crow['acontent_id'], $crow["acontent_form"]['faq_template']); $CNT_TMP .= $crow["acontent_form"]['faq_template']; unset($image, $caption); ?>