diff --git a/config/services.yaml b/config/services.yaml index eca63e05..d8c64b7b 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -212,3 +212,5 @@ services: # --------------------------------------------------------- App\Workflow\SupportsStrategy: ~ + App\MyAreaBricks\Custom\Areabricks\: + resource: '../src/MyAreaBricks/Custom/Areabricks/*' diff --git a/src/MyAreaBricks/Custom/Areabricks/Validity.php b/src/MyAreaBricks/Custom/Areabricks/Validity.php new file mode 100644 index 00000000..ab8bb3da --- /dev/null +++ b/src/MyAreaBricks/Custom/Areabricks/Validity.php @@ -0,0 +1,15 @@ + + {{ "This is valid for" | trans }}: {{ pimcore_select("validity").getData() | trans }} +

+{% endif %} diff --git a/templates/content/default.html.twig b/templates/content/default.html.twig index bb4f3979..24692162 100644 --- a/templates/content/default.html.twig +++ b/templates/content/default.html.twig @@ -14,7 +14,7 @@ 'allowed': ['blockquote', 'embed', 'featurette', 'gallery-carousel', 'gallery-folder', 'gallery-single-images', 'headlines', 'horizontal-line', 'icon-teaser-row', 'image', 'image-hotspot-marker', 'image-metadata', 'pdf', 'product-grid', 'product-teaser', 'standard-teaser', 'text-accordion', - 'time-slider-featurette', 'video', 'wysiwyg', 'wysiwyg-with-images', 'personalized-product-teaser'] + 'time-slider-featurette', 'validity', 'video', 'wysiwyg', 'wysiwyg-with-images', 'personalized-product-teaser'] }) }} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/default/events.html.twig b/templates/default/events.html.twig index 1a70bc29..c054d14a 100644 --- a/templates/default/events.html.twig +++ b/templates/default/events.html.twig @@ -14,7 +14,7 @@ 'allowed': ['blockquote', 'embed', 'featurette', 'gallery-carousel', 'gallery-folder', 'gallery-single-images', 'headlines', 'horizontal-line', 'icon-teaser-row', 'image', 'image-hotspot-marker', 'pdf', 'product-grid', 'product-teaser', 'standard-teaser', 'text-accordion', - 'time-slider-featurette', 'video', 'wysiwyg', 'wysiwyg-with-images'] + 'time-slider-featurette', 'validity', 'video', 'wysiwyg', 'wysiwyg-with-images'] }) }}
@@ -148,4 +148,4 @@
-{% endblock %} \ No newline at end of file +{% endblock %}