From 4677c31d515f262e8bba491958aa85f9037de250 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 13:46:01 +0200 Subject: [PATCH 01/20] add en language --- languages/en.yaml | 94 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 languages/en.yaml diff --git a/languages/en.yaml b/languages/en.yaml new file mode 100644 index 0000000..44d99c5 --- /dev/null +++ b/languages/en.yaml @@ -0,0 +1,94 @@ +THEME_LOCAL: + OPEN_PUBLISHING: + TITLE: Open Publishing Options + CHROMELESS: + TITLE: Chromeless Site (i.e. Embedded) + ENABLE_CHROMELESS: + LABEL: Hide Site Menu, Sidebar and Footer + H5P: + TITLE: H5P Setup + EMBED_URL: + LABEL: H5P Embed Source URL + HELP: Enter the embed source URL path up to, but not including, the H5P Content ID. + DESCRIPTION: H5P embed source URL path up to, but not including, the Content ID. For example, https://h5p.org/h5p/embed/ or https://[organization].h5p.com/content/. + MENU: + TITLE: Menu + DISPLAY_DROPDOWNS: + LABEL: Display Dropdowns in Menu + QUARK_OPTIONS: + TITLE: Quark Options + PRODUCTION_MODE: + LABEL: Production mode + HELP: When enabled, Quark will render with minified CSS + GRID_SIZE: + LABEL: Grid size + HELP: The maximum width of the theme + OPTIONS: + NONE: None (full width) + GRID_XL: Extra Large + GRID_LG: Large + GRID_MD: Medium + HEADER: + TITLE: Header Defaults + CUSTOM_LOGO: + LABEL: Custom Logo + DESCRIPTION: Will be used instead of default logo `theme://images/grav-logo.svg` + CUSTOM_LOGO_MOBILE: + LABEL: Mobile Custom Logo + HEADER_FIXED: + LABEL: Fixed header + HELP: When enabled, the header will be fixed at the top of the browser + HEADER_ANIMATED: + LABEL: Animate header + HELP: When enabled, the header will animate on scroll + HEADER_DARK: + LABEL: Dark Style + HELP: When enabled, a dark-friendly style will be used + HEADER_TRANSPARENT: + LABEL: Transparent Header + HELP: When enabled, the header will be transparent + FOOTER: + TITLE: Footer Defaults + STICKY_FOOTER: + LABEL: Sticky Footer + HELP: When enabled, the footer will stick to the bottom of the browser + BLOG: + TITLE: Blog Defaults + BLOG_PAGE: + LABEL: Blog Page + HELP: The route to the blog page when working with blog sidebar + HERO_CLASSES: + LABEL: Hero Classes + DESCRIPTION: There are several Hero class options that can be listed here (space separated):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Please consult the [Quark documentation](https://github.com/getgrav/grav-theme-quark#hero-options) for more details. + SPECTRE: + TITLE: Spectre.css Options + EXPERIMENTAL: + LABEL: Experimental CSS + HELP: When enabled, the `spectre-exp.css` file will be included + ICONS: + LABEL: Icons CSS + HELP: When enabled, the `spectre-icons.css` file will be included + CUSTOM_MENU: + TITLE: Custom Menu Items + DISPLAY: + LABEL: Display Custom Menu Items + HELP: Determines if any defined custom menu entries are displayed in the menubar. + MENU: + LABEL: Custom Menu Items + FIELDS: + TEXT: + LABEL: Text + DESCRIPTION: Text label for menu item. + ICON: + LABEL: Icon + DESCRIPTION: Font Awesome icon for menu item. + URL: + LABEL: URL + DESCRIPTION: URL for menu item. + TARGET: + LABEL: Target + OPTIONS: + BLANK: Open in a new window + PARENT: Open in the parent frame + TOP: Open in the full body of the window + SELF: Open in the same frame as clicked From c35faa987fa89b4a55f79b313cfd08a4ff0c642f Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 13:55:35 +0200 Subject: [PATCH 02/20] duplicate en language to de --- languages/de.yaml | 94 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 languages/de.yaml diff --git a/languages/de.yaml b/languages/de.yaml new file mode 100644 index 0000000..44d99c5 --- /dev/null +++ b/languages/de.yaml @@ -0,0 +1,94 @@ +THEME_LOCAL: + OPEN_PUBLISHING: + TITLE: Open Publishing Options + CHROMELESS: + TITLE: Chromeless Site (i.e. Embedded) + ENABLE_CHROMELESS: + LABEL: Hide Site Menu, Sidebar and Footer + H5P: + TITLE: H5P Setup + EMBED_URL: + LABEL: H5P Embed Source URL + HELP: Enter the embed source URL path up to, but not including, the H5P Content ID. + DESCRIPTION: H5P embed source URL path up to, but not including, the Content ID. For example, https://h5p.org/h5p/embed/ or https://[organization].h5p.com/content/. + MENU: + TITLE: Menu + DISPLAY_DROPDOWNS: + LABEL: Display Dropdowns in Menu + QUARK_OPTIONS: + TITLE: Quark Options + PRODUCTION_MODE: + LABEL: Production mode + HELP: When enabled, Quark will render with minified CSS + GRID_SIZE: + LABEL: Grid size + HELP: The maximum width of the theme + OPTIONS: + NONE: None (full width) + GRID_XL: Extra Large + GRID_LG: Large + GRID_MD: Medium + HEADER: + TITLE: Header Defaults + CUSTOM_LOGO: + LABEL: Custom Logo + DESCRIPTION: Will be used instead of default logo `theme://images/grav-logo.svg` + CUSTOM_LOGO_MOBILE: + LABEL: Mobile Custom Logo + HEADER_FIXED: + LABEL: Fixed header + HELP: When enabled, the header will be fixed at the top of the browser + HEADER_ANIMATED: + LABEL: Animate header + HELP: When enabled, the header will animate on scroll + HEADER_DARK: + LABEL: Dark Style + HELP: When enabled, a dark-friendly style will be used + HEADER_TRANSPARENT: + LABEL: Transparent Header + HELP: When enabled, the header will be transparent + FOOTER: + TITLE: Footer Defaults + STICKY_FOOTER: + LABEL: Sticky Footer + HELP: When enabled, the footer will stick to the bottom of the browser + BLOG: + TITLE: Blog Defaults + BLOG_PAGE: + LABEL: Blog Page + HELP: The route to the blog page when working with blog sidebar + HERO_CLASSES: + LABEL: Hero Classes + DESCRIPTION: There are several Hero class options that can be listed here (space separated):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Please consult the [Quark documentation](https://github.com/getgrav/grav-theme-quark#hero-options) for more details. + SPECTRE: + TITLE: Spectre.css Options + EXPERIMENTAL: + LABEL: Experimental CSS + HELP: When enabled, the `spectre-exp.css` file will be included + ICONS: + LABEL: Icons CSS + HELP: When enabled, the `spectre-icons.css` file will be included + CUSTOM_MENU: + TITLE: Custom Menu Items + DISPLAY: + LABEL: Display Custom Menu Items + HELP: Determines if any defined custom menu entries are displayed in the menubar. + MENU: + LABEL: Custom Menu Items + FIELDS: + TEXT: + LABEL: Text + DESCRIPTION: Text label for menu item. + ICON: + LABEL: Icon + DESCRIPTION: Font Awesome icon for menu item. + URL: + LABEL: URL + DESCRIPTION: URL for menu item. + TARGET: + LABEL: Target + OPTIONS: + BLANK: Open in a new window + PARENT: Open in the parent frame + TOP: Open in the full body of the window + SELF: Open in the same frame as clicked From f16f74020b38b05b64d6e14ecc6374bdb04bf0f9 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 14:12:38 +0200 Subject: [PATCH 03/20] update de language --- languages/de.yaml | 104 +++++++++++++++++++++++----------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/languages/de.yaml b/languages/de.yaml index 44d99c5..c81dc3f 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -1,94 +1,94 @@ THEME_LOCAL: OPEN_PUBLISHING: - TITLE: Open Publishing Options + TITLE: Open Publishing Optionen CHROMELESS: - TITLE: Chromeless Site (i.e. Embedded) + TITLE: Eingebettete Website (Chromeless) ENABLE_CHROMELESS: - LABEL: Hide Site Menu, Sidebar and Footer + LABEL: Verstecke Menü, Seitenleiste und Fusszeile H5P: TITLE: H5P Setup EMBED_URL: - LABEL: H5P Embed Source URL - HELP: Enter the embed source URL path up to, but not including, the H5P Content ID. - DESCRIPTION: H5P embed source URL path up to, but not including, the Content ID. For example, https://h5p.org/h5p/embed/ or https://[organization].h5p.com/content/. + LABEL: H5P Quelle URL einbetten + HELP: Gib die URL der Quelle ein, bis, aber nicht einschliesslich, der H5P Content ID. + DESCRIPTION: URL der Quelle, bis, aber nicht einschliesslich, der H5P Content ID. Zum Beispiel https://h5p.org/h5p/embed/ oder https://[organization].h5p.com/content/. MENU: - TITLE: Menu + TITLE: Menü DISPLAY_DROPDOWNS: - LABEL: Display Dropdowns in Menu + LABEL: Zeige Dropdowns im Menü QUARK_OPTIONS: - TITLE: Quark Options + TITLE: Quark Optionen PRODUCTION_MODE: - LABEL: Production mode - HELP: When enabled, Quark will render with minified CSS + LABEL: Produktionsmodus + HELP: Wenn aktiviert, wird Quark mit minimiertem CSS angezeigt GRID_SIZE: - LABEL: Grid size - HELP: The maximum width of the theme + LABEL: Grid Grösse + HELP: Die maximale Grösse des Themes OPTIONS: - NONE: None (full width) - GRID_XL: Extra Large - GRID_LG: Large - GRID_MD: Medium + NONE: Keine (volle Breite) + GRID_XL: Extra Breit + GRID_LG: Breit + GRID_MD: Mittel HEADER: - TITLE: Header Defaults + TITLE: Header Standards CUSTOM_LOGO: - LABEL: Custom Logo - DESCRIPTION: Will be used instead of default logo `theme://images/grav-logo.svg` + LABEL: Benutzerdefiniertes Logo + DESCRIPTION: Wird verwendet anstelle des Standardlogos `theme://images/grav-logo.svg` CUSTOM_LOGO_MOBILE: - LABEL: Mobile Custom Logo + LABEL: Mobiles benutzerdefiniertes Logo HEADER_FIXED: - LABEL: Fixed header - HELP: When enabled, the header will be fixed at the top of the browser + LABEL: Fester Header + HELP: Wenn aktiviert, wird der Header oben im Browser fixiert HEADER_ANIMATED: - LABEL: Animate header - HELP: When enabled, the header will animate on scroll + LABEL: Header animieren + HELP: Wenn aktiviert, wird der Header beim Scrollen animiert HEADER_DARK: - LABEL: Dark Style - HELP: When enabled, a dark-friendly style will be used + LABEL: Dunkler Stil + HELP: Wenn aktiviert, wird ein dunkler Stil verwendet HEADER_TRANSPARENT: - LABEL: Transparent Header - HELP: When enabled, the header will be transparent + LABEL: Transparenter Header + HELP: Wenn aktiviert, wird der Header transparent FOOTER: - TITLE: Footer Defaults + TITLE: Footer Standards STICKY_FOOTER: LABEL: Sticky Footer - HELP: When enabled, the footer will stick to the bottom of the browser + HELP: Wenn aktiviert, wird der Footer am unteren Rand des Browsers fixiert BLOG: - TITLE: Blog Defaults + TITLE: Blog Standards BLOG_PAGE: - LABEL: Blog Page - HELP: The route to the blog page when working with blog sidebar + LABEL: Blog Seite + HELP: Der Pfad zur Blogseite bei Verwendung der Blog-Seitenleiste HERO_CLASSES: - LABEL: Hero Classes - DESCRIPTION: There are several Hero class options that can be listed here (space separated):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Please consult the [Quark documentation](https://github.com/getgrav/grav-theme-quark#hero-options) for more details. + LABEL: Hero Klassen + DESCRIPTION: Es gibt mehrere Hero-Klassenoptionen, die hier aufgelistet werden können (durch Leerzeichen getrennt):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Bitte konsultiere die [Quark-Dokumentation](https://github.com/getgrav/grav-theme-quark#hero-options) für weitere Details. SPECTRE: - TITLE: Spectre.css Options + TITLE: Spectre.css Optionen EXPERIMENTAL: - LABEL: Experimental CSS - HELP: When enabled, the `spectre-exp.css` file will be included + LABEL: Experimentelles CSS + HELP: Wenn aktiviert, wird die `spectre-exp.css` Datei eingebunden ICONS: LABEL: Icons CSS - HELP: When enabled, the `spectre-icons.css` file will be included + HELP: Wenn aktiviert, wird die `spectre-icons.css` Datei eingebunden CUSTOM_MENU: - TITLE: Custom Menu Items + TITLE: Benutzerdefinierte Menüeinträge DISPLAY: - LABEL: Display Custom Menu Items - HELP: Determines if any defined custom menu entries are displayed in the menubar. + LABEL: Zeige benutzerdefinierte Menüeinträge + HELP: Wenn aktiviert, werden benutzerdefinierte Menüeinträge angezeigt MENU: - LABEL: Custom Menu Items + LABEL: Benutzerdefinierte Menüeinträge FIELDS: TEXT: LABEL: Text - DESCRIPTION: Text label for menu item. + DESCRIPTION: Textbeschriftung für Menüeintrag ICON: LABEL: Icon - DESCRIPTION: Font Awesome icon for menu item. + DESCRIPTION: Font Awesome Icon für Menüeintrag URL: LABEL: URL - DESCRIPTION: URL for menu item. + DESCRIPTION: URL für Menüeintrag TARGET: - LABEL: Target + LABEL: Ziel OPTIONS: - BLANK: Open in a new window - PARENT: Open in the parent frame - TOP: Open in the full body of the window - SELF: Open in the same frame as clicked + BLANK: In einem neuen Fenster öffnen + PARENT: Im übergeordneten Fenster öffnen + TOP: Im gesamten Fenster öffnen + SELF: Im selben Fenster öffnen From 76ce4b7405c0ba43d5632631f03dafcc733f5d20 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 14:20:39 +0200 Subject: [PATCH 04/20] fix: sitemap ignore page --- languages/de.yaml | 3 +++ languages/en.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/languages/de.yaml b/languages/de.yaml index c81dc3f..d8109b7 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -1,3 +1,6 @@ +PLUGIN_SITEMAP: + HEADER_IGNORE: Ignoriere Seite in Sitemap + THEME_LOCAL: OPEN_PUBLISHING: TITLE: Open Publishing Optionen diff --git a/languages/en.yaml b/languages/en.yaml index 44d99c5..837a95b 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -1,3 +1,6 @@ +PLUGIN_SITEMAP: + HEADER_IGNORE: Ignore Page in Sitemap + THEME_LOCAL: OPEN_PUBLISHING: TITLE: Open Publishing Options From 98eaa48745259de7d6e3171ff533bbf0102e01d5 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 14:42:26 +0200 Subject: [PATCH 05/20] translate blueprints/blog --- blueprints/blog.yaml | 58 ++++++++++++++++++++++++++++++++++++++++++++ languages/de.yaml | 17 +++++++++++++ languages/en.yaml | 17 +++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 blueprints/blog.yaml diff --git a/blueprints/blog.yaml b/blueprints/blog.yaml new file mode 100644 index 0000000..59bd51d --- /dev/null +++ b/blueprints/blog.yaml @@ -0,0 +1,58 @@ +title: Blog Metadata +'@extends': + type: blog + context: blueprints://pages + +form: + fields: + tabs: + type: tabs + fields: + blog: + fields: + + appearance: + type: section + title: TEMPLATE.BLOG.APPEARANCE.TITLE + underline: true + + header.bricklayer_layout: + type: toggle + label: TEMPLATE.BLOG.BRICKLAYER_LAYOUT.LABEL + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + + header.display_post_summary.enabled: + type: toggle + label: TEMPLATE.BLOG.POST_SUMMARY.LABEL + highlight: 1 + default: 0 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + + header.post_icon: + type: text + size: small + label: TEMPLATE.BLOG.POST_ICON.LABEL + description: TEMPLATE.BLOG.POST_ICON.DESCRIPTION + help: TEMPLATE.BLOG.POST_ICON.HELP + validate: + type: text + + metadata: + type: section + title: TEMPLATE.BLOG.METADATA.TITLE + underline: true + + header.metadata: + type: array + label: TEMPLATE.BLOG.METADATA_ITEMS.LABEL + required: true diff --git a/languages/de.yaml b/languages/de.yaml index d8109b7..100f41b 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -1,6 +1,23 @@ PLUGIN_SITEMAP: HEADER_IGNORE: Ignoriere Seite in Sitemap +TEMPLATE: + BLOG: + APPEARANCE: + TITLE: Erscheinungsbild + BRICKLAYER_LAYOUT: + LABEL: Verwende Bricklayer Layout + POST_SUMMARY: + LABEL: Verstecke Zusammenfassungen auf Blog beitragsseiten + POST_ICON: + LABEL: Standard Blog Element Font Awesome Icon + DESCRIPTION: Kurzer Name, z.B. 'newspaper-o'. + HELP: Bestimmt das Standard Font Awesome Icon für die Blog Beiträge. + METADATA: + TITLE: Seiten Metadaten + METADATA_ITEMS: + LABEL: Metadaten Elemente + THEME_LOCAL: OPEN_PUBLISHING: TITLE: Open Publishing Optionen diff --git a/languages/en.yaml b/languages/en.yaml index 837a95b..8c51f56 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -1,6 +1,23 @@ PLUGIN_SITEMAP: HEADER_IGNORE: Ignore Page in Sitemap +TEMPLATE: + BLOG: + APPEARANCE: + TITLE: Appearance + BRICKLAYER_LAYOUT: + LABEL: Use Bricklayer Layout + POST_SUMMARY: + LABEL: Hide Summaries on Blog Post Pages + POST_ICON: + LABEL: Default Blog Item Font Awesome Icon + DESCRIPTION: Short name, e.g. 'newspaper-o'. + HELP: Determines the default Font Awesome icon used for the blog posts. + METADATA: + TITLE: Page Metadata + METADATA_ITEMS: + LABEL: Metadata Items + THEME_LOCAL: OPEN_PUBLISHING: TITLE: Open Publishing Options From 850309a1543bc1052f13b15fe1f2e16d77c50a2b Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 15:05:50 +0200 Subject: [PATCH 06/20] translate blueprints/item --- blueprints/item.yaml | 143 +++++++++++++++++++++++++++++++++++++++++++ languages/de.yaml | 36 +++++++++++ languages/en.yaml | 36 +++++++++++ 3 files changed, 215 insertions(+) create mode 100644 blueprints/item.yaml diff --git a/blueprints/item.yaml b/blueprints/item.yaml new file mode 100644 index 0000000..7dabe45 --- /dev/null +++ b/blueprints/item.yaml @@ -0,0 +1,143 @@ +extends@: default + +form: + fields: + tabs: + fields: + content: + type: tab + fields: + content: + markdown: true + default: TEMPLATE.ITEM.CONTENT.DEFAULT + + blog: + type: tab + title: TEMPLATE.ITEM.BLOG.TITLE + fields: + + header_image: + type: section + title: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_SECTION.TITLE + underline: true + + header.header_image: + type: toggle + toggleable: true + label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE.LABEL + help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE.HELP + highlight: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + + header.header_image_file: + type: text + toggleable: true + label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_FILE.LABEL + size: medium + help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_FILE.HELP + placeholder: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_FILE.PLACEHOLDER + + header.header_image_width: + type: text + toggleable: true + label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_WIDTH.LABEL + size: small + help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_WIDTH.HELP + placeholder: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_WIDTH.PLACEHOLDER + validate: + type: int + min: 0 + max: 5000 + + header.header_image_height: + type: text + toggleable: true + label: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_HEIGHT.LABEL + size: small + help: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_HEIGHT.HELP + placeholder: TEMPLATE.ITEM.BLOG.HEADER_IMAGE_HEIGHT.PLACEHOLDER + validate: + type: int + min: 0 + max: 5000 + + + summary: + type: section + title: TEMPLATE.ITEM.BLOG.SUMMARY_SECTION.TITLE + underline: true + + + header.summary.enabled: + type: toggle + toggleable: true + label: TEMPLATE.ITEM.BLOG.SUMMARY.LABEL + highlight: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + + header.summary.format: + type: select + toggleable: true + label: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.LABEL + classes: fancy + options: + short: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.OPTIONS.SHORT + long: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.OPTIONS.LONG + + header.summary.size: + type: text + toggleable: true + label: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.SUMMARY_SIZE.LABEL + classes: large + placeholder: 300 + validate: + type: int + min: 1 + + header.summary.delimiter: + type: text + toggleable: true + label: TEMPLATE.ITEM.BLOG.SUMMARY_FORMAT.SUMMARY_DELIMITER.LABEL + classes: large + placeholder: === + + # TODO: remove if not needed + #openpublishingspace1: + # type: section + # title: Title Icon + # underline: true + # + #header.post_icon: + # type: text + # size: small + # label: Font Awesome Icon for Blog Item + # description: Short name, e.g. 'newspaper-o'. + # help: Optional Font Awesome icon to override the default blog item title icon + # default: null + # validate: + # type: text + # + #openpublishingspace2: + # type: section + # title: Display in Blog List + # underline: true + # + #header.hide_from_post_list: + # type: toggle + # label: Display this Item in Blog List + # help: Determines if this page (i.e. post) will appear in the blog index + # default: 0 + # highlight: 0 + # options: + # 0: Yes + # 1: No + # validate: + # type: bool + + import@: + type: partials/blog-bits + context: blueprints://pages diff --git a/languages/de.yaml b/languages/de.yaml index 100f41b..abb2695 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -18,6 +18,42 @@ TEMPLATE: METADATA_ITEMS: LABEL: Metadaten Elemente + ITEM: + CONTENT: + DEFAULT: 'Deine Seitenzusammenfassung kommt hierhin.\n\n===\n\nDein Seiteninhalt kommt hierhin.' + BLOG: + TITLE: Blog Item + HEADER_IMAGE_SECTION: + TITLE: Header Bild + HEADER_IMAGE: + LABEL: Zeige Header Bild + HELP: Aktiviert die Anzeige eines Header Bildes + HEADER_IMAGE_FILE: + LABEL: Bild Datei + HELP: Bild Dateiname, der im Seitenordner existiert. Wenn nicht angegeben, wird das erste gefundene Bild verwendet. + PLACEHOLDER: 'Zum Beispiel: bild.jpg' + HEADER_IMAGE_WIDTH: + LABEL: Bild Breite + HELP: Header Breite in px + PLACEHOLDER: Standard ist 900 + HEADER_IMAGE_HEIGHT: + LABEL: Bild Höhe + HELP: Header Höhe in px + PLACEHOLDER: Standard ist 300 + SUMMARY_SECTION: + TITLE: Zusammenfassung + SUMMARY: + LABEL: Zeige Zusammenfassung + SUMMARY_FORMAT: + LABEL: Format + OPTIONS: + SHORT: Verwende das erste Vorkommen von Trennzeichen oder Länge + LONG: Zusammenfassungstrennzeichen wird ignoriert + SUMMARY_SIZE: + LABEL: Länge + SUMMARY_DELIMITER: + LABEL: Zusammenfassungstrennzeichen + THEME_LOCAL: OPEN_PUBLISHING: TITLE: Open Publishing Optionen diff --git a/languages/en.yaml b/languages/en.yaml index 8c51f56..b30533b 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -18,6 +18,42 @@ TEMPLATE: METADATA_ITEMS: LABEL: Metadata Items + ITEM: + CONTENT: + DEFAULT: "Your page summary goes here.\n\n===\n\nYour page content goes here." + BLOG: + TITLE: Blog Item + HEADER_IMAGE_SECTION: + TITLE: Header Image + HEADER_IMAGE: + LABEL: Display Header Image + HELP: Enables displaying of a header image + HEADER_IMAGE_FILE: + LABEL: Image File + HELP: Image filename that exists in the page folder. If not provided, will use the first image found. + PLACEHOLDER: 'For example: image.jpg' + HEADER_IMAGE_WIDTH: + LABEL: Image Width + HELP: Header width in px + PLACEHOLDER: Default is 900 + HEADER_IMAGE_HEIGHT: + LABEL: Image Height + HELP: Header height in px + PLACEHOLDER: Default is 300 + SUMMARY_SECTION: + TITLE: Summary + SUMMARY: + LABEL: Display Summary + SUMMARY_FORMAT: + LABEL: Format + OPTIONS: + SHORT: Use the first occurrence of delimiter or size + LONG: Summary delimiter will be ignored + SUMMARY_SIZE: + LABEL: Size + SUMMARY_DELIMITER: + LABEL: Summary delimiter + THEME_LOCAL: OPEN_PUBLISHING: TITLE: Open Publishing Options From 9a09e5fdabf2f6086d8a2fbea7494b28e4b3590c Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 15:38:31 +0200 Subject: [PATCH 07/20] translate blueprints/partials/blog-bits --- blueprints/partials/blog-bits.yaml | 83 ++++++++++++++++++++++++++++++ languages/de.yaml | 30 ++++++++++- languages/en.yaml | 28 +++++++++- 3 files changed, 138 insertions(+), 3 deletions(-) create mode 100644 blueprints/partials/blog-bits.yaml diff --git a/blueprints/partials/blog-bits.yaml b/blueprints/partials/blog-bits.yaml new file mode 100644 index 0000000..f6cb6be --- /dev/null +++ b/blueprints/partials/blog-bits.yaml @@ -0,0 +1,83 @@ +form: + fields: + hero_title: + type: spacer + title: TEMPLATE.PARTIALS.BLOG_BITS.HERO_TITLE.TITLE + + header.hero_classes: + type: text + label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_CLASSES.LABEL + markdown: true + description: TEMPLATE.PARTIALS.BLOG_BITS.HERO_CLASSES.DESCRIPTION + data-default@: '\Grav\Theme\QuarkOpenPublishing::getblogpageheroclasses' + + header.hero_image: + type: filepicker + label: Hero Image + preview_images: true + description: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE.DESCRIPTION + + header.header_image_alt_text: + type: text + size: medium + label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE_ALT_TEXT.LABEL + default: null + + header.header_image_credit: + type: text + size: medium + label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE_CREDIT.LABEL + default: null + + header.header_image_creditlink: + type: text + size: long + label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE_CREDITLINK.LABEL + default: null + validate: + type: URL + + toggles_title: + type: spacer + title: TEMPLATE.PARTIALS.BLOG_BITS.TOGGLES_TITLE.TITLE + + header.blog_url: + type: text + label: TEMPLATE.PARTIALS.BLOG_BITS.BLOG_URL.LABEL + help: TEMPLATE.PARTIALS.BLOG_BITS.BLOG_URL.HELP + default: '/blog' + placeholder: '/blog' + size: medium + + header.show_sidebar: + type: toggle + label: TEMPLATE.PARTIALS.BLOG_BITS.SHOW_SIDEBAR.LABEL + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + + header.show_breadcrumbs: + type: toggle + label: TEMPLATE.PARTIALS.BLOG_BITS.SHOW_BREADCRUMBS.LABEL + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + + header.show_pagination: + type: toggle + label: TEMPLATE.PARTIALS.BLOG_BITS.SHOW_PAGINATION.LABEL + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool diff --git a/languages/de.yaml b/languages/de.yaml index abb2695..c8d8876 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -17,7 +17,6 @@ TEMPLATE: TITLE: Seiten Metadaten METADATA_ITEMS: LABEL: Metadaten Elemente - ITEM: CONTENT: DEFAULT: 'Deine Seitenzusammenfassung kommt hierhin.\n\n===\n\nDein Seiteninhalt kommt hierhin.' @@ -53,6 +52,33 @@ TEMPLATE: LABEL: Länge SUMMARY_DELIMITER: LABEL: Zusammenfassungstrennzeichen + PARTIALS: + BLOG_BITS: + HERO_TITLE: + TITLE: Hero Abschnitt + HERO_CLASSES: + LABEL: Hero Klassen + DESCRIPTION: Es gibt mehrere Hero-Klassenoptionen, die hier aufgelistet werden können (durch Leerzeichen getrennt):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Bitte konsultiere die [Quark Dokumentation](https://github.com/getgrav/grav-theme-quark#hero-options) für weitere Details. + HERO_IMAGE: + LABEL: Hero Bild + DESCRIPTION: Wenn nicht angegeben, wird das erste Bild im Seitenordner verwendet + HERO_IMAGE_ALT_TEXT: + LABEL: Bild Alternativtext + HERO_IMAGE_CREDIT: + LABEL: Bildunterschrift + HERO_IMAGE_CREDITLINK: + LABEL: Bildunterschrift URL + TOGGLES_TITLE: + TITLE: Konfiguration + BLOG_URL: + LABEL: Blog URL + HELP: Der Pfad zu dieser Hauptblogseite, die diese Konfiguration enthält + SHOW_SIDEBAR: + LABEL: Zeige Seitenleiste + SHOW_BREADCRUMBS: + LABEL: Zeige Breadcrumbs + SHOW_PAGINATION: + LABEL: Zeige Seitennummerierung THEME_LOCAL: OPEN_PUBLISHING: @@ -115,7 +141,7 @@ THEME_LOCAL: HELP: Der Pfad zur Blogseite bei Verwendung der Blog-Seitenleiste HERO_CLASSES: LABEL: Hero Klassen - DESCRIPTION: Es gibt mehrere Hero-Klassenoptionen, die hier aufgelistet werden können (durch Leerzeichen getrennt):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Bitte konsultiere die [Quark-Dokumentation](https://github.com/getgrav/grav-theme-quark#hero-options) für weitere Details. + DESCRIPTION: Es gibt mehrere Hero-Klassenoptionen, die hier aufgelistet werden können (durch Leerzeichen getrennt):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Bitte konsultiere die [Quark Dokumentation](https://github.com/getgrav/grav-theme-quark#hero-options) für weitere Details. SPECTRE: TITLE: Spectre.css Optionen EXPERIMENTAL: diff --git a/languages/en.yaml b/languages/en.yaml index b30533b..8c76ba9 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -17,7 +17,6 @@ TEMPLATE: TITLE: Page Metadata METADATA_ITEMS: LABEL: Metadata Items - ITEM: CONTENT: DEFAULT: "Your page summary goes here.\n\n===\n\nYour page content goes here." @@ -53,6 +52,33 @@ TEMPLATE: LABEL: Size SUMMARY_DELIMITER: LABEL: Summary delimiter + PARTIALS: + BLOG_BITS: + HERO_TITLE: + TITLE: Hero Section + HERO_CLASSES: + LABEL: Hero Classes + DESCRIPTION: 'There are several Hero class options that can be listed here (space separated):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Please consult the [Quark documentation](https://github.com/getgrav/grav-theme-quark#hero-options) for more details.' + HERO_IMAGE: + LABEL: Hero Image + DESCRIPTION: If not specified, this defaults to the first image found in the pages folder + HERO_IMAGE_ALT_TEXT: + LABEL: Image Alternative Text + HERO_IMAGE_CREDIT: + LABEL: Image Caption + HERO_IMAGE_CREDITLINK: + LABEL: Image Caption URL + TOGGLES_TITLE: + TITLE: Configuration + BLOG_URL: + LABEL: Blog Route + HELP: The route to this main blog page that contains this configuration + SHOW_SIDEBAR: + LABEL: Show Sidebar + SHOW_BREADCRUMBS: + LABEL: Show Breadcrumbs + SHOW_PAGINATION: + LABEL: Show Pagination THEME_LOCAL: OPEN_PUBLISHING: From c23b248c3852f5ba6ab600ae46d05cde37356689 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 15:54:58 +0200 Subject: [PATCH 08/20] translate blueprints/modular/text --- blueprints/modular/text.yaml | 24 +++++++++--------------- languages/de.yaml | 11 +++++++++++ languages/en.yaml | 11 +++++++++++ 3 files changed, 31 insertions(+), 15 deletions(-) diff --git a/blueprints/modular/text.yaml b/blueprints/modular/text.yaml index b085c8d..f67f5c2 100644 --- a/blueprints/modular/text.yaml +++ b/blueprints/modular/text.yaml @@ -1,36 +1,30 @@ title: Text '@extends': default -custom_file: - name: myfile - type: file - label: A Label - destination: 'plugins://' - multiple: true - autofocus: false - accept: - - image/* - form: fields: tabs: fields: content: fields: + header.media_order: - label: Page Media (first one will be displayed next to your content) + label: TEMPLATE.MODULAR.TEXT.MEDIA_ORDER.LABEL + header.image_align: type: select - label: Image position + label: TEMPLATE.MODULAR.TEXT.IMAGE_ALIGN.LABEL classes: fancy default: left options: - 'left': 'Left' - 'right': 'Right' + left: TEMPLATE.MODULAR.TEXT.IMAGE_ALIGN.OPTIONS.LEFT + right: TEMPLATE.MODULAR.TEXT.IMAGE_ALIGN.OPTIONS.RIGHT + + # TODO: needed? fileupload: type: mediapicker # type: file - label: Bild hochladen + label: TEMPLATE.MODULAR.TEXT.FILE_UPLOAD.LABEL destination: 'page://images' multiple: false avoid_overwriting: true diff --git a/languages/de.yaml b/languages/de.yaml index c8d8876..f6947cb 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -79,6 +79,17 @@ TEMPLATE: LABEL: Zeige Breadcrumbs SHOW_PAGINATION: LABEL: Zeige Seitennummerierung + MODULAR: + TEXT: + MEDIA_ORDER: + LABEL: Seiten Medienreihenfolge (das Erste wird neben dem Inhalt angezeigt) + IMAGE_ALIGN: + LABEL: Bildausrichtung + OPTIONS: + left: Links + right: Rechts + FILE_UPLOAD: + LABEL: Datei hochladen THEME_LOCAL: OPEN_PUBLISHING: diff --git a/languages/en.yaml b/languages/en.yaml index 8c76ba9..c75f7e7 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -79,6 +79,17 @@ TEMPLATE: LABEL: Show Breadcrumbs SHOW_PAGINATION: LABEL: Show Pagination + MODULAR: + TEXT: + MEDIA_ORDER: + LABEL: Page Media (first one will be displayed next to your content) + IMAGE_ALIGN: + LABEL: Image position + OPTIONS: + left: Left + right: Right + FILE_UPLOAD: + LABEL: Upload File THEME_LOCAL: OPEN_PUBLISHING: From 4594207ee0d63f19166685cc2688b7229ad57384 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 16:00:06 +0200 Subject: [PATCH 09/20] translate blueprints/modular/alert --- blueprints/modular/alert.yaml | 44 +++++++++++++++++++++++++++++++++++ languages/de.yaml | 10 ++++++++ languages/en.yaml | 10 ++++++++ 3 files changed, 64 insertions(+) create mode 100644 blueprints/modular/alert.yaml diff --git a/blueprints/modular/alert.yaml b/blueprints/modular/alert.yaml new file mode 100644 index 0000000..5a3f5fc --- /dev/null +++ b/blueprints/modular/alert.yaml @@ -0,0 +1,44 @@ +title: Alert Style Options +'@extends': + type: default + context: blueprints://pages + +form: + fields: + tabs: + type: tabs + active: 1 + fields: + content: + fields: + header.title: + replace@: true + type: text + size: long + label: TEMPLATE.MODULAR.ALERT.CONTENT_TITLE.LABEL + + header.alert_color: + ordering@: 1 + type: select + size: small + label: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.LABEL + default: blue + options: + yellow: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.YELLOW + red: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.RED + blue: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.BLUE + green: TEMPLATE.MODULAR.ALERT.ALERT_COLOR.OPTIONS.GREEN + + options: + fields: + publishing: + fields: + header.published: + default: 1 + + advanced: + fields: + overrides: + fields: + header.visible: + default: 0 diff --git a/languages/de.yaml b/languages/de.yaml index f6947cb..1c73166 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -90,6 +90,16 @@ TEMPLATE: right: Rechts FILE_UPLOAD: LABEL: Datei hochladen + ALERT: + CONTENT_TITLE: + LABEL: Titel + ALERT_COLOR: + LABEL: Mitteilungsfarbe + OPTIONS: + YELLOW: Gelb + RED: Rot + BLUE: Blau + GREEN: Grün THEME_LOCAL: OPEN_PUBLISHING: diff --git a/languages/en.yaml b/languages/en.yaml index c75f7e7..fe9bf80 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -90,6 +90,16 @@ TEMPLATE: right: Right FILE_UPLOAD: LABEL: Upload File + ALERT: + CONTENT_TITLE: + LABEL: Page Title + ALERT_COLOR: + LABEL: Alert Color + OPTIONS: + YELLOW: Yellow + RED: Red + BLUE: Blue + GREEN: Green THEME_LOCAL: OPEN_PUBLISHING: From fee94cd300dd043ba0fc04e4b329ff8fec5a7332 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 16:12:43 +0200 Subject: [PATCH 10/20] fix: blueprints/modular/text --- blueprints/modular/text.yaml | 32 -------------------------------- languages/de.yaml | 10 ---------- languages/en.yaml | 10 ---------- 3 files changed, 52 deletions(-) diff --git a/blueprints/modular/text.yaml b/blueprints/modular/text.yaml index f67f5c2..19e1213 100644 --- a/blueprints/modular/text.yaml +++ b/blueprints/modular/text.yaml @@ -1,34 +1,2 @@ title: Text '@extends': default - -form: - fields: - tabs: - fields: - content: - fields: - - header.media_order: - label: TEMPLATE.MODULAR.TEXT.MEDIA_ORDER.LABEL - - header.image_align: - type: select - label: TEMPLATE.MODULAR.TEXT.IMAGE_ALIGN.LABEL - classes: fancy - default: left - options: - left: TEMPLATE.MODULAR.TEXT.IMAGE_ALIGN.OPTIONS.LEFT - right: TEMPLATE.MODULAR.TEXT.IMAGE_ALIGN.OPTIONS.RIGHT - - # TODO: needed? - fileupload: - type: mediapicker - # type: file - label: TEMPLATE.MODULAR.TEXT.FILE_UPLOAD.LABEL - destination: 'page://images' - multiple: false - avoid_overwriting: true - accept: - - 'image/*' - - 'video/*' - - '.pdf' \ No newline at end of file diff --git a/languages/de.yaml b/languages/de.yaml index 1c73166..95cb7a4 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -80,16 +80,6 @@ TEMPLATE: SHOW_PAGINATION: LABEL: Zeige Seitennummerierung MODULAR: - TEXT: - MEDIA_ORDER: - LABEL: Seiten Medienreihenfolge (das Erste wird neben dem Inhalt angezeigt) - IMAGE_ALIGN: - LABEL: Bildausrichtung - OPTIONS: - left: Links - right: Rechts - FILE_UPLOAD: - LABEL: Datei hochladen ALERT: CONTENT_TITLE: LABEL: Titel diff --git a/languages/en.yaml b/languages/en.yaml index fe9bf80..c283b6a 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -80,16 +80,6 @@ TEMPLATE: SHOW_PAGINATION: LABEL: Show Pagination MODULAR: - TEXT: - MEDIA_ORDER: - LABEL: Page Media (first one will be displayed next to your content) - IMAGE_ALIGN: - LABEL: Image position - OPTIONS: - left: Left - right: Right - FILE_UPLOAD: - LABEL: Upload File ALERT: CONTENT_TITLE: LABEL: Page Title From e926044ce80d44990951a72d72627cc79a137c14 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 16:14:54 +0200 Subject: [PATCH 11/20] fix: blueprints/modular/alert --- blueprints/modular/alert.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/blueprints/modular/alert.yaml b/blueprints/modular/alert.yaml index 5a3f5fc..8c255e8 100644 --- a/blueprints/modular/alert.yaml +++ b/blueprints/modular/alert.yaml @@ -11,12 +11,6 @@ form: fields: content: fields: - header.title: - replace@: true - type: text - size: long - label: TEMPLATE.MODULAR.ALERT.CONTENT_TITLE.LABEL - header.alert_color: ordering@: 1 type: select From e9aa7ac695a07e36ce93e206756be3521c63ae36 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 16:36:50 +0200 Subject: [PATCH 12/20] translate: blueprints/blog --- blueprints/blog.yaml | 62 ++++++++++++++++++++++++++++++++++++++++++++ blueprints/item.yaml | 35 ------------------------- languages/de.yaml | 23 ++++++++++++++++ languages/en.yaml | 23 ++++++++++++++++ 4 files changed, 108 insertions(+), 35 deletions(-) diff --git a/blueprints/blog.yaml b/blueprints/blog.yaml index 59bd51d..00da2b1 100644 --- a/blueprints/blog.yaml +++ b/blueprints/blog.yaml @@ -9,8 +9,70 @@ form: type: tabs fields: blog: + title: TEMPLATE.BLOG.TITLE fields: + content_title: + type: spacer + title: TEMPLATE.BLOG.CONTENT.TITLE + + header.content.items: + type: textarea + yaml: true + label: TEMPLATE.BLOG.CONTENT_ITEMS.LABEL + default: '@self.children' + validate: + type: yaml + + header.content.limit: + type: text + label: TEMPLATE.BLOG.CONTENT_LIMIT.LABEL + default: 5 + validate: + required: true + type: int + min: 1 + + header.content.order.by: + type: select + label: TEMPLATE.BLOG.CONTENT_ORDER_BY.LABEL + default: date + options: + folder: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.FOLDER + title: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.TITLE + date: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.DATE + default: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.DEFAULT + + header.content.order.dir: + type: select + label: TEMPLATE.BLOG.CONTENT_ORDER_DIR.LABEL + default: desc + options: + asc: TEMPLATE.BLOG.CONTENT_ORDER_DIR.OPTIONS.ASC + desc: TEMPLATE.BLOG.CONTENT_ORDER_DIR.OPTIONS.DESC + + header.content.pagination: + type: toggle + label: TEMPLATE.BLOG.CONTENT_PAGINATION.LABEL + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + + header.content.url_taxonomy_filters: + type: toggle + label: TEMPLATE.BLOG.CONTENT_TAXONOMY_FILTER.LABEL + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + appearance: type: section title: TEMPLATE.BLOG.APPEARANCE.TITLE diff --git a/blueprints/item.yaml b/blueprints/item.yaml index 7dabe45..71aff74 100644 --- a/blueprints/item.yaml +++ b/blueprints/item.yaml @@ -63,13 +63,11 @@ form: min: 0 max: 5000 - summary: type: section title: TEMPLATE.ITEM.BLOG.SUMMARY_SECTION.TITLE underline: true - header.summary.enabled: type: toggle toggleable: true @@ -105,39 +103,6 @@ form: classes: large placeholder: === - # TODO: remove if not needed - #openpublishingspace1: - # type: section - # title: Title Icon - # underline: true - # - #header.post_icon: - # type: text - # size: small - # label: Font Awesome Icon for Blog Item - # description: Short name, e.g. 'newspaper-o'. - # help: Optional Font Awesome icon to override the default blog item title icon - # default: null - # validate: - # type: text - # - #openpublishingspace2: - # type: section - # title: Display in Blog List - # underline: true - # - #header.hide_from_post_list: - # type: toggle - # label: Display this Item in Blog List - # help: Determines if this page (i.e. post) will appear in the blog index - # default: 0 - # highlight: 0 - # options: - # 0: Yes - # 1: No - # validate: - # type: bool - import@: type: partials/blog-bits context: blueprints://pages diff --git a/languages/de.yaml b/languages/de.yaml index 95cb7a4..b3a482d 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -3,6 +3,29 @@ PLUGIN_SITEMAP: TEMPLATE: BLOG: + TITLE: Blog Konfiguration + CONTENT: + TITLE: Inhalt Definition + CONTENT_ITEMS: + LABEL: Elemente + CONTENT_LIMIT: + LABEL: Maximale Anzahl Elemente + CONTENT_ORDER_BY: + LABEL: Sortieren nach + OPTIONS: + FOLDER: Ordner + TITLE: Titel + DATE: Datum + DEFAULT: Standard + CONTENT_ORDER_DIR: + LABEL: Reihenfolge + OPTIONS: + ASC: Aufsteigend + DESC: Absteigend + CONTENT_PAGINATION: + LABEL: Seitennummerierung + CONTENT_TAXONOMY_FILTER: + LABEL: URL Taxonomie Filter APPEARANCE: TITLE: Erscheinungsbild BRICKLAYER_LAYOUT: diff --git a/languages/en.yaml b/languages/en.yaml index c283b6a..8285b34 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -3,6 +3,29 @@ PLUGIN_SITEMAP: TEMPLATE: BLOG: + TITLE: Blog Config + CONTENT: + TITLE: Content Definition + CONTENT_ITEMS: + LABEL: Items + CONTENT_LIMIT: + LABEL: Max Item Count + CONTENT_ORDER_BY: + LABEL: Order By + OPTIONS: + FOLDER: Folder + TITLE: Title + DATE: Date + DEFAULT: Default + CONTENT_ORDER_DIR: + LABEL: Order + OPTIONS: + ASC: Ascending + DESC: Descending + CONTENT_PAGINATION: + LABEL: Pagination + CONTENT_TAXONOMY_FILTER: + LABEL: URL Taxonomy Filter APPEARANCE: TITLE: Appearance BRICKLAYER_LAYOUT: From 34b20c38442cf9be843fd23af711495379d06faa Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 16:49:53 +0200 Subject: [PATCH 13/20] fix: blueprints/blog --- blueprints/blog.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blueprints/blog.yaml b/blueprints/blog.yaml index 00da2b1..22da3ed 100644 --- a/blueprints/blog.yaml +++ b/blueprints/blog.yaml @@ -52,6 +52,7 @@ form: desc: TEMPLATE.BLOG.CONTENT_ORDER_DIR.OPTIONS.DESC header.content.pagination: + replace-options@: true type: toggle label: TEMPLATE.BLOG.CONTENT_PAGINATION.LABEL highlight: 1 @@ -63,6 +64,7 @@ form: type: bool header.content.url_taxonomy_filters: + replace-options@: true type: toggle label: TEMPLATE.BLOG.CONTENT_TAXONOMY_FILTER.LABEL highlight: 1 @@ -79,6 +81,7 @@ form: underline: true header.bricklayer_layout: + replace-options@: true type: toggle label: TEMPLATE.BLOG.BRICKLAYER_LAYOUT.LABEL highlight: 1 @@ -90,6 +93,7 @@ form: type: bool header.display_post_summary.enabled: + replace-options@: true type: toggle label: TEMPLATE.BLOG.POST_SUMMARY.LABEL highlight: 1 From 3da6930dda513bd3c19d924668885649a19f0960 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Tue, 7 May 2024 16:56:55 +0200 Subject: [PATCH 14/20] translate: blueprints/default --- blueprints/default.yaml | 15 +++++++++++++++ languages/de.yaml | 3 +++ languages/en.yaml | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 blueprints/default.yaml diff --git a/blueprints/default.yaml b/blueprints/default.yaml new file mode 100644 index 0000000..5b5d03e --- /dev/null +++ b/blueprints/default.yaml @@ -0,0 +1,15 @@ +extends@: default + +form: + fields: + tabs: + fields: + advanced: + fields: + columns: + fields: + column1: + fields: + header.body_classes: + markdown: true + description: TEMPLATE.DEFAULT.BODY_CLASSES.DESCRIPTION \ No newline at end of file diff --git a/languages/de.yaml b/languages/de.yaml index b3a482d..c9bd988 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -2,6 +2,9 @@ PLUGIN_SITEMAP: HEADER_IGNORE: Ignoriere Seite in Sitemap TEMPLATE: + DEFAULT: + BODY_CLASSES: + DESCRIPTION: 'Verfügbare Klassen im Quark Theme (Leerzeichen getrennt):
`header-fixed`, `header-animated`, `header-dark`, `header-transparent`, `sticky-footer`' BLOG: TITLE: Blog Konfiguration CONTENT: diff --git a/languages/en.yaml b/languages/en.yaml index 8285b34..c537324 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -2,6 +2,9 @@ PLUGIN_SITEMAP: HEADER_IGNORE: Ignore Page in Sitemap TEMPLATE: + DEFAULT: + BODY_CLASSES: + DESCRIPTION: 'Available classes in Quark Theme (space separated):
`header-fixed`, `header-animated`, `header-dark`, `header-transparent`, `sticky-footer`' BLOG: TITLE: Blog Config CONTENT: From f2c57400aca4ecd7104fabed6ea2a3cbe2a651f2 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 09:16:04 +0200 Subject: [PATCH 15/20] translate: sections sections, section, subsection --- blueprints/section.yaml | 33 ++++++++++++++++ blueprints/sections.yaml | 81 ++++++++++++++++++++++++++++++++++++++ blueprints/subsection.yaml | 33 ++++++++++++++++ languages/de.yaml | 38 ++++++++++++++++++ languages/en.yaml | 38 ++++++++++++++++++ 5 files changed, 223 insertions(+) create mode 100644 blueprints/section.yaml create mode 100644 blueprints/sections.yaml create mode 100644 blueprints/subsection.yaml diff --git a/blueprints/section.yaml b/blueprints/section.yaml new file mode 100644 index 0000000..85b19e5 --- /dev/null +++ b/blueprints/section.yaml @@ -0,0 +1,33 @@ +title: Section Page Options +'@extends': + type: default + context: blueprints://pages + +form: + fields: + tabs: + type: tabs + active: 1 + + fields: + options: + type: tab + + fields: + + pagetitle: + type: section + title: TEMPLATE.SECTION.PAGE_TITLE.TITLE + underline: true + + header.hide_page_title: + type: toggle + label: TEMPLATE.SECTION.HIDE_PAGE_TITLE.LABEL + help: TEMPLATE.SECTION.HIDE_PAGE_TITLE.HELP + default: 0 + highlight: 0 + options: + 0: PLUGIN_ADMIN.YES + 1: PLUGIN_ADMIN.NO + validate: + type: bool diff --git a/blueprints/sections.yaml b/blueprints/sections.yaml new file mode 100644 index 0000000..0acfc28 --- /dev/null +++ b/blueprints/sections.yaml @@ -0,0 +1,81 @@ +title: Sections Page Options +'@extends': + type: default + context: blueprints://pages + +form: + fields: + tabs: + type: tabs + active: 1 + + fields: + options: + type: tab + + fields: + + pagetitle: + type: section + title: TEMPLATE.SECTIONS.PAGE_TITLE.TITLE + underline: true + + header.hide_page_title: + type: toggle + label: TEMPLATE.SECTIONS.HIDE_PAGE_TITLE.LABEL + help: TEMPLATE.SECTIONS.HIDE_PAGE_TITLE.HELP + default: 0 + highlight: 0 + options: + 0: PLUGIN_ADMIN.YES + 1: PLUGIN_ADMIN.NO + validate: + type: bool + + sectionpages: + type: tab + title: TEMPLATE.SECTIONS.SECTION_PAGES.TITLE + + sectionpages: + type: tab + title: TEMPLATE.SECTIONS.SECTION_PAGES.TITLE + + fields: + + header.content.items: + type: hidden + default: '@self.children' + + header.content.order.by: + type: select + label: TEMPLATE.SECTIONS.ORDER_BY.LABEL + default: date + options: + folder: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.FOLDER + title: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.TITLE + date: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.DATE + default: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.DEFAULT + + header.content.order.dir: + type: select + label: TEMPLATE.SECTIONS.ORDER_DIR.LABEL + default: asc + options: + asc: TEMPLATE.SECTIONS.ORDER_DIR.OPTIONS.ASC + desc: TEMPLATE.SECTIONS.ORDER_DIR.OPTIONS.DESC + + appearance: + type: section + title: TEMPLATE.SECTIONS.SECTION_CONFIG.TITLE + underline: true + + header.hide_next_prev_page_buttons: + type: toggle + label: TEMPLATE.SECTIONS.HIDE_NEXT_PREV_BUTTONS.LABEL + default: 0 + highlight: 0 + options: + 0: PLUGIN_ADMIN.YES + 1: PLUGIN_ADMIN.NO + validate: + type: bool diff --git a/blueprints/subsection.yaml b/blueprints/subsection.yaml new file mode 100644 index 0000000..8ce23c4 --- /dev/null +++ b/blueprints/subsection.yaml @@ -0,0 +1,33 @@ +title: Subsection Page Options +'@extends': + type: default + context: blueprints://pages + +form: + fields: + tabs: + type: tabs + active: 1 + + fields: + options: + type: tab + + fields: + + pagetitle: + type: section + title: TEMPLATE.SUBSECTION.PAGE_TITLE.TITLE + underline: true + + header.hide_page_title: + type: toggle + label: TEMPLATE.SUBSECTION.HIDE_PAGE_TITLE.LABEL + help: TEMPLATE.SUBSECTION.HIDE_PAGE_TITLE.HELP + default: 0 + highlight: 0 + options: + 0: PLUGIN_ADMIN.YES + 1: PLUGIN_ADMIN.NO + validate: + type: bool diff --git a/languages/de.yaml b/languages/de.yaml index c9bd988..ec71900 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -78,6 +78,44 @@ TEMPLATE: LABEL: Länge SUMMARY_DELIMITER: LABEL: Zusammenfassungstrennzeichen + SECTIONS: + PAGE_TITLE: + TITLE: Seitentitel + HIDE_PAGE_TITLE: + LABEL: Titel am oberen Rand der Seite anzeigen + HELP: Bestimmt, ob der Seitentitel am oberen Rand einer Seite angezeigt wird + SECTION_PAGES: + TITLE: Sektionen + SECTION_CONFIG: + TITLE: Abschnitt Konfiguration + ORDER_BY: + LABEL: Sortieren nach + OPTIONS: + FOLDER: Ordner + TITLE: Titel + DATE: Datum + DEFAULT: Standard + ORDER_DIR: + LABEL: Reihenfolge + OPTIONS: + ASC: Aufsteigend + DESC: Absteigend + APPEARANCE: + TITLE: Erscheinungsbild + HIDE_NEXT_PREV_BUTTONS: + LABEL: Verstecke Nächste/Vorherige Schaltflächen + SECTION: + PAGE_TITLE: + TITLE: Seitentitel + HIDE_PAGE_TITLE: + LABEL: Titel am oberen Rand der Seite anzeigen + HELP: Bestimmt, ob der Seitentitel am oberen Rand einer Seite angezeigt wird + SUBSECTION: + PAGE_TITLE: + TITLE: Seitentitel + HIDE_PAGE_TITLE: + LABEL: Titel am oberen Rand der Seite anzeigen + HELP: Bestimmt, ob der Seitentitel am oberen Rand einer Seite angezeigt wird PARTIALS: BLOG_BITS: HERO_TITLE: diff --git a/languages/en.yaml b/languages/en.yaml index c537324..f97e9eb 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -78,6 +78,44 @@ TEMPLATE: LABEL: Size SUMMARY_DELIMITER: LABEL: Summary delimiter + SECTIONS: + PAGE_TITLE: + TITLE: Page Title + HIDE_PAGE_TITLE: + LABEL: Display Title at top of Page + HELP: Determines if the page title is displayed at the top of a page + SECTION_PAGES: + TITLE: Section Pages + SECTION_CONFIG: + TITLE: Sections Config + ORDER_BY: + LABEL: Order By + OPTIONS: + FOLDER: Folder + TITLE: Title + DATE: Date + DEFAULT: Default + ORDER_DIR: + LABEL: Order + OPTIONS: + ASC: Ascending + DESC: Descending + APPEARANCE: + TITLE: Appearance + HIDE_NEXT_PREV_BUTTONS: + LABEL: Hide Next/Previous Buttons + SECTION: + PAGE_TITLE: + TITLE: Page Title + HIDE_PAGE_TITLE: + LABEL: Display Title at top of Page + HELP: Determines if the page title is displayed at the top of a page + SUBSECTION: + PAGE_TITLE: + TITLE: Page Title + HIDE_PAGE_TITLE: + LABEL: Display Title at top of Page + HELP: Determines if the page title is displayed at the top of a page PARTIALS: BLOG_BITS: HERO_TITLE: From cfd380c7c313d79e2c8008400ab95eb6216c4f76 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 09:30:23 +0200 Subject: [PATCH 16/20] translate: refactor section --- blueprints/partials/section-bits.yaml | 18 ++++++++++++++++++ blueprints/section.yaml | 21 +++------------------ blueprints/sections.yaml | 25 +++---------------------- blueprints/subsection.yaml | 21 +++------------------ languages/de.yaml | 13 +------------ languages/en.yaml | 13 +------------ 6 files changed, 29 insertions(+), 82 deletions(-) create mode 100644 blueprints/partials/section-bits.yaml diff --git a/blueprints/partials/section-bits.yaml b/blueprints/partials/section-bits.yaml new file mode 100644 index 0000000..0bcff44 --- /dev/null +++ b/blueprints/partials/section-bits.yaml @@ -0,0 +1,18 @@ +form: + fields: + pagetitle: + type: section + title: TEMPLATE.SECTION_BITS.PAGE_TITLE.TITLE + underline: true + + header.hide_page_title: + type: toggle + label: TEMPLATE.SECTION_BITS.HIDE_PAGE_TITLE.LABEL + help: TEMPLATE.SECTION_BITS.HIDE_PAGE_TITLE.HELP + default: 0 + highlight: 0 + options: + 0: PLUGIN_ADMIN.YES + 1: PLUGIN_ADMIN.NO + validate: + type: bool diff --git a/blueprints/section.yaml b/blueprints/section.yaml index 85b19e5..4ea5483 100644 --- a/blueprints/section.yaml +++ b/blueprints/section.yaml @@ -13,21 +13,6 @@ form: options: type: tab - fields: - - pagetitle: - type: section - title: TEMPLATE.SECTION.PAGE_TITLE.TITLE - underline: true - - header.hide_page_title: - type: toggle - label: TEMPLATE.SECTION.HIDE_PAGE_TITLE.LABEL - help: TEMPLATE.SECTION.HIDE_PAGE_TITLE.HELP - default: 0 - highlight: 0 - options: - 0: PLUGIN_ADMIN.YES - 1: PLUGIN_ADMIN.NO - validate: - type: bool + import@: + type: partials/section-bits + context: blueprints://pages diff --git a/blueprints/sections.yaml b/blueprints/sections.yaml index 0acfc28..1f89ae7 100644 --- a/blueprints/sections.yaml +++ b/blueprints/sections.yaml @@ -13,28 +13,9 @@ form: options: type: tab - fields: - - pagetitle: - type: section - title: TEMPLATE.SECTIONS.PAGE_TITLE.TITLE - underline: true - - header.hide_page_title: - type: toggle - label: TEMPLATE.SECTIONS.HIDE_PAGE_TITLE.LABEL - help: TEMPLATE.SECTIONS.HIDE_PAGE_TITLE.HELP - default: 0 - highlight: 0 - options: - 0: PLUGIN_ADMIN.YES - 1: PLUGIN_ADMIN.NO - validate: - type: bool - - sectionpages: - type: tab - title: TEMPLATE.SECTIONS.SECTION_PAGES.TITLE + import@: + type: partials/section-bits + context: blueprints://pages sectionpages: type: tab diff --git a/blueprints/subsection.yaml b/blueprints/subsection.yaml index 8ce23c4..7cf9d60 100644 --- a/blueprints/subsection.yaml +++ b/blueprints/subsection.yaml @@ -13,21 +13,6 @@ form: options: type: tab - fields: - - pagetitle: - type: section - title: TEMPLATE.SUBSECTION.PAGE_TITLE.TITLE - underline: true - - header.hide_page_title: - type: toggle - label: TEMPLATE.SUBSECTION.HIDE_PAGE_TITLE.LABEL - help: TEMPLATE.SUBSECTION.HIDE_PAGE_TITLE.HELP - default: 0 - highlight: 0 - options: - 0: PLUGIN_ADMIN.YES - 1: PLUGIN_ADMIN.NO - validate: - type: bool + import@: + type: partials/section-bits + context: blueprints://pages diff --git a/languages/de.yaml b/languages/de.yaml index ec71900..264100c 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -79,11 +79,6 @@ TEMPLATE: SUMMARY_DELIMITER: LABEL: Zusammenfassungstrennzeichen SECTIONS: - PAGE_TITLE: - TITLE: Seitentitel - HIDE_PAGE_TITLE: - LABEL: Titel am oberen Rand der Seite anzeigen - HELP: Bestimmt, ob der Seitentitel am oberen Rand einer Seite angezeigt wird SECTION_PAGES: TITLE: Sektionen SECTION_CONFIG: @@ -104,13 +99,7 @@ TEMPLATE: TITLE: Erscheinungsbild HIDE_NEXT_PREV_BUTTONS: LABEL: Verstecke Nächste/Vorherige Schaltflächen - SECTION: - PAGE_TITLE: - TITLE: Seitentitel - HIDE_PAGE_TITLE: - LABEL: Titel am oberen Rand der Seite anzeigen - HELP: Bestimmt, ob der Seitentitel am oberen Rand einer Seite angezeigt wird - SUBSECTION: + SECTION_BITS: PAGE_TITLE: TITLE: Seitentitel HIDE_PAGE_TITLE: diff --git a/languages/en.yaml b/languages/en.yaml index f97e9eb..2697bd1 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -79,11 +79,6 @@ TEMPLATE: SUMMARY_DELIMITER: LABEL: Summary delimiter SECTIONS: - PAGE_TITLE: - TITLE: Page Title - HIDE_PAGE_TITLE: - LABEL: Display Title at top of Page - HELP: Determines if the page title is displayed at the top of a page SECTION_PAGES: TITLE: Section Pages SECTION_CONFIG: @@ -104,13 +99,7 @@ TEMPLATE: TITLE: Appearance HIDE_NEXT_PREV_BUTTONS: LABEL: Hide Next/Previous Buttons - SECTION: - PAGE_TITLE: - TITLE: Page Title - HIDE_PAGE_TITLE: - LABEL: Display Title at top of Page - HELP: Determines if the page title is displayed at the top of a page - SUBSECTION: + SECTION_BITS: PAGE_TITLE: TITLE: Page Title HIDE_PAGE_TITLE: From c67849b6b583d35bedf2c69bbdda993aa44eca4e Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 09:43:26 +0200 Subject: [PATCH 17/20] translate: hero --- blueprints/modular/hero.yaml | 21 +++++++++++++++++++++ languages/de.yaml | 7 +++++++ languages/en.yaml | 7 +++++++ 3 files changed, 35 insertions(+) create mode 100644 blueprints/modular/hero.yaml diff --git a/blueprints/modular/hero.yaml b/blueprints/modular/hero.yaml new file mode 100644 index 0000000..6347e8b --- /dev/null +++ b/blueprints/modular/hero.yaml @@ -0,0 +1,21 @@ +title: Hero +'@extends': default + +form: + fields: + tabs: + fields: + buttons: + type: tab + title: Hero + fields: + header.hero_classes: + type: text + label: TEMPLATE.MODULAR.HERO.HERO_CLASSES.LABEL + markdown: true + description: TEMPLATE.MODULAR.HERO.HERO_CLASSES.DESCRIPTION + header.hero_image: + type: filepicker + label: TEMPLATE.MODULAR.HERO.HERO_IMAGE.LABEL + preview_images: true + description: TEMPLATE.MODULAR.HERO.HERO_IMAGE.DESCRIPTION diff --git a/languages/de.yaml b/languages/de.yaml index 264100c..5e4faf3 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -143,6 +143,13 @@ TEMPLATE: RED: Rot BLUE: Blau GREEN: Grün + HERO: + HERO_CLASSES: + LABEL: Hero Klassen + DESCRIPTION: 'Es gibt mehrere Hero-Klassenoptionen, die hier aufgelistet werden können (durch Leerzeichen getrennt):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Bitte konsultiere die [Quark Dokumentation](https://github.com/getgrav/grav-theme-quark#hero-options) für weitere Details.' + HERO_IMAGE: + LABEL: Hero Bild + DESCRIPTION: Wenn nicht angegeben, wird das erste Bild im Seitenordner verwendet THEME_LOCAL: OPEN_PUBLISHING: diff --git a/languages/en.yaml b/languages/en.yaml index 2697bd1..85327d2 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -143,6 +143,13 @@ TEMPLATE: RED: Red BLUE: Blue GREEN: Green + HERO: + HERO_CLASSES: + LABEL: Hero Classes + DESCRIPTION: 'There are several Hero class options that can be listed here (space separated):
`text-light`, `text-dark`, `title-h1h2`, `parallax`, `overlay-dark-gradient`, `overlay-light-gradient`, `overlay-dark`, `overlay-light`, `hero-fullscreen`, `hero-large`, `hero-medium`, `hero-small`, `hero-tiny`
Please consult the [Quark documentation](https://github.com/getgrav/grav-theme-quark#hero-options) for more details.' + HERO_IMAGE: + LABEL: Hero Image + DESCRIPTION: If not specified, this defaults to the first image found in the pages folder THEME_LOCAL: OPEN_PUBLISHING: From 502a013b64834d2b81a1baf33ab851bbcd71012b Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 10:30:43 +0200 Subject: [PATCH 18/20] translate: refactor section --- blueprints/modular.yaml | 42 +++++++++++++++++++ .../{section-bits.yaml => section.yaml} | 6 +-- blueprints/section.yaml | 2 +- blueprints/sections.yaml | 23 +++++----- blueprints/subsection.yaml | 2 +- languages/de.yaml | 39 +++++++++-------- languages/en.yaml | 39 +++++++++-------- 7 files changed, 102 insertions(+), 51 deletions(-) create mode 100644 blueprints/modular.yaml rename blueprints/partials/{section-bits.yaml => section.yaml} (59%) diff --git a/blueprints/modular.yaml b/blueprints/modular.yaml new file mode 100644 index 0000000..a1770e3 --- /dev/null +++ b/blueprints/modular.yaml @@ -0,0 +1,42 @@ +title: PLUGIN_ADMIN.MODULE +extends@: default + +form: + fields: + tabs: + type: tabs + active: 1 + + fields: + content: + fields: + + modular_title: + type: spacer + title: PLUGIN_ADMIN.MODULE_SETUP + + header.content.items: + type: text + label: PLUGIN_ADMIN.ITEMS + default: '@self.modular' + size: medium + + header.content.order.by: + type: select + label: PLUGIN_ADMIN.ORDER_BY + default: date + size: small + options: + folder: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.FOLDER + title: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.TITLE + date: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DATE + default: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DEFAULT + + header.content.order.dir: + type: select + label: PLUGIN_ADMIN.ORDER + default: desc + size: small + options: + asc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.ASC + desc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.DESC diff --git a/blueprints/partials/section-bits.yaml b/blueprints/partials/section.yaml similarity index 59% rename from blueprints/partials/section-bits.yaml rename to blueprints/partials/section.yaml index 0bcff44..abe7032 100644 --- a/blueprints/partials/section-bits.yaml +++ b/blueprints/partials/section.yaml @@ -2,13 +2,13 @@ form: fields: pagetitle: type: section - title: TEMPLATE.SECTION_BITS.PAGE_TITLE.TITLE + title: TEMPLATE.PARTIALS.SECTION.PAGE_TITLE.TITLE underline: true header.hide_page_title: type: toggle - label: TEMPLATE.SECTION_BITS.HIDE_PAGE_TITLE.LABEL - help: TEMPLATE.SECTION_BITS.HIDE_PAGE_TITLE.HELP + label: TEMPLATE.PARTIALS.SECTION.HIDE_PAGE_TITLE.LABEL + help: TEMPLATE.PARTIALS.SECTION.HIDE_PAGE_TITLE.HELP default: 0 highlight: 0 options: diff --git a/blueprints/section.yaml b/blueprints/section.yaml index 4ea5483..cb7ee65 100644 --- a/blueprints/section.yaml +++ b/blueprints/section.yaml @@ -14,5 +14,5 @@ form: type: tab import@: - type: partials/section-bits + type: partials/section context: blueprints://pages diff --git a/blueprints/sections.yaml b/blueprints/sections.yaml index 1f89ae7..f51830c 100644 --- a/blueprints/sections.yaml +++ b/blueprints/sections.yaml @@ -14,7 +14,7 @@ form: type: tab import@: - type: partials/section-bits + type: partials/section context: blueprints://pages sectionpages: @@ -25,25 +25,28 @@ form: header.content.items: type: hidden + label: PLUGIN_ADMIN.ITEMS default: '@self.children' header.content.order.by: type: select - label: TEMPLATE.SECTIONS.ORDER_BY.LABEL + label: PLUGIN_ADMIN.ORDER_BY default: date + size: small options: - folder: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.FOLDER - title: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.TITLE - date: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.DATE - default: TEMPLATE.SECTIONS.ORDER_BY.OPTIONS.DEFAULT + folder: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.FOLDER + title: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.TITLE + date: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DATE + default: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DEFAULT header.content.order.dir: type: select - label: TEMPLATE.SECTIONS.ORDER_DIR.LABEL - default: asc + label: PLUGIN_ADMIN.ORDER + default: desc + size: small options: - asc: TEMPLATE.SECTIONS.ORDER_DIR.OPTIONS.ASC - desc: TEMPLATE.SECTIONS.ORDER_DIR.OPTIONS.DESC + asc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.ASC + desc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.DESC appearance: type: section diff --git a/blueprints/subsection.yaml b/blueprints/subsection.yaml index 7cf9d60..58e1e66 100644 --- a/blueprints/subsection.yaml +++ b/blueprints/subsection.yaml @@ -14,5 +14,5 @@ form: type: tab import@: - type: partials/section-bits + type: partials/section context: blueprints://pages diff --git a/languages/de.yaml b/languages/de.yaml index 5e4faf3..01289f8 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -83,29 +83,26 @@ TEMPLATE: TITLE: Sektionen SECTION_CONFIG: TITLE: Abschnitt Konfiguration - ORDER_BY: - LABEL: Sortieren nach - OPTIONS: - FOLDER: Ordner - TITLE: Titel - DATE: Datum - DEFAULT: Standard - ORDER_DIR: - LABEL: Reihenfolge - OPTIONS: - ASC: Aufsteigend - DESC: Absteigend APPEARANCE: TITLE: Erscheinungsbild HIDE_NEXT_PREV_BUTTONS: LABEL: Verstecke Nächste/Vorherige Schaltflächen - SECTION_BITS: - PAGE_TITLE: - TITLE: Seitentitel - HIDE_PAGE_TITLE: - LABEL: Titel am oberen Rand der Seite anzeigen - HELP: Bestimmt, ob der Seitentitel am oberen Rand einer Seite angezeigt wird PARTIALS: + COLLECTION: + ITEMS: + LABEL: Elemente + ORDER_BY: + LABEL: Sortieren nach + OPTIONS: + FOLDER: Ordner + TITLE: Titel + DATE: Datum + DEFAULT: Standard + ORDER_DIR: + LABEL: Reihenfolge + OPTIONS: + ASC: Aufsteigend + DESC: Absteigend BLOG_BITS: HERO_TITLE: TITLE: Hero Abschnitt @@ -132,6 +129,12 @@ TEMPLATE: LABEL: Zeige Breadcrumbs SHOW_PAGINATION: LABEL: Zeige Seitennummerierung + SECTION: + PAGE_TITLE: + TITLE: Seitentitel + HIDE_PAGE_TITLE: + LABEL: Titel am oberen Rand der Seite anzeigen + HELP: Bestimmt, ob der Seitentitel am oberen Rand einer Seite angezeigt wird MODULAR: ALERT: CONTENT_TITLE: diff --git a/languages/en.yaml b/languages/en.yaml index 85327d2..a042e54 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -83,29 +83,26 @@ TEMPLATE: TITLE: Section Pages SECTION_CONFIG: TITLE: Sections Config - ORDER_BY: - LABEL: Order By - OPTIONS: - FOLDER: Folder - TITLE: Title - DATE: Date - DEFAULT: Default - ORDER_DIR: - LABEL: Order - OPTIONS: - ASC: Ascending - DESC: Descending APPEARANCE: TITLE: Appearance HIDE_NEXT_PREV_BUTTONS: LABEL: Hide Next/Previous Buttons - SECTION_BITS: - PAGE_TITLE: - TITLE: Page Title - HIDE_PAGE_TITLE: - LABEL: Display Title at top of Page - HELP: Determines if the page title is displayed at the top of a page PARTIALS: + COLLECTION: + ITEMS: + LABEL: Items + ORDER_BY: + LABEL: Order By + OPTIONS: + FOLDER: Folder + TITLE: Title + DATE: Date + DEFAULT: Default + ORDER_DIR: + LABEL: Order + OPTIONS: + ASC: Ascending + DESC: Descending BLOG_BITS: HERO_TITLE: TITLE: Hero Section @@ -132,6 +129,12 @@ TEMPLATE: LABEL: Show Breadcrumbs SHOW_PAGINATION: LABEL: Show Pagination + SECTION: + PAGE_TITLE: + TITLE: Page Title + HIDE_PAGE_TITLE: + LABEL: Display Title at top of Page + HELP: Determines if the page title is displayed at the top of a page MODULAR: ALERT: CONTENT_TITLE: From f3aea33b4abb08764e9ef85acf227f74f0a3aa72 Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 10:36:50 +0200 Subject: [PATCH 19/20] translate: refactor blog --- blueprints/blog.yaml | 20 +++++++++++--------- blueprints/partials/blog-bits.yaml | 26 +++++++++++++------------- languages/de.yaml | 16 +--------------- languages/en.yaml | 16 +--------------- 4 files changed, 26 insertions(+), 52 deletions(-) diff --git a/blueprints/blog.yaml b/blueprints/blog.yaml index 22da3ed..21f1aa5 100644 --- a/blueprints/blog.yaml +++ b/blueprints/blog.yaml @@ -19,7 +19,7 @@ form: header.content.items: type: textarea yaml: true - label: TEMPLATE.BLOG.CONTENT_ITEMS.LABEL + label: PLUGIN_ADMIN.ITEMS default: '@self.children' validate: type: yaml @@ -35,21 +35,23 @@ form: header.content.order.by: type: select - label: TEMPLATE.BLOG.CONTENT_ORDER_BY.LABEL + label: PLUGIN_ADMIN.ORDER_BY default: date + size: small options: - folder: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.FOLDER - title: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.TITLE - date: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.DATE - default: TEMPLATE.BLOG.CONTENT_ORDER_BY.OPTIONS.DEFAULT + folder: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.FOLDER + title: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.TITLE + date: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DATE + default: TEMPLATE.PARTIALS.COLLECTION.ORDER_BY.OPTIONS.DEFAULT header.content.order.dir: type: select - label: TEMPLATE.BLOG.CONTENT_ORDER_DIR.LABEL + label: PLUGIN_ADMIN.ORDER default: desc + size: small options: - asc: TEMPLATE.BLOG.CONTENT_ORDER_DIR.OPTIONS.ASC - desc: TEMPLATE.BLOG.CONTENT_ORDER_DIR.OPTIONS.DESC + asc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.ASC + desc: TEMPLATE.PARTIALS.COLLECTION.ORDER_DIR.OPTIONS.DESC header.content.pagination: replace-options@: true diff --git a/blueprints/partials/blog-bits.yaml b/blueprints/partials/blog-bits.yaml index f6cb6be..40887c7 100644 --- a/blueprints/partials/blog-bits.yaml +++ b/blueprints/partials/blog-bits.yaml @@ -2,56 +2,56 @@ form: fields: hero_title: type: spacer - title: TEMPLATE.PARTIALS.BLOG_BITS.HERO_TITLE.TITLE + title: TEMPLATE.PARTIALS.BLOG.HERO_TITLE.TITLE header.hero_classes: type: text - label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_CLASSES.LABEL + label: TEMPLATE.PARTIALS.BLOG.HERO_CLASSES.LABEL markdown: true - description: TEMPLATE.PARTIALS.BLOG_BITS.HERO_CLASSES.DESCRIPTION + description: TEMPLATE.PARTIALS.BLOG.HERO_CLASSES.DESCRIPTION data-default@: '\Grav\Theme\QuarkOpenPublishing::getblogpageheroclasses' header.hero_image: type: filepicker label: Hero Image preview_images: true - description: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE.DESCRIPTION + description: TEMPLATE.PARTIALS.BLOG.HERO_IMAGE.DESCRIPTION header.header_image_alt_text: type: text size: medium - label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE_ALT_TEXT.LABEL + label: TEMPLATE.PARTIALS.BLOG.HERO_IMAGE_ALT_TEXT.LABEL default: null header.header_image_credit: type: text size: medium - label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE_CREDIT.LABEL + label: TEMPLATE.PARTIALS.BLOG.HERO_IMAGE_CREDIT.LABEL default: null header.header_image_creditlink: type: text size: long - label: TEMPLATE.PARTIALS.BLOG_BITS.HERO_IMAGE_CREDITLINK.LABEL + label: TEMPLATE.PARTIALS.BLOG.HERO_IMAGE_CREDITLINK.LABEL default: null validate: type: URL toggles_title: type: spacer - title: TEMPLATE.PARTIALS.BLOG_BITS.TOGGLES_TITLE.TITLE + title: TEMPLATE.PARTIALS.BLOG.TOGGLES_TITLE.TITLE header.blog_url: type: text - label: TEMPLATE.PARTIALS.BLOG_BITS.BLOG_URL.LABEL - help: TEMPLATE.PARTIALS.BLOG_BITS.BLOG_URL.HELP + label: TEMPLATE.PARTIALS.BLOG.BLOG_URL.LABEL + help: TEMPLATE.PARTIALS.BLOG.BLOG_URL.HELP default: '/blog' placeholder: '/blog' size: medium header.show_sidebar: type: toggle - label: TEMPLATE.PARTIALS.BLOG_BITS.SHOW_SIDEBAR.LABEL + label: TEMPLATE.PARTIALS.BLOG.SHOW_SIDEBAR.LABEL highlight: 1 default: 1 options: @@ -62,7 +62,7 @@ form: header.show_breadcrumbs: type: toggle - label: TEMPLATE.PARTIALS.BLOG_BITS.SHOW_BREADCRUMBS.LABEL + label: TEMPLATE.PARTIALS.BLOG.SHOW_BREADCRUMBS.LABEL highlight: 1 default: 1 options: @@ -73,7 +73,7 @@ form: header.show_pagination: type: toggle - label: TEMPLATE.PARTIALS.BLOG_BITS.SHOW_PAGINATION.LABEL + label: TEMPLATE.PARTIALS.BLOG.SHOW_PAGINATION.LABEL highlight: 1 default: 1 options: diff --git a/languages/de.yaml b/languages/de.yaml index 01289f8..df58523 100644 --- a/languages/de.yaml +++ b/languages/de.yaml @@ -9,22 +9,8 @@ TEMPLATE: TITLE: Blog Konfiguration CONTENT: TITLE: Inhalt Definition - CONTENT_ITEMS: - LABEL: Elemente CONTENT_LIMIT: LABEL: Maximale Anzahl Elemente - CONTENT_ORDER_BY: - LABEL: Sortieren nach - OPTIONS: - FOLDER: Ordner - TITLE: Titel - DATE: Datum - DEFAULT: Standard - CONTENT_ORDER_DIR: - LABEL: Reihenfolge - OPTIONS: - ASC: Aufsteigend - DESC: Absteigend CONTENT_PAGINATION: LABEL: Seitennummerierung CONTENT_TAXONOMY_FILTER: @@ -103,7 +89,7 @@ TEMPLATE: OPTIONS: ASC: Aufsteigend DESC: Absteigend - BLOG_BITS: + BLOG: HERO_TITLE: TITLE: Hero Abschnitt HERO_CLASSES: diff --git a/languages/en.yaml b/languages/en.yaml index a042e54..c687473 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -9,22 +9,8 @@ TEMPLATE: TITLE: Blog Config CONTENT: TITLE: Content Definition - CONTENT_ITEMS: - LABEL: Items CONTENT_LIMIT: LABEL: Max Item Count - CONTENT_ORDER_BY: - LABEL: Order By - OPTIONS: - FOLDER: Folder - TITLE: Title - DATE: Date - DEFAULT: Default - CONTENT_ORDER_DIR: - LABEL: Order - OPTIONS: - ASC: Ascending - DESC: Descending CONTENT_PAGINATION: LABEL: Pagination CONTENT_TAXONOMY_FILTER: @@ -103,7 +89,7 @@ TEMPLATE: OPTIONS: ASC: Ascending DESC: Descending - BLOG_BITS: + BLOG: HERO_TITLE: TITLE: Hero Section HERO_CLASSES: From 6b367bac3a4e13ce77f4495dd27e1682a122e24b Mon Sep 17 00:00:00 2001 From: Nicholas Krebs Date: Mon, 13 May 2024 10:42:45 +0200 Subject: [PATCH 20/20] update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df843a3..985451a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Minimal Theme -The **Minimal** Theme is for [Grav CMS](http://github.com/getgrav/grav). +The **Minimal** Theme is for [Grav CMS](http://github.com/getgrav/grav). ## Description @@ -11,3 +11,6 @@ Simple Theme for Grav CMS, depending on Quark and Quark Open Publishing. Minimal ## Features - makes tables responsive on small screens +- german translations for everything +- enhanced blog options +- more enhancements to the Quark and Quark Open Publishing theme