0byt3m1n1-V2
Path:
/
home
/
yvffpqmy
/
hpacorporateresourcingltd.com
/
wp-content
/
plugins
/
aheto
/
shortcodes
/
media
/
[
Home
]
File: layout4.php
<?php /** * The Media Shortcode. * * @since 1.0.0 * @package Aheto * @subpackage Aheto\Shortcodes * @author FOX-THEMES <info@foxthemes.me> */ use Aheto\Helper; extract( $atts ); if ( ! is_array( $image ) ) { $image = explode( ',', $image ); } if ( empty( $image ) ) { return ''; } $this->generate_css(); // Wrapper. $this->add_render_attribute( 'wrapper', 'id', $element_id ); $this->add_render_attribute( 'wrapper', 'class', $this->the_custom_classes() ); $this->add_render_attribute( 'wrapper', 'class', 'aheto-media' ); $this->add_render_attribute( 'wrapper', 'class', 'aheto-media--modern' ); /** * Set carousel params */ $carousel_default_params = [ 'speed' => 1000, ]; // will use when not chosen option 'Change slider params' $carousel_params = Helper::get_carousel_params( $atts, '', $carousel_default_params ); $count = count( $image ); /** * Set dependent style */ $sc_dir = aheto()->plugin_url() . 'shortcodes/media/'; $custom_css = Helper::get_settings( 'general.custom_css_including' ); $custom_css = ( isset( $custom_css ) && ! empty( $custom_css ) ) ? $custom_css : false; if ( empty( $custom_css ) || ( $custom_css == "disabled" ) ) { wp_enqueue_style( 'media-style-4', $sc_dir . 'assets/css/layout4.css', null, null ); } ?> <div <?php $this->render_attribute_string( 'wrapper' ); ?>> <?php if ( 1 === $count ) : ?> <?php echo Helper::get_attachment( $image[0], [], $image_size, $atts ); ?> <?php else : ?> <div class="swiper"> <div class="swiper-container swiper_aheto_diff_slider" <?php echo esc_attr( $carousel_params ); ?> data-centeredSlides="1"> <div class="swiper-wrapper"> <?php foreach ( $image as $item ) : ?> <div class="swiper-slide"> <?php echo Helper::get_attachment( $item, [], $image_size, $atts ); ?> </div> <?php endforeach; ?> </div> <?php $this->swiper_pagination(); ?> </div> <?php $this->swiper_arrow(); ?> </div> <?php endif; ?> </div> <?php if ( \Elementor\Plugin::$instance->editor->is_edit_mode() ) : ?> <link href="<?php echo $sc_dir . 'assets/css/layout4.css'?>" rel="stylesheet"> <?php endif;
©
2018.