Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ccd8868e
authored
2023-11-21 14:26:53 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
3c85cdf4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
wp-content/themes/msf-child/blocks/carousel-mixed/carousel.php
wp-content/themes/msf-child/inc/extras.php
wp-content/themes/msf-child/blocks/carousel-mixed/carousel.php
View file @
ccd8868
...
...
@@ -102,7 +102,7 @@ $ran = getName();
if
(
!
empty
(
$image
))
:
?>
<img
src=
"
<?php
echo
esc_url
(
$image
[
"url"
]);
?>
"
alt=
"
<?php
echo
esc_attr
(
$image
[
"alt"
]);
?>
"
loading=
"eager"
/>
<?php
endif
;
?>
<img
src=
"
<?php
echo
$image
;
?>
"
alt=
"
<?php
echo
$img_alt
;
?>
"
loading=
"eager"
>
</div>
<div
class=
"promo-text"
>
<?php
echo
get_sub_field
(
"title"
);
?>
</div>
</a>
...
...
wp-content/themes/msf-child/inc/extras.php
View file @
ccd8868
...
...
@@ -285,3 +285,13 @@ function wpmldp_translate_date_format( $date ) {
return
$date
;
}
add_filter
(
'wp_date'
,
'wpmldp_translate_date_format'
,
10
,
1
);
add_filter
(
'option_date_format'
,
function
(
$format
)
{
do_action
(
'wpml_register_single_string'
,
'Date formats'
,
'Date format'
,
$format
);
return
apply_filters
(
'wpml_translate_single_string'
,
$format
,
'Date Formats'
,
'Date format'
);
}
);
add_filter
(
'option_time_format'
,
function
(
$format
)
{
do_action
(
'wpml_register_single_string'
,
'Date formats'
,
'Time format'
,
$format
);
return
apply_filters
(
'wpml_translate_single_string'
,
$format
,
'Date Formats'
,
'Time format'
);
}
);
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment