-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add WhatsApp sharer button (#651) * Add WhatsApp sharer button * Extend GitHub workflow for all dev branches * Fix coding standard for new sharer * Avoid using pixabay images in templates and Sunflower instances. (#708) * Replace background image of block next-events * Remove sample picture import from sunflower-theme.de * Update documentation about free image sources * Fix font im backend editor * Update templates not to use pixabay images as default * Fix person and homepage template * Add optional field for contact-form receiver email (#709) * Send copy of email in contact-form to sender if desired (#711) * Fix whole day events (imported and manual edited) (#714) * Enhance contact form block: show only valid options (#716) * Add option to show latest posts with 2 or 3 columns (#715) * pattern for a linkseite for social media (#710) * add the pattern of linkseite * Fix block errors * update linkseite social icons + picture * add doku to blocks * add the changes of 2.2 in changelog * Make linkseite template full-width and with round image * Fix link to changelog in docu --------- Co-authored-by: Alexander Bigga <[email protected]> * Show websitename in page metadata to enhance SEO (search engine optimization) (#718) --------- Co-authored-by: Hanna H. <[email protected]>
- Loading branch information
Showing
48 changed files
with
781 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- main | ||
pull_request: | ||
branches: | ||
- dev | ||
- dev* | ||
- main | ||
|
||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
/* eslint-disable no-undef */ | ||
jQuery( function ( $ ) { | ||
$.datetimepicker.setLocale( 'de' ); | ||
|
||
const isWholeDay = $( 'input[name="_sunflower_event_whole_day"]' ).is( | ||
':checked' | ||
); | ||
|
||
if ( isWholeDay === true ) { | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_from"]' | ||
).datetimepicker( { | ||
timepicker: false, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y', | ||
} ); | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).datetimepicker( { | ||
timepicker: false, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y', | ||
onShow() { | ||
this.setOptions( { | ||
value: $( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).val() | ||
? $( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).val() | ||
: $( | ||
'input.datetimepicker[name="_sunflower_event_from"]' | ||
).val(), | ||
} ); | ||
}, | ||
} ); | ||
} else { | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_from"]' | ||
).datetimepicker( { | ||
timepicker: true, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y H:i', | ||
} ); | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).datetimepicker( { | ||
timepicker: true, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y H:i', | ||
onShow() { | ||
this.setOptions( { | ||
value: $( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).val() | ||
? $( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).val() | ||
: $( | ||
'input.datetimepicker[name="_sunflower_event_from"]' | ||
).val(), | ||
} ); | ||
}, | ||
} ); | ||
} | ||
|
||
$( 'input[name="_sunflower_event_whole_day"]' ).change( function () { | ||
if ( this.checked ) { | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_from"]' | ||
).datetimepicker( { | ||
timepicker: false, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y', | ||
} ); | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).datetimepicker( { | ||
timepicker: false, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y', | ||
} ); | ||
|
||
const from = $( | ||
'input.datetimepicker[name="_sunflower_event_from"]' | ||
) | ||
.val() | ||
.substring( 0, 10 ); | ||
const until = $( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
) | ||
.val() | ||
.substring( 0, 10 ); | ||
|
||
$( 'input.datetimepicker[name="_sunflower_event_from"]' ).val( | ||
from | ||
); | ||
$( 'input.datetimepicker[name="_sunflower_event_until"]' ).val( | ||
until | ||
); | ||
} else { | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_from"]' | ||
).datetimepicker( { | ||
timepicker: true, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y H:i', | ||
} ); | ||
$( | ||
'input.datetimepicker[name="_sunflower_event_until"]' | ||
).datetimepicker( { | ||
timepicker: true, | ||
dayOfWeekStart: 1, | ||
format: 'd.m.Y H:i', | ||
} ); | ||
} | ||
} ); | ||
} ); | ||
/* eslint-enable no-undef */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<!-- wp:columns --> | ||
<!-- wp:columns {"metadata":{"categories":["sunflower-elemente"],"patternName":"sunflower/person-3","name":"Person-3"}} --> | ||
<div class="wp-block-columns"><!-- wp:column {"className":"mb-md-4"} --> | ||
<div class="wp-block-column mb-md-4"><!-- wp:columns --> | ||
<div class="wp-block-columns"><!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:media-text {"align":"wide","mediaId":152,"mediaLink":"http://localhost/demo/?attachment_id=152","mediaType":"image","className":"person has-shadow"} --> | ||
<div class="wp-block-media-text alignwide is-stacked-on-mobile person has-shadow"><figure class="wp-block-media-text__media"><img src="https://sunflower-theme.de/demo/wp-content/uploads/sites/6/2021/01/sunflower-flower-summer-blossom-4298808-1024x682.jpg" alt="Sunflower Flower Summer Blossom - Bru-nO / Pixabay" class="wp-image-152 size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Inhalt…","className":"person-name"} --> | ||
<div class="wp-block-column"><!-- wp:media-text {"align":"wide","mediaType":"image","className":"person has-shadow"} --> | ||
<div class="wp-block-media-text alignwide is-stacked-on-mobile person has-shadow"><figure class="wp-block-media-text__media"><img src="https://sunflower-theme.de/demo/wp-content/uploads/sites/6/2024/08/Soncnica_-_Sunflower_-_Helianthus_annuus-1024x768.jpg" alt="Eine gelbe Sonnenblume vor blauem Himmel."/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Inhalt…","className":"person-name"} --> | ||
<p class="person-name">Vorname Nachname-Doppelname</p> | ||
<!-- /wp:paragraph --> | ||
|
||
|
@@ -15,7 +15,7 @@ | |
<p class="person-mail no-link"><a href="mailto:[email protected]">[email protected]</a></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:group {"className":"d-flex p-0"} --> | ||
<!-- wp:group {"className":"d-flex p-0","layout":{"type":"flex","flexWrap":"wrap"}} --> | ||
<div class="wp-block-group d-flex p-0"><!-- wp:sunflower/meta-data {"icon":"fab fa-x-twitter"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-x-twitter"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
@@ -28,6 +28,10 @@ | |
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-facebook-f"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
||
<!-- wp:sunflower/meta-data {"icon":"fab fa-whatsapp"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-whatsapp"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
||
<!-- wp:sunflower/meta-data {"icon":"fab fa-threads"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-threads"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
@@ -56,8 +60,8 @@ | |
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:media-text {"align":"wide","mediaId":152,"mediaLink":"http://localhost/demo/?attachment_id=152","mediaType":"image","className":"person has-shadow"} --> | ||
<div class="wp-block-media-text alignwide is-stacked-on-mobile person has-shadow"><figure class="wp-block-media-text__media"><img src="https://sunflower-theme.de/demo/wp-content/uploads/sites/6/2021/01/sunflower-flower-summer-blossom-4298808-1024x682.jpg" alt="Sunflower Flower Summer Blossom - Bru-nO / Pixabay" class="wp-image-152 size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Inhalt…","className":"person-name"} --> | ||
<div class="wp-block-column"><!-- wp:media-text {"align":"wide","mediaType":"image","className":"person has-shadow"} --> | ||
<div class="wp-block-media-text alignwide is-stacked-on-mobile person has-shadow"><figure class="wp-block-media-text__media"><img src="https://sunflower-theme.de/demo/wp-content/uploads/sites/6/2024/08/Soncnica_-_Sunflower_-_Helianthus_annuus-1024x768.jpg" alt="Eine gelbe Sonnenblume vor blauem Himmel."/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Inhalt…","className":"person-name"} --> | ||
<p class="person-name">Vorname Nachname</p> | ||
<!-- /wp:paragraph --> | ||
|
||
|
@@ -69,7 +73,7 @@ | |
<p class="person-mail no-link"><a href="mailto:[email protected]">[email protected]</a></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:group {"className":"d-flex p-0"} --> | ||
<!-- wp:group {"className":"d-flex p-0","layout":{"type":"flex","flexWrap":"wrap"}} --> | ||
<div class="wp-block-group d-flex p-0"><!-- wp:sunflower/meta-data {"icon":"fab fa-x-twitter"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-x-twitter"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
@@ -82,6 +86,10 @@ | |
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-facebook-f"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
||
<!-- wp:sunflower/meta-data {"icon":"fab fa-whatsapp"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-whatsapp"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
||
<!-- wp:sunflower/meta-data {"icon":"fab fa-threads"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-threads"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
@@ -110,8 +118,8 @@ | |
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:media-text {"align":"wide","mediaId":152,"mediaLink":"http://localhost/demo/?attachment_id=152","mediaType":"image","className":"person has-shadow"} --> | ||
<div class="wp-block-media-text alignwide is-stacked-on-mobile person has-shadow"><figure class="wp-block-media-text__media"><img src="https://sunflower-theme.de/demo/wp-content/uploads/sites/6/2021/01/sunflower-flower-summer-blossom-4298808-1024x682.jpg" alt="Sunflower Flower Summer Blossom - Bru-nO / Pixabay" class="wp-image-152 size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Inhalt…","className":"person-name"} --> | ||
<div class="wp-block-column"><!-- wp:media-text {"align":"wide","mediaType":"image","className":"person has-shadow"} --> | ||
<div class="wp-block-media-text alignwide is-stacked-on-mobile person has-shadow"><figure class="wp-block-media-text__media"><img src="https://sunflower-theme.de/demo/wp-content/uploads/sites/6/2024/08/Soncnica_-_Sunflower_-_Helianthus_annuus-1024x768.jpg" alt="Eine gelbe Sonnenblume vor blauem Himmel."/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Inhalt…","className":"person-name"} --> | ||
<p class="person-name">Vorname Nachname</p> | ||
<!-- /wp:paragraph --> | ||
|
||
|
@@ -123,7 +131,7 @@ | |
<p class="person-mail no-link"><a href="mailto:[email protected]">[email protected]</a></p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:group {"className":"d-flex p-0"} --> | ||
<!-- wp:group {"className":"d-flex p-0","layout":{"type":"flex","flexWrap":"wrap"}} --> | ||
<div class="wp-block-group d-flex p-0"><!-- wp:sunflower/meta-data {"icon":"fab fa-x-twitter"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-x-twitter"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
@@ -136,6 +144,10 @@ | |
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-facebook-f"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
||
<!-- wp:sunflower/meta-data {"icon":"fab fa-whatsapp"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-whatsapp"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
||
<!-- wp:sunflower/meta-data {"icon":"fab fa-threads"} --> | ||
<div class="wp-block-sunflower-meta-data"><a href="" target="_blank" rel="noopener noreferrer"><i class="fab fa-threads"></i></a></div> | ||
<!-- /wp:sunflower/meta-data --> | ||
|
Oops, something went wrong.