'; echo ''; $siteurl = get_option('siteurl').'/'; if (!defined('PREVIEW_PATH')) { define('PREVIEW_PATH',$siteurl); } $nofolder = ''; foreach ($images as $image){ if ($image['img_vs_folder'] == 2) { $rows = fgallery_get_album_images($gall_id, $image['img_id']); if (count($rows) > 0) { echo ''; foreach ($rows as $row) { $title = mixed_to_utf8($row['img_caption']); $img_path = $row['img_path']; $description = mixed_to_utf8($row['img_description']); switch ($album['gall_type']) { case 1: case 2: case 3: echo ''; break; case 4: case 5: case 6: case 8: case 9: echo ''; break; case 7: $array = unserialize($row['img_extra']); $img_type = $array['img_type']; if ($img_type == '') { $img_type = 'page'; } echo ''; break; case 10: echo ''; break; } } echo ""; } } else { $title = mixed_to_utf8($image['img_caption']); $img_path = $image['img_path']; $description = mixed_to_utf8($image['img_description']); switch ($album['gall_type']) { case 1: case 2: case 3: $nofolder .= ''; break; case 4: case 5: case 6: case 8: case 9: $nofolder .= ''; break; case 7: $array = unserialize($image['img_extra']); $img_type = $array['img_type']; if ($img_type == '') { $img_type = 'page'; } $nofolder .= ''; break; case 10: $nofolder .= ''; break; } } } if ($nofolder !='') { $nofolder = ''.$nofolder.''; echo $nofolder; } echo ''; } else { die(); } die(); ?>