mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Explicitly Theme front-end controllers
--HG-- branch : dev
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using System.Web.Mvc;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.DisplayManagement;
|
||||
using Orchard.Themes;
|
||||
|
||||
namespace Orchard.Core.Contents.Controllers {
|
||||
[Themed]
|
||||
public class ItemController : Controller {
|
||||
private readonly IContentManager _contentManager;
|
||||
|
||||
|
@@ -4,9 +4,9 @@ using System.Web.Mvc;
|
||||
using Orchard.Core.Feeds.Models;
|
||||
using Orchard.Logging;
|
||||
using Orchard.Mvc.Results;
|
||||
using Orchard.Themes;
|
||||
|
||||
namespace Orchard.Core.Feeds.Controllers {
|
||||
|
||||
public class FeedController : Controller {
|
||||
private readonly IEnumerable<IFeedBuilderProvider> _feedFormatProviders;
|
||||
private readonly IEnumerable<IFeedQueryProvider> _feedQueryProviders;
|
||||
|
@@ -7,6 +7,7 @@ using Orchard.Core.Routable.Models;
|
||||
using Orchard.Data;
|
||||
using Orchard.DisplayManagement;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Themes;
|
||||
|
||||
namespace Orchard.Core.Routable.Controllers {
|
||||
[ValidateInput(false)]
|
||||
@@ -24,6 +25,7 @@ namespace Orchard.Core.Routable.Controllers {
|
||||
|
||||
dynamic Shape { get; set; }
|
||||
|
||||
[Themed]
|
||||
public ActionResult Display(string path) {
|
||||
var matchedPath = _routablePathConstraint.FindPath(path);
|
||||
if (string.IsNullOrEmpty(matchedPath)) {
|
||||
|
@@ -9,8 +9,10 @@ using Orchard.Blogs.Services;
|
||||
using Orchard.DisplayManagement;
|
||||
using Orchard.Logging;
|
||||
using Orchard.Mvc.Results;
|
||||
using Orchard.Themes;
|
||||
|
||||
namespace Orchard.Blogs.Controllers {
|
||||
[Themed]
|
||||
public class BlogController : Controller {
|
||||
private readonly IOrchardServices _services;
|
||||
private readonly IBlogService _blogService;
|
||||
|
@@ -9,8 +9,10 @@ using Orchard.DisplayManagement;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Mvc.Results;
|
||||
using Orchard.Security;
|
||||
using Orchard.Themes;
|
||||
|
||||
namespace Orchard.Blogs.Controllers {
|
||||
[Themed]
|
||||
public class BlogPostController : Controller {
|
||||
private readonly IOrchardServices _services;
|
||||
private readonly IBlogService _blogService;
|
||||
|
@@ -9,9 +9,10 @@ using System.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Collections;
|
||||
using Orchard.Themes;
|
||||
|
||||
namespace Orchard.Search.Controllers {
|
||||
[ValidateInput(false)]
|
||||
[ValidateInput(false), Themed]
|
||||
public class SearchController : Controller {
|
||||
private readonly ISearchService _searchService;
|
||||
private readonly IContentManager _contentManager;
|
||||
|
@@ -12,8 +12,7 @@ using Orchard.Themes;
|
||||
using Orchard.UI.Notify;
|
||||
|
||||
namespace Orchard.Setup.Controllers {
|
||||
[ValidateInput(false)]
|
||||
[Themed]
|
||||
[ValidateInput(false), Themed]
|
||||
public class SetupController : Controller {
|
||||
private readonly IAppDataFolder _appDataFolder;
|
||||
private readonly INotifier _notifier;
|
||||
|
@@ -10,9 +10,10 @@ using Orchard.Security;
|
||||
using Orchard.Settings;
|
||||
using Orchard.Tags.Services;
|
||||
using Orchard.Tags.ViewModels;
|
||||
using Orchard.Themes;
|
||||
|
||||
namespace Orchard.Tags.Controllers {
|
||||
[ValidateInput(false)]
|
||||
[ValidateInput(false), Themed]
|
||||
public class HomeController : Controller {
|
||||
private readonly ITagService _tagService;
|
||||
private readonly IContentManager _contentManager;
|
||||
|
@@ -17,8 +17,7 @@ using Orchard.Users.Models;
|
||||
using Orchard.Mvc.Results;
|
||||
|
||||
namespace Orchard.Users.Controllers {
|
||||
[HandleError]
|
||||
[Themed]
|
||||
[HandleError, Themed]
|
||||
public class AccountController : Controller {
|
||||
private readonly IAuthenticationService _authenticationService;
|
||||
private readonly IMembershipService _membershipService;
|
||||
|
Reference in New Issue
Block a user