-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] 馃帀 Adding support for TYPO3 v11 and Bootstrap Package v12
- Loading branch information
Showing
12 changed files
with
127 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Configuration/TypoScript/BootstrapPackage/v12/constants.typoscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# import default constants for content_animations | ||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:content_animations/Configuration/TypoScript/constants.typoscript"> |
13 changes: 13 additions & 0 deletions
13
Configuration/TypoScript/BootstrapPackage/v12/setup.typoscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# import default setup for content_animations | ||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:content_animations/Configuration/TypoScript/setup.typoscript"> | ||
|
||
# support for bootstrap_package v11 | ||
lib.contentElement { | ||
layoutRootPaths.100 = EXT:content_animations/Resources/Private/Layouts/BootstrapPackage/v12/ | ||
variables { | ||
aos-easing < plugin.tx_content_animations.variables.aos-easing | ||
aos-once < plugin.tx_content_animations.variables.aos-once | ||
aos-mirror < plugin.tx_content_animations.variables.aos-mirror | ||
} | ||
dataProcessing.78911002 < plugin.tx_content_animations.dataProcessing.78911002 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
Resources/Private/Layouts/BootstrapPackage/v12/Default.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:bk2k="http://typo3.org/ns/BK2K/BootstrapPackage/ViewHelpers" data-namespace-typo3-fluid="true"> | ||
<f:spaceless> | ||
|
||
<bk2k:data.imageVariants as="variants" variants="{settings.responsiveimages.variants}" /> | ||
<f:variable name="backendlayoutConfig">{settings.responsiveimages.backendlayout.{backendlayout}}</f:variable> | ||
<f:variable name="columnConfig">{backendlayoutConfig.{data.colPos}}</f:variable> | ||
<f:if condition="{columnConfig}"> | ||
<bk2k:data.imageVariants as="variants" variants="{variants}" multiplier="{columnConfig.multiplier}" gutters="{columnConfig.gutters}" corrections="{columnConfig.corrections}" /> | ||
</f:if> | ||
|
||
<f:if condition="{containerContext}"> | ||
<f:for each="{containerContext}" as="context"> | ||
<f:variable name="containerConfig">{settings.responsiveimages.container.{context.CType}}</f:variable> | ||
<f:variable name="containerColumnConfig">{containerConfig.{data.colPos}}</f:variable> | ||
<f:if condition="{containerColumnConfig}"> | ||
<bk2k:data.imageVariants as="variants" variants="{variants}" multiplier="{containerColumnConfig.multiplier}" gutters="{containerColumnConfig.gutters}" corrections="{containerColumnConfig.corrections}" /> | ||
</f:if> | ||
</f:for> | ||
</f:if> | ||
|
||
<f:variable name="frameSize">frame-size-default</f:variable> | ||
<f:variable name="frameClass">frame-{data.frame_class}</f:variable> | ||
<f:variable name="typeClass">frame-type-{data.CType}</f:variable> | ||
<f:variable name="layoutClass">frame-layout-{data.frame_layout}</f:variable> | ||
<f:variable name="backgroundClass">frame-background-{f:if(condition: data.background_color_class, else: 'none', then: data.background_color_class)}</f:variable> | ||
<f:variable name="spaceBeforeClass">frame-space-before-{f:if(condition: data.space_before_class, else: 'none', then: data.space_before_class)}</f:variable> | ||
<f:variable name="spaceAfterClass">frame-space-after-{f:if(condition: data.space_after_class, else: 'none', then: data.space_after_class)}</f:variable> | ||
|
||
<f:if condition="{data.frame_class} != none"> | ||
<f:then> | ||
|
||
<f:variable name="backgroundImageClass">{f:if(condition: backgroundImage.0, then: 'frame-has-backgroundimage', else: 'frame-no-backgroundimage')}</f:variable> | ||
<div id="c{data.uid}" class="frame {frameSize} {frameClass} {typeClass} {layoutClass} {backgroundClass} {backgroundImageClass} {spaceBeforeClass} {spaceAfterClass}"{f:if(condition: animationSettings, then: '{animationSettings -> f:format.raw()}')}> | ||
<div class="frame-group-container"> | ||
<div class="frame-group-inner"> | ||
<f:render partial="Frame/General/BackgroundImage" arguments="{_all}" /> | ||
<div class="frame-container frame-container-default"> | ||
<div class="frame-inner"> | ||
<f:if condition="{data._LOCALIZED_UID}"> | ||
<a id="c{data._LOCALIZED_UID}"></a> | ||
</f:if> | ||
<f:render section="Before" optional="true"> | ||
<f:render partial="DropIn/Before/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Header" optional="true"> | ||
<f:render partial="Header/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Main" optional="true" /> | ||
<f:render section="Footer" optional="true"> | ||
<f:render partial="Footer/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="After" optional="true"> | ||
<f:render partial="DropIn/After/All" arguments="{_all}" /> | ||
</f:render> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</f:then> | ||
<f:else> | ||
|
||
<a id="c{data.uid}"></a> | ||
<f:if condition="{data._LOCALIZED_UID}"> | ||
<a id="c{data._LOCALIZED_UID}"></a> | ||
</f:if> | ||
<f:if condition="{data.space_before_class}"> | ||
<div class="{spaceBeforeClass}"></div> | ||
</f:if> | ||
<f:render section="Before" optional="true"> | ||
<f:render partial="DropIn/Before/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Header" optional="true"> | ||
<f:render partial="Header/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Main" optional="true" /> | ||
<f:render section="Footer" optional="true"> | ||
<f:render partial="Footer/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="After" optional="true"> | ||
<f:render partial="DropIn/After/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:if condition="{data.space_after_class}"> | ||
<div class="{spaceAfterClass}"></div> | ||
</f:if> | ||
|
||
</f:else> | ||
</f:if> | ||
</f:spaceless> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.