Skip to content

Commit

Permalink
2sxc 14 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
getBlup committed Jul 4, 2022
1 parent 6c29313 commit af9c0cf
Show file tree
Hide file tree
Showing 21 changed files with 2,696 additions and 1,268 deletions.
6 changes: 3 additions & 3 deletions .data/app.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="13.10.02" ExportDate="2022-05-10T14:05:43.9606936+02:00">
<SexyContent FileVersion="07.00.00" MinimumRequiredVersion="07.04.02" ModuleVersion="14.07.02" ExportDate="2022-07-04T12:44:25.4701182+02:00">
<Header>
<App Guid="8551a815-e9c1-4827-ae4f-c602ad441def" />
<Language Default="en-us" />
Expand Down Expand Up @@ -623,13 +623,13 @@
<Value Key="RequiredOqtaneVersion" Value="03.01.00" Type="String">
<Dimension DimensionID="81" ReadOnly="false" />
</Value>
<Value Key="RequiredVersion" Value="13.10.00" Type="String">
<Value Key="RequiredVersion" Value="14.07.00" Type="String">
<Dimension DimensionID="81" ReadOnly="false" />
</Value>
<Value Key="SupportsAjaxReload" Value="True" Type="Boolean">
<Dimension DimensionID="81" ReadOnly="false" />
</Value>
<Value Key="Version" Value="03.02.00" Type="String">
<Value Key="Version" Value="03.03.00" Type="String">
<Dimension DimensionID="81" ReadOnly="false" />
</Value>
</Entity>
Expand Down
Binary file added .temp_cache/default-production/0.pack.gz
Binary file not shown.
Binary file added .temp_cache/default-production/index.pack.gz
Binary file not shown.
11 changes: 4 additions & 7 deletions bs4/_Popup.PartAssets.cshtml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
@inherits Custom.Hybrid.Razor12
@using ToSic.Sxc.Services;
@inherits Custom.Hybrid.Razor14
@{
// Activate turnOn - see https://r.2sxc.org/turnon
GetService<IPageService>().Activate("turnOn");

var pageSvc = GetService<IPageService>();
Kit.Page.Activate("turnOn");
}

<turnOn turn-on='{ "run": "window.appPopupMessage3.init()", "data": { "domId": "@DynamicModel.DomId", "duration": @DynamicModel.Duration }}'></turnOn>
<link rel="stylesheet" href="@App.Path/bs4/dist/styles.min.css" @pageSvc.AssetAttributes()>
<script type="text/javascript" src="@App.Path/bs4/dist/scripts.min.js" @pageSvc.AssetAttributes(position:"bottom" )></script>
<link rel="stylesheet" href="@App.Path/bs4/dist/styles.min.css" @Kit.Page.AssetAttributes()>
<script type="text/javascript" src="@App.Path/bs4/dist/scripts.min.js" @Kit.Page.AssetAttributes(position:"bottom" )></script>
6 changes: 2 additions & 4 deletions bs4/_Popup.PartModal.cshtml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@inherits Custom.Hybrid.Razor12
@inherits Custom.Hybrid.Razor14
@using ToSic.Razor.Blade;
@using ToSic.Sxc.Services;
@{
var imgSvc = GetService<IImageService>();
var popup = DynamicModel.Popup;
}

Expand All @@ -11,7 +9,7 @@
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="modal-1-title">
@if (Text.Has(popup.Image)) {
<header class="modal__header">
@imgSvc.Picture(popup.Field("Image"), settings: "Content", factor: 0.5)
@Kit.Image.Picture(popup.Field("Image"), settings: "Content", factor: 0.5)
<button class="modal__close" type='button' aria-label="Close modal" data-micromodal-close></button>
</header>
}
Expand Down
6 changes: 4 additions & 2 deletions bs4/_Popup.cshtml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
@inherits Custom.Hybrid.Razor12
@inherits Custom.Hybrid.Razor14
@{
var showPopup = Content.Presentation.Activated == true // popup activated?
&& Content.Presentation.ActiveFrom.Date <= DateTime.Now.Date // showFrom <= today?
&& Content.Presentation.ActiveTo.Date >= DateTime.Now.Date; // showTo >= today?
var domId = "app-popup3-js-modal-" + CmsContext.Module.Id;

var contentToolbar = Kit.Toolbar.Default().Settings(hover: "left", autoAddMore:"start", show:"always");
}

@* Do not delete warning and demo popup for admin *@
@if(Edit.Enabled){
<div class="alert alert-info d-flex justify-content-between">
<div class="d-flex align-items-center">
@Resources.DoNotDeleteWarning
@Edit.Toolbar(Content, toolbar: "settings&hover=left&autoAddMore=start")
@contentToolbar.AsTag(Content)
</div>
<a data-micromodal-trigger="@domId" class="btn btn-primary btn-sm text-white">@Resources.TestPopup</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion bs4/dist/scripts.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bs4/dist/scripts.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions bs4/dist/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit af9c0cf

Please sign in to comment.