Esempio n. 1
0
 public SeoService(
     IContentDefinitionManager contentDefinitionManager,
     ISeoSettingsManager seoSettingsManager,
     ITokenizer tokenizer)
 {
     _contentDefinitionManager = contentDefinitionManager;
     _seoSettingsManager       = seoSettingsManager;
     _tokenizer = tokenizer;
 }
 public SeoService(
     IContentDefinitionManager contentDefinitionManager,
     ISeoSettingsManager seoSettingsManager,
     ITokenizer tokenizer)
 {
     _contentDefinitionManager = contentDefinitionManager;
     _seoSettingsManager = seoSettingsManager;
     _tokenizer = tokenizer;
 }
Esempio n. 3
0
        public SeoPageTitleBuilder(
            ISeoSettingsManager seoSettingsManager,
            ISiteService siteService)
        {
            _seoSettingsManager = seoSettingsManager;
            _siteService        = siteService;

            _titleParts = new List <string>(5);
        }
        public SeoPageTitleBuilder(
            ISeoSettingsManager seoSettingsManager,
            ISiteService siteService)
        {
            _seoSettingsManager = seoSettingsManager;
            _siteService = siteService;

            _titleParts = new List<string>(5);
        }
Esempio n. 5
0
 public AdminController(
     IOrchardServices orchardServices,
     ISearchService searchService,
     IPrefixedEditorManager prefixedEditorManager,
     ISeoSettingsManager seoSettingsManager,
     ISeoService seoService)
     : base(orchardServices, prefixedEditorManager, seoSettingsManager, seoService)
 {
     _searchService = searchService;
 }
Esempio n. 6
0
        protected AdminControllerBase(
            IOrchardServices orchardServices,
            IPrefixedEditorManager prefixedEditorManager,
            ISeoSettingsManager seoSettingsManager,
            ISeoService seoService)
        {
            _orchardServices    = orchardServices;
            _authorizer         = orchardServices.Authorizer;
            _contentManager     = orchardServices.ContentManager;
            _shapeFactory       = orchardServices.New;
            _workContext        = orchardServices.WorkContext;
            _transactionManager = orchardServices.TransactionManager;

            _prefixedEditorManager = prefixedEditorManager;
            _seoSettingsManager    = seoSettingsManager;
            _seoService            = seoService;

            T = NullLocalizer.Instance;
        }
Esempio n. 7
0
        public AdminController(
            IOrchardServices orchardServices,
            ISearchService searchService,
            ISiteService siteService,
            IPrefixedEditorManager prefixedEditorManager,
            ISeoSettingsManager seoSettingsManager,
            ISeoService seoService)
        {
            _orchardServices = orchardServices;
            _authorizer      = orchardServices.Authorizer;
            _contentManager  = orchardServices.ContentManager;
            _shapeFactory    = _orchardServices.New;
            _searchService   = searchService;

            _prefixedEditorManager = prefixedEditorManager;
            _siteService           = siteService;
            _seoSettingsManager    = seoSettingsManager;
            _seoService            = seoService;

            T = NullLocalizer.Instance;
        }
Esempio n. 8
0
        public static ISeoGlobalSettings GetGlobalSettingsDraftRequired(this ISeoSettingsManager settingsManager)
        {
            var settings = settingsManager.GetGlobalSettings();

            return(settings.ContentItem.ContentManager.Get <ISeoGlobalSettings>(settings.ContentItem.Id, VersionOptions.DraftRequired));
        }