ccd8868e by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 3c85cdf4
...@@ -102,7 +102,7 @@ $ran = getName(); ...@@ -102,7 +102,7 @@ $ran = getName();
102 if (!empty($image)): ?> 102 if (!empty($image)): ?>
103 <img src="<?php echo esc_url($image["url"]); ?>" alt="<?php echo esc_attr($image["alt"]); ?>" loading="eager" /> 103 <img src="<?php echo esc_url($image["url"]); ?>" alt="<?php echo esc_attr($image["alt"]); ?>" loading="eager" />
104 <?php endif;?> 104 <?php endif;?>
105 <img src="<?php echo $image; ?>" alt="<?php echo $img_alt; ?>" loading="eager"> 105
106 </div> 106 </div>
107 <div class="promo-text"><?php echo get_sub_field("title"); ?></div> 107 <div class="promo-text"><?php echo get_sub_field("title"); ?></div>
108 </a> 108 </a>
......
...@@ -285,3 +285,13 @@ function wpmldp_translate_date_format( $date ) { ...@@ -285,3 +285,13 @@ function wpmldp_translate_date_format( $date ) {
285 return $date; 285 return $date;
286 } 286 }
287 add_filter( 'wp_date', 'wpmldp_translate_date_format', 10, 1 ); 287 add_filter( 'wp_date', 'wpmldp_translate_date_format', 10, 1 );
288
289
290 add_filter( 'option_date_format', function( $format ) {
291 do_action( 'wpml_register_single_string', 'Date formats', 'Date format', $format );
292 return apply_filters( 'wpml_translate_single_string', $format, 'Date Formats', 'Date format' );
293 } );
294 add_filter( 'option_time_format', function( $format ) {
295 do_action( 'wpml_register_single_string', 'Date formats', 'Time format', $format );
296 return apply_filters( 'wpml_translate_single_string', $format, 'Date Formats', 'Time format' );
297 } );
...\ No newline at end of file ...\ No newline at end of file
......