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