Example #1
0
        public static TagBuilder Best(string bestName, Guid id)
        {
            var image = Urls.ContentRoot(
                GetBestNameFull(bestName) + id + Urls.PhotoExt);

            return(HtmlControls.Image(image));
        }
Example #2
0
        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()));
        }
Example #3
0
 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));
 }
Example #4
0
        public static TagBuilder Common(string name)
        {
            var image = HtmlControls.Image(Urls.Common(name), name);
            var size  = Urls.GetSize(Urls.CommonSys(name));

            if (size.HasValue)
            {
                image.Size(size.Value.Width, size.Value.Height);
            }
            return(image);
        }
Example #5
0
        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));
        }
Example #6
0
 public static TagBuilder Root(string name)
 {
     return(HtmlControls.Image(Urls.Image(name),
                               Path.GetFileNameWithoutExtension(name)));
 }
Example #7
0
 public static TagBuilder AuthorizationType(string name)
 {
     return(HtmlControls.Image(
                Urls.Image("AuthorizationType/" + name + ".gif"), name));
 }
Example #8
0
 public static TagBuilder UsefulInfomation(UsefulInformation usefulInformation)
 {
     return(HtmlControls.Image(
                Urls.Image("UsefulInformation/" + usefulInformation.UrlName + ".jpg"),
                usefulInformation.Name));
 }
Example #9
0
 public static TagBuilder Competitions(Competition competition)
 {
     return(HtmlControls.Image(
                Urls.Image("Competitions/" + competition.UrlName + ".jpg"),
                competition.Name));
 }
Example #10
0
 public static TagBuilder MarketingActionSmall(MarketingAction marketingAction)
 {
     return(HtmlControls.Image(
                Urls.Image("MarketingAction/Small/" + marketingAction.UrlName + ".jpg"),
                marketingAction.Name));
 }
Example #11
0
 public static TagBuilder Organization(Organization organization)
 {
     return(HtmlControls.Image(
                Urls.Image("Organization/Logo/" + organization.LogoImg), organization.Name));
 }
Example #12
0
 public static TagBuilder Banner(string name, string alt)
 {
     return(HtmlControls.Image(Urls.Image("UsefulImages/" + name), alt));
 }
Example #13
0
 public static TagBuilder Button(string name)
 {
     return(HtmlControls.Image(Urls.Button(name), name));
 }
Example #14
0
 public static TagBuilder Submit(string name)
 {
     return(HtmlControls.ImgSubmit(Urls.Button(name), name)
            .Class("button"));
 }