$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"].$crop), 'crop_image' => $crop ) ); 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; } $table = ''; if($thumb_image != false) { // read content image info $table_class = $GLOBALS["template_default"]["article"]["image_table_class"]; $table_class = ($table_class) ? ' class="'.$table_class.'"' : ''; $table_bgcolor = $GLOBALS["template_default"]["article"]["image_table_bgcolor"]; $table_bgcolor = ($table_bgcolor) ? ' bgcolor="'.$table_bgcolor.'"' : ''; $image_align = $GLOBALS["template_default"]["article"]["image_align"]; $image_align = ($image_align) ? ' align="'.$image_align.'"' : ''; $image_valign = $GLOBALS["template_default"]["article"]["image_valign"]; $image_valign = ($image_valign) ? ' valign="'.$image_valign.'"' : ''; $image_border = ' border="'.intval($GLOBALS["template_default"]["article"]["image_border"]).'"'; $image_imgclass = $GLOBALS["template_default"]["article"]["image_imgclass"]; $image_imgclass = ($image_imgclass) ? ' class="'.$image_imgclass.'"' : ''; $image_class = $GLOBALS["template_default"]["article"]["image_class"]; $image_class = ($image_class) ? ' class="'.$image_class.'"' : ''; $image_bgcolor = $GLOBALS["template_default"]["article"]["image_bgcolor"]; $image_bgcolor = ($image_bgcolor) ? ' bgcolor="'.$image_bgcolor.'"' : ''; $caption_class = $GLOBALS["template_default"]["article"]["image_caption_class"]; $caption_class = ($caption_class) ? ' class="'.$caption_class.'"' : ''; $caption_bgcolor= $GLOBALS["template_default"]["article"]["image_caption_bgcolor"]; $caption_bgcolor= ($caption_bgcolor) ? ' bgcolor="'.$caption_bgcolor.'"' : ''; $caption_valign = $GLOBALS["template_default"]["article"]["image_caption_valign"]; $caption_valign = ($caption_valign) ? ' valign="'.$caption_valign.'"' : ''; $caption_align = $GLOBALS["template_default"]["article"]["image_caption_align"]; $caption_align = ($caption_align) ? ' align="'.$caption_align.'"' : ''; $capt_before = $GLOBALS["template_default"]["article"]["image_caption_before"]; $capt_after = $GLOBALS["template_default"]["article"]["image_caption_after"]; // image caption //$caption = explode('|', base64_decode($image[6])); $caption = getImageCaption(base64_decode($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($image[1]) : html_specialchars($caption[1]); // image source $img = ''; $tablewidth = $thumb_image[1]; // spaces around image table $rand = explode(":", $rand); if(is_array($rand) && count($rand)) { foreach($rand as $key => $value) { $rand[$key] = intval($value); } } else { $rand = array(0,0,0,0); } if($rand[2] && $rand[3]) { $colspan = ' colspan="3"'; } else { if($rand[2] || $rand[3]) { $colspan = ' colspan="2"'; } else { $colspan = ''; } } $tablewidth += $rand[2] + $rand[3]; $table .= '
'.spacer(1,$rand[0])." | |||
'.spacer($rand[2],1).' | ' : ''; if($image[8]) { $open_popup_link = 'image_zoom.php?'.getClickZoomImageParameter($zoominfo[0].'?'.$zoominfo[3]); $table .= '"; if($caption[2][0]) { $open_link = $caption[2][0]; $return_false = ''; } else { $open_link = $open_popup_link; $return_false = 'return false;'; } if(!$cnt_image_lightbox || $caption[2][0]) { $table .= ""; } else { $table .= ' | '; } else { $table .= '"; if($caption[2][0]) { $table .= ''.$img.''; } else { $table .= $img; } $table .= ' | '; } $table .= ($rand[3]) ? "".spacer($rand[3],1)." | " : ""; $table .= "
".spacer($rand[2],1)." | " : ""; $table .= ''.$capt_before.$caption[0]; if($caption[4] !== '') { $table .= ' '.html_specialchars($caption[4]).''; } $table .= $capt_after." | "; $table .= ($rand[3]) ? "".spacer($rand[3],1)." | " : ""; $table .= "|
".spacer(1,$rand[1])." |
'.$capt_before.$caption[0]; if($caption[4] !== '') { $image_block .= ' '.html_specialchars($caption[4]).''; } $image_block .= $capt_after."
"; } $image_block .= "1)?" colspan=\"".$col_total."\"":""); if(!empty($GLOBALS["template_default"]['article']['imagelist_spacerrow_class'])) { $table .= ' class="'.$GLOBALS["template_default"]['article']['imagelist_spacerrow_class'].'">'; $table .= spacer(1,1).' | '.LF.'||||||
1)?' colspan="'.$col_total.'"':'').'>'.spacer(1,$rand[0]).' | '.LF.''.spacer($rand[2],1).' | '.LF : ''; //Neue Tabellenzeile $capt_tmp = ''; $capt_row = '|||||
'; //width="'.$imagelist[$key]["w"].'" removed because no centered image possible $thumb_image = get_cached_image( array( "target_ext" => $imagelist['images'][$key][3], "image_name" => $imagelist['images'][$key][2] . '.' . $imagelist['images'][$key][3], "max_width" => $imagelist['images'][$key][4], "max_height" => $imagelist['images'][$key][5], "thumb_name" => md5( $imagelist['images'][$key][2].$imagelist['images'][$key][4]. $imagelist['images'][$key][5].$GLOBALS['phpwcms']["sharpen_level"].$crop), 'crop_image' => $crop ) ); if($imagelist['zoom']) { $zoominfo = get_cached_image( array( "target_ext" => $imagelist['images'][$key][3], "image_name" => $imagelist['images'][$key][2] . '.' . $imagelist['images'][$key][3], "max_width" => $GLOBALS['phpwcms']["img_prev_width"], "max_height" => $GLOBALS['phpwcms']["img_prev_height"], "thumb_name" => md5( $imagelist['images'][$key][2].$GLOBALS['phpwcms']["img_prev_width"]. $GLOBALS['phpwcms']["img_prev_height"].$GLOBALS['phpwcms']["sharpen_level"] ) ) ); } // now try to build caption and if neccessary add alt to image or set external link for image $caption = getImageCaption($imagelist['images'][$key][6]); // set caption and ALT Image Text for imagelist $capt_cur = !$type ? html_specialchars($caption[0]) : $caption[0]; $caption[3] = empty($caption[3]) ? '' : ' title="'.html_specialchars($caption[3]).'"'; //title $caption[1] = empty($caption[1]) ? html_specialchars($imagelist['images'][$key][1]) : html_specialchars($caption[1]); $list_img_temp = ''; if($imagelist['zoom'] && isset($zoominfo) && $zoominfo != false) { // if click enlarge the image $open_popup_link = 'image_zoom.php?'.getClickZoomImageParameter($zoominfo[0].'?'.$zoominfo[3]); if($caption[2][0]) { $open_link = $caption[2][0]; $return_false = ''; } else { $open_link = $open_popup_link; $return_false = 'return false;'; } if(!$lightbox || $caption[2][0]) { $table .= "'; } else { // lightbox $table .= '"; } else { // if not click enlarge if($caption[2][0]) { $table .= ''.$list_img_temp.''; } else { $table .= $list_img_temp; } } $table .= ' | '.LF; $capt_tmp .= $capt_cur; $capt_row .= ''.$capt_before.$capt_cur.$capt_after.' | '.LF; //Gegenchecken wieviele Tabellenspalten als Rest bleiben und ergänzen if($y == $count_images && $col_count > 1) { //wenn eigentlich alle Bilder durchlaufen sind if ($col_space && $x<$col_count) { $xct = ''.spacer($col_space,1).' | '.LF; $table .= $xct; $capt_row .= $xct; } $rest_image = (ceil($count_images / $col_count) * $col_count) - $count_images; for ($i=1; $i <= $rest_image; $i++) { $table .= ''; $capt_row .= ' | '; if($i < $rest_image) { if($col_space) { $xct = ' | '.spacer($col_space,1).' | '.LF; $table .= $xct; $capt_row .= $xct; } } $x++; } } if($x==$col_count) { //Wenn maximale Anzahl Bildspalten erreicht $xct = ($rand[3]) ? ''.spacer($rand[3],1).' | '.LF : ''; $table .= $xct; $capt_row .= $xct; $table .= "'.spacer($col_space,1).' | '.LF : ''; $table .= $xct; $capt_row .= $xct; $x++; } // end if max image count if($imagelist['limit'] == $y) { break; } } if($rand[1]) { $table .= '
1)?" colspan=\"".$col_total."\"":"").">".spacer(1,$rand[1]).' | '.LF.'