Admin menu icons configured for page, list(s), comments, blog content plus an updated dashboard icon (8 bit)
--HG-- branch : dev
@@ -21,8 +21,9 @@ namespace Orchard.Core.Contents {
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
var contentTypeDefinitions = _contentDefinitionManager.ListTypeDefinitions().OrderBy(d => d.Name);
|
||||
|
||||
builder.Add(T("Content"), "2",
|
||||
menu => menu.Add(T("Content Items"), "1", item => item.Action("List", "Admin", new {area = "Contents", id = ""})));
|
||||
builder.AddImageSet("content")
|
||||
.Add(T("Content"), "2",
|
||||
menu => menu.Add(T("Content Items"), "1", item => item.Action("List", "Admin", new {area = "Contents", id = ""})));
|
||||
|
||||
var contentTypes = contentTypeDefinitions.Where(ctd => ctd.Settings.GetModel<ContentTypeSettings>().Creatable).OrderBy(ctd => ctd.DisplayName);
|
||||
if (contentTypes.Count() > 0) {
|
||||
|
21
src/Orchard.Web/Core/Contents/Styles/Web.config
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<!-- iis6 - for any request in this location, return via managed static file handler -->
|
||||
<add path="*" verb="*" type="System.Web.StaticFileHandler" />
|
||||
</httpHandlers>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers accessPolicy="Script,Read">
|
||||
<!--
|
||||
iis7 - for any request to a file exists on disk, return it via native http module.
|
||||
accessPolicy 'Script' is to allow for a managed 404 page.
|
||||
-->
|
||||
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
BIN
src/Orchard.Web/Core/Contents/Styles/images/menu.content.png
Normal file
After Width: | Height: | Size: 236 B |
6
src/Orchard.Web/Core/Contents/Styles/menu.content.css
Normal file
@@ -0,0 +1,6 @@
|
||||
.navicon-content {
|
||||
background-image:url(images/menu.content.png) !important;
|
||||
}
|
||||
.navicon-content:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 229 B |
@@ -236,6 +236,7 @@
|
||||
<Content Include="Common\Views\Parts.Common.Metadata.cshtml" />
|
||||
<Content Include="Common\Views\Parts.Common.Metadata.SummaryAdmin.cshtml" />
|
||||
<Content Include="Containers\Module.txt" />
|
||||
<Content Include="Contents\Styles\menu.content.css" />
|
||||
<Content Include="Contents\Views\Admin\Create.cshtml" />
|
||||
<Content Include="Contents\Views\Admin\Edit.cshtml" />
|
||||
<Content Include="Contents\Views\Admin\List.cshtml" />
|
||||
@@ -317,6 +318,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
<Folder Include="Contents\Styles\images\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Contents\Views\Web.config" />
|
||||
@@ -383,6 +385,11 @@
|
||||
<ItemGroup>
|
||||
<Content Include="Dashboard\styles\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Contents\Styles\Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
@@ -16,7 +16,8 @@ namespace Orchard.Blogs {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Blogs"), "2.5", BuildMenu);
|
||||
builder.AddImageSet("blog")
|
||||
.Add(T("Blog"), "1.5", BuildMenu);
|
||||
}
|
||||
|
||||
private void BuildMenu(NavigationItemBuilder menu) {
|
||||
|
@@ -107,6 +107,8 @@
|
||||
<Content Include="Content\Admin\images\scheduled.gif" />
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Scripts\orchard-blogs-archives.js" />
|
||||
<Content Include="Styles\images\menu.blog.png" />
|
||||
<Content Include="Styles\menu.blog.css" />
|
||||
<Content Include="Styles\orchard-blogs-admin.css" />
|
||||
<Content Include="Styles\orchard-blogs-archives.css" />
|
||||
<Content Include="Views\BlogAdmin\Create.cshtml" />
|
||||
|
After Width: | Height: | Size: 235 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-blog {
|
||||
background-image:url(images/menu.blog.png) !important;
|
||||
}
|
||||
.navicon-blog:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -8,9 +8,10 @@ namespace Orchard.Comments {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Comments"), "2.75",
|
||||
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Comments" })
|
||||
.Permission(Permissions.ManageComments)));
|
||||
builder.AddImageSet("comments")
|
||||
.Add(T("Comments"), "3.5",
|
||||
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Comments" })
|
||||
.Permission(Permissions.ManageComments)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 240 B |
@@ -0,0 +1,6 @@
|
||||
.navicon-comments {
|
||||
background-image:url(images/menu.comments.png) !important;
|
||||
}
|
||||
.navicon-comments:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
@@ -16,7 +16,8 @@ namespace Orchard.Lists {
|
||||
public string MenuName { get { return "admin"; } }
|
||||
|
||||
public void GetNavigation(NavigationBuilder builder) {
|
||||
builder.Add(T("Lists"), "3", BuildMenu);
|
||||
builder.AddImageSet("list")
|
||||
.Add(T("Lists"), "3", BuildMenu);
|
||||
}
|
||||
|
||||
private void BuildMenu(NavigationItemBuilder menu) {
|
||||
|
@@ -64,6 +64,8 @@
|
||||
<Compile Include="Migrations.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\images\menu.list.png" />
|
||||
<Content Include="Styles\menu.list.css" />
|
||||
<Content Include="Views\Items\Content-List.SummaryAdmin.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -72,6 +74,11 @@
|
||||
<ItemGroup>
|
||||
<Content Include="Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
21
src/Orchard.Web/Modules/Orchard.Lists/Styles/Web.config
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<!-- iis6 - for any request in this location, return via managed static file handler -->
|
||||
<add path="*" verb="*" type="System.Web.StaticFileHandler" />
|
||||
</httpHandlers>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers accessPolicy="Script,Read">
|
||||
<!--
|
||||
iis7 - for any request to a file exists on disk, return it via native http module.
|
||||
accessPolicy 'Script' is to allow for a managed 404 page.
|
||||
-->
|
||||
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
After Width: | Height: | Size: 242 B |
16
src/Orchard.Web/Modules/Orchard.Lists/Styles/menu.list.css
Normal file
@@ -0,0 +1,16 @@
|
||||
.navicon-list,
|
||||
.navicon-lists {
|
||||
background-image:url(images/menu.list.png) !important;
|
||||
}
|
||||
.navicon-list:hover,
|
||||
.navicon-lists:hover {
|
||||
background-position:0 -30px !important;
|
||||
}
|
||||
/* subnav */
|
||||
ul ul .navicon-list {
|
||||
background-position:0 6px !important;
|
||||
padding-left:16px !important;
|
||||
}
|
||||
ul ul .navicon-list:hover {
|
||||
background-position:0 -26px !important;
|
||||
}
|
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 240 B |