diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fd5f21..a758007 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# v2.0.4 +## 09/29/2021 + +1. [](#new) + * Added simple gallery modular page for `lightbox-gallery` plugin +2. [](#bugfix) + * Fixed `radio` form field error when admin isn't installed + * Translate `grid size` text + # v2.0.3 ## 06/08/2020 diff --git a/blueprints.yaml b/blueprints.yaml index 3f4fe8f..24da111 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,13 +1,13 @@ name: Quark slug: quark type: theme -version: 2.0.3 +version: 2.0.4 description: New Grav Default Theme -icon: microchip +icon: microchip author: name: Team Grav email: devs@getgrav.org - url: http://getgrav.org + url: https://getgrav.org homepage: https://github.com/getgrav/grav-theme-quark demo: https://demo.getgrav.org/onepage-skeleton keywords: quark, spectre, theme, core, modern, fast, responsive, html5, css3 @@ -35,7 +35,7 @@ form: grid-size: type: select - label: Grid size + label: THEME_QUARK.ADMIN.GRID_SIZE help: The maximum width of the theme size: small options: @@ -173,4 +173,4 @@ form: 1: PLUGIN_ADMIN.ENABLED 0: PLUGIN_ADMIN.DISABLED validate: - type: bool \ No newline at end of file + type: bool diff --git a/languages.yaml b/languages.yaml index 79f4649..8de495a 100644 --- a/languages.yaml +++ b/languages.yaml @@ -1,5 +1,7 @@ en: THEME_QUARK: + ADMIN: + GRID_SIZE: Grid size BLOG: ITEM: CONTINUE_READING: Continue reading... diff --git a/templates/forms/fields/radio/radio.html.twig b/templates/forms/fields/radio/radio.html.twig index 5698f36..ecda8f4 100644 --- a/templates/forms/fields/radio/radio.html.twig +++ b/templates/forms/fields/radio/radio.html.twig @@ -19,7 +19,7 @@ {% if required %}required="required"{% endif %} /> - {% if grav.twig.twig.filters['tu'] is defined %}{{ text|tu|raw }}{% else %}{{ text|t|raw }}{% endif %} + {{ text|t|raw }} {% endfor %} diff --git a/templates/modular/gallery.html.twig b/templates/modular/gallery.html.twig new file mode 100644 index 0000000..66fdc96 --- /dev/null +++ b/templates/modular/gallery.html.twig @@ -0,0 +1,83 @@ +{% set styling %} +.lightbox-gallery { + max-width: 1200px; + margin: 0 auto; + padding: 0 20px; +} + +.lightbox-gallery .lightbox-gallery__columns { + display: flex; + flex-wrap: wrap; + margin: 0 -10px; +} + +.lightbox-gallery .lightbox-gallery__column { + width: 50%; + padding: 0 10px; + margin-bottom: 20px; +} + +.lightbox-gallery img { + display: block; + border-radius: 5px; + transition: all .2s ease-in-out; +} + +.lightbox-gallery img:hover { + filter: brightness(60%); + transform: scale(1.05); +} + +@media only screen and (min-width: 600px) { + .lightbox-gallery .lightbox-gallery__column { + width: calc(100% / 3); + } +} + +@media only screen and (min-width: 1000px) { + .lightbox-gallery .lightbox-gallery__column { + width: 25%; + } +} + +.lightbox-gallery .hidden { + display: none; +} +{% endset %} + +{% do assets.addInlineCss(styling) %} + +{% block module_content %} + {% set data = page.header.gallery %} + {% set thumb_width = data.thumb.width|default(600) %} + {% set thumb_height = data.thumb.height|default(450) %} + +
{{ item.desc|markdown(false) }}
+