Your IP : 216.73.216.190


Current Path : /proc/1908984/root/proc/2603263/cwd/
Upload File :
Current File : //proc/1908984/root/proc/2603263/cwd/animation.tar

css/index.html000064400000000032152351663620007335 0ustar00<html><body></body></html>js/animate.js000064400000000453152351663620007147 0ustar00jQuery(document).ready(function($) {
    $('.yt-animate').each(function() {
        $(this).appear(function(e) {
            var data = $(this).data()
            $(this).addClass('animated').css('visibility', 'visible');
            $(this).addClass(data.animation);
        });
    });
});js/index.html000064400000000032152351663620007161 0ustar00<html><body></body></html>config.php000064400000004306152351663620006536 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_animation_config {
	static function get_config() {
        // animation
        return array(
					'type' => array(
	                    'type'    => 'select',
	                    'values'  => array_combine( YT_Data::animations(), YT_Data::animations() ),
	                    'default' => 'bounceIn',
	                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE'),
	                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE_DESC'),
	                    'child'   => array(
							'inline' => array(
								'type'    => 'bool',
								'default' => 'no',
								'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_INLINE'),
								'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_INLINE_DESC'),
							),	
						),
	                ),
	                'duration' => array(
	                    'type'    => 'slider',
	                    'min'     => 0,
	                    'max'     => 20,
	                    'step'    => 0.5,
	                    'default' => 1,
	                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DURATION'),
	                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DURATION_DESC'),
	                    'child'  => array(
	                        'delay' => array(
	                            'type'    => 'slider',
	                            'min'     => 0,
	                            'max'     => 20,
	                            'step'    => 0.5,
	                            'default' => 0,
	                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DELAY'),
	                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DELAY_DESC')
	                        )
	                    )
	                ),
	                'content' => array('type' => 'textarea',
								   'default' => 'Add Content Here',
								   'name'  => 'Content',
								   ),
	            );
	}
}
?>shortcode.php000064400000003506152351663620007264 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 animationYTShortcode($atts,$content = null)
{
	$atts = ytshortcode_atts(array(
	        'type'     => 'bounceIn',
	        'duration' => 1,
	        'delay'    => 0,
	        'inline_block'   => 'no',
	        'class'    => ''
	    ), $atts, 'animation');
	 $id = uniqid('yta').rand().time();

    $inline = ( $atts['inline_block'] === 'yes' ) ? ' display: inline-block;' : '';
    $style = array(
        'duration' => array(),
        'delay'    => array()
    );

    // CSS Prefix manage
    foreach (array('-webkit-', '-moz-', '-ms-', '-o-', '') as $vendor) {
        $style['duration'][] = $vendor . 'animation-duration:' . $atts['duration'] . 's';
        $style['delay'][]    = $vendor . 'animation-delay:' . $atts['delay'] . 's';
    }
    // Get Css in $css variable
    $css = '#'.$id.' {visibility:hidden;' .$inline . implode(';', $style['duration']) . ';' . implode(';', $style['delay']) .'}';
    // Add CSS in head
  	$doc = JFactory::getDocument();
	$doc->addStyleDeclaration($css);
    // Add CSS file in head
	JHtml::stylesheet(JUri::base()."plugins/system/ytshortcodes/assets/css/animate.css");
	JHtml::_('jquery.framework');
	JHtml::script(JUri::base()."plugins/system/ytshortcodes/assets/js/jquery.appear.js");
	JHtml::script(JUri::base()."plugins/system/ytshortcodes/shortcodes/animation/js/animate.js");

    // Output HTML
    $output = '<div id="'. $id .'" class="yt-clearfix yt-animate " data-animation="'. $atts['type'] .'">'. parse_shortcode(str_replace(array("<br/>","<br />","<p></p>"), " ", $content)) .'</div>';

    return $output;
}
	
?>