ccd8868e by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 3c85cdf4
......@@ -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>
......
......@@ -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
......