WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// Check if a main thumb/image is set if ($image_file == $item['main_image']) { $thumb = $prepend.$thumb_url.$thumb_file.$img_append; $image = $prepend.$img_url.$image_file.$img_append; continue; } // Make array $thumb_arr[] = $prepend.$thumb_url.$thumb_file.$thumb_append; $image_arr[] = $prepend.$img_url.$image_file.$img_append; }
asort ($ thumb_arr); asort ($ image_arr);
/ / Make strings for use in the item templates $ thumbs = implode ("\ n", $ thumb_arr); $ images = implode ("\ n", $ image_arr);
Where should I include this codes?Code: [Select]asort ($ thumb_arr); asort ($ image_arr);And this one?Code: [Select]/ / Make strings for use in the item templates $ thumbs = implode ("\ n", $ thumb_arr); $ images = implode ("\ n", $ image_arr);
asort ($ thumb_arr); asort ($ image_arr);/ / Make strings for use in the item templates $ thumbs = implode ("\ n", $ thumb_arr); $ images = implode ("\ n", $ image_arr);
asort ($thumb_arr); asort ($image_arr);// Make strings for use in the item templates $thumbs = implode ("\ n", $thumb_arr); $images = implode ("\ n", $image_arr);