Skip to content

Commit

Permalink
Updating the lsx banners class.
Browse files Browse the repository at this point in the history
  • Loading branch information
krugazul committed Sep 8, 2023
1 parent 88b5126 commit fd69ad3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vendor/lsx-banners/class-lsx-banners-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public function banner() {
}

if ( ! empty( $banner_image_id ) ) {
$this->banner_id = $banner_image_id;
$banner_image = wp_get_attachment_image_src( $banner_image_id, $banner_size );

if ( ! empty( $banner_image ) ) {
Expand Down Expand Up @@ -405,10 +406,10 @@ public function banner() {

<?php if ( ! empty( $banner_image ) ) {

do_action( 'lsx_banner_image_before', $banner_image );
do_action( 'lsx_banner_image_before', $this );
?>
<div class="page-banner-image" style="background-position: <?php echo esc_attr( $x_position ); ?> <?php echo esc_attr( $y_position ); ?>; background-image:url(<?php echo esc_attr( $banner_image ); ?>);"></div>

<?php } ?>

<?php if ( ! empty( $embed_video ) ) : ?>
Expand Down

0 comments on commit fd69ad3

Please sign in to comment.