HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/home/wp-content/plugins/line-shortcodes/includes/scrollslider-item.php
<?php
/**
 * WARNING: This file is part of the plugin. DO NOT edit
 * this file under any circumstances.
 */
defined( 'ABSPATH' ) or die();

// Parse shortcode attributes
$atts = shortcode_atts( array(
	'title'        => '',
	'image'        => '',

	'button_text'  => '',
	'button_url'   => '',
	'button_class' => ''
), $atts );

$image = '';

// Preparing image for the box
if ( is_numeric( $atts['image'] ) ) {
	$image = wp_get_attachment_image_src( $atts['image'], 'full' );
	$image = $image[0];
}
elseif ( filter_var( $atts['image'], FILTER_VALIDATE_URL ) ) {
	$image = $atts['image'];
}
?>

<div class="swiper-slide" style="background-image: url( <?php echo esc_url( $image ) ?> )">
	<div class="slide-container">
		<?php if ( ! empty( $atts['title'] ) ): ?>
			<div class="slide-title">
				<?php echo wp_kses_post( $atts['title'] ); ?>
			</div>
		<?php endif ?>

		<?php if ( ! empty( $content ) ): ?>
			<div class="slide-content">
				<?php echo wp_kses_post( $content ); ?>
			</div>
		<?php endif ?>

		<?php if ( ! empty( $atts['button_text'] ) && ! empty( $atts['button_url'] ) ): ?>
			<div class="slide-buttons">
				<a href="<?php echo esc_url( $atts['button_url'] ) ?>" class="slide-button <?php echo esc_attr( $atts['button_class'] ) ?>">
					<?php echo esc_html( $atts['button_text'] ) ?>
				</a>
			</div>
		<?php endif ?>
	</div>
</div>