Пример #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>");
 }