diff --git a/templates/downloads.html.twig b/templates/downloads.html.twig new file mode 100644 index 0000000..e9cd0d2 --- /dev/null +++ b/templates/downloads.html.twig @@ -0,0 +1,45 @@ +{% extends 'partials/base.html.twig' %} + +{% if page.header.show_breadcrumbs is defined %} + {% set show_breadcrumbs = page.header.show_breadcrumbs %} +{% else %} + {% set show_breadcrumbs = true %} +{% endif %} + +{% block menu %} + {% include 'partials/sidebar_right.html.twig' %} +{% endblock %} + +{% block content %} + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} + +
+
+
+

{{ page.header.title }}

+ {% if page.header.subtitle %} +

{{ page.header.subtitle }}

+ {% endif %} +
+
+ {{ page.content|raw}} + + + {% for file in page.media.files %} + {% for type in page.header.file_types %} + {% if file.extension == type.extension or type.extension == '*' %} + + {% include 'partials/download_item.html.twig' with {file: file} %} + + {% endif %} + {% endfor %} + {% endfor %} +
+
+ + +{% endblock %} diff --git a/templates/gallery.html.twig b/templates/gallery.html.twig new file mode 100644 index 0000000..95e1598 --- /dev/null +++ b/templates/gallery.html.twig @@ -0,0 +1,39 @@ +{% extends 'partials/base.html.twig' %} + +{% if page.header.show_breadcrumbs is defined %} + {% set show_breadcrumbs = page.header.show_breadcrumbs %} +{% else %} + {% set show_breadcrumbs = true %} +{% endif %} + +{% block menu %} + {% include 'partials/sidebar_right.html.twig' %} +{% endblock %} + +{% block content %} + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} + +
+
+
+

{{ page.header.title }}

+ {% if page.header.subtitle %} +

{{ page.header.subtitle }}

+ {% endif %} +
+
+ {{ page.content|raw}} + +
+ +
+
+ + +{% endblock %} diff --git a/templates/guestbook.html.twig b/templates/guestbook.html.twig new file mode 100644 index 0000000..92ddbfc --- /dev/null +++ b/templates/guestbook.html.twig @@ -0,0 +1,88 @@ +{% extends 'partials/base.html.twig' %} + +{% if page.header.show_breadcrumbs is defined %} + {% set show_breadcrumbs = page.header.show_breadcrumbs %} +{% else %} + {% set show_breadcrumbs = true %} +{% endif %} + +{% block menu %} + {% include 'partials/sidebar_right.html.twig' %} +{% endblock %} + +{% block content %} + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} + +
+
+
+

{{ page.header.title }}

+ {% if page.header.subtitle %} +

{{ page.header.subtitle }}

+ {% endif %} +
+
+ {{ page.content|raw}} + + {% include "forms/form.html.twig" %} + + + + {% block item %} + {% if grav.twig.guestbookMessages|length %} +

{{'PLUGIN_GUESTBOOK.MESSAGES'|t}}

+ + {% for child in grav.twig.guestbookMessages.messages %} + {% set child = child|merge({'title': child.author}) %} + {% set child = child|merge({'content': child.text}) %} + {% include 'partials/guestbook_item.html.twig' with {'page':child, 'truncate':false} %} + {% endfor %} + {% endif %} + + {% if grav.twig.guestbookMessages.totalRetrieved < grav.twig.guestbookMessages.totalAvailable %} +
+
+ +
+
+ {% endif %} + {% endblock %} +
+ + +{% endblock %} diff --git a/templates/partials/download_item.html.twig b/templates/partials/download_item.html.twig new file mode 100644 index 0000000..3f1304f --- /dev/null +++ b/templates/partials/download_item.html.twig @@ -0,0 +1,21 @@ +{% set size = file.size/1024 %} +{% set unit = "kB" %} +{% if size > 1023 %} + {% set size = size/1024 %} + {% set unit = "MB" %} +{% endif %} + + + + + + + + + {{ file.filename }}
+ {{ size|number_format(2, '.', ',') }}{{ unit }} | + {{ file.modified|dateTranslate(grav.config.system.pages.dateformat.long) }} +
+ diff --git a/templates/partials/guestbook_item.html.twig b/templates/partials/guestbook_item.html.twig new file mode 100644 index 0000000..40570b0 --- /dev/null +++ b/templates/partials/guestbook_item.html.twig @@ -0,0 +1,21 @@ +{# based on future2021 blog_item.html.twig and heavily stripped down #} + +
+
+
+

{{ page.title }}

+
+
+ +
+
+ +
+ {{ page.content|raw }} +
+ + +