<?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_content_style_config {
	static function get_config() {
	        // content style
	        return array(
	        	'type_change' => array(
                    'type' => 'select',
					'default' => 'single_column',
					'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TYPE'),
					'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TYPE_DESC'),
					'values' => array(
						'single_column'=>'Single Column',
						'multiple_column' => 'Multiple Column',
						'masonry' =>'Masonry',
						'slider' => 'Slider',
						'timeline' => 'Timeline'	
					),
					'child' => array(
                        'introtext' => array(
                            'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_INTRO_TEXT'),
                            'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_INTRO_TEXT_DESC'),
                            'default' => ''
                        ),
						'intro_text_limit' => array(
							'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_INTRO_TEXT_LIMIT'),
							'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_INTRO_TEXT_LIMIT_DESC'),
							'default' => ''
						),
					),
				),
	        	'source' => array(
                    'type'    => 'article_source',
                    'default' => 'none',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_SOURCE'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_SOURCE_DESC'),
                    'child'   => array(
            			'limit' => array(
    	                    'type'    => 'slider',
    	                    'min'     => -1,
    	                    'max'     => 100,
    	                    'step'    => 1,
    	                    'default' => 20,
    	                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ITEM_LIMIT'),
    	                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TIMELINE_LIMIT_DESC')
    	                ),
                        'description_max_vm' => array(
                            'group'   => 'vm-category',
                            'default' => '100',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DESCRIPTION_VM_MAX'), 
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DESCRIPTION_VM_MAX_DESC')
                        )
            		)
                ),
                'yt_title' => array(
                    'type'    => 'bool',
                    'default' => 'yes',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TITLE'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TITLE_DESC'),
                    'child'     => array(
                        'link_title' => array(
                            'type'    => 'bool',
                            'default' => 'yes',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LINK_TITLE'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_LINK_TITLE_DESC')
                        ),
                        'date' => array(
                            'type'    => 'bool',
                            'default' => 'yes',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DATE'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DATE_DESC')    
                        ),
                    )
                ),              
                'order' => array(
                    'type'     => 'select',
                    'values'   => array(
                        ''         => 'Default',
                        'title'    => 'Title',
                        'created'  => 'Created Date',
                        'hits'     => 'Hits',
                        'ordering' => 'Ordering'
                    ),
                   'default' => 'created',
                   'group'   => 'timeline',
                   'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ORDER'),
                   'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ORDER_DESCR'),
                   'child'      => array(
                        'order_by' => array(
                            'type'   => 'select',
                            'values' => array(
                                'asc'  => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ASC'),
                                'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DESC')
                            ),
                            'default' => 'desc',
                            'group'   => 'timeline',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ORDER_TYPE'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ORDER_TYPE_DESC')
                        )
                   )
                ),
                'image' => array(
                    'type'    => 'bool',
                    'default' => 'yes',
                    'group'   => 'timeline',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_IMAGE'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TIMELINE_IMAGE_DESC'),
                    'child'     => array(
                        'highlight_year' => array(
                            'type'    => 'bool',
                            'default' => 'no',
                            'group'   => 'timeline',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_HIGHTLIGHT_YEAR'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_HIGHTLIGHT_YEAR_DESC')
                        ),
                        'read_more' => array(
                            'type'    => 'bool',
                            'default' => 'no',
                            'group'   => 'timeline',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_READMORE'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_READMORE_DESC')
                        )
                    )
                ),
                'intro_text' => array(
                    'type'    => 'bool',
                    'default' => 'no',
                    'group'   => 'timeline',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_INTRO_TEXT'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_INTRO_TEXT_DESC'),
                    'child'     => array(
                        'time' => array(
                            'type'    => 'bool',
                            'default' => 'yes',
                            'group'   => 'timeline',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TIME'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TIME_DESC')    
                        )
                    )
                ),
                
                'before_text' => array(
                    'default' => '',
                    'group'   => 'timeline',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BEFORE_TEXT'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BEFORE_TEXT_DESC'),
                    'child'     => array(
                        'after_text' => array(
                            'default' => '',
                            'group'   => 'timeline',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AFTER_TEXT'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AFTER_TEXT_DESC')
                        )
                    )
                ),
                'grid'  => array(
                    'type' => 'bool',
					'default' => 'no',
					'group' => 'multiple_column',
					'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_GRID'),
					'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_GRID_DESC'),
					'child' => array(
						'column' => array(
                            'type' => 'slider',
    						'default' => 4,
    						'min' => 2,
    						'max' => 4,
    						'step' => 1,
    						'group' => 'multiple_column',
    						'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_COL'),
    						'desc' => Text::_("PLG_SYSTEM_YOUTECH_SHORTCODES_COLUMNS_COL_DESC")
						)
					)
				),
				'gutter' =>array(
					'default' => '15',
					'group' => 'masonry',
					'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_GUTTER'),
					'desc' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_GUTTER_DESC'),
					'child' => array(
						'width' => array(
							'default' => '40%',
							'group' => 'masonry',
							'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_WIDTH'),
							'desc' => Text::_("PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_WIDTH_DESC")
						)
					)
				),
				'masonry_sticky_size' => array(
                    'type' => 'slider',
					'default' => 4,
					'min' => 1,
					'max' => 12,
					'step' => 1,
					'group' => 'masonry',
					'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_SIZE'),
					'desc' => Text::_("PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_SIZE_DESC"),
					'child' => array(
						'masonry_sticky_medium_size' => array(
                            'type' => 'slider',
							'default' => 4,
							'min' => 1,
							'max' => 12,
							'step' => 1,
							'group' => 'masonry',
							'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_MEDIUM_SIZE'),
							'desc' => Text::_("PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_MEDIUM_SIZE_DESC")
						)
					)
				),
				'masonry_sticky_small_size' => array(
                    'type' => 'slider',
					'default' => 6,
					'min' => 1,
					'max' => 12,
					'step' => 1,
					'group' => 'masonry',
					'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_SMALL_SIZE'),
					'desc' => Text::_("PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_SMALL_SIZE_DESC"),
					'child' => array(
						'masonry_sticky_extra_small_size' => array(
                            'type' => 'slider',
							'default' => 12,
							'min' => 1,
							'max' => 12,
							'step' => 1,
							'group' => 'masonry',
							'name' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_EXTRA_SMALL_SIZE'),
							'desc' => Text::_("PLG_SYSTEM_YOUTECH_SHORTCODES_CONTENT_STYLE_MASONRY_STICKY_EXTRA_SMALL_SIZE_DESC")
						)
					)
    			),
				'transitionin' => array(
                    'type'    => 'select',
                    'values'  => array_combine( YT_Data::animations_in(), YT_Data::animations_in() ),
                    'default' => 'fadeIn',
                    'group' => 'slider',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_IN'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_IN_DESC'),
                    'child'   => array(
                        'transitionout' => array(
                            'type'    => 'select',
                            'values'  => array_combine( YT_Data::animations_out(), YT_Data::animations_out() ),
                            'default' => 'fadeOut',
                            'group' => 'slider',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_OUT'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TRANSITION_OUT_DESC')
                        )
                    )
                ),       
                'arrows' => array(
                    'type'    => 'bool',
                    'default' => 'yes',
                    'group' => 'slider',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROWS'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROWS_DESC'),
                    'child'   => array(
                        'arrow_position' => array(
                            'type' => 'select',
                            'values' => array(
                                'arrow-default'     => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_DEFAULT'),
                                'arrow-top-left'     => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TOP_LEFT'),
                                'arrow-top-right'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_TOP_RIGHT'),
                                'arrow-bottom-left'  => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BOTTOM_LEFT'),
                                'arrow-bottom-right' => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_BOTTOM_RIGHT')
                            ),
                            'default' => 'arrow-default',
                            'group' => 'slider',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROW_POSITION'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_ARROW_POSITION_DESC')
                        )
                    )
                ),                
                'pagination' => array(
                    'type'    => 'bool',
                    'default' => 'no',
                    'group' => 'slider',
                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_PAGINATION'),
                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_PAGINATION_DESC'),
                    'child'   => array(
                        'autoplay' => array(
                            'type'    => 'bool',
                            'default' => 'yes',
                            'group' => 'slider',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOPLAY'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOPLAY_DESC')
                        ),
                        'autoheight' => array(
                            'type'    => 'bool',
                            'default' => 'no',
                            'group' => 'slider',
                            'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOHEIGHT'),
                            'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_AUTOHEIGHT_DESC')
                        ),
                        'hoverpause' => array(
		                    'type'    => 'bool',
		                    'default' => 'yes',
		                    'group' => 'slider',
		                    'name'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_HOVERPAUSE'),
		                    'desc'    => Text::_('PLG_SYSTEM_YOUTECH_SHORTCODES_HOVERPAUSE_DESC'),
		                )
                    )
                )
	        );
	    }
	}
?>