Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 1,780 files changed
  • 0 comments
  • 1 contributor
May 30, 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 1,780 changed files with 14,427 additions and 0 deletions. Show diff stats Hide diff stats

  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
  301. +16 0 site/Modules/Orchard.Blogs/Scripts/orchard-blogs-archives.js
  302. +68 0 site/Modules/Orchard.Blogs/Security/BlogAuthorizationEventHandler.cs
  303. +136 0 site/Modules/Orchard.Blogs/Services/BlogPostService.cs
  304. +45 0 site/Modules/Orchard.Blogs/Services/BlogService.cs
  305. +25 0 site/Modules/Orchard.Blogs/Services/IBlogPostService.cs
  306. +13 0 site/Modules/Orchard.Blogs/Services/IBlogService.cs
  307. +382 0 site/Modules/Orchard.Blogs/Services/XmlRpcHandler.cs
  308. +25 0 site/Modules/Orchard.Blogs/Styles/Web.config
  309. BIN  site/Modules/Orchard.Blogs/Styles/images/menu.blog.png
  310. +6 0 site/Modules/Orchard.Blogs/Styles/menu.blog-admin.css
  311. +3 0  site/Modules/Orchard.Blogs/Styles/orchard-blogs-admin.css
  312. +68 0 site/Modules/Orchard.Blogs/Styles/orchard-blogs-archives.css
  313. +9 0 site/Modules/Orchard.Blogs/ViewModels/BlogArchivesViewModel.cs
  314. +16 0 site/Modules/Orchard.Blogs/ViewModels/RecentBlogPostsViewModel.cs
  315. +3 0  site/Modules/Orchard.Blogs/Views/Blog.DeleteButton.cshtml
  316. +8 0 site/Modules/Orchard.Blogs/Views/Blog/List.cshtml
  317. +7 0 site/Modules/Orchard.Blogs/Views/BlogAdmin/Create.cshtml
  318. +7 0 site/Modules/Orchard.Blogs/Views/BlogAdmin/Edit.cshtml
  319. +5 0 site/Modules/Orchard.Blogs/Views/BlogAdmin/Item.cshtml
  320. +25 0 site/Modules/Orchard.Blogs/Views/BlogAdmin/List.cshtml
  321. +10 0 site/Modules/Orchard.Blogs/Views/BlogPost/ListByArchive.cshtml
  322. +7 0 site/Modules/Orchard.Blogs/Views/BlogPostAdmin/Create.cshtml
  323. +7 0 site/Modules/Orchard.Blogs/Views/BlogPostAdmin/Edit.cshtml
  324. +9 0 site/Modules/Orchard.Blogs/Views/Content-Blog.DetailAdmin.cshtml
  325. +25 0 site/Modules/Orchard.Blogs/Views/Content-Blog.Edit.cshtml
  326. +5 0 site/Modules/Orchard.Blogs/Views/EditorTemplates/Parts.Blogs.Blog.Fields.cshtml
  327. +16 0 site/Modules/Orchard.Blogs/Views/EditorTemplates/Parts.Blogs.BlogArchives.cshtml
  328. +21 0 site/Modules/Orchard.Blogs/Views/EditorTemplates/Parts.Blogs.RecentBlogPosts.cshtml
  329. +1 0  site/Modules/Orchard.Blogs/Views/Parts.Blogs.Blog.BlogPostCount.cshtml
  330. +5 0 site/Modules/Orchard.Blogs/Views/Parts.Blogs.Blog.Description.cshtml
  331. +10 0 site/Modules/Orchard.Blogs/Views/Parts.Blogs.Blog.Manage.cshtml
  332. +10 0 site/Modules/Orchard.Blogs/Views/Parts.Blogs.Blog.SummaryAdmin.cshtml
  333. +40 0 site/Modules/Orchard.Blogs/Views/Parts.Blogs.BlogArchives.cshtml
Sorry, we could not display the entire diff because too many files (1,780) changed.
1  .gitignore
... ... @@ -0,0 +1 @@
  1 +/site/App_Data/*
209 site/CREDITS.txt
... ... @@ -0,0 +1,209 @@
  1 +Orchard Project
  2 +ASP.NET Open Source Gallery at Outercurve Foundation
  3 +Copyright 2009-2011 Outercurve Foundation
  4 +
  5 +This product includes software developed at
  6 +The Outercurve Foundation (http://www.outercurve.org/).
  7 +
  8 +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.
  9 +
  10 +Akismet.Net
  11 +-----
  12 +Website: http://www.codeplex.com/wikipage?ProjectName=AkismetApi
  13 +Copyright: Copyright (c) 2006, Joel Thoms
  14 +License: New BSD
  15 +
  16 +Antlr
  17 +-----
  18 +Website: http://www.antlr.org/
  19 +Copyright: Copyright (c) 2003-2008 Terence Parr
  20 +License: New BSD
  21 +
  22 +ASP.NET MVC
  23 +-----
  24 +Website: http://aspnet.codeplex.com/wikipage?title=MVC&referringTitle=Home
  25 +Copyright: Copyright (c) 2008-2011 Microsoft Corporation
  26 +License: MICROSOFT ASP.NET MODEL VIEW CONTROLLER 3 EULA
  27 + http://go.microsoft.com/fwlink/?LinkID=207621
  28 +
  29 +Autofac
  30 +-----
  31 +Website: http://code.google.com/p/autofac/
  32 +Copyright: Copyright (c) 2007-2008 Autofac Contributors
  33 + http://code.google.com/p/autofac/wiki/Contributing
  34 +License: MIT
  35 +
  36 +Autofac Contrib
  37 +-----
  38 +Website: http://code.google.com/p/autofac/
  39 +Copyright: Copyright (c) 2007-2008 Autofac Contributors
  40 +License: http://code.google.com/p/autofac/source/browse/trunk/contrib/AutofacContrib%20License.txt
  41 +
  42 +Castle
  43 +-----
  44 +Website: http://www.castleproject.org/container/index.html
  45 +Copyright: Copyright (c) 2004-2009 Castle Project
  46 +License: Apache Software Foundation License 2.0
  47 +
  48 +Clay
  49 +----
  50 +Website: http://clay.codeplex.com/
  51 +Copyright: Copyright (c) 2010 Louis Dejardin
  52 +License: MS-PL
  53 +
  54 +CodeMirror
  55 +----------
  56 +Website: http://codemirror.net/2/
  57 +Copyright: Copyright (C) 2011 by Marijn Haverbeke
  58 +License: MIT
  59 +
  60 +DLR
  61 +---
  62 +Website: http://dlr.codeplex.com
  63 +Copyright: Copyright (c) Microsoft Corporation
  64 +License: Apache Software Foundation License 2.0
  65 +
  66 +Eric Meyer's Reset CSS
  67 +-----
  68 +Website: http://meyerweb.com/eric/tools/css/reset/
  69 +Copyright: Copyright (C) 1995-2005 Eric A. and Kathryn S. Meyer
  70 +License: Public domain
  71 +
  72 +Fam Fam Fam Silk Icons
  73 +-----
  74 +Website: http://famfamfam.com/lab/icons/silk/
  75 +Copyright: Copyright (c) 2005-2006 Mark James
  76 +License: CC Attribution 2.5 http://creativecommons.org/licenses/by/2.5/
  77 +
  78 +Fluent NHibernate
  79 +-----
  80 +Website: http://fluentnhibernate.org/
  81 +Copyright: Copyright (c) 2008-2009 James Gregory and contributors
  82 +License: New BSD
  83 +
  84 +FluentPath
  85 +-----
  86 +Website: http://fluentpath.codeplex.com/
  87 +Copyright: Copyright (c) 2011 Bertrand Le Roy
  88 +License: MS-PL
  89 +
  90 +Html Agility Pack
  91 +-----
  92 +Website: http://htmlagilitypack.codeplex.com/
  93 +Copyright: Copyright (c) 2003-20010 Simon Mourier
  94 +License: MS-PL
  95 +
  96 +html5shim
  97 +-----
  98 +Website: http://code.google.com/p/html5shim/
  99 +License: MIT
  100 +
  101 +IESI Collections
  102 +-----
  103 +Website: http://www.codeproject.com/KB/recipes/sets.aspx
  104 +Copyright: Copyright (c) 2002-2004 Jason Smith
  105 +License: http://www.codeproject.com/info/Licenses.aspx
  106 + distributed with NHibernate under LGPL 2.1
  107 +
  108 +jQuery
  109 +-----
  110 +Website: http://jquery.com
  111 +Copyright: Copyright (c) 2010 John Resig, http://jquery.com
  112 +License: MIT
  113 +
  114 +jQuery UI (Core, Widget, Datepicker)
  115 +-----
  116 +Website: http://docs.jquery.com/UI
  117 +Copyright: Copyright (c) 2010 lib/jquery.ui/AUTHORS.txt (http://jqueryui.com/about)
  118 +License: MIT
  119 +
  120 +jQuery ui.timepickr, jQuery utils
  121 +-----
  122 +Website: http://code.google.com/p/jquery-utils/
  123 +Copyright: Copyright (c) Maxime Haineault (http://haineault.com)
  124 +License: MIT
  125 +
  126 +jQuery ScrollTo
  127 +-----
  128 +Website: http://flesler.blogspot.com
  129 +Copyright: Copyright (c) 2007-2009 Ariel Flesler
  130 +License: MIT
  131 +
  132 +Log4Net
  133 +-----
  134 +Website: http://logging.apache.org/log4net/index.html
  135 +Copyright: Copyright (c) 2007 Apache Software Foundation
  136 +License: Apache Software Foundation License 2.0
  137 +
  138 +Lucene.net
  139 +-----
  140 +Website: http://incubator.apache.org/projects/lucene.net.html
  141 +Copyright: Copyright (c) 2009 Apache Software Foundation
  142 +License: Apache Software Foundation License 2.0
  143 +
  144 +Moq
  145 +-----
  146 +Website: http://code.google.com/p/moq/
  147 +Copyright: Copyright (c) 2007. Clarius Consulting, Manas Technology Solutions, InSTEDD
  148 +License: New BSD
  149 +
  150 +NHibernate, NHibernate Linq
  151 +-----
  152 +Website: http://nhforge.org
  153 +Copyright: Copyright (C) 2003 - 2009 NHibernate Project
  154 +License: LGPL 2.1
  155 +
  156 +NHibernate Lambda Extensions
  157 +-----
  158 +Website: http://code.google.com/p/nhlambdaextensions/
  159 +Copyright: Unknown http://code.google.com/p/nhlambdaextensions/people/list
  160 +License: LGPL 2.1
  161 +
  162 +NuGet
  163 +-----
  164 +Website: http://nuget.codeplex.com
  165 +Copyright: Copyright 2010-2011 Outercurve Foundation
  166 +License: Apache Software Foundation License 2.0
  167 +
  168 +nUnit
  169 +-----
  170 +Website: http://www.nunit.org/index.php
  171 +Copyright: Copyright (c) 2002-2007 NUnit.org
  172 + 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
  173 +License: Derived from zlib: http://nunit.org/index.php?p=license&r=2.4
  174 +
  175 +SharpZipLib
  176 +-----
  177 +Website: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
  178 +Copyright: Copyright (c) 2000-2009 IC#Code
  179 +License: GPLv2 with Classpath Exception: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
  180 +
  181 +SpecFlow
  182 +-----
  183 +Website: http://www.specflow.org/
  184 +Copyright: Copyright (c) 2009 TechTalk
  185 +License: New BSD
  186 +
  187 +Microsoft SQL Server Compact 4.0
  188 +-----
  189 +Website: http://www.microsoft.com
  190 +Copyright: Copyright (c) 2011 Microsoft Corporation
  191 +License: Custom EULA - http://www.microsoft.com/web/webpi/eula/SQLCE_EULA_ENU.rtf
  192 +
  193 +TinyMCE
  194 +-----
  195 +WebSite: http://tinymce.moxiecode.com/
  196 +Copyright: Copyright (c) 2003-2009 Moxiecode Systems AB
  197 +License: LGPL 2.1
  198 +
  199 +WCat
  200 +-----
  201 +WebSite: http://www.iis.net/community/default.aspx?tabid=34&i=1466&g=6
  202 +Copyright: Copyright (c) 2007 Microsoft
  203 +License: "Free"
  204 +
  205 +YUI
  206 +-----
  207 +Website: http://developer.yahoo.com/yui/
  208 +Copyright: Copyright (c) 2010, Yahoo! Inc.
  209 +License: New BSD
25 site/Config/Sample.Host.config
... ... @@ -0,0 +1,25 @@
  1 +<?xml version="1.0" encoding="utf-8" ?>
  2 +<configuration>
  3 +
  4 + <configSections>
  5 + <section name="autofac" type="Autofac.Configuration.SectionHandler, Autofac.Configuration"/>
  6 + </configSections>
  7 +
  8 + <autofac defaultAssembly="Orchard.Framework">
  9 + <components>
  10 +
  11 + <component instance-scope="single-instance"
  12 + type="Orchard.Environment.Configuration.AzureBlobTenantManager"
  13 + service="Orchard.Environment.Configuration.IShellSettingsManager">
  14 + <parameters>
  15 + <parameter name="account" value="devstoreaccount1"/>
  16 + <parameter name="key" value="Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="/>
  17 + <parameter name="container" value="mycontainer"/>
  18 + </parameters>
  19 + </component>
  20 +
  21 + </components>
  22 + </autofac>
  23 +
  24 +</configuration>
  25 +
10 site/Config/Sample.HostComponents.config
... ... @@ -0,0 +1,10 @@
  1 +<?xml version="1.0" encoding="utf-8" ?>
  2 +<HostComponents>
  3 + <Components>
  4 + <Component Type="Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader">
  5 + <Properties>
  6 + <Property Name="Disabled" Value="true"/>
  7 + </Properties>
  8 + </Component>
  9 + </Components>
  10 +</HostComponents>
31 site/Config/log4net.config
... ... @@ -0,0 +1,31 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<log4net>
  3 + <!--
  4 + If you are looking here and want more output,
  5 + first thing to do is change root/priority/@value to "INFO" or "ALL"
  6 + -->
  7 + <root>
  8 + <!-- Value of priority may be ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF -->
  9 + <priority value="ERROR" />
  10 + <appender-ref ref="error-file" />
  11 + </root>
  12 + <!-- example of turning on the output from a component or namespace-->
  13 + <!--
  14 + <logger name="Orchard.Data.SessionLocator">
  15 + <priority value="INFO" />
  16 + </logger>
  17 + -->
  18 + <appender name="error-file" type="Orchard.Logging.OrchardFileAppender">
  19 + <!-- error log: only ERROR and FATAL subset of debug log -->
  20 + <file value="App_Data/Logs/orchard-error" />
  21 + <appendToFile value="true" />
  22 + <!-- immediate flush on error log, to avoid data loss with sudden termination -->
  23 + <immediateFlush value="false" />
  24 + <staticLogFileName value="false" />
  25 + <rollingStyle value="Date" />
  26 + <datepattern value="-yyyy.MM.dd'.log'" />
  27 + <layout type="log4net.Layout.PatternLayout">
  28 + <conversionPattern value="%date [%thread] %logger - %message%newline" />
  29 + </layout>
  30 + </appender>
  31 +</log4net>
10 site/Core/Common/Module.txt
... ... @@ -0,0 +1,10 @@
  1 +Name: Common
  2 +AntiForgery: enabled
  3 +Author: The Orchard Team
  4 +Website: http://orchardproject.net
  5 +Version: 1.4.2
  6 +OrchardVersion: 1.4.2
  7 +Description: The common module introduces content parts that are going to be used by most content types (common, body, identity).
  8 +FeatureDescription: Core content parts.
  9 +Dependencies: Settings
  10 +Category: Core
37 site/Core/Common/Placement.info
... ... @@ -0,0 +1,37 @@
  1 +<Placement>
  2 + <!-- available display shapes -->
  3 + <!--
  4 + Parts_Common_Body
  5 + Parts_Common_Body_Summary
  6 + Parts_Common_Metadata
  7 + Parts_Common_Metadata_Summary
  8 + Parts_Common_Metadata_SummaryAdmin
  9 + Fields_Common_Text
  10 + -->
  11 + <!-- edit shapes getting default placements -->
  12 + <!-- edit "shape" -->
  13 + <Place Parts_Common_Body_Edit="Content:2"/>
  14 + <Place Parts_Common_Owner_Edit="Content:20"/>
  15 + <Place Parts_Common_Date_Edit="Content:18"/>
  16 + <Place Parts_Common_Container_Edit="Content:20"/>
  17 + <Place Fields_Common_Text_Edit="Content:2.5"/>
  18 + <!-- default positioning -->
  19 + <!-- show summary for all DisplayType by default -->
  20 + <Place Parts_Common_Body_Summary="Content:5"/>
  21 + <!-- with text fields a little before -->
  22 + <Place Fields_Common_Text="Content:2.5"/>
  23 + <Match DisplayType="Detail">
  24 + <!-- hide summary, show full content, for Detail -->
  25 + <Place Parts_Common_Body_Summary="-"
  26 + Parts_Common_Body="Content:5"
  27 + Parts_Common_Metadata="Meta:2"/>
  28 + </Match>
  29 + <Match DisplayType="Summary">
  30 + <Place Parts_Common_Metadata_Summary="Meta:2"/>
  31 + </Match>
  32 + <Match DisplayType="SummaryAdmin">
  33 + <Place Parts_Common_Body_Summary="-"
  34 + Parts_Common_Metadata_SummaryAdmin="Meta:5"
  35 + Fields_Common_Text="-"/>
  36 + </Match>
  37 +</Placement>
25 site/Core/Common/Styles/Web.config
... ... @@ -0,0 +1,25 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<configuration>
  3 + <appSettings>
  4 + <add key="webpages:Enabled" value="false" />
  5 + </appSettings>
  6 + <system.web>
  7 + <httpHandlers>
  8 + <!-- iis6 - for any request in this location, return via managed static file handler -->
  9 + <add path="*" verb="*" type="System.Web.StaticFileHandler" />
  10 + </httpHandlers>
  11 + </system.web>
  12 + <system.webServer>
  13 + <staticContent>
  14 + <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
  15 + </staticContent>
  16 +
  17 + <handlers accessPolicy="Script,Read">
  18 + <!--
  19 + iis7 - for any request to a file exists on disk, return it via native http module.
  20 + accessPolicy 'Script' is to allow for a managed 404 page.
  21 + -->
  22 + <add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
  23 + </handlers>
  24 + </system.webServer>
  25 +</configuration>
20 site/Core/Common/Styles/orchard-common-datetime.css
... ... @@ -0,0 +1,20 @@
  1 +fieldset.createdutc-datetime {
  2 + float:left;
  3 + clear:none;
  4 + white-space: nowrap;
  5 + vertical-align: middle;
  6 +}
  7 +fieldset.createdutc-datetime legend {
  8 + display:none;
  9 +}
  10 +fieldset.createdutc-datetime input {
  11 + padding:1px;
  12 + text-align:center;
  13 + color:#666;
  14 +}
  15 +input#DateEditor_CreatedDate {
  16 + width:10em;
  17 +}
  18 +input#DateEditor_CreatedTime {
  19 + width:7em;
  20 +}
1  site/Core/Common/Views/Body-Large.Editor.cshtml
... ... @@ -0,0 +1 @@
  1 +@Html.TextBox("Text", (string)Model.Text, new { @class = "text large" })
1  site/Core/Common/Views/Body-Small.Editor.cshtml
... ... @@ -0,0 +1 @@
  1 +@Html.TextBox("Text", (string)Model.Text, new { @class = "text text-small" })
1  site/Core/Common/Views/Body-Textarea.Editor.cshtml
... ... @@ -0,0 +1 @@
  1 +@Html.TextArea("Text", (string)Model.Text, 10, 80, new {})
1  site/Core/Common/Views/Body-Wide.Editor.cshtml
... ... @@ -0,0 +1 @@
  1 +@Html.TextBox("Text", (string)Model.Text, new { @class = "text textMedium" })
5 site/Core/Common/Views/Body.Editor.cshtml
... ... @@ -0,0 +1,5 @@
  1 +@using Orchard.Utility.Extensions;
  2 +@{
  3 + string editorFlavor = Model.EditorFlavor;
  4 +}
  5 +@Html.TextArea("Text", (string)Model.Text, 25, 80, new { @class = editorFlavor.HtmlClassify() })
14 site/Core/Common/Views/CommonMetadataOwner.cshtml
... ... @@ -0,0 +1,14 @@
  1 +@*
  2 + Model:
  3 + ContentPart
  4 +*@
  5 +
  6 +@using Orchard.ContentManagement;
  7 +@using Orchard.Core.Common.Models;
  8 +@using Orchard.Security;
  9 +@{
  10 + CommonPart commonPart = Model.ContentPart;
  11 + // owner isn't really who last modified this, is it?
  12 + IUser owner = commonPart.As<CommonPart>() == null ? null : commonPart.As<CommonPart>().Owner;
  13 +}
  14 +@T("By {0}", owner == null ? "<null>" : owner.UserName)
6 site/Core/Common/Views/DefinitionTemplates/BodyPartSettings.cshtml
... ... @@ -0,0 +1,6 @@
  1 +@model Orchard.Core.Common.Settings.BodyPartSettings
  2 + <fieldset>
  3 + <label for="@Html.FieldIdFor(m => m.FlavorDefault)">@T("Default flavor")</label>
  4 + @Html.EditorFor(m => m.FlavorDefault)
  5 + @Html.ValidationMessageFor(m => m.FlavorDefault)
  6 + </fieldset>
6 site/Core/Common/Views/DefinitionTemplates/BodyTypePartSettings.cshtml
... ... @@ -0,0 +1,6 @@
  1 +@model Orchard.Core.Common.Settings.BodyTypePartSettings
  2 + <fieldset>
  3 + <label for="@Html.FieldIdFor(m => m.Flavor)">@T("Flavor")</label>
  4 + @Html.EditorFor(m => m.Flavor)
  5 + @Html.ValidationMessageFor(m => m.Flavor)
  6 + </fieldset>
8 site/Core/Common/Views/DefinitionTemplates/DateEditorSettings.cshtml
... ... @@ -0,0 +1,8 @@
  1 +@model Orchard.Core.Common.DateEditor.DateEditorSettings
  2 +<fieldset>
  3 + <div>
  4 + @Html.EditorFor(m=>m.ShowDateEditor)
  5 + <label for="@Html.FieldIdFor(m => m.ShowDateEditor)" class="forcheckbox">@T("Show editor for creation date time")</label>
  6 + @Html.ValidationMessageFor(m => m.ShowDateEditor)
  7 + </div>
  8 +</fieldset>
9 site/Core/Common/Views/DefinitionTemplates/OwnerEditorSettings.cshtml
... ... @@ -0,0 +1,9 @@
  1 +@model Orchard.Core.Common.OwnerEditor.OwnerEditorSettings
  2 +
  3 +<fieldset>
  4 + <div>
  5 + @Html.EditorFor(m=>m.ShowOwnerEditor)
  6 + <label for="@Html.FieldIdFor(m => m.ShowOwnerEditor)" class="forcheckbox">@T("Show editor for owner")</label>
  7 + @Html.ValidationMessageFor(m => m.ShowOwnerEditor)
  8 + </div>
  9 +</fieldset>
28 site/Core/Common/Views/DefinitionTemplates/TextFieldSettingsEventsViewModel.cshtml
... ... @@ -0,0 +1,28 @@
  1 +@using Orchard.Utility.Extensions
  2 +@model Orchard.Core.Common.ViewModels.TextFieldSettingsEventsViewModel
  3 +
  4 +<fieldset>
  5 + <div>
  6 + <label for="@Html.FieldIdFor(m => m.Settings.Flavor)" class="forcheckbox">@T("Display options")</label>
  7 + <select id="@Html.FieldIdFor(m => m.Settings.Flavor)" name="@Html.FieldNameFor(m => m.Settings.Flavor)">
  8 + @Html.SelectOption("", String.IsNullOrWhiteSpace(Model.Settings.Flavor), T("Default flavor").ToString())
  9 + @foreach(string flavor in Model.Flavors) {
  10 + @Html.SelectOption(flavor, flavor.Equals(Model.Settings.Flavor, StringComparison.OrdinalIgnoreCase), flavor.CamelFriendly())
  11 + }
  12 + </select>
  13 +
  14 + @Html.ValidationMessageFor(m => m.Settings.Flavor)
  15 + </div>
  16 +</fieldset>
  17 +<fieldset>
  18 + <div>
  19 + @Html.CheckBoxFor(m => m.Settings.Required) <label for="@Html.FieldIdFor(m => m.Settings.Required)" class="forcheckbox">@T("Required")</label>
  20 + <span class="hint">@T("Check to ensure the user enters a value in this field.")</span>
  21 + </div>
  22 +</fieldset>
  23 +<fieldset>
  24 + <label for="@Html.FieldIdFor(m => m.Settings.Hint)">@T("Help text")</label>
  25 + @Html.TextAreaFor(m => m.Settings.Hint, new { @class = "textMedium", rows = "5" })
  26 + <span class="hint">@T("The help text is written under the field when authors are editing the content item.")</span>
  27 + @Html.ValidationMessageFor(m => m.Settings.Hint)
  28 +</fieldset>
13 site/Core/Common/Views/EditorTemplates/Fields.Common.Text.Edit.cshtml
... ... @@ -0,0 +1,13 @@
  1 +@model Orchard.Core.Common.ViewModels.TextFieldDriverViewModel
  2 +
  3 +<fieldset>
  4 + <label for="@Html.FieldIdFor(m => m.Text)">@Model.Field.DisplayName</label>
  5 + @if (String.IsNullOrWhiteSpace(Model.Settings.Flavor)) {
  6 + @Html.TextBoxFor(m => m.Text, new { @class = "text" })
  7 + @Html.ValidationMessageFor(m => m.Text)
  8 + }
  9 + else {
  10 + @Display.Body_Editor(Text: Model.Text, EditorFlavor: Model.Settings.Flavor)
  11 + }
  12 + <span class="hint">@Model.Settings.Hint</span>
  13 +</fieldset>
7 site/Core/Common/Views/EditorTemplates/Parts.Common.Body.cshtml
... ... @@ -0,0 +1,7 @@
  1 +@model BodyEditorViewModel
  2 +@using Orchard.Core.Common.ViewModels;
  3 +<fieldset>
  4 + <label>@T("Body")</label>
  5 + @Display.Body_Editor(Model)
  6 + @Html.ValidationMessageFor(m => m.Text)
  7 +</fieldset>
5 site/Core/Common/Views/EditorTemplates/Parts.Common.Container.cshtml
... ... @@ -0,0 +1,5 @@
  1 +@model ContainerEditorViewModel
  2 +@using Orchard.Core.Common.ViewModels;
  3 +<fieldset>
  4 + @Html.HiddenFor(m=>m.ContainerId)
  5 +</fieldset>
7 site/Core/Common/Views/Fields.Common.Text.cshtml
... ... @@ -0,0 +1,7 @@
  1 +@{
  2 + string name = Model.ContentField.DisplayName;
  3 +}
  4 +
  5 +@if (HasText(name) && HasText(Model.Value)) {
  6 + <p class="text-field"><span class="name">@name:</span> <span class="value">@Model.Value</span></p>
  7 +}
9 site/Core/Common/Views/Parts.Common.Body.Summary.cshtml
... ... @@ -0,0 +1,9 @@
  1 +@*doing excerpt generation on the way out for now so we don't stick ourselves with needing to regen excerpts for existing data
  2 + also, doing this here, inline, until we have a pluggable processing model (both in and out)
  3 + also, ...this is ugly *@
  4 +@{
  5 + Orchard.ContentManagement.ContentItem contentItem = Model.ContentPart.ContentItem;
  6 + string bodyHtml = Model.Html.ToString();
  7 + var body = new HtmlString(Html.Excerpt(bodyHtml, 200).ToString().Replace(Environment.NewLine, "</p>" + Environment.NewLine + "<p>"));
  8 +}
  9 +<p>@body @Html.ItemDisplayLink(T("more").ToString(), contentItem)</p>
1  site/Core/Common/Views/Parts.Common.Body.SummaryAdmin.cshtml
... ... @@ -0,0 +1 @@
  1 +
1  site/Core/Common/Views/Parts.Common.Body.cshtml
... ... @@ -0,0 +1 @@
  1 +@Model.Html
42 site/Core/Common/Views/Parts.Common.Date.Edit.cshtml
... ... @@ -0,0 +1,42 @@
  1 +@model Orchard.Core.Common.DateEditor.DateEditorViewModel
  2 +@{
  3 + var DateEditor = Model;
  4 + Style.Require("Common_DatePicker");
  5 +}
  6 +<fieldset class="createdutc-datetime">
  7 + @Html.LabelFor(m => DateEditor.CreatedDate, T("Created On"))
  8 + <label class="forpicker" for="@Html.FieldIdFor(m => DateEditor.CreatedDate)">@T("Date")</label>
  9 + @Html.EditorFor(m => DateEditor.CreatedDate)
  10 + <label class="forpicker" for="@Html.FieldIdFor(m => DateEditor.CreatedTime)">@T("Time")</label>
  11 + @Html.EditorFor(m => DateEditor.CreatedTime)
  12 +</fieldset>
  13 +@using(Script.Foot()) {
  14 +
  15 + @* generates the localization script *@
  16 + @Display(New.DatePickerLocalization())
  17 + @Display(New.TimePickerLocalization())
  18 +
  19 +<script type="text/javascript">
  20 +//<![CDATA[
  21 + $(function () {
  22 + var clearHint = function ($this) { if ($this.val() == $this.data("hint")) { $this.removeClass("hinted").val("") } };
  23 + var resetHint = function ($this) { setTimeout(function () { if (!$this.val()) { $this.addClass("hinted").val($this.data("hint")) } }, 300) };
  24 + @* todo: (heskew) make a plugin *@
  25 + $("label.forpicker").each(function () {
  26 + var $this = $(this);
  27 + var pickerInput = $("#" + $this.attr("for"));
  28 + if (!pickerInput.val()) {
  29 + pickerInput.data("hint", $this.text());
  30 + pickerInput.addClass("hinted")
  31 + .val(pickerInput.data("hint"))
  32 + .focus(function() {clearHint($(this));})
  33 + .blur(function() {resetHint($(this));});
  34 + $this.closest("form").submit(function() {clearHint(pickerInput); pickerInput = 0;});
  35 + }
  36 + });
  37 + $('#@Html.FieldIdFor(m => DateEditor.CreatedDate)').datepicker({ showAnim: "" });
  38 + $('#@Html.FieldIdFor(m => DateEditor.CreatedTime)').timepicker({ stepMinute: 5});
  39 + })
  40 +//]]>
  41 +</script>
  42 +}
1  site/Core/Common/Views/Parts.Common.Metadata.Summary.cshtml
... ... @@ -0,0 +1 @@
  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
... ... @@ -0,0 +1,12 @@
  1 +@using Orchard.ContentManagement;
  2 +@using Orchard.Core.Common.Models;
  3 +@{
  4 + CommonPart commonPart = Model.ContentPart;
  5 + DateTime? modifiedUtc = commonPart.As<CommonPart>() == null ? null : commonPart.As<CommonPart>().ModifiedUtc;
  6 +}
  7 +<ul class="pageStatus">
  8 + <li>@if (modifiedUtc.HasValue) {
  9 + @T("Last modified: {0}", Display.DateTimeRelative(dateTimeUtc: modifiedUtc.Value))}&nbsp;&#124;&nbsp;
  10 + </li>
  11 + <li>@Display.CommonMetadataOwner(ContentPart: Model.ContentPart)</li>
  12 + </ul>
1  site/Core/Common/Views/Parts.Common.Metadata.cshtml
... ... @@ -0,0 +1 @@
  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
... ... @@ -0,0 +1,9 @@
  1 +@model Orchard.Core.Common.OwnerEditor.OwnerEditorViewModel
  2 +@{
  3 + var OwnerEditor = Model;
  4 +}
  5 +<fieldset>
  6 + @Html.LabelFor(m => OwnerEditor.Owner, T("Owner"))
  7 + @Html.EditorFor(m => OwnerEditor.Owner)
  8 + @Html.ValidationMessageFor(m => OwnerEditor.Owner)
  9 +</fieldset>
41 site/Core/Common/Views/Web.config
... ... @@ -0,0 +1,41 @@
  1 +<?xml version="1.0"?>
  2 +<configuration>
  3 + <appSettings>
  4 + <add key="webpages:Enabled" value="false" />
  5 + </appSettings>
  6 + <system.web>
  7 + <httpHandlers>
  8 + </httpHandlers>
  9 +
  10 + <!--
  11 + Enabling request validation in view pages would cause validation to occur
  12 + after the input has already been processed by the controller. By default
  13 + MVC performs request validation before a controller processes the input.
  14 + To change this behavior apply the ValidateInputAttribute to a
  15 + controller or action.
  16 + -->
  17 + <pages
  18 + validateRequest="false"
  19 + pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
  20 + pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
  21 + userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
  22 + <controls>
  23 + <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
  24 + </controls>
  25 + </pages>
  26 + </system.web>
  27 +
  28 + <system.webServer>
  29 + <validation validateIntegratedModeConfiguration="false"/>
  30 + <handlers>
  31 + </handlers>
  32 + </system.webServer>
  33 + <runtime>
  34 + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  35 + <dependentAssembly>
  36 + <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  37 + <bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
  38 + </dependentAssembly>
  39 + </assemblyBinding>
  40 + </runtime>
  41 +</configuration>
10 site/Core/Containers/Module.txt
... ... @@ -0,0 +1,10 @@
  1 +Name: Containers
  2 +AntiForgery: enabled
  3 +Author: The Orchard Team
  4 +Website: http://orchardproject.net
  5 +Version: 1.4.2
  6 +OrchardVersion: 1.4.2
  7 +Description: The containers module introduces container and containable behaviors for content items.
  8 +FeatureDescription: Container and containable parts to enable parent-child relationships between content items.
  9 +Dependencies: Contents
  10 +Category: Content
16 site/Core/Containers/Placement.info
... ... @@ -0,0 +1,16 @@
  1 +<Placement>
  2 + <!-- available display shapes -->
  3 + <!--
  4 + Parts_Container_Contained
  5 + Parts_Container_Contained_Summary
  6 + -->
  7 + <Match DisplayType="Detail">
  8 + <Place Parts_Container_Contained="Content:7.5"/>
  9 + </Match>
  10 + <Place Parts_Containable_Edit="Content:before.3"/>
  11 + <Place Parts_Container_Edit="Content:5"/>
  12 + <Place Parts_CustomProperties_Edit="Content:5"/>
  13 + <Place Parts_ContainerWidget_Edit="Content:5"/>
  14 + <Place Parts_Container_SiteSettings="Content:10"/>
  15 + <Place Parts_ContainerWidget="Content"/>
  16 +</Placement>
9 site/Core/Containers/Views/DefinitionTemplates/ContainerPartSettings.cshtml
... ... @@ -0,0 +1,9 @@
  1 +@model Orchard.Core.Containers.Settings.ContainerPartSettings
  2 +<fieldset>
  3 + <label for="@Html.FieldIdFor(m => m.PageSizeDefault)">@T("Default Page Size")</label>
  4 + @Html.EditorFor(m => m.PageSizeDefault)
  5 +</fieldset>
  6 +<fieldset>
  7 + @Html.EditorFor(m => m.PaginatedDefault)
  8 + <label for="@Html.FieldIdFor( m => m.PaginatedDefault)" class="forcheckbox">@T("Show paging controls")</label>
  9 +</fieldset>
9 site/Core/Containers/Views/DefinitionTemplates/ContainerTypePartSettings.cshtml
... ... @@ -0,0 +1,9 @@
  1 +@model Orchard.Core.Containers.Settings.ContainerTypePartSettings
  2 +<fieldset>
  3 + <label for="@Html.FieldIdFor(m => m.PageSizeDefault)">@T("Default Page Size")</label>
  4 + @Html.EditorFor(m => m.PageSizeDefault)
  5 +</fieldset>
  6 +<fieldset>
  7 + <label for="@Html.FieldIdFor( m => m.PaginatedDefault)">@T("Show paging controls")</label>
  8 + @Html.EditorFor(m => m.PaginatedDefault)
  9 +</fieldset>
11 site/Core/Containers/Views/EditorTemplates/Containable.cshtml
... ... @@ -0,0 +1,11 @@
  1 +@model Orchard.Core.Containers.ViewModels.ContainableViewModel
  2 +<fieldset>
  3 + <span>
  4 + @Html.LabelFor(m => m.ContainerId, T("Add to"))
  5 + @Html.DropDownListFor(m => m.ContainerId, Model.AvailableContainers)
  6 + </span>
  7 + <span>
  8 + @Html.LabelFor(m => m.Weight, T("Weight"))
  9 + @Html.TextBoxFor(m => m.Weight, new { @class = "text text-small" })
  10 + </span>
  11 +</fieldset>
39 site/Core/Containers/Views/EditorTemplates/Container.cshtml
... ... @@ -0,0 +1,39 @@
  1 +@model Orchard.Core.Containers.ViewModels.ContainerViewModel
  2 +@using Orchard.Core.Containers.Models;
  3 +<fieldset class="with-checkbox">
  4 + <span class="checkbox-and-label">
  5 + @Html.CheckBoxFor(m => m.Part.ItemsShown)
  6 + <label for="@Html.FieldIdFor(m => m.Part.ItemsShown)" class="forcheckbox">@T("Show contained items list")</label>
  7 + </span>
  8 +</fieldset>
  9 +<fieldset>
  10 + @Html.LabelFor(m => m.Part.ItemContentType, T("Contains"))
  11 + @Html.DropDownListFor(m => m.Part.ItemContentType, Model.AvailableContainables)
  12 + <span class="hint">@T("Only types with the Containable part can be contained in a list.")</span>
  13 +</fieldset>
  14 +<fieldset>
  15 + @Html.LabelFor(m => m.Part.OrderByProperty, T("Order by"))
  16 + <select id="@Html.FieldIdFor(m => m.Part.OrderByProperty)" name="@Html.FieldNameFor(m => m.Part.OrderByProperty)">
  17 + @Html.SelectOption(Model.Part.OrderByProperty, "ContainablePart.Weight", T("Weight").Text)
  18 + @Html.SelectOption(Model.Part.OrderByProperty, "CommonPart.CreatedUtc", T("Date Created").Text)
  19 + @Html.SelectOption(Model.Part.OrderByProperty, "CommonPart.PublishedUtc", T("Date Published").Text)
  20 + @Html.SelectOption(Model.Part.OrderByProperty, "TitlePart.Title", T("Title (Title Part)").Text)
  21 + @Html.SelectOption(Model.Part.OrderByProperty, "CustomPropertiesPart.CustomOne", T("Custom 1").Text)
  22 + @Html.SelectOption(Model.Part.OrderByProperty, "CustomPropertiesPart.CustomTwo", T("Custom 2").Text)
  23 + @Html.SelectOption(Model.Part.OrderByProperty, "CustomPropertiesPart.CustomThree", T("Custom 3").Text)
  24 + </select>
  25 + <select id="@Html.FieldIdFor(m => m.Part.OrderByDirection)" name="@Html.FieldNameFor(m => m.Part.OrderByDirection)">
  26 + @Html.SelectOption(Model.Part.OrderByDirection, (int)OrderByDirection.Ascending, T("Ascending").Text)
  27 + @Html.SelectOption(Model.Part.OrderByDirection, (int)OrderByDirection.Descending, T("Descending").Text)
  28 + </select>
  29 +</fieldset>
  30 +<fieldset class="with-checkbox">
  31 + <span>
  32 + @Html.LabelFor(m => m.Part.PageSize, T("Page size"))
  33 + @Html.TextBoxFor(m => m.Part.PageSize, new { @class = "text text-small" })
  34 + </span>
  35 + <span class="checkbox-and-label">
  36 + @Html.CheckBoxFor(m => m.Part.Paginated)
  37 + <label for="@Html.FieldIdFor(m => m.Part.Paginated)" class="forcheckbox">@T("Show paging controls")</label>
  38 + </span>
  39 +</fieldset>
56 site/Core/Containers/Views/EditorTemplates/ContainerWidget.cshtml
... ... @@ -0,0 +1,56 @@
  1 +@model Orchard.Core.Containers.ViewModels.ContainerWidgetViewModel
  2 +@using Orchard.Core.Containers.Models;
  3 +@{
  4 + Script.Require("ShapesBase");
  5 +}
  6 +<fieldset>
  7 + @Html.LabelFor(m => m.Part.Record.ContainerId, T("Show items from"))
  8 + @Html.DropDownListFor(m => m.Part.Record.ContainerId, Model.AvailableContainers)
  9 +</fieldset>
  10 +<fieldset>
  11 + <span>
  12 + @Html.LabelFor(m => m.Part.Record.PageSize, T("Maximum number of items to display"))
  13 + @Html.TextBoxFor(m => m.Part.Record.PageSize, new { @class = "text text-small" })
  14 + </span>
  15 +</fieldset>
  16 +<fieldset>
  17 + @Html.LabelFor(m => m.Part.Record.OrderByProperty, T("Order by"))
  18 + <select id="@Html.FieldIdFor(m => m.Part.Record.OrderByProperty)" name="@Html.FieldNameFor(m => m.Part.Record.OrderByProperty)">
  19 + @Html.SelectOption(Model.Part.Record.OrderByProperty, "CommonPart.CreatedUtc", T("Date Created").Text)
  20 + @Html.SelectOption(Model.Part.Record.OrderByProperty, "CommonPart.PublishedUtc", T("Date Published").Text)
  21 + @Html.SelectOption(Model.Part.Record.OrderByProperty, "TitlePart.Title", T("Title (Title Part)").Text)
  22 + @Html.SelectOption(Model.Part.Record.OrderByProperty, "CustomPropertiesPart.CustomOne", T("Custom 1").Text)
  23 + @Html.SelectOption(Model.Part.Record.OrderByProperty, "CustomPropertiesPart.CustomTwo", T("Custom 2").Text)
  24 + @Html.SelectOption(Model.Part.Record.OrderByProperty, "CustomPropertiesPart.CustomThree", T("Custom 3").Text)
  25 + </select>
  26 + <select title="@T("Order direction")" id="@Html.FieldIdFor(m => m.Part.Record.OrderByDirection)" name="@Html.FieldNameFor(m => m.Part.Record.OrderByDirection)">
  27 + @Html.SelectOption(Model.Part.Record.OrderByDirection, (int)OrderByDirection.Ascending, T("Ascending").Text)
  28 + @Html.SelectOption(Model.Part.Record.OrderByDirection, (int)OrderByDirection.Descending, T("Descending").Text)
  29 + </select>
  30 +</fieldset>
  31 +<fieldset>
  32 + <div>
  33 + @Html.EditorFor(m => m.Part.Record.ApplyFilter)
  34 + <label class="forcheckbox" for="@Html.FieldIdFor(m => m.Part.Record.ApplyFilter)">@T("Filter items")</label>
  35 + </div>
  36 + <div data-controllerid="@Html.FieldIdFor(m => m.Part.Record.ApplyFilter)">
  37 + @Html.LabelFor(m => m.Part.Record.FilterByProperty, T("Filter where"))
  38 + <select id="@Html.FieldIdFor(m => m.Part.Record.FilterByProperty)" name="@Html.FieldNameFor(m => m.Part.Record.FilterByProperty)">
  39 + @Html.SelectOption(Model.Part.Record.FilterByProperty, "CommonPart.CreatedUtx", T("Date Created").Text)
  40 + @Html.SelectOption(Model.Part.Record.FilterByProperty, "CommonPart.PublishedUtc", T("Date Published").Text)
  41 + @Html.SelectOption(Model.Part.Record.FilterByProperty, "TitlePart.Title", T("Title (Title Part)").Text)
  42 + @Html.SelectOption(Model.Part.Record.FilterByProperty, "CustomPropertiesPart.CustomOne", T("Custom 1").Text)
  43 + @Html.SelectOption(Model.Part.Record.FilterByProperty, "CustomPropertiesPart.CustomTwo", T("Custom 2").Text)
  44 + @Html.SelectOption(Model.Part.Record.FilterByProperty, "CustomPropertiesPart.CustomThree", T("Custom 3").Text)
  45 + </select>
  46 + <select title="@T("Filter operator")" id="@Html.FieldIdFor(m => m.Part.Record.FilterByOperator)" name="@Html.FieldNameFor(m => m.Part.Record.FilterByOperator)">
  47 + @Html.SelectOption(Model.Part.Record.FilterByOperator, "=", T("is equal to").Text)
  48 + @Html.SelectOption(Model.Part.Record.FilterByOperator, "<", T("is less than").Text)
  49 + @Html.SelectOption(Model.Part.Record.FilterByOperator, ">", T("is greater than").Text)
  50 + @Html.SelectOption(Model.Part.Record.FilterByOperator, "^=", T("starts with").Text)
  51 + </select>
  52 + <span>
  53 + @Html.TextBoxFor(m => m.Part.Record.FilterByValue, new { @class = "text", title = T("Filter value") })
  54 + </span>
  55 + </div>
  56 +</fieldset>
13 site/Core/Containers/Views/EditorTemplates/CustomProperties.cshtml
... ... @@ -0,0 +1,13 @@
  1 +@model Orchard.Core.Containers.Models.CustomPropertiesPart
  2 +<fieldset>
  3 + @Html.LabelFor(m => m.Record.CustomOne, T("Custom One"))
  4 + @Html.EditorFor(m => m.Record.CustomOne)
  5 +</fieldset>
  6 +<fieldset>
  7 + @Html.LabelFor(m => m.Record.CustomTwo, T("Custom Two"))
  8 + @Html.EditorFor(m => m.Record.CustomTwo)
  9 +</fieldset>
  10 +<fieldset>
  11 + @Html.LabelFor(m => m.Record.CustomThree, T("Custom Three"))
  12 + @Html.EditorFor(m => m.Record.CustomThree)
  13 +</fieldset>
3  site/Core/Containers/Views/Parts.Container.Contained.cshtml
... ... @@ -0,0 +1,3 @@
  1 +@Display(Model.List)
  2 +
  3 +@Display(Model.Pager)
6 site/Core/Containers/Views/Parts.ContainerWidget.cshtml
... ... @@ -0,0 +1,6 @@
  1 +@{
  2 + IEnumerable<object> items = Model.ContentItems;
  3 + Model.ContentItems.Classes.Add("content-items");
  4 + Model.ContentItems.Classes.Add("list-items");
  5 +}
  6 +@Display(items)
17 site/Core/Contents/Module.txt
... ... @@ -0,0 +1,17 @@
  1 +Name: Contents
  2 +AntiForgery: enabled
  3 +Author: The Orchard Team
  4 +Website: http://orchardproject.net
  5 +Version: 1.4.2
  6 +OrchardVersion: 1.4.2
  7 +Description: The contents module enables the creation of custom content types.
  8 +Features:
  9 + Contents
  10 + Name: Contents
  11 + Description: Default custom content type definition, creation and management.
  12 + Category: Core
  13 + Contents.ControlWrapper:
  14 + Name: Content Control Wrapper
  15 + Description: Add an Edit button on the front-end for authenticated users
  16 + Category: Content
  17 + Dependencies: Contents
17 site/Core/Contents/Placement.info
... ... @@ -0,0 +1,17 @@
  1 +<Placement>
  2 + <!-- available display shapes -->
  3 + <!--
  4 + Parts_Contents_Publish
  5 + Parts_Contents_Publish_Summary
  6 + Parts_Contents_Publish_SummaryAdmin
  7 + -->
  8 + <!-- edit "shape" -->
  9 + <Place Content_PublishButton="Sidebar:24"/>
  10 + <Place Content_SaveButton="Sidebar:23"/>
  11 + <Match DisplayType="Detail">
  12 + <Place Parts_Contents_Publish="Content:5"/>
  13 + </Match>
  14 + <Match DisplayType="SummaryAdmin">
  15 + <Place Parts_Contents_Publish_SummaryAdmin="Actions:5"/>
  16 + </Match>
  17 +</Placement>
25 site/Core/Contents/Styles/Web.config
... ... @@ -0,0 +1,25 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<configuration>
  3 + <appSettings>
  4 + <add key="webpages:Enabled" value="false" />
  5 + </appSettings>
  6 + <system.web>
  7 + <httpHandlers>
  8 + <!-- iis6 - for any request in this location, return via managed static file handler -->
  9 + <add path="*" verb="*" type="System.Web.StaticFileHandler" />
  10 + </httpHandlers>
  11 + </system.web>
  12 + <system.webServer>
  13 + <staticContent>
  14 + <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
  15 + </staticContent>
  16 +
  17 + <handlers accessPolicy="Script,Read">
  18 + <!--
  19 + iis7 - for any request to a file exists on disk, return it via native http module.
  20 + accessPolicy 'Script' is to allow for a managed 404 page.
  21 + -->
  22 + <add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
  23 + </handlers>
  24 + </system.webServer>
  25 +</configuration>
BIN  site/Core/Contents/Styles/images/menu.content.png
16 site/Core/Contents/Styles/menu.content-admin.css
... ... @@ -0,0 +1,16 @@
  1 +.navicon-content {
  2 +background-image:url(images/menu.content.png) !important;
  3 +}
  4 +.navicon-content:hover {
  5 +background-position:0 -30px !important;
  6 +}
  7 +.section-new .menuItems a {
  8 +background-image:url(images/menu.content.png);
  9 +}
  10 +/* subnav */
  11 +#menu .menu-admin .section-new .menuItems a {
  12 +background-position:0 4px;
  13 +}
  14 +#menu .menu-admin .section-new .menuItems a:hover, #menu .menu-admin .section-new .menuItems .selected a {
  15 +background-position:0 -28px;
  16 +}
5 site/Core/Contents/Views/Admin/CreatableTypeList.cshtml
... ... @@ -0,0 +1,5 @@
  1 +@{ Layout.Title = T("Create New Content").ToString(); }
  2 +
  3 +@foreach (var type in Model.ContentTypes) {
  4 + <p>@Html.ActionLink((string)type.DisplayName, "Create", new { Area = "Contents", Id = (string)type.Name, ContainerId = Model.ContainerId, ReturnUrl = Request.QueryString["ReturnUrl"] })</p>
  5 +}
12 site/Core/Contents/Views/Admin/Create.cshtml
... ... @@ -0,0 +1,12 @@
  1 +@{
  2 + var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
  3 + var pageTitle = T("New {0}", typeDisplayName);
  4 +
  5 + Layout.Title = (string)pageTitle.Text;
  6 +}
  7 +
  8 +@using (Html.BeginFormAntiForgeryPost(Url.Action("Create", new { ReturnUrl = Request.QueryString["ReturnUrl"] }))) {
  9 + @Html.ValidationSummary()
  10 + // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
  11 + @Display(Model)
  12 +}
15 site/Core/Contents/Views/Admin/Edit.cshtml
... ... @@ -0,0 +1,15 @@
  1 +@{
  2 + var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
  3 + var pageTitle = T("Edit Content");
  4 + if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
  5 + pageTitle = T("Edit {0}", typeDisplayName);
  6 + }
  7 +
  8 + Layout.Title = pageTitle;
  9 +}
  10 +
  11 +@using (Html.BeginFormAntiForgeryPost()) {
  12 + @Html.ValidationSummary()
  13 + // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
  14 + @Display(Model)
  15 +}
48 site/Core/Contents/Views/Admin/List.cshtml
... ... @@ -0,0 +1,48 @@
  1 +@using Orchard.Core.Contents.ViewModels;
  2 +@{
  3 + var typeDisplayName = Model.TypeDisplayName;
  4 + var pageTitle = T("Manage Content");
  5 + var createLinkText = T("Create New Content");
  6 + if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
  7 + pageTitle = T("Manage {0} Content", typeDisplayName);
  8 + createLinkText = T("Create New {0}", typeDisplayName);
  9 + }
  10 +
  11 + Layout.Title = pageTitle;
  12 +}
  13 +
  14 +<div class="manage">
  15 + @Html.ActionLink(createLinkText.Text, "Create", new { Area = "Contents", Id = (string)Model.Options.SelectedFilter }, new { @class = "button primaryAction" })
  16 +</div>
  17 +@using (Html.BeginFormAntiForgeryPost()) {
  18 + <fieldset class="bulk-actions">
  19 + <label for="publishActions">@T("Actions:")</label>
  20 + <select id="publishActions" name="Options.BulkAction">
  21 + @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.None, T("Choose action...").ToString())
  22 + @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.PublishNow, T("Publish Now").ToString())
  23 + @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.Unpublish, T("Unpublish").ToString())
  24 + @Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.Remove, T("Delete").ToString())
  25 + </select>
  26 + <button type="submit" name="submit.BulkEdit" value="yes">@T("Apply")</button>
  27 + </fieldset>
  28 + <fieldset class="bulk-actions">
  29 + <label for="filterResults" class="bulk-filter">@T("Show")</label>
  30 + <select id="filterResults" name="Options.SelectedFilter">
  31 + @Html.SelectOption((string)Model.Options.SelectedFilter, "", T("any (show all)").ToString())
  32 + @foreach(var filterOption in Model.Options.FilterOptions) {
  33 + @Html.SelectOption((string)Model.Options.SelectedFilter, (string)filterOption.Key, (string)filterOption.Value)
  34 + }
  35 + </select>
  36 + <label for="orderResults" class="bulk-order">@T("Ordered by")</label>
  37 + <select id="orderResults" name="Options.OrderBy">
  38 + @Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Created, T("recently created").ToString())
  39 + @Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Modified, T("recently modified").ToString())
  40 + @Html.SelectOption((ContentsOrder)Model.Options.OrderBy, ContentsOrder.Published, T("recently published").ToString())
  41 + </select>
  42 + <button type="submit" name="submit.Filter" value="yes please">@T("Apply")</button>
  43 + </fieldset>
  44 + <fieldset class="contentItems bulk-items">
  45 +@Display(Model.ContentItems)
  46 + </fieldset>
  47 +@Display(Model.Pager)
  48 +}
11 site/Core/Contents/Views/Content.ControlWrapper.cshtml
... ... @@ -0,0 +1,11 @@
  1 +@using Orchard.ContentManagement;
  2 +@using Orchard.Core.Contents;
  3 +@if (AuthorizedFor(Permissions.EditContent) && Model.ContentItem.Id > 0) {
  4 + <div class="content-control">
  5 + <div class="manage-actions">@Html.ItemEditLinkWithReturnUrl(T("Edit").Text, (ContentItem)Model.ContentItem)</div>
  6 + @Display(Model.Child)
  7 + </div>
  8 +}
  9 +else {
  10 + @Display(Model.Child)
  11 +}
21 site/Core/Contents/Views/Content.Edit.cshtml
... ... @@ -0,0 +1,21 @@
  1 +<div class="edit-item">
  2 + <div class="edit-item-primary">
  3 + @if (Model.Content != null) {
  4 + <div class="edit-item-content">
  5 + @Display(Model.Content)
  6 + </div>
  7 + }
  8 + </div>
  9 + <div class="edit-item-secondary group">
  10 + @if (Model.Actions != null) {
  11 + <div class="edit-item-actions">
  12 + @Display(Model.Actions)
  13 + </div>
  14 + }
  15 + @if (Model.Sidebar != null) {
  16 + <div class="edit-item-sidebar group">
  17 + @Display(Model.Sidebar)
  18 + </div>
  19 + }
  20 + </div>
  21 +</div>
3  site/Core/Contents/Views/Content.PublishButton.cshtml
... ... @@ -0,0 +1,3 @@
  1 +<fieldset class="publish-button">
  2 + <button type="submit" name="submit.Publish" value="submit.Publish">@T("Publish Now")</button>
  3 +</fieldset>
3  site/Core/Contents/Views/Content.SaveButton.cshtml
... ... @@ -0,0 +1,3 @@
  1 +<fieldset class="save-button">
  2 + <button class="primaryAction" type="submit" name="submit.Save" value="submit.Save">@T("Save")</button>
  3 +</fieldset>
20 site/Core/Contents/Views/Content.Summary.cshtml
... ... @@ -0,0 +1,20 @@
  1 +@using Orchard.Utility.Extensions;
  2 +@{
  3 + var contentTypeClassName = ((string)Model.ContentItem.ContentType).HtmlClassify();
  4 +}
  5 +<article class="content-item @contentTypeClassName">
  6 + <header>
  7 + @Display(Model.Header)
  8 + @if (Model.Meta != null) {
  9 + <div class="metadata">
  10 + @Display(Model.Meta)
  11 + </div>
  12 + }
  13 + </header>
  14 + @Display(Model.Content)
  15 + @if(Model.Footer != null) {
  16 + <footer>
  17 + @Display(Model.Footer)
  18 + </footer>
  19 + }
  20 +</article>
31 site/Core/Contents/Views/Content.SummaryAdmin.cshtml
... ... @@ -0,0 +1,31 @@
  1 +@using Orchard.ContentManagement;
  2 +@using Orchard.Core.Contents
  3 +@using Orchard.Utility.Extensions;
  4 +@{
  5 + ContentItem contentItem = Model.ContentItem;
  6 + var returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString();
  7 +}
  8 +<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
  9 + <div class="properties">
  10 + <input type="checkbox" value="@contentItem.Id" name="itemIds"/>
  11 + <h3>@Html.ItemAdminLink(contentItem)</h3> - <div class="contentType">@contentItem.TypeDefinition.DisplayName</div>
  12 + @if (Model.Header != null) {
  13 + <div class="header">@Display(Model.Header)</div>
  14 + }
  15 + @if (Model.Meta != null) {
  16 + <div class="metadata">@Display(Model.Meta)</div>
  17 + }
  18 + </div>
  19 + <div class="related">
  20 + @Display(Model.Actions)
  21 + @if (Authorizer.Authorize(Permissions.EditContent, contentItem)) {
  22 + @Html.ItemEditLink(T("Edit").Text, contentItem)@T(" | ")
  23 + }
  24 + @if (Authorizer.Authorize(Permissions.DeleteContent, contentItem)) {
  25 + @Html.Link(T("Delete").Text, Url.ItemRemoveUrl(contentItem, new {returnUrl}), new {itemprop = "RemoveUrl UnsafeUrl"})
  26 + }
  27 + </div>
  28 + @if (Model.Content != null) {
  29 + <div class="primary">@Display(Model.Content)</div>
  30 + }
  31 +</div>
24 site/Core/Contents/Views/Content.cshtml
... ... @@ -0,0 +1,24 @@
  1 +@using Orchard.Utility.Extensions;
  2 +@{
  3 + if (Model.Title != null) {
  4 + Layout.Title = Model.Title;