<?php
/**
 * WPBakery Page Builder post modules
 *
 * @package WordPress
 * @subpackage Tattoopress
 * @version 3.3.4
 */

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

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

$order_way_values = array(
	'',
	esc_html__( 'Descending', 'tattoopress' ) => 'DESC',
	esc_html__( 'Ascending', 'tattoopress' ) => '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', 'tattoopress' ),
		'description' => esc_html__( 'Display your posts using the theme layouts', 'tattoopress' ),
		'base' => 'wvc_post_index',
		'category' => esc_html__( 'Content' , 'tattoopress' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

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

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

				array(
					'param_name' => 'post_metro_pattern',
					'heading' => esc_html__( 'Metro Pattern', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => tattoopress_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', 'tattoopress' ),
					'type' => 'checkbox',
					'dependency' => array(
						'element' => 'post_display',
						'value' => array( 'lateral' )
					),
				),

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

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

				array(
					'param_name' => 'post_display_elements',
					'heading' => esc_html__( 'Elements', 'tattoopress' ),
					'type' => 'checkbox',
					'value' => array(
						esc_html__( 'Thumbnail', 'tattoopress' ) => 'show_thumbnail',
						esc_html__( 'Date', 'tattoopress' ) => 'show_date',
						esc_html__( 'Text', 'tattoopress' ) => 'show_text',
						esc_html__( 'Category', 'tattoopress' ) => 'show_category',
						esc_html__( 'Author', 'tattoopress' ) => 'show_author',
						esc_html__( 'Tags', 'tattoopress' ) => 'show_tags',
						esc_html__( 'Extra Meta', 'tattoopress' ) => '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.', 'tattoopress' ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'post_excerpt_type',
					'heading' => esc_html__( 'Post Excerpt Type', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'tattoopress' ) => 'auto',
						esc_html__( 'Manual', 'tattoopress' ) => 'manual',
					),
					'description' => sprintf(
						wp_kses_post( __( 'When using the manual excerpt, you must split your post using a "<a href="%s">More Tag</a>".', 'tattoopress' ) ),
						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', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'tattoopress' ) => 'yes',
						esc_html__( 'No', 'tattoopress' ) => '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', 'tattoopress' ),
				// 	'param_name' => 'post_category_filter',
				// 	'type' => 'checkbox',
				// 	'admin_label' => true,
				// ),

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

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

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

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Offset', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'group' => esc_html__( 'Query', 'tattoopress' ),
					'admin_label' => true,
				),

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

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

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

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

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

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

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

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

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'tattoopress' ),
				),

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

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'tattoopress' ) => 'default',
						esc_html__( 'Two', 'tattoopress' ) => 2,
						esc_html__( 'Three', 'tattoopress' ) => 3,
						esc_html__( 'Four', 'tattoopress' ) => 4,
						esc_html__( 'Five', 'tattoopress' ) => 5,
						esc_html__( 'Six', 'tattoopress' ) => 6,
						esc_html__( 'One', 'tattoopress' ) => 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.', 'tattoopress' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern', 'lateral', 'list' ),
					),
					'group' => esc_html__( 'Extra', 'tattoopress' ),
				),

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

if ( class_exists( 'WooCommerce' ) ) {

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

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

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

				array(
					'param_name' => 'product_metro_pattern',
					'heading' => esc_html__( 'Metro Pattern', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => tattoopress_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', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						'' => '',
						esc_html__( 'Center', 'tattoopress' ) => 'center',
						esc_html__( 'Left', 'tattoopress' ) => 'left',
						esc_html__( 'Right', 'tattoopress' ) => 'right',
					),
					//'std' => '',
					'admin_label' => true,
					'dependency' => array( 'element' => 'product_display', 'value' => array( 'grid_classic' ) ),
				),

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

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

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

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

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

				array(
					'heading' => esc_html__( 'Posts Per Page', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'std' => get_option( 'posts_per_page' ),
					'admin_label' => true,
				),

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

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

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Offset', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'group' => esc_html__( 'Query', 'tattoopress' ),
					'admin_label' => true,
				),

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

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

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'tattoopress' ),
				),

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

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'tattoopress' ) => 'default',
						esc_html__( 'Two', 'tattoopress' ) => 2,
						esc_html__( 'Three', 'tattoopress' ) => 3,
						esc_html__( 'Four', 'tattoopress' ) => 4,
						esc_html__( 'Five', 'tattoopress' ) => 5,
						esc_html__( 'Six', 'tattoopress' ) => 6,
						esc_html__( 'One', 'tattoopress' ) => 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.', 'tattoopress' ),
					'dependency' => array(
						'element' => 'product_display',
						'value_not_equal_to' => array( 'metro_overlay_quickview' ),
					),
					'group' => esc_html__( 'Extra', 'tattoopress' ),
				),

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

class WPBakeryShortCode_Wvc_Product_Index extends WPBakeryShortCode {}

} // end WC check

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

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

				array(
					'heading' => esc_html__( 'Show video on hover', 'tattoopress' ),
					'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', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'tattoopress' ) => 'grid',
						esc_html__( 'Carousel', 'tattoopress' ) => 'carousel',
					),
					'admin_label' => true,
					//'dependency' => array( 'element' => 'video_display', 'value' => array( 'grid' ) ),
				),

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

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

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

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

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

				array(
					'heading' => esc_html__( 'Number of Posts', 'tattoopress' ),
					'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.', 'tattoopress' ),
					//'std' => '-1',
					'admin_label' => true,
				),

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

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

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

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

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

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

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

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

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'tattoopress' ),
				),

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

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'tattoopress' ) => 'default',
						esc_html__( 'Two', 'tattoopress' ) => 2,
						esc_html__( 'Three', 'tattoopress' ) => 3,
						esc_html__( 'Four', 'tattoopress' ) => 4,
						esc_html__( 'Five', 'tattoopress' ) => 5,
						esc_html__( 'Six', 'tattoopress' ) => 6,
						esc_html__( 'One', 'tattoopress' ) => 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.', 'tattoopress' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern' ),
					),
					'group' => esc_html__( 'Extra', 'tattoopress' ),
				),
			),
		//)
	)
);

class WPBakeryShortCode_Wvc_Video_Index extends WPBakeryShortCode {}
} // end Videos plugin check

if ( class_exists( 'Wolf_Portfolio' ) ) {

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

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

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

				array(
					'param_name' => 'work_metro_pattern',
					'heading' => esc_html__( 'Metro Pattern', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => tattoopress_get_metro_patterns(),
					'std' => 'auto',
					'dependency' => array( 'element' => 'work_display', 'value' => array( 'metro' ) ),
					'admin_label' => true,
				),

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

				array(
					'param_name' => 'work_thumbnail_size',
					'heading' => esc_html__( 'Thumbnail Size', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Default Thumbnail', 'tattoopress' ) => 'standard',
						esc_html__( 'Landscape', 'tattoopress' ) => 'landscape',
						esc_html__( 'Square', 'tattoopress' ) => 'square',
						esc_html__( 'Portrait', 'tattoopress' ) => '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', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Classic', 'tattoopress' ) => 'standard',
						esc_html__( 'Overlay', 'tattoopress' ) => 'overlay',
						//esc_html__( 'Flip Box', 'tattoopress' ) => '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', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'tattoopress' ) => 'yes',
						esc_html__( 'No', 'tattoopress' ) => 'no',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'work_layout', 'value' => array( 'overlay', 'flip-box' ) ),
				),

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

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

				/*array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Overlay Color', 'tattoopress' ),
					'param_name' => 'overlay_color',
					'value' => array_merge(
							array( esc_html__( 'Auto', 'tattoopress' ) => 'auto', ),
							$shared_gradient_colors,
							$shared_colors,
							array( esc_html__( 'Custom color', 'tattoopress' ) => 'custom', )
					),
					'std' => apply_filters( 'wvc_default_item_overlay_color', 'black' ),
					'description' => esc_html__( 'Select an overlay color.', 'tattoopress' ),
					'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', 'tattoopress' ),
					'param_name' => 'overlay_custom_color',
					//'value' => '#000000',
					'dependency' => array( 'element' => 'overlay_color', 'value' => array( 'custom' ), ),
				),*/

				// Overlay opacity
				/*array(
					'type' => 'wvc_numeric_slider',
					'heading' => esc_html__( 'Overlay Opacity in Percent', 'tattoopress' ),
					'param_name' => 'overlay_opacity',
					'description' => '',
					'value' => 40,
					'min' => 5,
					'max' => 100,
					'step' => 5,
					'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', 'tattoopress' ),
					'param_name' => 'overlay_text_color',
					'value' => array_merge(
						$shared_colors,
						$shared_gradient_colors,
						array( esc_html__( 'Custom color', 'tattoopress' ) => 'custom', )
					),
					'std' => apply_filters( 'wvc_default_item_overlay_text_color', 'white' ),
					'description' => esc_html__( 'Select an overlay color.', 'tattoopress' ),
					'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', 'tattoopress' ),
					'param_name' => 'overlay_text_custom_color',
					//'value' => '#000000',
					'dependency' => array( 'element' => 'overlay_text_color', 'value' => array( 'custom' ), ),
				),*/

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

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

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

				array(
					'heading' => esc_html__( 'Number of Posts', 'tattoopress' ),
					'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.', 'tattoopress' ),
					//'std' => '-1',
					'admin_label' => true,
				),

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

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

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

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

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

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

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'tattoopress' ),
				),

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

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'tattoopress' ) => 'default',
						esc_html__( 'Two', 'tattoopress' ) => 2,
						esc_html__( 'Three', 'tattoopress' ) => 3,
						esc_html__( 'Four', 'tattoopress' ) => 4,
						esc_html__( 'Five', 'tattoopress' ) => 5,
						esc_html__( 'Six', 'tattoopress' ) => 6,
						esc_html__( 'One', 'tattoopress' ) => 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.', 'tattoopress' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern' ),
					),
					'group' => esc_html__( 'Extra', 'tattoopress' ),
				),

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

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

if ( class_exists( 'Wolf_Discography' ) ) {
/**
 * Discography Loop Module
 */
vc_map(
	array(
		'name' => esc_html__( 'Releases', 'tattoopress' ),
		'description' => esc_html__( 'Display your releases using the theme layouts', 'tattoopress' ),
		'base' => 'wvc_release_index',
		'category' => esc_html__( 'Content' , 'tattoopress' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

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

				array(
					'param_name' => 'release_display',
					'heading' => esc_html__( 'Release Display', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array_flip( apply_filters( 'tattoopress_release_display_options', array(
						'grid' => esc_html__( 'Grid', 'tattoopress' ),
					) ) ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'release_alternate_thumbnail_position',
					'heading' => esc_html__( 'Alternate thumbnail position', 'tattoopress' ),
					'type' => 'checkbox',
					'dependency' => array(
						'element' => 'release_display',
						'value' => array( 'lateral' ),
					),
				),

				array(
					'param_name' => 'release_metro_pattern',
					'heading' => esc_html__( 'Metro Pattern', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => tattoopress_get_metro_patterns(),
					'std' => 'auto',
					'dependency' => array( 'element' => 'release_display', 'value' => array( 'metro' ) ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'release_layout',
					'heading' => esc_html__( 'Layout', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Classic', 'tattoopress' ) => 'standard',
						esc_html__( 'Overlay', 'tattoopress' ) => 'overlay',
						//esc_html__( 'Flip Box', 'tattoopress' ) => 'flip-box',
					),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'release_display',
						'value' => array( 'grid', 'metro', 'masonry' )
					),
				),

				array(
					'param_name' => 'release_module',
					'heading' => esc_html__( 'Module', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'tattoopress' ) => 'grid',
						esc_html__( 'Carousel', 'tattoopress' ) => 'carousel',
					),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'release_display', 'value' => array( 'grid' ) ),
				),

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

				// array(
				// 	'type' => 'dropdown',
				// 	'heading' => esc_html__( 'Text Alignment', 'tattoopress' ),
				// 	'param_name' => 'work_caption_align',
				// 	'value' => array(
				// 		esc_html__( 'Center', 'tattoopress' ) => 'center',
				// 		esc_html__( 'Left', 'tattoopress' ) => 'left',
				// 		esc_html__( 'Right', 'tattoopress' ) => 'right',
				// 	),
				// ),

				// array(
				// 	'type' => 'dropdown',
				// 	'heading' => esc_html__( 'Text Vertical Alignment', 'tattoopress' ),
				// 	'param_name' => 'work_caption_valign',
				// 	'value' => array(
				// 		esc_html__( 'Middle', 'tattoopress' ) => 'middle',
				// 		esc_html__( 'Bottom', 'tattoopress' ) => 'bottom',
				// 		esc_html__( 'Top', 'tattoopress' ) => 'top',
				// 	),
				// ),

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

				// Overlay color
				array(
					'type' => 'colorpicker',
					'heading' => esc_html__( 'Overlay Custom Color', 'tattoopress' ),
					'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', 'tattoopress' ),
					'param_name' => 'overlay_opacity',
					'description' => '',
					'value' => 40,
					'std' => apply_filters( 'wvc_default_item_overlay_opacity', 40 ),
					'dependency' => array( 'element' => 'release_layout', 'value' => array( 'overlay', 'flip-box' ), ),
				),

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

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

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'tattoopress' ) => 'none',
						esc_html__( 'Load More', 'tattoopress' ) => 'load_more',
						esc_html__( 'Numeric Pagination', 'tattoopress' ) => 'standard_pagination',
						esc_html__( 'Link to Discography', 'tattoopress' ) => 'link_to_discography',
					),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Category Filter', 'tattoopress' ),
					'param_name' => 'release_category_filter',
					'type' => 'checkbox',
					'description' => esc_html__( 'The pagination will be disabled.', 'tattoopress' ),
					'admin_label' => true,
					'dependency' => array(
						'element' => 'release_display',
						'value_not_equal_to' => array( 'list_minimal' )
					),
				),

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

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

				array(
					'heading' => esc_html__( 'Number of Posts', 'tattoopress' ),
					'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.', 'tattoopress' ),
					//'std' => '-1',
					'admin_label' => true,
				),

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

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

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

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

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

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

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

				array(
					'type' => 'wvc_textfield',
					'heading' => esc_html__( 'Post IDs', 'tattoopress' ),
					'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.', 'tattoopress' ),
					'param_name' => 'include_ids',
					'group' => esc_html__( 'Query', 'tattoopress' ),
				),

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

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'tattoopress' ) => 'default',
						esc_html__( 'Two', 'tattoopress' ) => 2,
						esc_html__( 'Three', 'tattoopress' ) => 3,
						esc_html__( 'Four', 'tattoopress' ) => 4,
						esc_html__( 'Five', 'tattoopress' ) => 5,
						esc_html__( 'Six', 'tattoopress' ) => 6,
						esc_html__( 'One', 'tattoopress' ) => 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.', 'tattoopress' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern', 'lateral' ),
					),
					'group' => esc_html__( 'Extra', 'tattoopress' ),
				),
			),
		//)
	)
);

class WPBakeryShortCode_Wvc_Release_Index extends WPBakeryShortCode {}
} // end Discography plugin check

if ( class_exists( 'Wolf_Albums' ) ) {
	$gallery_display_options = ( function_exists( 'tattoopress_get_gallery_display_options' ) ) ? tattoopress_get_gallery_display_options() : array();
/**
 * Albums Loop Module
 */
vc_map(
	array(
		'name' => esc_html__( 'Albums', 'tattoopress' ),
		'description' => esc_html__( 'Display your albums using the theme layouts', 'tattoopress' ),
		'base' => 'wvc_gallery_index',
		'category' => esc_html__( 'Content' , 'tattoopress' ),
		'icon' => 'fa fa-th',
		'weight' => 999,
		'params' =>
		//array_merge(
			array(

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

				array(
					'param_name' => 'gallery_display',
					'heading' => esc_html__( 'Album Display', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array_flip( apply_filters( 'tattoopress_gallery_display_options', array(
						'grid' => esc_html__( 'Grid', 'tattoopress' ),
					) ) ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'gallery_module',
					'heading' => esc_html__( 'Module', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'tattoopress' ) => 'grid',
						esc_html__( 'Carousel', 'tattoopress' ) => 'carousel',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'gallery_display', 'value' => array( 'grid' ) ),
				),

				array(
					'param_name' => 'grid_padding',
					'heading' => esc_html__( 'Padding', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'tattoopress' ) => 'yes',
						esc_html__( 'No', 'tattoopress' ) => 'no',
					),
					'admin_label' => true,
					//'dependency' => array( 'element' => 'gallery_display', 'value' => array( 'grid' ) ),
				),

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

				array(
					'param_name' => 'gallery_layout',
					'heading' => esc_html__( 'Layout', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Classic', 'tattoopress' ) => 'standard',
						esc_html__( 'Overlay', 'tattoopress' ) => 'overlay',
						//esc_html__( 'Flip Box', 'tattoopress' ) => 'flip-box',
					),
					'admin_label' => true,
				),

				array(
					'heading' => esc_html__( 'Text Alignement', 'tattoopress' ),
					'param_name' => 'caption_text_aligntment',
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Center', 'tattoopress' ) => 'center',
						esc_html__( 'Left', 'tattoopress' ) => 'left',
						esc_html__( 'Right', 'tattoopress' ) => 'right',
					),
				),

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

				// Overlay color
				array(
					'type' => 'colorpicker',
					'heading' => esc_html__( 'Overlay Custom Color', 'tattoopress' ),
					'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', 'tattoopress' ),
					'param_name' => 'overlay_opacity',
					'description' => '',
					'value' => 40,
					'std' => apply_filters( 'wvc_default_item_overlay_opacity', 40 ),
					'dependency' => array( 'element' => 'gallery_layout', 'value' => array( 'overlay' ) ),
				),

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

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

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'tattoopress' ) => 'none',
						esc_html__( 'Load More', 'tattoopress' ) => 'load_more',
						esc_html__( 'Link to Album Archives', 'tattoopress' ) => 'link_to_albums',
					),
					'admin_label' => true,
					//'dependency' => array( 'element' => 'post_module', 'value' => array( 'grid' ) ),
				),

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

				array(
					'heading' => esc_html__( 'Category Filter', 'tattoopress' ),
					'param_name' => 'gallery_category_filter',
					'type' => 'checkbox',
					'admin_label' => true,
					//'dependency' => array( 'element' => 'gallery_module', 'value' => array( 'grid' ) ),
				),

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

				array(
					'heading' => esc_html__( 'Number of Posts', 'tattoopress' ),
					'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.', 'tattoopress' ),
					//'std' => '-1',
					'admin_label' => true,
				),

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

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

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

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Default', 'tattoopress' ) => 'default',
						esc_html__( 'Two', 'tattoopress' ) => 2,
						esc_html__( 'Three', 'tattoopress' ) => 3,
						esc_html__( 'Four', 'tattoopress' ) => 4,
						esc_html__( 'Five', 'tattoopress' ) => 5,
						esc_html__( 'Six', 'tattoopress' ) => 6,
						esc_html__( 'One', 'tattoopress' ) => 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.', 'tattoopress' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern' ),
					),
					'group' => esc_html__( 'Extra', 'tattoopress' ),
				),
			),
		//)
	)
);

class WPBakeryShortCode_Wvc_Gallery_Index extends WPBakeryShortCode {}
} // end Gallery plugin check

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

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

				array(
					'param_name' => 'event_display',
					'heading' => esc_html__( 'Event Display', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array_flip( apply_filters( 'tattoopress_event_display_options', array(
						'list' => esc_html__( 'List', 'tattoopress' ),
					) ) ),
					'admin_label' => true,
				),

				array(
					'param_name' => 'event_module',
					'heading' => esc_html__( 'Module', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Grid', 'tattoopress' ) => 'grid',
						esc_html__( 'Carousel', 'tattoopress' ) => 'carousel',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'event_display', 'value' => array( 'grid' ) ),
				),

				array(
					'param_name' => 'event_location',
					'heading' => esc_html__( 'Location', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Location', 'tattoopress' ) => 'location',
						esc_html__( 'Venue', 'tattoopress' ) => 'venue',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'event_display', 'value' => array( 'grid' ) ),
				),

				array(
					'param_name' => 'grid_padding',
					'heading' => esc_html__( 'Padding', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Yes', 'tattoopress' ) => 'yes',
						esc_html__( 'No', 'tattoopress' ) => 'no',
					),
					'admin_label' => true,
					'dependency' => array( 'element' => 'event_display', 'value' => array( 'grid' ) ),
				),

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

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

				// Overlay color
				array(
					'type' => 'colorpicker',
					'heading' => esc_html__( 'Overlay Custom Color', 'tattoopress' ),
					'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', 'tattoopress' ),
					'param_name' => 'overlay_opacity',
					'description' => '',
					'value' => 40,
					'std' => apply_filters( 'wvc_default_item_overlay_opacity', 40 ),
					'dependency' => array( 'element' => 'event_display', 'value' => array( 'grid' ) ),
				),

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

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

				array(
					'param_name' => 'pagination',
					'heading' => esc_html__( 'Pagination', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'None', 'tattoopress' ) => 'none',
						//esc_html__( 'Load More', 'tattoopress' ) => 'load_more',
						esc_html__( 'Link to Event Archives', 'tattoopress' ) => 'link_to_events',
					),
					'admin_label' => true,
				),

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

				array(
					'heading' => esc_html__( 'Number of Posts', 'tattoopress' ),
					'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.', 'tattoopress' ),
					//'std' => '-1',
					'admin_label' => true,
				),

				array(
					'type' => 'dropdown',
					'heading' => esc_html__( 'Timeline', 'tattoopress' ),
					'param_name' => 'timeline',
					'value' => array(
						esc_html__( 'Future', 'tattoopress' ) => 'future',
						esc_html__( 'Past', 'tattoopress' ) => 'past',
					),
					'group' => esc_html__( 'Query', 'tattoopress' ),
				),

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

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

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

				array(
					'param_name' => 'columns',
					'heading' => esc_html__( 'Columns', 'tattoopress' ),
					'type' => 'dropdown',
					'value' => array(
						esc_html__( 'Auto', 'tattoopress' ) => 'default',
						esc_html__( 'Two', 'tattoopress' ) => 2,
						esc_html__( 'Three', 'tattoopress' ) => 3,
						esc_html__( 'Four', 'tattoopress' ) => 4,
						esc_html__( 'Five', 'tattoopress' ) => 5,
						esc_html__( 'Six', 'tattoopress' ) => 6,
						esc_html__( 'One', 'tattoopress' ) => 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.', 'tattoopress' ),
					'dependency' => array(
						'element' => 'post_display',
						'value_not_equal_to' => array( 'standard', 'standard_modern' ),
					),
					'group' => esc_html__( 'Extra', 'tattoopress' ),
				),
			),
		//)
	)
);

class WPBakeryShortCode_Wvc_Event_Index extends WPBakeryShortCode {}
} // end Events plugin check