Your IP : 216.73.216.248


Current Path : /home/digilove/www/41423/
Upload File :
Current File : /home/digilove/www/41423/content_slider.tar

css/content_slider.css000064400000012477152351626140011102 0ustar00.yt-content-slider {position: relative;}

/*==================
	arrow design
====================*/
.yt-content-slider .owl-nav [class*='owl-'] {
	width: 40px;
	height: 40px;
	text-align: center;
	font-size: 18px;
	line-height: 40px;
	font-family: FontAwesome;
	-webkit-font-smoothing: antialiased;
	padding: 0;
	background: rgba(200,200,200,0.6);
	opacity: 0;
	-webkit-transition: all .3s ease-in-out;
	transition: all .3s ease-in-out;
}
.yt-content-slider:hover .owl-nav [class*='owl-'] {
	opacity: 1;
}
.yt-content-slider.arrow-default .owl-nav [class*='owl-'] {
	margin-top: -20px;
	position: absolute;
	top: 50%;
	color: #fff;
	border-radius: 2px;
}

.yt-content-slider.arrow-default .owl-nav {
	position: initial;
}
.yt-content-slider.arrow-default .owl-nav .owl-prev {
	left: 20px;
}
.yt-content-slider.arrow-default .owl-nav .owl-next {
	right: 20px;
	text-indent: 5px;
}

.yt-content-slider .owl-nav [class*='owl-'] {
	display: inline-block;
}

.yt-content-slider .owl-nav {
	position: absolute;
	top: 15px;
	right: 15px;
	left: auto;
}

.yt-content-slider.arrow-bottom-right .owl-nav {
	bottom: 45px;
	right: 15px;	
	top: auto;
	left: auto;
}

.yt-content-slider.arrow-top-left .owl-nav {
	bottom: auto;
	right: auto;	
	top: 15px;
	left: 15px;
}

.yt-content-slider.arrow-top-right .owl-nav {
	bottom: auto;
	left: auto;
	right: 15px;	
	top: 15px;
}

.yt-content-slider.arrow-bottom-left .owl-nav {
	bottom: 15px;
	right: auto;	
	top: auto;
	left: 15px;
}
.yt-content-slider .owl-controls .owl-nav > div:hover  {
	background: rgba(100,100,100,0.5);
}
.yt-content-slider .owl-prev { right: 33px; }
.yt-content-slider .owl-next { right: 0; }
.yt-content-slider .owl-prev:before { content: "\f053"; }
.yt-content-slider .owl-next:before { content: "\f054"; }

.yt-content-slider .owl-controls {
  margin-top: 10px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.yt-content-slider .owl-dots .owl-dot {
  display: inline-block;
  zoom: 1;
  *display: inline;
}
.yt-content-slider .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #d6d6d6;
  display: block;
  -webkit-backface-visibility: visible;
  -webkit-transition: opacity 200ms ease;
  -moz-transition: opacity 200ms ease;
  -ms-transition: opacity 200ms ease;
  -o-transition: opacity 200ms ease;
  transition: opacity 200ms ease;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
}
.yt-content-slider .owl-dots .owl-dot.active span, 
.yt-content-slider .owl-dots .owl-dot:hover span {
  background: #ccc;
}

/* Pagination */
.yt-content-slider .owl-pagination {
	position: absolute;
	top: 0;
	left: 0;
}
.yt-content-slider .owl-page {
	width: 30px;
	height: 30px;
	padding: 10px;
	float: left;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	cursor: pointer;
}
.yt-content-slider .owl-page span {
	display: block;
	width: 10px;
	height: 10px;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	background: #eee;
}
.yt-content-slider .owl-page:hover span,
.yt-content-slider .owl-page.active span { background: #555; }

/* Dark skin */
.yt-content-slider.owl-theme.yt-content-slider-style-dark .owl-prev,
.yt-content-slider.owl-theme.yt-content-slider-style-dark .owl-next {
	background: #333;
	color: #eee;
}
.yt-content-slider.owl-theme.yt-content-slider-style-dark .owl-prev:hover,
.yt-content-slider.owl-theme.yt-content-slider-style-dark .owl-next:hover {
	background: #000;
	color: #fff;
}

.yt-content-slider.owl-theme.yt-content-slider-style-dark .owl-dots .owl-dot span { background: #555; }
.yt-content-slider.owl-theme.yt-content-slider-style-dark .owl-dots .owl-dot:hover span,
.yt-content-slider.owl-theme.yt-content-slider-style-dark .owl-dots .owl-dot.active span { background: #000; }

/* Light skin */
.yt-content-slider.owl-theme.yt-content-slider-style-light .owl-prev,
.yt-content-slider.owl-theme.yt-content-slider-style-light .owl-next {
	background: #eee;
	color: #555;
}

.yt-content-slider.owl-theme.yt-content-slider-style-light .owl-prev:hover,
.yt-content-slider.owl-theme.yt-content-slider-style-light .owl-next:hover {
	background: #f5f5f5;
	color: #000;
}
.yt-content-slider.owl-theme.yt-content-slider-style-light .owl-dots .owl-dot  span { background: #eee; }
.yt-content-slider.owl-theme.yt-content-slider-style-light .owl-dots .owl-dot:hover span,
.yt-content-slider.owl-theme.yt-content-slider-style-light .owl-dots .owl-dot..active span { background: #ccc; }
.yt-content-slider .yt-content-slide{
	position:relative;
}
.yt-content-slider .yt-content-slide .caption {	
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	padding: 15px;
	margin: 0;
}
.yt-content-slider-style-default .caption{
	background: #4e9e41;
	color: #fff;
}
.yt-content-slider-style-light .caption{
	background: rgba(255,255,255,0.8);
	color: #000;
}
.yt-content-slider-style-dark .caption{
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.7);
}
.yt-testimonials-slider.yt-tmstyle2 .owl-nav [class*='owl-'] {
	width: 20px;
	height: 20px;
	line-height: 20px;
	font-size: 8px;
}
/* child style fix */

.yt-testimonial-has-photo .yt-testimonial-photo img {
	width: auto !important;
}css/index.html000064400000000032152351626140007331 0ustar00<html><body></body></html>js/content_slider.js000064400000003723152351626140010544 0ustar00jQuery(document).ready(function ($) {
	// Content slider
	$('.yt-content-slider').each(function () {
		var $slider = $(this),
			$panels = $slider.children('div'),
			data = $slider.data();
		// Remove unwanted br's
		$slider.children(':not(.yt-content-slide)').remove();
		// Apply Owl Carousel
		$slider.owlCarousel({
			responsiveClass: true,
			mouseDrag: true,
			video:true,
			animateIn: data.transitionin,
    		animateOut: data.transitionout,
    		lazyLoad: (data.lazyload == 'yes') ? true : false,
			autoplay: (data.autoplay == 'yes') ? true : false,
			autoHeight: (data.autoheight == 'yes') ? true : false,
			autoplayTimeout: data.delay * 1000,
			smartSpeed: data.speed * 1000,
			autoplayHoverPause: (data.hoverpause == 'yes') ? true : false,
			center: (data.center == 'yes') ? true : false,
			loop: (data.loop == 'yes') ? true : false,
            dots: (data.pagination == 'yes') ? true : false,
            nav: (data.arrows == 'yes') ? true : false,
			dotClass: "owl-dot",
			dotsClass: "owl-dots",
            margin: data.margin,
            navText: ['',''],
			navClass: ["owl-prev", "owl-next"],
			responsive: {
				0: {
					items: data.items_column4 
					},
				480: {
					items: data.items_column3
					},
				768: {
					items: data.items_column2
					},
				992: { 
					items: data.items_column1
					},
				1200: {
					items: data.items_column0 
					}
			}
		});
		//$slider.data('owlCarousel').transitionTypes("backSlide");
		
		if ($slider.find('.yt-testimonial')) {
			$slider.addClass('yt-testimonials-slider');
			if ($slider.find('.yt-testimonial').hasClass('yt-testimonial-style-1')) {
				$slider.addClass('yt-tmstyle1');
			}
			else if ($slider.find('.yt-testimonial').hasClass('yt-testimonial-style-2')) {
				$slider.addClass('yt-tmstyle2');
			}
			else if ($slider.find('.yt-testimonial').hasClass('yt-testimonial-style-3')) {
				$slider.addClass('yt-tmstyle3');
			}
		}

	});
});
js/index.html000064400000000032152351626140007155 0ustar00<html><body></body></html>config.php000064400000021315152351626140006531 0ustar00<?php 
/*
* @package   YouTech Shortcodes
* @author    YouTech Company http://smartaddons.com/
* @copyright Copyright (C) 2015 YouTech Company
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
	class YT_Shortcode_content_slider_config {
	static function get_config() {
	        // content slider
	        return array(
	        	'style' => array(
					'type'    => 'select',
					'default' => 'default',
					'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE'),
					'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE_DESC'),
					'values'  => array(
								'default' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DEFAULT'),
								'dark'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DARK'),
								'light'   => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LIGHT')
							),
					'child'   => array(
						'margin' => array(
							'type'    => 'slider',
							'min'     => 0,
							'max'     => 80,
							'step'    => 5,
							'default' => 10,
							'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_MARGIN'),
							'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CAROUSEL_MARGIN_DESC')
						),     
					),
				),
				'items_column0' => array(
					'type'    => 'slider',
					'min'     => 1,
					'max'     => 6,
					'step'    => 1,
					'default' => 4,
					'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN0'),
					'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN0_DESC'),
					'child'   => array(
						'items_column1' => array(
							'type'    => 'slider',
							'min'     => 1,
							'max'     => 6,
							'step'    => 1,
							'default' => 4,
							'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN1'),
							'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN1_DESC'),
						),     
					),
				),
				'items_column2' => array(
					'type'    => 'slider',
					'min'     => 1,
					'max'     => 6,
					'step'    => 1,
					'default' => 3,
					'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN2'),
					'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN2_DESC'),
					'child'   => array(
						'items_column3' => array(
							'type'    => 'slider',
							'min'     => 1,
							'max'     => 6,
							'step'    => 1,
							'default' => 2,
							'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN3'),
							'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN3_DESC'),
						), 
						'items_column4' => array(
							'type'    => 'slider',
							'min'     => 1,
							'max'     => 6,
							'step'    => 1,
							'default' => 1,
							'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN4'),
							'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEMS_COLUMN4_DESC'),
						),     						
					),
				),
				'type_change' => array('type' => 'select',
					'default' => 'fade',
					'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TYPE'),
					'desc' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TYPE_DESC'),
					'values' => array(
						'fade'=>'Fade',
						'slide' => 'Slider',	
					),
					'child'   => array(
						'transitionin' => array(
							'group'   => 'fade',
							'type'    => 'select',
							'values'  => array_combine( YT_Data::animations_in(), YT_Data::animations_in() ),
							'default' => 'fadeIn',
							'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_IN'),
							'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_IN_DESC'),
							
						),       
                        'transitionout' => array(
							'group'   => 'fade',
                            'type'    => 'select',
                            'values'  => array_combine( YT_Data::animations_out(), YT_Data::animations_out() ),
                            'default' => 'fadeOut',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_OUT'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_OUT_DESC')
                        )
                    )
				),
                
                'arrows' => array(
                    'type'    => 'bool',
                    'default' => 'yes',
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROWS'),
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROWS_DESC'),
                    'child'   => array(
                        'arrow_position' => array(
                            'type' => 'select',
                            'values' => array(
                                'arrow-default'     => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DEFAULT'),
                                'arrow-top-left'     => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TOP_LEFT'),
                                'arrow-top-right'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TOP_RIGHT'),
                                'arrow-bottom-left'  => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BOTTOM_LEFT'),
                                'arrow-bottom-right' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BOTTOM_RIGHT')
                            ),
                            'default' => 'arrow-default',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROW_POSITION'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROW_POSITION_DESC')
                        )
                    )
                ),
                
                'pagination' => array(
                    'type'    => 'bool',
                    'default' => 'no',
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_PAGINATION'),
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_PAGINATION_DESC'),
                    'child'   => array(
                        'autoplay' => array(
                            'type'    => 'bool',
                            'default' => 'yes',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOPLAY'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOPLAY_DESC')
                        ),
                        'autoheight' => array(
                            'type'    => 'bool',
                            'default' => 'no',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOHEIGHT'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOHEIGHT_DESC')
                        )
                    )
                ),
                
                'hoverpause' => array(
                    'type'    => 'bool',
                    'default' => 'yes',
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_HOVERPAUSE'),
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_HOVERPAUSE_DESC'),
                    'child'   => array(
                        'lazyload' => array(
                            'type'    => 'bool',
                            'default' => 'no',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LAZYLOAD'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LAZYLOAD_DESC')
                        ),
                        'loop' => array(
                            'type'    => 'bool',
                            'default' => 'yes',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LOOP'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LOOP_DESC')
                        ),
                    )
                ),
                
                'speed' => array(
                    'type'    => 'slider',
                    'min'     => 0.1,
                    'max'     => 15,
                    'step'    => 0.2,
                    'default' => 0.6,
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SPEED'), 
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SPEED_DESC'),
                    'child'   => array(
                        'delay' => array(
                            'type'    => 'slider',
                            'min'     => 1,
                            'max'     => 10,
                            'step'    => 1,
                            'default' => 4,
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DELAY'), 
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DELAY_DESC')
                        )
                    )
                ),
	        );
	    }
	}

?>shortcode.php000064400000004752152351626140007264 0ustar00<?php 
/*
* @package   YouTech Shortcodes
* @author    YouTech Company http://smartaddons.com/
* @copyright Copyright (C) 2015 YouTech Company
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
function content_sliderYTShortcode($atts,$content = null)
{
	extract(ytshortcode_atts(array(
		'items_column0'  => 4,
		'items_column1'  => 4,
		'items_column2'  => 3,
		'items_column3'  => 2,
		'items_column4'  => 1,
		'style'          => 'default',
		'transitionin'   => '',
		'transitionout'  => '',
		'arrows'         => 'yes',
		'arrow_position' => 'arrow-default',
		'pagination'     => 'no',
		'autoplay'       => 'yes',
		'autoheight'     => 'yes',
		'delay'          => 4,
		'speed'          => 0.6,
		'hoverpause'     => 'no',
		'lazyload'       => 'no',
		'loop'           => 'yes',
		'margin'         => 10,
		'class'          => ''

	),$atts));
	 $id = uniqid('ytcs').rand().time();
	JHtml::_('jquery.framework');
	if (!defined ('OWL_CAROUSEL'))
	{
		JHtml::script(JUri::base()."plugins/system/ytshortcodes/assets/js/owl.carousel.js");
		JHtml::stylesheet(JUri::base()."plugins/system/ytshortcodes/assets/css/owl.carousel.css",'text/css',"screen");
		define( 'OWL_CAROUSEL', 1 );
	}
	JHtml::script(JUri::base()."plugins/system/ytshortcodes/shortcodes/content_slider/js/content_slider.js");
	JHtml::stylesheet(JUri::base()."plugins/system/ytshortcodes/assets/css/animate.css",'text/css',"screen");
	JHtml::stylesheet(JUri::base()."plugins/system/ytshortcodes/shortcodes/content_slider/css/content_slider.css");
        if ($transitionin === 'slide')
            $transitionin = 'false';
        return '<div id="'. $id .'" class="yt-content-slider owl-theme yt-content-slider-style-' . $style .' '. $arrow_position.'" data-transitionin="' . $transitionin . '" data-transitionout="' . $transitionout . '" data-autoplay="' . $autoplay .'" data-autoheight="' . $autoheight .'" data-delay="' . $delay . '" data-speed="' . $speed . '" data-margin="' . $margin . '" data-items_column0="' . $items_column0 . '" data-items_column1="' . $items_column1 . '" data-items_column2="' . $items_column2 . '"  data-items_column3="' . $items_column3 . '" data-items_column4="' . $items_column4 . '" data-arrows="' . $arrows .'" data-pagination="' . $pagination . '" data-lazyload="' . $lazyload . '" data-loop="' . $loop . '" data-hoverpause="' . $hoverpause . '">' . parse_shortcode(str_replace(array("<br/>", "<br>", "<br />"), " ", $content)) . '</div>';
}
?>