public static string Gravatar(this HtmlHelper htmlHelper, OxiteViewModel model, UserAnonymous user, string size)
 {
     return(htmlHelper.Gravatar(
                !string.IsNullOrEmpty(user.EmailHash) ? user.EmailHash.CleanAttribute() : null,
                !string.IsNullOrEmpty(user.Name) ? user.Name.CleanAttribute() : null,
                size,
                model.Site.GravatarDefault
                ));
 }
Esempio n. 2
0
 public CommentInputForImport(string body, DateTime created, UserAnonymous creator, long creatorIP, string creatorUserAgent, Language language, DateTime modified, EntityState state)
     : this(body, created, creatorIP, creatorUserAgent, language, modified, state)
 {
     creatorAnonymous = creator;
 }
Esempio n. 3
0
 public CommentInput(Guid parentID, string body, bool subscribe, bool saveAnonymousUser, UserAnonymous creator)
     : this(parentID, body, subscribe)
 {
     SaveAnonymousUser = saveAnonymousUser;
     Creator           = creator;
 }
Esempio n. 4
0
 public Comment(string body, DateTime created, UserAnonymous creator, long creatorIP, string creatorUserAgent, Language language, DateTime modified, EntityState state)
     : this(body, Guid.Empty, creator.Name, creator.Email, creator.EmailHash, creator.Url, creatorIP, creatorUserAgent, language, null, state)
 {
     Created       = created;
     userAnonymous = creator;
 }
Esempio n. 5
0
 public CommentSmall(Guid id, DateTime created, UserAnonymous creator)
     : this(id, created, creator.Name, creator.EmailHash, creator.Url)
 {
 }
Esempio n. 6
0
 public PostComment(string body, DateTime created, UserAnonymous creator, long creatorIP, string creatorUserAgent, Language language, DateTime modified, string slug, EntityState state)
     : base(body, created, creator, creatorIP, creatorUserAgent, language, modified, state)
 {
     Slug = slug;
 }
 public static string Gravatar(this HtmlHelper htmlHelper, OxiteViewModel model, UserAnonymous user, string size)
 {
     return(htmlHelper.Gravatar(
                user.IsAuthenticated ? user.EmailHash.CleanAttribute() : null,
                user.IsAuthenticated ? user.Name.CleanAttribute() : null,
                size,
                model.Site.GravatarDefault
                ));
 }
Esempio n. 8
0
 public ApiExplorerSettingsExtendAttribute(UserAnonymous role)
 {
     GroupName = role.ToString();
 }