Пример #1
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()));
        }
Пример #2
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));
        }
Пример #3
0
 public static TagBuilder Button(string name)
 {
     return(HtmlControls.Image(Urls.Button(name), name));
 }