<?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 Carousel", __PW_POST_LAYOUT_TEXTDOMAN__ ),
            "description" => __("Carousel Post Layout", __PW_POST_LAYOUT_TEXTDOMAN__ ),
            "base" => "pw_vc_carousel",
            "class" => "",
            "controls" => "full",
            "icon" => PW_PS_PL_URL_CAROUSEL.'/assets/images/icons/carousel.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" => __("Carousel Type" , __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_post_layout",
								"value" =>array(
									__("Vertical Carousel" , __PW_POST_LAYOUT_TEXTDOMAN__ )=>"vertical_carousel",
									__("Horizontal Carousel" , __PW_POST_LAYOUT_TEXTDOMAN__ )=>"horizontal_carousel",
									),
								"description" => __("Choose Carousel Post Layout", __PW_POST_LAYOUT_TEXTDOMAN__),
							),

							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Carousel Skin Type",__PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_skin_type",
								"value" =>array(
									__("Skin One", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gridskin-one",
									__("Skin Two" , __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gridskin-two"
									),
								"description" => __("Choose Carousel Skin Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							
							),
							
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Carousel Effect",__PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_grid_skin_effect",
								"value" =>array(
									__("Effect One", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-1",
									__("Effect Two", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-2",
									__("Effect Three", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-3",
									__("Effect Four", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-4",
									__("Effect 5", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-sadie",
									__("Effect 6", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-roxy",
									__("Effect 7", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-bubba",
									__("Effect 8", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-romeo",
									__("Effect 9", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-duke",
									__("Effect 10", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-oscar",
									__("Effect 11", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-marley",
									__("Effect 12", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-ruby",
									__("Effect 13", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-milo",
									__("Effect 14", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-dexter",
									__("Effect 15", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-sarah",
									__("Effect 16", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-chico",
									__("Effect 17", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-apollo",
									__("Effect 18", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-lexi",
									__("Effect 19", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-jazz",
									__("Effect 20", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-gst-effect-ming",
									),
								"description" => __("choose Effect type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-two' )
								),	
							),
							
														
							/* TEXT */
							array(
							  'type' => 'sorted_list',
							  'heading' => __( 'Teaser layout', __PW_POST_LAYOUT_TEXTDOMAN__ ),
							  'param_name' => 'pw_teasr_layout_img',
							  'description' => __( 'Control teasers look. Enable blocks and place them in desired order. Note: This setting can be overrriden on post to post basis.', __PW_POST_LAYOUT_TEXTDOMAN__ ),
							  'value' => 'title,image,text',
							  'options' => array(
								  array( 'image', __( 'Thumbnail', __PW_POST_LAYOUT_TEXTDOMAN__ ), $vc_layout_sub_controls ),
								  array( 'title', __( 'Title', __PW_POST_LAYOUT_TEXTDOMAN__  ), $vc_layout_sub_controls ),
								  array( 'text', __( 'Text', __PW_POST_LAYOUT_TEXTDOMAN__  ), array(
									  array( 'excerpt', __( 'Teaser/Excerpt', __PW_POST_LAYOUT_TEXTDOMAN__  ) ),
									  array( 'text', __( 'Full content', __PW_POST_LAYOUT_TEXTDOMAN__  ) )
								  ) ),
								  array( 'link', __( 'Read more link', __PW_POST_LAYOUT_TEXTDOMAN__  ) )
							  ),
								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-one' )
								),
						 	),
							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__ ),
							),
							
							
							/*  Carousel  */
							array(
								"type" => "pw_number",
								
								"class" => "",
								"heading" => __("Item Per View", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_carousel_pre_view",
								"value" => '',
								"suffix" =>"",
								"min"=>"0",
								"description" => __("Enter number of item per view.<strong>Recommended:</strong> Enter number small than post count", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							
							),
							
							array(
								"type" => "pw_number",
								
								"class" => "",
								"heading" => __("Min Slides", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_carousel_min_slides",
								"value" => '',
								"suffix" =>"",
								"min"=>"1",
								"description" => __("In order to setup a responsive carousel, we need to supply Min Slides values", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_post_layout',
									'value' => array( 'horizontal_carousel' )
								),
							
							),
							
							array(
								"type" => "pw_number",
								
								"class" => "",
								"heading" => __("Slide Width", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_carousel_slide_width",
								"value" => '',
								"suffix" =>"",
								"min"=>"0",
								"description" => __("In order to setup a responsive carousel, we need to supply Min Slide Width", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_post_layout',
									'value' => array( 'horizontal_carousel' )
								),
							
							),

							/*  'vertical_carousel','horizontal_carousel','grid','list','boxes','image' */
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Image Effect", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_image_effect",
								"value" =>array(
									__("None", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"none",
									__("Zoom In", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"zoomin-eff",
									__("Zoom Out", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"zoomout-eff",
									__("Rotate Right", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"roundright-eff"
									),
								"description" => __("Choose image effect", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide Overly', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_show_overlay',
								'description' => __( 'Hide Overlay.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
							  	'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								'dependency' => array(
										'element' => 'pw_skin_type',
										'value' => array( 'pl-gridskin-one' )
								),	
							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide Zoom Icon', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_show_zoom_icon',
								'description' => __( 'Hide Zoom Icon.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
							  	'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								'dependency' => array(
										'element' => 'pw_skin_type',
										'value' => array( 'pl-gridskin-one' )
								),	
							),
							array(
								'type' => 'checkbox',
								'heading' => __( 'Hide Link Icon', __PW_POST_LAYOUT_TEXTDOMAN__  ),
								'param_name' => 'pw_show_link_icon',
								'description' => __( 'Hide Link Icon.', __PW_POST_LAYOUT_TEXTDOMAN__  ),
							  	'value' => array( __( 'Yes, please', __PW_POST_LAYOUT_TEXTDOMAN__  ) => 'yes' ),
								'dependency' => array(
										'element' => 'pw_skin_type',
										'value' => array( 'pl-gridskin-one' )
								),	
							),
							array(
								"type" => "dropdown",
								"class" => "",
								"heading" => __("Icon Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_icon_type",
								"value" =>array(
									__("None", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"none",
									__("Squar", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"squar-icon",
									__("Round", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"round-icon",
									),
								"description" => __("Choose icon effect", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-one' )
								),	
							),
							array(
								"type" => "dropdown",
								
								"class" => "",
								"heading" => __("Icon Effect", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_icon_effect",
								"value" =>array(
									__("None", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"none",
									__("Dropdown", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-dropup",
									__("DropUp", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-dropdown",
									__("Scale" , __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-scale-eff"
									),
								"description" => __("Choose icon effect", __PW_POST_LAYOUT_TEXTDOMAN__ ),
							),

							
							array(
								"type" => "colorpicker",
								
								"class" => "",
								"heading" => __("Backgroud Color", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_back_color",
								"value" => '',
								"description" => __("Choose Background Color.Leave blank to ignore", __PW_POST_LAYOUT_TEXTDOMAN__ ),	

								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-one' )
								),							
							),
						
							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" => __("Title Font Size", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_title_font_size",
								"value" => '',
								"suffix" =>"",
								"min"=>"14",
								"description" => __("Enter Title 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" => __("Meta Font Family", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_meta_font_family",
								"value" => '',
								"description" => __("Choose font.", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-one' )
								),
							),
							array(
								"type" => "pw_number",
								"class" => "",
								"heading" => __("Meta Font Size", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_meta_font_size",
								"value" => '',
								"suffix" =>"",
								"min"=>"12",
								"description" => __("Enter Meta Font Size", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-one' )
								),	
							),	
							array(
								"type" => "colorpicker",
								
								"class" => "",
								"heading" => __("Meta Color", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_meta_color",
								"value" => '',
								"description" => __("Choose Meta Color.Leave blank to ignore", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-one' )
								),								
							),
							
							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_excerpt_font_size",
								"value" => '',
								"suffix" =>"",
								"min"=>"11",
								"description" => __("Enter 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" => __("Read More Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								"param_name" => "pw_readmore_type",
								"value" =>array(
									__("Type 1", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-permalink",
									__("Type 2", __PW_POST_LAYOUT_TEXTDOMAN__ )=>"pl-permalink-t2"
									),
								"description" => __("Choose Read More Type", __PW_POST_LAYOUT_TEXTDOMAN__ ),
								'dependency' => array(
									'element' => 'pw_skin_type',
									'value' => array( 'pl-gridskin-one' )
								),
							),
							
							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__ ),
							),
	

							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' ),
								

							),
							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' ),
								

							),
							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' ),
								
								
							),
							
						)
			) );			
?>