This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
default.ascx
153 lines (135 loc) · 7.35 KB
/
default.ascx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<%@ Control language="C#" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.DDRMenu.TemplateEngine" Assembly="DotNetNuke.Web.DDRMenu" %>
<%@ Register TagPrefix="dnn" TagName="MENU" src="~/DesktopModules/DDRMenu/Menu.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<%@ Register TagPrefix="tosic" TagName="LanguageNavigation" src="controls/LanguageNavigation.ascx" %>
<%-- Change the page title to contain the breadcrumbi in an SEO optimized way --%>
<%@ Register TagPrefix="tosic" TagName="PageTitle" src="controls/optimize-page-title.ascx" %>
<tosic:PageTitle runat="server" />
<%-- Set common CSS classes on the body which determine the Layout
Layout="Full" are: Default, Wide, Full, Box
Navigation="Left": Right, Center, Left
--%>
<%@ Register TagPrefix="tosic" TagName="BodyCssClasses" src="controls/body-css-classes.ascx" %>
<tosic:BodyCssClasses runat="server" Layout="Default" Navigation="Right"/>
<%-- Activate Quick-Edit in empty pages if 2sxc is installed
more infos on 2sxc quick-edit: https://2sxc.org/en/blog/post/quick-edit-2-add-move-delete-modules-in-preview-touch-capable-for-dnn
--%>
<%@ Register TagPrefix="tosic" TagName="SxcQuickEdit" src="controls/2sxc-quickedit.ascx" %>
<tosic:SxcQuickEdit runat="server" />
<%-- Include Google Font
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
--%>
<a class="sr-only sr-only-focusable" href="#content"><%= LocalizeString("SkipLink.MainContent") %></a>
<div class="ly-fullwrapper">
<header>
<div class="container-fluid d-flex">
<a class="ly-logo" href="/" title="Bootstrap 4 Instant (change this in the default.ascx)">
<img alt="Logo" class="img-fluid" src="<%=SkinPath%>images/logo.svg" data-fallback="<%=SkinPath%>images/logo.png" onerror="this.src=this.getAttribute('data-fallback');this.onerror=null;">
</a>
<nav id="nav-mobile">
<div class="ly-header-mobile">
<div class="container-fluid">
<a class="ly-logo" href="/" title="Bootstrap 4 Instant (change this in the default.ascx)">
<img alt="Logo" class="img-fluid" src="<%#SkinPath%>images/logo.svg" data-fallback="<%#SkinPath%>images/logo.png" onerror="this.src=this.getAttribute('data-fallback');this.onerror=null;">
</a>
</div>
</div>
<div class="ly-nav-mobile-container">
<dnn:MENU MenuStyle="nav/main-mobile" NodeSelector="*,0,6" runat="server" />
<tosic:languagenavigation runat="server" Languages="en-US:EN,de-DE:DE" />
</div>
</nav>
<div id="nav-icon" class="ly-hamburger" title="Menu">
<div>
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="nav-desktop" class="navbar d-none d-lg-block">
<tosic:languagenavigation runat="server" Languages="en-US:EN,de-DE:DE" />
<dnn:MENU MenuStyle="nav/main" NodeSelector="*,0,0" runat="server" />
</nav>
</div>
</header>
<div class="container-fluid px-0 ly-header-pane <%= (HeaderPane.Attributes["class"] ?? "").Contains("DNNEmptyPane") ? "ly-header-pane-empty" : "" %>">
<div class="ly-container-inner">
<div id="HeaderPane" runat="server" containertype="G" containername="Invisible Container" containersrc="default.ascx"></div>
</div>
</div>
<div id="content">
<div class="container-fluid ly-content">
<div class="ly-container-inner">
<div class="ly-contentpane-full">
<div id="ContentPane" runat="server" containertype="G" containername="Invisible Container" containersrc="default.ascx"></div>
</div>
<div class="row">
<div class="col-xs-12 col-lg-9 order-lg-2 ly-col-contentpane">
<div id="RightPane" runat="server" containertype="G" containername="Invisible Container" containersrc="default.ascx"></div>
</div>
<div class="col-xs-12 col-lg-3 order-lg-1 ly-col-leftpane">
<div id="nav-sub" class="d-none d-sm-block">
<dnn:MENU MenuStyle="nav/sub" NodeSelector="+0,0,2" runat="server" />
</div>
<div class="d-block d-sm-none">
<dnn:MENU MenuStyle="nav/sub" NodeSelector="CurrentChildren" runat="server" />
</div>
</div>
</div>
</div>
<a class="ly-top" href="#" title="Nach oben"><i></i></a>
</div>
</div>
<div class="ly-push"></div>
</div>
<footer>
<div class="container-fluid d-flex justify-content-md-between flex-column flex-md-row">
<ul class="ly-footer-address clearfix" itemscope itemtype="http://schema.org/LocalBusiness">
<li>
<strong itemprop="name">Bootstrap 4 Instant</strong>
</li>
<li>
<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Instant Road 77</span>,
<span itemprop="postalCode">50355</span>
<span itemprop="addressLocality">Instant City</span>,
<span itemprop="addressCountry">Instant Country</span>
</span>
</li>
<li><i class="fas fa-phone"></i> <a href="tel:+41817506777">+41 81 750 67 77</a></li>
<li>
<i class="far fa-envelope"></i> <span data-madr1="instant" data-madr2="example" data-madr3="com" data-linktext="[email protected]"></span>
</li>
</ul>
<div class="ly-footer-imprint">
<dnn:login id="DnnLogin" cssclass="ly-login d-none d-lg-inline-flex" runat="server" />
<a href="<%= LocalizeString("Imprint.Url") %>" title="<%= LocalizeString("Imprint.Text") %>"><%= LocalizeString("Imprint.Text") %></a> |
<a href="<%= LocalizeString("Privacy.Url") %>" title="<%= LocalizeString("Privacy.Text") %>"><%= LocalizeString("Privacy.Text") %></a>
</div>
</div>
</footer>
<!-- include files -->
<dnn:DnnCssInclude runat="server" FilePath="dist/theme.min.css" Priority="100" PathNameAlias="SkinPath" />
<dnn:DnnJsInclude runat="server" FilePath="dist/theme.min.js" ForceProvider="DnnFormBottomProvider" Priority="130" PathNameAlias="SkinPath" />
<script defer async src="https://use.fontawesome.com/releases/v5.12.0/js/all.js"></script>
<script runat="server">
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
AttachCustomHeader("<meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no' />");
// Set various FavIcon and Icon headers according to best practices
// The next line is disabled by default, because it requires RazorBlade to be installed.
// How to install RazorBlade 3: https://azing.org/dnn-community/r/zbh8JC5T
// How to create best-practice FavIcons: https://azing.org/dnn-community/r/UhgWJbxh
// ToSic.Razor.Blade.HtmlPage.AddIconSet(SkinPath + "favicon.png");
}
protected void AttachExternalCSS(string CSSPath) { AttachCustomHeader("<link type='text/css' rel='stylesheet' href='" + CSSPath + "' />"); }
protected void AttachExternalJS(string JSPath) { AttachCustomHeader("<script type='text/javascript' src='" + JSPath + "'></scr" + "ipt>"); }
protected void AttachCustomHeader(string CustomHeader) { HtmlHead HtmlHead = (HtmlHead)Page.FindControl("Head"); if ((HtmlHead != null)) { HtmlHead.Controls.Add(new LiteralControl(CustomHeader)); } }
protected string LocalizeString(string key)
{
return Localization.GetString(key, Localization.GetResourceFile(this, System.IO.Path.GetFileName(this.AppRelativeVirtualPath)));
}
</script>