%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/qendrasteps/wp-content/themes/tm-heli/vc_templates/
Upload File :
Create Path :
Current File : /var/www/html/qendrasteps/wp-content/themes/tm-heli/vc_templates/thememove_testi.php

<?php
extract( shortcode_atts( array(
	'limit'             => '2',
	'size'              => '',
	'orderby'           => '',
	'order'             => '',
	'display_author'    => '',
	'display_avatar'    => '',
	'display_url'       => '',
	'display_bullets'   => '',
	'enable_carousel'   => '',
	'slides_to_display' => '',
	'enable_autoplay'   => '',
	'el_class'          => 'thememove_testimonials',
), $atts ) );
$el_class = $this->getExtraClass( $el_class );
global $testimonials_count;
$id = 'testimonials-' . (int) $testimonials_count ++;

if ( ! $slides_to_display ) {
	$slides_to_display = 2;
}
?>
	<div id="<?php echo esc_attr( $id ); ?>" <?php echo 'class="' . $el_class . '"'; ?> >
		<?php do_action( 'woothemes_testimonials', array(
			'limit'           => $limit,
			'size'            => $size,
			'orderby'         => $orderby,
			'order'           => $order,
			'display_author'  => $display_author,
			'display_avatar'  => $display_avatar,
			'display_url'     => $display_url,
			'display_bullets' => $display_bullets,
		) ); ?>
	</div>

<?php if ( $enable_carousel == 'true' ) { ?>
	<script>
		jQuery(document).ready(function ($) {
			$("#<?php echo esc_attr($id); ?> .testimonials-list").owlCarousel(
				{
					responsive: {
						0: {
							items: 1
						},
						769: {
							items: <?php echo esc_js($slides_to_display); ?>
						}
					},
					navigation: false,
					margin: 30,
					<?php if($display_bullets == 'true'){ ?>
					dots: true,
					<?php }else { ?>
					dots: false,
					<?php } ?>
					<?php if($enable_autoplay == 'true'){ ?>
					autoplay: true,
					<?php }else { ?>
					autoplay: false,
					<?php } ?>
					autoplayHoverPause: true
				}
			);
		});
	</script>
<?php } ?>

Zerion Mini Shell 1.0