protected string GetGalleryFile(Gallery gallery)
{
switch (gallery.GalleryType)
{
case CMSEnums.GalleryType.Document:
return "~/App_Themes/Image/Document.png";
case CMSEnums.GalleryType.Photo:
if (gallery.GalleryItemType == CMSEnums.GalleryItemType.Internal)
return CMSWebHelper.GetGalleryThumbnailFile(gallery.File);
else
return gallery.URL;
case CMSEnums.GalleryType.Video:
return "~/App_Themes/Image/Video.png";
}
return "~/App_Themes/Image/UnknowType.png";
}
#endregion