", $index_template ); $loop_part_wk = $array_wk[1]; $index_template = str_replace( $loop_part_wk, "", $index_template ); //---------------------------- // replace for( $i=0; $i" : ""; $photo2 = ( "" != $array_data[$i]['photo2'] ) ? "" : ""; $alt1 = ( "" != $array_data[$i]['alt1'] ) ? "" . $array_data[$i]['alt1'] . "" : ""; $alt2 = ( "" != $array_data[$i]['alt2'] ) ? "" . $array_data[$i]['alt2'] . "" : ""; $text1 = str_escapetag( $array_data[$i]['text1'] ); $text2 = str_escapetag( $array_data[$i]['text2'] ); $text3 = str_escapetag( $array_data[$i]['text3'] ); $aname = "i" . $array_data[$i]['id']; $loop_part = ""; $loop_part = $loop_part_wk; $loop_part = str_replace( "", $aname, $loop_part ); $loop_part = str_replace( "", $year, $loop_part ); $loop_part = str_replace( "", $month, $loop_part ); $loop_part = str_replace( "", $day, $loop_part ); $loop_part = str_replace( "", $dow, $loop_part ); $loop_part = str_replace( "", $text1, $loop_part ); $loop_part = str_replace( "", $text2, $loop_part ); $loop_part = str_replace( "", $text3, $loop_part ); $loop_part = str_replace( "",$photo1, $loop_part ); $loop_part = str_replace( "",$photo2, $loop_part ); $loop_part = str_replace( "", $alt1, $loop_part ); $loop_part = str_replace( "", $alt2, $loop_part ); $loop_part_re .= $loop_part; $count++; } $index_template = str_replace( "", $loop_part_re, $index_template ); $index_template = str_replace( "", $str_navi, $index_template ); //---------------------------- // show echo "$index_template"; ?>