public static void AddImageToPage(string htmlpath, string imagePath, eWolfBootstrap.Interfaces.IPageBuilder stringBuilder, string image) { 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.BuildImageCard(newImagePath, newImagePathThumb, imageTitle)); }
public static void AddQuickImageCenter(string htmlpath, string imagePath, eWolfBootstrap.Interfaces.IPageBuilder stringBuilder, string image) { htmlpath = htmlpath.Replace("\\\\", "\\"); imagePath = imagePath.Replace("\\\\", "\\"); string newImagePath = ImageHelper.CopyImageTo(imagePath, image, 1); newImagePath = newImagePath.Replace(htmlpath, string.Empty); string imageTitle = Path.GetFileNameWithoutExtension(newImagePath); stringBuilder.Append(HTMLHelper.BuildImageQuickCenter(newImagePath, newImagePath, imageTitle)); }