public static TagBuilder UserStoryImage(int storyID, int index) { var image = Urls.Image(Urls.User + Urls.SuccessStory + storyID + "/" + index + Urls.PhotoExt); return(HtmlControls.Image( image + "?" + DateTime.Now.Millisecond, index.ToString())); }
public static TagBuilder OrgResponse(OrgResponse response) { if (response.OriginalImg.IsEmpty()) { return(new NullTagBuilder()); } return(HtmlControls.Image( Urls.Image("Organization/ResponseOriginal/" + response.OriginalImg), "Отзыв компании: " + response.Organization.Name)); }
public static TagImg Image(string name) { var path = Urls.Image(name); if (path == null) { return(new NullTagImg()); } return(H.img.Src(path).Alt( Path.GetFileNameWithoutExtension(name))); }
public static TagBuilder UserPhoto(int userID) { var image = Urls.Image("User/Photo/" + userID + Urls.PhotoExt); if (image.IsEmpty()) { image = Urls.Image("User/Photo/default.jpg"); } return(HtmlControls.Image( image + "?" + DateTime.Now.Millisecond, userID.ToString()).Size(80, null)); }
public static TagBuilder Root(string name) { return(HtmlControls.Image(Urls.Image(name), Path.GetFileNameWithoutExtension(name))); }
public static TagBuilder AuthorizationType(string name) { return(HtmlControls.Image( Urls.Image("AuthorizationType/" + name + ".gif"), name)); }
public static TagBuilder UsefulInfomation(UsefulInformation usefulInformation) { return(HtmlControls.Image( Urls.Image("UsefulInformation/" + usefulInformation.UrlName + ".jpg"), usefulInformation.Name)); }
public static TagBuilder Competitions(Competition competition) { return(HtmlControls.Image( Urls.Image("Competitions/" + competition.UrlName + ".jpg"), competition.Name)); }
public static TagImg Coupon(string urlName) { return(H.Img( Urls.Image("MarketingAction/Coupon/" + urlName + ".jpg"))); }
public static TagBuilder MarketingActionSmall(MarketingAction marketingAction) { return(HtmlControls.Image( Urls.Image("MarketingAction/Small/" + marketingAction.UrlName + ".jpg"), marketingAction.Name)); }
public static TagBuilder Organization(Organization organization) { return(HtmlControls.Image( Urls.Image("Organization/Logo/" + organization.LogoImg), organization.Name)); }
public static TagBuilder Banner(string name, string alt) { return(HtmlControls.Image(Urls.Image("UsefulImages/" + name), alt)); }
public static TagImg Course(string name) { var src = Urls.Image("Course/" + name + ".jpg"); return(H.Img(src)); }
public static TagImg Section(string name) { return(H.img.Src(Urls.Image("Section/" + name + ".jpg")).Alt(name)); }