HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/.trash/woodmart1/inc/integrations/gutenberg/src/blocks/slider/assets.php
<?php
$assets = array(
	'styles'    => array( 'swiper', 'block-slider' ),
	'scripts'   => array( 'swiper-carousel', 'slider-element' ),
	'libraries' => array( 'swiper' ),
);

if ( ! empty( $this->attrs['effect'] ) && 'distortion' === $this->attrs['effect'] ) {
	$assets['styles'][]  = 'slider-anim-distortion';
	$assets['scripts'][] = 'slider-distortion';
}

if ( ! isset( $this->attrs['arrows'] ) || $this->attrs['arrows'] || ! isset( $this->attrs['arrowsTablet'] ) || $this->attrs['arrowsTablet'] || ! isset( $this->attrs['arrowsMobile'] ) || $this->attrs['arrowsMobile'] ) {
	$assets['styles'][] = 'swiper-arrows';

	if ( isset( $this->attrs['arrowsStyle'] ) && in_array( $this->attrs['arrowsStyle'], array( '2', '3' ), true ) ) {
		$assets['styles'][] = 'slider-arrows';
	}
}

if ( ! isset( $this->attrs['pagination'] ) || $this->attrs['pagination'] || ! isset( $this->attrs['paginationTablet'] ) || $this->attrs['paginationTablet'] || ! isset( $this->attrs['paginationMobile'] ) || $this->attrs['paginationMobile'] ) {
	$assets['styles'][] = 'swiper-pagin';

	if ( ! empty( $this->attrs['paginationStyle'] ) ) {
		if ( '2' === $this->attrs['paginationStyle'] ) {
			$assets['styles'][] = 'slider-dots-style-2';
		} elseif ( '3' === $this->attrs['paginationStyle'] ) {
			$assets['styles'][] = 'slider-dots-style-3';
		}
	}
}

if ( ! empty( $this->attrs['shapeDividerTopIcon'] ) || ! empty( $this->attrs['shapeDividerBottomIcon'] ) ) {
	$assets['styles'][] = 'block-shape-divider';
}

return $assets;