diff --git a/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/ContainerViewHelper.php b/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/ContainerViewHelper.php index 503f249b..c25b50da 100644 --- a/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/ContainerViewHelper.php +++ b/public/typo3conf/ext/ep_theme/Classes/ViewHelpers/ContainerViewHelper.php @@ -51,6 +51,7 @@ class ContainerViewHelper extends AbstractViewHelper $this->registerArgument('content', 'string', 'The content'); $this->registerArgument('cssClasses', 'string', 'Additional css classes'); + $this->registerArgument('rteContent', 'boolean', 'Is rte content', false, false); $this->registerArgument('data', 'Array', 'The data', true); } @@ -81,8 +82,8 @@ class ContainerViewHelper extends AbstractViewHelper if ($arguments['cssClasses'] !== null) { $classes[] = $arguments['cssClasses']; } - if (count($classes) > 0) { - return '
' . $content . '
'; + if (true === $arguments['rteContent'] || count($classes) > 0) { + return sprintf('
%s
', implode(' ', $classes), $arguments['rteContent'] ? ' data-rte-content' : '', $content); } return $content; diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_rte-content.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_rte-content.scss new file mode 100644 index 00000000..27fc1235 --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/_rte-content.scss @@ -0,0 +1,3 @@ +ul { + @apply list-disc; +} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss index 3a529638..529a2f3d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/main.scss @@ -67,6 +67,10 @@ @import "subpage"; @import "searchpage"; @import "employee"; + + [data-rte-content] { + @import "rte-content"; + } } @layer components { diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html index 953db093..67030d53 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html @@ -7,7 +7,7 @@
-
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/LastChance.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/LastChance.html index 71580b1c..56054258 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/LastChance.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/LastChance.html @@ -4,7 +4,7 @@ xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> -
+
{data.headline}
{data.text -> f:format.html()}
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Reminder.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Reminder.html index 06666ad5..a3317087 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Reminder.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Reminder.html @@ -5,7 +5,7 @@ {data.flexForm.buttons -> v:iterator.first() -> v:variable.set(name: 'button')} -
+
{data.headline}
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html index a42320c6..0968db46 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html @@ -7,7 +7,7 @@
-
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html index 7eb232d8..34983db5 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html @@ -7,7 +7,7 @@
-
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/LastChance.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/LastChance.html index b7a770ea..c3d270aa 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/LastChance.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/LastChance.html @@ -4,7 +4,7 @@ xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> -
+
{data.header}
{data.bodytext -> f:format.html()}
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Reminder.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Reminder.html index 01165b24..aad072a2 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Reminder.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Reminder.html @@ -5,7 +5,7 @@ {data.flexForm.buttons -> v:iterator.first() -> v:variable.set(name: 'button')} -
+
{data.header}
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html index e8bfc78e..9c5e637f 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html @@ -4,7 +4,7 @@ xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> -
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html index 6440ee3b..857209f5 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html @@ -29,7 +29,7 @@
-
+
{data.header -> f:format.nl2br()}{f:if(condition: data.subheader, then: '
{data.subheader}')}

{data.bodytext -> f:format.html()} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html index 2f31e4c1..551ac8f4 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html @@ -26,7 +26,7 @@
-
+
{data.header -> f:format.nl2br()}{f:if(condition: data.subheader, then: '
{data.subheader}')}

{data.bodytext -> f:format.html()} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/DealOfTheWeek.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/DealOfTheWeek.html index e8e297e7..f6cd6630 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/DealOfTheWeek.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/DealOfTheWeek.html @@ -21,7 +21,7 @@
Angebot
-
+
{data.header}
{data.bodytext -> f:format.nl2br()} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/Textmedia.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/Textmedia.html index 4455af5a..bd2b1b85 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/Textmedia.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/FluidStyledContent/Textmedia.html @@ -20,7 +20,7 @@ - +