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/gallery/assets.php
<?php
$assets = array(
	'styles'    => array( 'block-gallery' ),
	'scripts'   => array(),
	'libraries' => array(),
);

if ( ! empty( $this->attrs['masonry'] ) ) {
	$assets['libraries'][] = 'isotope-bundle';
	$assets['libraries'][] = 'imagesloaded';
	$assets['scripts'][]   = 'image-gallery-element';
}

if ( ! empty( $this->attrs['layout'] ) && 'carousel' === $this->attrs['layout'] ) {
	$assets['libraries'][] = 'swiper';
	$assets['scripts'][]   = 'swiper-carousel';
	$assets['styles'][]    = 'swiper';

	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['paginationControl'] ) || $this->attrs['paginationControl'] || isset( $this->attrs['paginationControlTablet'] ) && $this->attrs['paginationControlTablet'] || isset( $this->attrs['paginationControlMobile'] ) && $this->attrs['paginationControlMobile'] ) {
		$assets['styles'][] = 'swiper-pagin';
	}

	if ( ! empty( $this->attrs['scrollbar'] ) || ! empty( $this->attrs['scrollbarTablet'] ) || ! empty( $this->attrs['scrollbarMobile'] ) ) {
		$assets['styles'][] = 'swiper-scrollbar';
	}

	if ( ! empty( $this->attrs['initOnScrollCarousel'] ) ) {
		$assets['libraries'][] = 'waypoints';
	}
}

return $assets;