Merge branch 'main' into develop

This commit is contained in:
pmoreno.rodriguez 2022-12-22 08:51:54 +01:00 committed by GitHub
commit 520457b652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 955 additions and 286 deletions

View file

@ -38,7 +38,7 @@ miniposts: true
miniposts_number: 3 miniposts_number: 3
latestposts: true latestposts: true
miniposts_category: minipost miniposts_category: minipost
displaycustommenus: custommenus:
enabled: false enabled: false
dropdown: dropdown:
enabled: true enabled: true

View file

@ -2036,11 +2036,12 @@ ul.icons li > * .label {
ul.posts { ul.posts {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin-bottom: 0.25rem;
} }
ul.posts li { ul.posts li {
border-top: dotted 1px rgba(160, 160, 160, 0.3); border-top: dotted 1px rgba(160, 160, 160, 0.3);
margin: 1.5em 0 0 0; margin: 0.25em 0 0 0;
padding: 1.5em 0 0 0; padding: 0.25em 0 0 0;
} }
ul.posts li:first-child { ul.posts li:first-child {
border-top: 0; border-top: 0;
@ -2076,6 +2077,7 @@ ul.posts article header {
ul.posts article header h3 { ul.posts article header h3 {
font-size: 0.7em; font-size: 0.7em;
margin-top: 0.125em; margin-top: 0.125em;
margin-bottom: 0.25em;
} }
ul.posts article header .published { ul.posts article header .published {
display: block; display: block;
@ -2176,6 +2178,12 @@ ul.posts article header > :last-child {
margin: 0 0 3em 0; margin: 0 0 3em 0;
position: relative; position: relative;
} }
.post img {
max-width: 100%;
}
.post .modular-row.gallery-container {
margin-bottom: 2.75rem;
}
.post > header { .post > header {
display: -moz-flex; display: -moz-flex;
display: -ms-flex; display: -ms-flex;
@ -2627,8 +2635,8 @@ table.alt tfoot {
text-transform: uppercase; text-transform: uppercase;
display: block; display: block;
border-bottom: none; border-bottom: none;
padding: 0.3rem 0.8rem; padding: 0.5rem 0.8rem;
line-height: 2.5em; line-height: 1.5em;
} }
#header .dropdown li ul li a:hover { #header .dropdown li ul li a:hover {
color: #181818; color: #181818;
@ -2684,6 +2692,7 @@ table.alt tfoot {
.menulink { .menulink {
margin: 0; margin: 0;
padding: 0; padding: 0;
margin-top: -0.3rem;
} }
ul.menulink > li, ul.menulink > li,
@ -2995,19 +3004,6 @@ body.single #wrapper {
position: relative; position: relative;
width: 4em; width: 4em;
} }
#intro .logo:before {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100px' height='100px' viewBox='0 0 100 100' preserveAspectRatio='none' zoomAndPan='disable'%3E%3Cpolygon points='0,0 100,0 100,25 50,0 0,25' style='fill:%23f4f4f4' /%3E%3Cpolygon points='0,100 100,100 100,75 50,100 0,75' style='fill:%23f4f4f4' /%3E%3C/svg%3E");
background-position: top left;
background-repeat: no-repeat;
background-size: 100% 100%;
content: "";
display: block;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
#intro .logo img { #intro .logo img {
display: block; display: block;
margin-left: -0.25em; margin-left: -0.25em;
@ -3138,4 +3134,4 @@ body.is-menu-visible #menu {
#menu > * { #menu > * {
padding: 1.5em; padding: 1.5em;
} }
}/*# sourceMappingURL=main.css.map */ }/*# sourceMappingURL=main.css.map */

File diff suppressed because one or more lines are too long

View file

@ -1,19 +1,19 @@
/* Dropdown menu in header */ /* Dropdown menu in header */
#header { #header {
.dropdown { .dropdown {
@include vendor('flex', '1'); @include vendor('flex', '1');
border-left: solid 1px _palette(border); border-left: solid 1px _palette(border);
height: inherit; height: inherit;
line-height: inherit; line-height: inherit;
margin-left: _size(section-spacing-small); margin-left: _size(section-spacing-small);
li { li {
position: relative; position: relative;
float: left; float: left;
text-transform: uppercase; text-transform: uppercase;
font-size: 12pt; font-size: 12pt;
height: inherit; height: inherit;
a { a {
font-family: _font(family-heading); font-family: _font(family-heading);
font-size: 0.8em; font-size: 0.8em;
@ -22,8 +22,8 @@
@include vendor('display', 'block'); @include vendor('display', 'block');
border-bottom: none; border-bottom: none;
padding: 0 0.8rem; padding: 0 0.8rem;
height: inherit; height: inherit;
} }
ul { ul {
position: absolute; position: absolute;
@ -35,9 +35,9 @@
line-height: normal; line-height: normal;
background-color: _palette(bg-dropdown); background-color: _palette(bg-dropdown);
box-shadow: 0 0.05rem 1rem _palette(border-dropdown) !important; box-shadow: 0 0.05rem 1rem _palette(border-dropdown) !important;
li { li {
a { a {
font-family: _font(family-heading); font-family: _font(family-heading);
font-size: 0.8em; font-size: 0.8em;
@ -46,25 +46,25 @@
text-transform: uppercase; text-transform: uppercase;
@include vendor('display', 'block'); @include vendor('display', 'block');
border-bottom: none; border-bottom: none;
padding: 0.3rem 0.8rem; padding: 0.5rem 0.8rem;
line-height: 2.5em; line-height: 1.5em;
&:hover { &:hover {
color: #181818; color: #181818;
} }
} }
ul { ul {
left: 100%; left: 100%;
top: 0; top: 0;
} }
} }
} }
} }
ul { ul {
li { li {
margin-left: 0.5em; margin-left: 0.5em;
padding-left: 0.5em; padding-left: 0.5em;
@ -84,14 +84,14 @@
background-color: _palette(bg); background-color: _palette(bg);
box-shadow: 0 0.05rem 1rem _palette(border-dropdown) !important; box-shadow: 0 0.05rem 1rem _palette(border-dropdown) !important;
} }
} }
} }
} }
@include breakpoint('<=medium') { @include breakpoint('<=medium') {
.dropdown { .dropdown {
display: none; display: none;
} }
} }
@include breakpoint('<=small') { @include breakpoint('<=small') {
.dropdown { .dropdown {

View file

@ -13,6 +13,14 @@
margin: 0 0 _size(section-spacing) 0; margin: 0 0 _size(section-spacing) 0;
position: relative; position: relative;
img {
max-width: 100%;
}
.modular-row.gallery-container {
margin-bottom: 2.75rem;
}
> header { > header {
@include vendor('display', 'flex'); @include vendor('display', 'flex');
border-bottom: solid 1px _palette(border); border-bottom: solid 1px _palette(border);
@ -244,4 +252,4 @@
} }
} }
} }
} }

View file

@ -9,11 +9,12 @@
ul.posts { ul.posts {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin-bottom: 0.25rem;
li { li {
border-top: dotted 1px _palette(border); border-top: dotted 1px _palette(border);
margin: (_size(element-margin) * 0.75) 0 0 0; margin: (_size(element-margin) * 0.125) 0 0 0;
padding: (_size(element-margin) * 0.75) 0 0 0; padding: (_size(element-margin) * 0.125) 0 0 0;
&:first-child { &:first-child {
border-top: 0; border-top: 0;
@ -46,6 +47,7 @@
h3 { h3 {
font-size: 0.7em; font-size: 0.7em;
margin-top: 0.125em; margin-top: 0.125em;
margin-bottom: 0.25em;
} }
.published { .published {
@ -63,4 +65,4 @@
} }
} }
} }
} }

View file

@ -5,23 +5,24 @@
@media screen and (max-width: 980px) { @media screen and (max-width: 980px) {
#sidebarmenu { #sidebarmenu {
display: block; } display: block; }
} }
.menulink { .menulink {
margin: 0; margin: 0;
padding: 0; padding: 0;
margin-top: -0.3rem;
} }
ul.menulink > li, ul.menulink > li,
ul.menulink > li > ul ul.menulink > li > ul
{ {
list-style: none; list-style: none;
font-family: _font(family-heading); font-family: _font(family-heading);
padding: 0.1em 0 0 0; padding: 0.1em 0 0 0;
margin: 0em; margin: 0em;
line-height: 2.3em; line-height: 2.3em;
} }
ul.menulink > li a.tags { ul.menulink > li a.tags {
border: dotted 1px rgba(119, 118, 118, 0.65); border: dotted 1px rgba(119, 118, 118, 0.65);
padding: 0.2em; padding: 0.2em;
@ -74,8 +75,9 @@ ul.subitem_hide {
display:none; display:none;
} }
ul.subitem_hide > li > ul, ul.subitem_hide > li > ul,
ul.subitem_hide > li a span { ul.subitem_hide > li a span
{
-webkit-transition: color 0.2s ease; -webkit-transition: color 0.2s ease;
transition: color 0.2s ease; transition: color 0.2s ease;
margin-bottom: 0; margin-bottom: 0;
@ -85,12 +87,11 @@ ul.subitem_hide > li a span {
ul.subitem_hide > li { ul.subitem_hide > li {
list-style-type: none; list-style-type: none;
margin-left: 0.4em; margin-left: 0.4em;
}
}
.dropdown-btn { .dropdown-btn {
cursor: pointer; cursor: pointer;
} }
.fa-caret-down { .fa-caret-down {
float: right; float: right;
padding-right: 8px; padding-right: 8px;
} }

View file

@ -15,20 +15,6 @@
position: relative; position: relative;
width: 4em; width: 4em;
&:before {
background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" viewBox="0 0 100 100" preserveAspectRatio="none" zoomAndPan="disable"><polygon points="0,0 100,0 100,25 50,0 0,25" style="fill:#{_palette(bg-alt)}" /><polygon points="0,100 100,100 100,75 50,100 0,75" style="fill:#{_palette(bg-alt)}" /></svg>');
background-position: top left;
background-repeat: no-repeat;
background-size: 100% 100%;
content: '';
display: block;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
img { img {
display: block; display: block;
margin-left: -0.25em; margin-left: -0.25em;

View file

@ -25,16 +25,16 @@ dependencies:
form: form:
validation: loose validation: loose
fields: fields:
production-mode: production-mode:
type: toggle type: toggle
label: FUTURE.ADMIN.THEME.PRODUCTION_MODE label: FUTURE.ADMIN.THEME.PRODUCTION_MODE
help: FUTURE.ADMIN.THEME.PRODUCTION_MODE_HELP help: FUTURE.ADMIN.THEME.PRODUCTION_MODE_HELP
highlight: 1
default: 1 default: 1
highlight: 1
options: options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED 0: PLUGIN_ADMIN.DISABLED
1: PLUGIN_ADMIN.ENABLED
validate: validate:
type: bool type: bool
@ -53,7 +53,7 @@ form:
toggleable: true toggleable: true
filesize: 3 filesize: 3
accept: ['image/png', '.ico'] accept: ['image/png', '.ico']
custom_logo: custom_logo:
type: file type: file
label: FUTURE.ADMIN.THEME.CUSTOM_LOGO label: FUTURE.ADMIN.THEME.CUSTOM_LOGO
@ -73,7 +73,7 @@ form:
multiple: false multiple: false
accept: accept:
- image/* - image/*
slogan: slogan:
type: text type: text
label: FUTURE.ADMIN.THEME.SLOGAN label: FUTURE.ADMIN.THEME.SLOGAN
@ -95,7 +95,7 @@ form:
blog_page: blog_page:
type: text type: text
label: FUTURE.ADMIN.THEME.BLOG_PAGE label: FUTURE.ADMIN.THEME.BLOG_PAGE
help: FUTURE.ADMIN.THEME.BLOG_PAGE_DESCRIPTION help: FUTURE.ADMIN.THEME.BLOG_PAGE_HELP
size: medium size: medium
default: '/blog' default: '/blog'
@ -125,7 +125,7 @@ form:
validate: validate:
min: 1 min: 1
max: 5 max: 5
footer_section: footer_section:
type: columns type: columns
fields: fields:
@ -156,7 +156,7 @@ form:
footer.button_url: footer.button_url:
type: text type: text
label: FUTURE.ADMIN.THEME.FOOTER_BUTTON_URL label: FUTURE.ADMIN.THEME.FOOTER_BUTTON_URL
social_icons: social_icons_section:
type: fieldset type: fieldset
collapsible: true collapsible: true
collapsed: true collapsed: true
@ -179,49 +179,48 @@ form:
.icon: .icon:
type: iconpicker type: iconpicker
label: FUTURE.ADMIN.THEME.FOOTER_SOCIALS_ICON_ICON label: FUTURE.ADMIN.THEME.FOOTER_SOCIALS_ICON_ICON
custommenu_options: custommenu_options_section:
type: fieldset type: fieldset
collapsible: true collapsible: true
collapsed: true collapsed: true
icon: bars icon: bars
title: 'Custom Menu Items' title: FUTURE.ADMIN.THEME.CUSTOM_MENU_TITLE
fields: fields:
displaycustommenus.enabled: custommenus.enabled:
type: toggle type: toggle
label: 'Display Custom Menu Items' label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE
help: 'Determines if any defined custom menu entries are displayed in the menubar.' help: FUTURE.ADMIN.THEME.CUSTOM_MENU_ENABLE_HELP
default: 0 default: 0
highlight: 1 highlight: 1
options: options:
'0': No 0: PLUGIN_ADMIN.DISABLED
'1': Yes 1: PLUGIN_ADMIN.ENABLED
validate: validate:
type: bool type: bool
custommenu: custommenu:
name: menu name: menu
type: list type: list
label: 'Custom Menu Items' label: FUTURE.ADMIN.THEME.CUSTOM_MENU_TITLE
fields: fields:
.text: .text:
type: text type: text
label: Text label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_TEXT
description: 'Text label for menu item.' description: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_TEXT_DESCRIPTION
.icon: .icon:
type: text type: text
label: Icon label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_ICON
description: 'Font Awesome icon for menu item.' description: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_ICON_DESCRIPTION
.url: .url:
type: text type: text
label: URL label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_URL
description: 'URL for menu item.' description: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_URL_DESCRIPTION
.target: .target:
type: select type: select
label: Target label: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET
default: _self default: _self
size: medium size: medium
options: options:
_blank: 'Open in a new window' _blank: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_BLANK
_parent: 'Open in the parent frame' _parent: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_PARENT
_top: 'Open in the full body of the window' _self: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_SELF
_self: 'Open in the same frame as clicked' _top: FUTURE.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_TOP

View file

@ -13,7 +13,7 @@ en:
SLOGAN: Slogan SLOGAN: Slogan
BLOG_DEFAULTS: Blog Defaults BLOG_DEFAULTS: Blog Defaults
BLOG_PAGE: Blog Page BLOG_PAGE: Blog Page
BLOG_PAGE_DESCRIPTION: The route to the blog page when working with blog sidebar BLOG_PAGE_HELP: The route to the blog page when working with blog sidebar
MINIPOSTS: Enable Miniposts in Sidebar MINIPOSTS: Enable Miniposts in Sidebar
MINIPOSTS_NUMBER: Miniposts number to show MINIPOSTS_NUMBER: Miniposts number to show
MINIPOSTS_NUMBER_DESCRIPTION: Number of miniposts that will be showed in sidebar MINIPOSTS_NUMBER_DESCRIPTION: Number of miniposts that will be showed in sidebar
@ -29,6 +29,20 @@ en:
FOOTER_SOCIALS_ICON_NAME: Social Name FOOTER_SOCIALS_ICON_NAME: Social Name
FOOTER_SOCIALS_ICON_URL: URL Link to Social FOOTER_SOCIALS_ICON_URL: URL Link to Social
FOOTER_SOCIALS_ICON_ICON: Icon to Social FOOTER_SOCIALS_ICON_ICON: Icon to Social
CUSTOM_MENU_TITLE: 'Custom Menu Items'
CUSTOM_MENU_ENABLE: 'Display Custom Menu Items'
CUSTOM_MENU_ENABLE_HELP: 'Determines if any defined custom menu entries are displayed in the menubar.'
CUSTOM_MENU_ITEM_TEXT: 'Text'
CUSTOM_MENU_ITEM_TEXT_DESCRIPTION: 'Text label for menu item.'
CUSTOM_MENU_ITEM_ICON: 'Icon'
CUSTOM_MENU_ITEM_ICON_DESCRIPTION: 'Font Awesome icon for menu item.'
CUSTOM_MENU_ITEM_URL: 'URL'
CUSTOM_MENU_ITEM_URL_DESCRIPTION: 'URL for menu item.'
CUSTOM_MENU_ITEM_TARGET: 'Target'
CUSTOM_MENU_ITEM_TARGET_BLANK: 'Open in a new window'
CUSTOM_MENU_ITEM_TARGET_PARENT: 'Open in the parent frame'
CUSTOM_MENU_ITEM_TARGET_SELF: 'Open in the same frame as clicked'
CUSTOM_MENU_ITEM_TARGET_TOP: 'Open in the full body of the window'
DEFAULT: DEFAULT:
PRIMARY_IMAGE: Primary image PRIMARY_IMAGE: Primary image
MODULAR: MODULAR:
@ -51,7 +65,6 @@ en:
FEATURES_BUTTON_TEXT: Button Text FEATURES_BUTTON_TEXT: Button Text
FEATURES_BUTTON_URL: Button URL FEATURES_BUTTON_URL: Button URL
FEATURES_BUTTON_URL_TARGET: Open URL in a new window FEATURES_BUTTON_URL_TARGET: Open URL in a new window
BLOG: BLOG:
BLOG_TAB: Blog Config BLOG_TAB: Blog Config
@ -92,7 +105,7 @@ en:
PORTFOLIO_IMAGE_TITLE: Title PORTFOLIO_IMAGE_TITLE: Title
PORTFOLIO_IMAGE_DESCRIPTION: Description PORTFOLIO_IMAGE_DESCRIPTION: Description
PORTFOLIO_IMAGE_THUMB: Thumbnails PORTFOLIO_IMAGE_THUMB: Thumbnails
BLOG: BLOG:
ITEM: ITEM:
CONTINUE_READING: Continue reading... CONTINUE_READING: Continue reading...
@ -120,12 +133,155 @@ en:
HEADLINE: Archives HEADLINE: Archives
SYNDICATE: SYNDICATE:
HEADLINE: Syndicate HEADLINE: Syndicate
LOGIN: Log in LOGIN: Log in
LATESTPOSTS: Latest posts LATESTPOSTS: Latest posts
FEATURED: Featured FEATURED: Featured
PRIVACY: By using this form you agree to our PRIVACY: By using this form you agree our terms
FORM_SUMMARY: Here is the summary of what you wrote to us FORM_SUMMARY: Here is the summary of what you wrote to us
de:
FUTURE:
ADMIN:
THEME:
DROPDOWN_MENU: Dropdown-Menü
PRODUCTION_MODE: Produktionsmodus
PRODUCTION_MODE_HELP: Wenn aktiviert, wird Future mit minimiertem CSS geladen
HEADER_SECTION: Kopfbereich
FAVICON: Wählen Sie Ihr eigenes Favicon
CUSTOM_LOGO: Benutzerdefiniertes Logo
CUSTOM_LOGO_DESCRIPTION: Dieses Logo wird anstelle des Standardlogos `theme://images/grav-logo.svg` verwendet
CUSTOM_LOGO_MOBILE: Benutzerdefiniertes Logo für Mobilgeräte
SLOGAN: Motto
BLOG_DEFAULTS: Blog-Optionen
BLOG_PAGE: Blog-Seite
BLOG_PAGE_HELP: Der Pfad zur Blog-Seite wenn die Blog-Seitenleiste aktiv ist
MINIPOSTS: Aktivieren Sie Miniposts in der Seitenleiste
MINIPOSTS_NUMBER: Anzahl der anzuzeigenden Miniposts
MINIPOSTS_NUMBER_DESCRIPTION: Anzahl der in der Seitenleiste anzuzeigenden Miniposts
MINIPOSTS_CATEGORY: Kategorie für Miniposts
MINIPOSTS_CATEGORY_DESCRIPTION: Legen Sie einen Namen für die Miniposts-Kategorie fest.<br />`Sie müssen diesen Namen in Optionen->Taxonomie->Kategorie einfügen`
FOOTER: Fusszeile
FOOTER_TITLE: Fusszeilentitel
FOOTER_DESCRIPTION: Fusszeilentext
FOOTER_COPYRIGHT: Copyright-Text
FOOTER_BUTTON_TEXT: Schaltflächentext
FOOTER_BUTTON_URL: Schaltflächen-URL
FOOTER_SOCIALS_ICONS: Symbole für soziale Medien
FOOTER_SOCIALS_ICON_NAME: Name des sozialen Netzwerks
FOOTER_SOCIALS_ICON_URL: URL-Link zum sozialen Netzwerk
FOOTER_SOCIALS_ICON_ICON: Symbol des sozialen Netzwerks
CUSTOM_MENU_TITLE: 'Benutzerdefinierte Menüpunkte'
CUSTOM_MENU_ENABLE: 'Benutzerdefinierte Menüpunkte aktivieren'
CUSTOM_MENU_ENABLE_HELP: 'Legt fest, ob definierte benutzerdefinierte Menüeinträge in der Menüleiste angezeigt werden.'
CUSTOM_MENU_ITEM_TEXT: 'Text'
CUSTOM_MENU_ITEM_TEXT_DESCRIPTION: 'Textbeschriftung für Menüpunkt.'
CUSTOM_MENU_ITEM_ICON: 'Symbol'
CUSTOM_MENU_ITEM_ICON_DESCRIPTION: 'FontAwesome-Symbol für Menüelement.'
CUSTOM_MENU_ITEM_URL: 'URL'
CUSTOM_MENU_ITEM_URL_DESCRIPTION: 'URL für Menüpunkt.'
CUSTOM_MENU_ITEM_TARGET: 'Ziel'
CUSTOM_MENU_ITEM_TARGET_BLANK: 'In neuem Fenster öffnen'
CUSTOM_MENU_ITEM_TARGET_PARENT: 'In übergeordnetem Frame öffnen'
CUSTOM_MENU_ITEM_TARGET_SELF: 'In selbem Frame öffnen'
CUSTOM_MENU_ITEM_TARGET_TOP: 'In vollem Fensterkörper öffnen'
DEFAULT:
PRIMARY_IMAGE: Hauptbild
MODULAR:
BANNER:
BANNER_TAB: Banner
BANNER_SUBTITLE: Bildbeschriftung
BANNER_BUTTON_TEXT: Schaltflächentext
BANNER_BUTTON_URL: Schaltflächen-URL
BANNER_IMAGE: Bild
BANNER_IMAGE_DESCRIPTION: Wählen Sie ein Bild aus
FEATURES:
FEATURES_TAB: Funktionen
FEATURES_LAYOUT: Layout
FEATURES_LAYOUT_TWOCOLS: Mittel = 2 / 1 Spalten
FEATURES_LAYOUT_THREECOLS: Standard = 3 / 2 / 1 Spalten
FEATURES_HEADER: Funktionen
FEATURES_IMAGE: Bild
FEATURES_TITLE: Titel
FEATURES_TEXT: Text
FEATURES_BUTTON_TEXT: Schaltflächentext
FEATURES_BUTTON_URL: Schaltflächen-URL
FEATURES_BUTTON_URL_TARGET: Öffnen Sie die URL in einem neuen Fenster
BLOG:
BLOG_TAB: Blog-Einstellungen
BLOG_CONTENT_TITLE: Content Definition
BLOG_CONTENT_ITEMS: Artikel
BLOG_CONTENT_ITEMS_LIMIT: Maximale Artikel-Anzahl
BLOG_CONTENT_ITEMS_ORDER_BY: Sortieren nach
BLOG_CONTENT_ITEMS_ORDER_BY_DATE: Datum
BLOG_CONTENT_ITEMS_ORDER_BY_TITLE: Titel
BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER: Verzeichnis
BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT: Standard
BLOG_CONTENT_ITEMS_ORDER_DIR: Reihenfolge
BLOG_CONTENT_ITEMS_ORDER_DIR_ASC: Aufsteigend
BLOG_CONTENT_ITEMS_ORDER_DIR_DESC: Absteigend
BLOG_CONTENT_ITEMS_PAGINATION: Seitennummerierung
BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS: Taxonomie filtern nach URL
ITEM:
ITEM_TAB: Blog-Artikel
ITEM_OPTIONS: Optionen
ITEM_SUMMARY: Artikelzusammenfassung
ITEM_SUMMARY_ENABLED: Zusammenfassung aktivieren
ITEM_SUMMARY_FORMAT: Zusammenfassungsformat
ITEM_SUMMARY_FORMAT_SHORT: Verwenden Sie das erste Vorkommen des Trennzeichens oder der Größe
ITEM_SUMMARY_FORMAT_LONG: Zusammenfassungsbegrenzer wird ignoriert
ITEM_SUMMARY_SIZE: Größe
ITEM_SUMMARY_DELIMITER: Zusammenfassungsbegrenzer
ITEM_ORDER: Minipost-Reihenfolge
ITEM_SUBTITLE: Untertitel
ITEM_AVATAR: Avatar-Bild
PORTFOLIO:
PORTFOLIO_TAB: Portfolio
PORTFOLIO_TITLE: Portfolio-Bild
PORTFOLIO_LAYOUT: Layout
PORTFOLIO_LAYOUT_TWOCOLS: Mittel = 2 / 1 Spalten
PORTOFOLIO_LAYOUT_THREECOLS: Standard = 3 / 2 / 1 Spalten
PORTFOLIO_IMAGES: Bilder
PORTFOLIO_IMAGE: Bild
PORTFOLIO_IMAGE_TITLE: Titel
PORTFOLIO_IMAGE_DESCRIPTION: Beschreibung
PORTFOLIO_IMAGE_THUMB: Miniaturansicht
BLOG:
ITEM:
CONTINUE_READING: Weiterlesen...
NEXT_POST: Nächster Eintrag
PREV_POST: Vorheriger Eintrag
PAGINATION:
PREVIOUS: Vorherige
NEXT: Nächste
SIDEBAR:
SIMPLE_SEARCH:
HEADLINE: Suche
RELATED_POSTS:
HEADLINE: Verwandte Einträge
RANDOM_ARTICLE:
HEADLINE: Zufälliger Artikel
FEELING_LUCKY: Ich habe Glück!
SOME_TEXT_WIDGET:
HEADLINE: Ein Text-Widget
TAGS:
HEADLINE: Schlagworte
POPULAR_TAGS:
HEADLINE: beliebte Schlagworte
ARCHIVES:
HEADLINE: Letzte Einträge
SYNDICATE:
HEADLINE: Verteilen
LOGIN: Einloggen
LATESTPOSTS: Letzte Beiträge
FEATURED: Hervorgehoben
PRIVACY: Durch die Nutzung dieses Formulars stimmen Sie unseren Bedingungen zu
FORM_SUMMARY: Hier ist die Zusammenfassung dessen, was Sie uns geschrieben haben
es: es:
FUTURE: FUTURE:
ADMIN: ADMIN:
@ -141,7 +297,7 @@ es:
SLOGAN: Slogan SLOGAN: Slogan
BLOG_DEFAULTS: Opciones de Blog BLOG_DEFAULTS: Opciones de Blog
BLOG_PAGE: Página de Blog BLOG_PAGE: Página de Blog
BLOG_PAGE_DESCRIPTION: Ruta de la página de Blog cuando funciona con el blog de barra lateral BLOG_PAGE_HELP: Ruta de la página de Blog cuando funciona con el blog de barra lateral
MINIPOSTS: Activar Miniposts en la barra lateral MINIPOSTS: Activar Miniposts en la barra lateral
MINIPOSTS_NUMBER: Número de miniposts a mostrar MINIPOSTS_NUMBER: Número de miniposts a mostrar
MINIPOSTS_NUMBER_DESCRIPTION: Número de miniposts que se mostrarán en la barra lateral MINIPOSTS_NUMBER_DESCRIPTION: Número de miniposts que se mostrarán en la barra lateral
@ -220,7 +376,6 @@ es:
PORTFOLIO_IMAGE_DESCRIPTION: Descripción PORTFOLIO_IMAGE_DESCRIPTION: Descripción
PORTFOLIO_IMAGE_THUMB: Miniatura PORTFOLIO_IMAGE_THUMB: Miniatura
BLOG: BLOG:
ITEM: ITEM:
CONTINUE_READING: Continuar leyendo... CONTINUE_READING: Continuar leyendo...
@ -229,6 +384,7 @@ es:
PAGINATION: PAGINATION:
PREVIOUS: Anterior PREVIOUS: Anterior
NEXT: Siguiente NEXT: Siguiente
SIDEBAR: SIDEBAR:
SIMPLE_SEARCH: SIMPLE_SEARCH:
HEADLINE: Buscar HEADLINE: Buscar
@ -247,9 +403,10 @@ es:
HEADLINE: Últimas entradas HEADLINE: Últimas entradas
SYNDICATE: SYNDICATE:
HEADLINE: Distribuir HEADLINE: Distribuir
LOGIN: Iniciar sesión LOGIN: Iniciar sesión
LATESTPOSTS: Últimos posts LATESTPOSTS: Últimos posts
FEATURED: Destacados FEATURED: Destacados
PRIVACY: Al usar este formulario estás de acuerdo con nuestra PRIVACY: Al usar este formulario estás de acuerdo con nuestra
FORM_SUMMARY: Aquí está el resumen de lo que nos escribió. FORM_SUMMARY: Aquí está el resumen de lo que nos escribió

View file

@ -1,49 +1,51 @@
{% embed 'partials/base.html.twig' %} {% extends 'partials/base.html.twig' %}
{% set collection = page.collection() %} {% set collection = page.collection() %}
{% set base_url = page.url %} {% set base_url = page.url %}
{% set feed_url = base_url %} {% set feed_url = base_url %}
{% if page.header.show_breadcrumbs is defined %} {% if page.header.show_breadcrumbs is defined %}
{% set show_breadcrumbs = page.header.show_breadcrumbs %} {% set show_breadcrumbs = page.header.show_breadcrumbs %}
{% else %} {% else %}
{% set show_breadcrumbs = true %} {% set show_breadcrumbs = true %}
{% endif %} {% endif %}
{% if page.header.show_pagination is defined %} {% if page.header.show_pagination is defined %}
{% set show_pagination = page.header.show_pagination %} {% set show_pagination = page.header.show_pagination %}
{% else %} {% else %}
{% set show_pagination = true %} {% set show_pagination = true %}
{% endif %} {% endif %}
{% if base_url == '/' %} {% if base_url == '/' %}
{% set base_url = '' %} {% set base_url = '' %}
{% endif %}
{% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.slug %}
{% 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 %}
{#
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
{% endif %}
#}
{% for child in collection %}
{% if child.header.hide is not defined or not child.header.hide %}
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
{% endif %}
{% endfor %}
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
{% endif %} {% endif %}
{% if base_url == base_url_relative %} <section id="footer" class="align-center">
{% set feed_url = base_url~'/'~page.slug %} {% include 'partials/footer.html.twig' %}
{% endif %} </section>
{% endblock %}
{% 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 %}
{% for child in collection %}
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
{% endfor %}
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
{% endif %}
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar_left.html.twig' %}
{% endblock %}
{% endembed %}

View file

@ -0,0 +1,163 @@
{% 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 %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header>
{{ page.content|raw }}
{% set prevYearUrl = page.url ~ '/year:' ~ calendar.prevYear|date('Y') ~ '/month:' ~ calendar.prevYear|date('m') %}
{% set nextYearUrl = page.url ~ '/year:' ~ calendar.nextYear|date('Y') ~ '/month:' ~ calendar.nextYear|date('m') %}
{% set prevMonthUrl = page.url ~ '/year:' ~ calendar.prev.date|date('Y') ~ '/month:' ~ calendar.prev.date|date('m') %}
{% set nextMonthUrl = page.url ~ '/year:' ~ calendar.next.date|date('Y') ~ '/month:' ~ calendar.next.date|date('m') %}
{% set currMonthUrl = page.url ~ '/year:' ~ now|date('Y') ~ '/month:' ~ now|date('m') %}
{% set prevYearTitle = calendar.prevYear|dateTranslate(config.plugins.events.calendar.header) %}
{% set nextYearTitle = calendar.nextYear|dateTranslate(config.plugins.events.calendar.header) %}
{% set prevMonthTitle = calendar.prev.date|dateTranslate(config.plugins.events.calendar.header) %}
{% set nextMonthTitle = calendar.next.date|dateTranslate(config.plugins.events.calendar.header) %}
<div class="calendar-container clear-user-agent-styles">
<section class="calendar-table">
<table class="calendar">
<thead class="calendar-head">
<tr class="calendar-controls">
<th class="calendar-buttons">
<a href="{{ prevYearUrl }}" class="calendar-button" title="{{ prevYearTitle }}">&laquo;</a>
</th>
<th class="calendar-buttons">
<a href="{{ prevMonthUrl }}" class="calendar-button" title="{{ prevMonthTitle }}">&lsaquo;</a>
</th>
<th colspan="3" class="calendar-title">
<a href="{{ currMonthUrl }}" title="{{ 'PLUGIN_EVENTS.CALENDAR.TODAY'|t }}">
{{ calendar.date|dateTranslate(config.plugins.events.calendar.header) }}
</a>
</th>
<th class="calendar-buttons">
<a href="{{ nextMonthUrl }}" class="calendar-button" title="{{ nextMonthTitle }}">&rsaquo;</a>
</th>
<th class="calendar-buttons">
<a href="{{ nextYearUrl }}" class="calendar-button" title="{{ nextYearTitle }}">&raquo;</a>
</th>
</tr>
<tr class="calendar-headings">
{% set fdowOffset = config.plugins.events.calendar.first_dow %}
{% set dayChar = config.plugins.events.calendar.day_char %}
{% if dayChar == 0 %}
{% set dayChar = 1000 %}
{% endif %}
{% for day in range(0,6) %}
<th class="calendar-heading">{{ 'GRAV.DAYS_OF_THE_WEEK'|ta((fdowOffset+day) % 7)|slice(0, dayChar) }}</th>
{% endfor %}
</tr>
</thead>
<tbody class="calendar-body">
<tr class="calendar-line">
{% set startDow = (calendar.date|date('w') +6-fdowOffset) % 7 %}
{% set dow = startDow %}
{% set month = "now"|date("F") %}
{% set year = "now"|date("Y") %}
{% for day in range(1,calendar.daysInMonth) %}
{% if loop.first and startDow != 0 %}
<td colspan="{{ startDow }}"></td>
{% endif %}
<td class="calendar-cell">
<div class="calendar-events">
{% if calendar.events[calendar.year][calendar.month][day] != null %}
{% set title_date = calendar.month ~ '/' ~ day ~ '/' ~ calendar.year %}
<div class="calendar-day">
<a class="calendar-day-link{% if (day == calendar.currentDay) and (month == calendar.date|date("F")) and (year == calendar.date|date("Y")) %} calendar-active{% endif %}"
href="#!" title="{{ title_date|dateTranslate(config.plugins.events.calendar.anchor_title) }}">
{{ day }}
</a>
</div>
{% else %}
<div class="calendar-day{% if (day == calendar.currentDay) and (month == calendar.date|date("F")) and (year == calendar.date|date("Y")) %} calendar-active{% endif %}">
<span>{{ day }}</span>
</div>
{% endif %}
<div class="calendar-day-details">
{% set title_date = calendar.month ~ '/' ~ day ~ '/' ~ calendar.year %}
<h4 class="calendar-day">{{ title_date|dateTranslate(config.plugins.events.calendar.details.title) }}</h4>
<ul class="calendar-day-events">
{% for event in calendar.events[calendar.year][calendar.month][day] %}
{% if event.title %}
<li class="calendar-event">
{% include 'partials/event_calendar_item.html.twig' with { 'event': event } %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</td>
{% if loop.last and dow != 6 %}
<td colspan="{{ 6 - dow }}">&nbsp;</td>
{% endif %}
{% if dow == 6 %}
{% set dow = 0 %}
</tr>
<tr class="calendar-line">
{% else %}
{% set dow = dow + 1 %}
{% endif %}
{% endfor %}
</tr>
</tbody>
</table>
</section>
<section class="calendar-details">
<div class="calendar-day-details">
{% set day = "now"|date("j") %}
{% set month = "now"|date("n") %}
{% set year = "now"|date("Y") %}
<h4 class="calendar-day">{{ "now"|dateTranslate(config.plugins.events.calendar.details.title) }}</h4>
<ul class="calendar-day-events">
{% if calendar.events[year][month][day] == null %}
<li>{{ "PLUGIN_EVENTS.CALENDAR.NO_EVENTS"|t }}</li>
{% else %}
{% for event in calendar.events[year][month][day] %}
{% if event.title %}
<li class="calendar-event">
{% include 'partials/event_calendar_item.html.twig' with { 'event': event } %}
</li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
</div>
<p class="events-view-all">
<a href="{{ base_url_absolute ~ config.plugins.events.events_subpage }}">{{ "PLUGIN_EVENTS.CALENDAR.VIEW_ALL_EVENTS"|t }}</a>
</p>
</section>
</div><!--.calendar-container-->
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

View file

@ -1,34 +1,33 @@
{% extends 'partials/base.html.twig' %} {% 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 %} {% block menu %}
{% include 'partials/sidebar_right.html.twig' %} {% include 'partials/sidebar_right.html.twig' %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<article class="post"> {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
<header> {% include 'partials/breadcrumbs.html.twig' %}
<div class="title"> {% endif %}
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header> <article class="post">
{% if page.header.primaryImage %} <header>
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} <div class="title">
{% else %} <h2>{{ page.header.title }}</h2>
{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} {% if page.header.subtitle %}
{% endif %} <p>{{ page.header.subtitle }}</p>
{{ page.content|raw}} {% endif %}
</div>
</article> </header>
<section id="footer" class="align-center"> {{ page.content|raw }}
{% block footer %} </article>
{% include 'partials/footer.html.twig' %}
{% endblock %} <section id="footer" class="align-center">
</section> {% include 'partials/footer.html.twig' %}
</section>
{% endblock %} {% endblock %}

View file

@ -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 %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header>
{{ page.content|raw}}
<table>
{% for file in page.media.files %}
{% for type in page.header.file_types %}
{% if file.extension == type.extension or type.extension == '*' %}
<tr>
{% include 'partials/download_item.html.twig' with {file: file} %}
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</table>
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

43
templates/event.html.twig Normal file
View file

@ -0,0 +1,43 @@
{% 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 %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
<div class="meta">
<time class="published" itemprop="datePublished" datetime="{{page.date|dateTranslate(grav.config.system.pages.dateformat.long)}}">{{ page.date|dateTranslate(grav.config.system.pages.dateformat.long)}}</time>
</div>
</header>
<div class="event-container">
<section class="event-listing">
{% include 'partials/event_item.html.twig' with { 'event': page.parent, 'single': true } %}
</section>
{% include 'partials/events_sidebar.html.twig' with { 'page': page.parent } %}
</div>
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

View file

@ -0,0 +1,51 @@
{% extends 'partials/base.html.twig' %}
{% set collection = page.collection() %}
{% 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 %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header>
{{ page.content|raw }}
<div class="events-container">
<section class="events-listing">
{% if collection|length != 0 %}
{% for event in collection %}
{% include 'partials/event_item.html.twig' with { 'page': event, 'single': false } %}
{% endfor %}
{% else %}
<h3>{{ "PLUGIN_EVENTS.EVENTS.NO_EVENTS_TITLE"|t }}</h3>
<p>{{ ("PLUGIN_EVENTS.EVENTS.NO_EVENTS_CONTENT"|t(uri.param('category')))|markdown }}</p>
{% endif %}
</section>
</div>
</article>
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
{% endif %}
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

View file

@ -2,10 +2,10 @@
{% block content %} {% block content %}
<article class="post"> <article class="post">
<div class="title"> <div class="title">
<h2>{{ form.message }}</h2> <h2>{{ form.message }}</h2>
</div> </div>
<div class="meta"> <div class="meta">
<time class="published" datetime="{{form.date|date("Y-m-d")}}">{{ form.date|date("M j, Y")}}</time> <time class="published" datetime="{{form.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ form.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
</div> </div>
</header> </header>
<p>{{'FUTURE.FORM_SUMMARY'|t}}</p> <p>{{'FUTURE.FORM_SUMMARY'|t}}</p>

View file

@ -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 %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header>
{{ page.content|raw}}
<section>
<div class="modular-row gallery-container {{ page.header.class }}">
{{ unite_gallery(page.media.images) }}
</div>
</section>
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

View file

@ -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 %}
<article class="post">
<header>
<div class="title">
<h2>{{ page.header.title }}</h2>
{% if page.header.subtitle %}
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header>
{{ page.content|raw}}
{% include "forms/form.html.twig" %}
<script>
$(function() {
var currentPage = 0;
$(document).on('click tap', '.js__load-more', function(event) {
$.getJSON(window.location + '/page:' + (currentPage + 1))
.success(function(response) {
currentPage = parseInt(response.page);
response.messages.forEach(function(message) {
$('.js__messages-container').append('<tr>' +
'<td>' + message.text + '<br />{{'PLUGIN_GUESTBOOK.WRITTEN_ON'|t}} ' + message.date + ' {{'PLUGIN_GUESTBOOK.BY'|t}} ' + message.author + '</td></tr>');
});
var totalRetrieved = response.itemsPerPage * (parseInt(response.page) + 1);
$('.totalRetrieved').html(totalRetrieved);
$('.totalAvailable').html(response.totalAvailable);
if (totalRetrieved >= response.totalAvailable) {
$('.totalRetrieved').html($('.totalAvailable').html());
$('.js__load-more').hide();
}
})
.error(function() {
alert('Unexpected error');
});
});
});
</script>
{% block item %}
{% if grav.twig.guestbookMessages|length %}
<h2>{{'PLUGIN_GUESTBOOK.MESSAGES'|t}}</h2>
{% 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 %}
<form>
<div class="buttons">
<button type="button" class="button js__load-more">
Load more
</button>
</div>
</form>
{% endif %}
{% endblock %}
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}

View file

@ -1,31 +1,23 @@
{% embed 'partials/base.html.twig' %} {% extends 'partials/base.html.twig' %}
{% set base_url = page.parent.url %}
{% set feed_url = base_url %}
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
{% if base_url == '/' %} {% if page.header.show_breadcrumbs is defined %}
{% set base_url = '' %} {% 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 %} {% endif %}
{% if base_url == base_url_relative %} {% include 'partials/blog_item.html.twig' with {'truncate':false} %}
{% set feed_url = base_url~'/'~page.parent.slug %}
{% endif %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
{% endblock %}
{% block content %} <section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} </section>
{% include 'partials/breadcrumbs.html.twig' %} {% endblock %}
{% endif %}
{% include 'partials/blog_item.html.twig' with {'truncate':false} %}
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endblock %}
{% endembed %}

View file

@ -1,8 +1,8 @@
<section> <section>
<ul class="posts"> <ul class="posts">
{% for p in page.find(theme_config.blog_page).children.order('date', 'desc').slice(0, 5) %} {% for p in page.find(theme_config.blog_page).children.order('date', 'desc').slice(0, 5) %}
{% if p.header.primaryImage %} {% if p.header.primaryImage %}
{% set bannerimage = p.media[p.header.primaryImage]%} {% set bannerimage = p.media[p.header.primaryImage]%}
{% else %} {% else %}
{% set bannerimage = p.media.images|first %} {% set bannerimage = p.media.images|first %}
@ -11,7 +11,7 @@
<article> <article>
<header> <header>
<h3><a href="{{p.url}}">{{ p.title }}</a></h3> <h3><a href="{{p.url}}">{{ p.title }}</a></h3>
<time class="published" datetime="{{p.date|date("Y-m-d")}}">{{ p.date|date("M j, Y")}}</time> <time class="published" datetime="{{p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
</header> </header>
<a href="{{p.url}}" class="image"> <a href="{{p.url}}" class="image">
{{ bannerimage.cropZoom(64,64).quality(60).loading('lazy').html('',p.title)|raw }} {{ bannerimage.cropZoom(64,64).quality(60).loading('lazy').html('',p.title)|raw }}

View file

@ -1,93 +1,87 @@
<article class="post" itemprop="liveBlogUpdate" itemscope itemtype="http://schema.org/BlogPosting"> <article class="post" itemprop="liveBlogUpdate" itemscope itemtype="http://schema.org/BlogPosting">
{% if page.header.author %} {% if page.header.author %}
{% set author = page.header.author %} {% set author = page.header.author %}
{% else %} {% else %}
{% set author = page.header.taxonomy.author[0] %} {% set author = page.header.taxonomy.author[0] %}
{% endif %} {% endif %}
{% if author %} {% if author %}
{% set avatar = author|replace(' ', '-')|lower %} {% set avatar = author|replace(' ', '-')|lower %}
{% endif %} {% endif %}
<header> <header>
<div class="title"> <div class="title">
{% if page.header.link %} {% if page.header.link %}
<h2 itemprop="headline"> <h2 itemprop="headline">
{% if page.header.continue_link is not sameas(false) %} {% if page.header.continue_link is not sameas(false) %}
<a href="{{ page.url }}"></a> <a href="{{ page.url }}"></a>
{% endif %}
<a href="{{ page.header.link }}">{{ page.title }}</a>
</h2>
{% else %}
<h2 itemprop="headline"><a href="{{ page.url }}">{{ page.title }}</a></h2>
{% endif %}
{% if page.header.subtitle %}
<p itemprop="alternativeHeadline">{{ page.header.subtitle|raw }}</p>
{% endif %} {% endif %}
<a href="{{ page.header.link }}">{{ page.title }}</a>
</h2>
{% else %}
<h2 itemprop="headline"><a href="{{ page.url }}">{{ page.title }}</a></h2>
{% endif %}
{% if page.header.subtitle %}
<p itemprop="alternativeHeadline">{{ page.header.subtitle|raw }}</p>
{% endif %}
</div> </div>
<div class="meta"> <div class="meta">
<time class="published" itemprop="datePublished" datetime="{{page.date|date("Y-m-d")}}">{{ page.date|date("M j, Y")}}</time> <time class="published" itemprop="datePublished" datetime="{{page.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ page.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
{% if author %} {% if author %}
<a href="{{ base_url }}/author{{ config.system.param_sep }}{{ author }}" itemprop="keywords" class="author">{{ tag }}<span class="name" rel="author">{{ author }}</span>{% if page.header.avatarImage %}<img src="{{ page.media[page.header.avatarImage].url|e}}" alt="{{ author }}" />{% endif %}</a> <a href="{{ base_url }}/author{{ config.system.param_sep }}{{ author }}" itemprop="keywords" class="author">{{ tag }}<span class="name" rel="author">{{ author }}</span>{% if page.header.avatarImage %}<img src="{{ page.media[page.header.avatarImage].url|e}}" alt="{{ author }}" />{% endif %}</a>
{% endif %} {% endif %}
</div> </div>
</header> </header>
{% if page.header.primaryImage %} {% if page.header.primaryImage %}
<a href="{{ page.url }}" class="image featured">{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a> <a href="{{ page.url }}" class="image featured">{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title)|raw }}</a>
{% else %} {% elseif page.media.images %}
<a href="{{ page.url }}" class="image featured">{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a> <a href="{{ page.url }}" class="image featured">{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title)|raw }}</a>
{% endif %} {% endif %}
{% if page.header.blog_hide_body is not defined or not page.header.blog_hide_body %}
<div itemprop="articleBody"> <div itemprop="articleBody">
{% if page.header.continue_link is sameas(false) %}
{% if page.header.continue_link is sameas(false) %} {{ page.content|raw }}
{{ page.content|raw }} {% if not truncate %}
{% if not truncate %} {% set show_prev_next = true %}
{% set show_prev_next = true %} {% endif %}
{% endif %} {% elseif truncate and page.summary != page.content %}
{% elseif truncate and page.summary != page.content %} {{ page.summary|raw }}
{{ page.summary|raw }} {% elseif truncate %}
{% elseif truncate %} {{ page.content|truncate(550)|raw }}
{{ page.content|truncate(550)|raw }} {% else %}
{% else %} {{ page.content|raw }}
{{ page.content|raw }} {% set show_prev_next = true %}
{% set show_prev_next = true %} {% endif %}
{% endif %} </div>
{% endif %}
</div> <footer>
<footer>
<ul class="actions"> <ul class="actions">
{% if truncate and page.summary != page.content %} {% if truncate and page.summary != page.content %}
<li><a href="{{ page.url }}" class="button">{{'FUTURE.BLOG.ITEM.CONTINUE_READING'|t}}</a></li> <li><a href="{{ page.url }}" class="button">{{'FUTURE.BLOG.ITEM.CONTINUE_READING'|t}}</a></li>
{% elseif truncate %} {% elseif truncate %}
<li><a href="{{ page.url }}" class="button">{{'FUTURE.BLOG.ITEM.CONTINUE_READING'|t}}</a></li> <li><a href="{{ page.url }}" class="button">{{'FUTURE.BLOG.ITEM.CONTINUE_READING'|t}}</a></li>
{% endif %} {% endif %}
{% if show_prev_next %} {% if show_prev_next %}
{% if not page.isLast %} {% if not page.isLast %}
<li><a class="button" href="{{ page.prevSibling.url }}"><i class="fa fa-chevron-left"></i> {{'FUTURE.BLOG.ITEM.PREV_POST'|t}}</a></li> <li><a class="button" href="{{ page.prevSibling.url }}"><i class="fa fa-chevron-left"></i> {{'FUTURE.BLOG.ITEM.PREV_POST'|t}}</a></li>
{% endif %} {% endif %}
{% if not page.isFirst %} {% if not page.isFirst %}
<li><a class="button" href="{{ page.nextSibling.url }}">{{'FUTURE.BLOG.ITEM.NEXT_POST'|t}} <i class="fa fa-chevron-right"></i></a></li> <li><a class="button" href="{{ page.nextSibling.url }}">{{'FUTURE.BLOG.ITEM.NEXT_POST'|t}} <i class="fa fa-chevron-right"></i></a></li>
{% endif %} {% endif %}
{% endif %} {% endif %}
</ul> </ul>
<ul class="stats"> <ul class="stats">
{% if page.taxonomy.tag %} {% if page.taxonomy.tag %}
{% for tag in page.taxonomy.tag %} {% for tag in page.taxonomy.tag %}
<li><a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag }}" itemprop="keywords">{{ tag }}</a></li> <li><a href="{{ base_url }}/tag{{ config.system.param_sep }}{{ tag }}" itemprop="keywords">{{ tag }}</a></li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<li><a href="https://twitter.com/share" data-url="{{ page.url(true) }}" data-text="{{ page.title }}" class="icon brands fa-twitter"> <li><a href="https://twitter.com/share" data-url="{{ page.url(true) }}" data-text="{{ page.title }}" class="icon brands fa-twitter"></a></li>
</a></li> <li><a href="http://www.facebook.com/sharer.php?u={{ page.url(true) }}" class="icon brands fa-facebook"></a></li>
<li><a href="http://www.facebook.com/sharer.php?u={{ page.url(true) }}" class="icon brands fa-facebook">
</a></li>
</ul> </ul>
</footer> </footer>
</article> </article>

View file

@ -0,0 +1,21 @@
{% set size = file.size/1024 %}
{% set unit = "kB" %}
{% if size > 1023 %}
{% set size = size/1024 %}
{% set unit = "MB" %}
{% endif %}
<td style="text-align: right; vertical-align: middle;">
<a href="{{ file.url }}">
<!--<ul class="icons">
<li><i class="fa fa-file-pdf"></i></li>
</ul>-->
<img src="https://github.com/r00t0vi4/mime-icons-packs/raw/master/mime-icons-pack-1/src/{{file.extension}}.png">
</a>
</td>
<td style="text-align: left; vertical-align: middle;">
<a href="{{ file.url }}">
{{ file.filename }}<br/>
{{ size|number_format(2, '.', ',') }}{{ unit }} |
{{ file.modified|dateTranslate(grav.config.system.pages.dateformat.long) }}
</a>
</td>

View file

@ -0,0 +1,62 @@
<article class="event-article">
<header class="event-header">
{% set image = page.media.images|first %}
{% if image != null %}
{{ image.cropZoom(960,280).html }}
{% endif %}
</header>
<section class="event">
<div class="event-left-column"> {# date and time #}
{% if single == true %} {# individual content page #}
{% else %} {# main listing page #}
<time class="event-datetime" datetime="{{ page.date|date("c") }}">
<span class="event-day">{{ page.header.event.start|dateTranslate(config.plugins.events.event_item.day) }}</span>
<span class="event-month">{{ page.header.event.start|dateTranslate(config.plugins.events.event_item.month) }}</span>
<span class="event-year">{{ page.header.event.start|date("Y") }}</span>
<span class="event-time">
{{ page.header.event.start|dateTranslate(config.plugins.events.event_item.time) }}{{ " - " }}{{ page.header.event.end|dateTranslate(config.plugins.events.event_item.time) }}
</span>
</time>
{% endif %}
</div>
<div class="event-right-column"> {# title and content #}
{% if single == true %} {# individual content page #}
{% if (config.plugins.events.event_meta.display_location) and (page.header.event.location is not empty) %}
<h3 class="event-location"><span class="location-pin"></span>{{ page.header.event.location }}</h3>
{% endif %}
{% if page.content %}
<div class="event-content">{{ page.content|raw }}</div>
{% else %}
{{ "PLUGIN_EVENTS.EVENTS.NO_MORE_INFORMATION"|t }}
{% endif %}
{% include 'partials/event_meta.html.twig' with { 'page': page } %}
{% else %} {# main listing page #}
{# {% if page.content %} #}
<h2 class="event-title"><a href="{{ page.url }}">{{ page.title }}</a></h2>
{#} {% else %}
<h2 class="event-title">{{ page.title }}</h2>
{% endif %} #}
{% if (config.plugins.events.event_meta.display_location) and (page.header.event.location is not empty) %}
<h3 class="event-location"><span class="location-pin"></span>{{ page.header.event.location }}</h3>
{% endif %}
{% if page.content %}
<span class="event-read-more"><a href="{{ page.url }}">{{ "PLUGIN_EVENTS.EVENTS.MORE_INFORMATION"|t }}</a></span>
{% endif %}
{% endif %}
{% if page.taxonomy.category and config.plugins.events.event_sidebar.enable_categories %}
<div class="event-categories">
<span class="event-tags">
{% for category in page.taxonomy.category %}
<a href="{{ event.url|rtrim('/') }}/category{{ config.system.param_sep }}{{ category }}">{{ category }}</a>
{% endfor %}
</span>
</div>
{% endif %}
</div>
</section>
</article>
<article class="event-separator"></article>

View file

@ -0,0 +1,21 @@
{# based on future2021 blog_item.html.twig and heavily stripped down #}
<article class="post" itemprop="liveBlogUpdate" itemscope itemtype="http://schema.org/BlogPosting">
<header>
<div class="title">
<h2 itemprop="headline">{{ page.title }}</h2>
</div>
<div class="meta">
<time class="published" itemprop="datePublished" datetime="{{page.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ page.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
</div>
</header>
<div itemprop="articleBody">
{{ page.content|raw }}
</div>
<footer>
<ul class="stats"> {# for bottom spacing #}
</ul>
</footer>
</article>

View file

@ -6,16 +6,16 @@
<h3>{{ 'FUTURE.FEATURED'|t }}</h3> <h3>{{ 'FUTURE.FEATURED'|t }}</h3>
</header> </header>
<div class="mini-posts"> <div class="mini-posts">
{% for p in page.evaluate({'@taxonomy.category':miniposts_category}).order('header.order', 'asc').slice(0,miniposts_number) %} {% for p in page.evaluate({'@taxonomy.category':miniposts_category}).order('header.order', 'asc').slice(0,miniposts_number) %}
<article class="mini-post"> <article class="mini-post">
<header> <header>
<h3><a href="{{ p.url }}">{{ p.title }}</a></h3> <h3><a href="{{ p.url }}">{{ p.title }}</a></h3>
<time class="published" datetime="2015-10-20">{{ p.date|date("M j, Y")}}</time> <time class="published" datetime="{{p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
<a href="{{ p.url }}" class="author"><img src="{{ p.media[p.header.avatarImage].url}}" alt="" /></a> <a href="{{ p.url }}" class="author"><img src="{{ p.media[p.header.avatarImage].url}}" alt="" /></a>
</header> </header>
<a href="{{ p.url }}" class="image"> <a href="{{ p.url }}" class="image">
{% if p.header.primaryImage %} {% if p.header.primaryImage %}
{{ p.media[p.header.primaryImage].cropZoom(1038,437).loading('lazy').html('',p.title)|raw}} {{ p.media[p.header.primaryImage].cropZoom(1038,437).loading('lazy').html('',p.title)|raw}}
{% else %} {% else %}
@ -23,7 +23,7 @@
{% endif %} {% endif %}
</a> </a>
</article> </article>
{% endfor %} {% endfor %}
</div> </div>
</section> </section>

View file

@ -3,7 +3,7 @@
<ul> <ul>
{{ macros.nav_loop(pages) }} {{ macros.nav_loop(pages) }}
{% if theme_var('displaycustommenus.enabled') %} {% if theme_var('custommenus.enabled') %}
{% for mitem in theme_var('custommenu') %} {% for mitem in theme_var('custommenu') %}
<li> <li>
<a href="{{ mitem.url }}" target="{{ mitem.target }}"> <a href="{{ mitem.url }}" target="{{ mitem.target }}">

View file

@ -1,4 +1,4 @@
{% block menu_navigation %} {% block menu_navigation %}
{% macro loop(page) %} {% macro loop(page) %}
{% for p in page.children.visible %} {% for p in page.children.visible %}
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
@ -24,7 +24,7 @@
{% endmacro %} {% endmacro %}
<ul class="menulink"> <ul class="menulink">
{{ _self.loop(pages) }} {{ _self.loop(pages) }}
{% if theme_var('displaycustommenus.enabled') %} {% if theme_var('custommenus.enabled') %}
{% for mitem in theme_var('menu') %} {% for mitem in theme_var('menu') %}
<li> <li>
<a href="{{ mitem.url }}" target="{{ mitem.target }}"> <a href="{{ mitem.url }}" target="{{ mitem.target }}">
@ -36,5 +36,5 @@
</li> </li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul> </ul>
{% endblock %} {% endblock %}

View file

@ -37,7 +37,7 @@
{% if config.plugins.login.enabled %} {% if config.plugins.login.enabled %}
<section> <section>
<ul class="actions stacked"> <ul class="actions stacked">
<li><a href="#" class="button large fit">{{ 'FUTURE.LOGIN'|t }}</a></li> <li><a href="{{ base_url }}/admin" class="button large fit">{{ 'FUTURE.LOGIN'|t }}</a></li>
</ul> </ul>
</section> </section>
{% endif %} {% endif %}
@ -53,5 +53,5 @@
$(".dropdown-btn").click(function(){ $(".dropdown-btn").click(function(){
$(this).next(".subitem_hide").slideToggle(); $(this).next(".subitem_hide").slideToggle();
}); });
{% endif %} {% endif %}
</script> </script>

View file

@ -13,7 +13,7 @@
</div> </div>
<div class="search-details"> <div class="search-details">
<span class="search-date">{{ page.date|date(config.system.pages.dateformat.short) }}</span> <span class="search-date">{{ page.date|dateTranslate(config.system.pages.dateformat.short) }}</span>
</div> </div>
<p>{{ page.summary|truncate(200)|raw }}</p> <p>{{ page.summary|truncate(200)|raw }}</p>