Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: indynda/indynda
base: a4987ece14
...
head fork: indynda/indynda
compare: master
  • 3 commits
  • 1,780 files changed
  • 0 commit comments
  • 1 contributor
Commits on May 31, 2012
Joel Dart joeldart checked in .gitignore c3479cf
Joel Dart joeldart initial site checkin - note that this excludes App_Data so none of ou…
…r site-specific information is a part of the repository. a clean repo will create a new App_Data folder which is a new website
81bda37
Joel Dart joeldart delete app data 64cabd7
Showing with 13,394 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +209 −0 site/CREDITS.txt
  3. +25 −0 site/Config/Sample.Host.config
  4. +10 −0 site/Config/Sample.HostComponents.config
  5. +31 −0 site/Config/log4net.config
  6. +10 −0 site/Core/Common/Module.txt
  7. +37 −0 site/Core/Common/Placement.info
  8. +25 −0 site/Core/Common/Styles/Web.config
  9. +20 −0 site/Core/Common/Styles/orchard-common-datetime.css
  10. +1 −0  site/Core/Common/Views/Body-Large.Editor.cshtml
  11. +1 −0  site/Core/Common/Views/Body-Small.Editor.cshtml
  12. +1 −0  site/Core/Common/Views/Body-Textarea.Editor.cshtml
  13. +1 −0  site/Core/Common/Views/Body-Wide.Editor.cshtml
  14. +5 −0 site/Core/Common/Views/Body.Editor.cshtml
  15. +14 −0 site/Core/Common/Views/CommonMetadataOwner.cshtml
  16. +6 −0 site/Core/Common/Views/DefinitionTemplates/BodyPartSettings.cshtml
  17. +6 −0 site/Core/Common/Views/DefinitionTemplates/BodyTypePartSettings.cshtml
  18. +8 −0 site/Core/Common/Views/DefinitionTemplates/DateEditorSettings.cshtml
  19. +9 −0 site/Core/Common/Views/DefinitionTemplates/OwnerEditorSettings.cshtml
  20. +28 −0 site/Core/Common/Views/DefinitionTemplates/TextFieldSettingsEventsViewModel.cshtml
  21. +13 −0 site/Core/Common/Views/EditorTemplates/Fields.Common.Text.Edit.cshtml
  22. +7 −0 site/Core/Common/Views/EditorTemplates/Parts.Common.Body.cshtml
  23. +5 −0 site/Core/Common/Views/EditorTemplates/Parts.Common.Container.cshtml
  24. +7 −0 site/Core/Common/Views/Fields.Common.Text.cshtml
  25. +9 −0 site/Core/Common/Views/Parts.Common.Body.Summary.cshtml
  26. +1 −0  site/Core/Common/Views/Parts.Common.Body.SummaryAdmin.cshtml
  27. +1 −0  site/Core/Common/Views/Parts.Common.Body.cshtml
  28. +42 −0 site/Core/Common/Views/Parts.Common.Date.Edit.cshtml
  29. +1 −0  site/Core/Common/Views/Parts.Common.Metadata.Summary.cshtml
  30. +12 −0 site/Core/Common/Views/Parts.Common.Metadata.SummaryAdmin.cshtml
  31. +1 −0  site/Core/Common/Views/Parts.Common.Metadata.cshtml
  32. +9 −0 site/Core/Common/Views/Parts.Common.Owner.Edit.cshtml
  33. +41 −0 site/Core/Common/Views/Web.config
  34. +10 −0 site/Core/Containers/Module.txt
  35. +16 −0 site/Core/Containers/Placement.info
  36. +9 −0 site/Core/Containers/Views/DefinitionTemplates/ContainerPartSettings.cshtml
  37. +9 −0 site/Core/Containers/Views/DefinitionTemplates/ContainerTypePartSettings.cshtml
  38. +11 −0 site/Core/Containers/Views/EditorTemplates/Containable.cshtml
  39. +39 −0 site/Core/Containers/Views/EditorTemplates/Container.cshtml
  40. +56 −0 site/Core/Containers/Views/EditorTemplates/ContainerWidget.cshtml
  41. +13 −0 site/Core/Containers/Views/EditorTemplates/CustomProperties.cshtml
  42. +3 −0  site/Core/Containers/Views/Parts.Container.Contained.cshtml
  43. +6 −0 site/Core/Containers/Views/Parts.ContainerWidget.cshtml
  44. +17 −0 site/Core/Contents/Module.txt
  45. +17 −0 site/Core/Contents/Placement.info
  46. +25 −0 site/Core/Contents/Styles/Web.config
  47. BIN  site/Core/Contents/Styles/images/menu.content.png
  48. +16 −0 site/Core/Contents/Styles/menu.content-admin.css
  49. +5 −0 site/Core/Contents/Views/Admin/CreatableTypeList.cshtml
  50. +12 −0 site/Core/Contents/Views/Admin/Create.cshtml
  51. +15 −0 site/Core/Contents/Views/Admin/Edit.cshtml
  52. +48 −0 site/Core/Contents/Views/Admin/List.cshtml
  53. +11 −0 site/Core/Contents/Views/Content.ControlWrapper.cshtml
  54. +21 −0 site/Core/Contents/Views/Content.Edit.cshtml
  55. +3 −0  site/Core/Contents/Views/Content.PublishButton.cshtml
  56. +3 −0  site/Core/Contents/Views/Content.SaveButton.cshtml
  57. +20 −0 site/Core/Contents/Views/Content.Summary.cshtml
  58. +31 −0 site/Core/Contents/Views/Content.SummaryAdmin.cshtml
  59. +24 −0 site/Core/Contents/Views/Content.cshtml
  60. +36 −0 site/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml
  61. +1 −0  site/Core/Contents/Views/Parts.Contents.Publish.cshtml
  62. +41 −0 site/Core/Contents/Views/Web.config
  63. +9 −0 site/Core/Dashboard/Module.txt
  64. +40 −0 site/Core/Dashboard/Views/Admin/Index.cshtml
  65. +41 −0 site/Core/Dashboard/Views/Web.config
  66. +25 −0 site/Core/Dashboard/styles/Web.config
  67. BIN  site/Core/Dashboard/styles/images/menu.dashboard.png
  68. +6 −0 site/Core/Dashboard/styles/menu.dashboard-admin.css
  69. +9 −0 site/Core/Feeds/Module.txt
  70. +1 −0  site/Core/Feeds/Views/Feed.cshtml
  71. +9 −0 site/Core/Navigation/Module.txt
  72. +4 −0 site/Core/Navigation/Placement.info
  73. +25 −0 site/Core/Navigation/Styles/Web.config
  74. BIN  site/Core/Navigation/Styles/images/menu.navigation.png
  75. +6 −0 site/Core/Navigation/Styles/menu.navigation-admin.css
  76. +69 −0 site/Core/Navigation/Views/Admin/Index.cshtml
  77. +6 −0 site/Core/Navigation/Views/DefinitionTemplates/AdminMenuPartTypeSettings.cshtml
  78. +16 −0 site/Core/Navigation/Views/EditorTemplates/Parts.Navigation.AdminMenu.Edit.cshtml
  79. +13 −0 site/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml
  80. +41 −0 site/Core/Navigation/Views/Web.config
  81. +9 −0 site/Core/Reports/Module.txt
  82. +25 −0 site/Core/Reports/Styles/Web.config
  83. BIN  site/Core/Reports/Styles/images/menu.reports.png
  84. +6 −0 site/Core/Reports/Styles/menu.reports-admin.css
  85. +39 −0 site/Core/Reports/Views/Admin/Display.cshtml
  86. +39 −0 site/Core/Reports/Views/Admin/Index.cshtml
  87. +41 −0 site/Core/Reports/Views/Web.config
  88. +9 −0 site/Core/Scheduling/Module.txt
  89. +9 −0 site/Core/Settings/Module.txt
  90. +3 −0  site/Core/Settings/Placement.info
  91. +25 −0 site/Core/Settings/Styles/Web.config
  92. +19 −0 site/Core/Settings/Styles/admin.css
  93. BIN  site/Core/Settings/Styles/images/menu.settings.png
  94. +6 −0 site/Core/Settings/Styles/menu.settings-admin.css
  95. +21 −0 site/Core/Settings/Views/Admin/Culture.cshtml
  96. +12 −0 site/Core/Settings/Views/Admin/Index.cshtml
  97. +1 −0  site/Core/Settings/Views/DisplayTemplates/CurrentCulture.cshtml
  98. +7 −0 site/Core/Settings/Views/DisplayTemplates/RemovableCulture.cshtml
  99. +56 −0 site/Core/Settings/Views/EditorTemplates/Parts.Settings.SiteSettingsPart.cshtml
  100. +41 −0 site/Core/Settings/Views/Web.config
  101. +9 −0 site/Core/Shapes/Module.txt
  102. +25 −0 site/Core/Shapes/Scripts/Web.config
  103. +328 −0 site/Core/Shapes/Scripts/base.js
  104. +3 −0  site/Core/Shapes/Scripts/html5.js
  105. +32 −0 site/Core/Shapes/Scripts/jquery.switchable.js
  106. BIN  site/Core/Shapes/Styles/Images/detail-view-on.gif
  107. BIN  site/Core/Shapes/Styles/Images/detail-view.gif
  108. BIN  site/Core/Shapes/Styles/Images/summary-view-on.gif
  109. BIN  site/Core/Shapes/Styles/Images/summary-view.gif
  110. BIN  site/Core/Shapes/Styles/Images/toolBarActiveButtonBackground.gif
  111. BIN  site/Core/Shapes/Styles/Images/toolBarBackground.gif
  112. BIN  site/Core/Shapes/Styles/Images/toolBarHoverButtonBackground.gif
  113. +25 −0 site/Core/Shapes/Styles/Web.config
  114. +43 −0 site/Core/Shapes/Styles/jquery.switchable.css
  115. +39 −0 site/Core/Shapes/Styles/special.css
  116. +23 −0 site/Core/Shapes/Views/Document.cshtml
  117. +10 −0 site/Core/Shapes/Views/ErrorPage.cshtml
  118. +1 −0  site/Core/Shapes/Views/HeadPreload.cshtml
  119. +3 −0  site/Core/Shapes/Views/Header.cshtml
  120. +33 −0 site/Core/Shapes/Views/Layout.cshtml
  121. +10 −0 site/Core/Shapes/Views/LocalMenu.cshtml
  122. +22 −0 site/Core/Shapes/Views/LocalMenuItem.cshtml
  123. +10 −0 site/Core/Shapes/Views/Menu.cshtml
  124. +24 −0 site/Core/Shapes/Views/MenuItem.cshtml
  125. +1 −0  site/Core/Shapes/Views/Message.cshtml
  126. +8 −0 site/Core/Shapes/Views/NotFound.cshtml
  127. +1 −0  site/Core/Shapes/Views/ShapeResult/Display.cshtml
  128. +1 −0  site/Core/Shapes/Views/ShapeResult/DisplayPartial.cshtml
  129. +17 −0 site/Core/Shapes/Views/User.cshtml
  130. +41 −0 site/Core/Shapes/Views/Web.config
  131. +9 −0 site/Core/Title/Module.txt
  132. +15 −0 site/Core/Title/Placement.info
  133. +7 −0 site/Core/Title/Views/EditorTemplates/Parts.Title.TitlePart.cshtml
  134. +5 −0 site/Core/Title/Views/Parts.Title.cshtml
  135. +6 −0 site/Core/Title/Views/Parts.Title_Summary.cshtml
  136. +6 −0 site/Core/Title/Views/Parts.Title_SummaryAdmin.cshtml
  137. +41 −0 site/Core/Title/Views/Web.config
  138. +9 −0 site/Core/XmlRpc/Module.txt
  139. +41 −0 site/Core/web.config
  140. +1 −0  site/Global.asax
  141. +9 −0 site/LICENSE.txt
  142. +8 −0 site/Media/Default/RecipeJournal/228faa08c8c64d32a55efb7067c6e683
  143. +4 −0 site/Media/Default/RecipeJournal/fc7f602073b142019b65b2fb0ac1c43d
  144. +15 −0 site/Media/Default/RecipeJournal/web.config
  145. BIN  site/Media/OrchardLogo.png
  146. +25 −0 site/Media/web.config
  147. BIN  site/Modules/Markdown/Content/Admin/Images/grippie.png
  148. BIN  site/Modules/Markdown/Content/Admin/Images/wmd-buttons.png
  149. +25 −0 site/Modules/Markdown/Content/Web.config
  150. +139 −0 site/Modules/Markdown/Markdown.csproj
  151. +10 −0 site/Modules/Markdown/Module.txt
  152. +32 −0 site/Modules/Markdown/Properties/AssemblyInfo.cs
  153. +16 −0 site/Modules/Markdown/ResourceManifest.cs
  154. +1,325 −0 site/Modules/Markdown/Scripts/Markdown.Converter.js
  155. +2,109 −0 site/Modules/Markdown/Scripts/Markdown.Editor.js
  156. +108 −0 site/Modules/Markdown/Scripts/Markdown.Sanitizer.js
  157. +25 −0 site/Modules/Markdown/Scripts/Web.config
  158. +1 −0  site/Modules/Markdown/Scripts/jquery.textarearesizer.min.js
  159. +53 −0 site/Modules/Markdown/Scripts/orchard-markdown.js
  160. +18 −0 site/Modules/Markdown/Services/MarkdownFilter.cs
  161. +25 −0 site/Modules/Markdown/Styles/Web.config
  162. +88 −0 site/Modules/Markdown/Styles/admin-markdown.css
  163. +21 −0 site/Modules/Markdown/Views/Body-Markdown.Editor.cshtml
  164. +41 −0 site/Modules/Markdown/Views/Web.config
  165. BIN  site/Modules/Markdown/bin/Markdown.dll
  166. BIN  site/Modules/Markdown/bin/Markdown.pdb
  167. BIN  site/Modules/Markdown/bin/MarkdownSharp.dll
  168. BIN  site/Modules/Markdown/bin/MarkdownSharp.pdb
  169. +41 −0 site/Modules/Markdown/web.config
  170. +21 −0 site/Modules/Orchard.Alias/AdminMenu.cs
  171. +213 −0 site/Modules/Orchard.Alias/Controllers/AdminController.cs
  172. +30 −0 site/Modules/Orchard.Alias/IAliasService.cs
  173. +88 −0 site/Modules/Orchard.Alias/Implementation/AliasRoute.cs
  174. +121 −0 site/Modules/Orchard.Alias/Implementation/DefaultAliasService.cs
  175. +47 −0 site/Modules/Orchard.Alias/Implementation/Holder/AliasHolder.cs
  176. +9 −0 site/Modules/Orchard.Alias/Implementation/Holder/AliasInfo.cs
  177. +35 −0 site/Modules/Orchard.Alias/Implementation/Holder/IAliasHolder.cs
  178. +202 −0 site/Modules/Orchard.Alias/Implementation/Map/AliasMap.cs
  179. +139 −0 site/Modules/Orchard.Alias/Implementation/Storage/AliasStorage.cs
  180. +51 −0 site/Modules/Orchard.Alias/Implementation/Updater/AliasUpdater.cs
  181. +172 −0 site/Modules/Orchard.Alias/Implementation/Utils.cs
  182. +24 −0 site/Modules/Orchard.Alias/Migrations.cs
  183. +15 −0 site/Modules/Orchard.Alias/Module.txt
  184. +140 −0 site/Modules/Orchard.Alias/Orchard.Alias.csproj
  185. +35 −0 site/Modules/Orchard.Alias/Properties/AssemblyInfo.cs
  186. +8 −0 site/Modules/Orchard.Alias/Records/ActionRecord.cs
  187. +9 −0 site/Modules/Orchard.Alias/Records/AliasRecord.cs
  188. +37 −0 site/Modules/Orchard.Alias/Routes.cs
  189. +35 −0 site/Modules/Orchard.Alias/ViewModels/AdminIndexViewModel.cs
  190. +28 −0 site/Modules/Orchard.Alias/Views/Admin/Add.cshtml
  191. +13 −0 site/Modules/Orchard.Alias/Views/Admin/Delete.cshtml
  192. +28 −0 site/Modules/Orchard.Alias/Views/Admin/Edit.cshtml
  193. +83 −0 site/Modules/Orchard.Alias/Views/Admin/Index.cshtml
  194. +41 −0 site/Modules/Orchard.Alias/Views/Web.config
  195. +39 −0 site/Modules/Orchard.Alias/Web.config
  196. BIN  site/Modules/Orchard.Alias/bin/Orchard.Alias.dll
  197. BIN  site/Modules/Orchard.Alias/bin/Orchard.Alias.pdb
  198. +18 −0 site/Modules/Orchard.Autoroute/Commands/AutorouteCommands.cs
  199. +130 −0 site/Modules/Orchard.Autoroute/Drivers/AutoroutePartDriver.cs
  200. +95 −0 site/Modules/Orchard.Autoroute/Handlers/AutoroutePartHandler.cs
  201. +20 −0 site/Modules/Orchard.Autoroute/Migrations.cs
  202. +26 −0 site/Modules/Orchard.Autoroute/Models/AutoroutePart.cs
  203. +15 −0 site/Modules/Orchard.Autoroute/Models/AutoroutePartRecord.cs
  204. +13 −0 site/Modules/Orchard.Autoroute/Module.txt
  205. +164 −0 site/Modules/Orchard.Autoroute/Orchard.Autoroute.csproj
  206. +31 −0 site/Modules/Orchard.Autoroute/Permissions.cs
  207. +3 −0  site/Modules/Orchard.Autoroute/Placement.info
  208. +35 −0 site/Modules/Orchard.Autoroute/Properties/AssemblyInfo.cs
  209. +72 −0 site/Modules/Orchard.Autoroute/Providers/SlugTokens.cs
  210. +31 −0 site/Modules/Orchard.Autoroute/Recipes/autorouteblogs.recipe.xml
  211. +27 −0 site/Modules/Orchard.Autoroute/Recipes/autoroutelists.recipe.xml
  212. +27 −0 site/Modules/Orchard.Autoroute/Recipes/autoroutepages.recipe.xml
  213. +10 −0 site/Modules/Orchard.Autoroute/ResourceManifest.cs
  214. +21 −0 site/Modules/Orchard.Autoroute/Scripts/Web.config
  215. +190 −0 site/Modules/Orchard.Autoroute/Services/AutorouteService.cs
  216. +49 −0 site/Modules/Orchard.Autoroute/Services/DefaultSlugService.cs
  217. +23 −0 site/Modules/Orchard.Autoroute/Services/IAutorouteService.cs
  218. +9 −0 site/Modules/Orchard.Autoroute/Services/IRouteEvents.cs
  219. +20 −0 site/Modules/Orchard.Autoroute/Services/ISlugEventHandler.cs
  220. +6 −0 site/Modules/Orchard.Autoroute/Services/ISlugService.cs
  221. +56 −0 site/Modules/Orchard.Autoroute/Settings/AutorouteSettings.cs
  222. +75 −0 site/Modules/Orchard.Autoroute/Settings/AutorouteSettingsEvents.cs
  223. +11 −0 site/Modules/Orchard.Autoroute/Settings/RoutePattern.cs
  224. +12 −0 site/Modules/Orchard.Autoroute/Specs/App.config
  225. +137 −0 site/Modules/Orchard.Autoroute/Specs/Autoroute.feature.cs
  226. +77 −0 site/Modules/Orchard.Autoroute/Specs/Orchard.Autoroute.Specs.csproj
  227. +33 −0 site/Modules/Orchard.Autoroute/Specs/Properties/AssemblyInfo.cs
  228. +38 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/Orchard.Web/Config/Diagnostics.config
  229. +25 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/Orchard.Web/Config/Host.config
  230. +19 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/Orchard.Web/Config/Sites.config
  231. +34 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/Orchard.Web/Core/Web.config
  232. +41 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/Orchard.Web/Themes/Web.config
  233. +146 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/Orchard.Web/Web.config
  234. +171 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/Simple.Web/Web.config
  235. +10 −0 ...Modules/Orchard.Autoroute/Specs/bin/Hosting/TemplateConfigs/DisableDynamicCompilation.HostComponents.config
  236. +20 −0 site/Modules/Orchard.Autoroute/Specs/bin/Hosting/TemplateConfigs/ForceDynamicCompilation.HostComponents.config
  237. +12 −0 site/Modules/Orchard.Autoroute/Specs/bin/Orchard.Autoroute.Specs.dll.config
  238. +21 −0 site/Modules/Orchard.Autoroute/Styles/Web.config
  239. +23 −0 site/Modules/Orchard.Autoroute/Styles/orchard-autoroute-settings.css
  240. +11 −0 site/Modules/Orchard.Autoroute/ViewModels/AutoroutePartEditViewModel.cs
  241. +54 −0 site/Modules/Orchard.Autoroute/Views/DefinitionTemplates/AutorouteSettings.cshtml
  242. +38 −0 site/Modules/Orchard.Autoroute/Views/EditorTemplates/Parts.Autoroute.Edit.cshtml
  243. +41 −0 site/Modules/Orchard.Autoroute/Views/Web.config
  244. +39 −0 site/Modules/Orchard.Autoroute/Web.config
  245. BIN  site/Modules/Orchard.Autoroute/bin/Orchard.Alias.dll
  246. BIN  site/Modules/Orchard.Autoroute/bin/Orchard.Alias.pdb
  247. BIN  site/Modules/Orchard.Autoroute/bin/Orchard.Autoroute.dll
  248. BIN  site/Modules/Orchard.Autoroute/bin/Orchard.Autoroute.pdb
  249. BIN  site/Modules/Orchard.Autoroute/bin/Orchard.Tokens.dll
  250. BIN  site/Modules/Orchard.Autoroute/bin/Orchard.Tokens.pdb
  251. +47 −0 site/Modules/Orchard.Blogs/AdminMenu.cs
  252. +147 −0 site/Modules/Orchard.Blogs/Commands/BlogCommands.cs
  253. BIN  site/Modules/Orchard.Blogs/Content/Admin/images/draft.gif
  254. BIN  site/Modules/Orchard.Blogs/Content/Admin/images/offline.gif
  255. BIN  site/Modules/Orchard.Blogs/Content/Admin/images/online.gif
  256. BIN  site/Modules/Orchard.Blogs/Content/Admin/images/published.gif
  257. BIN  site/Modules/Orchard.Blogs/Content/Admin/images/scheduled.gif
  258. +25 −0 site/Modules/Orchard.Blogs/Content/Web.config
  259. +198 −0 site/Modules/Orchard.Blogs/Controllers/BlogAdminController.cs
  260. +83 −0 site/Modules/Orchard.Blogs/Controllers/BlogController.cs
  261. +295 −0 site/Modules/Orchard.Blogs/Controllers/BlogPostAdminController.cs
  262. +70 −0 site/Modules/Orchard.Blogs/Controllers/BlogPostController.cs
  263. +71 −0 site/Modules/Orchard.Blogs/Controllers/RemoteBlogPublishingController.cs
  264. +69 −0 site/Modules/Orchard.Blogs/Drivers/BlogArchivesPartDriver.cs
  265. +60 −0 site/Modules/Orchard.Blogs/Drivers/BlogPartDriver.cs
  266. +23 −0 site/Modules/Orchard.Blogs/Drivers/BlogPostPartDriver.cs
  267. +88 −0 site/Modules/Orchard.Blogs/Drivers/RecentBlogPostsPartDriver.cs
  268. +14 −0 site/Modules/Orchard.Blogs/Drivers/RemoteBlogPublishingDriver.cs
  269. +12 −0 site/Modules/Orchard.Blogs/Extensions/FeedManagerExtensions.cs
  270. +84 −0 site/Modules/Orchard.Blogs/Extensions/UrlHelperExtensions.cs
  271. +13 −0 site/Modules/Orchard.Blogs/Handlers/BlogArchivesPartHandler.cs
  272. +55 −0 site/Modules/Orchard.Blogs/Handlers/BlogPartArchiveHandler.cs
  273. +65 −0 site/Modules/Orchard.Blogs/Handlers/BlogPartHandler.cs
  274. +82 −0 site/Modules/Orchard.Blogs/Handlers/BlogPostPartHandler.cs
  275. +13 −0 site/Modules/Orchard.Blogs/Handlers/RecentBlogPostsPartHandler.cs
  276. +116 −0 site/Modules/Orchard.Blogs/Migrations.cs
  277. +125 −0 site/Modules/Orchard.Blogs/Models/ArchiveData.cs
  278. +14 −0 site/Modules/Orchard.Blogs/Models/BlogArchivesPart.cs
  279. +10 −0 site/Modules/Orchard.Blogs/Models/BlogArchivesPartRecord.cs
  280. +22 −0 site/Modules/Orchard.Blogs/Models/BlogPart.cs
  281. +9 −0 site/Modules/Orchard.Blogs/Models/BlogPartArchiveRecord.cs
  282. +10 −0 site/Modules/Orchard.Blogs/Models/BlogPartRecord.cs
  283. +53 −0 site/Modules/Orchard.Blogs/Models/BlogPostPart.cs
  284. +18 −0 site/Modules/Orchard.Blogs/Models/RecentBlogPostsPart.cs
  285. +12 −0 site/Modules/Orchard.Blogs/Models/RecentBlogPostsPartRecord.cs
  286. +16 −0 site/Modules/Orchard.Blogs/Module.txt
  287. +203 −0 site/Modules/Orchard.Blogs/Orchard.Blogs.csproj
  288. +62 −0 site/Modules/Orchard.Blogs/Permissions.cs
  289. +43 −0 site/Modules/Orchard.Blogs/Placement.info
  290. +35 −0 site/Modules/Orchard.Blogs/Properties/AssemblyInfo.cs
  291. +13 −0 site/Modules/Orchard.Blogs/ResourceManifest.cs
  292. +216 −0 site/Modules/Orchard.Blogs/Routes.cs
  293. +73 −0 site/Modules/Orchard.Blogs/Routing/ArchiveConstraint.CS
  294. +66 −0 site/Modules/Orchard.Blogs/Routing/BlogPathConstraint.cs
  295. +35 −0 site/Modules/Orchard.Blogs/Routing/BlogPathConstraintUpdator.cs
  296. +9 −0 site/Modules/Orchard.Blogs/Routing/IArchiveConstraint.CS
  297. +11 −0 site/Modules/Orchard.Blogs/Routing/IBlogPathConstraint.cs
  298. +7 −0 site/Modules/Orchard.Blogs/Routing/IRsdConstraint.CS
  299. +45 −0 site/Modules/Orchard.Blogs/Routing/RsdConstraint.CS
  300. +25 −0 site/Modules/Orchard.Blogs/Scripts/Web.config
Sorry, we could not display the entire diff because too many files (1,780) changed.
1  .gitignore
View
@@ -0,0 +1 @@
+/site/App_Data/*
209 site/CREDITS.txt
View
@@ -0,0 +1,209 @@
+Orchard Project
+ASP.NET Open Source Gallery at Outercurve Foundation
+Copyright 2009-2011 Outercurve Foundation
+
+This product includes software developed at
+The Outercurve Foundation (http://www.outercurve.org/).
+
+Orchard includes works distributed under the licenses listed below. The full text for most of the licenses listed below can be found in the LICENSE.txt file accompanying each work. The original copyright notices have been preserved within the respective files and or packages. Please refer to the specific files and/or packages for more detailed information about the authors, copyright notices, and licenses.
+
+Akismet.Net
+-----
+Website: http://www.codeplex.com/wikipage?ProjectName=AkismetApi
+Copyright: Copyright (c) 2006, Joel Thoms
+License: New BSD
+
+Antlr
+-----
+Website: http://www.antlr.org/
+Copyright: Copyright (c) 2003-2008 Terence Parr
+License: New BSD
+
+ASP.NET MVC
+-----
+Website: http://aspnet.codeplex.com/wikipage?title=MVC&referringTitle=Home
+Copyright: Copyright (c) 2008-2011 Microsoft Corporation
+License: MICROSOFT ASP.NET MODEL VIEW CONTROLLER 3 EULA
+ http://go.microsoft.com/fwlink/?LinkID=207621
+
+Autofac
+-----
+Website: http://code.google.com/p/autofac/
+Copyright: Copyright (c) 2007-2008 Autofac Contributors
+ http://code.google.com/p/autofac/wiki/Contributing
+License: MIT
+
+Autofac Contrib
+-----
+Website: http://code.google.com/p/autofac/
+Copyright: Copyright (c) 2007-2008 Autofac Contributors
+License: http://code.google.com/p/autofac/source/browse/trunk/contrib/AutofacContrib%20License.txt
+
+Castle
+-----
+Website: http://www.castleproject.org/container/index.html
+Copyright: Copyright (c) 2004-2009 Castle Project
+License: Apache Software Foundation License 2.0
+
+Clay
+----
+Website: http://clay.codeplex.com/
+Copyright: Copyright (c) 2010 Louis Dejardin
+License: MS-PL
+
+CodeMirror
+----------
+Website: http://codemirror.net/2/
+Copyright: Copyright (C) 2011 by Marijn Haverbeke
+License: MIT
+
+DLR
+---
+Website: http://dlr.codeplex.com
+Copyright: Copyright (c) Microsoft Corporation
+License: Apache Software Foundation License 2.0
+
+Eric Meyer's Reset CSS
+-----
+Website: http://meyerweb.com/eric/tools/css/reset/
+Copyright: Copyright (C) 1995-2005 Eric A. and Kathryn S. Meyer
+License: Public domain
+
+Fam Fam Fam Silk Icons
+-----
+Website: http://famfamfam.com/lab/icons/silk/
+Copyright: Copyright (c) 2005-2006 Mark James
+License: CC Attribution 2.5 http://creativecommons.org/licenses/by/2.5/
+
+Fluent NHibernate
+-----
+Website: http://fluentnhibernate.org/
+Copyright: Copyright (c) 2008-2009 James Gregory and contributors
+License: New BSD
+
+FluentPath
+-----
+Website: http://fluentpath.codeplex.com/
+Copyright: Copyright (c) 2011 Bertrand Le Roy
+License: MS-PL
+
+Html Agility Pack
+-----
+Website: http://htmlagilitypack.codeplex.com/
+Copyright: Copyright (c) 2003-20010 Simon Mourier
+License: MS-PL
+
+html5shim
+-----
+Website: http://code.google.com/p/html5shim/
+License: MIT
+
+IESI Collections
+-----
+Website: http://www.codeproject.com/KB/recipes/sets.aspx
+Copyright: Copyright (c) 2002-2004 Jason Smith
+License: http://www.codeproject.com/info/Licenses.aspx
+ distributed with NHibernate under LGPL 2.1
+
+jQuery
+-----
+Website: http://jquery.com
+Copyright: Copyright (c) 2010 John Resig, http://jquery.com
+License: MIT
+
+jQuery UI (Core, Widget, Datepicker)
+-----
+Website: http://docs.jquery.com/UI
+Copyright: Copyright (c) 2010 lib/jquery.ui/AUTHORS.txt (http://jqueryui.com/about)
+License: MIT
+
+jQuery ui.timepickr, jQuery utils
+-----
+Website: http://code.google.com/p/jquery-utils/
+Copyright: Copyright (c) Maxime Haineault (http://haineault.com)
+License: MIT
+
+jQuery ScrollTo
+-----
+Website: http://flesler.blogspot.com
+Copyright: Copyright (c) 2007-2009 Ariel Flesler
+License: MIT
+
+Log4Net
+-----
+Website: http://logging.apache.org/log4net/index.html
+Copyright: Copyright (c) 2007 Apache Software Foundation
+License: Apache Software Foundation License 2.0
+
+Lucene.net
+-----
+Website: http://incubator.apache.org/projects/lucene.net.html
+Copyright: Copyright (c) 2009 Apache Software Foundation
+License: Apache Software Foundation License 2.0
+
+Moq
+-----
+Website: http://code.google.com/p/moq/
+Copyright: Copyright (c) 2007. Clarius Consulting, Manas Technology Solutions, InSTEDD
+License: New BSD
+
+NHibernate, NHibernate Linq
+-----
+Website: http://nhforge.org
+Copyright: Copyright (C) 2003 - 2009 NHibernate Project
+License: LGPL 2.1
+
+NHibernate Lambda Extensions
+-----
+Website: http://code.google.com/p/nhlambdaextensions/
+Copyright: Unknown http://code.google.com/p/nhlambdaextensions/people/list
+License: LGPL 2.1
+
+NuGet
+-----
+Website: http://nuget.codeplex.com
+Copyright: Copyright 2010-2011 Outercurve Foundation
+License: Apache Software Foundation License 2.0
+
+nUnit
+-----
+Website: http://www.nunit.org/index.php
+Copyright: Copyright (c) 2002-2007 NUnit.org
+ Portions Copyright (c) 2002-2008 Charlie Poole or Copyright (c) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright (c) 2000-2002 Philip A. Craig
+License: Derived from zlib: http://nunit.org/index.php?p=license&r=2.4
+
+SharpZipLib
+-----
+Website: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
+Copyright: Copyright (c) 2000-2009 IC#Code
+License: GPLv2 with Classpath Exception: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
+
+SpecFlow
+-----
+Website: http://www.specflow.org/
+Copyright: Copyright (c) 2009 TechTalk
+License: New BSD
+
+Microsoft SQL Server Compact 4.0
+-----
+Website: http://www.microsoft.com
+Copyright: Copyright (c) 2011 Microsoft Corporation
+License: Custom EULA - http://www.microsoft.com/web/webpi/eula/SQLCE_EULA_ENU.rtf
+
+TinyMCE
+-----
+WebSite: http://tinymce.moxiecode.com/
+Copyright: Copyright (c) 2003-2009 Moxiecode Systems AB
+License: LGPL 2.1
+
+WCat
+-----
+WebSite: http://www.iis.net/community/default.aspx?tabid=34&i=1466&g=6
+Copyright: Copyright (c) 2007 Microsoft
+License: "Free"
+
+YUI
+-----
+Website: http://developer.yahoo.com/yui/
+Copyright: Copyright (c) 2010, Yahoo! Inc.
+License: New BSD
25 site/Config/Sample.Host.config
View
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+
+ <configSections>
+ <section name="autofac" type="Autofac.Configuration.SectionHandler, Autofac.Configuration"/>
+ </configSections>
+
+ <autofac defaultAssembly="Orchard.Framework">
+ <components>
+
+ <component instance-scope="single-instance"
+ type="Orchard.Environment.Configuration.AzureBlobTenantManager"
+ service="Orchard.Environment.Configuration.IShellSettingsManager">
+ <parameters>
+ <parameter name="account" value="devstoreaccount1"/>
+ <parameter name="key" value="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="/>
+ <parameter name="container" value="mycontainer"/>
+ </parameters>
+ </component>
+
+ </components>
+ </autofac>
+
+</configuration>
+
10 site/Config/Sample.HostComponents.config
View
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<HostComponents>
+ <Components>
+ <Component Type="Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader">
+ <Properties>
+ <Property Name="Disabled" Value="true"/>
+ </Properties>
+ </Component>
+ </Components>
+</HostComponents>
31 site/Config/log4net.config
View
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<log4net>
+ <!--
+ If you are looking here and want more output,
+ first thing to do is change root/priority/@value to "INFO" or "ALL"
+ -->
+ <root>
+ <!-- Value of priority may be ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF -->
+ <priority value="ERROR" />
+ <appender-ref ref="error-file" />
+ </root>
+ <!-- example of turning on the output from a component or namespace-->
+ <!--
+ <logger name="Orchard.Data.SessionLocator">
+ <priority value="INFO" />
+ </logger>
+ -->
+ <appender name="error-file" type="Orchard.Logging.OrchardFileAppender">
+ <!-- error log: only ERROR and FATAL subset of debug log -->
+ <file value="App_Data/Logs/orchard-error" />
+ <appendToFile value="true" />
+ <!-- immediate flush on error log, to avoid data loss with sudden termination -->
+ <immediateFlush value="false" />
+ <staticLogFileName value="false" />
+ <rollingStyle value="Date" />
+ <datepattern value="-yyyy.MM.dd'.log'" />
+ <layout type="log4net.Layout.PatternLayout">
+ <conversionPattern value="%date [%thread] %logger - %message%newline" />
+ </layout>
+ </appender>
+</log4net>
10 site/Core/Common/Module.txt
View
@@ -0,0 +1,10 @@
+Name: Common
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.2
+OrchardVersion: 1.4.2
+Description: The common module introduces content parts that are going to be used by most content types (common, body, identity).
+FeatureDescription: Core content parts.
+Dependencies: Settings
+Category: Core
37 site/Core/Common/Placement.info
View
@@ -0,0 +1,37 @@
+<Placement>
+ <!-- available display shapes -->
+ <!--
+ Parts_Common_Body
+ Parts_Common_Body_Summary
+ Parts_Common_Metadata
+ Parts_Common_Metadata_Summary
+ Parts_Common_Metadata_SummaryAdmin
+ Fields_Common_Text
+ -->
+ <!-- edit shapes getting default placements -->
+ <!-- edit "shape" -->
+ <Place Parts_Common_Body_Edit="Content:2"/>
+ <Place Parts_Common_Owner_Edit="Content:20"/>
+ <Place Parts_Common_Date_Edit="Content:18"/>
+ <Place Parts_Common_Container_Edit="Content:20"/>
+ <Place Fields_Common_Text_Edit="Content:2.5"/>
+ <!-- default positioning -->
+ <!-- show summary for all DisplayType by default -->
+ <Place Parts_Common_Body_Summary="Content:5"/>
+ <!-- with text fields a little before -->
+ <Place Fields_Common_Text="Content:2.5"/>
+ <Match DisplayType="Detail">
+ <!-- hide summary, show full content, for Detail -->
+ <Place Parts_Common_Body_Summary="-"
+ Parts_Common_Body="Content:5"
+ Parts_Common_Metadata="Meta:2"/>
+ </Match>
+ <Match DisplayType="Summary">
+ <Place Parts_Common_Metadata_Summary="Meta:2"/>
+ </Match>
+ <Match DisplayType="SummaryAdmin">
+ <Place Parts_Common_Body_Summary="-"
+ Parts_Common_Metadata_SummaryAdmin="Meta:5"
+ Fields_Common_Text="-"/>
+ </Match>
+</Placement>
25 site/Core/Common/Styles/Web.config
View
@@ -0,0 +1,25 @@
+<?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>
+ <staticContent>
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
+ </staticContent>
+
+ <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>
20 site/Core/Common/Styles/orchard-common-datetime.css
View
@@ -0,0 +1,20 @@
+fieldset.createdutc-datetime {
+ float:left;
+ clear:none;
+ white-space: nowrap;
+ vertical-align: middle;
+}
+fieldset.createdutc-datetime legend {
+ display:none;
+}
+fieldset.createdutc-datetime input {
+ padding:1px;
+ text-align:center;
+ color:#666;
+}
+input#DateEditor_CreatedDate {
+ width:10em;
+}
+input#DateEditor_CreatedTime {
+ width:7em;
+}
1  site/Core/Common/Views/Body-Large.Editor.cshtml
View
@@ -0,0 +1 @@
+@Html.TextBox("Text", (string)Model.Text, new { @class = "text large" })
1  site/Core/Common/Views/Body-Small.Editor.cshtml
View
@@ -0,0 +1 @@
+@Html.TextBox("Text", (string)Model.Text, new { @class = "text text-small" })
1  site/Core/Common/Views/Body-Textarea.Editor.cshtml
View
@@ -0,0 +1 @@
+@Html.TextArea("Text", (string)Model.Text, 10, 80, new {})
1  site/Core/Common/Views/Body-Wide.Editor.cshtml
View
@@ -0,0 +1 @@
+@Html.TextBox("Text", (string)Model.Text, new { @class = "text textMedium" })
5 site/Core/Common/Views/Body.Editor.cshtml
View
@@ -0,0 +1,5 @@
+@using Orchard.Utility.Extensions;
+@{
+ string editorFlavor = Model.EditorFlavor;
+}
+@Html.TextArea("Text", (string)Model.Text, 25, 80, new { @class = editorFlavor.HtmlClassify() })
14 site/Core/Common/Views/CommonMetadataOwner.cshtml
View
@@ -0,0 +1,14 @@
+@*
+ Model:
+ ContentPart
+*@
+
+@using Orchard.ContentManagement;
+@using Orchard.Core.Common.Models;
+@using Orchard.Security;
+@{
+ CommonPart commonPart = Model.ContentPart;
+ // owner isn't really who last modified this, is it?
+ IUser owner = commonPart.As<CommonPart>() == null ? null : commonPart.As<CommonPart>().Owner;
+}
+@T("By {0}", owner == null ? "<null>" : owner.UserName)
6 site/Core/Common/Views/DefinitionTemplates/BodyPartSettings.cshtml
View
@@ -0,0 +1,6 @@
+@model Orchard.Core.Common.Settings.BodyPartSettings
+ <fieldset>
+ <label for="@Html.FieldIdFor(m => m.FlavorDefault)">@T("Default flavor")</label>
+ @Html.EditorFor(m => m.FlavorDefault)
+ @Html.ValidationMessageFor(m => m.FlavorDefault)
+ </fieldset>
6 site/Core/Common/Views/DefinitionTemplates/BodyTypePartSettings.cshtml
View
@@ -0,0 +1,6 @@
+@model Orchard.Core.Common.Settings.BodyTypePartSettings
+ <fieldset>
+ <label for="@Html.FieldIdFor(m => m.Flavor)">@T("Flavor")</label>
+ @Html.EditorFor(m => m.Flavor)
+ @Html.ValidationMessageFor(m => m.Flavor)
+ </fieldset>
8 site/Core/Common/Views/DefinitionTemplates/DateEditorSettings.cshtml
View
@@ -0,0 +1,8 @@
+@model Orchard.Core.Common.DateEditor.DateEditorSettings
+<fieldset>
+ <div>
+ @Html.EditorFor(m=>m.ShowDateEditor)
+ <label for="@Html.FieldIdFor(m => m.ShowDateEditor)" class="forcheckbox">@T("Show editor for creation date time")</label>
+ @Html.ValidationMessageFor(m => m.ShowDateEditor)
+ </div>
+</fieldset>
9 site/Core/Common/Views/DefinitionTemplates/OwnerEditorSettings.cshtml
View
@@ -0,0 +1,9 @@
+@model Orchard.Core.Common.OwnerEditor.OwnerEditorSettings
+
+<fieldset>
+ <div>
+ @Html.EditorFor(m=>m.ShowOwnerEditor)
+ <label for="@Html.FieldIdFor(m => m.ShowOwnerEditor)" class="forcheckbox">@T("Show editor for owner")</label>
+ @Html.ValidationMessageFor(m => m.ShowOwnerEditor)
+ </div>
+</fieldset>
28 site/Core/Common/Views/DefinitionTemplates/TextFieldSettingsEventsViewModel.cshtml
View
@@ -0,0 +1,28 @@
+@using Orchard.Utility.Extensions
+@model Orchard.Core.Common.ViewModels.TextFieldSettingsEventsViewModel
+
+<fieldset>
+ <div>
+ <label for="@Html.FieldIdFor(m => m.Settings.Flavor)" class="forcheckbox">@T("Display options")</label>
+ <select id="@Html.FieldIdFor(m => m.Settings.Flavor)" name="@Html.FieldNameFor(m => m.Settings.Flavor)">
+ @Html.SelectOption("", String.IsNullOrWhiteSpace(Model.Settings.Flavor), T("Default flavor").ToString())
+ @foreach(string flavor in Model.Flavors) {
+ @Html.SelectOption(flavor, flavor.Equals(Model.Settings.Flavor, StringComparison.OrdinalIgnoreCase), flavor.CamelFriendly())
+ }
+ </select>
+
+ @Html.ValidationMessageFor(m => m.Settings.Flavor)
+ </div>
+</fieldset>
+<fieldset>
+ <div>
+ @Html.CheckBoxFor(m => m.Settings.Required) <label for="@Html.FieldIdFor(m => m.Settings.Required)" class="forcheckbox">@T("Required")</label>
+ <span class="hint">@T("Check to ensure the user enters a value in this field.")</span>
+ </div>
+</fieldset>
+<fieldset>
+ <label for="@Html.FieldIdFor(m => m.Settings.Hint)">@T("Help text")</label>
+ @Html.TextAreaFor(m => m.Settings.Hint, new { @class = "textMedium", rows = "5" })
+ <span class="hint">@T("The help text is written under the field when authors are editing the content item.")</span>
+ @Html.ValidationMessageFor(m => m.Settings.Hint)
+</fieldset>
13 site/Core/Common/Views/EditorTemplates/Fields.Common.Text.Edit.cshtml
View
@@ -0,0 +1,13 @@
+@model Orchard.Core.Common.ViewModels.TextFieldDriverViewModel
+
+<fieldset>
+ <label for="@Html.FieldIdFor(m => m.Text)">@Model.Field.DisplayName</label>
+ @if (String.IsNullOrWhiteSpace(Model.Settings.Flavor)) {
+ @Html.TextBoxFor(m => m.Text, new { @class = "text" })
+ @Html.ValidationMessageFor(m => m.Text)
+ }
+ else {
+ @Display.Body_Editor(Text: Model.Text, EditorFlavor: Model.Settings.Flavor)
+ }
+ <span class="hint">@Model.Settings.Hint</span>
+</fieldset>
7 site/Core/Common/Views/EditorTemplates/Parts.Common.Body.cshtml
View
@@ -0,0 +1,7 @@
+@model BodyEditorViewModel
+@using Orchard.Core.Common.ViewModels;
+<fieldset>
+ <label>@T("Body")</label>
+ @Display.Body_Editor(Model)
+ @Html.ValidationMessageFor(m => m.Text)
+</fieldset>
5 site/Core/Common/Views/EditorTemplates/Parts.Common.Container.cshtml
View
@@ -0,0 +1,5 @@
+@model ContainerEditorViewModel
+@using Orchard.Core.Common.ViewModels;
+<fieldset>
+ @Html.HiddenFor(m=>m.ContainerId)
+</fieldset>
7 site/Core/Common/Views/Fields.Common.Text.cshtml
View
@@ -0,0 +1,7 @@
+@{
+ string name = Model.ContentField.DisplayName;
+}
+
+@if (HasText(name) && HasText(Model.Value)) {
+ <p class="text-field"><span class="name">@name:</span> <span class="value">@Model.Value</span></p>
+}
9 site/Core/Common/Views/Parts.Common.Body.Summary.cshtml
View
@@ -0,0 +1,9 @@
+@*doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data
+ also, doing this here, inline, until we have a pluggable processing model (both in and out)
+ also, ...this is ugly *@
+@{
+ Orchard.ContentManagement.ContentItem contentItem = Model.ContentPart.ContentItem;
+ 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>
1  site/Core/Common/Views/Parts.Common.Body.SummaryAdmin.cshtml
View
@@ -0,0 +1 @@
+
1  site/Core/Common/Views/Parts.Common.Body.cshtml
View
@@ -0,0 +1 @@
+@Model.Html
42 site/Core/Common/Views/Parts.Common.Date.Edit.cshtml
View
@@ -0,0 +1,42 @@
+@model Orchard.Core.Common.DateEditor.DateEditorViewModel
+@{
+ var DateEditor = Model;
+ Style.Require("Common_DatePicker");
+}
+<fieldset class="createdutc-datetime">
+ @Html.LabelFor(m => DateEditor.CreatedDate, T("Created On"))
+ <label class="forpicker" for="@Html.FieldIdFor(m => DateEditor.CreatedDate)">@T("Date")</label>
+ @Html.EditorFor(m => DateEditor.CreatedDate)
+ <label class="forpicker" for="@Html.FieldIdFor(m => DateEditor.CreatedTime)">@T("Time")</label>
+ @Html.EditorFor(m => DateEditor.CreatedTime)
+</fieldset>
+@using(Script.Foot()) {
+
+ @* generates the localization script *@
+ @Display(New.DatePickerLocalization())
+ @Display(New.TimePickerLocalization())
+
+<script type="text/javascript">
+//<![CDATA[
+ $(function () {
+ var clearHint = function ($this) { if ($this.val() == $this.data("hint")) { $this.removeClass("hinted").val("") } };
+ var resetHint = function ($this) { setTimeout(function () { if (!$this.val()) { $this.addClass("hinted").val($this.data("hint")) } }, 300) };
+ @* todo: (heskew) make a plugin *@
+ $("label.forpicker").each(function () {
+ var $this = $(this);
+ var pickerInput = $("#" + $this.attr("for"));
+ if (!pickerInput.val()) {
+ pickerInput.data("hint", $this.text());
+ pickerInput.addClass("hinted")
+ .val(pickerInput.data("hint"))
+ .focus(function() {clearHint($(this));})
+ .blur(function() {resetHint($(this));});
+ $this.closest("form").submit(function() {clearHint(pickerInput); pickerInput = 0;});
+ }
+ });
+ $('#@Html.FieldIdFor(m => DateEditor.CreatedDate)').datepicker({ showAnim: "" });
+ $('#@Html.FieldIdFor(m => DateEditor.CreatedTime)').timepicker({ stepMinute: 5});
+ })
+//]]>
+</script>
+}
1  site/Core/Common/Views/Parts.Common.Metadata.Summary.cshtml
View
@@ -0,0 +1 @@
+<div class="published">@Display.PublishedState(createdDateTimeUtc: Model.ContentPart.CreatedUtc, publisheddateTimeUtc: Model.ContentPart.PublishedUtc)</div>
12 site/Core/Common/Views/Parts.Common.Metadata.SummaryAdmin.cshtml
View
@@ -0,0 +1,12 @@
+@using Orchard.ContentManagement;
+@using Orchard.Core.Common.Models;
+@{
+ CommonPart commonPart = Model.ContentPart;
+ DateTime? modifiedUtc = commonPart.As<CommonPart>() == null ? null : commonPart.As<CommonPart>().ModifiedUtc;
+}
+<ul class="pageStatus">
+ <li>@if (modifiedUtc.HasValue) {
+ @T("Last modified: {0}", Display.DateTimeRelative(dateTimeUtc: modifiedUtc.Value))}&nbsp;&#124;&nbsp;
+ </li>
+ <li>@Display.CommonMetadataOwner(ContentPart: Model.ContentPart)</li>
+ </ul>
1  site/Core/Common/Views/Parts.Common.Metadata.cshtml
View
@@ -0,0 +1 @@
+<div class="published">@Display.PublishedState(createdDateTimeUtc: Model.ContentPart.CreatedUtc, publisheddateTimeUtc: Model.ContentPart.PublishedUtc)</div>
9 site/Core/Common/Views/Parts.Common.Owner.Edit.cshtml
View
@@ -0,0 +1,9 @@
+@model Orchard.Core.Common.OwnerEditor.OwnerEditorViewModel
+@{
+ var OwnerEditor = Model;
+}
+<fieldset>
+ @Html.LabelFor(m => OwnerEditor.Owner, T("Owner"))
+ @Html.EditorFor(m => OwnerEditor.Owner)
+ @Html.ValidationMessageFor(m => OwnerEditor.Owner)
+</fieldset>
41 site/Core/Common/Views/Web.config
View
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+ <appSettings>
+ <add key="webpages:Enabled" value="false" />
+ </appSettings>
+ <system.web>
+ <httpHandlers>
+ </httpHandlers>
+
+ <!--
+ Enabling request validation in view pages would cause validation to occur
+ after the input has already been processed by the controller. By default
+ MVC performs request validation before a controller processes the input.
+ To change this behavior apply the ValidateInputAttribute to a
+ controller or action.
+ -->
+ <pages
+ validateRequest="false"
+ pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <controls>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
+ </controls>
+ </pages>
+ </system.web>
+
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <handlers>
+ </handlers>
+ </system.webServer>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration>
10 site/Core/Containers/Module.txt
View
@@ -0,0 +1,10 @@
+Name: Containers
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.2
+OrchardVersion: 1.4.2
+Description: The containers module introduces container and containable behaviors for content items.
+FeatureDescription: Container and containable parts to enable parent-child relationships between content items.
+Dependencies: Contents
+Category: Content
16 site/Core/Containers/Placement.info
View
@@ -0,0 +1,16 @@
+<Placement>
+ <!-- available display shapes -->
+ <!--
+ Parts_Container_Contained
+ Parts_Container_Contained_Summary
+ -->
+ <Match DisplayType="Detail">
+ <Place Parts_Container_Contained="Content:7.5"/>
+ </Match>
+ <Place Parts_Containable_Edit="Content:before.3"/>
+ <Place Parts_Container_Edit="Content:5"/>
+ <Place Parts_CustomProperties_Edit="Content:5"/>
+ <Place Parts_ContainerWidget_Edit="Content:5"/>
+ <Place Parts_Container_SiteSettings="Content:10"/>
+ <Place Parts_ContainerWidget="Content"/>
+</Placement>
9 site/Core/Containers/Views/DefinitionTemplates/ContainerPartSettings.cshtml
View
@@ -0,0 +1,9 @@
+@model Orchard.Core.Containers.Settings.ContainerPartSettings
+<fieldset>
+ <label for="@Html.FieldIdFor(m => m.PageSizeDefault)">@T("Default Page Size")</label>
+ @Html.EditorFor(m => m.PageSizeDefault)
+</fieldset>
+<fieldset>
+ @Html.EditorFor(m => m.PaginatedDefault)
+ <label for="@Html.FieldIdFor( m => m.PaginatedDefault)" class="forcheckbox">@T("Show paging controls")</label>
+</fieldset>
9 site/Core/Containers/Views/DefinitionTemplates/ContainerTypePartSettings.cshtml
View
@@ -0,0 +1,9 @@
+@model Orchard.Core.Containers.Settings.ContainerTypePartSettings
+<fieldset>
+ <label for="@Html.FieldIdFor(m => m.PageSizeDefault)">@T("Default Page Size")</label>
+ @Html.EditorFor(m => m.PageSizeDefault)
+</fieldset>
+<fieldset>
+ <label for="@Html.FieldIdFor( m => m.PaginatedDefault)">@T("Show paging controls")</label>
+ @Html.EditorFor(m => m.PaginatedDefault)
+</fieldset>
11 site/Core/Containers/Views/EditorTemplates/Containable.cshtml
View
@@ -0,0 +1,11 @@
+@model Orchard.Core.Containers.ViewModels.ContainableViewModel
+<fieldset>
+ <span>
+ @Html.LabelFor(m => m.ContainerId, T("Add to"))
+ @Html.DropDownListFor(m => m.ContainerId, Model.AvailableContainers)
+ </span>
+ <span>
+ @Html.LabelFor(m => m.Weight, T("Weight"))
+ @Html.TextBoxFor(m => m.Weight, new { @class = "text text-small" })
+ </span>
+</fieldset>
39 site/Core/Containers/Views/EditorTemplates/Container.cshtml
View
@@ -0,0 +1,39 @@
+@model Orchard.Core.Containers.ViewModels.ContainerViewModel
+@using Orchard.Core.Containers.Models;
+<fieldset class="with-checkbox">
+ <span class="checkbox-and-label">
+ @Html.CheckBoxFor(m => m.Part.ItemsShown)
+ <label for="@Html.FieldIdFor(m => m.Part.ItemsShown)" class="forcheckbox">@T("Show contained items list")</label>
+ </span>
+</fieldset>
+<fieldset>
+ @Html.LabelFor(m => m.Part.ItemContentType, T("Contains"))
+ @Html.DropDownListFor(m => m.Part.ItemContentType, Model.AvailableContainables)
+ <span class="hint">@T("Only types with the Containable part can be contained in a list.")</span>
+</fieldset>
+<fieldset>
+ @Html.LabelFor(m => m.Part.OrderByProperty, T("Order by"))
+ <select id="@Html.FieldIdFor(m => m.Part.OrderByProperty)" name="@Html.FieldNameFor(m => m.Part.OrderByProperty)">
+ @Html.SelectOption(Model.Part.OrderByProperty, "ContainablePart.Weight", T("Weight").Text)
+ @Html.SelectOption(Model.Part.OrderByProperty, "CommonPart.CreatedUtc", T("Date Created").Text)
+ @Html.SelectOption(Model.Part.OrderByProperty, "CommonPart.PublishedUtc", T("Date Published").Text)
+ @Html.SelectOption(Model.Part.OrderByProperty, "TitlePart.Title", T("Title (Title Part)").Text)
+ @Html.SelectOption(Model.Part.OrderByProperty, "CustomPropertiesPart.CustomOne", T("Custom 1").Text)
+ @Html.SelectOption(Model.Part.OrderByProperty, "CustomPropertiesPart.CustomTwo", T("Custom 2").Text)
+ @Html.SelectOption(Model.Part.OrderByProperty, "CustomPropertiesPart.CustomThree", T("Custom 3").Text)
+ </select>
+ <select id="@Html.FieldIdFor(m => m.Part.OrderByDirection)" name="@Html.FieldNameFor(m => m.Part.OrderByDirection)">
+ @Html.SelectOption(Model.Part.OrderByDirection, (int)OrderByDirection.Ascending, T("Ascending").Text)
+ @Html.SelectOption(Model.Part.OrderByDirection, (int)OrderByDirection.Descending, T("Descending").Text)
+ </select>
+</fieldset>
+<fieldset class="with-checkbox">
+ <span>
+ @Html.LabelFor(m => m.Part.PageSize, T("Page size"))
+ @Html.TextBoxFor(m => m.Part.PageSize, new { @class = "text text-small" })
+ </span>
+ <span class="checkbox-and-label">
+ @Html.CheckBoxFor(m => m.Part.Paginated)
+ <label for="@Html.FieldIdFor(m => m.Part.Paginated)" class="forcheckbox">@T("Show paging controls")</label>
+ </span>
+</fieldset>
56 site/Core/Containers/Views/EditorTemplates/ContainerWidget.cshtml
View
@@ -0,0 +1,56 @@
+@model Orchard.Core.Containers.ViewModels.ContainerWidgetViewModel
+@using Orchard.Core.Containers.Models;
+@{
+ Script.Require("ShapesBase");
+}
+<fieldset>
+ @Html.LabelFor(m => m.Part.Record.ContainerId, T("Show items from"))
+ @Html.DropDownListFor(m => m.Part.Record.ContainerId, Model.AvailableContainers)
+</fieldset>
+<fieldset>
+ <span>
+ @Html.LabelFor(m => m.Part.Record.PageSize, T("Maximum number of items to display"))
+ @Html.TextBoxFor(m => m.Part.Record.PageSize, new { @class = "text text-small" })
+ </span>
+</fieldset>
+<fieldset>
+ @Html.LabelFor(m => m.Part.Record.OrderByProperty, T("Order by"))
+ <select id="@Html.FieldIdFor(m => m.Part.Record.OrderByProperty)" name="@Html.FieldNameFor(m => m.Part.Record.OrderByProperty)">
+ @Html.SelectOption(Model.Part.Record.OrderByProperty, "CommonPart.CreatedUtc", T("Date Created").Text)
+ @Html.SelectOption(Model.Part.Record.OrderByProperty, "CommonPart.PublishedUtc", T("Date Published").Text)
+ @Html.SelectOption(Model.Part.Record.OrderByProperty, "TitlePart.Title", T("Title (Title Part)").Text)
+ @Html.SelectOption(Model.Part.Record.OrderByProperty, "CustomPropertiesPart.CustomOne", T("Custom 1").Text)
+ @Html.SelectOption(Model.Part.Record.OrderByProperty, "CustomPropertiesPart.CustomTwo", T("Custom 2").Text)
+ @Html.SelectOption(Model.Part.Record.OrderByProperty, "CustomPropertiesPart.CustomThree", T("Custom 3").Text)
+ </select>
+ <select title="@T("Order direction")" id="@Html.FieldIdFor(m => m.Part.Record.OrderByDirection)" name="@Html.FieldNameFor(m => m.Part.Record.OrderByDirection)">
+ @Html.SelectOption(Model.Part.Record.OrderByDirection, (int)OrderByDirection.Ascending, T("Ascending").Text)
+ @Html.SelectOption(Model.Part.Record.OrderByDirection, (int)OrderByDirection.Descending, T("Descending").Text)
+ </select>
+</fieldset>
+<fieldset>
+ <div>
+ @Html.EditorFor(m => m.Part.Record.ApplyFilter)
+ <label class="forcheckbox" for="@Html.FieldIdFor(m => m.Part.Record.ApplyFilter)">@T("Filter items")</label>
+ </div>
+ <div data-controllerid="@Html.FieldIdFor(m => m.Part.Record.ApplyFilter)">
+ @Html.LabelFor(m => m.Part.Record.FilterByProperty, T("Filter where"))
+ <select id="@Html.FieldIdFor(m => m.Part.Record.FilterByProperty)" name="@Html.FieldNameFor(m => m.Part.Record.FilterByProperty)">
+ @Html.SelectOption(Model.Part.Record.FilterByProperty, "CommonPart.CreatedUtx", T("Date Created").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByProperty, "CommonPart.PublishedUtc", T("Date Published").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByProperty, "TitlePart.Title", T("Title (Title Part)").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByProperty, "CustomPropertiesPart.CustomOne", T("Custom 1").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByProperty, "CustomPropertiesPart.CustomTwo", T("Custom 2").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByProperty, "CustomPropertiesPart.CustomThree", T("Custom 3").Text)
+ </select>
+ <select title="@T("Filter operator")" id="@Html.FieldIdFor(m => m.Part.Record.FilterByOperator)" name="@Html.FieldNameFor(m => m.Part.Record.FilterByOperator)">
+ @Html.SelectOption(Model.Part.Record.FilterByOperator, "=", T("is equal to").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByOperator, "<", T("is less than").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByOperator, ">", T("is greater than").Text)
+ @Html.SelectOption(Model.Part.Record.FilterByOperator, "^=", T("starts with").Text)
+ </select>
+ <span>
+ @Html.TextBoxFor(m => m.Part.Record.FilterByValue, new { @class = "text", title = T("Filter value") })
+ </span>
+ </div>
+</fieldset>
13 site/Core/Containers/Views/EditorTemplates/CustomProperties.cshtml
View
@@ -0,0 +1,13 @@
+@model Orchard.Core.Containers.Models.CustomPropertiesPart
+<fieldset>
+ @Html.LabelFor(m => m.Record.CustomOne, T("Custom One"))
+ @Html.EditorFor(m => m.Record.CustomOne)
+</fieldset>
+<fieldset>
+ @Html.LabelFor(m => m.Record.CustomTwo, T("Custom Two"))
+ @Html.EditorFor(m => m.Record.CustomTwo)
+</fieldset>
+<fieldset>
+ @Html.LabelFor(m => m.Record.CustomThree, T("Custom Three"))
+ @Html.EditorFor(m => m.Record.CustomThree)
+</fieldset>
3  site/Core/Containers/Views/Parts.Container.Contained.cshtml
View
@@ -0,0 +1,3 @@
+@Display(Model.List)
+
+@Display(Model.Pager)
6 site/Core/Containers/Views/Parts.ContainerWidget.cshtml
View
@@ -0,0 +1,6 @@
+@{
+ IEnumerable<object> items = Model.ContentItems;
+ Model.ContentItems.Classes.Add("content-items");
+ Model.ContentItems.Classes.Add("list-items");
+}
+@Display(items)
17 site/Core/Contents/Module.txt
View
@@ -0,0 +1,17 @@
+Name: Contents
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.2
+OrchardVersion: 1.4.2
+Description: The contents module enables the creation of custom content types.
+Features:
+ Contents
+ Name: Contents
+ Description: Default custom content type definition, creation and management.
+ Category: Core
+ Contents.ControlWrapper:
+ Name: Content Control Wrapper
+ Description: Add an Edit button on the front-end for authenticated users
+ Category: Content
+ Dependencies: Contents
17 site/Core/Contents/Placement.info
View
@@ -0,0 +1,17 @@
+<Placement>
+ <!-- available display shapes -->
+ <!--
+ Parts_Contents_Publish
+ Parts_Contents_Publish_Summary
+ Parts_Contents_Publish_SummaryAdmin
+ -->
+ <!-- edit "shape" -->
+ <Place Content_PublishButton="Sidebar:24"/>
+ <Place Content_SaveButton="Sidebar:23"/>
+ <Match DisplayType="Detail">
+ <Place Parts_Contents_Publish="Content:5"/>
+ </Match>
+ <Match DisplayType="SummaryAdmin">
+ <Place Parts_Contents_Publish_SummaryAdmin="Actions:5"/>
+ </Match>
+</Placement>
25 site/Core/Contents/Styles/Web.config
View
@@ -0,0 +1,25 @@
+<?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>
+ <staticContent>
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
+ </staticContent>
+
+ <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  site/Core/Contents/Styles/images/menu.content.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 site/Core/Contents/Styles/menu.content-admin.css
View
@@ -0,0 +1,16 @@
+.navicon-content {
+background-image:url(images/menu.content.png) !important;
+}
+.navicon-content:hover {
+background-position:0 -30px !important;
+}
+.section-new .menuItems a {
+background-image:url(images/menu.content.png);
+}
+/* subnav */
+#menu .menu-admin .section-new .menuItems a {
+background-position:0 4px;
+}
+#menu .menu-admin .section-new .menuItems a:hover, #menu .menu-admin .section-new .menuItems .selected a {
+background-position:0 -28px;
+}
5 site/Core/Contents/Views/Admin/CreatableTypeList.cshtml
View
@@ -0,0 +1,5 @@
+@{ Layout.Title = T("Create New Content").ToString(); }
+
+@foreach (var type in Model.ContentTypes) {
+ <p>@Html.ActionLink((string)type.DisplayName, "Create", new { Area = "Contents", Id = (string)type.Name, ContainerId = Model.ContainerId, ReturnUrl = Request.QueryString["ReturnUrl"] })</p>
+}
12 site/Core/Contents/Views/Admin/Create.cshtml
View
@@ -0,0 +1,12 @@
+@{
+ var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
+ var pageTitle = T("New {0}", typeDisplayName);
+
+ Layout.Title = (string)pageTitle.Text;
+}
+
+@using (Html.BeginFormAntiForgeryPost(Url.Action("Create", new { ReturnUrl = Request.QueryString["ReturnUrl"] }))) {
+ @Html.ValidationSummary()
+ // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
+ @Display(Model)
+}
15 site/Core/Contents/Views/Admin/Edit.cshtml
View
@@ -0,0 +1,15 @@
+@{
+ var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
+ var pageTitle = T("Edit Content");
+ if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
+ pageTitle = T("Edit {0}", typeDisplayName);
+ }
+
+ Layout.Title = pageTitle;
+}
+
+@using (Html.BeginFormAntiForgeryPost()) {
+ @Html.ValidationSummary()
+ // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
+ @Display(Model)
+}
48 site/Core/Contents/Views/Admin/List.cshtml
View
@@ -0,0 +1,48 @@
+@using Orchard.Core.Contents.ViewModels;
+@{
+ var typeDisplayName = Model.TypeDisplayName;
+ var pageTitle = T("Manage Content");
+ var createLinkText = T("Create New Content");
+ if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
+ pageTitle = T("Manage {0} Content", typeDisplayName);
+ createLinkText = T("Create New {0}", typeDisplayName);
+ }
+
+ Layout.Title = pageTitle;
+}
+
+<div class="manage">
+ @Html.ActionLink(createLinkText.Text, "Create", new { Area = "Contents", Id = (string)Model.Options.SelectedFilter }, new { @class = "button primaryAction" })
+</div>
+@using (Html.BeginFormAntiForgeryPost()) {
+ <fieldset class="bulk-actions">
+ <label for="publishActions">@T("Actions:")</label>
+ <select id="publishActions" name="Options.BulkAction">
+ @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.None, T("Choose action...").ToString())
+ @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.PublishNow, T("Publish Now").ToString())
+ @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.Unpublish, T("Unpublish").ToString())
+ @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.Remove, T("Delete").ToString())
+ </select>
+ <button type="submit" name="submit.BulkEdit" value="yes">@T("Apply")</button>
+ </fieldset>
+ <fieldset class="bulk-actions">
+ <label for="filterResults" class="bulk-filter">@T("Show")</label>
+ <select id="filterResults" name="Options.SelectedFilter">
+ @Html.SelectOption((string)Model.Options.SelectedFilter, "", T("any (show all)").ToString())
+ @foreach(var filterOption in Model.Options.FilterOptions) {
+ @Html.SelectOption((string)Model.Options.SelectedFilter, (string)filterOption.Key, (string)filterOption.Value)
+ }
+ </select>
+ <label for="orderResults" class="bulk-order">@T("Ordered by")</label>
+ <select id="orderResults" name="Options.OrderBy">
+ @Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Created, T("recently created").ToString())
+ @Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Modified, T("recently modified").ToString())
+ @Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Published, T("recently published").ToString())
+ </select>
+ <button type="submit" name="submit.Filter" value="yes please">@T("Apply")</button>
+ </fieldset>
+ <fieldset class="contentItems bulk-items">
+@Display(Model.ContentItems)
+ </fieldset>
+@Display(Model.Pager)
+}
11 site/Core/Contents/Views/Content.ControlWrapper.cshtml
View
@@ -0,0 +1,11 @@
+@using Orchard.ContentManagement;
+@using Orchard.Core.Contents;
+@if (AuthorizedFor(Permissions.EditContent) && Model.ContentItem.Id > 0) {
+ <div class="content-control">
+ <div class="manage-actions">@Html.ItemEditLinkWithReturnUrl(T("Edit").Text, (ContentItem)Model.ContentItem)</div>
+ @Display(Model.Child)
+ </div>
+}
+else {
+ @Display(Model.Child)
+}
21 site/Core/Contents/Views/Content.Edit.cshtml
View
@@ -0,0 +1,21 @@
+<div class="edit-item">
+ <div class="edit-item-primary">
+ @if (Model.Content != null) {
+ <div class="edit-item-content">
+ @Display(Model.Content)
+ </div>
+ }
+ </div>
+ <div class="edit-item-secondary group">
+ @if (Model.Actions != null) {
+ <div class="edit-item-actions">
+ @Display(Model.Actions)
+ </div>
+ }
+ @if (Model.Sidebar != null) {
+ <div class="edit-item-sidebar group">
+ @Display(Model.Sidebar)
+ </div>
+ }
+ </div>
+</div>
3  site/Core/Contents/Views/Content.PublishButton.cshtml
View
@@ -0,0 +1,3 @@
+<fieldset class="publish-button">
+ <button type="submit" name="submit.Publish" value="submit.Publish">@T("Publish Now")</button>
+</fieldset>
3  site/Core/Contents/Views/Content.SaveButton.cshtml
View
@@ -0,0 +1,3 @@
+<fieldset class="save-button">
+ <button class="primaryAction" type="submit" name="submit.Save" value="submit.Save">@T("Save")</button>
+</fieldset>
20 site/Core/Contents/Views/Content.Summary.cshtml
View
@@ -0,0 +1,20 @@
+@using Orchard.Utility.Extensions;
+@{
+ var contentTypeClassName = ((string)Model.ContentItem.ContentType).HtmlClassify();
+}
+<article class="content-item @contentTypeClassName">
+ <header>
+ @Display(Model.Header)
+ @if (Model.Meta != null) {
+ <div class="metadata">
+ @Display(Model.Meta)
+ </div>
+ }
+ </header>
+ @Display(Model.Content)
+ @if(Model.Footer != null) {
+ <footer>
+ @Display(Model.Footer)
+ </footer>
+ }
+</article>
31 site/Core/Contents/Views/Content.SummaryAdmin.cshtml
View
@@ -0,0 +1,31 @@
+@using Orchard.ContentManagement;
+@using Orchard.Core.Contents
+@using Orchard.Utility.Extensions;
+@{
+ ContentItem contentItem = Model.ContentItem;
+ var returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString();
+}
+<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
+ <div class="properties">
+ <input type="checkbox" value="@contentItem.Id" name="itemIds"/>
+ <h3>@Html.ItemAdminLink(contentItem)</h3> - <div class="contentType">@contentItem.TypeDefinition.DisplayName</div>
+ @if (Model.Header != null) {
+ <div class="header">@Display(Model.Header)</div>
+ }
+ @if (Model.Meta != null) {
+ <div class="metadata">@Display(Model.Meta)</div>
+ }
+ </div>
+ <div class="related">
+ @Display(Model.Actions)
+ @if (Authorizer.Authorize(Permissions.EditContent, contentItem)) {
+ @Html.ItemEditLink(T("Edit").Text, contentItem)@T(" | ")
+ }
+ @if (Authorizer.Authorize(Permissions.DeleteContent, contentItem)) {
+ @Html.Link(T("Delete").Text, Url.ItemRemoveUrl(contentItem, new {returnUrl}), new {itemprop = "RemoveUrl UnsafeUrl"})
+ }
+ </div>
+ @if (Model.Content != null) {
+ <div class="primary">@Display(Model.Content)</div>
+ }
+</div>
24 site/Core/Contents/Views/Content.cshtml
View
@@ -0,0 +1,24 @@
+@using Orchard.Utility.Extensions;
+@{
+ if (Model.Title != null) {
+ Layout.Title = Model.Title;
+ }
+
+ var contentTypeClassName = ((string)Model.ContentItem.ContentType).HtmlClassify();
+}
+<article class="content-item @contentTypeClassName">
+ <header>
+ @Display(Model.Header)
+ @if (Model.Meta != null) {
+ <div class="metadata">
+ @Display(Model.Meta)
+ </div>
+ }
+ </header>
+ @Display(Model.Content)
+ @if(Model.Footer != null) {
+ <footer>
+ @Display(Model.Footer)
+ </footer>
+ }
+</article>
36 site/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml
View
@@ -0,0 +1,36 @@
+@using Orchard.ContentManagement;
+@using Orchard.Core.Contents
+@using Orchard.Utility.Extensions;
+@{
+ Script.Require("ShapesBase");
+ ContentPart contentPart = Model.ContentPart;
+}
+@if (contentPart.HasPublished()) {
+ @Html.ItemDisplayLink(T("View").Text, (ContentItem)Model.ContentPart.ContentItem)
+ @T(" | ")
+
+ if (contentPart.HasDraft()) {
+ @Html.Link(T("Publish Draft").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
+ @T(" | ")
+
+ if (Authorizer.Authorize(Permissions.PublishContent, contentPart)) {
+ @Html.ActionLink(T("Preview").Text, "Preview", "Item", new {area = "Contents", id = ((ContentItem) Model.ContentPart.ContentItem).Id}, new {})
+ @T(" | ")
+ }
+ }
+
+ if (Authorizer.Authorize(Permissions.PublishContent, contentPart)) {
+ @Html.Link(T("Unpublish").Text, Url.Action("Unpublish", "Admin", new {area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString()}), new {itemprop = "UnsafeUrl"})
+ @T(" | ")
+ }
+} else {
+ if ( contentPart.HasDraft() ) {
+ @Html.ActionLink(T("Preview").Text, "Preview", "Item", new { area = "Contents", id = ((ContentItem)Model.ContentPart.ContentItem).Id }, new { })
+ @T(" | ")
+ }
+
+ if (Authorizer.Authorize(Permissions.PublishContent, contentPart)) {
+ @Html.Link(T("Publish").Text, Url.Action("Publish", "Admin", new {area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString()}), new {itemprop = "UnsafeUrl"})
+ @T(" | ")
+ }
+}
1  site/Core/Contents/Views/Parts.Contents.Publish.cshtml
View
@@ -0,0 +1 @@
+
41 site/Core/Contents/Views/Web.config
View
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+ <appSettings>
+ <add key="webpages:Enabled" value="false" />
+ </appSettings>
+ <system.web>
+ <httpHandlers>
+ </httpHandlers>
+
+ <!--
+ Enabling request validation in view pages would cause validation to occur
+ after the input has already been processed by the controller. By default
+ MVC performs request validation before a controller processes the input.
+ To change this behavior apply the ValidateInputAttribute to a
+ controller or action.
+ -->
+ <pages
+ validateRequest="false"
+ pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <controls>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
+ </controls>
+ </pages>
+ </system.web>
+
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <handlers>
+ </handlers>
+ </system.webServer>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration>
9 site/Core/Dashboard/Module.txt
View
@@ -0,0 +1,9 @@
+Name: Dashboard
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.2
+OrchardVersion: 1.4.2
+Description: The dashboard module is providing the dashboard screen of the admininstration UI of the application.
+FeatureDescription: Standard admin dashboard.
+Category: Core
40 site/Core/Dashboard/Views/Admin/Index.cshtml
View
@@ -0,0 +1,40 @@
+@model dynamic
+@{ Layout.Title = T("Welcome to Orchard").ToString(); }
+<section class="dashboard group">
+ <div class="help-item">
+ <h2 class="start">@T("Get up and running")</h2>
+ <p>@T(@"Start by exploring the menu on the left and familiarize yourself with Orchard. As for the basics, we suggest <a href=""{0}"">changing the theme</a>, <a href=""{1}"">adding some pages</a>, <a href=""{2}"">setup up a blog</a>, and <a href=""{3}"">configuring basic settings</a>.",
+ Url.Action("Index", "Admin", new { area = "Orchard.Themes" }),
+ Url.Action("Create", "Admin", new { area = "Contents", id = "Page" }),
+ Url.Action("Create", "BlogAdmin", new { area = "Orchard.Blogs" }),
+ Url.Action("Index", "Admin", new { area = "Settings", groupInfoId = "Index" }))</p>
+ </div>
+ <div class="help-item">
+ <h2 class="gallery">@T("Get more goodies")</h2>
+ <p>@T(@"Change the way your site works and looks with <a href=""{0}"">themes</a> and <a href=""{1}"">modules</a>. There’s plenty to choose from in the <a href=""http://orchardproject.net/gallery"">Orchard Gallery</a>. We’re always adding things, so be sure to check back often to see what’s new.",
+ Url.Action("Themes", "Gallery", new { area = "Orchard.Packaging" }),
+ Url.Action("Modules", "Gallery", new { area = "Orchard.Packaging" }))
+ </p>
+ </div>
+ <div class="help-item">
+ <h2 class="docs">@T("Read the Docs")</h2>
+ <p>@T(@"Are you ready to go deeper and become an Orchard expert? Take a look at the <a href=""http://orchardproject.net/docs/"">Orchard Documentation Wiki</a> to learn about how everything connects together and what makes Orchard tick.")</p>
+ </div>
+ <div class="help-item">
+ <h2 class="friends">@T("Make friends")</h2>
+ <p>@T(@"Find friends that share your interest of Orchard. There are a couple ways that you can <a href=""http://orchardproject.net/discussions"">discuss and get connected</a> to the project including mailing lists, forums and IRC.")</p>
+ </div>
+ <div class="help-item">
+ <h2 class="contribute">@T("Contribute back")</h2>
+ <p>@T(@"Help grow Orchard. We encourage contributions of all sorts, including code submissions, documentation, translations, feature recommendations, and more.Here are some ways to <a href=""http://orchardproject.net/contribution"">give back to the project</a>.")</p>
+ </div>
+
+<div class="help-item">
+ <h2 class="advisory">@T("Stay up to date")</h2>
+<iframe id="advisory" src="http://www.orchardproject.net/advisory" frameborder="0" height="100%" width="100%" scrolling="no">
+ <p>@T("Your browser does not support iframes. You can't see advisory messages.")</p>
+</iframe>
+</div>
+</section>
+
+
41 site/Core/Dashboard/Views/Web.config
View
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+ <appSettings>
+ <add key="webpages:Enabled" value="false" />
+ </appSettings>
+ <system.web>
+ <httpHandlers>
+ </httpHandlers>
+
+ <!--
+ Enabling request validation in view pages would cause validation to occur
+ after the input has already been processed by the controller. By default
+ MVC performs request validation before a controller processes the input.
+ To change this behavior apply the ValidateInputAttribute to a
+ controller or action.
+ -->
+ <pages
+ validateRequest="false"
+ pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <controls>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
+ </controls>
+ </pages>
+ </system.web>
+
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <handlers>
+ </handlers>
+ </system.webServer>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration>
25 site/Core/Dashboard/styles/Web.config
View
@@ -0,0 +1,25 @@
+<?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>
+ <staticContent>
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
+ </staticContent>
+
+ <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  site/Core/Dashboard/styles/images/menu.dashboard.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 site/Core/Dashboard/styles/menu.dashboard-admin.css
View
@@ -0,0 +1,6 @@
+.navicon-dashboard {
+background-image:url(images/menu.dashboard.png) !important;
+}
+.navicon-dashboard:hover {
+background-position:0 -30px !important;
+}
9 site/Core/Feeds/Module.txt
View
@@ -0,0 +1,9 @@
+Name: Feeds
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.2
+OrchardVersion: 1.4.2
+Description: The Feeds module is providing RSS feeds to content items.
+FeatureDescription: RSS feeds for content items.
+Category: Syndication
1  site/Core/Feeds/Views/Feed.cshtml
View
@@ -0,0 +1 @@
+@Model.FeedManager.GetRegisteredLinks(Html)
9 site/Core/Navigation/Module.txt
View
@@ -0,0 +1,9 @@
+Name: Navigation
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.2
+OrchardVersion: 1.4.2
+Description: The navigation module creates and manages a simple navigation menu for the front-end of the application and allows you to add content items to the admin menu.
+FeatureDescription: Menu management.
+Category: Core
4 site/Core/Navigation/Placement.info
View
@@ -0,0 +1,4 @@
+<Placement>
+ <Place Parts_Navigation_Menu_Edit="Content:9"/>
+ <Place Parts_Navigation_AdminMenu_Edit="Content:9.1"/>
+</Placement>
25 site/Core/Navigation/Styles/Web.config
View
@@ -0,0 +1,25 @@
+<?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>
+ <staticContent>
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
+ </staticContent>
+
+ <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  site/Core/Navigation/Styles/images/menu.navigation.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 site/Core/Navigation/Styles/menu.navigation-admin.css
View
@@ -0,0 +1,6 @@
+.navicon-navigation {
+background-image:url(images/menu.navigation.png) !important;
+}
+.navicon-navigation:hover {
+background-position:0 -30px !important;
+}
69 site/Core/Navigation/Views/Admin/Index.cshtml
View
@@ -0,0 +1,69 @@
+@model NavigationManagementViewModel
+@using Orchard.ContentManagement;
+@using Orchard.Core.Navigation.Models;
+@using Orchard.Core.Navigation.ViewModels;
+
+@{ Layout.Title = T("Navigation").ToString(); }
+
+@using (Html.BeginFormAntiForgeryPost()) {
+<table class="items">
+ <colgroup>
+ <col id="Text" />
+ <col id="Position" />
+ <col id="Url" />
+ <col id="Actions" />
+ </colgroup>
+ <thead>
+ <tr>
+ <td scope="col">@T("Text")</td>
+ <td scope="col">@T("Position")</td>
+ <td scope="col">@T("Url")</td>
+ <td scope="col"></td>
+ </tr>
+ </thead>
+ <tbody>@{
+ var menuPartEntryIndex = 0;
+ foreach (var menuPartEntry in Model.MenuItemEntries) {
+ var i = menuPartEntryIndex;
+ <tr>
+ <td><input type="text" class="text-box" name="@Html.NameOf(m => m.MenuItemEntries[i].Text)" value="@menuPartEntry.Text" /></td>
+ <td><input type="text" class="text-box" name="@Html.NameOf(m => m.MenuItemEntries[i].Position)" value="@menuPartEntry.Position" /></td>
+ <td>@if (!menuPartEntry.IsMenuItem) {<input type="text" class="text-box disabled" disabled="disabled" value="@menuPartEntry.Url" /> } else {<input type="text" class="text-box" name="@Html.NameOf(m => m.MenuItemEntries[i].Url)" value="@menuPartEntry.Url" />}</td>
+ <td><input type="hidden" name="@Html.NameOf(m => m.MenuItemEntries[i].MenuItemId)" value="@menuPartEntry.MenuItemId" />@Html.ActionLink(T("Delete").Text, "Delete", new { id = menuPartEntry.MenuItemId }, new { @class="remove", itemprop="RemoveUrl UnsafeUrl" })</td>
+ </tr>
+ ++menuPartEntryIndex;
+ }
+ }
+ </tbody>
+</table>
+<fieldset class="actions"><button type="submit" class="button">@T("Update All")</button></fieldset>
+}
+
+<h2>@T("Add New Item")</h2>
+@using (Html.BeginFormAntiForgeryPost(Url.Action("create"), FormMethod.Post)) {
+<table class="menu items">
+ <colgroup>
+ <col id="AddText" />
+ <col id="AddPosition" />
+ <col id="AddUrl" />
+ <col id="AddActions" />
+ </colgroup>
+ <tbody>
+ <tr>
+ <td>
+ <label for="MenuText">@T("Text")</label>
+ @Html.EditorFor(m => m.NewMenuItem.Text)
+ </td>
+ <td>
+ <label for="MenuPosition">@T("Position")</label>
+ @Html.EditorFor(m => m.NewMenuItem.Position)
+ </td>
+ <td>
+ <label for="Url">@T("Url")</label>
+ @Html.EditorFor(m => m.NewMenuItem.Url)
+ </td>
+ <td><button class="add" type="submit">@T("Add")</button></td>
+ </tr>
+ </tbody>
+</table>
+}
6 site/Core/Navigation/Views/DefinitionTemplates/AdminMenuPartTypeSettings.cshtml
View
@@ -0,0 +1,6 @@
+@model Orchard.Core.Navigation.Settings.AdminMenuPartTypeSettings
+ <fieldset>
+ <label for="@Html.FieldIdFor(m => m.DefaultPosition)">@T("Default Position")</label>
+ @Html.EditorFor(m => m.DefaultPosition)
+ @Html.ValidationMessageFor(m => m.DefaultPosition)
+ </fieldset>
16 site/Core/Navigation/Views/EditorTemplates/Parts.Navigation.AdminMenu.Edit.cshtml
View
@@ -0,0 +1,16 @@
+@model AdminMenuPart
+@using Orchard.Core.Navigation.Models;
+@{
+ Script.Require("ShapesBase");
+}
+<fieldset>
+ @Html.EditorFor(m => m.OnAdminMenu)
+ <label for="OnAdminMenu" class="forcheckbox">@T("Show on admin menu")</label>
+ <div data-controllerid="OnAdminMenu" class="">
+ <label for="AdminMenuText">@T("Menu text")</label>
+ @Html.TextBoxFor(m => m.AdminMenuText, new { @class = "text-box single-line" })
+
+ <label for="AdminMenuPosition">@T("Position")</label>
+ @Html.TextBoxFor(m => m.AdminMenuPosition, new { @class = "text-box single-line" })
+ </div>
+</fieldset>
13 site/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml
View
@@ -0,0 +1,13 @@
+@model MenuPart
+@using Orchard.Core.Navigation.Models;
+@{
+ Script.Require("ShapesBase");
+}
+<fieldset>
+ @Html.EditorFor(m => m.OnMainMenu)
+ <label for="OnMainMenu" class="forcheckbox">@T("Show on main menu")</label>
+ <div data-controllerid="OnMainMenu" class="">
+ <label for="MenuText">@T("Menu text")</label>
+ @Html.TextBoxFor(m => m.MenuText, new { @class = "text-box single-line" })
+ </div>
+</fieldset>
41 site/Core/Navigation/Views/Web.config
View
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+ <appSettings>
+ <add key="webpages:Enabled" value="false" />
+ </appSettings>
+ <system.web>
+ <httpHandlers>
+ </httpHandlers>
+
+ <!--
+ Enabling request validation in view pages would cause validation to occur
+ after the input has already been processed by the controller. By default
+ MVC performs request validation before a controller processes the input.
+ To change this behavior apply the ValidateInputAttribute to a
+ controller or action.
+ -->
+ <pages
+ validateRequest="false"
+ pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <controls>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
+ </controls>
+ </pages>
+ </system.web>
+
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <handlers>
+ </handlers>
+ </system.webServer>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+ <bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+</configuration>
9 site/Core/Reports/Module.txt
View
@@ -0,0 +1,9 @@
+Name: Reports
+AntiForgery: enabled
+Author: The Orchard Team
+Website: http://orchardproject.net
+Version: 1.4.2
+OrchardVersion: 1.4.2
+Description: The dashboard module is providing the reports screen of the application.
+FeatureDescription: Reports management.
+Category: Core
25 site/Core/Reports/Styles/Web.config
View
@@ -0,0 +1,25 @@
+<?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>
+ <staticContent>
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
+ </staticContent>
+
+ <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  site/Core/Reports/Styles/images/menu.reports.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 site/Core/Reports/Styles/menu.reports-admin.css
View
@@ -0,0 +1,6 @@
+.navicon-reports {
+background-image:url(images/menu.reports.png) !important;
+}
+.navicon-reports:hover {
+background-position:0 -30px !important;
+}
39 site/Core/Reports/Views/Admin/Display.cshtml
View
@@ -0,0 +1,39 @@
+@model DisplayReportViewModel
+@using Orchard.Core.Reports.ViewModels;
+
+@{ Layout.Title = T("Display Report").ToString(); }
+
+@using(Html.BeginFormAntiForgeryPost()) {
+ @Html.ValidationSummary()
+ <fieldset>
+ <table class="items" summary="@T("This is a table of the reports in your application")">
+ <colgroup>
+ <col id="Col1" />
+ <col id="Col2" />
+ <col id="Col3" />
+ <col id="Col4" />
+ </colgroup>
+ <thead>
+ <tr>
+ <th scope="col">@T("Type")</th>
+ <th scope="col">@T("Message")</th>
+ <th scope="col">@T("Date")</th>
+ <th scope="col"></th>
+ </tr>
+ </thead>
+ @foreach (var reportEntry in Model.Report.Entries) {
+ <tr>
+ <td>
+ @reportEntry.Type
+ </td>
+ <td>
+ @reportEntry.Message
+ </td>
+ <td>
+ @reportEntry.Utc.ToLocalTime().ToShortDateString() @reportEntry.Utc.ToLocalTime().ToShortTimeString()
+ </td>
+ </tr>
+ }
+ </table>
+ </fieldset>
+}
39 site/Core/Reports/Views/Admin/Index.cshtml
View
@@ -0,0 +1,39 @@
+@model ReportsAdminIndexViewModel
+@using Orchard.Core.Reports.ViewModels;
+
+@{ Layout.Title = T("Reports").ToString(); }
+
+@using(Html.BeginFormAntiForgeryPost()) {
+ @Html.ValidationSummary()
+ <fieldset>
+ <table class="items" summary="@T("This is a table of the reports in your application")">
+ <colgroup>
+ <col id="Col1" />
+ <col id="Col2" />
+ <col id="Col3" />
+ <col id="Col4" />
+ </colgroup>
+ <thead>
+ <tr>
+ <th scope="col">@T("Name")</th>
+ <th scope="col">@T("Title")</th>
+ <th scope="col">@T("Date")</th>
+ <th scope="col"></th>
+ </tr>
+ </thead>
+ @foreach (var report in Model.Reports) {
+ <tr>
+ <td>
+ @Html.ActionLink(report.ActivityName, "Display", new {id = report.ReportId})
+ </td>
+ <td>
+ @report.Title
+ </td>
+ <td>
+ @report.Utc.ToLocalTime().ToShortDateString() @report.Utc.ToLocalTime().ToShortTimeString()
+ </td>
+ </tr>
+ }
+ </table>
+ </fieldset>
+}
41 site/Core/Reports/Views/Web.config
View
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<configuration>
+ <appSettings>
+ <add key="webpages:Enabled" value="false" />
+ </appSettings>
+ <system.web>
+ <httpHandlers>
+ </httpHandlers>
+
+ <!--
+ Enabling request validation in view pages would cause validation to occur
+ after the input has already been processed by the controller. By default
+ MVC performs request validation before a controller processes the input.
+ To change this behavior apply the ValidateInputAttribute to a
+ controller or action.
+ -->
+ <pages
+ validateRequest="false"
+ pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
+ userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <controls>
+ <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
+ </controls>
+ </pages>
+ </system.web>
+
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration=&qu