qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
2 changed files
with
14 additions
and
4 deletions
| ... | @@ -100,9 +100,9 @@ $ran = getName(); | ... | @@ -100,9 +100,9 @@ $ran = getName(); |
| 100 | <?php | 100 | <?php |
| 101 | $image = get_sub_field("place_holder"); | 101 | $image = get_sub_field("place_holder"); |
| 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> | ... | ... |
| ... | @@ -284,4 +284,14 @@ function wpmldp_translate_date_format( $date ) { | ... | @@ -284,4 +284,14 @@ function wpmldp_translate_date_format( $date ) { |
| 284 | 284 | ||
| 285 | return $date; | 285 | return $date; |
| 286 | } | 286 | } |
| 287 | add_filter( 'wp_date', 'wpmldp_translate_date_format', 10, 1 ); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 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 | ... | ... |
-
Please register or sign in to post a comment