示例#1
0
 public static void AddGalleryPageFooter(IPageBuilder pageBuilder)
 {
     pageBuilder.Append("<script src='https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js'></script>");
     pageBuilder.Append("<script>");
     pageBuilder.Append("baguetteBox.run('.grid-gallery', { animation: 'slideIn'});");
     pageBuilder.Append("</script>");
 }
示例#2
0
 public static void AddGalleryHeaderLocos(IPageBuilder builder, string name)
 {
     builder.Append("<section class='gallery-block grid-gallery'>");
     builder.Append("<div class='container'>");
     builder.Append("<div class='row'>");
     if (!string.IsNullOrWhiteSpace(name))
     {
         builder.Append($"<h2><a id='{name}'>{name}</a></h2>");
     }
 }
示例#3
0
 public static void AddGalleryHeaderWithDate(IPageBuilder builder, string name)
 {
     builder.Append("<section class='gallery-block grid-gallery'>");
     builder.Append("<div class='container'>");
     builder.Append("<div class='col-md-12'>");
     builder.Append($"<hp>{name}</hp>");
     builder.Append("</div>");
     builder.Append("<div class='row'>");
 }
示例#4
0
        public static void AddImageToGallery(string htmlpath, string imagePath, IPageBuilder stringBuilder, string image, string offSetFolder = "")
        {
            htmlpath  = htmlpath.Replace("\\\\", "\\");
            imagePath = imagePath.Replace("\\\\", "\\");

            string newImagePath      = ImageHelper.CopyImageTo(imagePath, image);
            string newImagePathThumb = ImageHelper.CopyImageToThumb(imagePath, image);

            newImagePath      = newImagePath.Replace(htmlpath, string.Empty);
            newImagePathThumb = newImagePathThumb.Replace(htmlpath, string.Empty);

            string imageTitle = Path.GetFileNameWithoutExtension(newImagePath);

            stringBuilder.Append(HTMLHelper.BuildImageGalleryCard(offSetFolder + newImagePath, offSetFolder + newImagePathThumb, imageTitle));
        }
示例#5
0
 public static void AddGalleryFooter(IPageBuilder builder)
 {
     builder.Append("</div></div></section>");
 }