Skip to content

Commit b9a7bd4

Browse files
committed
Fix language labels in JavaScript code breaking maps marker
1 parent 2208a40 commit b9a7bd4

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

archive-sunflower_event.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,6 @@
210210
true
211211
);
212212

213-
wp_localize_script(
214-
'filter-custom',
215-
'sunflower',
216-
array(
217-
'texts' => array(
218-
'icscalendar' => __( 'calendar in ics-format', 'sunflower' ),
219-
),
220-
)
221-
);
222-
223213
?>
224214

225215
<?php

assets/js/event-filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jQuery( '.filter-button-group' ).on( 'click', 'button', function () {
2424
return href.split( '?' )[ 0 ] + '?' + params.toString();
2525
} )
2626
.text( function () {
27-
if ( eventTag ) {
27+
if ( eventTag && eventTag !== 'map' ) {
2828
return (
2929
sunflower.texts.icscalendar +
3030
' (' +

functions/s.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ function sunflower_scripts() {
168168
'theme_url' => get_template_directory_uri(),
169169
'maps_marker' => sunflower_parent_or_child( 'assets/img/marker.png' ),
170170
'texts' => array(
171-
'readmore' => __( 'Continue reading', 'sunflower' ),
171+
'readmore' => __( 'Continue reading', 'sunflower' ),
172+
'icscalendar' => __( 'calendar in ics-format', 'sunflower' ),
172173
),
173174
)
174175
);

0 commit comments

Comments
 (0)