Skip to content

Commit

Permalink
Adding in an action before the banner image.
Browse files Browse the repository at this point in the history
  • Loading branch information
krugazul committed Sep 8, 2023
1 parent ec353cf commit 88b5126
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vendor/lsx-banners/class-lsx-banners-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,13 @@ public function banner() {
};
?>

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

do_action( 'lsx_banner_image_before', $banner_image );
?>
<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 endif; ?>

<?php } ?>

<?php if ( ! empty( $embed_video ) ) : ?>
<div class="video-background">
Expand Down

0 comments on commit 88b5126

Please sign in to comment.