<?php
/**
* @package SP Page Builder
* @author JoomShaper http: //www.joomshaper.com
* @copyright Copyright (c) 2010 - 2022 JoomShaper
* @license http: //www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
//no direct access
defined ('_JEXEC') or die ('resticted aceess');

use Joomla\CMS\Language\Text;

SpAddonsConfig::addonConfig(
	[
		'type'       => 'content',
		'addon_name' => 'articles_scroller',
		'title'      => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_SCROLLER'),
		'desc'       => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_SCROLLER_DESC'),
		'category'   => 'Content',
		'icon'       => '<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M15.29.718a1 1 0 011.42 0l4.532 4.579c.625.631.178 1.703-.71 1.703h-9.063c-.889 0-1.336-1.072-.711-1.703L15.289.718zM16.71 31.282a1 1 0 01-1.42 0l-4.532-4.579c-.625-.631-.178-1.703.71-1.703h9.064c.888 0 1.335 1.072.71 1.703l-4.531 4.579z" fill="currentColor"/><g opacity=".5" fill="currentColor"><path d="M2 16a1 1 0 011-1h26a1 1 0 110 2H3a1 1 0 01-1-1zM2 11a1 1 0 011-1h26a1 1 0 110 2H3a1 1 0 01-1-1zM2 21a1 1 0 011-1h12a1 1 0 110 2H3a1 1 0 01-1-1z"/></g></svg>',
		'inline'     => [
			'buttons' => [
				'articles_scroller_general_options' => [
					'action'   => 'dropdown',
					'icon'     => 'addon::articles_scroller',
					'tooltip'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_SCROLLER'),
					'fieldset' => [
						'tab_groups' => [
							'source' => [
								'fields' => [
									[
										'addon_style'=> [
											'type'   => 'select',
											'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_STYLE'),
											'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_STYLE_DESC'),
											'values' => [
												'ticker'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_TICKER'),
												'scroller' => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER'),
												'carousel' => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_CAROUSEL'),
											],
											'std' => 'ticker',
											'inline' => true,
										],
						
										'resource' => [
											'type'   => 'select',
											'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_RESOURCE'),
											'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_RESOURCE_DESC'),
											'values' => [
												'article' => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_RESOURCE_ARTICLE'),
												'k2'      => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_RESOURCE_K2'),
											],
											'std' => 'article',
											'inline' => true,
										],
										
										'catid'=> [
											'type'     => 'category',
											'title'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_CATID'),
											'desc'     => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_CATID_DESC'),
											'depends'  => ['resource'=>'article'],
											'multiple' => true,
										],
										
										'k2catid'=> [
											'type'     => 'select',
											'title'    => Text::_('COM_SPPAGEBUILDER_ADDON_K2_CATID'),
											'desc'     => Text::_('COM_SPPAGEBUILDER_ADDON_K2_CATID_DESC'),
											'depends'  => ['resource'=>'k2'],
											'values'   => SpPgaeBuilderBase::k2CatList(),
											'multiple' => true,
										],
										
										'ordering'=> [
											'type'   => 'select',
											'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_ORDERING'),
											'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_ORDERING_DESC'),
											'values' => [
												'latest'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_ORDERING_LATEST'),
												'oldest'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_ORDERING_OLDEST'),
												'hits'     => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_ORDERING_POPULAR'),
												'featured' => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_ORDERING_FEATURED'),
											],
											'std' => 'latest',
											'inline' => true,
										],
										
										'article_scroll_limit'=> [
											'type'  => 'slider',
											'title' => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_LIMIT'),
											'desc'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_LIMIT_DESC'),
											'min'   => 1,
											'max'   => 100,
											'std'   => 12
										],
									],
								],
							],

							'options' => [
								'fields' => [
									[
										'number_of_items' => [
											'type'    => 'slider',
											'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARTICLES_NUMBER'),
											'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARTICLES_NUMBER_DESC'),
											'min'	  => 1,
											'max'	  => 48,
											'std'     => 3,
											'depends' => [['addon_style', '!=', 'ticker']],
										],
						
										'number_of_items_tab' => [
											'type'    => 'slider',
											'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARTICLES_NUMBER_TAB'),
											'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARTICLES_NUMBER_TAB_DESC'),
											'min'	  => 1,
											'max'	  => 48,
											'std'     => 2,
											'depends' => [['addon_style', '=', 'carousel']],
										],
						
										'number_of_items_mobile' => [
											'type'    => 'slider',
											'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARTICLES_NUMBER_MOB'),
											'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARTICLES_NUMBER_MOB_DESC'),
											'min'	  => 1,
											'max'	  => 48,
											'std'     => 1,
											'depends' => [['addon_style', '=', 'carousel']],
										],
										
										'move_slide' => [
											'type'    => 'slider',
											'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_MOVE_ARTICLES'),
											'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_MOVE_ARTICLES_DESC'),
											'min'	  => 1,
											'max'	  => 16,
											'std'     => 1,
											'depends' => [
												['addon_style', '!=', 'ticker'],
												['addon_style', '!=', 'carousel'],
											],
										],
						
										'slide_speed'=> [
											'type'  => 'slider',
											'title' => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_SPEED'),
											'desc'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_SPEED_DESC'),
											'std'   => 500,
										],
						
										'carousel_autoplay'=> [
											'type'    => 'checkbox',
											'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_JS_SLIDER_AUTOPLAY'),
											'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_JS_SLIDER_AUTOPLAY_DESC'),
											'std'     => 0,
											'depends' => [
												['addon_style', '=', 'carousel'],
											],
										],
										
										'carousel_touch'=> [
											'type'    => 'checkbox',
											'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ENABLE_DRAGGING'),
											'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_CAROUSEL_DRAG_DESC'),
											'std'     => 0,
											'depends' => [
												['addon_style', '=', 'carousel'],
											],
										],
						
										'carousel_arrow'=> [
											'type'    => 'checkbox',
											'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ENABLE_ARROW_CONTROLLERS'),
											'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ENABLE_ARROW_CONTROLLERS_DESC'),
											'std'     => 0,
											'depends' => [
												['addon_style', '=', 'carousel'],
											],
										],
						
										'image_bg'=> [
											'type'   => 'checkbox',
											'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_IMAGE_BG'),
											'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_IMAGE_BG_DESC'),
											'values' => [
												0 => Text::_('NO'),
												1 => Text::_('YES')
											],
											'std'     => 0,
											'depends' => [
												['addon_style', '!=', 'ticker'],
												['addon_style', '!=', 'carousel'],
											]
										],

										'advanced_settings' => [
											'type'   => 'advancedsettings',
											'title'  => Text::_('More Options'),
											'buttonText' => 'Options',
											'buttonIcon' => 'cog',
										],
									],
								],
							],
						],
					],
				],
			],
		],
		
		'attr'       => [
			'general' => [
				'separator_options'=> [
					'type'  => 'separator',
					'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_ADDON_OPTIONS')
                ],

				'ticker_heading'=> [
					'type'    => 'text',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_DESC'),
					'std'     => 'Breaking News',
					'depends' => [
						['addon_style', '!=', 'scroller'],
						['addon_style', '!=', 'carousel'],
                    ]
                ],

				'ticker_heading_width'=> [
					'type'       => 'slider',
					'title'      => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_WIDTH'),
					'desc'       => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_WIDTH_DESC'),
					'max'        => 100,
					'std'        => '',
					'responsive' => true,
					'depends'    => [
						['addon_style', '!=', 'carousel'],
                    ]
                ],

				'ticker_heading_fontsize'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_FONTSIZE'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_FONTSIZE_DESC'),
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
					'max' => 200,
					'std' => '',
                ],

				'ticker_heading_font_weight' => [
					'type'    => 'select',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_FONT_WEIGHT'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_FONT_WEIGHT_DESC'),
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
					'values'=> [
						100 => 100,
						200 => 200,
						300 => 300,
						400 => 400,
						500 => 500,
						600 => 600,
						700 => 700,
						800 => 800,
						900 => 900,
                    ],
					'std' => '',
                ],

				'heading_date_font_family'=> [
					'type'    => 'fonts',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_HEADING_FONT_FAMILY'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_HEADING_FONT_FAMILY_DESC'),
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
					'selector'=> [
						'type' => 'font',
						'font' => '{{ VALUE }}',
						'css'  => ' h2 { font-family: "{{ VALUE }}"; }'
                    ]
                ],

				'show_shape'=> [
					'type'    => 'checkbox',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_SHAPE'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_SHAPE_DESC'),
					'depends' => [
						['addon_style', '!=', 'scroller'],
						['addon_style', '!=', 'carousel'],
                    ],
					'values'=> [
						0 => Text::_('NO'),
						1 => Text::_('YES')
                    ],
					'std' => 1,
                ],

				'heading_letter_spacing'=> [
					'type'    => 'number',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_LETTER_SPACING'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_LETTER_SPACING_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['addon_style', '!=', 'carousel'],
                    ]
                ],

				'heading_shape'=> [
					'type'   => 'select',
					'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_SHAPE'),
					'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HEADING_SHAPE_DESC'),
					'values' => [
						'arrow'         => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_ARROW_SHAPE'),
						'slanted-left'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_SLANTED_L_SHAPE'),
						'slanted-right' => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_SLANTED_R_SHAPE')
                    ],
					'std'     => 'arrow',
					'depends' => [
						['addon_style', '!=', 'scroller'],
						['show_shape', '!=', 0],
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'left_side_bg'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_LEFT_BG'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_LEFT_BG_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'left_text_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_LEFT_TEXT_COLOR'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_LEFT_TEXT_COLOR_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'overlap_date_text'=> [
					'type'   => 'checkbox',
					'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT'),
					'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT_DESC'),
					'values' => [
						0 => Text::_('NO'),
						1 => Text::_('YES')
                    ],
					'std'     => 0,
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['addon_style', '!=', 'carousel'],
                    ]
                ],

				'overlap_text_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT_COLOR'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT_COLOR_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['overlap_date_text', '!=', 0],
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'overlap_text_font_size'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT_SIZE'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT_SIZE_DESC'),
					'max'     => 200,
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['overlap_date_text', '!=', 0],
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'overlap_text_right'=> [
					'type'    => 'number',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT_RIGHT'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_OVERLAP_TEXT_RIGHT_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['overlap_date_text', '!=', 0],
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'content_bg'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_CONTENT_BG'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_CONTENT_BG_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'right_title_font_size'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_TITLE_SIZE'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_TITLE_SIZE_DESC'),
					'max'     => 200,
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'content_title_font_weight' => [
					'type'   => 'select',
					'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_HEADING_FONT_WEIGHT'),
					'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_HEADING_FONT_WEIGHT_DESC'),
					'values' => [
						100 => 100,
						200 => 200,
						300 => 300,
						400 => 400,
						500 => 500,
						600 => 600,
						700 => 700,
						800 => 800,
						900 => 900,
                    ],
					'std'     => 700,
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'content_font_family'=> [
					'type'     => 'fonts',
					'title'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_CONTENT_FONT_FAMILY'),
					'desc'     => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_CONTENT_FONT_FAMILY_DESC'),
					'selector' => [
						'type' => 'font',
						'font' => '{{ VALUE }}',
						'css'  => ' h2 { font-family: "{{ VALUE }}"; }'
                    ],
					'depends'=> [
						['addon_style', '!=', 'carousel'],
                    ],
                ],
				'title_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_TITLE_COLOR'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_TITLE_COLOR_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'show_intro'=> [
					'type'    => 'checkbox',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_SHOW_INTRO'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_SHOW_INTRO_DESC'),
					'std'     => 1,
					'depends' => [
						['addon_style', '=', 'carousel'],
                    ],
                ],

				'intro_limit'=> [
					'type'    => 'number',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_INTRO_LIMIT'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLES_INTRO_LIMIT_DESC'),
					'std'     => 100,
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['show_intro', '!=', 0],
                    ]
                ],

				'content_fontsize'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_CONTENT_FONTSIZE'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_CONTENT_FONTSIZE_DESC'),
					'max'     => 200,
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'ticker_date_time'=> [
					'type'   => 'checkbox',
					'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_DATE_TIME'),
					'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_DATE_TIME_DESC'),
					'values' => [
						0 => Text::_('NO'),
						1 => Text::_('YES')
                    ],
					'std'     => 0,
					'depends' => [
						['addon_style', '!=', 'scroller'],
						['addon_style', '!=', 'carousel'],
                    ]
                ],

				'ticker_date_hour'=> [
					'type'   => 'checkbox',
					'title'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HOUR'),
					'desc'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_TICKER_HOUR_DESC'),
					'values' => [
						0 => Text::_('NO'),
						1 => Text::_('YES')
                    ],
					'std'     => 0,
					'depends' => [
						['addon_style', '!=', 'scroller'],
						['addon_style', '!=', 'carousel'],
                    ]
                ],

				'text_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_TEXT_COLOR'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_TEXT_COLOR_DESC'),
					'std'     => '',
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				'item_bottom_gap'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_BOTTOM_GAP'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_BOTTOM_GAP_DESC'),
					'max'     => 200,
					'std'     => 1,
					'depends' => [
						['addon_style', '!=', 'ticker'],
						['addon_style', '!=', 'carousel'],
                    ],
                ],

				//Carousel Style
				'carousel_styles'=> [
					'type'    => 'buttons',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_CONTENT_STYLE_OPTION'),
					'depends' => [
						['addon_style', '=', 'carousel'],
                    ],
					'std'    => 'date',
					'values' => [
						[
							'label' => 'Date',
							'value' => 'date'
                        ],
						[
							'label' => 'Title',
							'value' => 'title'
                        ],
						[
							'label' => 'Text',
							'value' => 'text'
                        ],
						[
							'label' => 'Category',
							'value' => 'category'
                        ],
                    ],
                ],
				'carousel_date_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_COLOR'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'date'],
                    ],
                ],
				'carousel_date_font_size'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_SIZE'),
					'max'     => 100,
					'std'     => '',
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'date'],
                    ],
                ],
				'carousel_date_font_family'=> [
					'type'     => 'fonts',
					'title'    => Text::_('COM_SPPAGEBUILDER_ADDON_TITLE_FONT_FAMILY'),
					'selector' => [
						'type' => 'font',
						'font' => '{{ VALUE }}',
						'css'  => '.sppb-articles-carousel-meta-date { font-family: "{{ VALUE }}"; }'
                    ],
					'depends'=> [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'date'],
                    ],
                ],
				'carousel_date_font_weight' => [
					'type'   => 'select',
					'title'  => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_WEIGHT'),
					'values' => [
						100 => 100,
						200 => 200,
						300 => 300,
						400 => 400,
						500 => 500,
						600 => 600,
						700 => 700,
						800 => 800,
						900 => 900,
                    ],
					'std'     => 700,
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'date'],
                    ],
                ],

				//Carousel Title
				'carousel_title_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_COLOR'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'title'],
                    ],
                ],
				'carousel_title_font_size'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_SIZE'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'title'],
                    ],
					'max'        => 100,
					'responsive' => true,
                ],
				'carousel_title_font_family'=> [
					'type'     => 'fonts',
					'title'    => Text::_('COM_SPPAGEBUILDER_ADDON_TITLE_FONT_FAMILY'),
					'selector' => [
						'type' => 'font',
						'font' => '{{ VALUE }}',
						'css'  => '.sppb-articles-carousel-link { font-family: "{{ VALUE }}"; }'
                    ],
					'depends'=> [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'title'],
                    ],
                ],
				'carousel_title_font_weight' => [
					'type'   => 'select',
					'title'  => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_WEIGHT'),
					'values' => [
						100 => 100,
						200 => 200,
						300 => 300,
						400 => 400,
						500 => 500,
						600 => 600,
						700 => 700,
						800 => 800,
						900 => 900,
                    ],
					'depends'=> [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'title'],
                    ],
                ],
				'carousel_title_margin'=> [
					'type'    => 'margin',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_MARGIN'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'title'],
                    ],
					'responsive' => true,
                ],

				//Carousel Text
				'carousel_text_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_COLOR'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'text'],
                    ],
                ],
				'carousel_text_font_size'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_SIZE'),
					'max'     => 100,
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'text'],
                    ],
					'responsive' => true,
                ],
				'carousel_text_font_family'=> [
					'type'     => 'fonts',
					'title'    => Text::_('COM_SPPAGEBUILDER_ADDON_TITLE_FONT_FAMILY'),
					'selector' => [
						'type' => 'font',
						'font' => '{{ VALUE }}',
						'css'  => '.sppb-articles-carousel-introtext { font-family: "{{ VALUE }}"; }'
                    ],
					'depends'=> [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'text'],
                    ],
                ],
				'carousel_text_font_weight' => [
					'type'   => 'select',
					'title'  => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_WEIGHT'),
					'values' => [
						100 => 100,
						200 => 200,
						300 => 300,
						400 => 400,
						500 => 500,
						600 => 600,
						700 => 700,
						800 => 800,
						900 => 900,
                    ],
					'depends'=> [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'text'],
                    ],
                ],

				//Carousel category
				'carousel_category_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_COLOR'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'category'],
                    ],
                ],
				'carousel_category_font_size'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_SIZE'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'category'],
                    ],
					'max'        => 100,
					'responsive' => true,
                ],
				'carousel_category_font_family'=> [
					'type'     => 'fonts',
					'title'    => Text::_('COM_SPPAGEBUILDER_ADDON_TITLE_FONT_FAMILY'),
					'selector' => [
						'type' => 'font',
						'font' => '{{ VALUE }}',
						'css'  => '.sppb-articles-carousel-meta-category a { font-family: "{{ VALUE }}"; }'
                    ],
					'depends'=> [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'category'],
                    ],
                ],
				'carousel_category_font_weight' => [
					'type'    => 'select',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_FONT_WEIGHT'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'category'],
                    ],
					'values'=> [
						100 => 100,
						200 => 200,
						300 => 300,
						400 => 400,
						500 => 500,
						600 => 600,
						700 => 700,
						800 => 800,
						900 => 900,
                    ],
                ],
				'carousel_category_margin'=> [
					'type'    => 'margin',
					'title'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_MARGIN'),
					'depends' => [
						['addon_style', '=', 'carousel'],
						['carousel_styles', '=', 'category'],
                    ],
					'responsive' => true,
                ],
				
				//Caousel Global
				'carousel_content_separator'=> [
					'type'    => 'separator',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_CAROUSEL_CONTENT_AREA_STYLE'),
					'depends' => [
						['addon_style', '=', 'carousel'],
                    ],
                ],
				'carousel_content_bg'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_CONTENT_BG'),
					'depends' => [
						['addon_style', '=', 'carousel'],
                    ],
                ],
				'carousel_content_padding'=> [
					'type'    => 'padding',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_CONTENT_PADDING'),
					'depends' => [
						['addon_style', '=', 'carousel'],
                    ],
					'responsive' => true,
                ],
				'carousel_content_align'=> [
					'type'    => 'select',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_TEXT_ALIGN'),
					'depends' => [
						['addon_style', '=', 'carousel'],
                    ],
					'values'=> [
						'sppb-text-left'   => Text::_('COM_SPPAGEBUILDER_GLOBAL_LEFT'),
						'sppb-text-center' => Text::_('COM_SPPAGEBUILDER_GLOBAL_CENTER'),
						'sppb-text-right'  => Text::_('COM_SPPAGEBUILDER_GLOBAL_RIGHT'),
                    ],
                ],

				'border_size'=> [
					'type'  => 'slider',
					'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_BORDER_WIDTH'),
					'desc'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_BORDER_SIZE_DESC'),
					'std'   => 0,
                ],

				'border_color'=> [
					'type'  => 'color',
					'title' => Text::_('COM_SPPAGEBUILDER_GLOBAL_BORDER_COLOR'),
					'desc'  => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_BORDER_COLOR_DESC'),
                ],

				'border_radius'=> [
					'type'    => 'slider',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_BORDER_RADIUS'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_BORDER_RADIUS_DESC'),
					'std'     => 0,
					'depends' => [
						['addon_style', '!=', 'scroller'],
						['addon_style', '!=', 'carousel'],
                    ]
                ],

				'arrow_color'=> [
					'type'    => 'color',
					'title'   => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARROW_COLOR'),
					'desc'    => Text::_('COM_SPPAGEBUILDER_ADDON_ARTICLE_SCROLLER_ARROW_COLOR_DESC'),
					'depends' => [
						['addon_style', '!=', 'scroller'],
						['addon_style', '!=', 'carousel'],
                    ],
                ],
            ],
        ],
    ]
);
	