Current File : /home/kelaby89/muzza.fit/wp-content/themes/deadlift/config/vc-post-modules.php
<?php
/**
 * WPBakery Page Builder post modules
 *
 * @package WordPress
 * @subpackage Deadlift
 * @version 1.8.2
 */

if ( ! defined( 'ABSPATH' ) || ! class_exists( 'Wolf_Visual_Composer' ) || ! defined( 'WPB_VC_VERSION' ) ) {
	return;
}

$order_by_values = array(
	'',
	esc_html__( 'Date', 'deadlift' ) => 'date',
	esc_html__( 'ID', 'deadlift' ) => 'ID',
	esc_html__( 'Author', 'deadlift' ) => 'author',
	esc_html__( 'Title', 'deadlift' ) => 'title',
	esc_html__( 'Modified', 'deadlift' ) => 'modified',
	esc_html__( 'Random', 'deadlift' ) => 'rand',
	esc_html__( 'Comment count', 'deadlift' ) => 'comment_count',
	esc_html__( 'Menu order', 'deadlift' ) => 'menu_order',
);

$order_way_values = array(
	'',
	esc_html__( 'Descending', 'deadlift' ) => 'DESC',
	esc_html__( 'Ascending', 'deadlift' ) => 'ASC',
);

$shared_gradient_colors = ( function_exists( 'wvc_get_shared_gradient_colors' ) ) ? wvc_get_shared_gradient_colors() : array();
$shared_colors = ( function_exists( 'wvc_get_shared_colors' ) ) ? wvc_get_shared_colors() : array();

/**
 * Post Loop Module
 */
vc_map(
	array(
		'name' => esc_html__( 'Posts', 'deadlift' ),
		'description' => esc_html__( 'Display your posts using the theme layouts', 'deadlift' ),
		'base' => 'wvc_post_index',
		'category' => esc_html__( 'Content' , 'deadlift' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Index ID', 'deadlift' ),
					'value' => 'index-' . rand( 0,99999 ),
					'param_name' => 'el_id',
					'description' => esc_html__( 'A unique identifier for the post module (required).', 'deadlift' ),
				),

				array(
					'param_name' => 'post_display',
					'heading' => esc_html__( 'Post Display', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array_flip( apply_filters( 'deadlift_post_display_options', array(
						'standard' => esc_html__( 'Standard', 'deadlift' ),
					) ) ),
					'std' => 'grid',
					'admin_label' => true,
				),

				array(
					'param_name' => 'post_metro_pattern',
					'heading' => esc_html__( 'Metro Pattern', 'deadlift' ),
					'type' => 'dropdown',
					'value' => deadlift_get_metro_patterns(),
					'std' => 'auto',
					'dependency' => array( 'element' => 'post_display', 'value' => array( 'metro_modern_alt', 'metro' ) ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'post_alternate_thumbnail_position',
					'heading' => esc_html__( 'Alternate thumbnail position', 'deadlift' ),
					'type' => 'checkbox',
					'dependency' => array(
						'element' => 'post_display',
						'value' => array( 'lateral' )
					),
				),

				array(
					'param_name' => 'post_module',
					'heading' => esc_html__( 'Module', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'deadlift' ) => 'grid',
						esc_html__( 'Carousel', 'deadlift' ) => 'carousel',
					),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'post_display',
						'value' => array( 'grid_classic', 'grid_modern' )
					),
				),

				array(
					'param_name' => 'post_excerpt_length',
					'heading' => esc_html__( 'Post Excerpt Lenght', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Shorten', 'deadlift' ) => 'shorten',
						esc_html__( 'Full', 'deadlift' ) => 'full',
					),
					'dependency' => array(
						'element' => 'post_display',
						'value' => array( 'masonry' ),
					),
				),

				array(
					'param_name' => 'post_display_elements',
					'heading' => esc_html__( 'Elements', 'deadlift' ),
					'type' => 'checkbox',
					'value' => array(
						esc_html__( 'Thumbnail', 'deadlift' ) => 'show_thumbnail',
						esc_html__( 'Date', 'deadlift' ) => 'show_date',
						esc_html__( 'Text', 'deadlift' ) => 'show_text',
						esc_html__( 'Category', 'deadlift' ) => 'show_category',
						esc_html__( 'Author', 'deadlift' ) => 'show_author',
						esc_html__( 'Tags', 'deadlift' ) => 'show_tags',
						esc_html__( 'Extra Meta', 'deadlift' ) => 'show_extra_meta',
					),
					'std' => 'show_thumbnail,show_date,show_text,show_author,show_category',
					// 'dependency' => array(
					// 	'element' => 'post_display',
					// 	'value' => array( 'masonry', 'grid_classic', 'grid_modern', 'mosaic', 'metro', 'standard' ),
					// ),
					'description' => esc_html__( 'Note that some options may be ignored depending on the post display.', 'deadlift' ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'post_excerpt_type',
					'heading' => esc_html__( 'Post Excerpt Type', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'deadlift' ) => 'auto',
						esc_html__( 'Manual', 'deadlift' ) => 'manual',
					),
					'description' => sprintf(
						wp_kses_post( __( 'When using the manual excerpt, you must split your post using a "<a href="%s">More Tag</a>".', 'deadlift' ) ),
						esc_url( 'https://en.support.wordpress.com/more-tag/' )
					),
					'dependency' => array(
						'element' => 'post_display',
						'value' => array( 'standard', 'standard_modern' ),
					),
				),

				array(
					'param_name' => 'grid_padding',
					'heading' => esc_html__( 'Padding', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'deadlift' ) => 'yes',
						esc_html__( 'No', 'deadlift' ) => 'no',
					),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern', 'masonry_modern', 'offgrid' ),
						// value_not_equal_to
					),
				),

				// array(
				// 	'heading' => esc_html__( 'Category Filter', 'deadlift' ),
				// 	'param_name' => 'post_category_filter',
				// 	'type' => 'checkbox',
				// 	'admin_label' => true,
				// ),

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'deadlift' ) => 'none',
						esc_html__( 'Load More', 'deadlift' ) => 'load_more',
						esc_html__( 'Numeric Pagination', 'deadlift' ) => 'standard_pagination',
						esc_html__( 'Link to Blog Archives', 'deadlift' ) => 'link_to_blog',
					),
					'admin_label' => true,
					//'dependency' => array( 'element' => 'post_module', 'value' => array( 'grid' ) ),
				),

				array(
					'heading' => esc_html__( 'Animation', 'deadlift' ),
					'param_name' => 'item_animation',
					'type' => 'dropdown',
					'value' => array_flip( deadlift_get_animations() ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Posts Per Page', 'deadlift' ),
					'param_name' => 'posts_per_page',
					'type' => 'wvc_textfield',
					'value' => get_option( 'posts_per_page' ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
					'param_name' => 'inline_style',
					'type' => 'wvc_textfield',
					//'admin_label' => true,
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Offset', 'deadlift' ),
					'param_name' => 'offset',
					'description' => esc_html__( 'The amount of posts that should be skipped in the beginning of the query. If an offset is set, sticky posts will be ignored.', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
					'admin_label' => true,
				),

				array(
					'type' => 'checkbox',
					'heading' => esc_html__( 'Ignore Sticky Posts', 'deadlift' ),
					'param_name' => 'ignore_sticky_posts',
					'description' => esc_html__( 'It will still include the sticky posts but it will not prioritize them in the query.', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'checkbox',
					'heading' => esc_html__( 'Exclude Sticky Posts', 'deadlift' ),
					'description' => esc_html__( 'It will still exclude the sticky posts.', 'deadlift' ),
					'param_name' => 'exclude_sticky_posts',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Category', 'deadlift' ),
					'param_name' => 'category',
					'description' => esc_html__( 'Include only one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Category by ID', 'deadlift' ),
					'param_name' => 'category_exclude',
					'description' => esc_html__( 'Exclude only one or several categories. Paste category ID(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( '456, 756', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Tags', 'deadlift' ),
					'param_name' => 'tag',
					'description' => esc_html__( 'Include only one or several tags. Paste tag slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-tag, other-tag', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Tags by ID', 'deadlift' ),
					'param_name' => 'tag_exclude',
					'description' => esc_html__( 'Exclude only one or several tags. Paste tag ID(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( '456, 756', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Order by', 'deadlift' ),
					'param_name' => 'orderby',
					'value' => $order_by_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Select how to sort retrieved posts. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Sort order', 'deadlift' ),
					'param_name' => 'order',
					'value' => $order_way_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Designates the ascending or descending order. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'deadlift' ),
					'description' => esc_html__( 'By default, your last posts will be displayed. You can choose the posts you want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Post IDs', 'deadlift' ),
					'description' => esc_html__( 'You can choose the posts you don\'t want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'exclude_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'deadlift' ) => 'default',
						esc_html__( 'Two', 'deadlift' ) => 2,
						esc_html__( 'Three', 'deadlift' ) => 3,
						esc_html__( 'Four', 'deadlift' ) => 4,
						esc_html__( 'Six', 'deadlift' ) => 6,
						esc_html__( 'One', 'deadlift' ) => 1,
					),
					'std' => 'default',
					'admin_label' => true,
					'description' => esc_html__( 'By default, columns are set automatically depending on the container\'s width. Set a column count here to overwrite the default behavior.', 'deadlift' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern', 'lateral', 'list' ),
					),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Extra class name', 'deadlift' ),
					'param_name' => 'el_class',
					'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'deadlift' ),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),
			),
			//),

			// 	array(
			// 		'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
			// 		'param_name' => 'inline_style',
			// 		'type' => 'wvc_textfield',
			// 		//'admin_label' => true,
			// 	),
			// ),
		//)
	)
);
class WPBakeryShortCode_Wvc_Post_Index extends WPBakeryShortCode {}

if ( class_exists( 'Wolf_Portfolio' ) ) {

/**
 * Work Loop Module
 */
vc_map(
	array(
		'name' => esc_html__( 'Programs', 'deadlift' ),
		'description' => esc_html__( 'Display your programs using the theme layouts', 'deadlift' ),
		'base' => 'wvc_work_index',
		'category' => esc_html__( 'Content' , 'deadlift' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Index ID', 'deadlift' ),
					'value' => 'index-' . rand( 0,99999 ),
					'param_name' => 'el_id',
					'description' => esc_html__( 'A unique identifier for the post module (required).', 'deadlift' ),
				),

				array(
					'param_name' => 'work_display',
					'heading' => esc_html__( 'Work Display', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array_flip( apply_filters( 'deadlift_work_display_options', array(
						'grid' => esc_html__( 'Grid', 'deadlift' ),
					) ) ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'work_module',
					'heading' => esc_html__( 'Module', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'deadlift' ) => 'grid',
						esc_html__( 'Carousel', 'deadlift' ) => 'carousel',
					),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'work_display',
						'value' => array( 'grid' )
					),
				),

				array(
					'param_name' => 'work_thumbnail_size',
					'heading' => esc_html__( 'Thumbnail Size', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Default Thumbnail', 'deadlift' ) => 'standard',
						esc_html__( 'Landscape', 'deadlift' ) => 'landscape',
						esc_html__( 'Square', 'deadlift' ) => 'square',
						esc_html__( 'Portrait', 'deadlift' ) => 'portrait',
					),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'work_display',
						'value' => array( 'grid' ),
						// value_not_equal_to
					),
				),

				array(
					'param_name' => 'work_layout',
					'heading' => esc_html__( 'Layout', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Classic', 'deadlift' ) => 'standard',
						esc_html__( 'Overlay', 'deadlift' ) => 'overlay',
						//esc_html__( 'Flip Box', 'deadlift' ) => 'flip-box',
					),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'work_display',
						'value_not_equal_to' => array( 'list_minimal', 'text-background' )
					),
				),

				array(
					'param_name' => 'grid_padding',
					'heading' => esc_html__( 'Padding', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'deadlift' ) => 'yes',
						esc_html__( 'No', 'deadlift' ) => 'no',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ) ),
				),

				array(
					'heading' => esc_html__( 'Caption Text Alignement', 'deadlift' ),
					'param_name' => 'caption_text_alignment',
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Center', 'deadlift' ) => 'center',
						esc_html__( 'Left', 'deadlift' ) => 'left',
						esc_html__( 'Right', 'deadlift' ) => 'right',
					),
					'dependency' => array(
						'element' => 'work_display',
						'value_not_equal_to' => array( 'list_minimal', 'text-background' )
					),
				),

				array(
					'heading' => esc_html__( 'Caption Vertical Alignement', 'deadlift' ),
					'param_name' => 'caption_v_align',
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Middle', 'deadlift' ) => 'middle',
						esc_html__( 'Bottom', 'deadlift' ) => 'bottom',
						esc_html__( 'Top', 'deadlift' ) => 'top',
					),
					'dependency' => array(
						'element' => 'work_display',
						'value_not_equal_to' => array( 'list_minimal', 'text-background' )
					),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Overlay Color', 'deadlift' ),
					'param_name' => 'overlay_color',
					'value' => array_merge(
							array( esc_html__( 'Auto', 'deadlift' ) => 'auto', ),
							$shared_gradient_colors,
							$shared_colors,
							array( esc_html__( 'Custom color', 'deadlift' ) => 'custom', )
					),
					'std' => apply_filters( 'wvc_default_item_overlay_color', 'black' ),
					'description' => esc_html__( 'Select an overlay color.', 'deadlift' ),
					'param_holder_class' => 'wvc_colored-dropdown',
					'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ) ),
				),

				// Overlay color
				array(
					'type' => 'colorpicker',
					'heading' => esc_html__( 'Overlay Custom Color', 'deadlift' ),
					'param_name' => 'overlay_custom_color',
					//'value' => '#000000',
					'dependency' => array( 'element' => 'overlay_color', 'value' => array( 'custom' ), ),
				),

				// Overlay opacity
				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Overlay Opacity in Percent', 'deadlift' ),
					'param_name' => 'overlay_opacity',
					'description' => '',
					'value' => 40,
					'std' => apply_filters( 'wvc_default_item_overlay_opacity', 40 ),
					'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ), ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Overlay Text Color', 'deadlift' ),
					'param_name' => 'overlay_text_color',
					'value' => array_merge(
						$shared_colors,
						$shared_gradient_colors,
						array( esc_html__( 'Custom color', 'deadlift' ) => 'custom', )
					),
					'std' => apply_filters( 'wvc_default_item_overlay_text_color', 'white' ),
					'description' => esc_html__( 'Select an overlay color.', 'deadlift' ),
					'param_holder_class' => 'wvc_colored-dropdown',
					'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ) ),
				),

				// Overlay color
				array(
					'type' => 'colorpicker',
					'heading' => esc_html__( 'Overlay Custom Text Color', 'deadlift' ),
					'param_name' => 'overlay_text_custom_color',
					//'value' => '#000000',
					'dependency' => array( 'element' => 'overlay_text_color', 'value' => array( 'custom' ), ),
				),

				array(
					'heading' => esc_html__( 'Category Filter', 'deadlift' ),
					'param_name' => 'work_category_filter',
					'type' => 'checkbox',
					'description' => esc_html__( 'The pagination will be disabled.', 'deadlift' ),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'work_display',
						'value_not_equal_to' => array( 'list_minimal', 'text-background' )
					),
				),

				array(
					'heading' => esc_html__( 'Filter Text Alignement', 'deadlift' ),
					'param_name' => 'work_category_filter_text_alignment',
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Center', 'deadlift' ) => 'center',
						esc_html__( 'Left', 'deadlift' ) => 'left',
						esc_html__( 'Right', 'deadlift' ) => 'right',
					),
					'dependency' => array(
						'element' => 'work_category_filter',
						'value' => array( 'true' ),
					),
				),

				array(
					'heading' => esc_html__( 'Animation', 'deadlift' ),
					'param_name' => 'item_animation',
					'type' => 'dropdown',
					'value' => array_flip( deadlift_get_animations() ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Number of Posts', 'deadlift' ),
					'param_name' => 'posts_per_page',
					'type' => 'wvc_textfield',
					//'placeholder' => get_option( 'posts_per_page' ),
					'description' => esc_html__( 'Leave empty to display all post at once.', 'deadlift' ),
					//'std' => '-1',
					'admin_label' => true,
				),

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'deadlift' ) => 'none',
						esc_html__( 'Load More', 'deadlift' ) => 'load_more',
						esc_html__( 'Link to Portfolio', 'deadlift' ) => 'link_to_portfolio',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'work_module', 'value' => array( 'grid' ) ),
				),

				array(
					'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
					'param_name' => 'inline_style',
					'type' => 'wvc_textfield',
					//'admin_label' => true,
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Include Category', 'deadlift' ),
					'param_name' => 'work_type_include',
					'description' => esc_html__( 'Enter one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Category', 'deadlift' ),
					'param_name' => 'work_type_exclude',
					'description' => esc_html__( 'Enter one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Offset', 'deadlift' ),
					'description' => esc_html__( '.', 'deadlift' ),
					'param_name' => 'offset',
					'description' => esc_html__( 'The amount of posts that should be skipped in the beginning of the query.', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Order by', 'deadlift' ),
					'param_name' => 'orderby',
					'value' => $order_by_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Select how to sort retrieved posts. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Sort order', 'deadlift' ),
					'param_name' => 'order',
					'value' => $order_way_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Designates the ascending or descending order. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'deadlift' ),
					'description' => esc_html__( 'By default, your last posts will be displayed. You can choose the posts you want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Post IDs', 'deadlift' ),
					'description' => esc_html__( 'You can choose the posts you don\'t want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'exclude_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'deadlift' ) => 'default',
						esc_html__( 'Two', 'deadlift' ) => 2,
						esc_html__( 'Three', 'deadlift' ) => 3,
						esc_html__( 'Four', 'deadlift' ) => 4,
						esc_html__( 'Six', 'deadlift' ) => 6,
						esc_html__( 'One', 'deadlift' ) => 1,
					),
					'std' => 'default',
					'admin_label' => true,
					'description' => esc_html__( 'By default, columns are set automatically depending on the container\'s width. Set a column count here to overwrite the default behavior.', 'deadlift' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern' ),
					),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Extra class name', 'deadlift' ),
					'param_name' => 'el_class',
					'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'deadlift' ),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),
			),
			//),

			// 	array(
			// 		'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
			// 		'param_name' => 'inline_style',
			// 		'type' => 'wvc_textfield',
			// 		//'admin_label' => true,
			// 	),
			// ),
		//)
	)
);

class WPBakeryShortCode_Wvc_Work_Index extends WPBakeryShortCode {}
} // end Portfolio plugin check

if ( class_exists( 'WooCommerce' ) ) {

/**
 * Product Loop Module
 */
vc_map(
	array(
		'name' => esc_html__( 'Products', 'deadlift' ),
		'description' => esc_html__( 'Display your pages using the theme layouts', 'deadlift' ),
		'base' => 'wvc_product_index',
		'category' => esc_html__( 'Content' , 'deadlift' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

				array(
					'type' => 'hidden',
					'heading' => esc_html__( 'ID', 'deadlift' ),
					'value' => 'items-' . rand( 0,99999 ),
					'param_name' => 'el_id',
				),

				array(
					'param_name' => 'product_display',
					'heading' => esc_html__( 'Product Display', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array_flip( apply_filters( 'deadlift_product_display_options', array(
						'grid_classic' => esc_html__( 'Classic', 'deadlift' ),
					) ) ),
					'std' => 'grid_classic',
					'admin_label' => true,
				),

				array(
					'param_name' => 'product_metro_pattern',
					'heading' => esc_html__( 'Metro Pattern', 'deadlift' ),
					'type' => 'dropdown',
					'value' => deadlift_get_metro_patterns(),
					'std' => 'pattern-1',
					'dependency' => array( 'element' => 'product_display', 'value' => array( 'metro', 'metro_overlay_quickview' ) ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'product_text_align',
					'heading' => esc_html__( 'Product Text Alignement', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						'' => '',
						esc_html__( 'Center', 'deadlift' ) => 'center',
						esc_html__( 'Left', 'deadlift' ) => 'left',
						esc_html__( 'Right', 'deadlift' ) => 'right',
					),
					//'std' => '',
					'admin_label' => true,
					'dependency' => array( 'element' => 'product_display', 'value' => array( 'grid_classic' ) ),
				),

				array(
					'param_name' => 'product_meta',
					'heading' => esc_html__( 'Type', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'All', 'deadlift' ) => 'all',
						esc_html__( 'Featured', 'deadlift' ) => 'featured',
						esc_html__( 'On Sale', 'deadlift' ) => 'onsale',
						esc_html__( 'Best Selling', 'deadlift' ) => 'best_selling',
						esc_html__( 'Top Rated', 'deadlift' ) => 'top_rated',
					),
					'admin_label' => true,
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Category', 'deadlift' ),
					'param_name' => 'product_cat',
					'description' => esc_html__( 'Include only one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'product_module',
					'heading' => esc_html__( 'Module', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'deadlift' ) => 'grid',
						esc_html__( 'Carousel', 'deadlift' ) => 'carousel',
					),
					'admin_label' => true,
					//'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ) ),
				),

				array(
					'param_name' => 'grid_padding',
					'heading' => esc_html__( 'Padding', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'deadlift' ) => 'yes',
						esc_html__( 'No', 'deadlift' ) => 'no',
					),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Animation', 'deadlift' ),
					'param_name' => 'item_animation',
					'type' => 'dropdown',
					'value' => array_flip( deadlift_get_animations() ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Posts Per Page', 'deadlift' ),
					'param_name' => 'posts_per_page',
					'type' => 'wvc_textfield',
					'placeholder' => get_option( 'posts_per_page' ),
					'description' => esc_html__( 'Leave empty to display all post at once.', 'deadlift' ),
					'std' => get_option( 'posts_per_page' ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'deadlift' ) => 'none',
						esc_html__( 'Load More', 'deadlift' ) => 'load_more',
						esc_html__( 'Numeric Pagination', 'deadlift' ) => 'standard_pagination',
						esc_html__( 'Link to Category', 'deadlift' ) => 'link_to_shop_category',
						esc_html__( 'Link to Shop Archive', 'deadlift' ) => 'link_to_shop',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'product_module', 'value' => array( 'grid' ) ),
				),

				array(
					'param_name' => 'product_category_link_id',
					'heading' => esc_html__( 'Category', 'deadlift' ),
					'type' => 'dropdown',
					'value' => deadlift_get_product_cat_dropdown_options(),
					'dependency' => array( 'element' => 'pagination', 'value' => array( 'link_to_shop_category' ) ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
					'param_name' => 'inline_style',
					'type' => 'wvc_textfield',
					//'admin_label' => true,
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Offset', 'deadlift' ),
					'param_name' => 'offset',
					'description' => esc_html__( 'The amount of posts that should be skipped in the beginning of the query. If an offset is set, sticky posts will be ignored.', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
					'admin_label' => true,
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Order by', 'deadlift' ),
					'param_name' => 'orderby',
					'value' => $order_by_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Select how to sort retrieved products. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Sort order', 'deadlift' ),
					'param_name' => 'order',
					'value' => $order_way_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Designates the ascending or descending order. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'deadlift' ),
					'description' => esc_html__( 'By default, your last posts will be displayed. You can choose the posts you want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Post IDs', 'deadlift' ),
					'description' => esc_html__( 'You can choose the posts you don\'t want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'exclude_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'deadlift' ) => 'default',
						esc_html__( 'Two', 'deadlift' ) => 2,
						esc_html__( 'Three', 'deadlift' ) => 3,
						esc_html__( 'Four', 'deadlift' ) => 4,
						esc_html__( 'Six', 'deadlift' ) => 6,
						esc_html__( 'One', 'deadlift' ) => 1,
					),
					'std' => 'default',
					'admin_label' => true,
					'description' => esc_html__( 'By default, columns are set automatically depending on the container\'s width. Set a column count here to overwrite the default behavior.', 'deadlift' ),
					'dependency' => array(
						'element' => 'product_display',
						'value_not_equal_to' => array( 'metro_overlay_quickview' ),
					),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Extra class name', 'deadlift' ),
					'param_name' => 'el_class',
					'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'deadlift' ),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),
			),
			//),

			// 	array(
			// 		'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
			// 		'param_name' => 'inline_style',
			// 		'type' => 'wvc_textfield',
			// 		//'admin_label' => true,
			// 	),
			// ),
		//)
	)
);

class WPBakeryShortCode_Wvc_Product_Index extends WPBakeryShortCode {}

} // end WC check

if ( class_exists( 'Mp_Time_Table' ) ) {
/**
 * Timetable Event Loop Module
 */
vc_map(
	array(
		'name' => esc_html__( 'Timetable Events', 'deadlift' ),
		'description' => esc_html__( 'Display your timetable events using the theme layouts', 'deadlift' ),
		'base' => 'wvc_mp_event_index',
		'category' => esc_html__( 'Content' , 'deadlift' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Index ID', 'deadlift' ),
					'value' => 'index-' . rand( 0,99999 ),
					'param_name' => 'el_id',
					'description' => esc_html__( 'A unique identifier for the post module (required).', 'deadlift' ),
				),

				// array(
				// 	'param_name' => 'video_module',
				// 	'heading' => esc_html__( 'Module', 'deadlift' ),
				// 	'type' => 'dropdown',
				// 	'value' => array(
				// 		esc_html__( 'Grid', 'deadlift' ) => 'grid',
				// 		esc_html__( 'Carousel', 'deadlift' ) => 'carousel',
				// 	),
				// 	'admin_label' => true,
				// 	//'dependency' => array( 'element' => 'video_display', 'value' => array( 'grid' ) ),
				// ),

				array(
					'param_name' => 'grid_padding',
					'heading' => esc_html__( 'Padding', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'deadlift' ) => 'yes',
						esc_html__( 'No', 'deadlift' ) => 'no',
					),
					'admin_label' => true,
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Overlay Color', 'deadlift' ),
					'param_name' => 'overlay_color',
					'value' => array(
						esc_html__( 'Primary Accent Color', 'deadlift' ) => 'accent',
						esc_html__( 'Secondary Accent Color', 'deadlift' ) => 'secondary_accent',
					),
				),

				// // Overlay color
				// array(
				// 	'type' => 'colorpicker',
				// 	'heading' => esc_html__( 'Overlay Custom Color', 'deadlift' ),
				// 	'param_name' => 'overlay_custom_color',
				// 	//'value' => '#000000',
				// 	'dependency' => array( 'element' => 'overlay_color', 'value' => array( 'custom' ), ),
				// ),

				// Overlay opacity
				// array(
				// 	'type' => 'wvc_textfield',
				// 	'heading' => esc_html__( 'Overlay Opacity in Percent', 'deadlift' ),
				// 	'param_name' => 'overlay_opacity',
				// 	'description' => '',
				// 	'value' => 40,
				// 	'std' => apply_filters( 'wvc_default_item_overlay_opacity', 100 ),
				// 	//'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ), ),
				// ),

				// array(
				// 	'type' => 'dropdown',
				// 	'heading' => esc_html__( 'Overlay Text Color', 'deadlift' ),
				// 	'param_name' => 'overlay_text_color',
				// 	'value' => array_merge(
				// 		$shared_colors,
				// 		$shared_gradient_colors,
				// 		array( esc_html__( 'Custom color', 'deadlift' ) => 'custom', )
				// 	),
				// 	'std' => apply_filters( 'wvc_default_item_overlay_text_color', 'white' ),
				// 	'description' => esc_html__( 'Select an overlay color.', 'deadlift' ),
				// 	'param_holder_class' => 'wvc_colored-dropdown',
				// 	'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ) ),
				// ),

				// Overlay color
				// array(
				// 	'type' => 'colorpicker',
				// 	'heading' => esc_html__( 'Overlay Custom Text Color', 'deadlift' ),
				// 	'param_name' => 'overlay_text_custom_color',
				// 	//'value' => '#000000',
				// 	'dependency' => array( 'element' => 'overlay_text_color', 'value' => array( 'custom' ), ),
				// ),

				array(
					'heading' => esc_html__( 'Animation', 'deadlift' ),
					'param_name' => 'item_animation',
					'type' => 'dropdown',
					'value' => array_flip( deadlift_get_animations() ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Number of Posts', 'deadlift' ),
					'param_name' => 'posts_per_page',
					'type' => 'wvc_textfield',
					//'placeholder' => get_option( 'posts_per_page' ),
					'description' => esc_html__( 'Leave empty to display all post at once.', 'deadlift' ),
					//'std' => '-1',
					'admin_label' => true,
				),

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'deadlift' ) => 'none',
						esc_html__( 'Load More', 'deadlift' ) => 'load_more',
						esc_html__( 'Numeric Pagination', 'deadlift' ) => 'standard_pagination',
					),
					// 'dependency' => array(
					// 	'element' => 'video_category_filter',
					// 	'not_equal_to' => array( true )
					// ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
					'param_name' => 'inline_style',
					'type' => 'wvc_textfield',
					//'admin_label' => true,
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Include Category', 'deadlift' ),
					'param_name' => 'mp_event_category_include',
					'description' => esc_html__( 'Enter one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Category', 'deadlift' ),
					'param_name' => 'mp_event_category_exclude',
					'description' => esc_html__( 'Enter one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Include Tag', 'deadlift' ),
					'param_name' => 'mp_event_tag_include',
					'description' => esc_html__( 'Enter one or several categories. Paste tag slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-tag, other-tag', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Tag', 'deadlift' ),
					'param_name' => 'mp_event_tag_exclude',
					'description' => esc_html__( 'Enter one or several categories. Paste tag slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-tag, other-tag', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Offset', 'deadlift' ),
					'description' => esc_html__( '.', 'deadlift' ),
					'param_name' => 'offset',
					'description' => esc_html__( 'The amount of posts that should be skipped in the beginning of the query.', 'deadlift' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Order by', 'deadlift' ),
					'param_name' => 'orderby',
					'value' => $order_by_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Select how to sort retrieved posts. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Sort order', 'deadlift' ),
					'param_name' => 'order',
					'value' => $order_way_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Designates the ascending or descending order. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'deadlift' ),
					'description' => esc_html__( 'By default, your last posts will be displayed. You can choose the posts you want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Post IDs', 'deadlift' ),
					'description' => esc_html__( 'You can choose the posts you don\'t want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'exclude_ids',
					'group' => esc_html__( 'Query', 'deadlift' ),
				),

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'deadlift' ) => 'default',
						esc_html__( 'Two', 'deadlift' ) => 2,
						esc_html__( 'Three', 'deadlift' ) => 3,
						esc_html__( 'Four', 'deadlift' ) => 4,
						esc_html__( 'Six', 'deadlift' ) => 6,
						esc_html__( 'One', 'deadlift' ) => 1,
					),
					'std' => 'default',
					'admin_label' => true,
					'description' => esc_html__( 'By default, columns are set automatically depending on the container\'s width. Set a column count here to overwrite the default behavior.', 'deadlift' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern' ),
					),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),
			),
			//),

			// 	array(
			// 		'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
			// 		'param_name' => 'inline_style',
			// 		'type' => 'wvc_textfield',
			// 		//'admin_label' => true,
			// 	),
			// ),
		//)
	)
);

class WPBakeryShortCode_Wvc_Mp_Event_Index extends WPBakeryShortCode {}
} // end Mp_Time_Table plugin check

if ( class_exists( 'Wolf_Videos' ) ) {
/**
 * Videos Loop Module
 */
vc_map(
	array(
		'name' => esc_html__( 'Videos', 'deadlift' ),
		'description' => esc_html__( 'Display your videos using the theme layouts', 'deadlift' ),
		'base' => 'wvc_video_index',
		'category' => esc_html__( 'Content' , 'deadlift' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Index ID', 'deadlift' ),
					'value' => 'index-' . rand( 0,99999 ),
					'param_name' => 'el_id',
					'description' => esc_html__( 'A unique identifier for the post module (required).', 'deadlift' ),
				),

				array(
					'heading' => esc_html__( 'Show video on hover', 'deadlift' ),
					'param_name' => 'video_preview',
					'type' => 'checkbox',
					'admin_label' => true,
					'value' => 'yes',
					'dependency' => array( 'element' => 'video_module', 'value' => array( 'grid' ) ),
				),

				array(
					'param_name' => 'video_module',
					'heading' => esc_html__( 'Module', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'deadlift' ) => 'grid',
						esc_html__( 'Carousel', 'deadlift' ) => 'carousel',
					),
					'admin_label' => true,
					//'dependency' => array( 'element' => 'video_display', 'value' => array( 'grid' ) ),
				),

				array(
					'param_name' => 'grid_padding',
					'heading' => esc_html__( 'Padding', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'deadlift' ) => 'yes',
						esc_html__( 'No', 'deadlift' ) => 'no',
					),
					'admin_label' => true,
				),

				array(
					'param_name' => 'video_onclick',
					'heading' => esc_html__( 'On Click', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Open Video in Lightbox', 'deadlift' ) => 'lightbox',
						esc_html__( 'Go to the Video Page', 'deadlift' ) => 'default',
					),
					'admin_label' => true,
					//'dependency' => array( 'element' => 'video_display', 'value' => array( 'grid' ) ),
				),

				array(
					'heading' => esc_html__( 'Category Filter', 'deadlift' ),
					'param_name' => 'video_category_filter',
					'type' => 'checkbox',
					'admin_label' => true,
					'description' => esc_html__( 'The pagination will be disabled.', 'deadlift' ),
					'dependency' => array( 'element' => 'video_module', 'value' => array( 'grid' ) ),
				),

				array(
					'heading' => esc_html__( 'Filter Text Alignement', 'deadlift' ),
					'param_name' => 'video_category_filter_text_alignment',
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Center', 'deadlift' ) => 'center',
						esc_html__( 'Left', 'deadlift' ) => 'left',
						esc_html__( 'Right', 'deadlift' ) => 'right',
					),
					'dependency' => array(
						'element' => 'video_category_filter',
						'value' => array( 'true' ),
					),
				),

				array(
					'heading' => esc_html__( 'Animation', 'deadlift' ),
					'param_name' => 'item_animation',
					'type' => 'dropdown',
					'value' => array_flip( deadlift_get_animations() ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Number of Posts', 'deadlift' ),
					'param_name' => 'posts_per_page',
					'type' => 'wvc_textfield',
					//'placeholder' => get_option( 'posts_per_page' ),
					'description' => esc_html__( 'Leave empty to display all post at once.', 'deadlift' ),
					//'std' => '-1',
					'admin_label' => true,
				),

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'deadlift' ) => 'none',
						esc_html__( 'Load More', 'deadlift' ) => 'load_more',
						esc_html__( 'Numeric Pagination', 'deadlift' ) => 'standard_pagination',
						esc_html__( 'Link to Video Archives', 'deadlift' ) => 'link_to_videos',
					),
					// 'dependency' => array(
					// 	'element' => 'video_category_filter',
					// 	'not_equal_to' => array( true )
					// ),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
					'param_name' => 'inline_style',
					'type' => 'wvc_textfield',
					//'admin_label' => true,
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Include Category', 'deadlift' ),
					'param_name' => 'video_type_include',
					'description' => esc_html__( 'Enter one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'group' => esc_html( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Category', 'deadlift' ),
					'param_name' => 'video_type_exclude',
					'description' => esc_html__( 'Enter one or several categories. Paste category slug(s) separated by a comma', 'deadlift' ),
					'placeholder' => esc_html__( 'my-category, other-category', 'deadlift' ),
					'group' => esc_html( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Offset', 'deadlift' ),
					'description' => esc_html__( '.', 'deadlift' ),
					'param_name' => 'offset',
					'description' => esc_html__( 'The amount of posts that should be skipped in the beginning of the query.', 'deadlift' ),
					'group' => esc_html( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Order by', 'deadlift' ),
					'param_name' => 'orderby',
					'value' => $order_by_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Select how to sort retrieved posts. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Sort order', 'deadlift' ),
					'param_name' => 'order',
					'value' => $order_way_values,
					'save_always' => true,
					'description' => sprintf( wp_kses_post( __( 'Designates the ascending or descending order. More at %s.', 'deadlift' ) ), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>' ),
					'group' => esc_html( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'deadlift' ),
					'description' => esc_html__( 'By default, your last posts will be displayed. You can choose the posts you want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'include_ids',
					'group' => esc_html( 'Query', 'deadlift' ),
				),

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Exclude Post IDs', 'deadlift' ),
					'description' => esc_html__( 'You can choose the posts you don\'t want to display by entering a list of IDs separated by a comma.', 'deadlift' ),
					'param_name' => 'exclude_ids',
					'group' => esc_html( 'Query', 'deadlift' ),
				),

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'deadlift' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'deadlift' ) => 'default',
						esc_html__( 'Two', 'deadlift' ) => 2,
						esc_html__( 'Three', 'deadlift' ) => 3,
						esc_html__( 'Four', 'deadlift' ) => 4,
						esc_html__( 'Six', 'deadlift' ) => 6,
						esc_html__( 'One', 'deadlift' ) => 1,
					),
					'std' => 'default',
					'admin_label' => true,
					'description' => esc_html__( 'By default, columns are set automatically depending on the container\'s width. Set a column count here to overwrite the default behavior.', 'deadlift' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern' ),
					),
					'group' => esc_html__( 'Extra', 'deadlift' ),
				),
			),
			//),

			// 	array(
			// 		'heading' => esc_html__( 'Additional CSS inline style', 'deadlift' ),
			// 		'param_name' => 'inline_style',
			// 		'type' => 'wvc_textfield',
			// 		//'admin_label' => true,
			// 	),
			// ),
		//)
	)
);

class WPBakeryShortCode_Wvc_Video_Index extends WPBakeryShortCode {}
} // end Videos plugin check
Page not found – Hello World !