<?php

/*--------------------------------------------------------------
Shortcode Options
--------------------------------------------------------------*/

if ( ! function_exists( 'gp_shortcode_options' ) ) {
	function gp_shortcode_options( $atts ) {

		global $gp;

		$GLOBALS['gp_cats'] = isset( $atts['cats'] ) ? $atts['cats'] : '';
		$GLOBALS['gp_post_types'] = isset( $atts['post_types'] ) ? $atts['post_types'] : '';
		$GLOBALS['gp_format'] = isset( $atts['format'] ) ? $atts['format'] : '';
		$GLOBALS['gp_size'] = isset( $atts['size'] ) ? $atts['size'] : '';
		$GLOBALS['gp_orderby'] =  isset( $atts['orderby'] ) ? $atts['orderby'] : '';
		$GLOBALS['gp_date_posted'] = isset( $atts['date_posted'] ) ? $atts['date_posted'] : '';
		$GLOBALS['gp_date_modified'] = isset( $atts['date_modified'] ) ? $atts['date_modified'] : '';
		$GLOBALS['gp_filter'] = isset( $atts['filter'] ) ? $atts['filter'] : '';
		$GLOBALS['gp_filter_cats'] = isset( $atts['filter_cats'] ) ? $atts['filter_cats'] : '';
		$GLOBALS['gp_filter_date'] = isset( $atts['filter_date'] ) ? $atts['filter_date'] : '';
		$GLOBALS['gp_filter_title'] = isset( $atts['filter_title'] ) ? $atts['filter_title'] : '';
		$GLOBALS['gp_filter_comment_count'] = isset( $atts['filter_comment_count'] ) ? $atts['filter_comment_count'] : '';
		$GLOBALS['gp_filter_views'] = isset( $atts['filter_views'] ) ? $atts['filter_views'] : '';
		$GLOBALS['gp_filter_followers'] = isset( $atts['filter_followers'] ) ? $atts['filter_followers'] : '';
		$GLOBALS['gp_filter_site_rating'] = isset( $atts['filter_site_rating'] ) ? $atts['filter_site_rating'] : '';
		$GLOBALS['gp_filter_user_rating'] = isset( $atts['filter_user_rating'] ) ? $atts['filter_user_rating'] : '';
		$GLOBALS['gp_filter_hub_awards'] = isset( $atts['filter_hub_awards'] ) ? $atts['filter_hub_awards'] : '';
		$GLOBALS['gp_filter_date_posted'] = isset( $atts['filter_date_posted'] ) ? $atts['filter_date_posted'] : '';
		$GLOBALS['gp_filter_date_modified'] = isset( $atts['filter_date_modified'] ) ? $atts['filter_date_modified'] : '';
		$GLOBALS['gp_filter_cats_id'] = isset( $atts['filter_cats_id'] ) ? $atts['filter_cats_id'] : '';
		$GLOBALS['gp_per_page'] = isset( $atts['per_page'] ) ? $atts['per_page'] : '';
		$GLOBALS['gp_offset'] = isset( $atts['offset'] ) ? $atts['offset'] : '';
		$GLOBALS['gp_featured_image'] = isset( $atts['featured_image'] ) ? $atts['featured_image'] : '';
		$GLOBALS['gp_image_width'] = isset( $atts['image_width'] ) ? $atts['image_width'] : '';
		$GLOBALS['gp_image_height'] = isset( $atts['image_height'] ) ? $atts['image_height'] : '';
		$GLOBALS['gp_hard_crop'] = isset( $atts['hard_crop'] ) ? $atts['hard_crop'] : '';
		$GLOBALS['gp_image_alignment'] = isset( $atts['image_alignment'] ) ? $atts['image_alignment'] : '';
		$GLOBALS['gp_title_position'] = isset( $atts['title_position'] ) ? $atts['title_position'] : '';
		$GLOBALS['gp_content_display'] = isset( $atts['content_display'] ) ? $atts['content_display'] : '';
		$GLOBALS['gp_excerpt_length'] = isset( $atts['excerpt_length'] ) ? $atts['excerpt_length'] : '';
		$GLOBALS['gp_meta_author'] = isset( $atts['meta_author'] ) ? $atts['meta_author'] : '';
		$GLOBALS['gp_meta_date'] = isset( $atts['meta_date'] ) ? $atts['meta_date'] : '';
		$GLOBALS['gp_meta_comment_count'] = isset( $atts['meta_comment_count'] ) ? $atts['meta_comment_count'] : '';
		$GLOBALS['gp_meta_views'] = isset( $atts['meta_views'] ) ? $atts['meta_views'] : '';
		$GLOBALS['gp_meta_followers'] = isset( $atts['meta_followers'] ) ? $atts['meta_followers'] : '';
		$GLOBALS['gp_meta_cats'] = isset( $atts['meta_cats'] ) ? $atts['meta_cats'] : '';
		$GLOBALS['gp_meta_tags'] = isset( $atts['meta_tags'] ) ? $atts['meta_tags'] : '';
		$GLOBALS['gp_meta_hub_cats'] = isset( $atts['meta_hub_cats'] ) ? $atts['meta_hub_cats'] : '';
		$GLOBALS['gp_meta_hub_fields'] = isset( $atts['meta_hub_cats'] ) ? $atts['meta_hub_fields'] : '';
		$GLOBALS['gp_meta_hub_award'] = isset( $atts['meta_hub_award'] ) ? $atts['meta_hub_award'] : '';	
		$GLOBALS['gp_hub_cats_selected'] = isset( $gp['hub_cat_cats'] ) ? $gp['hub_cat_cats'] : '';
		$GLOBALS['gp_hub_fields'] = isset( $gp['hub_cat_fields'] ) ? $gp['hub_cat_fields'] : '';		
		$GLOBALS['gp_display_site_rating'] = isset( $atts['display_site_rating'] ) ? $atts['display_site_rating'] : '';
		$GLOBALS['gp_display_user_rating'] = isset( $atts['display_user_rating'] ) ? $atts['display_user_rating'] : '';
		$GLOBALS['gp_read_more_link'] = isset( $atts['read_more_link'] ) ? $atts['read_more_link'] : '';
		$GLOBALS['gp_page_numbers'] = isset( $atts['page_numbers'] ) ? $atts['page_numbers'] : '';

		// Fallbacks
		$GLOBALS['gp_meta_comment_count'] = isset( $atts['meta_comments'] ) ? $atts['meta_comments'] : $GLOBALS['gp_meta_comment_count'];
		$GLOBALS['gp_page_numbers'] = isset( $atts['pages'] ) ? $atts['pages'] : $GLOBALS['gp_page_numbers'];
		if ( ( isset( $atts['format'] ) && $atts['format'] == 'blog-columns' ) && ( isset( $atts['column_type'] ) && $atts['column_type'] == 'multiple-columns' ) ) {
			$GLOBALS['gp_format'] = 'blog-columns-3';
		}
		if ( ( isset( $atts['format'] ) && $atts['format'] == 'blog-columns' ) && ( isset( $atts['column_type'] ) && $atts['column_type'] == 'single-column' ) ) {
			$GLOBALS['gp_format'] = 'blog-columns-1';
		}
				
		// Add slug support for filter categories option
		if ( preg_match( '/^[a-zA-Z\-]+/', $GLOBALS['gp_filter_cats_id'] ) ) {
			$taxonomies = get_taxonomies();
			foreach ( $taxonomies as $taxonomy ) {
				$term = term_exists( $GLOBALS['gp_filter_cats_id'], $taxonomy );
				$tax_name = '';
				if ( $term !== 0 && $term !== null ) {
					$tax_name = $taxonomy;
					break;
				}
			}		
			$filter_cats_slug = get_term_by( 'slug', $GLOBALS['gp_filter_cats_id'], $tax_name );
			if ( $filter_cats_slug ) {
				$GLOBALS['gp_filter_cats_id'] = $filter_cats_slug->term_id;
			}
		}
	
	}
}


/*--------------------------------------------------------------
Custom Shortcodes
--------------------------------------------------------------*/

if ( ! function_exists( 'gp_custom_shortcodes' ) ) {
	function gp_custom_shortcodes() {


		/*--------------------------------------------------------------
		Blog Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_blog.php' );

		vc_map( array( 
			'name' => __( 'Blog', 'gp_lang' ),
			'base' => 'blog',
			'description' => __( 'Display posts, pages and custom post types in a variety of ways.', 'gp_lang' ),
			'class' => 'wpb_vc_blog',
			'controls' => 'full',
			'icon' => 'gp-icon-blog',
			'category' => __( 'Content', 'gp_lang' ),			
			'admin_enqueue_css' => gp_css_uri . 'admin.css',
			'front_enqueue_css' => gp_css_uri . 'admin.css',
			'params' => array(		
				array( 
				'heading' => __( 'Title', 'gp_lang' ),
				'description' => __( 'The title at the top of the element.', 'gp_lang' ),
				'param_name' => 'widget_title',
				'type' => 'textfield',
				'admin_label' => true,
				'value' => '',
				),				
				array( 
				'heading' => __( 'Categories', 'gp_lang' ),
				'description' => __( 'Enter the ID numbers or slugs of the categories, separating each ID or slug with a comma e.g. 33,74,25.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=category'). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang' ),
				'param_name' => 'cats',
				'type' => 'textfield',
				),					
				array( 
				'heading' => __( 'Post Types', 'gp_lang' ),
				'description' => __( 'The post types to display.', 'gp_lang' ),
				'param_name' => 'post_types',
				'value' => 'post',
				'type' => 'posttypes',
				),
				array( 
				'heading' => __( 'Format', 'gp_lang' ),
				'description' => __( 'The format to display the items in.', 'gp_lang' ),
				'param_name' => 'format',
				'value' => array( __( 'Standard', 'gp_lang' ) => 'blog-standard', __( '1 Column', 'gp_lang' ) => 'blog-columns-1', __( '2 Columns', 'gp_lang' ) => 'blog-columns-2', __( '3 Columns', 'gp_lang' ) => 'blog-columns-3', __( '4 Columns', 'gp_lang' ) => 'blog-columns-4', __( '5 Columns', 'gp_lang' ) => 'blog-columns-5', __( '6 Columns', 'gp_lang' ) => 'blog-columns-6', __( 'Masonry', 'gp_lang' ) => 'blog-masonry' ),
				'type' => 'dropdown',
				),		
				array( 
				'heading' => __( 'Size', 'gp_lang' ),
				'description' => __( 'The size to display the items at.', 'gp_lang' ),
				'param_name' => 'size',
				'value' => array( __( 'Standard', 'gp_lang' ) => 'blog-standard-size', __( 'Small', 'gp_lang' ) => 'blog-small-size', __( 'Large', 'gp_lang' ) => 'blog-large-size' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Order By', 'gp_lang' ),
				'description' => __( 'The criteria which the items are ordered by.', 'gp_lang' ),
				'param_name' => 'orderby',
				'value' => array(
					__( 'Newest', 'gp_lang' ) => 'newest',
					__( 'Oldest', 'gp_lang' ) => 'oldest',
					__( 'Title (A-Z)', 'gp_lang' ) => 'title_az',
					__( 'Title (Z-A)', 'gp_lang' ) => 'title_za',
					__( 'Most Comments', 'gp_lang' ) => 'comment_count',
					__( 'Most Views', 'gp_lang' ) => 'views',
					__( 'Most Followers', 'gp_lang' ) => 'followers',
					__( 'Top Site Rated', 'gp_lang' ) => 'site_rating',
					__( 'Top User Rated', 'gp_lang' ) => 'user_rating',
					__( 'Hub Awards', 'gp_lang' ) => 'hub_awards',
					__( 'Menu Order', 'gp_lang' ) => 'menu_order',
					__( 'Random', 'gp_lang' ) => 'rand',
				),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Date Posted', 'gp_lang' ),
				'description' => __( 'The date the items were posted.', 'gp_lang' ),
				'param_name' => 'date_posted',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Date Modified', 'gp_lang' ),
				'description' => __( 'The date the items were modified.', 'gp_lang' ),
				'param_name' => 'date_modified',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Filter', 'gp_lang' ),
				'description' => __( 'Add a dropdown filter menu to the page.', 'gp_lang' ),
				'param_name' => 'filter',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),	
				array(
				'heading' => __( 'Filter Options', 'gp_lang' ),
				'param_name' => 'filter_cats',
				'value' => array( __( 'Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_date',
				'value' => array( __( 'Date', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_title',
				'value' => array( __( 'Title', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),								
				array(
				'param_name' => 'filter_comment_count',
				'value' => array( __( 'Comment Count', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array(
				'param_name' => 'filter_views',
				'value' => array( __( 'Views', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_followers',
				'value' => array( __( 'Followers', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),									
				array(
				'param_name' => 'filter_site_rating',
				'value' => array( __( 'Site Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_user_rating',
				'value' => array( __( 'User Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array( 
				'param_name' => 'filter_hub_awards',
				'value' => array( __( 'Hub Awards', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array( 
				'param_name' => 'filter_date_posted',
				'value' => array( __( 'Date Posted', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),				
				array( 
				'description' => __( 'Choose what options to display in the dropdown filter menu.', 'gp_lang' ),
				'param_name' => 'filter_date_modified',
				'value' => array( __( 'Date Modified', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),				
				array( 
				'heading' => __( 'Filter Categories', 'gp_lang' ),
				'description' => __('Enter the ID number or slug of the categories you want to filter by, leave blank to display all categories.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=category'). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang'),
				'param_name' => 'filter_cats_id',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),																				 
				array( 
				'heading' => __( 'Items Per Page', 'gp_lang' ),
				'description' => __( 'The number of items on each page.', 'gp_lang' ),
				'param_name' => 'per_page',
				'value' => '12',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Offset', 'gp_lang' ),
				'description' => __( 'The number of posts to offset by e.g. set to 3 to exclude the first 3 posts.', 'gp_lang' ),
				'param_name' => 'offset',
				'value' => '0',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Featured Image', 'gp_lang' ),
				'description' => __( 'Display the featured images.', 'gp_lang' ),
				'param_name' => 'featured_image',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Image Width', 'gp_lang' ),
				'description' => __( 'The width of the featured images.', 'gp_lang' ),
				'param_name' => 'image_width',
				'value' => '140',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),		 
				array( 
				'heading' => __( 'Image Height', 'gp_lang' ),
				'description' => __( 'The height of the featured images.', 'gp_lang' ),
				'param_name' => 'image_height',
				'value' => '140',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Hard Crop', 'gp_lang' ),
				'description' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'param_name' => 'hard_crop',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Image Alignment', 'gp_lang' ),
				'description' => __( 'Choose how the image aligns with the content.', 'gp_lang' ),
				'param_name' => 'image_alignment',
				'value' => array( __( 'Left Wrap', 'gp_lang' ) => 'image-wrap-left', __( 'Right Wrap', 'gp_lang' ) => 'image-wrap-right', __( 'Above Content', 'gp_lang' ) => 'image-above', __( 'Left Align', 'gp_lang' ) => 'image-align-left', __( 'Right Align', 'gp_lang' ) => 'image-align-right' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),
				array( 
				'heading' => __( 'Title Position', 'gp_lang' ),
				'description' => __( 'The position of the title.', 'gp_lang' ),
				'param_name' => 'title_position',
				'value' => array( __( 'Next To Thumbnail', 'gp_lang' ) => 'title-next-to-thumbnail', __( 'Over Thumbnail', 'gp_lang' ) => 'title-over-thumbnail' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Content Display', 'gp_lang' ),
				'description' => __( 'The amount of content displayed.', 'gp_lang' ),
				'param_name' => 'content_display',
				'value' => array( __( 'Excerpt', 'gp_lang' ) => 'excerpt', __( 'Full Content', 'gp_lang' ) => 'full_content' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Excerpt Length', 'gp_lang' ),
				'description' => __( 'The number of characters in excerpts.', 'gp_lang' ),
				'param_name' => 'excerpt_length',
				'value' => '160',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'content_display', 'value' => 'excerpt' ),
				),	
				array(
				'heading' => __( 'Post Meta', 'gp_lang' ),
				'param_name' => 'meta_author',
				'value' => array( __( 'Author Name', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array(
				'param_name' => 'meta_date',
				'value' => array( __( 'Post Date', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),			
				array(
				'param_name' => 'meta_comment_count',
				'value' => array( __( 'Comment Count', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),		
				array(
				'param_name' => 'meta_views',
				'value' => array( __( 'Views', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),		
				array(
				'param_name' => 'meta_followers',
				'value' => array( __( 'Followers', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array( 
				'param_name' => 'meta_cats',
				'value' => array( __( 'Post Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'param_name' => 'meta_tags',
				'value' => array( __( 'Post Tags', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array(
				'param_name' => 'meta_hub_cats',
				'value' => array( __( 'Hub Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),					
				array(
				'param_name' => 'meta_hub_fields',
				'value' => array( __( 'Hub Fields', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'description' => __( 'Select the meta data you want to display.', 'gp_lang' ),
				'param_name' => 'meta_hub_award',
				'value' => array( __( 'Hub Award', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'heading' => __( 'Ratings', 'gp_lang' ),
				'param_name' => 'display_site_rating',
				'value' => array( __( 'Site Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'post_types', 'value' => 'page' ),
				),					
				array(
				'description' => __( 'Select the ratings you want to display.', 'gp_lang' ),
				'param_name' => 'display_user_rating',
				'value' => array( __( 'User Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'post_types', 'value' => 'page' ),
				),								
				array( 
				'heading' => __( 'Read More Link', 'gp_lang' ),
				'description' => __( 'Add a read more link below the content.', 'gp_lang' ),
				'param_name' => 'read_more_link',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),		 
				array( 
				'heading' => __( 'Pagination', 'gp_lang' ),
				'description' => __( 'Add pagination.', 'gp_lang' ),
				'param_name' => 'page_numbers',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'See All', 'gp_lang' ),
				'description' => __( 'Add a "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'See All Link', 'gp_lang' ),
				'description' => __( 'URL for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_link',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),				 			 
				array( 
				'heading' => __( 'See All Text', 'gp_lang' ),
				'description' => __( 'Custom text for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_text',
				'type' => 'textfield',
				'value' => __( 'See All Items', 'gp_lang' ),
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),	 			 				 		   			 			 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'type' => 'textfield',
				),																																								
			 )
		) );


		/*--------------------------------------------------------------
		Featured Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_featured.php' );

		vc_map( array( 
			'name' => __( 'Featured', 'gp_lang' ),
			'base' => 'featured',
			'description' => __( 'Catch the attention of your visitors with a featured post or page.', 'gp_lang' ),
			'class' => 'wpb_vc_featured',
			'controls' => 'full',
			'icon' => 'gp-icon-featured',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array(		
				array( 
				'heading' => __( 'Title', 'gp_lang' ),
				'description' => __( 'The title that appears faded in the background.', 'gp_lang' ),
				'param_name' => 'widget_title',
				'type' => 'textfield',
				'admin_label' => true,
				'value' => '',
				),				
				array( 
				'heading' => __( 'Post ID/Slug', 'gp_lang' ),
				'description' => __( 'Enter the ID number or slug of the post you want to display.<br/>
				Hover your mouse over the post names on the <a href="' . admin_url ( 'edit.php'). '" target="_blank">posts page</a> to reveal the URL which contains the ID numbers.', 'gp_lang' ),
				'param_name' => 'post_id',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Page ID/Slug', 'gp_lang' ),
				'description' => __( 'Enter the ID number or slug of the page you want to display.<br/>
				Hover your mouse over the post names on the <a href="' . admin_url ( 'edit.php?post_type=page'). '" target="_blank">pages page</a> to reveal the URL which contains the ID numbers.', 'gp_lang' ),
				'param_name' => 'page_id',
				'type' => 'textfield',
				),				
				array( 
				'heading' => __( 'Featured Image', 'gp_lang' ),
				'description' => __( 'Display the featured images.', 'gp_lang' ),
				'param_name' => 'featured_image',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Image Width', 'gp_lang' ),
				'description' => __( 'The width of the featured images.', 'gp_lang' ),
				'param_name' => 'image_width',
				'value' => '264',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),		 
				array( 
				'heading' => __( 'Image Height', 'gp_lang' ),
				'description' => __( 'The height of the featured images.', 'gp_lang' ),
				'param_name' => 'image_height',
				'value' => '264',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Hard Crop', 'gp_lang' ),
				'description' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'param_name' => 'hard_crop',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Image Alignment', 'gp_lang' ),
				'description' => __( 'Choose how the image aligns with the content.', 'gp_lang' ),
				'param_name' => 'image_alignment',
				'value' => array( __( 'Left Align', 'gp_lang' ) => 'image-align-left', __( 'Left Wrap', 'gp_lang' ) => 'image-wrap-left', __( 'Right Wrap', 'gp_lang' ) => 'image-wrap-right', __( 'Above Content', 'gp_lang' ) => 'image-above', __( 'Right Align', 'gp_lang' ) => 'image-align-right' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),
				array( 
				'heading' => __( 'Title Position', 'gp_lang' ),
				'description' => __( 'The position of the title.', 'gp_lang' ),
				'param_name' => 'title_position',
				'value' => array( __( 'Next To Thumbnail', 'gp_lang' ) => 'title-next-to-thumbnail', __( 'Over Thumbnail', 'gp_lang' ) => 'title-over-thumbnail' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Content Display', 'gp_lang' ),
				'description' => __( 'The amount of content displayed.', 'gp_lang' ),
				'param_name' => 'content_display',
				'value' => array( __( 'Excerpt', 'gp_lang' ) => 'excerpt', __( 'Full Content', 'gp_lang' ) => 'full_content' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Excerpt Length', 'gp_lang' ),
				'description' => __( 'The number of characters in excerpts.', 'gp_lang' ),
				'param_name' => 'excerpt_length',
				'value' => '250',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'content_display', 'value' => 'excerpt' ),
				),	
				array(
				'heading' => __( 'Post Meta', 'gp_lang' ),
				'param_name' => 'meta_author',
				'value' => array( __( 'Author Name', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array(
				'param_name' => 'meta_date',
				'value' => array( __( 'Post Date', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),				
				array(
				'param_name' => 'meta_views',
				'value' => array( __( 'Views', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),				
				array(
				'param_name' => 'meta_followers',
				'value' => array( __( 'Followers', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'param_name' => 'meta_comment_count',
				'value' => array( __( 'Comment Count', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array( 
				'param_name' => 'meta_cats',
				'value' => array( __( 'Post Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'param_name' => 'meta_tags',
				'value' => array( __( 'Post Tags', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array(
				'param_name' => 'meta_hub_cats',
				'value' => array( __( 'Hub Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),					
				array(
				'param_name' => 'meta_hub_fields',
				'value' => array( __( 'Hub Fields', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'description' => __( 'Select the meta data you want to display.', 'gp_lang' ),
				'param_name' => 'meta_hub_award',
				'value' => array( __( 'Hub Award', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),				
				array(
				'heading' => __( 'Ratings', 'gp_lang' ),
				'param_name' => 'display_site_rating',
				'value' => array( __( 'Site Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),					
				array(
				'description' => __( 'Select the ratings you want to display.', 'gp_lang' ),
				'param_name' => 'display_user_rating',
				'value' => array( __( 'User Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),								
				array( 
				'heading' => __( 'Read More Link', 'gp_lang' ),
				'description' => __( 'Add a read more link below the content.', 'gp_lang' ),
				'param_name' => 'read_more_link',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),		 		   			 			 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'type' => 'textfield',
				),
				array(
				'heading' => __( 'CSS', 'gp_lang' ),
				'type' => 'css_editor',
				'param_name' => 'css',
				'group' => __( 'Design options', 'gp_lang' ),
				),	
				array( 
				'heading' => __( 'Text Color', 'gp_lang' ),
				'description' => __( 'The color of the text.', 'gp_lang' ),
				'param_name' => 'text_color',
				'value' => '',
				'type' => 'colorpicker',
				'group' => __( 'Design options', 'gp_lang' ),
				),
				array( 
				'heading' => __( 'Background Overlay', 'gp_lang' ),
				'description' => __( 'Add a background overlay to the featured content.', 'gp_lang' ),
				'param_name' => 'background_overlay',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				'group' => __( 'Design options', 'gp_lang' ),
				),																																														
			 )
		) );


		/*--------------------------------------------------------------
		Filters Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_filters.php' );

		vc_map( array( 
			'name' => __( 'Filters', 'gp_lang' ),
			'base' => 'filters',
			'description' => __( 'Add filters to your page.', 'gp_lang' ),
			'class' => 'wpb_vc_filters',
			'controls' => 'full',
			'icon' => 'gp-icon-filters',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array( 			
				array( 
				'heading' => __( 'Title', 'gp_lang' ),
				'description' => __( 'The title that appears faded in the background.', 'gp_lang' ),
				'param_name' => 'widget_title',
				'type' => 'textfield',
				'admin_label' => true,
				'value' => '',
				),
				array( 
				'heading' => __( 'Parent Hub Category', 'gp_lang' ),
				'description' => __( 'Enter the ID number or slug of the parent category you want your filters based on.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=category'). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang' ),
				'param_name' => 'parent_cat',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Date Posted', 'gp_lang' ),
				'param_name' => 'date_posted',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'description' => __( 'Choose whether to add the date posted filter.', 'gp_lang' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Date Modified', 'gp_lang' ),
				'param_name' => 'date_modified',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'description' => __( 'Choose whether to add the date modified filter.', 'gp_lang' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Hub Fields', 'gp_lang' ),
				'description' => __( 'Enter the slugs of the hub fields you want to add to the filter options, separating each with a comma e.g. genre,release-date,developed-by.', 'gp_lang' ),
				'param_name' => 'fields',
				'type' => 'textfield',
				),	
				array( 
				'heading' => __( 'Date Posted Text', 'gp_lang' ),
				'description' => __( 'The text used for the date posted dropdown menu.', 'gp_lang' ),
				'param_name' => 'date_posted_text',
				'value' => 'Release Date',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Date Modified Text', 'gp_lang' ),
				'description' => __( 'The text used for the date modified dropdown menu.', 'gp_lang' ),
				'param_name' => 'date_modified_text',
				'value' => 'Last Updated',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Parent Category Text', 'gp_lang' ),
				'description' => __( 'The text used for the parent category dropdown menu.', 'gp_lang' ),
				'param_name' => 'parent_cat_text',
				'value' => 'Categories',
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Submit Button Text', 'gp_lang' ),
				'description' => __( 'The text used for the submit button.', 'gp_lang' ),
				'param_name' => 'submit_button_text',
				'value' => 'Filter Items',
				'type' => 'textfield',
				),			
				array( 
				'heading' => __( 'Background Color', 'gp_lang' ),
				'description' => __( 'The background color.', 'gp_lang' ),
				'param_name' => 'bg_color',
				'value' => '',
				'type' => 'colorpicker',
				'group' => __( 'Design options', 'gp_lang' ),
				),
				array( 
				'heading' => __( 'Border Color', 'gp_lang' ),
				'description' => __( 'The border color.', 'gp_lang' ),
				'param_name' => 'border_color',
				'value' => '',
				'type' => 'colorpicker',
				'group' => __( 'Design options', 'gp_lang' ),
				),																																									
			 )
		) );
		
		
		/*--------------------------------------------------------------
		Images Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_images.php' );
		
		vc_map( array( 
			'name' => __( 'Images', 'gp_lang' ),
			'base' => 'images',
			'description' => __( 'Display a list of images.', 'gp_lang' ),
			'class' => 'wpb_vc_images',
			'controls' => 'full',
			'icon' => 'gp-icon-images',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array(
				array( 
				'heading' => __( 'Title', 'gp_lang' ),
				'description' => __( 'The title at the top of the element.', 'gp_lang' ),
				'param_name' => 'widget_title',
				'type' => 'textfield',
				'admin_label' => true,
				'value' => '',
				),
				array( 
				'heading' => __( 'Upload Images', 'gp_lang' ),
				'description' => __( 'Manually upload images or leave empty to display images from the child page using the Images page template.', 'gp_lang' ),
				'param_name' => 'upload_images',
				'type' => 'attach_images',
				'value' => '',
				),				
				array( 
				'heading' => __( 'Number Of Images', 'gp_lang' ),
				'description' => __( 'The number of images to display.', 'gp_lang' ),
				'param_name' => 'number',
				'type' => 'textfield',
				'value' => '8', 
				'dependency' => array( 'element' => 'get_images_from', 'value' => array( 'child-page', 'specific-page' ) ),
				),	
				array( 
				'heading' => __( 'Image Width', 'gp_lang' ),
				'description' => __( 'The width of the images.', 'gp_lang' ),
				'param_name' => 'image_width',
				'value' => '114',
				'type' => 'textfield',
				),		 
				array( 
				'heading' => __( 'Image Height', 'gp_lang' ),
				'description' => __( 'The height of the images.', 'gp_lang' ),
				'param_name' => 'image_height',
				'value' => '118',
				'type' => 'textfield',
				),	
				array( 
				'heading' => __( 'Hard Crop', 'gp_lang' ),
				'description' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'param_name' => 'hard_crop',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),			 			
				array( 
				'heading' => __( 'See All', 'gp_lang' ),
				'description' => __( 'Add a "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'See All Link', 'gp_lang' ),
				'description' => __( 'URL for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_link',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),				 			 
				array( 
				'heading' => __( 'See All Text', 'gp_lang' ),
				'description' => __( 'Custom text for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_text',
				'type' => 'textfield',
				'value' => __( 'See All Images', 'gp_lang' ),
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),					 			 						 		   			 			 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'type' => 'textfield',
				'param_name' => 'classes',
				'value' => '',
				),																																								
			 )
		) );
		

		/*--------------------------------------------------------------
		News Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_news.php' );

		vc_map( array( 
			'name' => __( 'News', 'gp_lang' ),
			'base' => 'news',
			'description' => __( 'Display your news posts in a variety of ways.', 'gp_lang' ),
			'class' => 'wpb_vc_news',
			'controls' => 'full',
			'icon' => 'gp-icon-news',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array( 		
				array( 
				'heading' => __( 'Title', 'gp_lang' ),
				'description' => __( 'The title at the top of the element.', 'gp_lang' ),
				'param_name' => 'widget_title',
				'type' => 'textfield',
				'admin_label' => true,
				'value' => '',
				),		
				array( 
				'heading' => __( 'Categories', 'gp_lang' ),
				'description' => __('Enter the ID numbers or slugs of the categories, separating each ID or slug with a comma e.g. 33,74,25.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=category'). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang'),
				'param_name' => 'cats',
				'type' => 'textfield',
				),				
				array( 
				'heading' => __( 'Format', 'gp_lang' ),
				'description' => __( 'The format to display the items in.', 'gp_lang' ),
				'param_name' => 'format',
				'value' => array( __( 'Standard', 'gp_lang' ) => 'blog-standard', __( '1 Column', 'gp_lang' ) => 'blog-columns-1', __( '2 Columns', 'gp_lang' ) => 'blog-columns-2', __( '3 Columns', 'gp_lang' ) => 'blog-columns-3', __( '4 Columns', 'gp_lang' ) => 'blog-columns-4', __( '5 Columns', 'gp_lang' ) => 'blog-columns-5', __( '6 Columns', 'gp_lang' ) => 'blog-columns-6', __( 'Masonry', 'gp_lang' ) => 'blog-masonry' ),
				'type' => 'dropdown',
				),						
				array( 
				'heading' => __( 'Size', 'gp_lang' ),
				'description' => __( 'The size to display the items at.', 'gp_lang' ),
				'param_name' => 'size',
				'value' => array( __( 'Standard', 'gp_lang' ) => 'blog-standard-size', __( 'Small', 'gp_lang' ) => 'blog-small-size', __( 'Large', 'gp_lang' ) => 'blog-large-size'  ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Order By', 'gp_lang' ),
				'description' => __( 'The criteria which the items are ordered by.', 'gp_lang' ),
				'param_name' => 'orderby',
				'value' => array(
					__( 'Newest', 'gp_lang' ) => 'newest',
					__( 'Oldest', 'gp_lang' ) => 'oldest',
					__( 'Title (A-Z)', 'gp_lang' ) => 'title_az',
					__( 'Title (Z-A)', 'gp_lang' ) => 'title_za',
					__( 'Most Comments', 'gp_lang' ) => 'comment_count',
					__( 'Most Views', 'gp_lang' ) => 'views',
					__( 'Menu Order', 'gp_lang' ) => 'menu_order',
					__( 'Random', 'gp_lang' ) => 'rand',
				),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Date Posted', 'gp_lang' ),
				'description' => __( 'The date the items were posted.', 'gp_lang' ),
				'param_name' => 'date_posted',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Date Modified', 'gp_lang' ),
				'description' => __( 'The date the items were modified.', 'gp_lang' ),
				'param_name' => 'date_modified',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Filter', 'gp_lang' ),
				'description' => __( 'Add a dropdown filter menu to the page.', 'gp_lang' ),
				'param_name' => 'filter',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),	
				array(
				'heading' => __( 'Filter Options', 'gp_lang' ),
				'param_name' => 'filter_cats',
				'value' => array( __( 'Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_date',
				'value' => array( __( 'Date', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_title',
				'value' => array( __( 'Title', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),								
				array(
				'param_name' => 'filter_comment_count',
				'value' => array( __( 'Comment Count', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array(
				'param_name' => 'filter_views',
				'value' => array( __( 'Views', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array( 
				'param_name' => 'filter_date_posted',
				'value' => array( __( 'Date Posted', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),				
				array( 
				'description' => __( 'Choose what options to display in the dropdown filter menu.', 'gp_lang' ),
				'param_name' => 'filter_date_modified',
				'value' => array( __( 'Date Modified', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),						
				array( 
				'heading' => __( 'Filter Categories', 'gp_lang' ),
				'description' => __('Enter the ID number or slug of the categories you want to filter by, leave blank to display all categories.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=category'). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang'),
				'param_name' => 'filter_cats_id',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),		
				array( 
				'heading' => __( 'Items Per Page', 'gp_lang' ),
				'description' => __( 'The number of items on each page.', 'gp_lang' ),
				'param_name' => 'per_page',
				'value' => '5',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Offset', 'gp_lang' ),
				'description' => __( 'The number of posts to offset by e.g. set to 3 to exclude the first 3 posts.', 'gp_lang' ),
				'param_name' => 'offset',
				'value' => '0',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Featured Image', 'gp_lang' ),
				'description' => __( 'Display the featured images.', 'gp_lang' ),
				'param_name' => 'featured_image',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Image Width', 'gp_lang' ),
				'description' => __( 'The width of the featured images.', 'gp_lang' ),
				'param_name' => 'image_width',
				'value' => '140',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),		 
				array( 
				'heading' => __( 'Image Height', 'gp_lang' ),
				'description' => __( 'The height of the featured images.', 'gp_lang' ),
				'param_name' => 'image_height',
				'value' => '140',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Hard Crop', 'gp_lang' ),
				'description' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'param_name' => 'hard_crop',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Image Alignment', 'gp_lang' ),
				'description' => __( 'Choose how the image aligns with the content.', 'gp_lang' ),
				'param_name' => 'image_alignment',
				'value' => array( __( 'Left Align', 'gp_lang' ) => 'image-align-left', __( 'Left Wrap', 'gp_lang' ) => 'image-wrap-left', __( 'Right Wrap', 'gp_lang' ) => 'image-wrap-right', __( 'Above Content', 'gp_lang' ) => 'image-above', __( 'Right Align', 'gp_lang' ) => 'image-align-right' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),
				array( 
				'heading' => __( 'Title Position', 'gp_lang' ),
				'description' => __( 'The position of the title.', 'gp_lang' ),
				'param_name' => 'title_position',
				'value' => array( __( 'Next To Thumbnail', 'gp_lang' ) => 'title-next-to-thumbnail', __( 'Over Thumbnail', 'gp_lang' ) => 'title-over-thumbnail' ),
				'type' => 'dropdown',
				),				
				array( 
				'heading' => __( 'Content Display', 'gp_lang' ),
				'description' => __( 'The amount of content displayed.', 'gp_lang' ),
				'param_name' => 'content_display',
				'value' => array( __( 'Excerpt', 'gp_lang' ) => 'excerpt', __( 'Full Content', 'gp_lang' ) => 'full_content' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Excerpt Length', 'gp_lang' ),
				'description' => __( 'The number of characters in excerpts.', 'gp_lang' ),
				'param_name' => 'excerpt_length',
				'value' => '100',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'content_display', 'value' => 'excerpt' ),
				),	
				array(
				'heading' => __( 'Post Meta', 'gp_lang' ),
				'param_name' => 'meta_author',
				'value' => array( __( 'Author Name', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array(
				'param_name' => 'meta_date',
				'value' => array( __( 'Post Date', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),				
				array(
				'param_name' => 'meta_views',
				'value' => array( __( 'Views', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),		
				array(
				'param_name' => 'meta_comment_count',
				'value' => array( __( 'Comment Count', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array( 
				'param_name' => 'meta_cats',
				'value' => array( __( 'Post Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'description' => __( 'Select the meta data you want to display.', 'gp_lang' ),
				'param_name' => 'meta_tags',
				'value' => array( __( 'Post Tags', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array( 
				'heading' => __( 'Read More Link', 'gp_lang' ),
				'description' => __( 'Add a read more link below the content.', 'gp_lang' ),
				'param_name' => 'read_more_link',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),				 
				array( 
				'heading' => __( 'Pagination', 'gp_lang' ),
				'description' => __( 'Add pagination.', 'gp_lang' ),
				'param_name' => 'page_numbers',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),		 			
				array( 
				'heading' => __( 'See All', 'gp_lang' ),
				'description' => __( 'Add a "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'See All Link', 'gp_lang' ),
				'description' => __( 'URL for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_link',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),					 			 
				array( 
				'heading' => __( 'See All Text', 'gp_lang' ),
				'description' => __( 'Custom text for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_text',
				'type' => 'textfield',
				'value' => __( 'See All News', 'gp_lang' ),
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),		 				 		   			 			 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'type' => 'textfield',
				),																																								
			 )
		) );
		
				
		/*--------------------------------------------------------------
		Portfolio Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_portfolio.php' );
		
		vc_map( array( 
			'name' => __( 'Portfolio', 'gp_lang' ),
			'base' => 'portfolio',
			'description' => __( 'Display your portfolio items in a variety of ways.', 'gp_lang' ),
			'class' => 'wpb_vc_portfolio',
			'controls' => 'full',
			'icon' => 'gp-icon-portfolio',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array( 		
				array( 
				'heading' => __( 'Format', 'gp_lang' ),
				'description' => __( 'The format to display the items in.', 'gp_lang' ),
				'param_name' => 'format',
				'value' => array( __( '2 Columns', 'gp_lang' ) => 'portfolio-columns-2', __( '3 Columns', 'gp_lang' ) => 'portfolio-columns-3', __( '4 Columns', 'gp_lang' ) => 'portfolio-columns-4', __( '5 Columns', 'gp_lang' ) => 'portfolio-columns-5', __( '6 Columns', 'gp_lang' ) => 'portfolio-columns-6', __( 'Masonry', 'gp_lang' ) => 'portfolio-masonry' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Categories', 'gp_lang' ),
				'description' => __('Enter the ID numbers or slugs of the categories, separating each ID or slug with a comma e.g. 33,74,25. Hover your mouse over the category names on the <a href="' . admin_url( 'edit-tags.php?taxonomy=gp_portfolios&post_type=gp_portfolio_item' ) . '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang'),
				'param_name' => 'cats',
				'value' => '',
				'type' => 'textfield',
				),		 
				array( 
				'heading' => __( 'Order By', 'gp_lang' ),
				'description' => __( 'The criteria which the items are ordered by.', 'gp_lang' ),
				'param_name' => 'orderby',
				'value' => array(
					__( 'Newest', 'gp_lang' ) => 'newest',
					__( 'Oldest', 'gp_lang' ) => 'oldest',
					__( 'Title (A-Z)', 'gp_lang' ) => 'title_az',
					__( 'Title (Z-A)', 'gp_lang' ) => 'title_za',
					__( 'Most Comments', 'gp_lang' ) => 'comment_count',
					__( 'Most Views', 'gp_lang' ) => 'views',
					__( 'Menu Order', 'gp_lang' ) => 'menu_order',
					__( 'Random', 'gp_lang' ) => 'rand',
				),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Date Posted', 'gp_lang' ),
				'description' => __( 'The date the items were posted.', 'gp_lang' ),
				'param_name' => 'date_posted',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Date Modified', 'gp_lang' ),
				'description' => __( 'The date the items were modified.', 'gp_lang' ),
				'param_name' => 'date_modified',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),				
				array( 
				'heading' => __( 'Filter', 'gp_lang' ),
				'description' => __( 'Add category filter links to the page.', 'gp_lang' ),
				'param_name' => 'filter',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),			 
				array( 
				'heading' => __( 'Items Per Page', 'gp_lang' ),
				'description' => __( 'The number of items on each page.', 'gp_lang' ),
				'param_name' => 'per_page',
				'value' => '12',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Offset', 'gp_lang' ),
				'description' => __( 'The number of posts to offset by e.g. set to 3 to exclude the first 3 posts.', 'gp_lang' ),
				'param_name' => 'offset',
				'value' => '0',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Pagination', 'gp_lang' ),
				'description' => __( 'Add pagination.', 'gp_lang' ),
				'param_name' => 'page_numbers',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),		 		 				 		   			 			 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'type' => 'textfield',
				),																																								
			 )
		) );


		/*--------------------------------------------------------------
		Pricing Table Shortcode
		--------------------------------------------------------------*/

		// Pricing Table
		vc_map( array( 
			'name' => __( 'Pricing Table', 'gp_lang' ),
			'base' => 'pricing_table',
			'description' => __( 'A table to compare the prices of different items.', 'gp_lang' ),
			'as_parent' => array( 'only' => 'pricing_column' ),
			'controls' => 'full',
			'icon' => 'gp-icon-pricing-table',
			'category' => __( 'Content', 'gp_lang' ),
			'js_view' => 'VcColumnView',
			'params' => array( 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'type' => 'textfield',
				),	
			),
			'js_view' => 'VcColumnView'
		 ) );


		// Pricing Column
		vc_map( array( 
			'name' => __( 'Pricing Column', 'gp_lang' ),
			'base' => 'pricing_column',
			'content_element' => true,
			'as_child' => array( 'only' => 'pricing_table' ),
			'icon' => 'gp-icon-pricing-table',
			'params' => array( 	
				array( 
				'heading' => __( 'Column Title', 'gp_lang' ),
				'description' => __( 'The title for the column.', 'gp_lang' ),
				'param_name' => 'title',
				'value' => '',
				'type' => 'textfield'
				),
				array( 
				'heading' => __( 'Price', 'gp_lang' ),
				'description' => __( 'The price for the column.', 'gp_lang' ),
				'param_name' => 'price',
				'value' => '',
				'type' => 'textfield'
				),
				array( 
				'heading' => __( 'Currency Symbol', 'gp_lang' ),
				'description' => __( 'The currency symbol.', 'gp_lang' ),
				'param_name' => 'currency_symbol',
				'value' => '',
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Interval', 'gp_lang' ),
				'description' => __( 'The interval for the column e.g. per week, per month.', 'gp_lang' ),
				'param_name' => 'interval',
				'value' => '',
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Highlight Column', 'gp_lang' ),
				'description' => __( 'Make this column stand out.', 'gp_lang' ),
				'param_name' => 'highlight',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown'
				),	
				array( 
				'heading' => __( 'Highlight Text', 'gp_lang' ),
				'description' => __( 'Add highlight text above the column title.', 'gp_lang' ),
				'param_name' => 'highlight_text',
				'value' => '',
				'dependency' => array( 'element' => 'highlight', 'value' => 'enabled' ),
				'type' => 'textfield',
				),	
				array( 
				'heading' => __( 'Content', 'gp_lang' ),
				'description' => __( 'Use the Unordered List button to create the points in your pricing column. <br/>You can also add shortcodes such as the [button link="#"] shortcode seen in the site demo.', 'gp_lang' ),
				'param_name' => 'content',
				'type' => 'textarea_html',
				),
				array( 
				'heading' => __( 'Highlight Color', 'gp_lang' ),
				'description' => __( 'The highlight color.', 'gp_lang' ),
				'param_name' => 'highlight_color',
				'value' => '#f84103',
				'dependency' => array( 'element' => 'highlight', 'value' => 'enabled' ),
				'type' => 'colorpicker',
				),		
				array( 
				'heading' => __( 'Title Color', 'gp_lang' ),
				'description' => __( 'The title color.', 'gp_lang' ),
				'param_name' => 'title_color',
				'value' => '#f84103',
				'dependency' => array( 'element' => 'highlight', 'value' => 'disabled' ),
				'type' => 'colorpicker',
				),	
				array( 
				'heading' => __( 'Highlight Title Color', 'gp_lang' ),
				'description' => __( 'The highlight title color.', 'gp_lang' ),
				'param_name' => 'highlight_title_color',
				'value' => '#fff',
				'dependency' => array( 'element' => 'highlight', 'value' => 'enabled' ),
				'type' => 'colorpicker',
				),	
				array( 
				'heading' => __( 'Background Color', 'gp_lang' ),
				'description' => __( 'The background color.', 'gp_lang' ),
				'param_name' => 'background_color',
				'value' => '#f7f7f7',
				'dependency' => array( 'element' => 'highlight', 'value' => 'disabled' ),
				'type' => 'colorpicker',
				),		 
				array( 
				'heading' => __( 'Highlight Background Color', 'gp_lang' ),
				'description' => __( 'The highlight background color.', 'gp_lang' ),
				'param_name' => 'highlight_background_color',
				'value' => '#fff',
				'dependency' => array( 'element' => 'highlight', 'value' => 'enabled' ),
				'type' => 'colorpicker',
				),		 		 		 
				array( 
				'heading' => __( 'Text Color', 'gp_lang' ),
				'description' => __( 'The text color.', 'gp_lang' ),
				'param_name' => 'text_color',
				'value' => '#747474',
				'type' => 'colorpicker',
				),	
				array( 
				'heading' => __( 'Border', 'gp_lang' ),
				'description' => __( 'Add a border around the columns.', 'gp_lang' ),
				'param_name' => 'border',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),			 
				array( 
				'heading' => __( 'Border Color', 'gp_lang' ),
				'description' => __( 'The border color.', 'gp_lang' ),
				'param_name' => 'border_color',
				'value' => '#e7e7e7',
				'dependency' => array( 'element' => 'border', 'value' => 'enabled' ),
				'type' => 'colorpicker',
				),	 		 																																							
			 )
		 ) );

		class WPBakeryShortCode_Pricing_Table extends WPBakeryShortCodesContainer {}
		class WPBakeryShortCode_Pricing_Column extends WPBakeryShortCode {}	


		/*--------------------------------------------------------------
		Progress Bar Shortcode (add-on)
		--------------------------------------------------------------*/

		vc_add_param( 'vc_progress_bar', array( 
		'heading' => __( 'Text Color', 'gp_lang' ),
		'param_name' => 'textcolor',
		'class' => '',
		'description' => __( 'Select custom text color for bars.', 'gp_lang' ),
		'type' => 'colorpicker',
		 ) );


		/*--------------------------------------------------------------
		Ranking Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_ranking.php' );

		vc_map( array( 
			'name' => __( 'Ranking', 'gp_lang' ),
			'base' => 'ranking',
			'description' => __( 'Rank hub pages in a variety of ways.', 'gp_lang' ),
			'class' => 'wpb_vc_ranking',
			'controls' => 'full',
			'icon' => 'gp-icon-ranking',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array(		
				array( 
				'heading' => __( 'Title', 'gp_lang' ),
				'description' => __( 'The title at the top of the element.', 'gp_lang' ),
				'param_name' => 'widget_title',
				'type' => 'textfield',
				'admin_label' => true,
				'value' => '',
				),		
				array(
				'heading' => __( 'Type', 'gp_lang' ),
				'description' => __( 'Select type of content you want to display.', 'gp_lang' ),
				'param_name' => 'type',
				'value' => array(
					__( 'Hubs', 'gp_lang' ) => 'hubs',
					__( 'Reviews', 'gp_lang' ) => 'reviews',
					__( 'Hubs and Reviews', 'gp_lang' ) => 'both',
				),
				'type' => 'dropdown',
				),				
				array( 
				'heading' => __( 'Categories', 'gp_lang' ),
				'description' => __( 'Enter the ID numbers or slugs of the categories, separating each ID or slug with a comma e.g. 33,74,25.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=gp_hubs&post_type=page' ). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang' ),
				'param_name' => 'cats',
				'type' => 'textfield',
				),	
				array( 
				'heading' => __( 'Order By', 'gp_lang' ),
				'description' => __( 'The criteria which the items are ordered by.', 'gp_lang' ),
				'param_name' => 'orderby',
				'value' => array(
					__( 'Top Site Rated', 'gp_lang' ) => 'site_rating',
					__( 'Newest', 'gp_lang' ) => 'newest',
					__( 'Oldest', 'gp_lang' ) => 'oldest',
					__( 'Title (A-Z)', 'gp_lang' ) => 'title_az',
					__( 'Title (Z-A)', 'gp_lang' ) => 'title_za',
					__( 'Most Comments', 'gp_lang' ) => 'comment_count',
					__( 'Most Views', 'gp_lang' ) => 'views',
					__( 'Most Followers', 'gp_lang' ) => 'followers',
					__( 'Top User Rated', 'gp_lang' ) => 'user_rating',
					__( 'Hub Awards', 'gp_lang' ) => 'hub_awards',
					__( 'Menu Order', 'gp_lang' ) => 'menu_order',
					__( 'Random', 'gp_lang' ) => 'rand',
				),
				'type' => 'dropdown',
				),					
				array( 
				'heading' => __( 'Date Posted', 'gp_lang' ),
				'description' => __( 'The date the items were posted.', 'gp_lang' ),
				'param_name' => 'date_posted',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Date Modified', 'gp_lang' ),
				'description' => __( 'The date the items were modified.', 'gp_lang' ),
				'param_name' => 'date_modified',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),					 
				array( 
				'heading' => __( 'Items', 'gp_lang' ),
				'description' => __( 'The number of items.', 'gp_lang' ),
				'param_name' => 'per_page',
				'value' => '5',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Offset', 'gp_lang' ),
				'description' => __( 'The number of posts to offset by e.g. set to 3 to exclude the first 3 posts.', 'gp_lang' ),
				'param_name' => 'offset',
				'value' => '0',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Featured Image', 'gp_lang' ),
				'description' => __( 'Display the featured images.', 'gp_lang' ),
				'param_name' => 'featured_image',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Top Ranked Image Width', 'gp_lang' ),
				'description' => __( 'The width of the top ranked featured image.', 'gp_lang' ),
				'param_name' => 'large_image_width',
				'value' => '120',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),		 
				array( 
				'heading' => __( 'Top Ranked Image Height', 'gp_lang' ),
				'description' => __( 'The height of the top ranked featured image.', 'gp_lang' ),
				'param_name' => 'large_image_height',
				'value' => '120',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Small Image Width', 'gp_lang' ),
				'description' => __( 'The width of the small featured images.', 'gp_lang' ),
				'param_name' => 'small_image_width',
				'value' => '80',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),		 
				array( 
				'heading' => __( 'Small Image Height', 'gp_lang' ),
				'description' => __( 'The height of the small featured images.', 'gp_lang' ),
				'param_name' => 'small_image_height',
				'value' => '80',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Hard Crop', 'gp_lang' ),
				'description' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'param_name' => 'hard_crop',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),
				array(
				'heading' => __( 'Post Meta', 'gp_lang' ),
				'param_name' => 'meta_hub_cats',
				'value' => array( __( 'Hub Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),					
				array(
				'description' => __( 'Select the meta data you want to display.', 'gp_lang' ),
				'param_name' => 'meta_hub_fields',
				'value' => array( __( 'Hub Fields', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array(
				'heading' => __( 'Ratings', 'gp_lang' ),
				'param_name' => 'display_site_rating',
				'value' => array( __( 'Site Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),					
				array(
				'description' => __( 'Select the ratings you want to display.', 'gp_lang' ),
				'param_name' => 'display_user_rating',
				'value' => array( __( 'User Rating', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				), 				 		   			 			 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'type' => 'textfield',
				),																																								
			 )
		) );


		/*--------------------------------------------------------------
		Team Shortcode
		--------------------------------------------------------------*/

		// Team Wrapper
		vc_map( array( 
			'name' => __( 'Team', 'gp_lang' ),
			'base' => 'team',
			'description' => __( 'Display your team members.', 'gp_lang' ),
			'as_parent' => array( 'only' => 'team_member' ), 
			'class' => 'wpb_vc_team',
			'controls' => 'full',
			'icon' => 'gp-icon-team',
			'category' => __( 'Content', 'gp_lang' ),
			'js_view' => 'VcColumnView',
			'params' => array( 	
				array( 
				'heading' => __( 'Columns', 'gp_lang' ),
				'param_name' => 'columns',
				'value' => '3',
				'description' => __( 'The number of columns.', 'gp_lang' ),
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'type' => 'textfield',
				),																																								
			 ),
			'js_view' => 'VcColumnView',
		) );

		// Team Member
		vc_map( array( 
			'name' => __( 'Team Member', 'gp_lang' ),
			'base' => 'team_member',
			'icon' => 'gp-icon-team',
			'content_element' => true,
			'as_child' => array( 'only' => 'team' ),
			'params' => array( 	
				array( 
				'heading' => __( 'Image', 'gp_lang' ),
				'description' => __( 'The team member image.', 'gp_lang' ),
				'param_name' => 'image_url',
				'value' => '',
				'type' => 'attach_image'
				),
				array( 
				'heading' => __( 'Image Width', 'gp_lang' ),
				'description' => __( 'The width of the team member image.', 'gp_lang' ),
				'param_name' => 'image_width',
				'value' => '230',
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Image Height', 'gp_lang' ),
				'description' => __( 'The height of the team member image.', 'gp_lang' ),
				'param_name' => 'image_height',
				'value' => '230',
				'type' => 'textfield',
				),			
				array( 
				'heading' => __( 'Name', 'gp_lang' ),
				'description' => __( 'The name of the team member.', 'gp_lang' ),
				'param_name' => 'name',
				'admin_label' => true,
				'value' => '',
				'type' => 'textfield'
				),	
				array( 
				'heading' => __( 'Position', 'gp_lang' ),
				'description' => __( 'The position of the team member e.g. CEO', 'gp_lang' ),
				'param_name' => 'position',
				'value' => '',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Link', 'gp_lang' ),
				'description' => __( 'Add a link for the team member image.', 'gp_lang' ),
				'param_name' => 'link',
				'value' => '',
				'type' => 'textfield',
				),	
				array( 
				'heading' => __( 'Link Target', 'gp_lang' ),
				'description' => __( 'The link target for the team member image.', 'gp_lang' ),
				'param_name' => 'link_target',
				'value' => array( __( 'Same Window', 'gp_lang' ) => '_self', __( 'New Window', 'gp_lang' ) => '_blank' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'link', 'not_empty' => true ),
				),				
				array( 
				'heading' => __( 'Description', 'gp_lang' ),
				'description' => __( 'The description of the team member.', 'gp_lang' ),
				'param_name' => 'content',
				'value' => '',
				'type' => 'textarea_html',
				),																																								
			 )
		 ) );

		class WPBakeryShortCode_Team extends WPBakeryShortCodesContainer {}
		class WPBakeryShortCode_Team_Member extends WPBakeryShortCode {}											


		/*--------------------------------------------------------------
		Testimonials Shortcode
		--------------------------------------------------------------*/

		// Testimonial Slider
		vc_map( array( 
			'name' => __( 'Testimonial Slider', 'gp_lang' ),
			'base' => 'testimonial_slider',
			'description' => __( 'Show your testimonials in a slider.', 'gp_lang' ),
			'as_parent' => array( 'only' => 'testimonial' ), 
			'class' => 'wpb_vc_testimonial',
			'controls' => 'full',
			'icon' => 'gp-icon-testimonial-slider',
			'category' => __( 'Content', 'gp_lang' ),
			'js_view' => 'VcColumnView',
			'params' => array( 	
				array( 
				'heading' => __( 'Effect', 'gp_lang' ),
				'param_name' => 'effect',
				'value' => array( __( 'Slide', 'gp_lang' ) => 'slide', __( 'Fade', 'gp_lang' ) => 'fade' ),
				'description' => __( 'The slider effect.', 'gp_lang' ),
				'type' => 'dropdown'
				),
				array( 
				'heading' => __( 'Slider Speed', 'gp_lang' ),
				'param_name' => 'speed',
				'value' => '0',
				'description' => __( 'The number of seconds between slide transitions, set to 0 to disable the autoplay.', 'gp_lang' ),
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Buttons', 'gp_lang' ),
				'param_name' => 'buttons',
				'value' => array( __( 'Show', 'gp_lang' ) => 'true', __( 'Hide', 'gp_lang' ) => 'false' ),
				'description' => __( 'The slider buttons.', 'gp_lang' ),
				'type' => 'dropdown',
				),				
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'param_name' => 'classes',
				'value' => '',
				'type' => 'textfield',
				),																																								
			 ),
			'js_view' => 'VcColumnView'
		 ) );


		// Testimonial Slide
		vc_map( array( 
			'name' => __( 'Testimonial', 'gp_lang' ),
			'base' => 'testimonial',
			'content_element' => true,
			'as_child' => array( 'only' => 'testimonial_slider' ),
			'icon' => 'gp-icon-testimonial-slider',
			'params' => array( 	
				array( 
				'heading' => __( 'Image', 'gp_lang' ),
				'description' => __( 'The testimonial slide image.', 'gp_lang' ),
				'param_name' => 'image_url',
				'value' => '',
				'type' => 'attach_image'
				),
				array( 
				'heading' => __( 'Image Width', 'gp_lang' ),
				'description' => __( 'The width the testimonial slide image.', 'gp_lang' ),
				'param_name' => 'image_width',
				'value' => '120',
				'description' => '',
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Image Height', 'gp_lang' ),
				'description' => __( 'The height of the testimonial slide images.', 'gp_lang' ),
				'param_name' => 'image_height',
				'value' => '120',
				'type' => 'textfield',
				),		
				array( 
				'heading' => __( 'Quote', 'gp_lang' ),
				'description' => __( 'The tesitmonial quote.', 'gp_lang' ),
				'param_name' => 'content',
				'value' => '',
				'type' => 'textarea_html',
				),		
				array( 
				'heading' => __( 'Name', 'gp_lang' ),
				'description' => __( 'The name of the person who gave the testimonial.', 'gp_lang' ),
				'param_name' => 'name',
				'value' => '',
				'type' => 'textfield',
				),																																								
			 )
		 ) );

		class WPBakeryShortCode_Testimonial_Slider extends WPBakeryShortCodesContainer {}
		class WPBakeryShortCode_Testimonial extends WPBakeryShortCode {}																																


		/*--------------------------------------------------------------
		User Rating Box Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_user_rating_box.php' );

		vc_map( array( 
			'name' => __( 'User Rating Box', 'gp_lang' ),
			'base' => 'user_rating_box',
			'description' => __( 'Display the user rating box.', 'gp_lang' ),
			'class' => 'wpb_vc_user_rating_box',
			'controls' => 'full',
			"show_settings_on_create" => false,
			'icon' => 'gp-icon-user-rating-box',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array(),
		) );


		/*--------------------------------------------------------------
		Videos Shortcode
		--------------------------------------------------------------*/

		require_once( gp_vc . 'gp_vc_videos.php' );

		vc_map( array( 
			'name' => __( 'Videos', 'gp_lang' ),
			'base' => 'videos',
			'description' => __( 'Display your video posts in a variety of ways.', 'gp_lang' ),
			'class' => 'wpb_vc_videos',
			'controls' => 'full',
			'icon' => 'gp-icon-videos',
			'category' => __( 'Content', 'gp_lang' ),
			'params' => array( 		
				array( 
				'heading' => __( 'Title', 'gp_lang' ),
				'description' => __( 'The title at the top of the element.', 'gp_lang' ),
				'param_name' => 'widget_title',
				'type' => 'textfield',
				'admin_label' => true,
				'value' => '',
				),		
				array( 
				'heading' => __( 'Categories', 'gp_lang' ),
				'description' => __('Enter the ID numbers or slugs of the categories, separating each ID or slug with a comma e.g. 33,74,25.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=category'). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang'),
				'param_name' => 'cats',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Format', 'gp_lang' ),
				'description' => __( 'The format to display the items in.', 'gp_lang' ),
				'param_name' => 'format',
				'value' => array( __( 'Standard', 'gp_lang' ) => 'blog-standard', __( '1 Column', 'gp_lang' ) => 'blog-columns-1', __( '2 Columns', 'gp_lang' ) => 'blog-columns-2', __( '3 Columns', 'gp_lang' ) => 'blog-columns-3', __( '4 Columns', 'gp_lang' ) => 'blog-columns-4', __( '5 Columns', 'gp_lang' ) => 'blog-columns-5', __( '6 Columns', 'gp_lang' ) => 'blog-columns-6', __( 'Masonry', 'gp_lang' ) => 'blog-masonry' ),
				'type' => 'dropdown',
				),				
				array( 
				'heading' => __( 'Size', 'gp_lang' ),
				'description' => __( 'The size to display the items at.', 'gp_lang' ),
				'param_name' => 'size',
				'value' => array( __( 'Small', 'gp_lang' ) => 'blog-small-size', __( 'Standard', 'gp_lang' ) => 'blog-standard-size', __( 'Large', 'gp_lang' ) => 'blog-large-size'  ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Order By', 'gp_lang' ),
				'description' => __( 'The criteria which the items are ordered by.', 'gp_lang' ),
				'param_name' => 'orderby',
				'value' => array(
					__( 'Newest', 'gp_lang' ) => 'newest',
					__( 'Oldest', 'gp_lang' ) => 'oldest',
					__( 'Title (A-Z)', 'gp_lang' ) => 'title_az',
					__( 'Title (Z-A)', 'gp_lang' ) => 'title_za',
					__( 'Most Comments', 'gp_lang' ) => 'comment_count',
					__( 'Most Views', 'gp_lang' ) => 'views',
					__( 'Menu Order', 'gp_lang' ) => 'menu_order',
					__( 'Random', 'gp_lang' ) => 'rand',
				),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Date Posted', 'gp_lang' ),
				'description' => __( 'The date the items were posted.', 'gp_lang' ),
				'param_name' => 'date_posted',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Date Modified', 'gp_lang' ),
				'description' => __( 'The date the items were modified.', 'gp_lang' ),
				'param_name' => 'date_modified',
				'value' => array(
					__( 'Any date', 'gp_lang' ) => 'all',
					__( 'In the last year', 'gp_lang' ) => 'year',
					__( 'In the last month', 'gp_lang' ) => 'month',
					__( 'In the last week', 'gp_lang' ) => 'week',
					__( 'In the last day', 'gp_lang' ) => 'day',
				),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Filter', 'gp_lang' ),
				'description' => __( 'Add a dropdown filter menu to the page.', 'gp_lang' ),
				'param_name' => 'filter',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),	
				array(
				'heading' => __( 'Filter Options', 'gp_lang' ),
				'param_name' => 'filter_cats',
				'value' => array( __( 'Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_date',
				'value' => array( __( 'Date', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),	
				array(
				'param_name' => 'filter_title',
				'value' => array( __( 'Title', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),								
				array(
				'param_name' => 'filter_comment_count',
				'value' => array( __( 'Comment Count', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array(
				'param_name' => 'filter_views',
				'value' => array( __( 'Views', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array( 
				'param_name' => 'filter_date_posted',
				'value' => array( __( 'Date Posted', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),				
				array( 
				'description' => __( 'Choose what options to display in the dropdown filter menu.', 'gp_lang' ),
				'param_name' => 'filter_date_modified',
				'value' => array( __( 'Date Modified', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),				
				array( 
				'heading' => __( 'Filter Categories', 'gp_lang' ),
				'description' => __('Enter the ID number or slug of the categories you want to filter by, leave blank to display all categories.<br/>
				Hover your mouse over the category names on the <a href="' . admin_url ( 'edit-tags.php?taxonomy=category'). '" target="_blank">category page</a> to reveal the URL which contains the ID numbers.', 'gp_lang'),
				'param_name' => 'filter_cats_id',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'filter', 'value' => 'enabled' ),
				),
				array( 
				'heading' => __( 'Items Per Page', 'gp_lang' ),
				'description' => __( 'The number of items on each page', 'gp_lang' ),
				'param_name' => 'per_page',
				'value' => '5',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Offset', 'gp_lang' ),
				'description' => __( 'The number of posts to offset by e.g. set to 3 to exclude the first 3 posts.', 'gp_lang' ),
				'param_name' => 'offset',
				'value' => '0',
				'type' => 'textfield',
				),
				array( 
				'heading' => __( 'Featured Image', 'gp_lang' ),
				'description' => __( 'Display the featured images.', 'gp_lang' ),
				'param_name' => 'featured_image',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),	
				array( 
				'heading' => __( 'Image Width', 'gp_lang' ),
				'description' => __( 'The width of the featured images.', 'gp_lang' ),
				'param_name' => 'image_width',
				'value' => '75',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),		 
				array( 
				'heading' => __( 'Image Height', 'gp_lang' ),
				'description' => __( 'The height of the featured images.', 'gp_lang' ),
				'param_name' => 'image_height',
				'value' => '75',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Hard Crop', 'gp_lang' ),
				'description' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'param_name' => 'hard_crop',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),	
				array( 
				'heading' => __( 'Image Alignment', 'gp_lang' ),
				'description' => __( 'Choose how the image aligns with the content.', 'gp_lang' ),
				'param_name' => 'image_alignment',
				'value' => array( __( 'Left Align', 'gp_lang' ) => 'image-align-left', __( 'Left Wrap', 'gp_lang' ) => 'image-wrap-left', __( 'Right Wrap', 'gp_lang' ) => 'image-wrap-right', __( 'Above Content', 'gp_lang' ) => 'image-above', __( 'Right Align', 'gp_lang' ) => 'image-align-right' ),
				'type' => 'dropdown',
				'dependency' => array( 'element' => 'featured_image', 'value' => 'enabled' ),
				),			
				array( 
				'heading' => __( 'Title Position', 'gp_lang' ),
				'description' => __( 'The position of the title.', 'gp_lang' ),
				'param_name' => 'title_position',
				'value' => array( __( 'Next To Thumbnail', 'gp_lang' ) => 'title-next-to-thumbnail', __( 'Over Thumbnail', 'gp_lang' ) => 'title-over-thumbnail' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Content Display', 'gp_lang' ),
				'description' => __( 'The amount of content displayed.', 'gp_lang' ),
				'param_name' => 'content_display',
				'value' => array( __( 'Excerpt', 'gp_lang' ) => 'excerpt', __( 'Full Content', 'gp_lang' ) => 'full_content' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'Excerpt Length', 'gp_lang' ),
				'description' => __( 'The number of characters in excerpts.', 'gp_lang' ),
				'param_name' => 'excerpt_length',
				'value' => '0',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'content_display', 'value' => 'excerpt' ),
				),	
				array(
				'heading' => __( 'Post Meta', 'gp_lang' ),
				'param_name' => 'meta_author',
				'value' => array( __( 'Author Name', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array(
				'param_name' => 'meta_date',
				'value' => array( __( 'Post Date', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),				
				array(
				'param_name' => 'meta_views',
				'value' => array( __( 'Views', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),		
				array(
				'param_name' => 'meta_comment_count',
				'value' => array( __( 'Comment Count', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),
				array( 
				'param_name' => 'meta_cats',
				'value' => array( __( 'Post Categories', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array(
				'description' => __( 'Select the meta data you want to display.', 'gp_lang' ),
				'param_name' => 'meta_tags',
				'value' => array( __( 'Post Tags', 'gp_lang' ) => '1' ),
				'type' => 'checkbox',
				),	
				array( 
				'heading' => __( 'Read More Link', 'gp_lang' ),
				'description' => __( 'Add a read more link below the content.', 'gp_lang' ),
				'param_name' => 'read_more_link',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),								 
				array( 
				'heading' => __( 'Pagination', 'gp_lang' ),
				'description' => __( 'Add pagination.', 'gp_lang' ),
				'param_name' => 'page_numbers',
				'value' => array( __( 'Disabled', 'gp_lang' ) => 'disabled', __( 'Enabled', 'gp_lang' ) => 'enabled' ),
				'type' => 'dropdown',
				),
				array( 
				'heading' => __( 'See All', 'gp_lang' ),
				'description' => __( 'Add a "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all',
				'value' => array( __( 'Enabled', 'gp_lang' ) => 'enabled', __( 'Disabled', 'gp_lang' ) => 'disabled' ),
				'type' => 'dropdown',
				),				
				array( 
				'heading' => __( 'See All Link', 'gp_lang' ),
				'description' => __( 'URL for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_link',
				'type' => 'textfield',
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),					 			 
				array( 
				'heading' => __( 'See All Text', 'gp_lang' ),
				'description' => __( 'Custom text for the "See All" link.', 'gp_lang' ),
				'param_name' => 'see_all_text',
				'type' => 'textfield',
				'value' => __( 'See All Videos', 'gp_lang' ),
				'dependency' => array( 'element' => 'see_all', 'value' => 'enabled' ),
				),	 			 				 		   			 			 
				array( 
				'heading' => __( 'Extra Class Names', 'gp_lang' ),
				'description' => __( 'If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'gp_lang' ),
				'type' => 'textfield',
				'param_name' => 'classes',
				'value' => '',
				),																																								
			 )
		) );
		
				
	}
	
}

add_action( 'init', 'gp_custom_shortcodes' );

?>