Esempio n. 1
0
        public void ToSiteConfiguration(SiteConfiguration config)
        {
            config.ID                           = id;
            config.Name                         = name;
            config.Host                         = host;
            config.LanguageDefault              = languageDefault;
            config.PageTitleSeparator           = pageTitleSeparator;
            config.ThemeDefault                 = themeDefault;
            config.FavIconUrl                   = favIconUrl;
            config.ScriptsPath                  = scriptsPath;
            config.CssPath                      = cssFilePath;
            config.ImagesPath                   = imagesPath;
            config.CommentAnonymousStateDefault = commentAnonymousStateDefault;
            config.EmailUsername                = emailUsername;
            config.IncludeOpenSearch            = includeOpenSearch;
            config.AuthorAutoSubscribe          = authorAutoSubscribe;
            config.PostEditTimeout              = postEditTimeout;
            config.SEORobots                    = seoRobots;
            config.GravatarDefault              = gravatarDefault;
            config.TrackbacksEnabled            = trackbacksEnabled;

            if (aliases != null)
            {
                aliases.Each(a => config.AddAlias(a.ToAlias()));
            }
        }