Merge
--HG-- branch : dev
@@ -1,64 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.Core.Common.Models;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Core.Common {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
public int Create() {
|
||||
//CREATE TABLE Common_BodyPartRecord (Id INTEGER not null, Text TEXT, Format TEXT, ContentItemRecord_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("BodyPartRecord", table => table
|
||||
.ContentPartVersionRecord()
|
||||
.Column<string>("Text", column => column.Unlimited())
|
||||
.Column<string>("Format")
|
||||
SchemaBuilder.CreateTable("BodyPartRecord",
|
||||
table => table
|
||||
.ContentPartVersionRecord()
|
||||
.Column<string>("Text", column => column.Unlimited())
|
||||
.Column<string>("Format")
|
||||
);
|
||||
|
||||
//CREATE TABLE Common_CommonPartRecord (Id INTEGER not null, OwnerId INTEGER, CreatedUtc DATETIME, PublishedUtc DATETIME, ModifiedUtc DATETIME, Container_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("CommonPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<int>("OwnerId")
|
||||
.Column<DateTime>("CreatedUtc")
|
||||
.Column<DateTime>("PublishedUtc")
|
||||
.Column<DateTime>("ModifiedUtc")
|
||||
.Column<int>("Container_id")
|
||||
SchemaBuilder.CreateTable("CommonPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<int>("OwnerId")
|
||||
.Column<DateTime>("CreatedUtc")
|
||||
.Column<DateTime>("PublishedUtc")
|
||||
.Column<DateTime>("ModifiedUtc")
|
||||
.Column<int>("Container_id")
|
||||
);
|
||||
|
||||
//CREATE TABLE Common_CommonPartVersionRecord (Id INTEGER not null, CreatedUtc DATETIME, PublishedUtc DATETIME, ModifiedUtc DATETIME, ContentItemRecord_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("CommonPartVersionRecord", table => table
|
||||
.ContentPartVersionRecord()
|
||||
.Column<DateTime>("CreatedUtc")
|
||||
.Column<DateTime>("PublishedUtc")
|
||||
.Column<DateTime>("ModifiedUtc")
|
||||
SchemaBuilder.CreateTable("CommonPartVersionRecord",
|
||||
table => table
|
||||
.ContentPartVersionRecord()
|
||||
.Column<DateTime>("CreatedUtc")
|
||||
.Column<DateTime>("PublishedUtc")
|
||||
.Column<DateTime>("ModifiedUtc")
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterPartDefinition("BodyPart", builder => builder.Attachable());
|
||||
ContentDefinitionManager.AlterPartDefinition("CommonPart", builder => builder.Attachable());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(BodyPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Default", new ContentLocation { Zone = "Primary", Position = "5" }},
|
||||
}));
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(CommonPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Default", new ContentLocation { Zone = "metadata", Position = "5" }},
|
||||
{"Editor", new ContentLocation { Zone = "Primary", Position = "20" }},
|
||||
}));
|
||||
return 3;
|
||||
}
|
||||
|
||||
public int UpdateFrom3() {
|
||||
ContentDefinitionManager.AlterPartDefinition("BodyPart", builder => builder.Attachable());
|
||||
ContentDefinitionManager.AlterPartDefinition("CommonPart", builder => builder.Attachable());
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,4 +6,4 @@
|
||||
string bodyHtml = Model.Html.ToString();
|
||||
var body = new HtmlString(Html.Excerpt(bodyHtml, 200).ToString().Replace(Environment.NewLine, "</p>" + Environment.NewLine + "<p>"));
|
||||
}
|
||||
<p>@body @Html.ItemDisplayLink(T("[more]").ToString(), contentItem)</p>
|
||||
<p>@body @Html.ItemDisplayLink(T("more").ToString(), contentItem)</p>
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="secondary">
|
||||
@Display(Model.Secondary)
|
||||
<fieldset>
|
||||
<button class="primaryAction" type="submit" name="submit.Save">@T("Save")</button>
|
||||
<button class="primaryAction" type="submit" name="submit.Save" value="submit.Save">@T("Save")</button>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,36 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Core.Localization.Models;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Core.Localization {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Localization_LocalizedRecord (Id INTEGER not null, CultureId INTEGER, MasterContentItemId INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("LocalizationPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<int>("CultureId")
|
||||
.Column<int>("MasterContentItemId")
|
||||
SchemaBuilder.CreateTable("LocalizationPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<int>("CultureId")
|
||||
.Column<int>("MasterContentItemId")
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterPartDefinition("LocalizationPart", builder => builder.Attachable());
|
||||
|
||||
return 1;
|
||||
}
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(LocalizationPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Default", new ContentLocation { Zone = "Primary", Position = "5" }},
|
||||
{"Editor", new ContentLocation { Zone = "Primary", Position = "1" }},
|
||||
}));
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterPartDefinition("LocalizationPart", builder => builder.Attachable());
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,52 +1,32 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Core.Navigation.Models;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Core.Navigation {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Navigation_MenuItemRecord (Id INTEGER not null, Url TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("MenuItemPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Url")
|
||||
SchemaBuilder.CreateTable("MenuItemPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Url", column => column.WithLength(1024))
|
||||
);
|
||||
|
||||
//CREATE TABLE Navigation_MenuPartRecord (Id INTEGER not null, MenuText TEXT, MenuPosition TEXT, OnMainMenu INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("MenuPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("MenuText")
|
||||
.Column<string>("MenuPosition")
|
||||
.Column<bool>("OnMainMenu")
|
||||
SchemaBuilder.CreateTable("MenuPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("MenuText")
|
||||
.Column<string>("MenuPosition")
|
||||
.Column<bool>("OnMainMenu")
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("Blog", cfg => cfg.WithPart("MenuPart"));
|
||||
ContentDefinitionManager.AlterTypeDefinition("Page", cfg => cfg.WithPart("MenuPart"));
|
||||
ContentDefinitionManager.AlterTypeDefinition("MenuItem", cfg => cfg.WithPart("MenuPart"));
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(MenuPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Editor", new ContentLocation { Zone = "Primary", Position = "9" }}
|
||||
}));
|
||||
return 3;
|
||||
}
|
||||
|
||||
public int UpdateFrom3() {
|
||||
ContentDefinitionManager.AlterPartDefinition("MenuPart", builder => builder.Attachable());
|
||||
return 4;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Core.PublishLater.Models;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Core.PublishLater {
|
||||
|
||||
@@ -1,38 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Core.Routable.Models;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Core.Routable {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Routable_RoutableRecord (Id INTEGER not null, Title TEXT, Slug TEXT, Path TEXT, ContentItemRecord_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("RoutePartRecord", table => table
|
||||
.ContentPartVersionRecord()
|
||||
.Column<string>("Title", column => column.WithLength(1024))
|
||||
.Column<string>("Slug")
|
||||
.Column<string>("Path", column => column.WithLength(2048))
|
||||
SchemaBuilder.CreateTable("RoutePartRecord",
|
||||
table => table
|
||||
.ContentPartVersionRecord()
|
||||
.Column<string>("Title", column => column.WithLength(1024))
|
||||
.Column<string>("Slug")
|
||||
.Column<string>("Path", column => column.WithLength(2048))
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterPartDefinition("RoutePart", builder => builder.Attachable());
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(RoutePart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Editor", new ContentLocation { Zone = "Primary", Position = "before.5" }}
|
||||
} ));
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterPartDefinition("RoutePart", builder => builder.Attachable());
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,12 +5,13 @@ namespace Orchard.Core.Scheduling {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Scheduling_ScheduledTaskRecord (Id integer, TaskType TEXT, ScheduledUtc DATETIME, ContentItemVersionRecord_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ScheduledTaskRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("TaskType")
|
||||
.Column<DateTime>("ScheduledUtc")
|
||||
.Column<int>("ContentItemVersionRecord_id")
|
||||
|
||||
SchemaBuilder.CreateTable("ScheduledTaskRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("TaskType")
|
||||
.Column<DateTime>("ScheduledUtc")
|
||||
.Column<int>("ContentItemVersionRecord_id")
|
||||
);
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -1,105 +1,98 @@
|
||||
using System.Data;
|
||||
using Orchard.Data.Migration;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Core.Settings {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Settings_ContentFieldDefinitionRecord (Id integer, Name TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ContentFieldDefinitionRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
SchemaBuilder.CreateTable("ContentFieldDefinitionRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ContentPartDefinitionRecord (Id integer, Name TEXT, Hidden INTEGER, Settings TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ContentPartDefinitionRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<bool>("Hidden")
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
SchemaBuilder.CreateTable("ContentPartDefinitionRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<bool>("Hidden")
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ContentPartFieldDefinitionRecord (Id integer, Name TEXT, Settings TEXT, ContentFieldDefinitionRecord_id INTEGER, INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ContentPartFieldDefinitionRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
.Column<int>("ContentFieldDefinitionRecord_id")
|
||||
.Column<int>("ContentPartDefinitionRecord_Id")
|
||||
SchemaBuilder.CreateTable("ContentPartFieldDefinitionRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
.Column<int>("ContentFieldDefinitionRecord_id")
|
||||
.Column<int>("ContentPartDefinitionRecord_Id")
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ContentTypeDefinitionRecord (Id integer, Name TEXT, DisplayName TEXT, Hidden INTEGER, Settings TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ContentTypeDefinitionRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("DisplayName")
|
||||
.Column<bool>("Hidden")
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
SchemaBuilder.CreateTable("ContentTypeDefinitionRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("DisplayName")
|
||||
.Column<bool>("Hidden")
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ContentTypePartDefinitionRecord (Id integer, Settings TEXT, ContentPartDefinitionRecord_id INTEGER, ContentTypeDefinitionRecord_Id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ContentTypePartDefinitionRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
.Column<int>("ContentPartDefinitionRecord_id")
|
||||
.Column<int>("ContentTypeDefinitionRecord_Id")
|
||||
SchemaBuilder.CreateTable("ContentTypePartDefinitionRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Settings", column => column.Unlimited())
|
||||
.Column<int>("ContentPartDefinitionRecord_id")
|
||||
.Column<int>("ContentTypeDefinitionRecord_Id")
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ShellDescriptorRecord (Id integer, SerialNumber INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ShellDescriptorRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("SerialNumber")
|
||||
SchemaBuilder.CreateTable("ShellDescriptorRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("SerialNumber")
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ShellFeatureRecord (Id integer, Name TEXT, ShellDescriptorRecord_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ShellFeatureRecord", table => table
|
||||
SchemaBuilder.CreateTable("ShellFeatureRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<int>("ShellDescriptorRecord_id"));
|
||||
|
||||
//CREATE TABLE Settings_ShellFeatureStateRecord (Id integer, Name TEXT, InstallState TEXT, EnableState TEXT, ShellStateRecord_Id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ShellFeatureStateRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("InstallState")
|
||||
.Column<string>("EnableState")
|
||||
.Column<int>("ShellStateRecord_Id")
|
||||
SchemaBuilder.CreateTable("ShellFeatureStateRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("InstallState")
|
||||
.Column<string>("EnableState")
|
||||
.Column<int>("ShellStateRecord_Id")
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ShellParameterRecord (Id integer, Component TEXT, Name TEXT, Value TEXT, ShellDescriptorRecord_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ShellParameterRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Component")
|
||||
.Column<string>("Name")
|
||||
.Column<string>("Value")
|
||||
.Column<int>("ShellDescriptorRecord_id")
|
||||
SchemaBuilder.CreateTable("ShellParameterRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Component")
|
||||
.Column<string>("Name")
|
||||
.Column<string>("Value")
|
||||
.Column<int>("ShellDescriptorRecord_id")
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_ShellStateRecord (Id integer, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ShellStateRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Unused")
|
||||
SchemaBuilder.CreateTable("ShellStateRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Unused")
|
||||
);
|
||||
|
||||
//CREATE TABLE Settings_SiteSettingsRecord (Id INTEGER not null, SiteSalt TEXT, SiteName TEXT, SuperUser TEXT, PageTitleSeparator TEXT, HomePage TEXT, SiteCulture TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("SiteSettingsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("SiteSalt")
|
||||
.Column<string>("SiteName")
|
||||
.Column<string>("SuperUser")
|
||||
.Column<string>("PageTitleSeparator")
|
||||
.Column<string>("HomePage")
|
||||
.Column<string>("SiteCulture")
|
||||
SchemaBuilder.CreateTable("SiteSettingsPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("SiteSalt")
|
||||
.Column<string>("SiteName")
|
||||
.Column<string>("SuperUser")
|
||||
.Column<string>("PageTitleSeparator")
|
||||
.Column<string>("HomePage")
|
||||
.Column<string>("SiteCulture")
|
||||
.Column<string>("ResourceDebugMode", c => c.WithDefault("FromAppSetting"))
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
SchemaBuilder.AlterTable("SiteSettingsPartRecord", table => table
|
||||
.AddColumn("ResourceDebugMode", DbType.String, column => column.WithDefault("FromAppSetting"))
|
||||
);
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,13 @@
|
||||
@using System.Web.Mvc;
|
||||
<div class="user-display">
|
||||
@if (Request.IsAuthenticated) {
|
||||
@T("Welcome, <strong>{0}</strong>!", WorkContext.CurrentUser.UserName)
|
||||
@Html.ActionLink(T("Log Off").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })
|
||||
@:| @Html.ActionLink("Admin", "Index", new {Area = "Dashboard", Controller = "Admin"})
|
||||
} else {
|
||||
@Html.ActionLink(T("Log On").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="user-display">
|
||||
@if (Request.IsAuthenticated) {
|
||||
<span class="welcome">@T("Welcome, <strong>{0}</strong>!", WorkContext.CurrentUser.UserName)</span>
|
||||
<span class="user-actions">
|
||||
@Html.ActionLink(T("Sign Out").ToString(), "LogOff", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })
|
||||
@Html.ActionLink("Dashboard", "Index", new { Area = "Dashboard", Controller = "Admin" })
|
||||
</span>
|
||||
} else {
|
||||
<span class="user-actions">@Html.ActionLink(T("Sign In").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = Context.Request.RawUrl })</span>
|
||||
}
|
||||
</div>
|
||||
@@ -1,43 +1,49 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using Orchard.Blogs.Models;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using System.Data;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Blogs {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Orchard_Blogs_BlogPartArchiveRecord (Id integer, Year INTEGER, Month INTEGER, PostCount INTEGER, Blog_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("BlogPartArchiveRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("Year")
|
||||
.Column<int>("Month")
|
||||
.Column<int>("PostCount")
|
||||
.Column<int>("BlogPart_id")
|
||||
SchemaBuilder.CreateTable("BlogPartArchiveRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("Year")
|
||||
.Column<int>("Month")
|
||||
.Column<int>("PostCount")
|
||||
.Column<int>("BlogPart_id")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Blogs_BlogPartRecord (Id INTEGER not null, Description TEXT, PostCount INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("BlogPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Description")
|
||||
.Column<int>("PostCount")
|
||||
SchemaBuilder.CreateTable("BlogPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Description", c => c.Unlimited())
|
||||
.Column<int>("PostCount")
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
SchemaBuilder.CreateTable("RecentBlogPostsPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("BlogSlug")
|
||||
.Column<int>("Count")
|
||||
);
|
||||
|
||||
SchemaBuilder.CreateTable("BlogArchivesPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("BlogSlug", c => c.WithLength(255))
|
||||
);
|
||||
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterTypeDefinition("Blog",
|
||||
cfg => cfg
|
||||
.WithPart("BlogPart")
|
||||
.WithPart("CommonPart")
|
||||
.WithPart("RoutePart")
|
||||
.WithPart("BlogPagerPart")
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("BlogPost",
|
||||
ContentDefinitionManager.AlterTypeDefinition("BlogPost",
|
||||
cfg => cfg
|
||||
.WithPart("BlogPostPart")
|
||||
.WithPart("CommonPart")
|
||||
@@ -45,25 +51,7 @@ namespace Orchard.Blogs {
|
||||
.WithPart("RoutePart")
|
||||
.WithPart("BodyPart")
|
||||
);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(BlogPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Editor", new ContentLocation { Zone = "Primary", Position = "1" }}
|
||||
}));
|
||||
return 3;
|
||||
}
|
||||
|
||||
public int UpdateFrom3() {
|
||||
SchemaBuilder.CreateTable("RecentBlogPostsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("BlogSlug")
|
||||
.Column<int>("Count")
|
||||
);
|
||||
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("RecentBlogPosts",
|
||||
cfg => cfg
|
||||
.WithPart("RecentBlogPostsPart")
|
||||
@@ -71,14 +59,6 @@ namespace Orchard.Blogs {
|
||||
.WithPart("WidgetPart")
|
||||
.WithSetting("Stereotype", "Widget")
|
||||
);
|
||||
return 4;
|
||||
}
|
||||
|
||||
public int UpdateFrom4() {
|
||||
SchemaBuilder.CreateTable("BlogArchivesPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("BlogSlug", c => c.WithLength(255))
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("BlogArchives",
|
||||
cfg => cfg
|
||||
@@ -87,22 +67,8 @@ namespace Orchard.Blogs {
|
||||
.WithPart("WidgetPart")
|
||||
.WithSetting("Stereotype", "Widget")
|
||||
);
|
||||
|
||||
return 5;
|
||||
}
|
||||
|
||||
public int UpdateFrom5() {
|
||||
ContentDefinitionManager.AlterTypeDefinition("Blog",
|
||||
cfg => cfg.WithPart("BlogPagerPart"));
|
||||
return 6;
|
||||
}
|
||||
|
||||
public int UpdateFrom6() {
|
||||
SchemaBuilder.AlterTable("BlogPartRecord", table => table
|
||||
.AlterColumn("Description", c => c.WithType(DbType.String).Unlimited())
|
||||
);
|
||||
|
||||
return 7;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Comments.Models;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
@@ -11,13 +7,11 @@ namespace Orchard.Comments {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Orchard_Comments_ClosedCommentsRecord (Id integer, ContentItemId INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ClosedCommentsRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("ContentItemId")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Comments_CommentPartRecord (Id INTEGER not null, Author TEXT, SiteName TEXT, UserName TEXT, Email TEXT, Status TEXT, CommentDateUtc DATETIME, CommentText TEXT, CommentedOn INTEGER, CommentedOnContainer INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("CommentPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Author")
|
||||
@@ -31,7 +25,6 @@ namespace Orchard.Comments {
|
||||
.Column<int>("CommentedOnContainer")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Comments_CommentSettingsPartRecord (Id INTEGER not null, ModerateComments INTEGER, EnableSpamProtection INTEGER, AkismetKey TEXT, AkismetUrl TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("CommentSettingsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<bool>("ModerateComments")
|
||||
@@ -40,17 +33,12 @@ namespace Orchard.Comments {
|
||||
.Column<string>("AkismetUrl")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Comments_CommentsPartRecord (Id INTEGER not null, CommentsShown INTEGER, CommentsActive INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("CommentsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<bool>("CommentsShown")
|
||||
.Column<bool>("CommentsActive")
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterTypeDefinition("Comment",
|
||||
cfg => cfg
|
||||
.WithPart("CommentPart")
|
||||
@@ -62,31 +50,9 @@ namespace Orchard.Comments {
|
||||
.WithPart("CommentsContainerPart")
|
||||
);
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(CommentsPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Default", new ContentLocation { Zone = "Primary", Position = "before.5" }},
|
||||
{"Detail", new ContentLocation { Zone = "Primary", Position = "after.5" }},
|
||||
{"SummaryAdmin", new ContentLocation { Zone = "meta", Position = null }},
|
||||
{"Summary", new ContentLocation { Zone = "meta", Position = "5" }},
|
||||
{"Editor", new ContentLocation { Zone = "Primary", Position = "10" }},
|
||||
}));
|
||||
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(CommentsContainerPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"SummaryAdmin", new ContentLocation { Zone = "meta", Position = null }},
|
||||
{"Summary", new ContentLocation { Zone = "meta", Position = null }},
|
||||
}));
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
public int UpdateFrom3() {
|
||||
ContentDefinitionManager.AlterPartDefinition("CommentsPart", builder => builder.Attachable());
|
||||
return 4;
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,26 +3,30 @@
|
||||
@using Orchard.Security;
|
||||
@using Orchard.Utility.Extensions;
|
||||
|
||||
@if (Model.ContentPart.Comments.Count > 0) {
|
||||
<h2 id="comments">@T.Plural("1 Comment", "{0} Comments", (int)Model.ContentPart.Comments.Count)</h2>
|
||||
Html.RenderPartial("ListOfComments", (IEnumerable<Orchard.Comments.Models.CommentPart>)Model.ContentPart.Comments);
|
||||
@if (Model.ContentPart.Comments.Count > 0) {
|
||||
<div id="comments">
|
||||
<h2 class="comment-count">@T.Plural("1 Comment", "{0} Comments", (int)Model.ContentPart.Comments.Count)</h2>
|
||||
@{Html.RenderPartial("ListOfComments", (IEnumerable<Orchard.Comments.Models.CommentPart>)Model.ContentPart.Comments);}
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (Model.CommentsActive == false) {
|
||||
if (Model.Comments.Count > 0) {
|
||||
<p>@T("Comments have been disabled for this content.")</p>
|
||||
<div id="comments">
|
||||
<p class="comment-disabled">@T("Comments have been disabled for this content.")</p>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
else if(!Request.IsAuthenticated && !AuthorizedFor(Permissions.AddComment)) {
|
||||
<h2 id="addacomment">@T("Add a Comment")</h2>
|
||||
<h2 id="add-comment">@T("Add a Comment")</h2>
|
||||
<p class="info message">@T("You must {0} to comment.", Html.ActionLink(T("log on").ToString(), "LogOn", new { Controller = "Account", Area = "Orchard.Users", ReturnUrl = string.Format("{0}#addacomment", Context.Request.RawUrl) }))</p>
|
||||
} else {
|
||||
using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, FormMethod.Post, new { @class = "comment" })) {
|
||||
using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, FormMethod.Post, new { @class = "comment-form" })) {
|
||||
@Html.ValidationSummary()
|
||||
if (!Request.IsAuthenticated) {
|
||||
|
||||
<fieldset class="who">
|
||||
<legend id="addacomment">@T("Add a Comment")</legend>
|
||||
<legend id="add-comment">@T("Add a Comment")</legend>
|
||||
<ol>
|
||||
<li>
|
||||
<label for="Name">@T("Name")</label>
|
||||
@@ -48,7 +52,7 @@ using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, Fo
|
||||
<ol>
|
||||
<li>
|
||||
<label for="CommentText">@T("Comment")</label>
|
||||
<textarea id="CommentText" rows="10" cols="30" name="CommentText"></textarea>
|
||||
<textarea id="comment-text" rows="10" cols="30" name="comment-text"></textarea>
|
||||
</li>
|
||||
<li>
|
||||
<input type="submit" class="button" value="@T("Submit Comment")" />
|
||||
|
||||
@@ -5,15 +5,16 @@ namespace Orchard.Email {
|
||||
|
||||
public int Create() {
|
||||
|
||||
SchemaBuilder.CreateTable("SmtpSettingsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Address")
|
||||
.Column<string>("Host")
|
||||
.Column<int>("Port")
|
||||
.Column<bool>("EnableSsl")
|
||||
.Column<bool>("RequireCredentials")
|
||||
.Column<string>("UserName")
|
||||
.Column<string>("Password")
|
||||
SchemaBuilder.CreateTable("SmtpSettingsPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Address")
|
||||
.Column<string>("Host")
|
||||
.Column<int>("Port")
|
||||
.Column<bool>("EnableSsl")
|
||||
.Column<bool>("RequireCredentials")
|
||||
.Column<string>("UserName")
|
||||
.Column<string>("Password")
|
||||
);
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -5,11 +5,12 @@ namespace Orchard.Indexing {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
SchemaBuilder.CreateTable("IndexingTaskRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("Action")
|
||||
.Column<DateTime>("CreatedUtc")
|
||||
.Column<int>("ContentItemRecord_id")
|
||||
SchemaBuilder.CreateTable("IndexingTaskRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("Action")
|
||||
.Column<DateTime>("CreatedUtc")
|
||||
.Column<int>("ContentItemRecord_id")
|
||||
);
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -4,33 +4,33 @@ namespace Orchard.Roles {
|
||||
public class RolesDataMigration : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Orchard_Roles_PermissionRecord (Id integer, Name TEXT, FeatureName TEXT, Description TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("PermissionRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("FeatureName")
|
||||
.Column<string>("Description")
|
||||
SchemaBuilder.CreateTable("PermissionRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
.Column<string>("FeatureName")
|
||||
.Column<string>("Description")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Roles_RoleRecord (Id integer, Name TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("RoleRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
SchemaBuilder.CreateTable("RoleRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Name")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Roles_RolesPermissionsRecord (Id integer, Role_id INTEGER, Permission_id INTEGER, RoleRecord_Id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("RolesPermissionsRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("Role_id")
|
||||
.Column<int>("Permission_id")
|
||||
.Column<int>("RoleRecord_Id")
|
||||
SchemaBuilder.CreateTable("RolesPermissionsRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("Role_id")
|
||||
.Column<int>("Permission_id")
|
||||
.Column<int>("RoleRecord_Id")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Roles_UserRolesRecord (Id integer, UserId INTEGER, Role_id INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("UserRolesPartRecord", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("UserId")
|
||||
.Column<int>("Role_id")
|
||||
SchemaBuilder.CreateTable("UserRolesPartRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("UserId")
|
||||
.Column<int>("Role_id")
|
||||
);
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -8,14 +8,10 @@ namespace Orchard.Search {
|
||||
|
||||
SchemaBuilder.CreateTable("SearchSettingsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<bool>("FilterCulture")
|
||||
.Column<string>("SearchedFields")
|
||||
.Column<bool>("FilterCulture")
|
||||
.Column<string>("SearchedFields", c => c.Unlimited())
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterTypeDefinition("SearchForm",
|
||||
cfg => cfg
|
||||
.WithPart("SearchFormPart")
|
||||
@@ -24,7 +20,7 @@ namespace Orchard.Search {
|
||||
.WithSetting("Stereotype", "Widget")
|
||||
);
|
||||
|
||||
return 2;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,42 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
using Orchard.Tags.Models;
|
||||
|
||||
namespace Orchard.Tags {
|
||||
public class TagsDataMigration : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Orchard_Tags_Tag (Id integer, TagName TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("Tag", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("TagName")
|
||||
SchemaBuilder.CreateTable("Tag",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("TagName")
|
||||
);
|
||||
|
||||
//CREATE TABLE Orchard_Tags_TagsContentItems (Id integer, TagId INTEGER, ContentItemId INTEGER, primary key (Id));
|
||||
SchemaBuilder.CreateTable("TagsContentItems", table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("TagId")
|
||||
.Column<int>("ContentItemId")
|
||||
SchemaBuilder.CreateTable("TagsContentItems",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<int>("TagId")
|
||||
.Column<int>("ContentItemId")
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterPartDefinition("TagsPart", builder => builder.Attachable());
|
||||
|
||||
return 1;
|
||||
}
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterPartDefinition(typeof(TagsPart).Name, cfg => cfg
|
||||
.WithLocation(new Dictionary<string, ContentLocation> {
|
||||
{"Default", new ContentLocation { Zone = "Primary", Position = "49" }},
|
||||
{"Editor", new ContentLocation { Zone = "Primary", Position = "9" }},
|
||||
}));
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterPartDefinition("TagsPart", builder => builder.Attachable());
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,10 +4,10 @@ namespace Orchard.Themes {
|
||||
public class ThemesDataMigration : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Orchard_Themes_ThemeSiteSettingsRecord (Id INTEGER not null, CurrentThemeName TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("ThemeSiteSettingsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("CurrentThemeName")
|
||||
SchemaBuilder.CreateTable("ThemeSiteSettingsPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("CurrentThemeName")
|
||||
);
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -4,39 +4,31 @@ namespace Orchard.Users {
|
||||
public class UsersDataMigration : DataMigrationImpl {
|
||||
|
||||
public int Create() {
|
||||
//CREATE TABLE Orchard_Users_UserRecord (Id INTEGER not null, UserName TEXT, Email TEXT, NormalizedUserName TEXT, Password TEXT, PasswordFormat TEXT, PasswordSalt TEXT, primary key (Id));
|
||||
SchemaBuilder.CreateTable("UserPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("UserName")
|
||||
.Column<string>("Email")
|
||||
.Column<string>("NormalizedUserName")
|
||||
.Column<string>("Password")
|
||||
.Column<string>("PasswordFormat")
|
||||
.Column<string>("HashAlgorithm")
|
||||
.Column<string>("PasswordSalt")
|
||||
SchemaBuilder.CreateTable("UserPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("UserName")
|
||||
.Column<string>("Email")
|
||||
.Column<string>("NormalizedUserName")
|
||||
.Column<string>("Password")
|
||||
.Column<string>("PasswordFormat")
|
||||
.Column<string>("HashAlgorithm")
|
||||
.Column<string>("PasswordSalt")
|
||||
.Column<string>("RegistrationStatus", c => c.WithDefault("Approved"))
|
||||
.Column<string>("EmailStatus", c => c.WithDefault("Approved"))
|
||||
.Column<string>("EmailChallengeToken")
|
||||
);
|
||||
|
||||
SchemaBuilder.CreateTable("RegistrationSettingsPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<bool>("UsersCanRegister", c => c.WithDefault(false))
|
||||
.Column<bool>("UsersMustValidateEmail", c => c.WithDefault(false))
|
||||
.Column<bool>("UsersAreModerated", c => c.WithDefault(false))
|
||||
.Column<bool>("NotifyModeration", c => c.WithDefault(false))
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
|
||||
// Adds registration fields to previous versions
|
||||
SchemaBuilder
|
||||
.AlterTable("UserPartRecord", table => table.AddColumn<string>("RegistrationStatus", c => c.WithDefault("Approved")))
|
||||
.AlterTable("UserPartRecord", table => table.AddColumn<string>("EmailStatus", c => c.WithDefault("Approved")))
|
||||
.AlterTable("UserPartRecord", table => table.AddColumn<string>("EmailChallengeToken"));
|
||||
|
||||
// Site Settings record
|
||||
SchemaBuilder.CreateTable("RegistrationSettingsPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<bool>("UsersCanRegister", c => c.WithDefault(false))
|
||||
.Column<bool>("UsersMustValidateEmail", c => c.WithDefault(false))
|
||||
.Column<bool>("UsersAreModerated", c => c.WithDefault(false))
|
||||
.Column<bool>("NotifyModeration", c => c.WithDefault(false))
|
||||
);
|
||||
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,19 +9,19 @@
|
||||
<legend>@T("Account Information")</legend>
|
||||
<ol>
|
||||
<li>
|
||||
<label for="userNameOrEmail">@T("Username:")</label>
|
||||
@Html.TextBox("userNameOrEmail", "", new { autofocus = "autofocus" })
|
||||
<label for="username-email">@T("Username")</label>
|
||||
@Html.TextBox("username-email", "", new { autofocus = "autofocus" })
|
||||
@Html.ValidationMessage("userNameOrEmail")
|
||||
</li>
|
||||
<li>
|
||||
<label for="password">@T("Password:")</label>
|
||||
<label for="password">@T("Password")</label>
|
||||
@Html.Password("password")
|
||||
@Html.ValidationMessage("password")
|
||||
</li>
|
||||
<li>
|
||||
@Html.CheckBox("rememberMe")<label class="forcheckbox" for="rememberMe">@T("Remember me?")</label>
|
||||
@Html.CheckBox("remember-me")<label class="forcheckbox" for="remember-me">@T("Remember me?")</label>
|
||||
</li>
|
||||
<input type="submit" value="@T("Log On")" />
|
||||
<input type="submit" value="@T("Sign In")" />
|
||||
</ol>
|
||||
</fieldset>
|
||||
}
|
||||
@@ -340,7 +340,7 @@ namespace Orchard.Widgets.Controllers {
|
||||
layer.LayerRule = "true";
|
||||
}
|
||||
|
||||
if(_widgetsService.GetLayers().Any(l => String.CompareOrdinal(l.Name, layer.Name) == 0)) {
|
||||
if(_widgetsService.GetLayers().Count(l => String.Equals(l.Name, layer.Name, StringComparison.InvariantCultureIgnoreCase)) > 1) { // the current layer counts for 1
|
||||
ModelState.AddModelError("Name", T("A Layer with the same name already exists").Text);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.ContentManagement.Drivers;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.ContentManagement.MetaData.Builders;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
using Orchard.Events;
|
||||
using Orchard.Widgets.Models;
|
||||
|
||||
namespace Orchard.Widgets {
|
||||
@@ -32,18 +28,20 @@ namespace Orchard.Widgets {
|
||||
|
||||
public class WidgetsDataMigration : DataMigrationImpl {
|
||||
public int Create() {
|
||||
SchemaBuilder.CreateTable("LayerPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Name")
|
||||
.Column<string>("Description")
|
||||
.Column<string>("LayerRule")
|
||||
SchemaBuilder.CreateTable("LayerPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Name")
|
||||
.Column<string>("Description", c => c.Unlimited())
|
||||
.Column<string>("LayerRule", c => c.Unlimited())
|
||||
);
|
||||
|
||||
SchemaBuilder.CreateTable("WidgetPartRecord", table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Title")
|
||||
.Column<string>("Position")
|
||||
.Column<string>("Zone")
|
||||
SchemaBuilder.CreateTable("WidgetPartRecord",
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<string>("Title")
|
||||
.Column<string>("Position")
|
||||
.Column<string>("Zone")
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("Layer",
|
||||
@@ -60,10 +58,6 @@ namespace Orchard.Widgets {
|
||||
.WithSetting("Stereotype", "Widget")
|
||||
);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
ContentDefinitionManager.AlterTypeDefinition("WidgetPage",
|
||||
cfg => cfg
|
||||
.WithPart("CommonPart")
|
||||
@@ -71,7 +65,8 @@ namespace Orchard.Widgets {
|
||||
.WithPart("WidgetBagPart")
|
||||
.Creatable()
|
||||
);
|
||||
return 2;
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,8 +46,10 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.widgets-availableLayers fieldset {
|
||||
background: #F1F1F1;
|
||||
.widgets-availableLayers fieldset
|
||||
{
|
||||
border: 1px solid #eaeaea;
|
||||
background: -moz-linear-gradient(center top, #f1f1f1, #fcfcfc);
|
||||
padding: .6em;
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 2.9 KiB |
@@ -1,16 +0,0 @@
|
||||
<Placement>
|
||||
<!--
|
||||
note - commas, and wildcards, do NOT work, but would be very nice
|
||||
<Match ContentType="Page">
|
||||
|
||||
<Match DisplayType="Detail,Summary*" >
|
||||
<Place
|
||||
Parts_RoutableTitle="Header"
|
||||
Parts_BodyText="Content:8"
|
||||
/>
|
||||
</Match>
|
||||
</Match>
|
||||
-->
|
||||
|
||||
|
||||
</Placement>
|
||||
@@ -1,54 +0,0 @@
|
||||
/*Blog specific styles
|
||||
----------------------------------------------------------*/
|
||||
|
||||
h3.blogs, h3.blog {
|
||||
display:block;
|
||||
border-bottom:1px solid #f1f1f1;
|
||||
}
|
||||
|
||||
ul.blogs p {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
.post {
|
||||
margin: -8px 0 12px 0px;
|
||||
}
|
||||
|
||||
.postsummary {
|
||||
padding: 0 0 4px 0;
|
||||
border-bottom:1px dotted #666;
|
||||
}
|
||||
|
||||
.meta {
|
||||
font-size:1.5em;
|
||||
font-style:italic;
|
||||
color:#666666;
|
||||
}
|
||||
|
||||
.tagCloud {
|
||||
font-style:italic;
|
||||
font-size:1.8em;
|
||||
}
|
||||
|
||||
.tagCloud li {
|
||||
display: block;
|
||||
float:left;
|
||||
padding:20px 10px 0 0;
|
||||
}
|
||||
|
||||
.archives {
|
||||
margin: 0 0 24px 0;
|
||||
}
|
||||
|
||||
ul.archiveMonthList li {
|
||||
font-size:1.5em;
|
||||
padding:8px;
|
||||
}
|
||||
|
||||
.comment span {
|
||||
font-size:1.4em;
|
||||
}
|
||||
|
||||
.text p {
|
||||
margin:0 0 1.4em 0;
|
||||
}
|
||||
@@ -1,357 +0,0 @@
|
||||
/*Yahoo browser reset
|
||||
----------------------------------------------------------*/
|
||||
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,
|
||||
blockquote,th,td {margin:0; padding:0; }
|
||||
table { border-collapse:collapse; border-spacing:0; }
|
||||
fieldset,img { border:0; }
|
||||
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
|
||||
ol,ul { list-style:none; }
|
||||
caption,th { text-align:left; }
|
||||
h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
|
||||
abbr,acronym { border:0; }
|
||||
q:before,q:after {content:'';}
|
||||
abbr,acronym { border:0;}
|
||||
|
||||
/*Defaults
|
||||
----------------------------------------------------------*/
|
||||
|
||||
html {height: 100%;}
|
||||
|
||||
body {
|
||||
font: normal 62.5% "Georgia", Times New Roman, Times, serif; /* 62.5% sets font to 10px */
|
||||
height: 100%;
|
||||
text-align:left;
|
||||
color:#373737;
|
||||
background:#f7f7f7;
|
||||
}
|
||||
|
||||
/* ---------- Headings and defaults ---------- */
|
||||
|
||||
h1,h2,h3,h4,h5,h6,legend {font-weight:normal; font-style: normal; margin:.2em 0;}
|
||||
|
||||
h1 { font-size:2.6em; } /* 26px */
|
||||
h2 { font-size:2.4em; } /* 24px */
|
||||
h3 { font-size:2.2em; } /* 22px */
|
||||
h4 { font-size:2.0em; } /* 20px */
|
||||
h5 { font-size:1.8em; } /* 18px */
|
||||
h6 { font-size:1.6em; } /* 16px */
|
||||
|
||||
h1.sitename {border-bottom:none;}
|
||||
|
||||
p {font-size:1.4em; line-height:2em; margin:1.2em 0 1.2em 0;}
|
||||
p.small {font-size:1.2em;}
|
||||
|
||||
a {color:#004386; text-decoration:none;} /* unvisited link */
|
||||
a:active {color: #004386;} /* selected link */
|
||||
a:visited {color: #004386;} /* visited link */
|
||||
a:hover {color: #087df3;} /* mouse over link */
|
||||
|
||||
#content a:hover, #sidebar a:hover {text-decoration:underline;}
|
||||
|
||||
ul.square {font-size:1.4em; list-style:square; list-style-position:inside; line-height:2em; margin:0 0 0 1.2em;}
|
||||
ol.decimal {font-size:1.4em; list-style:decimal; list-style-position:inside; line-height:2em; margin:0 0 0 1.2em;}
|
||||
|
||||
|
||||
/* Forms
|
||||
----------------------------------------------------------*/
|
||||
|
||||
input[type="text"], #CommentText, #password, #confirmPassword {
|
||||
border:1px solid #cacec6;
|
||||
display: block;
|
||||
padding:3px;
|
||||
width:90%;
|
||||
}
|
||||
form.search {
|
||||
margin-bottom:2em;
|
||||
}
|
||||
.search input[type=text] {
|
||||
display:inline;
|
||||
width:17em;
|
||||
}
|
||||
fieldset div {margin:1.6em 0 0 0}
|
||||
|
||||
legend {
|
||||
font-size: 1.8em;
|
||||
border:none;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 1.4em;
|
||||
display: block;
|
||||
margin:0 0 .1em 0;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
margin:.2em 0 2em 1em;
|
||||
}
|
||||
|
||||
input[type="submit"], input[type="button"], .button {
|
||||
font: normal 1.4em "Georgia", Times New Roman, Times, serif;
|
||||
color:#333;
|
||||
padding:2px 14px;
|
||||
display: block;
|
||||
margin:.2em 0 2em 0;
|
||||
font-weight:600;
|
||||
}
|
||||
|
||||
.forcheckbox {
|
||||
margin:0 0 0 .4em;
|
||||
display:inline;
|
||||
}
|
||||
|
||||
|
||||
/* Tables
|
||||
----------------------------------------------------------*/
|
||||
table {
|
||||
font:1.2em Verdana, Geneva, Tahoma, sans-serif;
|
||||
background:#fff;
|
||||
border:1px solid #f1f1f1;
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
table thead, table th {
|
||||
overflow:hidden;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
table th {
|
||||
background-color:#69625e;
|
||||
color:#f1f1f1;
|
||||
}
|
||||
|
||||
table caption {
|
||||
padding:8px 0;
|
||||
text-indent:0;
|
||||
}
|
||||
|
||||
table col {
|
||||
display:table-column;
|
||||
}
|
||||
|
||||
table colgroup {
|
||||
display:table-column-group;
|
||||
}
|
||||
|
||||
table tbody {
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
|
||||
th, td {
|
||||
font:1em Verdana, Geneva, Tahoma, sans-serif;
|
||||
padding:6px;
|
||||
}
|
||||
|
||||
td.even {
|
||||
background-color:#f1f1f1;
|
||||
}
|
||||
|
||||
/* Layout
|
||||
----------------------------------------------------------*/
|
||||
|
||||
#headercontainer {
|
||||
border:2px solid #69625e;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
margin:0 auto;
|
||||
width:930px;
|
||||
}
|
||||
|
||||
#header {
|
||||
border:1px solid #69625e;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
margin:.3em 0 .3em 0;
|
||||
}
|
||||
|
||||
#header h1 {
|
||||
font-size:3.2em;
|
||||
color:#333;
|
||||
border:0;
|
||||
margin:0 0 0 .8em;
|
||||
padding:10px 0;
|
||||
float:left;
|
||||
}
|
||||
|
||||
|
||||
.user-display {
|
||||
font-size:1.4em;
|
||||
margin:1em auto;
|
||||
text-align:right;
|
||||
width: 930px;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
width:985px;
|
||||
display:block;
|
||||
margin:0px auto 10px auto;
|
||||
background:#fff;
|
||||
border:1px solid #f1f1f1;
|
||||
}
|
||||
|
||||
#main {
|
||||
margin:0 0 0 2.7em;
|
||||
width:930px;
|
||||
background:url(../Content/Images/sidebarBackground.gif) no-repeat right top #fff;
|
||||
}
|
||||
|
||||
|
||||
#content {
|
||||
float:left;
|
||||
margin:2.6em 0 0 2.7em;
|
||||
width:520px;
|
||||
min-height:555px;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
float:right;
|
||||
margin:2.8em 0 0 0;
|
||||
width:325px;
|
||||
}
|
||||
|
||||
#sidebar h3 {
|
||||
border-bottom:1px dotted #666;
|
||||
font-size: 2.0em;
|
||||
}
|
||||
|
||||
#footercontainer {
|
||||
clear:both;
|
||||
border-top:2px solid #69625e;
|
||||
width:930px;
|
||||
margin:1.8em 0 .6em 0;
|
||||
}
|
||||
|
||||
#footer {
|
||||
border-top:1px solid #69625e;
|
||||
margin-top:.3em;
|
||||
}
|
||||
|
||||
#footer a{
|
||||
text-transform:uppercase;
|
||||
}
|
||||
|
||||
/* Navigation
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.menucontainer {
|
||||
display:block;
|
||||
float:right;
|
||||
margin-top:1.3em;
|
||||
}
|
||||
|
||||
.menucontainer ul, #footer ul {
|
||||
list-style:none
|
||||
}
|
||||
|
||||
.menucontainer ul li {
|
||||
margin:.8em 0 0 0;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.menucontainer ul li a {
|
||||
font-size:1.4em;
|
||||
margin:0 1.8em 0 1.8em;
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
text-transform:uppercase;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#footer .menucontainer {
|
||||
margin:0px;
|
||||
}
|
||||
|
||||
#footer .menucontainer ul li {
|
||||
margin:1.2em 0;
|
||||
}
|
||||
|
||||
/* Confirmations, Messages and the like
|
||||
----------------------------------------------------------*/
|
||||
.message, .validation-summary-errors {
|
||||
font-size:1.4em;
|
||||
margin:1em 0 .4em 0;
|
||||
padding:4px;
|
||||
}
|
||||
span.message {
|
||||
display:block;
|
||||
margin:.4em 0 .4em .4em;
|
||||
}
|
||||
.message a {
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.confirmation.message {
|
||||
background:#e6f1c9; /* green */
|
||||
border:1px solid #cfe493;
|
||||
}
|
||||
.warning.message {
|
||||
background:#fdf5bc; /* yellow */
|
||||
border:1px solid #ffea9b;
|
||||
}
|
||||
.critical.message, .validation-summary-errors,
|
||||
.input-validation-error.text-box, .input-validation-error.text {
|
||||
border:1px solid #990808;
|
||||
}
|
||||
.critical.message, .validation-summary-errors {
|
||||
background:#e68585; /* red */
|
||||
color:#fff;
|
||||
}
|
||||
.inf.message {
|
||||
background:#e6f1c9; /* green*/
|
||||
border:1px solid #d4deb9;
|
||||
color:#062232;
|
||||
}
|
||||
.debug.message {
|
||||
background:#eee;
|
||||
border:1px dashed #D2D6C6;
|
||||
color:#7a7a7a;
|
||||
margin:2em 0 1.4em 0;
|
||||
}
|
||||
.debug.message:before {
|
||||
content:"DEBUG » ";
|
||||
}
|
||||
|
||||
/* Localization
|
||||
-------------------------------------------------------------- */
|
||||
.content-localization .content-localizations h4 {
|
||||
margin:0;
|
||||
vertical-align:top;
|
||||
}
|
||||
.content-localization .content-localizations ul {
|
||||
overflow: auto;
|
||||
}
|
||||
.content-localization .content-localizations li {
|
||||
border-bottom: 1px;
|
||||
margin:0 0 0 .4em;
|
||||
padding: .2em .4em;
|
||||
border: 1px solid #CCC;
|
||||
}
|
||||
.content-localization .content-localizations li:hover {
|
||||
background-color: #ebebeb;
|
||||
}
|
||||
.content-localization .content-localizations li a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.content-localization .content-localizations li a:hover, .content-localization .content-localizations li a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
/* Misc classes
|
||||
-------------------------------------------------------------- */
|
||||
.clearBoth {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
/* ---------- Tags and Comments ---------- */
|
||||
.tags, .comment {
|
||||
font-style:italic;
|
||||
color:#666666;
|
||||
}
|
||||
|
||||
/* ---------- Hide the edit link for blogs hack ---------- */
|
||||
.manage {
|
||||
display:none;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 33 KiB |
@@ -1,7 +0,0 @@
|
||||
Name: Classic
|
||||
Author: Jonathan Wall
|
||||
Description: Theme using serif.
|
||||
Version: 1.0
|
||||
Tags: Classic, Serif
|
||||
Website: http://www.orchardproject.net
|
||||
Zones: Sidebar
|
||||
@@ -1,8 +0,0 @@
|
||||
<div id="footercontainer">
|
||||
<div id="footer">
|
||||
<div class="menucontainer">
|
||||
@Display(Model.Navigation)
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,35 +0,0 @@
|
||||
@using Orchard.UI.Resources;
|
||||
|
||||
@{
|
||||
Style.Include("site.css");
|
||||
Style.Include("blog.css");
|
||||
}
|
||||
<div id="wrapper">
|
||||
@* HTML.Include will render a div with a class="user-display" *@
|
||||
@* Can use this -> {Html.Include("User");} *@
|
||||
@* or the following. At least they appear to do the same thing currently. The first is a standard Html.Include, the second "displays the (New) User shape" *@
|
||||
@Display.User()
|
||||
@* Top Navigation and branding *@
|
||||
<div id="headercontainer">
|
||||
<div id="header">
|
||||
<h1>@WorkContext.CurrentSite.SiteName</h1>
|
||||
<div class="menucontainer">
|
||||
@Display(Model.Navigation)
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<div id="content">
|
||||
@* Main Content *@
|
||||
@Display(Model.Content)
|
||||
</div>
|
||||
<div id="sidebar">
|
||||
@Display(Model.Search)
|
||||
@Display(Model.Sidebar)
|
||||
</div>
|
||||
@* End Content *@
|
||||
@Display.Footer(Navigation:Model.Navigation)
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,14 +0,0 @@
|
||||
<ul>
|
||||
<li>
|
||||
<h3>Curabitur sit amet</h3>
|
||||
</li>
|
||||
<li>
|
||||
<p class="small">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec justo est, consectetur vel posuere quis, viverra eget risus. Curabitur sit amet est quis leo condimentum semper sed vitae nisi. Cras orci lorem, pulvinar id bibendum aliquet, facilisis ut diam. Sed elementum bibendum cursus.</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3>Donec justo</h3>
|
||||
</li>
|
||||
<li>
|
||||
<p class="small">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec justo est, consectetur vel posuere quis, viverra eget risus. Curabitur sit amet est quis leo condimentum semper sed vitae nisi. Cras orci lorem, pulvinar id bibendum aliquet, facilisis ut diam. Sed elementum bibendum cursus.</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
Before Width: | Height: | Size: 703 B |
|
Before Width: | Height: | Size: 8.9 KiB |
@@ -1,54 +0,0 @@
|
||||
/*Blog specific styles
|
||||
----------------------------------------------------------*/
|
||||
|
||||
h3.blogs, h3.blog {
|
||||
display:block;
|
||||
border-bottom:1px solid #f1f1f1;
|
||||
}
|
||||
|
||||
ul.blogs p {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
.post {
|
||||
margin: -8px 0 12px 0px;
|
||||
}
|
||||
|
||||
.postsummary {
|
||||
padding: 0 0 4px 0;
|
||||
border-bottom:1px dotted #474747;
|
||||
}
|
||||
|
||||
.meta {
|
||||
font-size:1.5em;
|
||||
font-style:italic;
|
||||
color:#999;
|
||||
}
|
||||
|
||||
.tagCloud {
|
||||
font-style:italic;
|
||||
font-size:1.8em;
|
||||
}
|
||||
|
||||
.tagCloud li {
|
||||
display: block;
|
||||
float:left;
|
||||
padding:20px 10px 0 0;
|
||||
}
|
||||
|
||||
.archives {
|
||||
margin: 0 0 24px 0;
|
||||
}
|
||||
|
||||
ul.archiveMonthList li {
|
||||
font-size:1.5em;
|
||||
padding:8px;
|
||||
}
|
||||
|
||||
.comment span {
|
||||
font-size:1.4em;
|
||||
}
|
||||
|
||||
.text p {
|
||||
margin:0 0 1.4em 0;
|
||||
}
|
||||
@@ -1,354 +0,0 @@
|
||||
/*Yahoo browser reset
|
||||
----------------------------------------------------------*/
|
||||
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,
|
||||
blockquote,th,td {margin:0; padding:0; }
|
||||
table { border-collapse:collapse; border-spacing:0; }
|
||||
fieldset,img { border:0; }
|
||||
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; }
|
||||
ol,ul { list-style:none; }
|
||||
caption,th { text-align:left; }
|
||||
h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:normal; }
|
||||
abbr,acronym { border:0; }
|
||||
q:before,q:after {content:'';}
|
||||
abbr,acronym { border:0;}
|
||||
|
||||
/*Defaults
|
||||
----------------------------------------------------------*/
|
||||
|
||||
html {height: 100%;}
|
||||
|
||||
body {
|
||||
font: normal 62.5% "Georgia", Times New Roman, Times, serif; /* 62.5% sets font to 10px */
|
||||
height: 100%;
|
||||
text-align:left;
|
||||
color:#dedede;
|
||||
background:#0c0c0c;
|
||||
}
|
||||
|
||||
/* ---------- Headings and defaults ---------- */
|
||||
|
||||
h1,h2,h3,h4,h5,h6,legend {font-weight:normal; font-style: normal; margin:.2em 0;}
|
||||
|
||||
h1 { font-size:2.6em; } /* 26px */
|
||||
h2 { font-size:2.4em; } /* 24px */
|
||||
h3 { font-size:2.2em; } /* 22px */
|
||||
h4 { font-size:2.0em; } /* 20px */
|
||||
h5 { font-size:1.8em; } /* 18px */
|
||||
h6 { font-size:1.6em; } /* 16px */
|
||||
|
||||
h1.sitename {border-bottom:none;}
|
||||
|
||||
p {font-size:1.4em; line-height:2em; margin:1.2em 0 1.2em 0;}
|
||||
p.small {font-size:1.2em;}
|
||||
|
||||
a {color:#ccdcce; text-decoration:underline;} /* unvisited link */
|
||||
a:active {color: #ccdcce;} /* selected link */
|
||||
a:visited {color: #ccdcce;} /* visited link */
|
||||
a:hover {color: #99ff66;} /* mouse over link */
|
||||
|
||||
#content a:hover, #sidebar a:hover {text-decoration:underline;}
|
||||
|
||||
ul.square {font-size:1.4em; list-style:square; list-style-position:inside; line-height:2em; margin:0 0 0 1.2em;}
|
||||
ol.decimal {font-size:1.4em; list-style:decimal; list-style-position:inside; line-height:2em; margin:0 0 0 1.2em;}
|
||||
|
||||
|
||||
/* Forms
|
||||
----------------------------------------------------------*/
|
||||
|
||||
input[type="text"], #CommentText, #password, #confirmPassword {
|
||||
border:1px solid #cacec6;
|
||||
background:#DEDEDE;
|
||||
display: block;
|
||||
padding:3px;
|
||||
width:90%;
|
||||
}
|
||||
form.search {
|
||||
margin-bottom:2em;
|
||||
}
|
||||
.search input[type=text] {
|
||||
display:inline;
|
||||
width:17em;
|
||||
}
|
||||
fieldset div {margin:1.6em 0 0 0}
|
||||
|
||||
legend {
|
||||
font-size: 1.8em;
|
||||
border:none;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 1.4em;
|
||||
display: block;
|
||||
margin:0 0 .1em 0;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
margin:.2em 0 2em 1em;
|
||||
}
|
||||
|
||||
input[type="submit"], input[type="button"], .button {
|
||||
font: normal 1.4em "Georgia", Times New Roman, Times, serif;
|
||||
color:#474747;
|
||||
padding:2px 14px;
|
||||
display: block;
|
||||
margin:.2em 0 2em 0;
|
||||
font-weight:600;
|
||||
}
|
||||
|
||||
.forcheckbox {
|
||||
margin:0 0 0 .4em;
|
||||
display:inline;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
----------------------------------------------------------*/
|
||||
table {
|
||||
font:1.2em Verdana, Geneva, Tahoma, sans-serif;
|
||||
background:#1d2025;
|
||||
border:1px solid #f1f1f1;
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
table thead, table th {
|
||||
overflow:hidden;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
table th {
|
||||
background-color:#69625e;
|
||||
color:#f1f1f1;
|
||||
}
|
||||
|
||||
table caption {
|
||||
padding:8px 0;
|
||||
text-indent:0;
|
||||
}
|
||||
|
||||
table col {
|
||||
display:table-column;
|
||||
}
|
||||
|
||||
table colgroup {
|
||||
display:table-column-group;
|
||||
}
|
||||
|
||||
table tbody {
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
|
||||
th, td {
|
||||
font:1em Verdana, Geneva, Tahoma, sans-serif;
|
||||
padding:6px
|
||||
}
|
||||
|
||||
td.even {
|
||||
background-color:#f1f1f1;
|
||||
}
|
||||
|
||||
/* ---------- Layout ---------- */
|
||||
|
||||
#headercontainer {
|
||||
border:2px solid #474747;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
margin:0 auto;
|
||||
width:930px;
|
||||
}
|
||||
|
||||
#header {
|
||||
border:1px solid #474747;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
margin:.3em 0 .3em 0;
|
||||
}
|
||||
|
||||
#header h1 {
|
||||
font-size:3.2em;
|
||||
border:0;
|
||||
margin:0 0 0 .8em;
|
||||
padding:10px 0;
|
||||
float:left;
|
||||
}
|
||||
|
||||
|
||||
.user-display {
|
||||
font-size:1.4em;
|
||||
margin:1em auto;
|
||||
text-align:right;
|
||||
width: 930px;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
width:985px;
|
||||
display:block;
|
||||
margin:0px auto 10px auto;
|
||||
background:#1d2025;
|
||||
border:1px solid #333;
|
||||
}
|
||||
|
||||
#main {
|
||||
margin:0 0 0 2.7em;
|
||||
width:930px;
|
||||
background:url(../Content/Images/sidebarBackground.gif) no-repeat right top #1d2025;
|
||||
}
|
||||
|
||||
|
||||
#content {
|
||||
float:left;
|
||||
margin:2.6em 0 0 2.7em;
|
||||
width:520px;
|
||||
min-height:555px;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
float:right;
|
||||
margin:2.8em 0 0 0;
|
||||
width:325px;
|
||||
}
|
||||
|
||||
#sidebar h3 {
|
||||
border-bottom:1px dotted #474747;
|
||||
font-size: 2.0em;
|
||||
}
|
||||
|
||||
#footercontainer {
|
||||
clear:both;
|
||||
border-top:2px solid #474747;
|
||||
width:930px;
|
||||
margin:1.8em 0 .6em 0;
|
||||
}
|
||||
|
||||
#footer {
|
||||
border-top:1px dotted #474747;
|
||||
margin-top:.3em;
|
||||
}
|
||||
|
||||
#footer a{
|
||||
text-transform:uppercase;
|
||||
}
|
||||
|
||||
|
||||
/* ---------- Navigation ---------- */
|
||||
|
||||
.menucontainer {
|
||||
display:block;
|
||||
float:right;
|
||||
margin-top:1.3em;
|
||||
}
|
||||
|
||||
.menucontainer ul, #footer ul {
|
||||
list-style:none
|
||||
}
|
||||
|
||||
.menucontainer ul li {
|
||||
margin:.8em 0 0 0;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.menucontainer ul li a {
|
||||
font-size:1.4em;
|
||||
margin:0 1.8em 0 1.8em;
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
text-transform:uppercase;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.menucontainer ul li a:hover {
|
||||
color:#99ff66;
|
||||
}
|
||||
|
||||
#footer .menucontainer ul li {
|
||||
margin:1.2em 0;
|
||||
}
|
||||
|
||||
/* Confirmations, Messages and the like
|
||||
----------------------------------------------------------*/
|
||||
.message, .validation-summary-errors {
|
||||
font-size:1.4em;
|
||||
margin:1em 0 .4em 0;
|
||||
padding:4px;
|
||||
}
|
||||
span.message {
|
||||
display:block;
|
||||
margin:.4em 0 .4em .4em;
|
||||
}
|
||||
.message a {
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.confirmation.message {
|
||||
background:#e6f1c9; /* green */
|
||||
border:1px solid #cfe493;
|
||||
}
|
||||
.warning.message {
|
||||
background:#fdf5bc; /* yellow */
|
||||
border:1px solid #ffea9b;
|
||||
}
|
||||
.critical.message, .validation-summary-errors,
|
||||
.input-validation-error.text-box, .input-validation-error.text {
|
||||
border:1px solid #990808;
|
||||
}
|
||||
.critical.message, .validation-summary-errors {
|
||||
background:#e68585; /* red */
|
||||
color:#fff;
|
||||
}
|
||||
.info.message {
|
||||
background:#e6f1c9; /* green*/
|
||||
border:1px solid #d4deb9;
|
||||
color:#062232;
|
||||
}
|
||||
.debug.message {
|
||||
background:#eee;
|
||||
border:1px dashed #D2D6C6;
|
||||
color:#7a7a7a;
|
||||
margin:2em 0 1.4em 0;
|
||||
}
|
||||
.debug.message:before {
|
||||
content:"DEBUG » ";
|
||||
}
|
||||
|
||||
/* Localization
|
||||
-------------------------------------------------------------- */
|
||||
.content-localization .content-localizations h4 {
|
||||
margin: 0;
|
||||
vertical-align: top;
|
||||
}
|
||||
.content-localization .content-localizations ul {
|
||||
overflow: auto;
|
||||
}
|
||||
.content-localization .content-localizations li {
|
||||
border-bottom: 1px;
|
||||
margin:0 0 0 .4em;
|
||||
padding: .2em .4em;
|
||||
border: 1px solid #CCC;
|
||||
}
|
||||
.content-localization .content-localizations li:hover {
|
||||
background-color: #000;
|
||||
border-color: #99ff66;
|
||||
}
|
||||
.content-localization .content-localizations li a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.content-localization .content-localizations li a:hover, .content-localization .content-localizations li a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
/* ---------- Tags and Comments ---------- */
|
||||
.tags, .comment {
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
|
||||
/* ---------- Generic ---------- */
|
||||
.clearBoth {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
/* ---------- Hide the edit link for blogs hack ---------- */
|
||||
.manage {
|
||||
display:none;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 39 KiB |
@@ -1,7 +0,0 @@
|
||||
Name: Classic Dark
|
||||
Author: Jonathan Wall
|
||||
Description: Dark version of the Classic theme.
|
||||
Version: 1.0
|
||||
Tags: Classic, Dark, Serif
|
||||
Website: http://www.orchardproject.net
|
||||
Zones: Sidebar
|
||||
@@ -1,8 +0,0 @@
|
||||
<div id="footercontainer">
|
||||
<div id="footer">
|
||||
<div class="menucontainer">
|
||||
@Display(Model.Navigation)
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,34 +0,0 @@
|
||||
@using Orchard.UI.Resources;
|
||||
@{
|
||||
Style.Include("site.css");
|
||||
Style.Include("blog.css");
|
||||
}
|
||||
<div id="wrapper">
|
||||
@* HTML.Include will render a div with a class="user-display" *@
|
||||
@* Can use this -> {Html.Include("User");} *@
|
||||
@* or the following. At least they appear to do the same thing currently. The first is a standard Html.Include, the second "displays the (New) User shape" *@
|
||||
@Display.User()
|
||||
@* Top Navigation and branding *@
|
||||
<div id="headercontainer">
|
||||
<div id="header">
|
||||
<h1>@WorkContext.CurrentSite.SiteName</h1>
|
||||
<div class="menucontainer">
|
||||
@Display(Model.Navigation)
|
||||
</div>
|
||||
<div class="clearBoth"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<div id="content">
|
||||
@* Main Content *@
|
||||
@Display(Model.Content)
|
||||
</div>
|
||||
<div id="sidebar">
|
||||
@Display(Model.search)
|
||||
@Display(Model.sidebar)
|
||||
</div>
|
||||
@* End Content *@
|
||||
@Display.Footer(Navigation:Model.Navigation)
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,14 +0,0 @@
|
||||
<ul>
|
||||
<li>
|
||||
<h3>Curabitur sit amet</h3>
|
||||
</li>
|
||||
<li>
|
||||
<p class="small">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec justo est, consectetur vel posuere quis, viverra eget risus. Curabitur sit amet est quis leo condimentum semper sed vitae nisi. Cras orci lorem, pulvinar id bibendum aliquet, facilisis ut diam. Sed elementum bibendum cursus.</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3>Donec justo</h3>
|
||||
</li>
|
||||
<li>
|
||||
<p class="small">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec justo est, consectetur vel posuere quis, viverra eget risus. Curabitur sit amet est quis leo condimentum semper sed vitae nisi. Cras orci lorem, pulvinar id bibendum aliquet, facilisis ut diam. Sed elementum bibendum cursus.</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
Before Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 537 B |
|
Before Width: | Height: | Size: 428 B |
|
Before Width: | Height: | Size: 278 B |
|
Before Width: | Height: | Size: 567 B |
|
Before Width: | Height: | Size: 596 B |
|
Before Width: | Height: | Size: 579 B |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 789 B |
|
Before Width: | Height: | Size: 195 B |
|
Before Width: | Height: | Size: 393 B |
|
Before Width: | Height: | Size: 501 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 737 B |
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Easy Slider - jQuery plugin
|
||||
* written by Alen Grakalic
|
||||
* http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider
|
||||
*
|
||||
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
||||
* and GPL (GPL-LICENSE.txt) licenses.
|
||||
*
|
||||
* Built for jQuery library
|
||||
* http://jquery.com
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* markup example for $("#images").easySlider();
|
||||
*
|
||||
* <div id="images">
|
||||
* <ul>
|
||||
* <li><img src="images/01.jpg" alt="" /></li>
|
||||
* <li><img src="images/02.jpg" alt="" /></li>
|
||||
* <li><img src="images/03.jpg" alt="" /></li>
|
||||
* <li><img src="images/04.jpg" alt="" /></li>
|
||||
* <li><img src="images/05.jpg" alt="" /></li>
|
||||
* </ul>
|
||||
* </div>
|
||||
*
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.fn.easySlider = function(options){
|
||||
|
||||
// default configuration properties
|
||||
var defaults = {
|
||||
prevId: 'prevBtn',
|
||||
prevText: 'Previous',
|
||||
nextId: 'nextBtn',
|
||||
nextText: 'Next',
|
||||
orientation: '', // 'vertical' is optional;
|
||||
speed: 800
|
||||
};
|
||||
|
||||
var options = $.extend(defaults, options);
|
||||
|
||||
return this.each(function() {
|
||||
obj = $(this);
|
||||
var s = $("li", obj).length;
|
||||
var w = obj.width();
|
||||
var h = obj.height();
|
||||
var ts = s-1;
|
||||
var t = 0;
|
||||
var vertical = (options.orientation == 'vertical');
|
||||
$("ul", obj).css('width',s*w);
|
||||
if(!vertical) $("li", obj).css('float','left');
|
||||
$(obj).after('<span id="'+ options.prevId +'"><a href=\"javascript:void(0);\">'+ options.prevText +'</a></span> <span id="'+ options.nextId +'"><a href=\"javascript:void(0);\">'+ options.nextText +'</a></span>');
|
||||
//$("a","#"+options.prevId).hide();
|
||||
//$("a","#"+options.nextId).hide();
|
||||
$("a","#"+options.nextId).click(function(){
|
||||
animate("next");
|
||||
//if (t>=ts) $(this).fadeOut();
|
||||
$("a","#"+options.prevId).fadeIn();
|
||||
});
|
||||
$("a","#"+options.prevId).click(function(){
|
||||
animate("prev");
|
||||
//if (t<=0) $(this).fadeOut();
|
||||
$("a","#"+options.nextId).fadeIn();
|
||||
});
|
||||
function animate(dir){
|
||||
if(dir == "next"){
|
||||
t = (t>=ts) ? ts : t+1;
|
||||
} else {
|
||||
t = (t<=0) ? 0 : t-1;
|
||||
};
|
||||
if(!vertical) {
|
||||
p = (t*w*-1);
|
||||
$("ul",obj).animate(
|
||||
{ marginLeft: p },
|
||||
options.speed
|
||||
);
|
||||
} else {
|
||||
p = (t*h*-1);
|
||||
$("ul",obj).animate(
|
||||
{ marginTop: p },
|
||||
options.speed
|
||||
);
|
||||
}
|
||||
};
|
||||
if(s>1) $("a","#"+options.nextId).fadeIn();
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
@@ -1,24 +0,0 @@
|
||||
form.search {
|
||||
float:left;
|
||||
}
|
||||
form.search input {
|
||||
display:inline;
|
||||
width:20em;
|
||||
}
|
||||
.search-summary {
|
||||
float:right;
|
||||
font-style:italic;
|
||||
margin-top:0;
|
||||
}
|
||||
.search-summary em {
|
||||
font-weight:bold;
|
||||
}
|
||||
.search-results {
|
||||
clear:both;
|
||||
}
|
||||
/* theme modifications */
|
||||
/*- Search (Page) -*/
|
||||
.search-results { margin: 0; padding-top: 1em; }
|
||||
.search-results li { list-style: none; }
|
||||
.search-results h3 { margin-bottom: 0; }
|
||||
.search-results .content { padding-top:0; }
|
||||
@@ -1,457 +0,0 @@
|
||||
/*========= SETUP =========*/
|
||||
|
||||
/*- Reset -*/
|
||||
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-weight: inherit;
|
||||
font-style: inherit;
|
||||
font-size: 100%;
|
||||
font-family: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
/* remember to define focus styles! */
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
body {
|
||||
line-height: 1;
|
||||
color: black;
|
||||
background: white;
|
||||
}
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
/* tables still need 'cellspacing="0"' in the markup */
|
||||
table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
caption, th, td {
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
}
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: "";
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: "" "";
|
||||
}
|
||||
|
||||
/*- Clear Fix -*/
|
||||
|
||||
.group:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*========= General Typography =========*/
|
||||
|
||||
/* Default font settings.
|
||||
The font-size percentage is of 16px. (0.75 * 16px = 12px) */
|
||||
body {
|
||||
font-size: 75%;
|
||||
color: #67747a;
|
||||
background: #fff;
|
||||
font-family: Tahoma, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
/* Headings
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; }
|
||||
|
||||
h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
|
||||
h2 { font-size: 1.3em; margin-bottom: 0.75em; color: #444d51; }
|
||||
h3 { font-size: 1.2em; line-height: 1; margin-bottom: 1em; color: #444d51; }
|
||||
h4 { font-size: 1.1em; line-height: 1.25; margin-bottom: 1.25em; color: #444d51; }
|
||||
h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; color: #444d51; }
|
||||
h6 { font-size: 1em; font-weight: bold; }
|
||||
|
||||
h1 img, h2 img, h3 img,
|
||||
h4 img, h5 img, h6 img {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Text elements
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
p { margin: 0 0 1.5em; line-height: 175%; }
|
||||
p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
|
||||
p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; }
|
||||
|
||||
a:focus,
|
||||
a:hover { color: #85b35c; }
|
||||
a { color: #5f97af; text-decoration: none; }
|
||||
|
||||
blockquote { margin: 1.5em; color: #666; font-style: italic; }
|
||||
strong { font-weight: bold; }
|
||||
em,dfn { font-style: italic; }
|
||||
dfn { font-weight: bold; }
|
||||
sup, sub { line-height: 0; }
|
||||
|
||||
abbr,
|
||||
acronym { border-bottom: 1px dotted #666; }
|
||||
address { margin: 0 0 1.5em; font-style: italic; }
|
||||
del { color:#666; }
|
||||
|
||||
pre { margin: 1.5em 0; white-space: pre; }
|
||||
pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
|
||||
|
||||
/* Lists
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
li ul,
|
||||
li ol { margin:0 1.5em; }
|
||||
ul, ol { margin: 0 1.5em 1.5em 1.5em; }
|
||||
|
||||
ul { list-style-type: disc; }
|
||||
ol { list-style-type: decimal; }
|
||||
|
||||
dl { margin: 0 0 1.5em 0; }
|
||||
dl dt { font-weight: bold; }
|
||||
dd { margin-left: 1.5em;}
|
||||
|
||||
/* Tables
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
table { margin-bottom: 1.4em; width:100%; }
|
||||
th { font-weight: bold; }
|
||||
thead th { background: #c3d9ff; }
|
||||
th,td,caption { padding: 4px 10px 4px 5px; }
|
||||
tr.even td { background: #e5ecf9; }
|
||||
tfoot { font-style: italic; }
|
||||
caption { background: #eee; }
|
||||
|
||||
/* Misc classes
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
|
||||
.large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
|
||||
.hide { display: none; }
|
||||
|
||||
.quiet { color: #666; }
|
||||
.loud { color: #000; }
|
||||
.highlight { background:#ff0; }
|
||||
.added { background:#060; color: #fff; }
|
||||
.removed { background:#900; color: #fff; }
|
||||
|
||||
.first { margin-left:0; padding-left:0; }
|
||||
.last { margin-right:0; padding-right:0; }
|
||||
.top { margin-top:0; padding-top:0; }
|
||||
.bottom { margin-bottom:0; padding-bottom:0; }
|
||||
|
||||
|
||||
/*========= FORMS =========*/
|
||||
|
||||
/* --------------------------------------------------------------
|
||||
|
||||
forms.css
|
||||
* Sets up some default styling for forms
|
||||
* Gives you classes to enhance your forms
|
||||
|
||||
Usage:
|
||||
* For text fields, use class .title or .text
|
||||
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
label { font-weight: normal; display:block; }
|
||||
label.forcheckbox { margin:0 0 0 4px; display:inline; }
|
||||
fieldset { padding:0em; margin: 0 0 0em 0; border: 0px solid #ccc; }
|
||||
legend { font-weight: bold; font-size:1.2em; }
|
||||
|
||||
|
||||
/* Form fields
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
input[type=text],
|
||||
input.text, input.title,
|
||||
textarea, select {
|
||||
background-color:#fff;
|
||||
border:1px solid #bbb;
|
||||
}
|
||||
input[type=text]:focus,
|
||||
input.text:focus, input.title:focus,
|
||||
textarea:focus, select:focus {
|
||||
border-color:#a5cc7a;
|
||||
background-color: #fbfff7;
|
||||
}
|
||||
|
||||
input[type=text],
|
||||
input.text, input.title,
|
||||
textarea, select {
|
||||
margin:0.5em 0;
|
||||
}
|
||||
|
||||
input.text,
|
||||
input.title { width: 300px; padding:5px; }
|
||||
input.title { font-size:1.5em; }
|
||||
textarea { padding:5px; }
|
||||
|
||||
input[type=checkbox], input[type=radio],
|
||||
input.checkbox, input.radio {
|
||||
position:relative; top:.25em;
|
||||
}
|
||||
|
||||
/* TODO: Causes form rendering issues with theme preview, had to add line-height: normal */
|
||||
form.inline { line-height: normal; }
|
||||
form.inline p { margin-bottom:0; }
|
||||
|
||||
|
||||
/*- Login Control -*/
|
||||
|
||||
.login-form { border: solid 1px #e2e2e2; padding: 20px; font-size: 1.2em; font-weight: normal; }
|
||||
.login-form div { padding: 5px 0px 5px 0px; }
|
||||
.login-form input[type=submit] { margin: 5px 0px 5px 0px; }
|
||||
.validation-summary-errors { padding: 20px 20px 0px 20px; border: solid 1px #fff54f; background-color: #fffcca; margin-bottom: 20px; }
|
||||
|
||||
.edit-form { display: none; }
|
||||
.static_text_div { border: dashed 1px #CCCCCC; display:block; color: inherit; }
|
||||
.static_text_div:hover { border: dashed 1px red; color: inherit; }
|
||||
|
||||
|
||||
|
||||
/* Success, notice and error boxes
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.error,
|
||||
.notice,
|
||||
.success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; }
|
||||
|
||||
.error { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; }
|
||||
.notice { background: #FFF6BF; color: #514721; border-color: #FFD324; }
|
||||
.success { background: #E6EFC2; color: #264409; border-color: #C6D880; }
|
||||
.error a { color: #8a1f11; }
|
||||
.notice a { color: #514721; }
|
||||
.success a { color: #264409; }
|
||||
|
||||
|
||||
|
||||
|
||||
/*========= GENERAL =========*/
|
||||
|
||||
body { background: #f3f4f4 url('../Content/Images/bkg.jpg') repeat-x; }
|
||||
|
||||
#container { width: 962px; margin: 0px auto 0px auto; }
|
||||
|
||||
|
||||
|
||||
/*========= HEADER =========*/
|
||||
|
||||
.header {}
|
||||
|
||||
/*- Brand -*/
|
||||
|
||||
.brand { width: 962px; }
|
||||
.brand .title { padding: 20px 0px 15px 0px; font-size: 1.6em; font-family: Segoe UI, Segoe, Arial, Sans-Serif; color:#4c5c64; float: left; }
|
||||
|
||||
/*- Page Navigation -*/
|
||||
|
||||
#nav { background: transparent url('../Content/Images/menu-right.png') no-repeat right top; margin: 0px 0px 20px 0px; position: relative; }
|
||||
#nav .menu { margin: 0px; padding: 0px; height: 40px; width:725px; background: transparent url('../Content/Images/menu-left.png') no-repeat left top; }
|
||||
#nav .menu li { float:left; list-style: none; background: transparent url('../Content/Images/menu-divider.png') repeat-y right top; }
|
||||
#nav .menu li a { display:block; margin: 0px 2px 1px 0px; padding: 11px 39px 4px 39px; height: 24px; color: #FFF; font-size: 1.2em; text-decoration: none; text-shadow: 0px -1px 0px #535550; }
|
||||
#nav .menu li a:hover { background: #9dc975 url('../Content/Images/menu-hover.png') repeat-x right top; }
|
||||
#nav .menu li:first-child a:hover { margin: 0px 2px 1px 0px; background: #9dc975 url('../Content/Images/menu-hover-left.png') no-repeat left top; }
|
||||
|
||||
#nav .menu li.current a { background: #9dc975 url('../Content/Images/menu-hover.png') repeat-x right top; }
|
||||
#nav .menu li.current:first-child a { margin: 0px 2px 1px 0px; background: #9dc975 url('../Content/Images/menu-hover-left.png') no-repeat left top; }
|
||||
|
||||
.admin { float: right; margin: 0px; padding: 25px 0px 0px 0px; }
|
||||
.admin li { float:left; list-style: none; padding: 0px 0px 5px 20px; }
|
||||
.admin li a {}
|
||||
|
||||
/*- Search -*/
|
||||
#nav .search { position: absolute; top: 0px; right: 12px; }
|
||||
#nav .search input { border-color: #6AA6BF; padding: 5px; }
|
||||
#nav .search input, #nav .search button { vertical-align: middle; }
|
||||
#nav .search button { background: #87B7CB; border: 1px solid #6AA6BF; color: #FFF; padding: 4px; text-shadow: 0px -1px 0px #A6A6A6; }
|
||||
|
||||
|
||||
/*========= Footer =========*/
|
||||
|
||||
.footer { width: 962px; border-top: solid 1px #e2e2e2; padding: 20px 0px 40px 0px; margin: 20px 0px 0px 0px; }
|
||||
.footer ul { margin: 0px; padding: 0px; float: right; }
|
||||
.footer ul li { float:left; list-style: none; color: #98bac8; padding: 0px 0px 0px 20px; }
|
||||
.footer a { color: #4c5c64; }
|
||||
.footer a:hover { color: #85b35c; }
|
||||
|
||||
|
||||
/*========= Home =========*/
|
||||
|
||||
.home-hero-container { width: 962px; padding: 0px 0px 5px 0px; margin: 0px 0px 20px 0px; background: transparent url('../Content/Images/feature-bkg-bottom.png') no-repeat left bottom; }
|
||||
.home-hero { width: 922px; position: relative; min-height: 317px; padding: 20px; background: transparent url('../Content/Images/feature-bkg-top.png') no-repeat left top; }
|
||||
.home-hero .hero-content { width: 329px; margin: 40px 0px 0px 60px; color: #ffffff; float: left; }
|
||||
.home-hero .hero-content p { font-size: 1.2em; line-height: 150%; }
|
||||
.home-hero .hero-content h1 { color: #ffffff; font-size: 2em; line-height: 1.2em; text-shadow: 0px -1px 0px #558599; }
|
||||
.home-hero .hero-content a { color: #ffffff; }
|
||||
|
||||
.home-hero .hero-gallery { float:left; position: relative; margin: 0px 0px 0px 40px; }
|
||||
.home-hero .hero-gallery #slider { position: relative; border: solid 1px #4d8298; }
|
||||
|
||||
|
||||
|
||||
/*========= Page =========*/
|
||||
|
||||
.content-container { background: transparent url('../Content/Images/content-bottom.png') no-repeat left bottom; padding: 0px 0px 0px 0px; }
|
||||
.content { position: relative; background: transparent url('../Content/Images/content-top.png') no-repeat left top; padding: 20px 0px 20px 0px; }
|
||||
.content-items { width: 882px; padding: 20px 40px 0px 40px; background: transparent url('../Content/Images/content-bkg.png') repeat-y left top; }
|
||||
.content-items .item { width: 421px; float: left; }
|
||||
.content-items .item:first-child {margin: 0px 40px 0px 0px; }
|
||||
.content-items h1 { font-size: 1.3em; margin-bottom: 0.75em; color: #444d51; }
|
||||
|
||||
/*- Content Pages -*/
|
||||
.content .page-title { display: none; }
|
||||
.sub .page-title { display: block; background: transparent url('../Content/Images/sub-header.png') no-repeat left top; width: 962px; height: 48px; position: absolute; top: 1px; left: 1px; color: #ffffff; font-size: 2em; text-shadow: 0px -1px 0px #5f8b9e; padding: 15px 0px 15px 40px; }
|
||||
.content-items .main { float: left; width: 574px; margin: 0px 60px 20px 0px; padding: 50px 0px 0px 0px; }
|
||||
.content-items .sidebar { float: left; width: 232px; padding: 45px 0px 0px 0px; }
|
||||
.content-items .side-block { float: left; width: 232px; border-bottom: solid 1px #e2e2e2; padding: 20px 0px 0px 0px; }
|
||||
.content-items .archives { float: left; width: 232px; border-bottom: solid 1px #e2e2e2; padding: 20px 0px 0px 0px; }
|
||||
.content-items .archives .archiveMonthList { padding: 20px 0px 20px 0px; list-style: none; }
|
||||
|
||||
|
||||
/*- Highlight Area -*/
|
||||
.hightlights { width: 882px; padding: 40px 40px 0px 40px; }
|
||||
.hightlights .one { float: left; width: 266px; margin-right: 40px; }
|
||||
.hightlights .two { float: left; width: 266px; margin-right: 40px; }
|
||||
.hightlights .three { float: left; width: 266px; }
|
||||
.hightlights h3 { margin: 0px 0px 0.75em 0px; }
|
||||
.hightlights img { float: left; padding: 0px 0px 0px 0px; }
|
||||
|
||||
|
||||
/*========= BLOGS =========*/
|
||||
|
||||
.blogPosts, .taggedPosts { margin: 0px; padding: 0px; }
|
||||
.blogPosts li, .taggedPosts li { padding: 30px 0px 0px 0px; list-style: none; border-bottom: solid 1px #e2e2e2; }
|
||||
.blogdescription { font-size: 1.3em; line-height: 150%; color: #6da8c0; }
|
||||
.blogPosts h3 { font-size: 1.6em; margin: 0; padding: 0 0 2px 0; line-height:100%; }
|
||||
|
||||
#comments { padding-top: 20px; border-top: dashed 1px #d8d8d8; padding-bottom: 10px; margin-top: 30px; }
|
||||
.comments { position: relative; padding: 0px 0px 20px 0px; margin: 0px; clear: both; }
|
||||
.comments li { display: block; position: relative; list-style: none; background-color: #fbfff7; border: solid 1px #ebf4e3; border-bottom-color: #d5ebbd; border-right-color: #d5ebbd; padding: 20px 20px 0px 20px; margin: 0px 0px 50px 0px; }
|
||||
.comments .commentauthor {position: absolute; bottom: -27px; left: 20px; color: #a5cc7a; background: transparent url('../Content/Images/comment-arrow.png') no-repeat 20px 0px; padding: 15px 0px 0px 0px; }
|
||||
|
||||
.comment-form { border: solid 1px #d8d8d8; padding: 20px; }
|
||||
.comment-form h2 { border-bottom: dashed 1px #d8d8d8; padding-bottom: 10px; }
|
||||
.comment-form .who {}
|
||||
.comment-form .who label { float: left; text-align: right; width: 50px; padding: 12px 10px 0px 0px; }
|
||||
.comment-form .what { padding: 10px 0px 0px 0px;}
|
||||
.comment-form .what label[for=CommentText] { float: none; display:block; }
|
||||
.comment-form .what input[type=submit] { margin: 10px 0px; }
|
||||
.comment-form .what #CommentText { width: 97%; }
|
||||
.comment-form .what .CommentUserName { display: block; }
|
||||
|
||||
.posted { margin: 0px 0px 10px 0px; color: #999999; }
|
||||
|
||||
.tags span { display: block; float: left; padding: 3px 10px 5px 0px; }
|
||||
.tags a { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #d7e6ed; color: #95a5ac; text-shadow: 1px 1px 0px #FFF; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
.tags a:hover { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #a5cc7a; color: #668b3e; text-shadow: 1px 1px 0px #c8e6a6; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
|
||||
/*- Archive List -*/
|
||||
|
||||
.archive-trail { padding: 0px 0px 20px 0px; }
|
||||
|
||||
/*- Tag Cloud */
|
||||
|
||||
.tagCloud { list-style: none; margin: 20px 0px 0px 0px; }
|
||||
.tagCloud li { display: block; float: left; padding: 3px 10px 5px 0px; }
|
||||
.tagCloud a { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #d7e6ed; color: #95a5ac; text-shadow: 1px 1px 0px #FFF; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
.tagCloud a:hover { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #a5cc7a; color: #668b3e; text-shadow: 1px 1px 0px #c8e6a6; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
|
||||
|
||||
/* Localization
|
||||
-------------------------------------------------------------- */
|
||||
.content-localization .content-localizations h4 {
|
||||
float: left;
|
||||
margin: 0;
|
||||
padding:3px;
|
||||
}
|
||||
|
||||
.content-localization .content-localizations ul {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.content-localization .content-localizations li {
|
||||
border-bottom: 1px;
|
||||
float: left;
|
||||
margin-left:.5em;
|
||||
padding: 3px;
|
||||
border: 1px solid #CCC;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.content-localization .content-localizations li:hover {
|
||||
background-color: #ebebeb;
|
||||
}
|
||||
|
||||
|
||||
.content-localization .content-localizations li a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.content-localization .content-localizations li a:hover, .content-localization .content-localizations li a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*========= PLUGINS =========*/
|
||||
|
||||
/*- Easy Slider -*/
|
||||
|
||||
#slider ul, #slider li {
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style:none;
|
||||
}
|
||||
#slider, #slider li {
|
||||
/*
|
||||
define width and height of container element and list item (slide)
|
||||
list items must be the same size as the slider area
|
||||
*/
|
||||
width:471px;
|
||||
height:319px;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
span#prevBtn a { display: block; width: 29px; height: 29px; position: absolute; top: 135px; left: -40px; background: transparent url('../Content/Images/nav-arrow-left.png') no-repeat; }
|
||||
span#nextBtn a { display: block; width: 29px; height: 29px; position: absolute; top: 135px; left: 485px; background: transparent url('../Content/Images/nav-arrow-right.png') no-repeat; }
|
||||
|
||||
/* // Easy Slider */
|
||||
|
||||
/*
|
||||
|
||||
.manage {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.manage a {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: Yellow;
|
||||
}
|
||||
|
||||
*/
|
||||
|
Before Width: | Height: | Size: 26 KiB |
@@ -1,6 +0,0 @@
|
||||
Name: Contoso Business
|
||||
Author: Michael Dorian Bach
|
||||
Description: A simple CMS theme perfect for any modern product or service business website.
|
||||
Version: 1.0
|
||||
Tags: business, cms, modern
|
||||
Website: http://www.orchardproject.net
|
||||
@@ -1,16 +0,0 @@
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Search.ViewModels.SearchViewModel>" %>
|
||||
<% Style.Require("Contoso_Search"); %>
|
||||
<h1 class="page-title"><%:Html.TitleForPage(T("Search").Text)%></h1><%
|
||||
Html.Zone("search");
|
||||
if (!string.IsNullOrWhiteSpace(Model.Query)) {
|
||||
if (Model.PageOfResults.Count() == 0) { %>
|
||||
<p class="search-summary"><%=T.Plural("the <em>one</em> result", "<em>zero</em> results", Model.PageOfResults.Count()) %></p><%
|
||||
}
|
||||
else { %>
|
||||
<p class="search-summary"><%=T.Plural("the <em>one</em> result", "<em>{1} - {2}</em> of <em>{0}</em> results", Model.PageOfResults.TotalItemCount, Model.PageOfResults.StartPosition, Model.PageOfResults.EndPosition)%></p><%
|
||||
}
|
||||
}
|
||||
if (Model.PageOfResults != null && Model.PageOfResults.Count() > 0) { %>
|
||||
<%=Html.UnorderedList(Model.PageOfResults, (r, i) => Html.DisplayForItem(r.Content) , "search-results contentItems") %>
|
||||
<%=Html.Pager(Model.PageOfResults, Model.PageOfResults.PageNumber, Model.DefaultPageSize, new {q = Model.Query}) %><%
|
||||
} %>
|
||||
@@ -1,6 +0,0 @@
|
||||
<h3>
|
||||
MVC Area One</h3>
|
||||
<p>
|
||||
Perfect place to talk about your company. Contoso is a fictious company that provides
|
||||
technology sevices to a varierty of sectors.
|
||||
</p>
|
||||
@@ -1,27 +0,0 @@
|
||||
<div class="hightlights group">
|
||||
<div class="one">
|
||||
<h3>
|
||||
MVC Area One</h3>
|
||||
<p>
|
||||
Perfect place to talk about your company. Contoso is a fictious company that provides
|
||||
technology sevices to a varierty of sectors.
|
||||
</p>
|
||||
</div>
|
||||
<div class="two">
|
||||
<h3>
|
||||
MVC Area Two</h3>
|
||||
<p>
|
||||
We are saying free shipping on all software today! Yup this is a good place to put
|
||||
this.
|
||||
</p>
|
||||
</div>
|
||||
<div class="three">
|
||||
<img src="Themes/Contoso/Content/Images/icon-location.png" />
|
||||
<p>
|
||||
1 Microsoft Way<br />
|
||||
Redmond, WA 98444<br />
|
||||
United States<br />
|
||||
Tel: 222-333-444<br />
|
||||
FAX: 222-333-444<br /> </p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,2 +0,0 @@
|
||||
<h2>Another Headline</h2>
|
||||
<p>This is another area for you to modify to your needs. You can feature another product or service, give an introduction to your company, highlight product or service testimonials and more. All it takes is modifying this MVC area in your admin. </p>
|
||||
@@ -1,7 +0,0 @@
|
||||
<div id="slider">
|
||||
<ul>
|
||||
<li>[img]~/Themes/Contoso/Content/Images/Gallery/feature01.jpg[/img]</li>
|
||||
<li>[img]~/Themes/Contoso/Content/Images/Gallery/feature02.jpg[/img]</li>
|
||||
<li>[img]~/Themes/Contoso/Content/Images/Gallery/feature03.jpg[/img]</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -1,2 +0,0 @@
|
||||
<h1>Change your super duper headline to something that works for you.</h1>
|
||||
<p>This is a great place to give an introduction to your product or services. Login to modify your homepage MVC area and update it to your brand spanking new marketing copy. You can also change the image on the left.</p>
|
||||
@@ -1,6 +0,0 @@
|
||||
<h3>
|
||||
MVC Area One</h3>
|
||||
<p>
|
||||
Perfect place to talk about your company. Contoso is a fictious company that provides
|
||||
technology sevices to a varierty of sectors.
|
||||
</p>
|
||||
@@ -1,6 +0,0 @@
|
||||
<h3>
|
||||
MVC Area Two</h3>
|
||||
<p>
|
||||
We are saying free shipping on all software today! Yup this is a good place to put
|
||||
this.
|
||||
</p>
|
||||
@@ -1,8 +0,0 @@
|
||||
<h3>Contact Us</h3>
|
||||
<p>
|
||||
1 Microsoft Way<br />
|
||||
Redmond, WA 98444<br />
|
||||
United States<br />
|
||||
<br />
|
||||
Tel: 111-222-333-444<br />
|
||||
Fax: 555-444-333-999</p>
|
||||
|
Before Width: | Height: | Size: 529 B |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 479 B |
|
Before Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 411 B |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 257 B |
|
Before Width: | Height: | Size: 293 B |
|
Before Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 270 B |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Easy Slider - jQuery plugin
|
||||
* written by Alen Grakalic
|
||||
* http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider
|
||||
*
|
||||
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
|
||||
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
||||
* and GPL (GPL-LICENSE.txt) licenses.
|
||||
*
|
||||
* Built for jQuery library
|
||||
* http://jquery.com
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* markup example for $("#images").easySlider();
|
||||
*
|
||||
* <div id="images">
|
||||
* <ul>
|
||||
* <li><img src="images/01.jpg" alt="" /></li>
|
||||
* <li><img src="images/02.jpg" alt="" /></li>
|
||||
* <li><img src="images/03.jpg" alt="" /></li>
|
||||
* <li><img src="images/04.jpg" alt="" /></li>
|
||||
* <li><img src="images/05.jpg" alt="" /></li>
|
||||
* </ul>
|
||||
* </div>
|
||||
*
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.fn.easySlider = function(options){
|
||||
|
||||
// default configuration properties
|
||||
var defaults = {
|
||||
prevId: 'prevBtn',
|
||||
prevText: 'Previous',
|
||||
nextId: 'nextBtn',
|
||||
nextText: 'Next',
|
||||
orientation: '', // 'vertical' is optional;
|
||||
speed: 800
|
||||
};
|
||||
|
||||
var options = $.extend(defaults, options);
|
||||
|
||||
return this.each(function() {
|
||||
obj = $(this);
|
||||
var s = $("li", obj).length;
|
||||
var w = obj.width();
|
||||
var h = obj.height();
|
||||
var ts = s-1;
|
||||
var t = 0;
|
||||
var vertical = (options.orientation == 'vertical');
|
||||
$("ul", obj).css('width',s*w);
|
||||
if(!vertical) $("li", obj).css('float','left');
|
||||
$(obj).after('<span id="'+ options.prevId +'"><a href=\"javascript:void(0);\">'+ options.prevText +'</a></span> <span id="'+ options.nextId +'"><a href=\"javascript:void(0);\">'+ options.nextText +'</a></span>');
|
||||
//$("a","#"+options.prevId).hide();
|
||||
//$("a","#"+options.nextId).hide();
|
||||
$("a","#"+options.nextId).click(function(){
|
||||
animate("next");
|
||||
//if (t>=ts) $(this).fadeOut();
|
||||
$("a","#"+options.prevId).fadeIn();
|
||||
});
|
||||
$("a","#"+options.prevId).click(function(){
|
||||
animate("prev");
|
||||
//if (t<=0) $(this).fadeOut();
|
||||
$("a","#"+options.nextId).fadeIn();
|
||||
});
|
||||
function animate(dir){
|
||||
if(dir == "next"){
|
||||
t = (t>=ts) ? ts : t+1;
|
||||
} else {
|
||||
t = (t<=0) ? 0 : t-1;
|
||||
};
|
||||
if(!vertical) {
|
||||
p = (t*w*-1);
|
||||
$("ul",obj).animate(
|
||||
{ marginLeft: p },
|
||||
options.speed
|
||||
);
|
||||
} else {
|
||||
p = (t*h*-1);
|
||||
$("ul",obj).animate(
|
||||
{ marginTop: p },
|
||||
options.speed
|
||||
);
|
||||
}
|
||||
};
|
||||
if(s>1) $("a","#"+options.nextId).fadeIn();
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
@@ -1,501 +0,0 @@
|
||||
/*========= SETUP =========*/
|
||||
|
||||
/*- Reset -*/
|
||||
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
font-weight: inherit;
|
||||
font-style: inherit;
|
||||
font-size: 100%;
|
||||
font-family: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
/* remember to define focus styles! */
|
||||
:focus {
|
||||
outline: 0;
|
||||
}
|
||||
body {
|
||||
line-height: 1;
|
||||
color: black;
|
||||
background: white;
|
||||
}
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
/* tables still need 'cellspacing="0"' in the markup */
|
||||
table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
caption, th, td {
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
}
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: "";
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: "" "";
|
||||
}
|
||||
|
||||
/*- Clear Fix -*/
|
||||
|
||||
.group:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
/*========= General Typography =========*/
|
||||
|
||||
/* Default font settings.
|
||||
The font-size percentage is of 16px. (0.75 * 16px = 12px) */
|
||||
body {
|
||||
font-size: 75%;
|
||||
color: #67747a;
|
||||
background: #fff;
|
||||
font-family: Tahoma, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
/* Headings
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; }
|
||||
|
||||
h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
|
||||
h2 { font-size: 1.3em; margin-bottom: 0.75em; color: #444d51; }
|
||||
h3 { font-size: 1.2em; line-height: 1; margin-bottom: 1em; color: #444d51; }
|
||||
h4 { font-size: 1.1em; line-height: 1.25; margin-bottom: 1.25em; color: #444d51; }
|
||||
h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; color: #444d51; }
|
||||
h6 { font-size: 1em; font-weight: bold; }
|
||||
|
||||
h1 img, h2 img, h3 img,
|
||||
h4 img, h5 img, h6 img {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Text elements
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
p { margin: 0 0 1.5em; line-height: 175%; }
|
||||
p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
|
||||
p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; }
|
||||
|
||||
a:focus,
|
||||
a:hover { color: #85b35c; }
|
||||
a { color: #5f97af; text-decoration: none; }
|
||||
|
||||
blockquote { margin: 1.5em; color: #666; font-style: italic; }
|
||||
strong { font-weight: bold; }
|
||||
em,dfn { font-style: italic; }
|
||||
dfn { font-weight: bold; }
|
||||
sup, sub { line-height: 0; }
|
||||
|
||||
abbr,
|
||||
acronym { border-bottom: 1px dotted #666; }
|
||||
address { margin: 0 0 1.5em; font-style: italic; }
|
||||
del { color:#666; }
|
||||
|
||||
pre { margin: 1.5em 0; white-space: pre; }
|
||||
pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
|
||||
|
||||
/* Lists
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
li ul,
|
||||
li ol { margin:0 1.5em; }
|
||||
ul, ol { margin: 0 1.5em 1.5em 1.5em; }
|
||||
|
||||
ul { list-style-type: disc; }
|
||||
ol { list-style-type: decimal; }
|
||||
|
||||
dl { margin: 0 0 1.5em 0; }
|
||||
dl dt { font-weight: bold; }
|
||||
dd { margin-left: 1.5em;}
|
||||
|
||||
/* Tables
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
table { margin-bottom: 1.4em; width:100%; }
|
||||
th { font-weight: bold; }
|
||||
thead th { background: #c3d9ff; }
|
||||
th,td,caption { padding: 4px 10px 4px 5px; }
|
||||
tr.even td { background: #e5ecf9; }
|
||||
tfoot { font-style: italic; }
|
||||
caption { background: #eee; }
|
||||
|
||||
/* Misc classes
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
|
||||
.large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
|
||||
.hide { display: none; }
|
||||
|
||||
.quiet { color: #666; }
|
||||
.loud { color: #000; }
|
||||
.highlight { background:#ff0; }
|
||||
.added { background:#060; color: #fff; }
|
||||
.removed { background:#900; color: #fff; }
|
||||
|
||||
.first { margin-left:0; padding-left:0; }
|
||||
.last { margin-right:0; padding-right:0; }
|
||||
.top { margin-top:0; padding-top:0; }
|
||||
.bottom { margin-bottom:0; padding-bottom:0; }
|
||||
|
||||
|
||||
/*========= FORMS =========*/
|
||||
|
||||
/* --------------------------------------------------------------
|
||||
|
||||
forms.css
|
||||
* Sets up some default styling for forms
|
||||
* Gives you classes to enhance your forms
|
||||
|
||||
Usage:
|
||||
* For text fields, use class .title or .text
|
||||
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
label { font-weight: normal; display:block; }
|
||||
label.forcheckbox { margin:0 0 0 4px; display:inline; }
|
||||
fieldset { padding:0em; margin: 0 0 0em 0; border: 0px solid #ccc; }
|
||||
legend { font-weight: bold; font-size:1.2em; }
|
||||
|
||||
|
||||
/* Form fields
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
|
||||
input[type=text],
|
||||
input.text, input.title,
|
||||
textarea, select {
|
||||
background-color:#fff;
|
||||
border:1px solid #bbb;
|
||||
}
|
||||
input[type=text]:focus,
|
||||
input.text:focus, input.title:focus,
|
||||
textarea:focus, select:focus {
|
||||
border-color:#a5cc7a;
|
||||
background-color: #fbfff7;
|
||||
}
|
||||
|
||||
input[type=text],
|
||||
input.text, input.title,
|
||||
textarea, select {
|
||||
margin:0.5em 0;
|
||||
}
|
||||
|
||||
input.text,
|
||||
input.title { width: 300px; padding:5px; }
|
||||
input.title { font-size:1.5em; }
|
||||
textarea { padding:5px; }
|
||||
|
||||
input[type=checkbox], input[type=radio],
|
||||
input.checkbox, input.radio {
|
||||
position:relative; top:.25em;
|
||||
}
|
||||
|
||||
/* TODO: Causes form rendering issues with theme preview, had to add line-height: normal */
|
||||
form.inline { line-height: normal; }
|
||||
form.inline p { margin-bottom:0; }
|
||||
|
||||
|
||||
/*- Login Control -*/
|
||||
|
||||
.login-form { border: solid 1px #e2e2e2; padding: 20px; font-size: 1.2em; font-weight: normal; }
|
||||
.login-form div { padding: 5px 0px 5px 0px; }
|
||||
.login-form input[type=submit] { margin: 5px 0px 5px 0px; }
|
||||
.validation-summary-errors { padding: 20px 20px 0px 20px; border: solid 1px #fff54f; background-color: #fffcca; margin-bottom: 20px; }
|
||||
|
||||
.edit-form { display: none; }
|
||||
.static_text_div { border: dashed 1px #CCCCCC; display:block; color: inherit; }
|
||||
.static_text_div:hover { border: dashed 1px red; color: inherit; }
|
||||
|
||||
|
||||
|
||||
/* Success, notice and error boxes
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.error,
|
||||
.notice,
|
||||
.success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; }
|
||||
|
||||
.error { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; }
|
||||
.notice { background: #FFF6BF; color: #514721; border-color: #FFD324; }
|
||||
.success { background: #E6EFC2; color: #264409; border-color: #C6D880; }
|
||||
.error a { color: #8a1f11; }
|
||||
.notice a { color: #514721; }
|
||||
.success a { color: #264409; }
|
||||
|
||||
|
||||
/* Search
|
||||
----------------------------------------------------------*/
|
||||
|
||||
.search
|
||||
{
|
||||
margin: 12px 0 12px 0;
|
||||
position: absolute;
|
||||
top: 24px;
|
||||
right: 18px;
|
||||
}
|
||||
|
||||
.search fieldset
|
||||
{
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.search input
|
||||
{
|
||||
width: 12em;
|
||||
float: left;
|
||||
padding: 3px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.search button
|
||||
{
|
||||
float: left;
|
||||
margin: 0 0 0 4px;
|
||||
}
|
||||
|
||||
|
||||
/*========= GENERAL =========*/
|
||||
|
||||
/* html, body {background-color: #434343; } */
|
||||
html, body {background-color: #FFFFFF; background-image: url(../Content/Images/bkg.jpg); background-repeat: repeat-x; height: 100%; }
|
||||
#shell { color: #4b4b4b; width: 100%; }
|
||||
#container { width: 953px; margin: 0px auto 0px auto; }
|
||||
|
||||
/*========= HEADER =========*/
|
||||
#header {width: 100%; background-color: #434343; height:20px;}
|
||||
.header {width: 953px; margin: 0px auto 0px auto; }
|
||||
|
||||
/*- Brand -*/
|
||||
|
||||
.brand { width: 400px; }
|
||||
.brand .title { padding: 45px 0px 15px 20px; font-size: 2.0em; font-family: Segoe UI, Segoe, Arial, Sans-Serif; color:#FFFFFF; float: left; }
|
||||
|
||||
/*- Page Navigation -*/
|
||||
|
||||
#nav { position: relative; width: 953px; height: 122px; background: url(../Content/Images/menu_bkg.jpg) repeat-x; }
|
||||
#nav .menu { position: absolute; bottom: 0px; right: 20px; list-style:none; padding: 0px; margin: 0px; }
|
||||
#nav .menu li { float: left; height: 33px; margin: 0px 0px 0px 2px; }
|
||||
#nav .menu li a
|
||||
{
|
||||
display: block; height: 22px; color: #FFFFFF; font-size: 108%; padding: 11px 20px 0px 20px; text-decoration: none; background-color: #006698;
|
||||
-moz-border-radius-topleft: 5px;
|
||||
-webkit-border-top-left-radius: 5px;
|
||||
-moz-border-radius-topright: 5px;
|
||||
-webkit-border-top-right-radius: 5px;
|
||||
border-radius-topleft: 5px;
|
||||
border-radius-topright: 5px;
|
||||
}
|
||||
#nav .menu li a:hover {background: #d4d1c0 url(../Content/Images/menu-right-over.png) no-repeat right top; color: #000000;}
|
||||
|
||||
/*- Admin Navigation - */
|
||||
.admin-bar { width: 953px; background-color: #434343; height:30px; margin: 0px auto 0px auto; }
|
||||
.admin { float: right; margin: 0px; padding: 7px 20px 0px 0px; }
|
||||
.admin li { float:left; list-style: none; padding: 0px 0px 0px 20px; }
|
||||
.admin li a { color: #FFFFFF; }
|
||||
.admin li a:hover { color: #666666; }
|
||||
|
||||
/*========= Footer =========*/
|
||||
|
||||
#footer { width: 100%; height: auto; background-color: #434343; background-image: url(../Content/Images/footer-bkg.jpg); background-repeat: repeat-x; color:#6a6a6a; font-size: 95%; padding-top: 10px; line-height: 150%; }
|
||||
#footer #footer-content { width: 953px; margin: 0px auto 0px auto; height: 100px;}
|
||||
#footer #disclaimer { float: right; width: 700px;}
|
||||
#footer #footernav { float: left; width: 200px;}
|
||||
|
||||
/*========= Home =========*/
|
||||
|
||||
#hm-image { float: left; width: 251px; margin: 5px 0px 0px 45px; }
|
||||
#hm-content {position: relative; float: left; width: 546px; height: 310px; padding: 0px 20px 0px 30px; margin: 40px 0px 0px 10px; background: url(../Content/Images/hm-divider.png) no-repeat -25px 150px; }
|
||||
#hm-content #hm-header { }
|
||||
#hm-content #hm-message { line-height: 150%; margin: 15px 0px 0px 0px; line-height: 150%; }
|
||||
#hm-content ul { margin: 50px 0px 0px 0px; position: absolute; bottom: 15px; left: 30px; list-style: none; padding: none; }
|
||||
#hm-content ul li { float: left; margin: 0px 12px 0px 0px; text-align: center; width: 100px;}
|
||||
#hm-content ul li a { text-align: center; }
|
||||
#hm-content ul li img {clear: both; margin: 0px 0px 5px 0px;}
|
||||
|
||||
.main-box { }
|
||||
.main-box .top { }
|
||||
.main-box .content { background: url(../Content/Images/content-bkg.png) repeat-y; margin-top: -1px; }
|
||||
.main-box .bottom { }
|
||||
|
||||
/*========= Page =========*/
|
||||
|
||||
#content {margin: 20px 0px 20px 0px;}
|
||||
.content-container { padding: 0px 0px 0px 0px; }
|
||||
.content { position: relative; padding: 0px 0px 0px 0px; }
|
||||
.content-items { width: 882px; padding: 20px 40px 0px 40px; }
|
||||
.content-items .item { width: 305px; float: left; }
|
||||
.content-items .note { width: 455px; min-height:289px; padding: 40px; float: left; background: transparent url('../Content/Images/notepad.png') no-repeat left top; }
|
||||
.content-items .item:first-child {margin: 0px 40px 0px 0px; }
|
||||
.content-items h1 { font-size: 1.3em; margin-bottom: 0.75em; color: #444d51; }
|
||||
|
||||
/*- Content Pages -*/
|
||||
.page-title {font-size: 1.4em; color: #333333; margin: 0 0 20px 0;}
|
||||
.sub .page-title { display: block; background: transparent url('../Content/Images/sub-header.png') no-repeat left top; width: 962px; height: 48px; position: absolute; top: 1px; left: 1px; color: #ffffff; font-size: 2em; text-shadow: 0px -1px 0px #5f8b9e; padding: 15px 0px 15px 40px; }
|
||||
.main { float: left; width: 574px; margin: 0px 60px 20px 0px; padding: 50px 0px 0px 0px; }
|
||||
.sidebar { float: left; width: 162px; padding: 0px 0px 0px 40px; }
|
||||
.side-block { float: left; width: 162px; border-bottom: solid 1px #e2e2e2; padding: 20px 0px 0px 0px; }
|
||||
.side-block:first-child { float: left; width: 162px; border-bottom: solid 1px #e2e2e2; padding: 0px 0px 0px 0px; }
|
||||
.archives { float: left; width: 162px; border-bottom: solid 1px #e2e2e2; padding: 0px 0px 0px 0px; }
|
||||
.archives .archiveMonthList { padding: 20px 0px 20px 0px; list-style: none; }
|
||||
|
||||
.subpage
|
||||
{
|
||||
width: 953px;
|
||||
font-size: normal;
|
||||
}
|
||||
|
||||
.sub-content
|
||||
{
|
||||
float: right;
|
||||
width: 674px;
|
||||
padding: 0px 40px 0px 0px;
|
||||
}
|
||||
|
||||
|
||||
/*- Highlight Area -*/
|
||||
.hightlights { width: 882px; padding: 40px 40px 0px 40px; }
|
||||
.hightlights .one { float: left; width: 266px; margin-right: 40px; }
|
||||
.hightlights .two { float: left; width: 266px; margin-right: 40px; }
|
||||
.hightlights .three { float: left; width: 266px; }
|
||||
.hightlights h3 { margin: 0px 0px 0.75em 0px; }
|
||||
.hightlights img { float: left; padding: 0px 0px 0px 0px; }
|
||||
|
||||
|
||||
/*========= BLOGS =========*/
|
||||
|
||||
.blogPosts, .taggedPosts { margin: 0px; padding: 0px; }
|
||||
.blogPosts li, .taggedPosts li { padding: 30px 0px 0px 0px; list-style: none; border-top: solid 1px #e2e2e2; }
|
||||
.blogdescription { font-size: 1.3em; line-height: 150%; color: #666666; }
|
||||
.blogPosts .content { background: none; }
|
||||
.taggedPosts .content { background: none; }
|
||||
|
||||
#comments { padding-top: 20px; border-top: dashed 1px #d8d8d8; padding-bottom: 10px; margin-top: 30px; }
|
||||
.comments { position: relative; padding: 0px 0px 20px 0px; margin: 0px; clear: both; }
|
||||
.comments li { display: block; position: relative; list-style: none; border: solid 1px #e3e9ef; padding: 20px 20px 0px 20px; margin: 0px 0px 50px 0px; }
|
||||
.comments .commentauthor {position: absolute; bottom: -27px; left: 20px; color: #999999; background: transparent url('../Content/Images/comment-arrow.png') no-repeat 20px 0px; padding: 15px 0px 0px 0px; }
|
||||
|
||||
.comment-form { margin: 20px 0 0 0; }
|
||||
.comment-form h2 { border-bottom: dashed 1px #d8d8d8; padding-bottom: 10px; }
|
||||
.comment-form .who {}
|
||||
.comment-form .who label { float: left; text-align: right; width: 50px; padding: 12px 10px 0px 0px; }
|
||||
.comment-form .what { padding: 10px 0px 0px 60px;}
|
||||
.comment-form .what label[for=CommentText] { float: none; display:block; }
|
||||
.comment-form .what input[type=submit] { margin: 10px 0px; }
|
||||
.comment-form .what #CommentText { width: 97%; }
|
||||
|
||||
.posted { margin: 0px 0px 10px 0px; color: #999999; }
|
||||
|
||||
.tags span { display: block; float: left; padding: 3px 10px 5px 0px; }
|
||||
.tags a { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #d7e6ed; color: #95a5ac; text-shadow: 1px 1px 0px #FFF; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
.tags a:hover { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #a5cc7a; color: #668b3e; text-shadow: 1px 1px 0px #c8e6a6; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
|
||||
/*- Archive List -*/
|
||||
|
||||
.archive-trail { padding: 0px 0px 20px 0px; }
|
||||
|
||||
/*- Tag Cloud */
|
||||
|
||||
.tagCloud { list-style: none; margin: 20px 0px 0px 0px; }
|
||||
.tagCloud li { display: block; float: left; padding: 3px 10px 5px 0px; }
|
||||
.tagCloud a { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #ebebeb; color: #95a5ac; text-shadow: 1px 1px 0px #FFF; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
.tagCloud a:hover { display: block; float: left; padding: 3px 5px 5px 5px; background-color: #b7b7b7; color: #668b3e; text-shadow: 1px 1px 0px #c8e6a6; -moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px; margin: 0px 10px 0px 0px; }
|
||||
|
||||
/* Localization
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.content-localization .content-localizations h4 {
|
||||
margin:0;
|
||||
padding:3px 0 0 0;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
.content-localization .content-localizations ul {
|
||||
overflow: auto;
|
||||
list-style-type:none;
|
||||
}
|
||||
|
||||
|
||||
.content-localization .content-localizations li {
|
||||
border-bottom: 1px;
|
||||
float: left;
|
||||
margin-left:.5em;
|
||||
padding: 3px 6px;
|
||||
border: 1px solid #CCC;
|
||||
}
|
||||
|
||||
.content-localization .content-localizations li:hover {
|
||||
background-color: #ebebeb;
|
||||
}
|
||||
|
||||
|
||||
.content-localization .content-localizations li a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.content-localization .content-localizations li a:hover, .content-localization .content-localizations li a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*========= PLUGINS =========*/
|
||||
|
||||
/*- Easy Slider -*/
|
||||
|
||||
#slider ul, #slider li {
|
||||
margin:0;
|
||||
padding:0;
|
||||
list-style:none;
|
||||
}
|
||||
#slider, #slider li {
|
||||
/*
|
||||
define width and height of container element and list item (slide)
|
||||
list items must be the same size as the slider area
|
||||
*/
|
||||
width:471px;
|
||||
height:319px;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
span#prevBtn a { display: block; width: 29px; height: 29px; position: absolute; top: 135px; left: -40px; background: transparent url('../Content/Images/nav-arrow-left.png') no-repeat; }
|
||||
span#nextBtn a { display: block; width: 29px; height: 29px; position: absolute; top: 135px; left: 485px; background: transparent url('../Content/Images/nav-arrow-right.png') no-repeat; }
|
||||
|
||||
/* // Easy Slider */
|
||||
|
||||
/*
|
||||
|
||||
.manage {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.manage a {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: Yellow;
|
||||
}
|
||||
|
||||
*/
|
||||