private static List <GalleryItem> GetLatestVideos()
        {
            var latestVideos = new List <GalleryItem>();

            latestVideos = Galleries.GetGallery(Galleries.GalleryType.Video, 8);
            return(latestVideos);
        }
        private static List <GalleryItem> GetLatestPhotos()
        {
            var latestPhotos = new List <GalleryItem>();

            latestPhotos = Galleries.GetGallery(Galleries.GalleryType.Image, 8);
            return(latestPhotos);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            videoGallery = Galleries.GetGallery(Galleries.GalleryType.Video, 8);
            imageGallery = Galleries.GetGallery(Galleries.GalleryType.Image, 8);
            latestBlogs  = library.GetLatestCompletedArticles(4);
            stringMonth  = utils.FullyQualifiedMonthName(DateTime.Now.Month);
            uc_TopMonthlyContributors Contributors = (uc_TopMonthlyContributors)LoadControl("~/uc_TopMonthlyContributors.ascx");

            topTenContributors.Controls.Add(Contributors);
            LoadTopEarningVideos();
            loadAds();
            loadTopStories();
        }
        public static List <GalleryItem> VideoGalleryFilterSearch(string title, string keywords)
        {
            List <GalleryItem> videoGallery = null;

            if (!String.IsNullOrEmpty(title) && String.IsNullOrEmpty(keywords))
            {
                videoGallery = Galleries.GetGallery(Galleries.GalleryType.Video, title, Galleries.VideoSearchType.Title);
            }
            else if (!String.IsNullOrEmpty(title) && !String.IsNullOrEmpty(keywords))
            {
                videoGallery = Galleries.GetGallery(Galleries.GalleryType.Video, title, keywords);
            }
            else
            {
                videoGallery = Galleries.GetGallery(Galleries.GalleryType.Video, keywords, Galleries.VideoSearchType.Keywords);
            }

            return(videoGallery);
        }
 private void GetLatestVideos()
 {
     latestVideos = new List <GalleryItem>();
     latestVideos = Galleries.GetGallery(Galleries.GalleryType.Video, 8);
 }
 private void GetLatestPhotos()
 {
     latestPhotos = new List <GalleryItem>();
     latestPhotos = Galleries.GetGallery(Galleries.GalleryType.Image, 8);
 }