Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
immortalist
/
wp-content
/
themes
/
woodmart
/
inc
/
integrations
/
gutenberg
/
src
/
blocks
/
gallery
:
assets.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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;