2010-06-08 16:26:08 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Web.Mvc;
|
2009-11-18 21:55:11 +00:00
|
|
|
|
using Orchard.Core.Settings.Models;
|
2010-09-22 14:39:01 -07:00
|
|
|
|
using Orchard.Settings;
|
2009-11-18 21:55:11 +00:00
|
|
|
|
|
|
|
|
|
namespace Orchard.Core.Settings.ViewModels {
|
2010-09-15 09:06:17 -07:00
|
|
|
|
public class SiteSettingsPartViewModel {
|
2010-07-23 01:09:00 -07:00
|
|
|
|
public SiteSettingsPart Site { get; set; }
|
2010-06-09 16:14:47 -07:00
|
|
|
|
public IEnumerable<string> SiteCultures { get; set; }
|
2009-11-19 01:03:23 +00:00
|
|
|
|
|
|
|
|
|
[HiddenInput(DisplayValue = false)]
|
|
|
|
|
public int Id {
|
2009-11-19 05:20:30 +00:00
|
|
|
|
get { return Site.ContentItem.Id; }
|
2009-11-19 01:03:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
2010-12-09 16:39:06 -08:00
|
|
|
|
public string PageTitleSeparator {
|
2011-03-17 11:06:23 -07:00
|
|
|
|
get { return Site.PageTitleSeparator; }
|
|
|
|
|
set { Site.PageTitleSeparator = value; }
|
2009-12-22 15:58:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
2010-06-08 16:26:08 -07:00
|
|
|
|
public string SiteName {
|
2011-03-17 11:06:23 -07:00
|
|
|
|
get { return Site.SiteName; }
|
|
|
|
|
set { Site.SiteName = value; }
|
2009-11-19 01:03:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
2010-06-08 16:26:08 -07:00
|
|
|
|
public string SiteCulture {
|
2011-03-17 11:06:23 -07:00
|
|
|
|
get { return Site.SiteCulture; }
|
|
|
|
|
set { Site.SiteCulture = value; }
|
2010-06-08 16:26:08 -07:00
|
|
|
|
}
|
|
|
|
|
|
2009-11-19 01:03:23 +00:00
|
|
|
|
public string SuperUser {
|
2011-03-17 11:06:23 -07:00
|
|
|
|
get { return Site.SuperUser; }
|
|
|
|
|
set { Site.SuperUser = value; }
|
2009-11-19 01:03:23 +00:00
|
|
|
|
}
|
2010-09-22 14:39:01 -07:00
|
|
|
|
|
|
|
|
|
public ResourceDebugMode ResourceDebugMode {
|
2011-03-17 11:06:23 -07:00
|
|
|
|
get { return Site.ResourceDebugMode; }
|
|
|
|
|
set { Site.ResourceDebugMode = value; }
|
2010-09-22 14:39:01 -07:00
|
|
|
|
}
|
2010-12-09 16:39:06 -08:00
|
|
|
|
|
|
|
|
|
public int PageSize {
|
2011-03-17 11:06:23 -07:00
|
|
|
|
get { return Site.PageSize; }
|
|
|
|
|
set { Site.PageSize = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string BaseUrl {
|
|
|
|
|
get { return Site.BaseUrl; }
|
|
|
|
|
set { Site.BaseUrl = value; }
|
2010-12-09 16:39:06 -08:00
|
|
|
|
}
|
2009-11-18 21:55:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|