<?php
$vc_layout_sub_controls = array(
  array( 'link_post', __( 'Link to post', __PW_POST_LAYOUT_TEXTDOMAN__  ) ),
  array( 'no_link', __( 'No link', __PW_POST_LAYOUT_TEXTDOMAN__  ) ),
  array( 'link_image', __( 'Link to bigger image', __PW_POST_LAYOUT_TEXTDOMAN__  ) )
);
vc_map( array(
            "name" => __("PW Slider", __PW_POST_LAYOUT_TEXTDOMAN__ ),
            "description" => __("Slider Post Layout", __PW_POST_LAYOUT_TEXTDOMAN__ ),
            "base" => "pw_vc_slider",
            "class" => "",
            "controls" => "full",
            "icon" => PW_PS_PL_URL_CAROUSEL.'/assets/images/icons/slider.png',
            "category" => __('PW Post Layout', __PW_POST_LAYOUT_TEXTDOMAN__ ),
            //'admin_enqueue_js' => array(plugins_url('vc_extend.js', __FILE__)), // This will load js file in the VC backend editor
           // 'admin_enqueue_css' => array(plugins_url('/assets/css/icon-styles.css', __FILE__)), // This will load css file in the VC backend editor
            "params" => array(
							array(
								"type" => "textfield",
								
								"class" => "",
								"heading" => __("Title", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_title",
								"value" => '',
								"description" => __("Enter Title.", __PW_POST_LAYOUT_TEXTDOMAN__ )
							),
							array(
								'type' => 'loop',
								'heading' => __( 'Your Query', __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'param_name' => 'pw_query',
								'settings' => array(
								  'size' => array( 'hidden' => false, 'value' => 10 ),
								  'order_by' => array( 'value' => 'date' ),
								),
								'description' => __( 'Create WordPress loop, to populate content from your site.', __PW_POST_LAYOUT_TEXTDOMAN__ )
							),
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Link Target",__PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_link_target",
								"value" =>array( __( 'Same window', __PW_POST_LAYOUT_TEXTDOMAN__ ) => '_self', __( 'New window', __PW_POST_LAYOUT_TEXTDOMAN__ ) => "_blank"),
								"description" => __("Choose link target", __PW_POST_LAYOUT_TEXTDOMAN__ )
							),						
	
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Slider Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_slider_type",
								"value" =>array(
									__("BXSlider", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"bxslider",
									__("Elastic Slider", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"elastic"
									),
								"description" => __("Choose Slider Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							),
					
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Caption Type - w;p;l;o;c;k;e;r;.;c;o;m", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_slider_caption_type",
								"value" =>array(
									__("none/hide", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"none",
									__("Absolute", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"absolute",
									__("Bottom of Image", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"bottom_image"
									),
								"description" => __("Choose Elastic Slider Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_slider_type',
									'value' => array( 'bxslider' )
								)
							),
							
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Elastic Slider Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_slider_elastic_animation",
								"value" =>array(
									__("Sides", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"sides",
									__("Center", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"center"
									),
								"description" => __("Choose Elastic Slider Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_slider_type',
									'value' => array( 'elastic' )
								)
							),
							
							
							array(
								"type" => "pw_number",
								
								"class" => "",
								"heading" => __("Excerpt/Content Length", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_excerpt_length",
								"value" => '',
								"suffix" =>"",
								"min"=>"0",
								"description" => __("Enter number of Excerpt length", __PW_POST_LAYOUT_TEXTDOMAN__ ),
									
							),
							array(
								'type' => 'textfield',
								'heading' => __( 'Thumbnail size', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_image_thumb_size',
								'description' => __( 'Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								
							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide Date', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_hide_date',
								'description' => __( 'Hide post Date.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
							  	'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'on' ),
								'dependency' => array(
										'element' => 'pw_skin_type',
										'value' => array( 'pl-gridskin-one' )
								),	
							),
							array(
								"type" => "textfield",
								
								"class" => "",
								"heading" => __("Date Format", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_date_format",
								"value" => '',
								"description" => __("Enter Date Format.Show More Info <a href='http://codex.wordpress.org/Formatting_Date_and_Time' target='_new'>Here</a>", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							),

							array(
								"type" => "colorpicker",
								
								"class" => "",
								"heading" => __("Slider Overlay Background", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_slider_overlay_background",
								"value" => '',
								"description" => __("Choose Overlay Background for slider.Leave blank to ignore", __PW_POST_LAYOUT_TEXTDOMAN__ ),
														
							),	
							
						
							array(
								"type" => "pw_googlefonts",
								
								"class" => "",
								"heading" => __("Title Font Family", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_title_font_family",
								"value" => '',
								"description" => __("Choose font.", __PW_POST_LAYOUT_TEXTDOMAN__ )
							),
							array(
								"type" => "pw_number",
								"class" => "",
								"heading" => __("Link Font Size", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_slider_link_fontsize",
								"value" => '',
								"suffix" =>"",
								"min"=>"13",
								"description" => __("Enter Slider Link Font Size", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							),
							array(
								"type" => "colorpicker",
								
								"class" => "",
								"heading" => __("Link Color", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_link_color",
								"value" => '',
								"description" => __("Choose Link Color.Leave blank to ignore", __PW_POST_LAYOUT_TEXTDOMAN__ ),
															
							),	
							array(
								"type" => "colorpicker",
								
								"class" => "",
								"heading" => __("Link Hover Color", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_link_hover_color",
								"value" => '',
								"description" => __("Choose Link Hover Color.Leave blank to ignore", __PW_POST_LAYOUT_TEXTDOMAN__ ),
												
							),
							array(
								"type" => "pw_googlefonts",
								
								"class" => "",
								"heading" => __("Excerpt Font Family", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_excerpt_font_family",
								"value" => '',
								"description" => __("Choose font.", __PW_POST_LAYOUT_TEXTDOMAN__ )
							),
							array(
								"type" => "pw_number",
								
								"class" => "",
								"heading" => __("Excerpt Font Size", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_slider_excerpt_fontsize",
								"value" => '',
								"suffix" =>"",
								"min"=>"13",
								"description" => __("Enter Slider Excerpt Font Size", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							),
								
							array(
								"type" => "colorpicker",
								
								"class" => "",
								"heading" => __("Excerpt Color", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_excerpt_color",
								"value" => '',
								"description" => __("Choose Excerpt Color.Leave blank to ignore", __PW_POST_LAYOUT_TEXTDOMAN__ ),								
							),	
							
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("speed", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_speed",
								"value" =>array(
									__("1 Second", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"1000",
									__("2 Seconds", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"2000",
									__("3 Seconds", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"3000",
									__("4 Seconds", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"4000",
									__("5 Seconds", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"5000"
									),
								"description" => __("Choose speed", __PW_POST_LAYOUT_TEXTDOMAN__ ),

							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide pagination control', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_slider_hide_pagination_control',
								'description' => __( 'If YES pagination control will be removed.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								
								'dependency' => array(
									'element' => 'pw_slider_type',
									'value' => array( 'bxslider' )
								)

							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide prev/next buttons', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_slider_hide_prev_next_buttons',
								'description' => __( 'If "YES" prev/next control will be removed.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								
								'dependency' => array(
									'element' => 'pw_slider_type',
									'value' => array( 'bxslider' )
								)

							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Slider loop', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_slider_loop',
								'description' => __( 'Enables loop mode.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								
								
							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide Excerpt', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_hide_excerpt',
								'description' => __( 'If "YES" Slider Excerpt will be removed.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								
							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide Show More', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_hide_readmore',
								'description' => __( 'If "YES" Readmore Link in slider will be removed.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								
								'dependency' => array(
									'element' => 'pw_slider_type',
									'value' => array( 'bxslider' )
								)

							),
							array(
								"type" => "textfield",
								
								"class" => "",
								"heading" => __("Read More Translate", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_readmore_translate",
								"value" => __("Read More", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"description" => __("set Translate for 'Read More' button", __PW_POST_LAYOUT_TEXTDOMAN__ )
							)
						)
			) );
			
?>