I hid some of the images using the class names - My modification:
$start_image = VmConfig::get('add_img_main', 1) ? 0 : 1;
for ($i = $start_image; $i < count($this->product->images); $i++) {
$image = $this->product->images[$i];
if ((strstr($image->file_class, "class-1")!==False) || (strstr($image->file_class, "class-2")!==False)) {
echo $image->displayMediaThumb("",true,"rel='vm-additional-images'",true,$image->file_description);
}}
My problem - variable $i shows 100% of images (with hidden ones). How to do it so that the variable $i shows the actual number of display images?