├── .env.example ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── UmbracoDocker.sln ├── UmbracoDockerProject ├── .dockerignore ├── .gitignore ├── Program.cs ├── Properties │ └── launchSettings.json ├── Startup.cs ├── UmbracoDockerProject.csproj ├── Views │ ├── Author.cshtml │ ├── AuthorList.cshtml │ ├── Components │ │ ├── Contact │ │ │ └── Default.cshtml │ │ └── Pagination │ │ │ └── Default.cshtml │ ├── Partials │ │ ├── authors.cshtml │ │ ├── blockgrid │ │ │ ├── area.cshtml │ │ │ ├── areas.cshtml │ │ │ ├── default.cshtml │ │ │ └── items.cshtml │ │ ├── blocklist │ │ │ ├── Components │ │ │ │ ├── codeSnippetRow.cshtml │ │ │ │ ├── iconLinkRow.cshtml │ │ │ │ ├── imageCarouselRow.cshtml │ │ │ │ ├── imageRow.cshtml │ │ │ │ ├── latestArticlesRow.cshtml │ │ │ │ ├── richTextRow.cshtml │ │ │ │ └── videoRow.cshtml │ │ │ └── default.cshtml │ │ ├── footer.cshtml │ │ ├── grid │ │ │ ├── bootstrap3-fluid.cshtml │ │ │ ├── bootstrap3.cshtml │ │ │ └── editors │ │ │ │ ├── base.cshtml │ │ │ │ ├── embed.cshtml │ │ │ │ ├── macro.cshtml │ │ │ │ ├── media.cshtml │ │ │ │ ├── rte.cshtml │ │ │ │ └── textstring.cshtml │ │ ├── mainNavigation.cshtml │ │ ├── metaData.cshtml │ │ ├── pageHeader.cshtml │ │ └── xmlSitemap.cshtml │ ├── _ViewImports.cshtml │ ├── article.cshtml │ ├── articleList.cshtml │ ├── contact.cshtml │ ├── content.cshtml │ ├── error.cshtml │ ├── home.cshtml │ ├── master.cshtml │ ├── search.cshtml │ └── xMLSitemap.cshtml ├── appsettings.json ├── uSync │ └── v9 │ │ ├── Content │ │ ├── about-us.config │ │ ├── authors.config │ │ ├── blog.config │ │ ├── categories.config │ │ ├── chatgpt.config │ │ ├── error.config │ │ ├── home.config │ │ ├── in-the-depths-of-majesty-a-glimpse-into-the-world-of-whales.config │ │ ├── search.config │ │ ├── the-smallest-whale.config │ │ ├── whale-wonders-big-friends-in-the-sea.config │ │ ├── whales.config │ │ └── xmlsitemap.config │ │ ├── ContentTypes │ │ ├── article.config │ │ ├── articlecontrols.config │ │ ├── articlelist.config │ │ ├── author.config │ │ ├── authorlist.config │ │ ├── category.config │ │ ├── categorylist.config │ │ ├── codesnippetrow.config │ │ ├── codesnippetrowsettings.config │ │ ├── contact.config │ │ ├── contactformcontrols.config │ │ ├── content.config │ │ ├── contentcontrols.config │ │ ├── error.config │ │ ├── footercontrols.config │ │ ├── headercontrols.config │ │ ├── hideproperty.config │ │ ├── home.config │ │ ├── iconlinkrow.config │ │ ├── iconlinkrowsettings.config │ │ ├── imagecarouselrow.config │ │ ├── imagecarouselrowsettings.config │ │ ├── imagerow.config │ │ ├── imagerowsettings.config │ │ ├── latestarticlesrow.config │ │ ├── latestarticlesrowsettings.config │ │ ├── listpagesettings.config │ │ ├── mainimagecontrols.config │ │ ├── richtextrow.config │ │ ├── richtextrowsettings.config │ │ ├── search.config │ │ ├── seocontrols.config │ │ ├── spacingproperties.config │ │ ├── videorow.config │ │ ├── videorowsettings.config │ │ ├── visibilitycontrols.config │ │ └── xmlsitemap.config │ │ ├── DataTypes │ │ ├── ApprovedColor.config │ │ ├── BlockListIconList.config │ │ ├── BlockListMainContent.config │ │ ├── CheckboxList.config │ │ ├── ContentPicker.config │ │ ├── ContentmentCodeEditor.config │ │ ├── DataListAuthors.config │ │ ├── DataListCategoryList.config │ │ ├── DataListSpacing.config │ │ ├── DataListYesNoClearable.config │ │ ├── DatePicker.config │ │ ├── DatePickerWithTime.config │ │ ├── Dropdown.config │ │ ├── DropdownMultiple.config │ │ ├── ImageCropper.config │ │ ├── ImageMediaPicker.config │ │ ├── LabelBigint.config │ │ ├── LabelDatetime.config │ │ ├── LabelDecimal.config │ │ ├── LabelInteger.config │ │ ├── LabelString.config │ │ ├── LabelTime.config │ │ ├── ListViewContent.config │ │ ├── ListViewMedia.config │ │ ├── ListViewMembers.config │ │ ├── MediaPicker.config │ │ ├── MediaPickerLegacy.config │ │ ├── MediaPickerSVGImage.config │ │ ├── MemberPicker.config │ │ ├── MultiURLPicker.config │ │ ├── MultiUrlPickerSingleUrlPicker.config │ │ ├── MultipleImageMediaPicker.config │ │ ├── MultipleMediaPicker.config │ │ ├── MultipleMediaPickerLegacy.config │ │ ├── Numeric.config │ │ ├── Radiobox.config │ │ ├── RichtextEditor.config │ │ ├── SingleUrlPicker.config │ │ ├── SliderSpacing.config │ │ ├── Tags.config │ │ ├── Textarea.config │ │ ├── Textstring.config │ │ ├── Truefalse.config │ │ ├── UploadArticle.config │ │ ├── UploadAudio.config │ │ ├── UploadFile.config │ │ ├── UploadVectorGraphics.config │ │ └── UploadVideo.config │ │ ├── Dictionary │ │ ├── article.by.config │ │ ├── article.on.config │ │ ├── article.posted.config │ │ ├── articlelist.viewall.config │ │ ├── author.readmore.config │ │ ├── contactform.email.config │ │ ├── contactform.message.config │ │ ├── contactform.name.config │ │ ├── contactform.send.config │ │ ├── footer.copyrightstatement.config │ │ ├── footer.copyrighttitle.config │ │ ├── navigation.menutitle.config │ │ ├── navigation.sitename.config │ │ ├── paging.next.config │ │ ├── paging.of.config │ │ ├── paging.page.config │ │ ├── paging.previous.config │ │ ├── search.placeholder.config │ │ ├── search.results.config │ │ └── search.searchbutton.config │ │ ├── Languages │ │ └── en-us.config │ │ ├── Media │ │ ├── authors.config │ │ ├── cc-paypal.config │ │ ├── dall-e-2023-11-23-1614.18-a-cartoon-whale-holding-an-allen-key-similar-to-the-docker-logo-1.config │ │ ├── dall-e-2023-11-23-1614.18-a-cartoon-whale-holding-an-allen-key-similar-to-the-docker-logo.config │ │ ├── dall-e-2023-11-23-1617.07-a-humanoid-gravatar-for-an-ai-named-chat-gpt.config │ │ ├── dall-e-2023-11-23-1618.07-a-cartoon-whale-holding-an-aln-key-similar-to-the-docker-logo.config │ │ ├── dall-e-2023-11-23-1623.44-cartoon-whales.config │ │ ├── dall-e-2023-11-23-1625.12-cartoon-whales.config │ │ ├── dall-e-2023-11-23-1629.26-a-photorealistic-dwarf-sperm-whale.config │ │ ├── discord.config │ │ ├── github-alt.config │ │ ├── github.config │ │ ├── mastodon.config │ │ ├── paypal.config │ │ ├── share-nodes.config │ │ ├── social-icons.config │ │ ├── square-github.config │ │ ├── square-twitter.config │ │ ├── twitter.config │ │ └── umbraco.config │ │ ├── MediaTypes │ │ ├── file.config │ │ ├── folder.config │ │ ├── image.config │ │ ├── umbracomediaarticle.config │ │ ├── umbracomediaaudio.config │ │ ├── umbracomediavectorgraphics.config │ │ └── umbracomediavideo.config │ │ ├── MemberTypes │ │ └── member.config │ │ ├── Templates │ │ ├── article.config │ │ ├── articlelist.config │ │ ├── author.config │ │ ├── authorlist.config │ │ ├── contact.config │ │ ├── content.config │ │ ├── error.config │ │ ├── home.config │ │ ├── master.config │ │ ├── search.config │ │ └── xmlsitemap.config │ │ └── usync.config └── wwwroot │ ├── css │ └── dropdownStyles.css │ └── favicon.ico ├── docker-compose.yml ├── docker-entrypoint.sh ├── docker-setup.sql ├── dockerfile.mssql ├── dockerfile.umbracosite └── readmefiles ├── application-launched-image-1.png ├── application-launched-image-2.png ├── application-launched-image.png ├── docker-boot-failed.png ├── docker-container.png ├── docker-umbraco-logs.png ├── docker-volume.png ├── image-1.png ├── image-2.png ├── image.png ├── lf-line-endings.png └── mssqlserver-config.png /.env.example: -------------------------------------------------------------------------------- 1 | PROJECT_FRIENDLY_NAME='UMBRACO_DOCKER_PROJECT' 2 | 3 | ## THESE ARE YOUR SUPER ADMIN CREDENTIALS TO CONNECT TO THE MASTER DB 4 | ## DO NOT USE THESE AS YOUR UMBRACO CREDENTIALS 5 | UMBRACO_DATABASE_SERVER_SA_USERNAME='sa' 6 | UMBRACO_DATABASE_SERVER_SA_PASSWORD='YOUR_PASS_goes_HERE@' 7 | 8 | ## These are your Umbraco database login credentials 9 | ## They should be different to your SA/Admin credentials 10 | UMBRACO_DATABASE_USERNAME_STRING='EXAMPLE_DATABASE_LOGIN_NAME' 11 | UMBRACO_DATABASE_PASSWORD_STRING='EXAMPLE_DATABASE_LOGIN_P@ssword' 12 | 13 | ## This is the name of the container your database will live in, 14 | ## and the name of the Umbraco database 15 | UMBRACO_DATABASE_SERVER_AND_CONTAINER_NAME='example_umbraco_sql_server_db' 16 | UMBRACO_DATABASE_NAME='EXAMPLE_UMBRACO_DATABASE_NAME' 17 | 18 | 19 | UMBRACO_CMS_UNATTENDED_INSTALLUNATTENDED=true 20 | UMBRACO_CMS_UNATTENDED_UNATTENDED_USERNAME='example username' 21 | UMBRACO_CMS_UNATTENDED_UNATTENDED_EMAIL='example@email.com' 22 | UMBRACO_CMS_UNATTENDED_UNATTENDED_PASSWORD='TEST12345@' -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf 2 | *.cshtml text eol=lf -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Liam Laverty 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /UmbracoDocker.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.0.31903.59 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UmbracoDockerProject", "UmbracoDockerProject\UmbracoDockerProject.csproj", "{D8B689B5-28DF-43CE-A1A6-F0F71594DB03}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(SolutionProperties) = preSolution 14 | HideSolutionNode = FALSE 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {D8B689B5-28DF-43CE-A1A6-F0F71594DB03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {D8B689B5-28DF-43CE-A1A6-F0F71594DB03}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {D8B689B5-28DF-43CE-A1A6-F0F71594DB03}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {D8B689B5-28DF-43CE-A1A6-F0F71594DB03}.Release|Any CPU.Build.0 = Release|Any CPU 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /UmbracoDockerProject/.dockerignore: -------------------------------------------------------------------------------- 1 | **/bin/ 2 | **/obj/ -------------------------------------------------------------------------------- /UmbracoDockerProject/Program.cs: -------------------------------------------------------------------------------- 1 | namespace UmbracoDockerProject 2 | { 3 | public class Program 4 | { 5 | public static void Main(string[] args) 6 | => CreateHostBuilder(args) 7 | .Build() 8 | .Run(); 9 | 10 | public static IHostBuilder CreateHostBuilder(string[] args) => 11 | Host.CreateDefaultBuilder(args) 12 | .ConfigureUmbracoDefaults() 13 | .ConfigureWebHostDefaults(webBuilder => 14 | { 15 | webBuilder.UseStaticWebAssets(); 16 | webBuilder.UseStartup(); 17 | }); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:31254", 8 | "sslPort": 44355 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "environmentVariables": { 16 | "ASPNETCORE_ENVIRONMENT": "Development" 17 | } 18 | }, 19 | "Umbraco.Web.UI": { 20 | "commandName": "Project", 21 | "dotnetRunMessages": true, 22 | "launchBrowser": true, 23 | "applicationUrl": "https://localhost:44355;http://localhost:31254", 24 | "environmentVariables": { 25 | "ASPNETCORE_ENVIRONMENT": "Development" 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Startup.cs: -------------------------------------------------------------------------------- 1 | namespace UmbracoDockerProject 2 | { 3 | public class Startup 4 | { 5 | private readonly IWebHostEnvironment _env; 6 | private readonly IConfiguration _config; 7 | 8 | /// 9 | /// Initializes a new instance of the class. 10 | /// 11 | /// The web hosting environment. 12 | /// The configuration. 13 | /// 14 | /// Only a few services are possible to be injected here https://github.com/dotnet/aspnetcore/issues/9337. 15 | /// 16 | public Startup(IWebHostEnvironment webHostEnvironment, IConfiguration config) 17 | { 18 | _env = webHostEnvironment ?? throw new ArgumentNullException(nameof(webHostEnvironment)); 19 | _config = config ?? throw new ArgumentNullException(nameof(config)); 20 | } 21 | 22 | /// 23 | /// Configures the services. 24 | /// 25 | /// The services. 26 | /// 27 | /// This method gets called by the runtime. Use this method to add services to the container. 28 | /// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940. 29 | /// 30 | public void ConfigureServices(IServiceCollection services) 31 | { 32 | services.AddUmbraco(_env, _config) 33 | .AddBackOffice() 34 | .AddWebsite() 35 | .AddDeliveryApi() 36 | .AddComposers() 37 | .Build(); 38 | } 39 | 40 | /// 41 | /// Configures the application. 42 | /// 43 | /// The application builder. 44 | /// The web hosting environment. 45 | public void Configure(IApplicationBuilder app, IWebHostEnvironment env) 46 | { 47 | if (env.IsDevelopment()) 48 | { 49 | app.UseDeveloperExceptionPage(); 50 | } 51 | 52 | app.UseUmbraco() 53 | .WithMiddleware(u => 54 | { 55 | u.UseBackOffice(); 56 | u.UseWebsite(); 57 | }) 58 | .WithEndpoints(u => 59 | { 60 | u.UseInstallerEndpoints(); 61 | u.UseBackOfficeEndpoints(); 62 | u.UseWebsiteEndpoints(); 63 | }); 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /UmbracoDockerProject/UmbracoDockerProject.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | net8.0 4 | enable 5 | enable 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | true 23 | 24 | 25 | 26 | 27 | false 28 | false 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Author.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | 6 | @{ 7 | Layout = "master.cshtml"; 8 | var authorListPage = Model.Parent as AuthorList; 9 | } 10 | 11 | 12 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, authorListPage.MainImage, null, null)) 13 | 14 |
15 |
16 |
17 |
18 | 19 |
20 |
21 | @Model.Name 22 |

@Model.Name

23 |
24 |
25 | 26 | @Html.GetBlockListHtml(Model.ContentRows) 27 |
28 |
29 |
30 |
-------------------------------------------------------------------------------- /UmbracoDockerProject/Views/AuthorList.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | 6 | @{ 7 | Layout = "master.cshtml"; 8 | } 9 | 10 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage)) 11 | 12 | @await Html.PartialAsync("~/Views/Partials/authors.cshtml") -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Components/Contact/Default.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels; 4 | 5 | @using (Html.BeginUmbracoForm("SubmitForm", "ContactSurface", FormMethod.Post, new { @class = "text-left" })) 6 | { 7 |
8 | 9 | 10 | 11 |
12 |
13 | 14 | 15 | 16 |
17 |
18 | 19 | 20 | 21 |
22 |
23 |
24 | 25 |
26 | } -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Components/Pagination/Default.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels; 4 | 5 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/authors.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | 3 | @using Clean.Core.Helpers 4 | @using Clean.Core.Models.ViewModels; 5 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 6 | 7 | @{ 8 | AuthorList authorList = UmbracoContext.Content.GetAtRoot().DescendantsOrSelf().FirstOrDefault(); 9 | int modelId = Model.Id; 10 | var isAuthorListPage = modelId == authorList?.Id; 11 | var fallbackPageSize = isAuthorListPage ? 10 : 3; 12 | 13 | var pageSize = QueryStringHelper.GetIntFromQueryString(Context.Request.Query, "size", fallbackPageSize); 14 | var pageNumber = QueryStringHelper.GetIntFromQueryString(Context.Request.Query, "page", 1); 15 | var allAuthors = authorList?.Children().Where(x => x.IsVisible()) ?? Enumerable.Empty(); 16 | var pageOfAuthors = allAuthors.Skip((pageNumber - 1) * pageSize).Take(pageSize); 17 | var totalItemCount = allAuthors.Count(); 18 | var pageCount = totalItemCount > 0 ? Math.Ceiling((double)totalItemCount / pageSize) : 1; 19 | 20 | } 21 | 22 |
23 |
24 |
25 |
26 |
27 | @foreach (var author in pageOfAuthors) 28 | { 29 |
30 |
31 |
32 | @author.Name 33 |
34 |
35 |
36 |

@author.Name

37 |

@author.MetaDescription

38 | 39 | @Umbraco.GetDictionaryValue("Author.ReadMore") 40 | 41 |
42 |
43 |
44 |
45 | } 46 |
47 |
48 | 49 | @if (isAuthorListPage) 50 | { 51 | @await Component.InvokeAsync("Pagination", new { totalItems = totalItemCount, url = Model.Url(), pageNumber = pageNumber, pageSize = pageSize }) 52 | } 53 |
54 |
55 |
56 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blockgrid/area.cshtml: -------------------------------------------------------------------------------- 1 | @using Umbraco.Extensions 2 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 3 | 4 |
9 | @await Html.GetBlockGridItemsHtmlAsync(Model) 10 |
11 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blockgrid/areas.cshtml: -------------------------------------------------------------------------------- 1 | @using Umbraco.Extensions 2 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 3 | @{ 4 | if (Model?.Areas.Any() != true) { return; } 5 | } 6 | 7 |
9 | @foreach (var area in Model.Areas) 10 | { 11 | @await Html.GetBlockGridItemAreaHtmlAsync(area) 12 | } 13 |
14 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blockgrid/default.cshtml: -------------------------------------------------------------------------------- 1 | @using Umbraco.Extensions 2 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 3 | @{ 4 | if (Model?.Any() != true) { return; } 5 | } 6 | 7 |
10 | @await Html.GetBlockGridItemsHtmlAsync(Model) 11 |
12 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blockgrid/items.cshtml: -------------------------------------------------------------------------------- 1 | @using Umbraco.Cms.Core.Models.Blocks 2 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> 3 | @{ 4 | if (Model?.Any() != true) { return; } 5 | } 6 | 7 |
8 | @foreach (var item in Model) 9 | { 10 | 11 |
19 | @{ 20 | var partialViewName = "blockgrid/Components/" + item.Content.ContentType.Alias; 21 | try 22 | { 23 | @await Html.PartialAsync(partialViewName, item) 24 | } 25 | catch (InvalidOperationException) 26 | { 27 |

28 | Could not render component of type: @(item.Content.ContentType.Alias) 29 |
30 | This likely happened because the partial view @partialViewName could not be found. 31 |

32 | } 33 | } 34 |
35 | } 36 |
37 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blocklist/Components/codeSnippetRow.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using Umbraco.Cms.Core.Models.Blocks 3 | 4 | @{ 5 | var row = Model.Content as CodeSnippetRow; 6 | var settings = Model.Settings as CodeSnippetRowSettings; 7 | if (settings?.Hide ?? false) { return; } 8 | 9 | var spacingClasses = ""; 10 | if (Model.Settings is ISpacingProperties spacing) 11 | { 12 | spacingClasses = Clean.Core.Helpers.SpacingHelper.GetSpacingClasses(spacing.PaddingTop, spacing.PaddingBottom, spacing.PaddingLeft, spacing.PaddingRight, spacing.MarginTop, spacing.MarginBottom, spacing.MarginLeft, spacing.MarginRight); 13 | } 14 | 15 | SmidgeHelper.RequiresCss("~/clean-assets/css/vs2015.css"); 16 | SmidgeHelper.RequiresCss("~/clean-assets/css/highlightjs-copy.min.css"); 17 | SmidgeHelper.RequiresJs("~/clean-assets/js/highlight.min.js"); 18 | SmidgeHelper.RequiresJs("~/clean-assets/js/highlightjs-copy.min.js"); 19 | SmidgeHelper.RequiresJs("~/clean-assets/js/initHighlight.js"); 20 | } 21 | 22 |
23 |
24 |
@row.Code
25 | @if (!string.IsNullOrWhiteSpace(row.Title)) 26 | { 27 |

@row.Title

28 | } 29 |
30 |
-------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blocklist/Components/iconLinkRow.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using Umbraco.Cms.Core.Models.Blocks 3 | @addTagHelper *, Clean.Core 4 | 5 | @{ 6 | var row = Model.Content as IconLinkRow; 7 | var settings = Model.Settings as IconLinkRowSettings; 8 | if (settings?.Hide ?? false) { return; } 9 | } 10 | 11 |
  • 12 | 13 | 14 | 15 |
  • -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blocklist/Components/imageCarouselRow.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using Umbraco.Cms.Core.Models.Blocks 3 | @using Clean.Core.Extensions 4 | 5 | @{ 6 | var row = Model.Content as ImageCarouselRow; 7 | var settings = Model.Settings as ImageCarouselRowSettings; 8 | if (settings?.Hide ?? false) { return; } 9 | if (row.Images == null || !row.Images.Any()) { return; } 10 | 11 | var spacingClasses = ""; 12 | if (Model.Settings is ISpacingProperties spacing) 13 | { 14 | spacingClasses = Clean.Core.Helpers.SpacingHelper.GetSpacingClasses(spacing.PaddingTop, spacing.PaddingBottom, spacing.PaddingLeft, spacing.PaddingRight, spacing.MarginTop, spacing.MarginBottom, spacing.MarginLeft, spacing.MarginRight); 15 | } 16 | 17 | SmidgeHelper.RequiresCss("~/clean-assets/css/swiffy-slider.min.css"); 18 | SmidgeHelper.RequiresJs("~/clean-assets/js/swiffy-slider.min.js"); 19 | } 20 | 21 |
    22 |
    23 |
    24 |
      25 | @foreach (var item in row.Images) 26 | { 27 |
    • @item.Content.GetAltText()
    • 28 | } 29 |
    30 | 31 | 32 | 33 | 34 |
    35 | 36 | @if (row.Images.Count() > 1) 37 | { 38 | foreach (var image in row.Images.Skip(1)) 39 | { 40 | 41 | } 42 | } 43 |
    44 | 45 |
    46 | 47 | @if (row.Images.Count() > 1) 48 | { 49 | foreach (var image in row.Images.Skip(1)) 50 | { 51 | 52 | } 53 | } 54 |
    55 |
    56 |
    57 |
    -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blocklist/Components/imageRow.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using Umbraco.Cms.Core.Models.Blocks 3 | @using Clean.Core.Extensions 4 | 5 | @{ 6 | var row = Model.Content as ImageRow; 7 | var settings = Model.Settings as ImageRowSettings; 8 | if (settings?.Hide ?? false) { return; } 9 | 10 | var spacingClasses = ""; 11 | if (Model.Settings is ISpacingProperties spacing) 12 | { 13 | spacingClasses = Clean.Core.Helpers.SpacingHelper.GetSpacingClasses(spacing.PaddingTop, spacing.PaddingBottom, spacing.PaddingLeft, spacing.PaddingRight, spacing.MarginTop, spacing.MarginBottom, spacing.MarginLeft, spacing.MarginRight); 14 | } 15 | } 16 | 17 |
    18 |
    19 | @row.Image.Content.GetAltText() 20 | @if (!string.IsNullOrWhiteSpace(row.Caption)) 21 | { 22 |

    @row.Caption

    23 | } 24 |
    25 |
    26 | 27 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blocklist/Components/richTextRow.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using Umbraco.Cms.Core.Models.Blocks 3 | 4 | @{ 5 | var row = Model.Content as RichTextRow; 6 | var settings = Model.Settings as RichTextRowSettings; 7 | if (settings?.Hide ?? false) { return; } 8 | 9 | var spacingClasses = ""; 10 | if (Model.Settings is ISpacingProperties spacing) 11 | { 12 | spacingClasses = Clean.Core.Helpers.SpacingHelper.GetSpacingClasses(spacing.PaddingTop, spacing.PaddingBottom, spacing.PaddingLeft, spacing.PaddingRight, spacing.MarginTop, spacing.MarginBottom, spacing.MarginLeft, spacing.MarginRight); 13 | } 14 | } 15 | 16 |
    17 |
    18 | @row.Content 19 |
    20 |
    -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blocklist/Components/videoRow.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using Clean.Core.Helpers 3 | @using Umbraco.Cms.Core.Models.Blocks 4 | 5 | @{ 6 | var row = Model.Content as VideoRow; 7 | var settings = Model.Settings as VideoRowSettings; 8 | if (settings?.Hide ?? false) { return; } 9 | if (string.IsNullOrWhiteSpace(row.VideoUrl)) { return; } 10 | 11 | var spacingClasses = ""; 12 | if (Model.Settings is ISpacingProperties spacing) 13 | { 14 | spacingClasses = Clean.Core.Helpers.SpacingHelper.GetSpacingClasses(spacing.PaddingTop, spacing.PaddingBottom, spacing.PaddingLeft, spacing.PaddingRight, spacing.MarginTop, spacing.MarginBottom, spacing.MarginLeft, spacing.MarginRight); 15 | } 16 | 17 | var videoId = VideoUrlHelper.GetVideoId(row.VideoUrl); 18 | } 19 | 20 |
    21 |
    22 |
    23 | @if (!string.IsNullOrWhiteSpace(row.Caption)) 24 | { 25 |

    @row.Caption

    26 | } 27 |
    28 |
    29 | 30 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/blocklist/default.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | @{ 3 | if (Model?.Any() != true) { return; } 4 | } 5 |
    6 | @foreach (var block in Model) 7 | { 8 | if (block?.ContentUdi == null) { continue; } 9 | var data = block.Content; 10 | 11 | @await Html.PartialAsync("blocklist/Components/" + data.ContentType.Alias, block) 12 | } 13 |
    14 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/footer.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 3 | 4 | @{ 5 | var homePage = Model.AncestorOrSelf(); 6 | } 7 | 8 | 9 |
    10 |
    11 |
    12 |
    13 | @if (homePage.SocialIconLinks != null && homePage.SocialIconLinks.Any()) 14 | { 15 |
      16 | @Html.GetBlockListHtml(homePage.SocialIconLinks) 17 |
    18 | } 19 |

    @Umbraco.GetDictionaryValue("Footer.CopyrightTitle") © @DateTime.Now.Year @Umbraco.GetDictionaryValue("Footer.CopyrightStatement")

    20 |

    Theme by Start Bootstrap, implemented in Umbraco by Paul Seal from codeshare.co.uk

    21 |
    22 |
    23 |
    24 |
    25 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/grid/editors/base.cshtml: -------------------------------------------------------------------------------- 1 | @model dynamic 2 | 3 | @try 4 | { 5 | string editor = EditorView(Model); 6 | @await Html.PartialAsync(editor, Model as object) 7 | } 8 | catch (Exception ex) 9 | { 10 |
    @ex.ToString()
    11 | } 12 | 13 | @functions{ 14 | 15 | public static string EditorView(dynamic contentItem) 16 | { 17 | string view = contentItem.editor.render != null ? contentItem.editor.render.ToString() : contentItem.editor.view.ToString(); 18 | view = view.Replace(".html", ".cshtml"); 19 | 20 | if (!view.Contains("/")) 21 | { 22 | view = "grid/editors/" + view; 23 | } 24 | 25 | return view; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/grid/editors/embed.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @if (Model is not null) 4 | { 5 | string embedValue = Convert.ToString(Model.value); 6 | embedValue = embedValue.DetectIsJson() ? Model.value.preview : Model.value; 7 | 8 |
    9 | @Html.Raw(embedValue) 10 |
    11 | } 12 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/grid/editors/macro.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @if (Model?.value is not null) 4 | { 5 | string macroAlias = Model.value.macroAlias.ToString(); 6 | var parameters = new Dictionary(); 7 | foreach (var mpd in Model.value.macroParamsDictionary) 8 | { 9 | parameters.Add(mpd.Name, mpd.Value); 10 | } 11 | 12 | 13 | @await Umbraco.RenderMacroAsync(macroAlias, parameters) 14 | 15 | } 16 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/grid/editors/media.cshtml: -------------------------------------------------------------------------------- 1 | @model dynamic 2 | @using Umbraco.Cms.Core.Media 3 | @using Umbraco.Cms.Core.PropertyEditors.ValueConverters 4 | @inject IImageUrlGenerator ImageUrlGenerator 5 | 6 | @if (Model?.value is not null) 7 | { 8 | var url = Model.value.image; 9 | 10 | if (Model.editor.config != null && Model.editor.config.size != null) 11 | { 12 | if (Model.value.coordinates != null) 13 | { 14 | url = ImageCropperTemplateCoreExtensions.GetCropUrl( 15 | (string)url, 16 | ImageUrlGenerator, 17 | width: (int)Model.editor.config.size.width, 18 | height: (int)Model.editor.config.size.height, 19 | cropAlias: "default", 20 | cropDataSet: new ImageCropperValue 21 | { 22 | Crops = new[] 23 | { 24 | new ImageCropperValue.ImageCropperCrop 25 | { 26 | Alias = "default", 27 | Coordinates = new ImageCropperValue.ImageCropperCropCoordinates 28 | { 29 | X1 = (decimal)Model.value.coordinates.x1, 30 | Y1 = (decimal)Model.value.coordinates.y1, 31 | X2 = (decimal)Model.value.coordinates.x2, 32 | Y2 = (decimal)Model.value.coordinates.y2 33 | } 34 | } 35 | } 36 | }); 37 | } 38 | else 39 | { 40 | url = ImageCropperTemplateCoreExtensions.GetCropUrl( 41 | (string)url, 42 | ImageUrlGenerator, 43 | width: (int)Model.editor.config.size.width, 44 | height: (int)Model.editor.config.size.height, 45 | cropDataSet: new ImageCropperValue 46 | { 47 | FocalPoint = new ImageCropperValue.ImageCropperFocalPoint 48 | { 49 | Top = Model.value.focalPoint == null ? 0.5m : Model.value.focalPoint.top, 50 | Left = Model.value.focalPoint == null ? 0.5m : Model.value.focalPoint.left 51 | } 52 | }); 53 | } 54 | } 55 | 56 | var altText = Model.value.altText ?? Model.value.caption ?? string.Empty; 57 | 58 | @altText 59 | 60 | if (Model.value.caption != null) 61 | { 62 |

    @Model.value.caption

    63 | } 64 | } 65 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/grid/editors/rte.cshtml: -------------------------------------------------------------------------------- 1 | @using Umbraco.Cms.Core.Templates 2 | @model dynamic 3 | @inject HtmlLocalLinkParser HtmlLocalLinkParser; 4 | @inject HtmlUrlParser HtmlUrlParser; 5 | @inject HtmlImageSourceParser HtmlImageSourceParser; 6 | 7 | @{ 8 | var value = HtmlLocalLinkParser.EnsureInternalLinks(Model?.value.ToString()); 9 | value = HtmlUrlParser.EnsureUrls(value); 10 | value = HtmlImageSourceParser.EnsureImageSources(value); 11 | } 12 | 13 | @Html.Raw(value) 14 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/grid/editors/textstring.cshtml: -------------------------------------------------------------------------------- 1 | @model dynamic 2 | 3 | @if (Model?.editor.config.markup is not null) 4 | { 5 | string markup = Model.editor.config.markup.ToString(); 6 | markup = markup.Replace("#value#", Html.ReplaceLineBreaks((string)Model.value.ToString()).ToString()); 7 | 8 | if (Model.editor.config.style != null) 9 | { 10 | markup = markup.Replace("#style#", Model.editor.config.style.ToString()); 11 | } 12 | 13 | 14 | @Html.Raw(markup) 15 | 16 | } 17 | else 18 | { 19 | 20 |
    @Model?.value
    21 |
    22 | } 23 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/mainNavigation.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 3 | 4 | @{ 5 | var homePage = Model.AncestorOrSelf(); 6 | } 7 | 8 | 31 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/metaData.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | 3 | @{ 4 | var homePage = Model.AncestorOrSelf(); 5 | string domainAddress = homePage.Url(mode:UrlMode.Absolute).TrimEnd('/'); 6 | string canonicalLink = domainAddress + Model.Url(); 7 | string metaName = Model.Value("metaName"); 8 | string metaDescription = Model.Value("metaDescription"); 9 | var metaKeywords = Model.Value>("metaKeywords"); 10 | } 11 | 12 | 13 | 14 | 15 | 16 | 17 | @string.Format("{0} | {1}", Model.Name, Umbraco.GetDictionaryValue("Navigation.SiteName")) 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/pageHeader.cshtml: -------------------------------------------------------------------------------- 1 | @inherits UmbracoViewPage 2 | 3 | @{ 4 | string mainImageUrl = Model.HasBackgroundImage ? Model.BackgroundImage.GetCropUrl(1903, 628) : "/media/f01jqvmq/2.jpg"; 5 | } 6 | 7 |
    8 |
    9 |
    10 |
    11 |
    12 |

    @(!string.IsNullOrWhiteSpace(Model.Title) ? Model.Title : Model.Name)

    13 | 14 | @if (Model.IsArticle) 15 | { 16 | if (Model.HasSubtitle) 17 | { 18 |

    @Model.Subtitle

    19 | } 20 | 21 | Posted 22 | @if (Model.HasAuthor) 23 | { 24 | @Umbraco.GetDictionaryValue("Article.By")@Html.Raw(" ")@Model.AuthorName 25 | } 26 | @Umbraco.GetDictionaryValue("Article.On")@Html.Raw(" ")@Model.ArticleDate.Value.ToString("MMMM dd, yyyy") 27 | 28 | @if (Model.Categories != null && Model.Categories.Any()) 29 | { 30 | 31 | @foreach (var category in Model.Categories.Select(x => x.Name).OrderBy(y => y)) 32 | { 33 | @category 34 | } 35 | } 36 | } 37 | else 38 | { 39 | if (Model.HasSubtitle) 40 | { 41 | @(Model.Subtitle) 42 | } 43 | } 44 |
    45 |
    46 |
    47 |
    48 |
    49 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/Partials/xmlSitemap.cshtml: -------------------------------------------------------------------------------- 1 | @model IPublishedContent 2 | @{ 3 | 4 | var homePage = Model.AncestorOrSelf("home"); 5 | void RenderChildPages(IEnumerable contentItems) 6 | { 7 | if (contentItems.Any()) 8 | { 9 | foreach (var content in contentItems.Where(x => x.IsVisible())) 10 | { 11 | if (!(content.HasProperty("excludeFromSitemap") && content.Value("excludeFromSitemap"))) 12 | { 13 | @content.Url(mode:UrlMode.Absolute)@content.UpdateDate.ToString("yyyy-MM-ddTHH:mm:sszzz") 14 | if (content.Children.Any(x => x.IsVisible())) 15 | { 16 | RenderChildPages(content.Children); 17 | } 18 | } 19 | } 20 | } 21 | }; 22 | } 23 | 24 | 27 | @homePage.Url(mode: UrlMode.Absolute)1.0@homePage.UpdateDate.ToString("yyyy-MM-ddTHH:mm:sszzz") 28 | @{ 29 | RenderChildPages(homePage.Children); 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using Umbraco.Extensions 2 | @using UmbracoDockerProject 3 | @using Umbraco.Cms.Web.Common.PublishedModels 4 | @using Umbraco.Cms.Web.Common.Views 5 | @using Umbraco.Cms.Core.Models.PublishedContent 6 | @using Microsoft.AspNetCore.Html 7 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 8 | @addTagHelper *, Smidge 9 | @inject Smidge.SmidgeHelper SmidgeHelper 10 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/article.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | @using Umbraco.Cms.Core 6 | @using Clean.Core.Extensions 7 | 8 | @{ 9 | Layout = "master.cshtml"; 10 | var author = Model.GetAuthor(Umbraco); 11 | } 12 | 13 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage, author.Name, Model.ArticleDate, Model.Categories)) 14 | 15 |
    16 |
    17 |
    18 |
    19 | @Html.GetBlockListHtml(Model.ContentRows) 20 |
    21 |
    22 |
    23 |
    -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/articleList.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | 6 | @{ 7 | Layout = "master.cshtml"; 8 | } 9 | 10 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage)) 11 | 12 | @if (Model.ContentRows != null) 13 | { 14 |
    15 |
    16 |
    17 |
    18 | @Html.GetBlockListHtml(Model.ContentRows) 19 |
    20 |
    21 |
    22 |
    23 | } -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/contact.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | 6 | @{ 7 | Layout = "master.cshtml"; 8 | var submitted = false; 9 | if (bool.TryParse(TempData["Success"]?.ToString() ?? "", out var success)) 10 | { 11 | submitted = true; 12 | } 13 | } 14 | 15 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage)) 16 | 17 |
    18 |
    19 |
    20 |
    21 | @if(submitted) 22 | { 23 | 24 | @if (success) 25 | { 26 | @Model.SuccessMessage 27 | } 28 | else 29 | { 30 | @Model.ErrorMessage 31 | } 32 | } 33 | else 34 | { 35 | @Model.InstructionMessage 36 |
    37 | @await Component.InvokeAsync("Contact") 38 |
    39 | 40 | } 41 |
    42 |
    43 |
    44 |
    -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/content.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | 6 | 7 | @{ 8 | Layout = "master.cshtml"; 9 | } 10 | 11 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage)) 12 | 13 |
    14 |
    15 |
    16 |
    17 | @Html.GetBlockListHtml(Model.ContentRows) 18 |
    19 |
    20 |
    21 |
    -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/error.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | 6 | @{ 7 | Layout = "master.cshtml"; 8 | } 9 | 10 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage)) 11 | 12 |
    13 |
    14 |
    15 |
    16 | @Html.GetBlockListHtml(Model.ContentRows) 17 |
    18 |
    19 |
    20 |
    -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/home.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @using Clean.Core.Models.ViewModels 4 | @using ContentModels = Umbraco.Cms.Web.Common.PublishedModels 5 | 6 | @{ 7 | Layout = "master.cshtml"; 8 | } 9 | 10 | @await Html.PartialAsync("~/Views/Partials/pageHeader.cshtml", new PageHeaderViewModel(Model.Name, Model.Title, Model.Subtitle, Model.MainImage)) 11 | 12 | @if (Model.ContentRows != null) 13 | { 14 |
    15 |
    16 |
    17 |
    18 | @Html.GetBlockListHtml(Model.ContentRows) 19 |
    20 |
    21 |
    22 |
    23 | } -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/master.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | 3 | @{ 4 | Layout = null; 5 | 6 | SmidgeHelper.RequiresCss("~/clean-assets/css/styles.css"); 7 | SmidgeHelper.RequiresJs("~/clean-assets/js/scripts.js"); 8 | } 9 | 10 | 11 | 12 | 13 | @await Html.PartialAsync("~/Views/Partials/metaData.cshtml") 14 | 15 | 16 | 17 | 18 | 19 | 20 | @await SmidgeHelper.CssHereAsync(debug: false) 21 | 22 | 23 | 24 | @await Html.CachedPartialAsync("~/Views/Partials/mainNavigation.cshtml", model: Model, cacheTimeout: TimeSpan.FromMinutes(60)) 25 | @RenderBody() 26 | @await Html.CachedPartialAsync("~/Views/Partials/footer.cshtml", model: Model, cacheTimeout: TimeSpan.FromMinutes(60)) 27 | 28 | 29 | 30 | 31 | @await SmidgeHelper.JsHereAsync(debug: false) 32 | 33 | 34 | -------------------------------------------------------------------------------- /UmbracoDockerProject/Views/xMLSitemap.cshtml: -------------------------------------------------------------------------------- 1 | @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage 2 | @{ 3 | Context.Response.ContentType = "text/xml"; 4 | Layout = null; 5 | } 6 | @(await Html.CachedPartialAsync("~/Views/Partials/xmlSitemap.cshtml", Model, TimeSpan.FromMinutes(60))) 7 | -------------------------------------------------------------------------------- /UmbracoDockerProject/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "appsettings-schema.json", 3 | "Serilog": { 4 | "MinimumLevel": { 5 | "Default": "Information", 6 | "Override": { 7 | "Microsoft": "Warning", 8 | "Microsoft.Hosting.Lifetime": "Information", 9 | "System": "Warning" 10 | } 11 | } 12 | }, 13 | "Umbraco": { 14 | "CMS": { 15 | "Global": { 16 | "Id": "a58f2f3d-03d1-4734-b927-eb7865b0c8c8", 17 | "SanitizeTinyMce": true 18 | }, 19 | "Content": { 20 | "AllowEditInvariantFromNonDefault": true, 21 | "ContentVersionCleanupPolicy": { 22 | "EnableCleanup": true 23 | } 24 | }, 25 | "Unattended": { 26 | "UpgradeUnattended": true 27 | }, 28 | "uSync": { 29 | "Settings": { 30 | "ImportAtStartup": "false" 31 | } 32 | }, 33 | "Security": { 34 | "AllowConcurrentLogins": false 35 | } 36 | } 37 | }, 38 | "ConnectionStrings": { 39 | "umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True", 40 | "umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite" 41 | } 42 | } -------------------------------------------------------------------------------- /UmbracoDockerProject/uSync/v9/Content/about-us.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Home 5 | /Home/AboutUs 6 | false 7 | content 8 | 2023-11-23T09:20:37 9 | 10 | 1 11 | 12 | 13 | 14 | 15 | 16 | 17 | Welcome to our ocean-loving corner of the internet! We're a team of passionate marine enthusiasts who have come together to create a space where the wonders of the deep blue can be explored, celebrated, and shared. Our website is not just a place; it's a virtual pod where we invite you to join us on a fascinating journey into the extraordinary world of whales.

    " 31 | } 32 | ], 33 | "settingsData": [ 34 | { 35 | "contentTypeKey": "da15dc43-43f6-45f6-bda8-1fd17a49d25c", 36 | "udi": "umb://element/38c5ec597c9948d59582509d8c4094a6", 37 | "hide": "0", 38 | "paddingTop": "", 39 | "paddingBottom": "", 40 | "paddingLeft": "", 41 | "paddingRight": "", 42 | "marginTop": "", 43 | "marginBottom": "", 44 | "marginLeft": "", 45 | "marginRight": "" 46 | } 47 | ] 48 | }]]>
    49 |
    50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | <Value><![CDATA[]]></Value> 78 | 79 | 80 | 81 | 82 |
    83 |
    -------------------------------------------------------------------------------- /UmbracoDockerProject/uSync/v9/Content/authors.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Home 5 | /Home/Authors 6 | false 7 | authorList 8 | 2023-11-23T09:20:38 9 | 10 | 7 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | <Value><![CDATA[]]></Value> 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /UmbracoDockerProject/uSync/v9/Content/blog.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Home 5 | /Home/Blog 6 | false 7 | articleList 8 | 2023-11-23T09:20:37 9 | 10 | 2 11 | 12 | 13 | 14 | 15 | 16 | 17 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | <Value><![CDATA[]]></Value> 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /UmbracoDockerProject/uSync/v9/Content/categories.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Home 5 | /Home/Categories 6 | false 7 | categoryList 8 | 2023-11-23T09:20:38 9 | 10 | 8 11 | 12 | 13 |