sss
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
2 changed files
with
2 additions
and
28 deletions
| ... | @@ -19,20 +19,7 @@ if ( is_front_page() ) { | ... | @@ -19,20 +19,7 @@ if ( is_front_page() ) { |
| 19 | $wrapper_id = 'full-width-page-wrapper'; | 19 | $wrapper_id = 'full-width-page-wrapper'; |
| 20 | 20 | ||
| 21 | ?> | 21 | ?> |
| 22 | <div class="hero-container header-section blur-image" data-src="<?php echo the_post_thumbnail_url(); ?>" style="--med-image: url(<?php echo the_post_thumbnail_url('medium'); ?>);"> | 22 | |
| 23 | <div class="full-image"> | ||
| 24 | <?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true)); | ||
| 25 | if (!empty($hero_content)) {?> | ||
| 26 | <div class="container"> | ||
| 27 | <div class="hero-content row"> | ||
| 28 | <div class="col align-self-center"> | ||
| 29 | <?php echo $hero_content; ?> | ||
| 30 | </div> | ||
| 31 | </div> | ||
| 32 | </div> | ||
| 33 | <?php } ?> | ||
| 34 | </div> | ||
| 35 | </div> | ||
| 36 | <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>"> | 23 | <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>"> |
| 37 | 24 | ||
| 38 | <div class="<?php echo esc_attr( $container ); ?>" id="content"> | 25 | <div class="<?php echo esc_attr( $container ); ?>" id="content"> | ... | ... |
| ... | @@ -19,20 +19,7 @@ if ( is_front_page() ) { | ... | @@ -19,20 +19,7 @@ if ( is_front_page() ) { |
| 19 | $wrapper_id = 'full-width-page-wrapper'; | 19 | $wrapper_id = 'full-width-page-wrapper'; |
| 20 | 20 | ||
| 21 | ?> | 21 | ?> |
| 22 | <div class="hero-container header-section blur-image" data-src="<?php echo the_post_thumbnail_url(); ?>" style="--med-image: url(<?php echo the_post_thumbnail_url('medium'); ?>);"> | 22 | |
| 23 | <div class="full-image"> | ||
| 24 | <?php $hero_content = apply_filters('the_content', get_post_meta(get_the_id(), 'hero_content', true)); | ||
| 25 | if (!empty($hero_content)) {?> | ||
| 26 | <div class="container"> | ||
| 27 | <div class="hero-content row"> | ||
| 28 | <div class="col align-self-center"> | ||
| 29 | <?php echo $hero_content; ?> | ||
| 30 | </div> | ||
| 31 | </div> | ||
| 32 | </div> | ||
| 33 | <?php } ?> | ||
| 34 | </div> | ||
| 35 | </div> | ||
| 36 | <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>"> | 23 | <div class="wrapper" id="<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?>"> |
| 37 | 24 | ||
| 38 | <div class="<?php echo esc_attr( $container ); ?>" id="content"> | 25 | <div class="<?php echo esc_attr( $container ); ?>" id="content"> | ... | ... |
-
Please register or sign in to post a comment