<?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;use Joomla\CMS\Language\Text;use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\HTML\HTMLHelper;
	class YT_Shortcode_buttons_config {
	static function get_config() {
	        // buttons
	        return array(
	        	'type'=> array(  	
        			'type' => 'select',
					'default' => 'none',
					'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_TYPE'),
					'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_TYPE_DESC'),
					'values' => YT_Data::buttons_type(),
					'child' => array(
						'style' => array(
		                    'type' => 'select',
		                    'values' => array(
		                        'default' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DEFAULT'),
		                        'soft'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SOFT'),
		                        'glass'   => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_GLASS'),
		                        'bubbles' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUBBLES'),
		                        'noise'   => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_NOISE'),
		                        'stroked' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STROKED'),
		                        'border' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BORDER'),
		                        '3d'      => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_3D'),
		                        'bottom_line'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LINE'),
		                        'dropshadow' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DROPSHADOW'),
		                        'dot' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DOTTED'),
		                        'insetshadow' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_INSETSHADOW'),
		                        'transparent' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSPARENT'),
		                        'gradient' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_GRADIENT'),
		                    ),
		                    'default' => 'default',
		                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE'), 
		                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_STYLE_DESC')
		                ),
					),
					),
				'link' => array(
                    'values'  => array( ),
                    'default' => '#',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_URL'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_URL_DESC'),
                    'child'  => array(
                        'target' => array(
                            'type'   => 'select',
                            'values' => array(
                                '_self'   => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SELF'),
                                '_blank'  => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BLANK')
                            ),                    
                            'default' => 'self',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TARGET'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TARGET_DESC')
                        )
                    )
                ),
            	'color' => array(
                    'type'    => 'color',
                    'values'  => array( ),
                    'default' => '#FFFFFF',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLOR_DESC'),
                    'child' => array(
                        'background' => array(
                            'type'    => 'color',
                            'values'  => array( ),
                            'default' => '#2D89EF',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BACKGROUND'), 
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BACKGROUND_DESC')
                        ),
                    )
                ),
            	'icon' => array(
                    'type'    => 'icon',
                    'default' => '',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON_DESC'),
                    'child'   => array(
						'icon_position' => array(
							'type'    => 'select',
							'default' => '',
							'values' => array(
                                'left'   => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LEFT'),
                                'right'  => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_RIGHT')
                            ), 
							'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON_POSITION'),
							'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ICON_POSITION_DESC'),
							)
					),
				),
            	'subtitle' => array(
                    'default' => '',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DESCRIPTION'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DESCRIPTION_DESC'),
                    'child'   => array(
                        'radius' => array(
                            'default' => '3px',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_RADIUS'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_RADIUS_DESC')
                        ),
                        'animated_icon' => array(
                        	'type' => 'bool',
                        	'default' => 'no',
                        	'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_ANIMATED_ICON'),
                        	'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BUTTON_ANIMATED_ICON_DESC')
                        ),
                   )
                ),
                'size' => array(
                    'type' => 'select',
					'default' => 'sm',
					'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SIZE'),
					'desc' => Text::_('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' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_WIDE'),
													'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_WIDE_DESC'),
												),
								'center'  => array('type' => 'bool',
													'default' => 'no',
													'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CENTER'),
													'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CENTER_DESC'),
												),
							),
                ),
                'content'  => array('type' => 'textarea',
									'default' => 'Button',
									'name' => 'Content',
								),
            );
	    }
	}

?>