diff --git a/contao/config/services.yaml b/contao/config/services.yaml index 9c8664b..c35e5a3 100644 --- a/contao/config/services.yaml +++ b/contao/config/services.yaml @@ -15,7 +15,7 @@ services: name: contao.frontend_module category: application type: pinnwand - template: frontend_module/pinnwand + template: frontend/pinnwand Eiswurm\ContaoPinboardBundle\EventListener\DataContainer\PinboardTimestampListener: tags: diff --git a/contao/templates/frontend/pinnwand.html.twig b/contao/templates/frontend/pinnwand.html.twig new file mode 100644 index 0000000..620fd97 --- /dev/null +++ b/contao/templates/frontend/pinnwand.html.twig @@ -0,0 +1,34 @@ + + +
+
+ {% for entry in entries %} +
+ {% if entry.imagePath %} +
+ +
+ {% endif %} + +

{{ entry.headline }}

+
{{ entry.text|e|nl2br }}
+ + {% if entry.link %} + + {% endif %} +
+ {% else %} +

Keine veröffentlichten Pinnwandeinträge vorhanden.

+ {% endfor %} +
+
+ + diff --git a/templates/frontend_module/pinnwand.html.twig b/templates/frontend_module/pinnwand.html.twig deleted file mode 100644 index ecc713b..0000000 --- a/templates/frontend_module/pinnwand.html.twig +++ /dev/null @@ -1,38 +0,0 @@ -{% extends '@Contao/frontend_module/_base.html.twig' %} - -{% block content %} - - -
-
- {% for entry in entries %} -
- {% if entry.imagePath %} -
- -
- {% endif %} - -

{{ entry.headline }}

-
{{ entry.text|e|nl2br }}
- - {% if entry.link %} - - {% endif %} -
- {% else %} -

Keine veröffentlichten Pinnwandeinträge vorhanden.

- {% endfor %} -
-
- - -{% endblock %}