Skip to content

Commit 8e1caf6

Browse files
authored
Merge pull request #60 from UpendoVentures/features/minor-updates
Features/minor updates
2 parents 4038f1c + 223c9de commit 8e1caf6

2 files changed

Lines changed: 123 additions & 2 deletions

File tree

Porto-ExtensionList/Template.cshtml

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<li class="col-lg-@columns col-md-4 col-sm-6 col-xs-12 isotope-item @string.Join(" ", item.Category ?? new List<string>())">
136136
<div class="thumb-info thumb-info-hide-wrapper-bg mb-xlg d-flex flex-column flex-grow-1" style="min-height: 415px;">
137137
<span class="thumb-info-wrapper">
138-
<a href="@item.Download" target="_blank" class="no-lightbox">
138+
<a href="@item.Download" target="@GetLinkTarget(item.HomePage)" class="no-lightbox">
139139
<span class="thumb-info-wrapper d-flex align-items-center justify-content-center">
140140
<img alt="@item.Title" title="@item.Title" src="@item.logo" class="img-fluid"
141141
style="height: 200px; object-fit: cover;">
@@ -233,4 +233,125 @@
233233
<div class="dnnClear">
234234
@ObjectInfo.Print(Model)
235235
</div>
236+
*@
237+
<div class="text-muted small mt-2 d-flex align-items-center text-center">
238+
<i class="fas fa-lock me-2 text-success"></i>
239+
Worry-free checkout powered by <strong class="mx-2">Stripe</strong>
240+
</div>
241+
<div class="mt-2 d-flex align-items-center">
242+
<p class="text-muted small text-center"><i class="fas fa-lock me-2 text-success"></i>
243+
Worry-free checkout powered by <strong class="mx-2">Stripe</strong></p>
244+
</div>
245+
246+
<div class="card-text mb-3">
247+
<p class="text-muted small text-center"><i class="fas fa-lock me-2 text-success"></i>
248+
Worry-free checkout powered by <strong class="mx-2">Stripe</strong></p>
249+
</div>
250+
251+
@using DotNetNuke.Entities.Modules
252+
@{
253+
// Update or create the "hideadminborder" setting with the value "True"
254+
var currentModule = ModuleController.Instance.GetModule(Dnn.Module.ModuleID, Dnn.Module.TabID, false);
255+
if (currentModule != null && currentModule.TabModuleID > 0)
256+
{
257+
// Check if the "hideadminborder" setting is not set or is not "True"
258+
var currentSetting = currentModule.TabModuleSettings.ContainsKey("hideadminborder")
259+
? currentModule.TabModuleSettings["hideadminborder"]
260+
: null;
261+
262+
if (currentSetting == null || !currentSetting.ToString().Equals("True", StringComparison.OrdinalIgnoreCase))
263+
{
264+
// Update or create the "hideadminborder" setting with the value "True"
265+
ModuleController.Instance.UpdateTabModuleSetting(currentModule.TabModuleID, "hideadminborder", "True");
266+
}
267+
}
268+
}
269+
270+
@if (!string.IsNullOrEmpty(Model.ModuleAnchor))
271+
{
272+
<div id="@Model.ModuleAnchor"></div>
273+
}
274+
<div class="container">
275+
<div class="row @Model.Settings.MarginTop @Model.Settings.MarginBottom @Model.Settings.PaddingTop @Model.Settings.PaddingBottom">
276+
@if (Model.Settings.EnableHeadingBorder)
277+
{
278+
<div class="heading @Model.Settings.BorderColor heading-border @Model.Settings.BorderStyle @Model.Settings.BorderSize">
279+
<@Model.Settings.HeadingType class="@(Model.SubHeading != null ? "mb-0" : "") @Model.Settings.Uppercase @Model.Settings.HeadingColor">@Model.Heading</@Model.Settings.HeadingType>
280+
281+
@if (Model.SubHeading != null)
282+
{
283+
<p class="mb-5 mt-1">@Model.SubHeading</p>
284+
}
285+
</div>
286+
}
287+
else
288+
{
289+
<@Model.Settings.HeadingType class="@(Model.SubHeading != null ? "mb-0" : "") @Model.Settings.Uppercase @Model.Settings.HeadingColor">@Model.Heading</@Model.Settings.HeadingType>
290+
291+
@if (Model.SubHeading != null)
292+
{
293+
<p class="mb-5 mt-1">@Model.SubHeading</p>
294+
}
295+
}
296+
</div>
297+
</div>
298+
299+
300+
301+
302+
@using DotNetNuke.Entities.Modules
303+
@{
304+
// Update or create the "hideadminborder" setting with the value "True"
305+
var currentModule = ModuleController.Instance.GetModule(Dnn.Module.ModuleID, Dnn.Module.TabID, false);
306+
if (currentModule != null && currentModule.TabModuleID > 0)
307+
{
308+
// Check if the "hideadminborder" setting is not set or is not "True"
309+
var currentSetting = currentModule.TabModuleSettings.ContainsKey("hideadminborder")
310+
? currentModule.TabModuleSettings["hideadminborder"]
311+
: null;
312+
313+
if (currentSetting == null || !currentSetting.ToString().Equals("True", StringComparison.OrdinalIgnoreCase))
314+
{
315+
// Update or create the "hideadminborder" setting with the value "True"
316+
ModuleController.Instance.UpdateTabModuleSetting(currentModule.TabModuleID, "hideadminborder", "True");
317+
}
318+
}
319+
320+
var useHtmlWrapper = (Model.UseHtmlWrapper != null) ? Model.UseHtmlWrapper : true;
321+
var useContentWrapper = (Model.IncludeContentWrapperClass != null) ? Model.IncludeContentWrapperClass : true;
322+
var contentWrapper = (useContentWrapper) ? "content-wrapper" : string.Empty;
323+
}
324+
325+
@if (!string.IsNullOrEmpty(Model.ModuleAnchor))
326+
{
327+
<div id="@Model.ModuleAnchor"></div>
328+
}
329+
@if (!useHtmlWrapper)
330+
{
331+
<div class="@contentWrapper @Model.Settings.MarginTop @Model.Settings.MarginBottom @Model.Settings.PaddingTop @Model.Settings.PaddingBottom">
332+
@if (!string.IsNullOrEmpty(Model.HtmlContent)){
333+
@Html.Raw(Model.HtmlContent)
334+
}else{
335+
<h1>No HTML Content</h1>
336+
<p>Edit this module to add any HTML-based content.</p>
337+
}
338+
</div>
339+
}
340+
else
341+
{
342+
<div class="container @contentWrapper">
343+
<div class="row @Model.Settings.MarginTop @Model.Settings.MarginBottom @Model.Settings.PaddingTop @Model.Settings.PaddingBottom">
344+
@if (!string.IsNullOrEmpty(Model.HtmlContent)){
345+
@Html.Raw(Model.HtmlContent)
346+
}else{
347+
<h1>No HTML Content</h1>
348+
<p>Edit this module to add any HTML-based content.</p>
349+
}
350+
</div>
351+
</div>
352+
}
353+
@*
354+
<div class="dnnClear">
355+
@ObjectInfo.Print(Model)
356+
</div>
236357
*@

Porto-Paragraphs-Side-Image/Template.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<div class="col-md-4">
5353
@if (Model.Image != null)
5454
{
55-
<img src="@Model.Image" alt="@Model.AltText" title="@Model.AltText" data-bs-toggle="tooltip" data-bs-title="@Model.AltText" data-placement="bottom" class="z-1 @Model.Classes" />
55+
<img src="@Model.Image" alt="@Model.AltText" title="@Model.AltText" data-bs-toggle="tooltip" data-bs-title="@Model.AltText" data-placement="bottom" class="z-1 appear-animation @Model.Classes" data-appear-animation="fadeInUp" />
5656
}
5757
else
5858
{

0 commit comments

Comments
 (0)