Your IP : 216.73.216.248


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

css/index.html000064400000000032152351545000007324 0ustar00<html><body></body></html>js/index.html000064400000000032152351545000007150 0ustar00<html><body></body></html>config.php000064400000016100152351545000006520 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_buttons_config {
	static function get_config() {
	        // buttons
	        return array(
	        	'type'=> array(  	
        			'type' => 'select',
					'default' => 'none',
					'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_TYPE'),
					'desc' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_TYPE_DESC'),
					'values' => YT_Data::buttons_type(),
					'child' => array(
						'style' => array(
		                    'type' => 'select',
		                    'values' => array(
		                        'default' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DEFAULT'),
		                        'soft'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SOFT'),
		                        'glass'   => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_GLASS'),
		                        'bubbles' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUBBLES'),
		                        'noise'   => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_NOISE'),
		                        'stroked' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STROKED'),
		                        'border' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BORDER'),
		                        '3d'      => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_3D'),
		                        'bottom_line'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LINE'),
		                        'dropshadow' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DROPSHADOW'),
		                        'dot' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DOTTED'),
		                        'insetshadow' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_INSETSHADOW'),
		                        'transparent' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSPARENT'),
		                        'gradient' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_GRADIENT'),
		                    ),
		                    'default' => 'default',
		                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE'), 
		                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE_DESC')
		                ),
					),
					),
				'link' => array(
                    'values'  => array( ),
                    'default' => '#',
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_URL'),
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_URL_DESC'),
                    'child'  => array(
                        'target' => array(
                            'type'   => 'select',
                            'values' => array(
                                '_self'   => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SELF'),
                                '_blank'  => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BLANK')
                            ),                    
                            'default' => 'self',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TARGET'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TARGET_DESC')
                        )
                    )
                ),
            	'color' => array(
                    'type'    => 'color',
                    'values'  => array( ),
                    'default' => '#FFFFFF',
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR'),
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR_DESC'),
                    'child' => array(
                        'background' => array(
                            'type'    => 'color',
                            'values'  => array( ),
                            'default' => '#2D89EF',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BACKGROUND'), 
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BACKGROUND_DESC')
                        ),
                    )
                ),
            	'icon' => array(
                    'type'    => 'icon',
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON'),
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON_DESC'),
                    'child'   => array(
						'icon_position' => array(
							'type'    => 'select',
							'default' => '',
							'values' => array(
                                'left'   => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LEFT'),
                                'right'  => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_RIGHT')
                            ), 
							'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON_POSITION'),
							'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON_POSITION_DESC'),
							)
					),
				),
            	'subtitle' => array(
                    'default' => '',
                    'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DESCRIPTION'),
                    'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DESCRIPTION_DESC'),
                    'child'   => array(
                        'radius' => array(
                            'default' => '3px',
                            'name'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_RADIUS'),
                            'desc'    => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_RADIUS_DESC')
                        ),
                        'animated_icon' => array(
                        	'type' => 'bool',
                        	'default' => 'no',
                        	'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_ANIMATED_ICON'),
                        	'desc' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_ANIMATED_ICON_DESC')
                        ),
                   )
                ),
                'size' => array(
                    'type' => 'select',
					'default' => 'sm',
					'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SIZE'),
					'desc' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SIZE_DESC'),
					'values' => array(
						'xs'=>'Extra small devices',
						'sm' => 'Small devices Tablets ',
						'default' =>'Medium devices',
						'lg' =>'Large devices Desktops ',
						'huge' =>'Huge devices Desktops '	
						),
					'child' => array(
								'full'  => array('type' => 'bool',
													'default' => 'no',
													'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_WIDE'),
													'desc' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_WIDE_DESC'),
												),
								'center'  => array('type' => 'bool',
													'default' => 'no',
													'name' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CENTER'),
													'desc' => JText::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CENTER_DESC'),
												),
							),
                ),
                'content'  => array('type' => 'textarea',
									'default' => 'Button',
									'name' => 'Content',
								),
            );
	    }
	}

?>shortcode.php000064400000010775152351545000007261 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 buttonsYTShortcode($atts, $content = null){
	extract(ytshortcode_atts(array(
		"type"         => '',
		"size"         => 'sm',
		"full"         => 'no',
		"icon"         => 'home',
		"link"         => '#',
		"radius"       => '3px',
		"target"       => '',
		"title"        => '',
		"position"     => '',
		"subtitle"     => '',
		"style"        => '',
		"iconposition" =>'',
		"background"   =>'#4e9e41',
		"color"        =>'#fff',
		"icon_position"    =>'',
		"center"       => 'no',
		"animated_icon" => 'no',
		"box_shadow_color" => '#337e27',
		"linear_color" => '#4e9e41',
		"gradient_color" => '#93c38c'
	), $atts));
	$css ='';
	$id = uniqid('btn_').rand().time(); 
	$yt_btn_icon ='';
	$dropshadow ='';
	$stylecss ='';
	$id = uniqid('ul_').rand().time(); 
	if($type =="line"){
		$dropshadow = 'box-shadow:0px 6px 0px '.$background.';';
	}
	if($style == "bottom_line")	{
		$stylecss .= "box-shadow:0px 6px 0px ".$box_shadow_color;
	}else if($style == "3d"){
		$stylecss .= "background:linear-gradient(19deg,".$background." 50%,".$linear_color." 50%)";
	}
	$animated_icon = ($animated_icon == 'yes') ? 'fa-spin' : '';
	if($icon != '')	{
		if (strpos($icon, 'icon:') !== false) 	{
			$yt_btn_icon = "<i class='fa ".$animated_icon." fa-" . trim(str_replace('icon:', '', $icon)) . "'></i> ";
		}else{
			$yt_btn_icon = '<img src="'.yt_image_media($icon).'" style="width:18px" alt="" /> ';
		}
	}
	
	$center = ($center =="yes") ? 'text-align:center' : '';
	switch ($style) {
		case 'border':
			$color=($color =='#fff') ? 'color:'.$background : 'color:'.$color;
			$background = 'border-color:'.$background;
			break;
		case 'dot':
			$color=($color =='#fff') ? 'color:'.$background : 'color:'.$color;
			$background = 'border-color:'.$background;
			break;
		case 'transparent':
			$background ="background:transparent;border-style:solid; border-color:".$background."; border-width:1px";
			$color= 'color:'.$color;
			break;
		case 'gradient':
			$background = "background: -webkit-linear-gradient(".$gradient_color.", ".$background."); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(".$gradient_color.", ".$background."); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(".$gradient_color.", ".$background."); /* For Firefox 3.6 to 15 */
    background: linear-gradient(".$gradient_color.", ".$background."); /* Standard syntax (must be last) */";
			$color= 'color:'.$color;
    		break;
		default:
			$background = 'background:'.$background;
			$color = (($color != '') ? 'color:'.$color : '');
			break;
	}
	
	if($subtitle != "")	{
		$subtitle = '<small class="text-small">'.$subtitle.'</small>';
		$css .=".".$id." .text-small{display: block;margin: 5px 0px 0px;color: inherit;text-align: center;font-style: normal;font-size: 0.8em;line-height: 1;opacity: 0.7;}";
	}else{
		$subtitle ='';
	}
	if($icon_position == "left")
	{
		$css .=".".$id."{border-radius:".$radius."; ".$background.";".$dropshadow."; ".$color."; ".$center." ; ".$stylecss."}";
		$doc = JFactory::getDocument();
		$doc->addStyleDeclaration($css);
		return '<a class="yt-clearfix buttons-style-'.$style.' ytyt_btn '.$id.''.
			(($type != '') ? ' yt_btn-' . $type : '').
			(($size != '') ? ' yt_btn-' . $size : '') .
			(($full == 'yes') ? ' yt_btn-block' : '') .
			' " href="'.$link.'" target="'.$target.'" data-placement="'.$position.'" title="'.$title.'">'.'<span class="span-buttons"><span>'.$yt_btn_icon. parse_shortcode(str_replace(array("<br/>", "<br>", "<br />", "<p>", "</p>"), " ",$content)).'</span> '.$subtitle .'</span></a>';
	}else{
		$css .=".".$id."{border-radius:".$radius."; ".$background.";".$dropshadow."; ".$color."; ".$center." ; ".$stylecss."}";
		$doc = JFactory::getDocument();
		$doc->addStyleDeclaration($css);
		return '<a class="yt-clearfix buttons-style-'.$style.' ytyt_btn '.$id.''.
			(($type != '') ? ' yt_btn-' . $type : '').
			(($size != '') ? ' yt_btn-' . $size : '') .
			(($full == 'yes') ? ' yt_btn-block' : '') .
			' " href="'.$link.'" target="'.$target.'" data-placement="'.$position.'" title="'.$title.'">'.'<span class="span-buttons"><span>'. parse_shortcode(str_replace(array("<br/>", "<br>", "<br />", "<p>", "</p>"), " ",$content)) .$yt_btn_icon. '</span> '.$subtitle .'</span></a>';
	}
	
}

?>