<?php

// INCLUDE THIS BEFORE you load your ReduxFramework object config file.


// You may replace $redux_opt_name with a string if you wish. If you do so, change loader.php
// as well as all the instances below.
$redux_opt_name = "gp";

if ( !function_exists( "gp_add_metaboxes" ) ):
    function gp_add_metaboxes($metaboxes) {

    $metaboxes = array();
             
                
	/*--------------------------------------------------------------
	Post Options
	--------------------------------------------------------------*/	

	// Audio Post Format Options

    $audio_format_options = array();
    $audio_format_options[] = array(
		'fields' => array(
						        
			array(
				'id'        => 'audio_mp3_url',
				'type'      => 'media',
				'title'     => __( 'MP3 Audio File', 'gp_lang' ),
				'mode'      => false,
				'desc'      => __( 'Upload a MP3 audio file.', 'gp_lang'),
				'default' => '',
			),

			array(
				'id'        => 'audio_ogg_url',
				'type'      => 'media',
				'title'     => __( 'OGG Audio File', 'gp_lang' ),
				'mode'      => false,
				'desc'      => __( 'Upload a OGG audio file.', 'gp_lang'),
				'default' => '',
			),
					
		),
	);	
    $metaboxes[] = array(
        'id' => 'audio-format-options',
        'title' => __( 'Audio Options', 'gp_lang' ),
        'post_types' => array( 'post' ),
        'post_format' => array( 'audio' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $audio_format_options,
    );
    	
    	
	// Gallery Post Format Options

    $gallery_format_options = array();
    $gallery_format_options[] = array(
        'fields' => array(
						        
			array(
				'id'        => 'gallery_slider',
				'type'      => 'gallery',
				'title'     => __( 'Gallery Slider', 'gp_lang' ),
				 'subtitle'  => __( 'Create a new gallery by selecting an existing one or uploading new images using the WordPress native uploader.', 'gp_lang' ),
				 'desc'  => __( 'Add a gallery slider.', 'gp_lang' ),
			),
 
		),
	);		
    $metaboxes[] = array(
        'id' => 'gallery-format-options',
        'title' => __( 'Gallery Options', 'gp_lang' ),
        'post_types' => array( 'post' ),
        'post_format' => array( 'gallery' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $gallery_format_options,
    );
    
    
    // Link Format Options
    
    $link_format_options = array();
    $link_format_options[] = array(
        'fields' => array(
						        
			array(
				'id'       => 'link',
				'type'     => 'text',
				'title'    => __( 'Link', 'gp_lang' ),
				'desc'     => __( 'The link which your post goes to.', 'gp_lang' ),
				'validate' => 'url',
			),
			
			array( 
				'id' => 'link_target',
				'title' => __( 'Link Target', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'The target for the link.', 'gp_lang' ),
				'options' => array(
					'_blank' => __( 'New Window', 'gp_lang' ),
					'_self' => __( 'Same Window', 'gp_lang' ),
				),
				'default' => '_blank',
			),
					 
		),
	);		
    $metaboxes[] = array(
        'id' => 'link-format-options',
        'title' => __( 'Link Options', 'gp_lang' ),
        'post_types' => array( 'post' ),
        'post_format' => array( 'link' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $link_format_options,
    );
    
    
    // Quote Format Options
    
    $quote_format_options = array();
    $quote_format_options[] = array(
        'fields' => array(
						        
			array(
				'id'       => 'quote_source',
				'type'     => 'text',
				'title'    => __( 'Quote Source', 'gp_lang' ),
				'desc'     => __( 'The source of the quote.', 'gp_lang' ),
			),
					 
		),
	);
    $metaboxes[] = array(
        'id' => 'quote-format-options',
        'title' => __( 'Quote Options', 'gp_lang' ),
        'post_types' => array( 'post' ),
        'post_format' => array( 'quote' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $quote_format_options,
    );
    
            
    // Video Format Options
    
    $video_format_options = array();
    $video_format_options[] = array(
        'fields' => array(
			
			array(
				'id'        => 'video_embed_url',
				'type'      => 'text',
				'title'     => __('Video URL', 'redux-framework-demo'),
				'desc'      => __( 'Video URL uploaded to one of the major video sites e.g. YouTube, Vimeo, blip.tv, etc.', 'gp_lang'),
				'validate'  => 'url',
				'default' => '',
			),
			        
			array(
				'id'        => 'video_m4v_url',
				'type'      => 'media',
				'title'     => __( 'M4V Video', 'gp_lang' ),
				'desc'      => __( 'Upload a M4V video.', 'gp_lang'),
				'mode'      => false,
				'default' => '',
			),

			array(
				'id'        => 'video_mp4_url',
				'type'      => 'media',
				'title'     => __( 'MP4 Video', 'gp_lang' ),
				'desc'      => __( 'Upload a MP4 video.', 'gp_lang'),
				'mode'      => false,
				'default' => '',
			),

			array(
				'id'        => 'video_webm_url',
				'type'      => 'media',
				'title'     => __( 'WebM Video', 'gp_lang' ),
				'desc'      => __( 'Upload a WebM video.', 'gp_lang'),
				'mode'      => false,
				'default' => '',
			),
			
			array(
				'id'        => 'video_ogv_url',
				'type'      => 'media',
				'title'     => __( 'OGV Video', 'gp_lang' ),
				'desc'      => __( 'Upload a OGV video.', 'gp_lang'),
				'mode'      => false,
				'default' => '',
			),
		
		),
	);	
    $metaboxes[] = array(
        'id' => 'video-format-options',
        'title' => __( 'Video Options', 'gp_lang' ),
        'post_types' => array( 'post' ),
        'post_format' => array( 'video' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $video_format_options,
    ); 
       
       	
    // Main Post Options
    	
	$post_options = array();
    $post_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-cogs',
		'fields' => array(  

			array(
				'id'      => 'post_association',
				'type'    => 'select',
				'multi' => true,
				'title'   => __( 'Post Association', 'gp_lang' ),
				'desc' => __( 'Choose what hub pages to associate with this post.', 'gp_lang' ),
				'data' => 'page',
				'default' => '',
			),
			
			array(
				'id'      => 'post_subtitle',
				'type'    => 'text',
				'title'   => __( 'Post Subtitle', 'gp_lang' ),
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
		
			array( 
				'id' => 'post_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'post_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),

		),
	);

	$post_options[] = array(
		'title' => __( 'Image', 'gp_lang' ),
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-picture',
		'fields' => array(  
	
			array(  
				'id' => 'post_featured_image',
				'title' => __( 'Featured Image', 'gp_lang' ),
				'type' => 'button_set',
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),

			array(
				'id' => 'post_image',
				'type' => 'dimensions',
				'required'  => array( 'post_featured_image', '!=', 'disabled' ),
				'units' => false,
				'title' => __( 'Image Dimensions', 'gp_lang' ),
				'subtitle' => __( 'Set height to 0 to have a proportionate height.', 'gp_lang' ),
				'desc' => __( 'The width and height of the featured image.', 'gp_lang' ),
				'default'           => array(
					'width'     => '', 
					'height'    => '',
				),
			),

			array(
				'id' => 'post_hard_crop',
				'title' => __( 'Hard Crop', 'gp_lang' ),
				'type' => 'button_set',
				'required'  => array( 'post_featured_image', '!=', 'disabled' ),
				'desc' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					true => __( 'Enabled', 'gp_lang' ),
					false => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),

			array(
				'id' => 'post_image_alignment',
				'title' => __( 'Image Alignment', 'gp_lang' ),
				'type' => 'select',
				'required'  => array( 'post_featured_image', '!=', 'disabled' ),
				'desc' => __( 'Choose how the image aligns with the content.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'image-wrap-left' => __( 'Left Wrap', 'gp_lang' ),
					'image-wrap-right' => __( 'Right Wrap', 'gp_lang' ),
					'image-above' => __( 'Above Content', 'gp_lang' ),
					'image-align-left' => __( 'Left Align', 'gp_lang' ),
					'image-align-right' => __( 'Right Align', 'gp_lang' ),
				),
				'default' => 'default',
			),
		
		),
	);	
    $metaboxes[] = array(
        'id' => 'post-options',
        'title' => __( 'Post Options', 'gp_lang' ),
        'post_types' => array( 'post', 'gp_user_review' ),
        'post_format' => array( '0', 'audio', 'gallery', 'quote', 'video' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $post_options
    ); 
        
 
	/*--------------------------------------------------------------
	Page Options
	--------------------------------------------------------------*/	

	$page_options = array();
    $page_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-cogs',
		'fields' => array(

			array( 
				'id' => 'page_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'gp-large-title' => __( 'Enabled', 'gp_lang' ),
					'gp-no-large-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),
			
			array( 
				'id' => 'page_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'page_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						        
			array( 
				'id' => 'page_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'type' => 'text',
				'required' => array( 'page_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
									
			array( 
				'id' => 'page_subtitle',
				'title' => __( 'Page Subtitle', 'gp_lang' ),
				'type' => 'textarea',
				'required' => array( 'page_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
				
			array(
				'id' => 'page_title_bg', 
				'title' => __( 'Title Header Image Background', 'gp_lang' ),
				'type'      => 'media',		
				'mode'      => false,	
				'required' => array( 'page_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),	
					
			array(
				'id' => 'page_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),
				'required' => array( 'page_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'page_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),
				'required' => array( 'page_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
						
			array( 
				'id' => 'page_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						
			array( 
				'id' => 'page_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => '',
			),
											
			array( 
				'id' => 'page_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'page_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),
			
		),		
	);	

    $page_options[] = array(
		'title' => __( 'Image', 'gp_lang' ),
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-picture',
		'fields' => array(
		
			array(  
				'id' => 'page_featured_image',
				'title' => __( 'Featured Image', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Shows the featured image on the page.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),

			array(
				'id' => 'page_image',
				'type' => 'dimensions',
				'required'  => array( 'page_featured_image', '!=', 'disabled' ),
				'units' => false,
				'title' => __( 'Image Dimensions', 'gp_lang' ),
				'subtitle' => __( 'Set height to 0 to have a proportionate height.', 'gp_lang' ),
				'desc' => __( 'The width and height of the featured image.', 'gp_lang' ),
				'default'           => array(
					'width'     => '', 
					'height'    => '',
				),
			),

			array(
				'id' => 'page_hard_crop',
				'title' => __( 'Hard Crop', 'gp_lang' ),
				'type' => 'button_set',
				'required'  => array( 'page_featured_image', '!=', 'disabled' ),
				'desc' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					true => __( 'Enabled', 'gp_lang' ),
					false => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),

			array(
				'id' => 'page_image_alignment',
				'title' => __( 'Image Alignment', 'gp_lang' ),
				'type' => 'select',
				'required'  => array( 'page_featured_image', '!=', 'disabled' ),
				'desc' => __( 'Choose how the image aligns with the content.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'image-wrap-left' => __( 'Left Wrap', 'gp_lang' ),
					'image-wrap-right' => __( 'Right Wrap', 'gp_lang' ),
					'image-above' => __( 'Above Content', 'gp_lang' ),
					'image-align-left' => __( 'Left Align', 'gp_lang' ),
					'image-align-right' => __( 'Right Align', 'gp_lang' ),
				),
				'default' => 'default',
			),	
			
		),
	);	
    $metaboxes[] = array(
        'id' => 'page-options',
        'title' => __( 'Page Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'default' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $page_options,
    ); 


	/*--------------------------------------------------------------
	Blog Page Template Options
	--------------------------------------------------------------*/	

    $blog_template_options = array();
    $blog_template_options[] = array(
		'title' => __( 'Blog', 'gp_lang' ),
		'icon' => 'el-icon-folder',
		'fields' => array(
			        
			array(
				'id'       => 'blog_template_cats',
				'type'     => 'select',
				'multi' => true,
				'title'    => __( 'Categories', 'gp_lang' ),
				'data' => 'terms',
				'args' => array( 'taxonomies' => array( 'category', 'gp_videos', 'gp_hubs' ) ),
				'desc' => __( 'Select the categories you want to display.', 'gp_lang' ),
				'default' => '',
			),

			array( 
				'id' => 'blog_template_post_types',
				'title' => __( 'Post Types', 'gp_lang' ),
				'desc' => __( 'Select the post types you want to display.', 'gp_lang' ),
				'type' => 'select',
				'multi' => true,
				'data' => 'post_types',
				'default' => array( 'post' ),
			),
													
			array( 
				'id' => 'blog_template_format',
				'title' => __( 'Format', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type' => 'select',
				'desc' => __( 'The format to display the items in.', 'gp_lang' ),
				'options' => array(
					'blog-standard' => __( 'Standard', 'gp_lang' ),
					'blog-columns-1' => __( '1 Column', 'gp_lang' ),
					'blog-columns-2' => __( '2 Columns', 'gp_lang' ),
					'blog-columns-3' => __( '3 Columns', 'gp_lang' ),
					'blog-columns-4' => __( '4 Columns', 'gp_lang' ),
					'blog-columns-5' => __( '5 Columns', 'gp_lang' ),
					'blog-columns-6' => __( '6 Columns', 'gp_lang' ),
					'blog-masonry' => __( 'Masonry', 'gp_lang' ),
				),
				'default' => 'blog-standard',
			),
		
			array( 
				'id' => 'blog_template_size',
				'title' => __( 'Size', 'gp_lang' ),
				'desc' => __( 'The size to display the items at.', 'gp_lang' ),
				'type' => 'button_set',
				'options' => array(
					'blog-standard-size' => __( 'Standard', 'gp_lang' ),
					'blog-small-size' => __( 'Small', 'gp_lang' ),
					'blog-large-size' => __( 'Large', 'gp_lang' ),
				),
				'default' => 'blog-large-size',
			),

			array(  
				'id' => 'blog_template_orderby',
				'title' => __( 'Order By', 'gp_lang' ),
				'type' => 'radio',
				'desc' => __( 'The criteria which the items are ordered by.', 'gp_lang' ),
				'options' => array(
					'newest' => __( 'Newest', 'gp_lang' ),
					'oldest' => __( 'Oldest', 'gp_lang' ),
					'title_az' => __( 'Title (A-Z)', 'gp_lang' ),
					'title_za' => __( 'Title (Z-A)', 'gp_lang' ),
					'comment_count' => __( 'Most Comments', 'gp_lang' ),
					'views' => __( 'Most Views', 'gp_lang' ),
					'followers' => __( 'Most Followers', 'gp_lang' ),
					'site_rating' => __( 'Top Site Rated', 'gp_lang' ),
					'user_rating' => __( 'Top User Rated', 'gp_lang' ),
					'hub_awards' => __( 'Hub Awards', 'gp_lang' ),
					'menu_order' => __( 'Menu Order', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
					'rand' => __( 'Random', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				),
				'default' => 'newest',
			),
			
			array(  
				'id' => 'blog_template_date_posted',
				'title' => __( 'Date Posted', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type' => 'radio',
				'desc' => __( 'The date the items were posted.', 'gp_lang' ),
				'options' => array(
					'all' => __( 'Any date', 'gp_lang' ),
					'year' => __( 'In the last year', 'gp_lang' ),
					'month' => __( 'In the last month', 'gp_lang' ),
					'week' => __( 'In the last week', 'gp_lang' ),
					'day' => __( 'In the last day', 'gp_lang' ),
				),
				'default' => 'all',
			),

			array(  
				'id' => 'blog_template_date_modified',
				'title' => __( 'Date Modified', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type' => 'radio',
				'desc' => __( 'The date the items were modified.', 'gp_lang' ),
				'options' => array(
					'all' => __( 'Any date', 'gp_lang' ),
					'year' => __( 'In the last year', 'gp_lang' ),
					'month' => __( 'In the last month', 'gp_lang' ),
					'week' => __( 'In the last week', 'gp_lang' ),
					'day' => __( 'In the last day', 'gp_lang' ),
				),
				'default' => 'all',
			),
								
			array(  
				'id' => 'blog_template_filter',
				'title' => __( 'Filter', 'gp_lang' ),
				'desc' => __( 'Add a dropdown filter menu to the page.', 'gp_lang' ),
				'type' => 'button_set',
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),

			array(
				'id'        => 'blog_template_filter_options',
				'type'      => 'checkbox',
				'required'  => array( 'blog_template_filter', '=', 'enabled' ),
				'title'     => __( 'Filter Options', 'gp_lang' ),
				'desc' => __( 'Choose what options to display in the dropdown filter menu.', 'gp_lang' ), 
				'options'   => array(
					'cats' => __( 'Categories', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
					'date' => __( 'Date', 'gp_lang' ),
					'title' => __( 'Title', 'gp_lang' ),
					'comment_count' => __( 'Comment Count', 'gp_lang' ),
					'views' => __( 'Views', 'gp_lang' ),
					'followers' => __( 'Followers', 'gp_lang' ),
					'site_rating' => __( 'Site Rating', 'gp_lang' ),
					'user_rating' => __( 'User Rating', 'gp_lang' ),
					'hub_awards' => __( 'Hub Awards', 'gp_lang' ),
					'date_posted' => __( 'Date Posted', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
					'date_modified' => __( 'Date Modified', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				),
				'default'   => array(
					'cats' => 0,
					'date' => '1',
					'title' => '1',
					'comment_count' => '1',
					'views' => '1',
					'followers' => '0',
					'site_rating' => '0',
					'user_rating' => '0',
					'hub_awards' => '0',
					'date_posted' => '1',
					'date_modified' => '0',
				)
			),

			array(
				'id'       => 'blog_template_filter_cats_id',
				'type'     => 'select',
				'required'  => array( 'blog_template_filter', '=', 'enabled' ),
				'title'    => __( 'Filter Categories', 'gp_lang' ),
				'data' => 'terms',
				'args' => array( 'taxonomies' => array( 'category', 'gp_videos', 'gp_hubs' ) ),
				'desc' => __( 'Select the category you want to filter by, leave blank to display all categories.', 'gp_lang' ),
				'subtitle' => __( 'The sub categories of this category will also be displayed.', 'gp_lang' ),
				'default' => '',
			),
                    										
			array(
				'id'       => 'blog_template_per_page',
				'type'     => 'spinner',
				'title'    => __( 'Items Per Page', 'gp_lang' ),
				'desc' => __( 'The number of items on each page.', 'gp_lang' ),
				'min' => 1,
				'max' => 999999,
				'default' => 12,
			),
			
			array( 
				'id' => 'blog_template_title_position',
				'title' => __( 'Title Position', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'The position of the title.', 'gp_lang' ),
				'options' => array(
					'title-next-to-thumbnail' => __( 'Next To Thumbnail', 'gp_lang' ),
					'title-over-thumbnail' => __( 'Over Thumbnail', 'gp_lang' ),
				),
				'default' => 'title-next-to-thumbnail',
			),
												
			array( 
				'id' => 'blog_template_content_display',
				'title' => __( 'Content Display', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'The amount of content displayed.', 'gp_lang' ),
				'options' => array(
					'excerpt' => __( 'Excerpt', 'gp_lang' ),
					'full_content' => __( 'Full Content', 'gp_lang' ),
				),
				'default' => 'excerpt',
			),
		
			array( 
				'id' => 'blog_template_excerpt_length',
				'title' => __( 'Excerpt Length', 'gp_lang' ),
				'required'  => array( 'blog_template_content_display', '=', 'excerpt' ),
				'type' => 'spinner',
				'desc' => __( 'The number of characters in excerpts.', 'gp_lang' ),
				'min' => 0,
				'max' => 999999,
				'default' => '400',
			),

			array(
				'id'        => 'blog_template_meta',
				'type'      => 'checkbox',
				'title'     => __( 'Post Meta', 'gp_lang' ),
				'desc' => __( 'Select the meta data you want to display.', 'gp_lang' ), 
				'options'   => array(
					'author' => __( 'Author Name', 'gp_lang' ),
					'date' => __( 'Post Date', 'gp_lang' ),
					'comment_count' => __( 'Comment Count', 'gp_lang' ),
                    'views' => __( 'Views', 'gp_lang' ),
                    'followers' => __( 'Followers', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
					'cats' => __( 'Categories', 'gp_lang' ),
					'tags' => __( 'Post Tags', 'gp_lang' ),
					'hub_cats' => __( 'Hub Categories', 'gp_lang' ),
					'hub_fields' => __( 'Hub Fields', 'gp_lang' ),
					'hub_award' => __( 'Hub Award', 'gp_lang' ),
				),
				'default'   => array(
					'author' => '1',
					'date' => '1', 
					'comment_count' => '1',
					'views' => '1',
					'followers' => '0',
					'cats' => '1',
					'tags' => '0',
					'hub_cats' => '1',
					'hub_fields' => '1',
					'hub_award' => '1',
				),
			),

			array(
				'id'        => 'blog_template_display_rating',
				'type'      => 'checkbox',
				'title'     => __( 'Ratings', 'gp_lang' ),
				'desc' => __( 'Select the ratings you want to display.', 'gp_lang' ), 
				'options'   => array(
					'site_rating' => __( 'Site Rating', 'gp_lang' ),
					'user_rating' => __( 'User Rating', 'gp_lang' ),
				),
				'default'   => array(
					'site_rating' => '1',
					'user_rating' => '1',
				)
			),
									
			array(  
				'id' => 'blog_template_read_more_link',
				'title' => __( 'Read More Link', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Add a read more link below the content.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
								
		)
	);
	
    $blog_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),	
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),	
		'icon' => 'el-icon-cogs',
		'fields' => array(
		
			array( 
				'id' => 'blog_template_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header on the page (option not used when it has a parent hub page).', 'gp_lang' ),
				'options' => array(
					'gp-large-title' => __( 'Enabled', 'gp_lang' ),
					'gp-no-large-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'gp-large-title',
			),
			
			array( 
				'id' => 'blog_template_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'blog_template_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						
			array( 
				'id' => 'blog_template_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'type' => 'text',
				'required' => array( 'blog_template_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
						
			array( 
				'id' => 'blog_template_subtitle',
				'title' => __( 'Page Subtitle', 'gp_lang' ),
				'type' => 'textarea',
				'required' => array( 'blog_template_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
										
			array(
				'id'        => 'blog_template_title_bg',
				'type'      => 'media',
				'mode'      => false,
				'required' => array( 'blog_template_title', '!=', 'gp-no-large-title' ),
				'title'     => __( 'Title Header Image Background', 'gp_lang' ),
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),
			
			array(
				'id' => 'blog_template_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),
				'required' => array( 'blog_template_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'blog_template_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),
				'required' => array( 'blog_template_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
									
			array( 
				'id' => 'blog_template_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			
			array( 
				'id' => 'blog_template_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'Blog', 'gp_lang' ),
			),
							
			array( 
				'id' => 'blog_template_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'gp-right-sidebar',
			),

			array(
				'id'      => 'blog_template_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => 'gp-standard-sidebar',
			),
		
		),			
	);		
	
    $blog_template_options[] = array(
		'title' => __( 'Image', 'gp_lang' ),
		'icon' => 'el-icon-picture',
		'fields' => array(	
			
			array(  
				'id' => 'blog_template_featured_image',
				'title' => __( 'Featured Image', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the featured images..', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),

			array(
				'id' => 'blog_template_image',
				'type' => 'dimensions',
				'required'  => array( 'blog_template_featured_image', '!=', 'disabled' ),
				'units' => false,
				'title' => __( 'Image Dimensions', 'gp_lang' ),
				'desc' => __( 'The width and height of the featured images.', 'gp_lang' ),
				'subtitle' => __( 'Set height to 0 to have a proportionate height.', 'gp_lang' ),
				'default'           => array(
					'width'     => 810, 
					'height'    => 300,
				),
			),

			array(
				'id' => 'blog_template_hard_crop',
				'title' => __( 'Hard Crop', 'gp_lang' ),
				'type' => 'button_set',
				'required'  => array( 'blog_template_featured_image', '!=', 'disabled' ),
				'desc' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'options' => array(
					true => __( 'Enabled', 'gp_lang' ),
					false => __( 'Disabled', 'gp_lang' ),
				),
				'default' => true,
			),

			array(
				'id' => 'blog_template_image_alignment',
				'title' => __( 'Image Alignment', 'gp_lang' ),
				'type' => 'select',
				'required'  => array( 'blog_template_featured_image', '!=', 'disabled' ),
				'desc' => __( 'Choose how the image aligns with the content.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'image-wrap-left' => __( 'Left Wrap', 'gp_lang' ),
					'image-wrap-right' => __( 'Right Wrap', 'gp_lang' ),
					'image-above' => __( 'Above Content', 'gp_lang' ),
					'image-align-left' => __( 'Left Align', 'gp_lang' ),
					'image-align-right' => __( 'Right Align', 'gp_lang' ),
				),
				'default' => 'image-above',
			),

		),		
	);
    $metaboxes[] = array(
        'id' => 'blog-template-options',
        'title' => __( 'Blog Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'blog-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $blog_template_options,
    );


	/*--------------------------------------------------------------
	Portfolio Page Template Options
	--------------------------------------------------------------*/	

    $portfolio_template_options = array();
    $portfolio_template_options[] = array(
		'title' => __( 'Portfolio', 'gp_lang' ),
		'icon' => 'el-icon-photo-alt',
		'fields' => array(	
			        
			array(
				'id'       => 'portfolio_template_cats',
				'type'     => 'select',
				'multi' => true,
				'title'    => __( 'Portfolio Categories', 'gp_lang' ),
				'data' => 'terms',
				'args' => array( 'taxonomies' => 'gp_portfolios' ),
				'desc' => __( 'Select the portfolio categories you want to display.', 'gp_lang' ),
				'default' => '',
			),	
	
			array( 
				'id' => 'portfolio_template_format',
				'title' => __( 'Format', 'gp_lang' ),					
				'type' => 'radio',
				'desc' => __( 'The format to display the items in.', 'gp_lang' ),
				'options' => array(
					'portfolio-columns-2' => __( '2 Columns', 'gp_lang' ),
					'portfolio-columns-3' => __( '3 Columns', 'gp_lang' ),
					'portfolio-columns-4' => __( '4 Columns', 'gp_lang' ),
					'portfolio-columns-5' => __( '5 Columns', 'gp_lang' ),
					'portfolio-columns-6' => __( '6 Columns', 'gp_lang' ),
					'portfolio-masonry' => __( 'Masonry', 'gp_lang' ),
				),	
				'default' => 'portfolio-columns-2',
			),

			array(  
				'id' => 'portfolio_template_orderby',
				'title' => __( 'Order By', 'gp_lang' ),
				'type' => 'radio',
				'desc' => __( 'The criteria which the items are ordered by.', 'gp_lang' ),
				'options' => array(
					'newest' => __( 'Newest', 'gp_lang' ),
					'oldest' => __( 'Oldest', 'gp_lang' ),
					'title_az' => __( 'Title (A-Z)', 'gp_lang' ),
					'title_za' => __( 'Title (Z-A)', 'gp_lang' ),
					'comment_count' => __( 'Most Comments', 'gp_lang' ),
					'views' => __( 'Most Views', 'gp_lang' ),
					'menu_order' => __( 'Menu Order', 'gp_lang' ),
					'rand' => __( 'Random', 'gp_lang' ),
				),
				'default' => 'newest',
			),

			array(  
				'id' => 'portfolio_template_date_posted',
				'title' => __( 'Date Posted', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type' => 'radio',
				'desc' => __( 'The date the items were posted.', 'gp_lang' ),
				'options' => array(
					'all' => __( 'Any date', 'gp_lang' ),
					'year' => __( 'In the last year', 'gp_lang' ),
					'month' => __( 'In the last month', 'gp_lang' ),
					'week' => __( 'In the last week', 'gp_lang' ),
					'day' => __( 'In the last day', 'gp_lang' ),
				),
				'default' => 'all',
			),

			array(  
				'id' => 'portfolio_template_date_modified',
				'title' => __( 'Date Modified', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type' => 'radio',
				'desc' => __( 'The date the items were modified.', 'gp_lang' ),
				'options' => array(
					'all' => __( 'Any date', 'gp_lang' ),
					'year' => __( 'In the last year', 'gp_lang' ),
					'month' => __( 'In the last month', 'gp_lang' ),
					'week' => __( 'In the last week', 'gp_lang' ),
					'day' => __( 'In the last day', 'gp_lang' ),
				),
				'default' => 'all',
			),			

			array(  
				'id' => 'portfolio_template_filter',
				'title' => __( 'Portfolio Filter', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Add category filter links to the page.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),					

			array( 
				'id' => 'portfolio_template_per_page',
				'title' => __( 'Items Per Page', 'gp_lang' ),
				'type' => 'spinner',
				'desc' => __( 'The number of items on each page.', 'gp_lang' ),
				'min' => 0,
				'max' => 999999,
				'default' => 12,
			),
				
		)
	);
	
    $portfolio_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),	
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),	
		'icon' => 'el-icon-cogs',
		'fields' => array(
				
			array( 
				'id' => 'portfolio_template_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header on the page (option not used when it has a parent hub page).', 'gp_lang' ),
				'options' => array(
					'gp-large-title' => __( 'Enabled', 'gp_lang' ),
					'gp-no-large-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'gp-large-title',
			),
			
			array( 
				'id' => 'portfolio_template_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'portfolio_template_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						
			array( 
				'id' => 'portfolio_template_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'required' => array( 'portfolio_template_title', '!=', 'gp-no-large-title' ),
				'type' => 'text',
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
						
			array( 
				'id' => 'portfolio_template_subtitle',
				'title' => __( 'Page Subtitle', 'gp_lang' ),
				'required' => array( 'portfolio_template_title', '!=', 'gp-no-large-title' ),
				'type' => 'textarea',
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
							
			array(
				'id' => 'portfolio_template_title_bg', 
				'title' => __( 'Title Header Image Background', 'gp_lang' ),
				'required' => array( 'portfolio_template_title', '!=', 'gp-no-large-title' ),
				'type'      => 'media',	
				'mode'      => false,		
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),

			array(
				'id' => 'portfolio_template_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),
				'required' => array( 'portfolio_template_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'portfolio_template_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),
				'required' => array( 'portfolio_template_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
									
			array( 
				'id' => 'portfolio_template_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			
			array( 
				'id' => 'portfolio_template_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'Portfolio', 'gp_lang' ),
			),
											
			array( 
				'id' => 'portfolio_template_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'gp-no-sidebar',
			),

			array(
				'id'      => 'portfolio_template_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => 'gp-standard-sidebar',
			),
			 
		),	
	);
    $metaboxes[] = array(
        'id' => 'portfolio-template-options',
        'title' => __( 'Portfolio Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'portfolio-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $portfolio_template_options,
    );


	/*--------------------------------------------------------------
	FlexSlider Page Template Options
	--------------------------------------------------------------*/	

    $flexslider_template_options = array();
    $flexslider_template_options[] = array(
		'title' => __( 'FlexSlider Options', 'gp_lang' ),
		'icon' => 'el-icon-stop',
		'fields' => array(
			        
			array(
				'id'       => 'flexslider_cats',
				'type'     => 'select',
				'title'    => __( 'Categories', 'gp_lang' ),
				'data' => 'terms',
				'multi' => true,
				'args' => array( 'taxonomies' => array( 'gp_slides', 'gp_hubs', 'gp_videos', 'category' ) ),
				'desc' => __( 'Select the slider, post, and/or hub categories you want to display in the slider.', 'gp_lang' ),
				'default' => '',
			),

			array(
				'id'       => 'flexslider_per_page',
				'type'     => 'spinner',
				'title'    => __( 'Slides', 'gp_lang' ),
				'subtitle' => __( 'Set to -1 to display all slides.', 'gp_lang' ),
				'desc' => __( 'The number of slides to display.', 'gp_lang' ),
				'min' => -1,
				'max' => 999999,
				'default' => 3,
			),		
									
			array(
				'id'       => 'flexslider_timeout',
				'type'     => 'spinner',
				'title'    => __( 'Slider Timeout', 'gp_lang' ),
				'desc' => __( 'The number of seconds between each slide transition.', 'gp_lang' ),
				'min' => 1,
				'max' => 999999,
				'default' => 6,
			),

			array( 
				'id' => 'flexslider_bottom_gradient_overlay',
				'title' => __( 'Bottom Gradient Overlay', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Add a gradient overlay to the bottom of the slider images.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),

			array( 
				'id' => 'flexslider_side_gradient_overlay',
				'title' => __( 'Side Gradient Overlay', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Add a gradient overlay to the left and right sides of the slider images.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'disabled',
			),
												
			array(
				'id' => 'flexslider_dimensions',
				'type' => 'dimensions',
				'units' => false,
				'title' => __( 'Slider Dimensions', 'gp_lang' ),
				'subtitle' => __( 'Set height to 0 to have a proportionate height.', 'gp_lang' ),
				'desc' => __( 'The width and height of the slider.', 'gp_lang' ),
				'default'           => array(
					'width'     => '1170', 
					'height'    => '450',
				),
			),
												
			array(
				'id' => 'flexslider_mobile_dimensions',
				'type' => 'dimensions',
				'units' => false,
				'title' => __( 'Mobile Slider Height', 'gp_lang' ),
				'desc' => __( 'The height of the slider on mobile devices.', 'gp_lang' ),
				'width' => false,
				'default'           => array( 
					'height'    => '200',
				),
			),
														 
		),		
	);
    $flexslider_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-cogs',
		'fields' => array(
								
			array( 
				'id' => 'flexslider_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'gp-no-sidebar',
			),

			array(
				'id'      => 'flexslider_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => 'gp-standard-sidebar',
			),
			
		),		
	);		
    $metaboxes[] = array(
        'id' => 'flexslider-template-options',
        'title' => __( 'FlexSlider Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'flexslider-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $flexslider_template_options,
    );


	/*--------------------------------------------------------------
	Featured Page Template Options
	--------------------------------------------------------------*/	

    $featured_template_options = array();
    $featured_template_options[] = array(
		'title' => __( 'Featured Options', 'gp_lang' ),
		'icon' => 'el-icon-stop',
		'fields' => array(
			        
			array(
				'id'       => 'featured_cats',
				'type'     => 'select',
				'title'    => __( 'Categories', 'gp_lang' ),
				'data' => 'terms',
				'multi' => true,
				'args' => array( 'taxonomies' => array( 'gp_slides', 'gp_hubs', 'gp_videos', 'category' ) ),
				'desc' => __( 'Select the slider, post, and/or hub categories you want to display in the slider.', 'gp_lang' ),
				'default' => '',
			),	

			array( 
				'id' => 'featured_bottom_gradient_overlay',
				'title' => __( 'Bottom Gradient Overlay', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Add a gradient overlay to the bottom of the slider images.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),

			array( 
				'id' => 'featured_side_gradient_overlay',
				'title' => __( 'Side Gradient Overlay', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Add a gradient overlay to the left and right sides of the slider images.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
							
			array(
				'id' => 'featured_dimensions',
				'type' => 'dimensions',
				'units' => false,
				'title' => __( 'Slider Dimensions', 'gp_lang' ),
				'subtitle' => __( 'Set height to 0 to have a proportionate height.', 'gp_lang' ),
				'desc' => __( 'The width and height of the featured area.', 'gp_lang' ),
				'default'           => array(
					'width'     => '882', 
					'height'    => '450',
				),
			),
																	 
		),		
	);
    $featured_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-cogs',
		'fields' => array(
								
			array( 
				'id' => 'featured_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'gp-no-sidebar',
			),

			array(
				'id'      => 'featured_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => 'gp-standard-sidebar',
			),
			
		),		
	);		
    $metaboxes[] = array(
        'id' => 'featured-template-options',
        'title' => __( 'Featured Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'featured-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $featured_template_options,
    );


	/*--------------------------------------------------------------
	Hub Page Template Options
	--------------------------------------------------------------*/	

    $hub_template_options = array();
    $hub_template_options[] = array(
		'title' => __( 'Hub', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-globe',
		'fields' => array( 

			array(
				'id'       => 'hub_synopsis',
				'type'     => 'editor',
				'title'    => __( 'Hub Synopsis', 'gp_lang' ),
				'desc' => __( 'Add a synopsis for the hub.', 'gp_lang' ),
				'default' => '',
			),

			array(
				'id'       => 'hub_award',
				'type'     => 'checkbox',
				'title'    => __( 'Hub Award', 'gp_lang' ),
				'desc' => __( 'Choose to award this hub.', 'gp_lang' ),
				'default'   => '0',
			),

			array( 
				'id' => 'hub_award_title',
				'title' => __( 'Hub Award Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'The title for the hub award.', 'gp_lang' ),
				'required' => array( 'hub_award', '=', '1' ),
				'default' => '',
			),

			array( 
				'id' => 'hub_award_icon',
				'title' => __( 'Hub Award Icon', 'gp_lang' ),
				'type' => 'select',
				'desc' => __( 'The icon for the hub award.', 'gp_lang' ),
				'required' => array( 'hub_award', '=', '1' ),
				'options' => array(
					'fa-glass' => __( 'glass', 'gp_lang' ),'fa-music' => __( 'music', 'gp_lang' ),'fa-search' => __( 'search', 'gp_lang' ),'fa-envelope-o' => __( 'envelope-o', 'gp_lang' ),'fa-heart' => __( 'heart', 'gp_lang' ),'fa-star' => __( 'star', 'gp_lang' ),'fa-star-o' => __( 'star-o', 'gp_lang' ),'fa-user' => __( 'user', 'gp_lang' ),'fa-film' => __( 'film', 'gp_lang' ),'fa-th-large' => __( 'th-large', 'gp_lang' ),'fa-th' => __( 'th', 'gp_lang' ),'fa-th-list' => __( 'th-list', 'gp_lang' ),'fa-check' => __( 'check', 'gp_lang' ),'fa-times' => __( 'times', 'gp_lang' ),'fa-search-plus' => __( 'search-plus', 'gp_lang' ),'fa-search-minus' => __( 'search-minus', 'gp_lang' ),'fa-power-off' => __( 'power-off', 'gp_lang' ),'fa-signal' => __( 'signal', 'gp_lang' ),'fa-cog' => __( 'cog', 'gp_lang' ),'fa-trash-o' => __( 'trash-o', 'gp_lang' ),'fa-home' => __( 'home', 'gp_lang' ),'fa-file-o' => __( 'file-o', 'gp_lang' ),'fa-clock-o' => __( 'clock-o', 'gp_lang' ),'fa-road' => __( 'road', 'gp_lang' ),'fa-download' => __( 'download', 'gp_lang' ),'fa-arrow-circle-o-down' => __( 'arrow-circle-o-down', 'gp_lang' ),'fa-arrow-circle-o-up' => __( 'arrow-circle-o-up', 'gp_lang' ),'fa-inbox' => __( 'inbox', 'gp_lang' ),'fa-play-circle-o' => __( 'play-circle-o', 'gp_lang' ),'fa-repeat' => __( 'repeat', 'gp_lang' ),'fa-refresh' => __( 'refresh', 'gp_lang' ),'fa-list-alt' => __( 'list-alt', 'gp_lang' ),'fa-lock' => __( 'lock', 'gp_lang' ),'fa-flag' => __( 'flag', 'gp_lang' ),'fa-headphones' => __( 'headphones', 'gp_lang' ),'fa-volume-off' => __( 'volume-off', 'gp_lang' ),'fa-volume-down' => __( 'volume-down', 'gp_lang' ),'fa-volume-up' => __( 'volume-up', 'gp_lang' ),'fa-qrcode' => __( 'qrcode', 'gp_lang' ),'fa-barcode' => __( 'barcode', 'gp_lang' ),'fa-tag' => __( 'tag', 'gp_lang' ),'fa-tags' => __( 'tags', 'gp_lang' ),'fa-book' => __( 'book', 'gp_lang' ),'fa-bookmark' => __( 'bookmark', 'gp_lang' ),'fa-print' => __( 'print', 'gp_lang' ),'fa-camera' => __( 'camera', 'gp_lang' ),'fa-font' => __( 'font', 'gp_lang' ),'fa-bold' => __( 'bold', 'gp_lang' ),'fa-italic' => __( 'italic', 'gp_lang' ),'fa-text-height' => __( 'text-height', 'gp_lang' ),'fa-text-width' => __( 'text-width', 'gp_lang' ),'fa-align-left' => __( 'align-left', 'gp_lang' ),'fa-align-center' => __( 'align-center', 'gp_lang' ),'fa-align-right' => __( 'align-right', 'gp_lang' ),'fa-align-justify' => __( 'align-justify', 'gp_lang' ),'fa-list' => __( 'list', 'gp_lang' ),'fa-outdent' => __( 'outdent', 'gp_lang' ),'fa-indent' => __( 'indent', 'gp_lang' ),'fa-video-camera' => __( 'video-camera', 'gp_lang' ),'fa-picture-o' => __( 'picture-o', 'gp_lang' ),'fa-pencil' => __( 'pencil', 'gp_lang' ),'fa-map-marker' => __( 'map-marker', 'gp_lang' ),'fa-adjust' => __( 'adjust', 'gp_lang' ),'fa-tint' => __( 'tint', 'gp_lang' ),'fa-pencil-square-o' => __( 'pencil-square-o', 'gp_lang' ),'fa-share-square-o' => __( 'share-square-o', 'gp_lang' ),'fa-check-square-o' => __( 'check-square-o', 'gp_lang' ),'fa-arrows' => __( 'arrows', 'gp_lang' ),'fa-step-backward' => __( 'step-backward', 'gp_lang' ),'fa-fast-backward' => __( 'fast-backward', 'gp_lang' ),'fa-backward' => __( 'backward', 'gp_lang' ),'fa-play' => __( 'play', 'gp_lang' ),'fa-pause' => __( 'pause', 'gp_lang' ),'fa-stop' => __( 'stop', 'gp_lang' ),'fa-forward' => __( 'forward', 'gp_lang' ),'fa-fast-forward' => __( 'fast-forward', 'gp_lang' ),'fa-step-forward' => __( 'step-forward', 'gp_lang' ),'fa-eject' => __( 'eject', 'gp_lang' ),'fa-chevron-left' => __( 'chevron-left', 'gp_lang' ),'fa-chevron-right' => __( 'chevron-right', 'gp_lang' ),'fa-plus-circle' => __( 'plus-circle', 'gp_lang' ),'fa-minus-circle' => __( 'minus-circle', 'gp_lang' ),'fa-times-circle' => __( 'times-circle', 'gp_lang' ),'fa-check-circle' => __( 'check-circle', 'gp_lang' ),'fa-question-circle' => __( 'question-circle', 'gp_lang' ),'fa-info-circle' => __( 'info-circle', 'gp_lang' ),'fa-crosshairs' => __( 'crosshairs', 'gp_lang' ),'fa-times-circle-o' => __( 'times-circle-o', 'gp_lang' ),'fa-check-circle-o' => __( 'check-circle-o', 'gp_lang' ),'fa-ban' => __( 'ban', 'gp_lang' ),'fa-arrow-left' => __( 'arrow-left', 'gp_lang' ),'fa-arrow-right' => __( 'arrow-right', 'gp_lang' ),'fa-arrow-up' => __( 'arrow-up', 'gp_lang' ),'fa-arrow-down' => __( 'arrow-down', 'gp_lang' ),'fa-share' => __( 'share', 'gp_lang' ),'fa-expand' => __( 'expand', 'gp_lang' ),'fa-compress' => __( 'compress', 'gp_lang' ),'fa-plus' => __( 'plus', 'gp_lang' ),'fa-minus' => __( 'minus', 'gp_lang' ),'fa-asterisk' => __( 'asterisk', 'gp_lang' ),'fa-exclamation-circle' => __( 'exclamation-circle', 'gp_lang' ),'fa-gift' => __( 'gift', 'gp_lang' ),'fa-leaf' => __( 'leaf', 'gp_lang' ),'fa-fire' => __( 'fire', 'gp_lang' ),'fa-eye' => __( 'eye', 'gp_lang' ),'fa-eye-slash' => __( 'eye-slash', 'gp_lang' ),'fa-exclamation-triangle' => __( 'exclamation-triangle', 'gp_lang' ),'fa-plane' => __( 'plane', 'gp_lang' ),'fa-calendar' => __( 'calendar', 'gp_lang' ),'fa-random' => __( 'random', 'gp_lang' ),'fa-comment' => __( 'comment', 'gp_lang' ),'fa-magnet' => __( 'magnet', 'gp_lang' ),'fa-chevron-up' => __( 'chevron-up', 'gp_lang' ),'fa-chevron-down' => __( 'chevron-down', 'gp_lang' ),'fa-retweet' => __( 'retweet', 'gp_lang' ),'fa-shopping-cart' => __( 'shopping-cart', 'gp_lang' ),'fa-folder' => __( 'folder', 'gp_lang' ),'fa-folder-open' => __( 'folder-open', 'gp_lang' ),'fa-arrows-v' => __( 'arrows-v', 'gp_lang' ),'fa-arrows-h' => __( 'arrows-h', 'gp_lang' ),'fa-bar-chart-o' => __( 'bar-chart-o', 'gp_lang' ),'fa-twitter-square' => __( 'twitter-square', 'gp_lang' ),'fa-facebook-square' => __( 'facebook-square', 'gp_lang' ),'fa-camera-retro' => __( 'camera-retro', 'gp_lang' ),'fa-key' => __( 'key', 'gp_lang' ),'fa-cogs' => __( 'cogs', 'gp_lang' ),'fa-comments' => __( 'Comment Count', 'gp_lang' ),'fa-thumbs-o-up' => __( 'thumbs-o-up', 'gp_lang' ),'fa-thumbs-o-down' => __( 'thumbs-o-down', 'gp_lang' ),'fa-star-half' => __( 'star-half', 'gp_lang' ),'fa-heart-o' => __( 'heart-o', 'gp_lang' ),'fa-sign-out' => __( 'sign-out', 'gp_lang' ),'fa-linkedin-square' => __( 'linkedin-square', 'gp_lang' ),'fa-thumb-tack' => __( 'thumb-tack', 'gp_lang' ),'fa-external-link' => __( 'external-link', 'gp_lang' ),'fa-sign-in' => __( 'sign-in', 'gp_lang' ),'fa-trophy' => __( 'trophy', 'gp_lang' ),'fa-github-square' => __( 'github-square', 'gp_lang' ),'fa-upload' => __( 'upload', 'gp_lang' ),'fa-lemon-o' => __( 'lemon-o', 'gp_lang' ),'fa-phone' => __( 'phone', 'gp_lang' ),'fa-square-o' => __( 'square-o', 'gp_lang' ),'fa-bookmark-o' => __( 'bookmark-o', 'gp_lang' ),'fa-phone-square' => __( 'phone-square', 'gp_lang' ),'fa-twitter' => __( 'twitter', 'gp_lang' ),'fa-facebook' => __( 'facebook', 'gp_lang' ),'fa-github' => __( 'github', 'gp_lang' ),'fa-unlock' => __( 'unlock', 'gp_lang' ),'fa-credit-card' => __( 'credit-card', 'gp_lang' ),'fa-rss' => __( 'rss', 'gp_lang' ),'fa-hdd-o' => __( 'hdd-o', 'gp_lang' ),'fa-bullhorn' => __( 'bullhorn', 'gp_lang' ),'fa-bell' => __( 'bell', 'gp_lang' ),'fa-certificate' => __( 'certificate', 'gp_lang' ),'fa-hand-o-right' => __( 'hand-o-right', 'gp_lang' ),'fa-hand-o-left' => __( 'hand-o-left', 'gp_lang' ),'fa-hand-o-up' => __( 'hand-o-up', 'gp_lang' ),'fa-hand-o-down' => __( 'hand-o-down', 'gp_lang' ),'fa-arrow-circle-left' => __( 'arrow-circle-left', 'gp_lang' ),'fa-arrow-circle-right' => __( 'arrow-circle-right', 'gp_lang' ),'fa-arrow-circle-up' => __( 'arrow-circle-up', 'gp_lang' ),'fa-arrow-circle-down' => __( 'arrow-circle-down', 'gp_lang' ),'fa-globe' => __( 'globe', 'gp_lang' ),'fa-wrench' => __( 'wrench', 'gp_lang' ),'fa-tasks' => __( 'tasks', 'gp_lang' ),'fa-filter' => __( 'filter', 'gp_lang' ),'fa-briefcase' => __( 'briefcase', 'gp_lang' ),'fa-arrows-alt' => __( 'arrows-alt', 'gp_lang' ),'fa-users' => __( 'users', 'gp_lang' ),'fa-link' => __( 'link', 'gp_lang' ),'fa-cloud' => __( 'cloud', 'gp_lang' ),'fa-flask' => __( 'flask', 'gp_lang' ),'fa-scissors' => __( 'scissors', 'gp_lang' ),'fa-files-o' => __( 'files-o', 'gp_lang' ),'fa-paperclip' => __( 'paperclip', 'gp_lang' ),'fa-floppy-o' => __( 'floppy-o', 'gp_lang' ),'fa-square' => __( 'square', 'gp_lang' ),'fa-bars' => __( 'bars', 'gp_lang' ),'fa-list-ul' => __( 'list-ul', 'gp_lang' ),'fa-list-ol' => __( 'list-ol', 'gp_lang' ),'fa-strikethrough' => __( 'strikethrough', 'gp_lang' ),'fa-underline' => __( 'underline', 'gp_lang' ),'fa-table' => __( 'table', 'gp_lang' ),'fa-magic' => __( 'magic', 'gp_lang' ),'fa-truck' => __( 'truck', 'gp_lang' ),'fa-pinterest' => __( 'pinterest', 'gp_lang' ),'fa-pinterest-square' => __( 'pinterest-square', 'gp_lang' ),'fa-google-plus-square' => __( 'google-plus-square', 'gp_lang' ),'fa-google-plus' => __( 'google-plus', 'gp_lang' ),'fa-money' => __( 'money', 'gp_lang' ),'fa-caret-down' => __( 'caret-down', 'gp_lang' ),'fa-caret-up' => __( 'caret-up', 'gp_lang' ),'fa-caret-left' => __( 'caret-left', 'gp_lang' ),'fa-caret-right' => __( 'caret-right', 'gp_lang' ),'fa-columns' => __( 'columns', 'gp_lang' ),'fa-sort' => __( 'sort', 'gp_lang' ),'fa-sort-asc' => __( 'sort-asc', 'gp_lang' ),'fa-sort-desc' => __( 'sort-desc', 'gp_lang' ),'fa-envelope' => __( 'envelope', 'gp_lang' ),'fa-linkedin' => __( 'linkedin', 'gp_lang' ),'fa-undo' => __( 'undo', 'gp_lang' ),'fa-gavel' => __( 'gavel', 'gp_lang' ),'fa-tachometer' => __( 'tachometer', 'gp_lang' ),'fa-comment-o' => __( 'comment-o', 'gp_lang' ),'fa-comments-o' => __( 'comments-o', 'gp_lang' ),'fa-bolt' => __( 'bolt', 'gp_lang' ),'fa-sitemap' => __( 'sitemap', 'gp_lang' ),'fa-umbrella' => __( 'umbrella', 'gp_lang' ),'fa-clipboard' => __( 'clipboard', 'gp_lang' ),'fa-lightbulb-o' => __( 'lightbulb-o', 'gp_lang' ),'fa-exchange' => __( 'exchange', 'gp_lang' ),'fa-cloud-download' => __( 'cloud-download', 'gp_lang' ),'fa-cloud-upload' => __( 'cloud-upload', 'gp_lang' ),'fa-user-md' => __( 'user-md', 'gp_lang' ),'fa-stethoscope' => __( 'stethoscope', 'gp_lang' ),'fa-suitcase' => __( 'suitcase', 'gp_lang' ),'fa-bell-o' => __( 'bell-o', 'gp_lang' ),'fa-coffee' => __( 'coffee', 'gp_lang' ),'fa-cutlery' => __( 'cutlery', 'gp_lang' ),'fa-file-text-o' => __( 'file-text-o', 'gp_lang' ),'fa-building-o' => __( 'building-o', 'gp_lang' ),'fa-hospital-o' => __( 'hospital-o', 'gp_lang' ),'fa-ambulance' => __( 'ambulance', 'gp_lang' ),'fa-medkit' => __( 'medkit', 'gp_lang' ),'fa-fighter-jet' => __( 'fighter-jet', 'gp_lang' ),'fa-beer' => __( 'beer', 'gp_lang' ),'fa-h-square' => __( 'h-square', 'gp_lang' ),'fa-plus-square' => __( 'plus-square', 'gp_lang' ),'fa-angle-double-left' => __( 'angle-double-left', 'gp_lang' ),'fa-angle-double-right' => __( 'angle-double-right', 'gp_lang' ),'fa-angle-double-up' => __( 'angle-double-up', 'gp_lang' ),'fa-angle-double-down' => __( 'angle-double-down', 'gp_lang' ),'fa-angle-left' => __( 'angle-left', 'gp_lang' ),'fa-angle-right' => __( 'angle-right', 'gp_lang' ),'fa-angle-up' => __( 'angle-up', 'gp_lang' ),'fa-angle-down' => __( 'angle-down', 'gp_lang' ),'fa-desktop' => __( 'desktop', 'gp_lang' ),'fa-laptop' => __( 'laptop', 'gp_lang' ),'fa-tablet' => __( 'tablet', 'gp_lang' ),'fa-mobile' => __( 'mobile', 'gp_lang' ),'fa-circle-o' => __( 'circle-o', 'gp_lang' ),'fa-quote-left' => __( 'quote-left', 'gp_lang' ),'fa-quote-right' => __( 'quote-right', 'gp_lang' ),'fa-spinner' => __( 'spinner', 'gp_lang' ),'fa-circle' => __( 'circle', 'gp_lang' ),'fa-reply' => __( 'reply', 'gp_lang' ),'fa-github-alt' => __( 'github-alt', 'gp_lang' ),'fa-folder-o' => __( 'folder-o', 'gp_lang' ),'fa-folder-open-o' => __( 'folder-open-o', 'gp_lang' ),'fa-smile-o' => __( 'smile-o', 'gp_lang' ),'fa-frown-o' => __( 'frown-o', 'gp_lang' ),'fa-meh-o' => __( 'meh-o', 'gp_lang' ),'fa-gamepad' => __( 'gamepad', 'gp_lang' ),'fa-keyboard-o' => __( 'keyboard-o', 'gp_lang' ),'fa-flag-o' => __( 'flag-o', 'gp_lang' ),'fa-flag-checkered' => __( 'flag-checkered', 'gp_lang' ),'fa-terminal' => __( 'terminal', 'gp_lang' ),'fa-code' => __( 'code', 'gp_lang' ),'fa-reply-all' => __( 'reply-all', 'gp_lang' ),'fa-mail-reply-all' => __( 'mail-reply-all', 'gp_lang' ),'fa-star-half-o' => __( 'star-half-o', 'gp_lang' ),'fa-location-arrow' => __( 'location-arrow', 'gp_lang' ),'fa-crop' => __( 'crop', 'gp_lang' ),'fa-code-fork' => __( 'code-fork', 'gp_lang' ),'fa-chain-broken' => __( 'chain-broken', 'gp_lang' ),'fa-question' => __( 'question', 'gp_lang' ),'fa-info' => __( 'info', 'gp_lang' ),'fa-exclamation' => __( 'exclamation', 'gp_lang' ),'fa-superscript' => __( 'superscript', 'gp_lang' ),'fa-subscript' => __( 'subscript', 'gp_lang' ),'fa-eraser' => __( 'eraser', 'gp_lang' ),'fa-puzzle-piece' => __( 'puzzle-piece', 'gp_lang' ),'fa-microphone' => __( 'microphone', 'gp_lang' ),'fa-microphone-slash' => __( 'microphone-slash', 'gp_lang' ),'fa-shield' => __( 'shield', 'gp_lang' ),'fa-calendar-o' => __( 'calendar-o', 'gp_lang' ),'fa-fire-extinguisher' => __( 'fire-extinguisher', 'gp_lang' ),'fa-rocket' => __( 'rocket', 'gp_lang' ),'fa-maxcdn' => __( 'maxcdn', 'gp_lang' ),'fa-chevron-circle-left' => __( 'chevron-circle-left', 'gp_lang' ),'fa-chevron-circle-right' => __( 'chevron-circle-right', 'gp_lang' ),'fa-chevron-circle-up' => __( 'chevron-circle-up', 'gp_lang' ),'fa-chevron-circle-down' => __( 'chevron-circle-down', 'gp_lang' ),'fa-html5' => __( 'html5', 'gp_lang' ),'fa-css3' => __( 'css3', 'gp_lang' ),'fa-anchor' => __( 'anchor', 'gp_lang' ),'fa-unlock-alt' => __( 'unlock-alt', 'gp_lang' ),'fa-bullseye' => __( 'bullseye', 'gp_lang' ),'fa-ellipsis-h' => __( 'ellipsis-h', 'gp_lang' ),'fa-ellipsis-v' => __( 'ellipsis-v', 'gp_lang' ),'fa-rss-square' => __( 'rss-square', 'gp_lang' ),'fa-play-circle' => __( 'play-circle', 'gp_lang' ),'fa-ticket' => __( 'ticket', 'gp_lang' ),'fa-minus-square' => __( 'minus-square', 'gp_lang' ),'fa-minus-square-o' => __( 'minus-square-o', 'gp_lang' ),'fa-level-up' => __( 'level-up', 'gp_lang' ),'fa-level-down' => __( 'level-down', 'gp_lang' ),'fa-check-square' => __( 'check-square', 'gp_lang' ),'fa-pencil-square' => __( 'pencil-square', 'gp_lang' ),'fa-external-link-square' => __( 'external-link-square', 'gp_lang' ),'fa-share-square' => __( 'share-square', 'gp_lang' ),'fa-compass' => __( 'compass', 'gp_lang' ),'fa-caret-square-o-down' => __( 'caret-square-o-down', 'gp_lang' ),'fa-caret-square-o-up' => __( 'caret-square-o-up', 'gp_lang' ),'fa-caret-square-o-right' => __( 'caret-square-o-right', 'gp_lang' ),'fa-eur' => __( 'eur', 'gp_lang' ),'fa-gbp' => __( 'gbp', 'gp_lang' ),'fa-usd' => __( 'usd', 'gp_lang' ),'fa-inr' => __( 'inr', 'gp_lang' ),'fa-jpy' => __( 'jpy', 'gp_lang' ),'fa-rub' => __( 'rub', 'gp_lang' ),'fa-krw' => __( 'krw', 'gp_lang' ),'fa-btc' => __( 'btc', 'gp_lang' ),'fa-file' => __( 'file', 'gp_lang' ),'fa-file-text' => __( 'file-text', 'gp_lang' ),'fa-sort-alpha-asc' => __( 'sort-alpha-asc', 'gp_lang' ),'fa-sort-alpha-desc' => __( 'sort-alpha-desc', 'gp_lang' ),'fa-sort-amount-asc' => __( 'sort-amount-asc', 'gp_lang' ),'fa-sort-amount-desc' => __( 'sort-amount-desc', 'gp_lang' ),'fa-sort-numeric-asc' => __( 'sort-numeric-asc', 'gp_lang' ),'fa-sort-numeric-desc' => __( 'sort-numeric-desc', 'gp_lang' ),'fa-thumbs-up' => __( 'thumbs-up', 'gp_lang' ),'fa-thumbs-down' => __( 'thumbs-down', 'gp_lang' ),'fa-youtube-square' => __( 'youtube-square', 'gp_lang' ),'fa-youtube' => __( 'youtube', 'gp_lang' ),'fa-xing' => __( 'xing', 'gp_lang' ),'fa-xing-square' => __( 'xing-square', 'gp_lang' ),'fa-youtube-play' => __( 'youtube-play', 'gp_lang' ),'fa-dropbox' => __( 'dropbox', 'gp_lang' ),'fa-stack-overflow' => __( 'stack-overflow', 'gp_lang' ),'fa-instagram' => __( 'instagram', 'gp_lang' ),'fa-flickr' => __( 'flickr', 'gp_lang' ),'fa-adn' => __( 'adn', 'gp_lang' ),'fa-bitbucket' => __( 'bitbucket', 'gp_lang' ),'fa-bitbucket-square' => __( 'bitbucket-square', 'gp_lang' ),'fa-tumblr' => __( 'tumblr', 'gp_lang' ),'fa-tumblr-square' => __( 'tumblr-square', 'gp_lang' ),'fa-long-arrow-down' => __( 'long-arrow-down', 'gp_lang' ),'fa-long-arrow-up' => __( 'long-arrow-up', 'gp_lang' ),'fa-long-arrow-left' => __( 'long-arrow-left', 'gp_lang' ),'fa-long-arrow-right' => __( 'long-arrow-right', 'gp_lang' ),'fa-apple' => __( 'apple', 'gp_lang' ),'fa-windows' => __( 'windows', 'gp_lang' ),'fa-android' => __( 'android', 'gp_lang' ),'fa-linux' => __( 'linux', 'gp_lang' ),'fa-dribbble' => __( 'dribbble', 'gp_lang' ),'fa-skype' => __( 'skype', 'gp_lang' ),'fa-foursquare' => __( 'foursquare', 'gp_lang' ),'fa-trello' => __( 'trello', 'gp_lang' ),'fa-female' => __( 'female', 'gp_lang' ),'fa-male' => __( 'male', 'gp_lang' ),'fa-gittip' => __( 'gittip', 'gp_lang' ),'fa-sun-o' => __( 'sun-o', 'gp_lang' ),'fa-moon-o' => __( 'moon-o', 'gp_lang' ),'fa-archive' => __( 'archive', 'gp_lang' ),'fa-bug' => __( 'bug', 'gp_lang' ),'fa-vk' => __( 'vk', 'gp_lang' ),'fa-weibo' => __( 'weibo', 'gp_lang' ),'fa-renren' => __( 'renren', 'gp_lang' ),'fa-pagelines' => __( 'pagelines', 'gp_lang' ),'fa-stack-exchange' => __( 'stack-exchange', 'gp_lang' ),'fa-arrow-circle-o-right' => __( 'arrow-circle-o-right', 'gp_lang' ),'fa-arrow-circle-o-left' => __( 'arrow-circle-o-left', 'gp_lang' ),'fa-caret-square-o-left' => __( 'caret-square-o-left', 'gp_lang' ),'fa-dot-circle-o' => __( 'dot-circle-o', 'gp_lang' ),'fa-wheelchair' => __( 'wheelchair', 'gp_lang' ),'fa-vimeo-square' => __( 'vimeo-square', 'gp_lang' ),'fa-try' => __( 'try', 'gp_lang' ),'fa-plus-square-o' => __( 'plus-square-o', 'gp_lang' ),'fa-angellist' => __( 'angellist', 'gp_lang' ),'fa-area-chart' => __( 'area-chart', 'gp_lang' ),'fa-at' => __( 'at', 'gp_lang' ),'fa-bell-slash' => __( 'bell-slash', 'gp_lang' ),'fa-bell-slash-o' => __( 'bell-slash-o', 'gp_lang' ),'fa-bicycle' => __( 'bicycle', 'gp_lang' ),'fa-binoculars' => __( 'binoculars', 'gp_lang' ),'fa-birthday-cake' => __( 'birthday-cake', 'gp_lang' ),'fa-bus' => __( 'bus', 'gp_lang' ),'fa-calculator' => __( 'calculator', 'gp_lang' ),'fa-cc' => __( 'cc', 'gp_lang' ),'fa-cc-amex' => __( 'cc-amex', 'gp_lang' ),'fa-cc-discover' => __( 'cc-discover', 'gp_lang' ),'fa-cc-mastercard' => __( 'cc-mastercard', 'gp_lang' ),'fa-cc-paypal' => __( 'cc-paypal', 'gp_lang' ),'fa-cc-stripe' => __( 'cc-stripe', 'gp_lang' ),'fa-cc-visa' => __( 'cc-visa', 'gp_lang' ),'fa-copyright' => __( 'copyright', 'gp_lang' ),'fa-eyedropper' => __( 'eyedropper', 'gp_lang' ),'fa-futbol-o' => __( 'futbol-o', 'gp_lang' ),'fa-google-wallet' => __( 'google-wallet', 'gp_lang' ),'fa-ils' => __( 'ils', 'gp_lang' ),'fa-ioxhost' => __( 'ioxhost', 'gp_lang' ),'fa-lastfm' => __( 'lastfm', 'gp_lang' ),'fa-lastfm-square' => __( 'lastfm-square', 'gp_lang' ),'fa-line-chart' => __( 'line-chart', 'gp_lang' ),'fa-meanpath' => __( 'meanpath', 'gp_lang' ),'fa-newspaper-o' => __( 'newspaper-o', 'gp_lang' ),'fa-paint-brush' => __( 'paint-brush', 'gp_lang' ),'fa-paypal' => __( 'paypal', 'gp_lang' ),'fa-pie-chart' => __( 'pie-chart', 'gp_lang' ),'fa-plug' => __( 'plug', 'gp_lang' ),'fa-shekel' => __( 'shekel', 'gp_lang' ),'fa-sheqel' => __( 'sheqel', 'gp_lang' ),'fa-slideshare' => __( 'slideshare', 'gp_lang' ),'fa-soccer-ball-o' => __( 'soccer-ball-o', 'gp_lang' ),'fa-toggle-off' => __( 'toggle-off', 'gp_lang' ),'fa-toggle-on' => __( 'toggle-on', 'gp_lang' ),'fa-trash' => __( 'trash', 'gp_lang' ),'fa-tty' => __( 'tty', 'gp_lang' ),'fa-twitch' => __( 'twitch', 'gp_lang' ),'fa-wifi' => __( 'wifi', 'gp_lang' ),'fa-yelp' => __( 'yelp', 'gp_lang' )				
				),
				'default' => 'fa-trophy',
			),
					
			array(
				'id' => 'hub_user_rating',
				'title' => __( 'User Rating Box', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Choose to display the user rating box where users can vote.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),
					
			array(
				'id'        => 'hub_reset_user_ratings',
				'type'      => 'checkbox',
				'title'     => __( 'Reset User Ratings & Votes', 'gp_lang' ),
				'desc' => __( 'Reset the user ratings and votes for this hub only.', 'gp_lang' ),
				'default'  => '0',
			),
												
		),
	);
			
    $hub_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-cogs',
		'fields' => array(   
		  
			array( 
				'id' => 'hub_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'gp-large-title' => __( 'Enabled', 'gp_lang' ),
					'gp-no-large-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),

			array( 
				'id' => 'hub_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'hub_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),

			array( 
				'id' => 'hub_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'type' => 'text',
				'required' => array( 'hub_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
															
			array(
				'id' => 'hub_title_bg', 
				'title' => __( 'Title Header Image Background', 'gp_lang' ),
				'required' => array( 'hub_title', '!=', 'gp-no-large-title' ),
				'type'      => 'media',	
				'mode'      => false,		
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),
			
			array(
				'id' => 'hub_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),
				'required' => array( 'hub_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'hub_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),
				'required' => array( 'hub_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
																	
			array( 
				'id' => 'hub_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'hub_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),
																													 
		),
	);
    $metaboxes[] = array(
        'id' => 'hub-template-options',
        'title' => __( 'Hub Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'hub-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $hub_template_options,
    );
    

	/*--------------------------------------------------------------
	Review Page Template Options
	--------------------------------------------------------------*/	

    $review_template_options = array();
    $review_template_options[] = array(
		'title' => __( 'Review', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-star',
		'fields' => array(  

			array( 
				'id' => 'review_site_rating',
				'title' => __( 'Site Rating', 'gp_lang' ),
				'desc' => __( 'Add a rating for this review.', 'gp_lang' ),
				'subtitle' => __( 'To add multiple ratings click the "Add Site Rating" button.', 'gp_lang' ),
				'type' => 'multi_text',
				'validate' => 'numeric',
				'add_text' => 'Add Site Rating',
				'default' => '',
			),

			array( 
				'id' => 'review_rating_criteria',
				'title' => __( 'Rating Criteria', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'desc' => __( 'Add multiple rating criteria to your site rating.', 'gp_lang' ),
				'subtitle' => __( 'To add multiple criteria click the "Add Rating Criteria" button.', 'gp_lang' ),
				'type' => 'multi_text',
				'add_text' => 'Add Rating Criteria',
				'default' => '',
			),
									
			array( 
				'id' => 'review_good_points',
				'title' => __( 'Good Points', 'gp_lang' ),
				'desc' => __( 'Add a good point for this review.', 'gp_lang' ),
				'subtitle' => __( 'To add multiple good points click the "Add Good Point" button.', 'gp_lang' ),
				'type' => 'multi_text',
				'add_text' => 'Add Good Point',
				'default' => '',
			),

			array( 
				'id' => 'review_bad_points',
				'title' => __( 'Bad Points', 'gp_lang' ),
				'desc' => __( 'Add a bad point for this review.', 'gp_lang' ),
				'subtitle' => __( 'To add multiple bad points click the "Add Bad Point" button.', 'gp_lang' ),
				'type' => 'multi_text',
				'add_text' => 'Add Bad Point',
				'default' => '',
			),
	
			array(
				'id' => 'review_user_rating',
				'title' => __( 'User Rating Box', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Choose to display the user rating box where users can vote.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),
						
		),
	);
	
    $review_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
		'icon' => 'el-icon-cogs',
		'fields' => array(  

			array( 
				'id' => 'review_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'gp-large-title' => __( 'Enabled', 'gp_lang' ),
					'gp-no-large-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),

			array( 
				'id' => 'review_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'review_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						        
			array( 
				'id' => 'review_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'type' => 'text',
				'required' => array( 'review_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
						
			array( 
				'id' => 'review_subtitle',
				'title' => __( 'Page Subtitle', 'gp_lang' ),
				'type' => 'textarea',
				'required' => array( 'review_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
							
			array(
				'id' => 'review_title_bg', 
				'title' => __( 'Title Header Image Background', 'gp_lang' ),
				'required' => array( 'review_title', '!=', 'gp-no-large-title' ),
				'type'      => 'media',	
				'mode'      => false,		
				'required' => array( 'review_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),

			array(
				'id' => 'review_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),
				'required' => array( 'review_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'review_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),
				'required' => array( 'review_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
						
			array( 
				'id' => 'review_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			
			array( 
				'id' => 'review_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'Review', 'gp_lang' ),
			),
					
			array( 
				'id' => 'review_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'review_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),

		),
	);
    $metaboxes[] = array(
        'id' => 'review-template-options',
        'title' => __( 'Review Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'review-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $review_template_options,
    );
    
    
	/*--------------------------------------------------------------
	News Page Template Options
	--------------------------------------------------------------*/	

    $news_template_options = array();
    $news_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),		
		'icon' => 'el-icon-cogs',
        'fields' => array(	

			array(
				'id'       => 'news_cats',
				'type'     => 'select',
				'multi' => true,
				'title'    => __( 'Post Categories', 'gp_lang' ),
				'data' => 'categories',
				'desc' => __( 'Select the post categories you want to display (leave empty to display all posts associated with the parent hub page).', 'gp_lang' ),
				'default' => '',
			),

			array( 
				'id' => 'news_post_association',
				'title' => __( 'Post Association', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Only show posts associated with the parent hub page.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),

			array(
				'id'       => 'news_filter_cats_id',
				'type'     => 'select',
				'required'  => array( 'news_filter', '=', 'enabled' ),
				'title'    => __( 'Filter Categories', 'gp_lang' ),
				'data' => 'terms',
				'args' => array( 'taxonomies' => array( 'category' ) ),
				'desc' => __( 'Select the category you want to filter by, leave blank to display all categories.', 'gp_lang' ),
				'subtitle' => __( 'The sub categories of this category will also be displayed.', 'gp_lang' ),
			),
						
			array( 
				'id' => 'news_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			
			array( 
				'id' => 'news_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'News', 'gp_lang' ),
			),
						
			array( 
				'id' => 'news_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),
			        
			array(
				'id'      => 'news_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),
										 
		),
	);	
    $metaboxes[] = array(
        'id' => 'news-options',
        'title' => __( 'News Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'news-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $news_template_options,
    );
    
    
 	/*--------------------------------------------------------------
	Images Page Template Options
	--------------------------------------------------------------*/	

    $images_template_options = array();
    $images_template_options[] = array(
		'title' => __( 'Image', 'gp_lang' ),		
		'icon' => 'el-icon-picture',
        'fields' => array(	      
			
			array(
				'id'        => 'images_gallery',
				'type'      => 'gallery',
				'title'     => __( 'Images', 'gp_lang' ),
				'subtitle'  => __( 'Select or upload images using the WordPress native uploader.', 'gp_lang' ),
				'desc'  => __( 'Uploaded images will automatically show up on the page.', 'gp_lang' ),
				'default' => '',
			),
			
		),
	);

    $images_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),		
		'icon' => 'el-icon-cogs',
        'fields' => array(	

			array( 
				'id' => 'images_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			        	
 			array( 
				'id' => 'images_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'Images', 'gp_lang' ),
			),
						       							
			array( 
				'id' => 'images_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'images_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),					
																													 
		),	
	);	
    $metaboxes[] = array(
        'id' => 'image-template-options',
        'title' => __( 'Image Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array('images-template.php'),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $images_template_options,
    );
    
 
	/*--------------------------------------------------------------
	Videos Page Template Options
	--------------------------------------------------------------*/	

    $videos_template_options = array();		
    $videos_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),	
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),	
		'icon' => 'el-icon-cogs',
        'fields' => array(
        
			array(
				'id'       => 'videos_cats',
				'type'     => 'select',
				'multi' => true,
				'title'    => __( 'Video Categories', 'gp_lang' ),				
				'data' => 'terms',
				'args' => array( 'taxonomies' => 'gp_videos' ),
				'desc' => __( 'Select the video categories you want to display (leave empty to display all videos associated with the parent hub page).', 'gp_lang' ),
				'default' => '',
			),

			array( 
				'id' => 'videos_post_association',
				'title' => __( 'Post Association', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Only show posts associated with the parent hub page.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			
			array(
				'id'       => 'videos_filter_cats_id',
				'type'     => 'select',
				'required'  => array( 'videos_filter', '=', 'enabled' ),
				'title'    => __( 'Filter Categories', 'gp_lang' ),
				'data' => 'terms',
				'args' => array( 'taxonomies' => array( 'gp_videos' ) ),
				'desc' => __( 'Select the category you want to filter by, leave blank to display all categories.', 'gp_lang' ),
				'subtitle' => __( 'The sub categories of this category will also be displayed.', 'gp_lang' ),
			),
			
			array( 
				'id' => 'videos_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			        
			array( 
				'id' => 'videos_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'Videos', 'gp_lang' ),
			),
								
			array( 
				'id' => 'videos_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'videos_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),
									 
		),
	);	
    $metaboxes[] = array(
        'id' => 'videos-options',
        'title' => __( 'Video Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'videos-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $videos_template_options,
    );
    
    
	/*--------------------------------------------------------------
	Link Page Template Options
	--------------------------------------------------------------*/	

    $link_template_options = array();
    $link_template_options[] = array(
        'fields' => array(
        
			array( 
				'id' => 'link_template_link',
				'title' => __( 'Link', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'The link which your page goes to.', 'gp_lang' ),
				'default' => '',
				'validate' => 'url',
			),

			array( 
				'id' => 'link_template_link_target',
				'title' => __( 'Link Target', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'The target for the link.', 'gp_lang' ),
				'options' => array(
					'_blank' => __( 'New Window', 'gp_lang' ),
					'_self' => __( 'Same Window', 'gp_lang' ),
				),
				'default' => '_self',
			),

			array( 
				'id' => 'link_template_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						
			array( 
				'id' => 'link_template_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => '',
			),
															 
		),
	);	
    $metaboxes[] = array(
        'id' => 'link-options',
        'title' => __( 'Link Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'link-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $link_template_options,
    );


	/*--------------------------------------------------------------
	Write A Review Page Template Options
	--------------------------------------------------------------*/	

    $write_a_review_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),		
		'icon' => 'el-icon-cogs',
        'fields' => array(	

			array( 
				'id' => 'write_a_review_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'disabled',
			),
			
			array( 
				'id' => 'write_a_review_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'Write A Review', 'gp_lang' ),
			),
						
			array( 
				'id' => 'write_a_review_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),
			        
			array(
				'id'      => 'write_a_review_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),
										 
		),
	);	
    $metaboxes[] = array(
        'id' => 'write-a-review-options',
        'title' => __( 'Write A Review Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'write-a-review-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $write_a_review_template_options,
    );
    

	/*--------------------------------------------------------------
	User Reviews Page Template Options
	--------------------------------------------------------------*/	

    $user_reviews_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),		
		'icon' => 'el-icon-cogs',
        'fields' => array(	

			array( 
				'id' => 'user_reviews_tab',
				'title' => __( 'Hub Tab', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Show this page in the hub tabs.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'disabled',
			),
			
			array( 
				'id' => 'user_reviews_tab_title',
				'title' => __( 'Hub Tab Title', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'Custom title used in hub tabs.', 'gp_lang' ),
				'default' => __( 'User Reviews', 'gp_lang' ),
			),
						
			array( 
				'id' => 'user_reviews_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),
			        
			array(
				'id'      => 'user_reviews_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),
										 
		),
	);	
    $metaboxes[] = array(
        'id' => 'user-reviews-options',
        'title' => __( 'User Reviews Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'user-reviews-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $user_reviews_template_options,
    );
            

	/*--------------------------------------------------------------
	My Reviews Template Options
	--------------------------------------------------------------*/	

    $my_reviews_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),		
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),		
		'icon' => 'el-icon-cogs',
        'fields' => array(	

			array( 
				'id' => 'my_reviews_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header.', 'gp_lang' ),
				'options' => array(
					'gp-standard-title' => __( 'Standard', 'gp_lang' ),
					'gp-large-title' => __( 'Large', 'gp_lang' ),
					'gp-fullwidth-title' => __( 'Fullwidth', 'gp_lang' ),
					'gp-full-page-title' => __( 'Full Page', 'gp_lang' ),
					'gp-no-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'gp-large-title',
			),
			
			array( 
				'id' => 'my_reviews_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'my_reviews_title', '!=', 'gp-no-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						        
			array( 
				'id' => 'my_reviews_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'type' => 'text',
				'required' => array( 'my_reviews_title', '!=', 'gp-no-title' ),
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
									
			array( 
				'id' => 'my_reviews_subtitle',
				'title' => __( 'Page Subtitle', 'gp_lang' ),
				'type' => 'textarea',
				'required' => array( 'my_reviews_title', '!=', 'gp-no-title' ),
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
				
			array(
				'id' => 'my_reviews_title_bg', 
				'title' => __( 'Title Header Image Background', 'gp_lang' ),
				'type'      => 'media',		
				'mode'      => false,	
				'required' => array( array( 'my_reviews_title', '!=', 'gp-standard-title' ), array( 'my_reviews_title', '!=', 'gp-no-title' ) ),
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),	
					
			array(
				'id' => 'my_reviews_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),	
				'required' => array( array( 'my_reviews_title', '!=', 'gp-standard-title' ), array( 'my_reviews_title', '!=', 'gp-no-title' ) ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'my_reviews_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),	
				'required' => array( array( 'my_reviews_title', '!=', 'gp-standard-title' ), array( 'my_reviews_title', '!=', 'gp-no-title' ) ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
									
			array( 
				'id' => 'my_reviews_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'gp-no-sidebar',
			),
			        
			array(
				'id'      => 'my_reviews_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => 'gp-standard-sidebar',
			),
										 
		),
	);	
    $metaboxes[] = array(
        'id' => 'my-reviews-options',
        'title' => __( 'My Reviews Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'my-reviews-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $my_reviews_template_options,
    );
    
    
	/*--------------------------------------------------------------
	Following Page Template Options
	--------------------------------------------------------------*/	

    $following_template_options[] = array(
		'title' => __( 'Following', 'gp_lang' ),
		'icon' => 'el-icon-eye-open',
        'fields' => array(

			array( 
				'id' => 'following_hub_items_post_types',
				'title' => __( 'Following Post Types', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'desc' => __( 'Choose what post types to display for the latest items for each hub.', 'gp_lang' ),
				'type' => 'select',
				'multi' => true,
				'data' => 'post_types',
				'default' => array( 'post', 'page', 'gp_user_review' ),
			),
			
			array( 
				'id' => 'following_hub_items_modified',
				'title' => __( 'Include Modified Items', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type' => 'button_set',
				'desc' => __( 'Display modified items for the latest items for each hub.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
			
			array( 
				'id' => 'following_hub_items_per_page',
				'title' => __( 'Items Per Page', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type'     => 'spinner',
				'desc' => __( 'The number of items to display for the latest items for each hub.', 'gp_lang' ),
				'min' => 1,
				'max' => 999999,
				'default' => 5,
			),

			array( 
				'id' => 'following_hub_items_days_ago',
				'title' => __( 'Number Of Days', 'gp_lang' ) . ' <span style="padding: 1px 5px;color: #C09853;background: #FCF8E3;display: inline;font-weight: bold;border: 1px solid #E7E7E7;border-radius: 3px;font-size: 12px;">' . __( 'NEW', 'gp_lang' ) . '</span>',
				'type'     => 'spinner',
				'desc' => __( 'The number of days before am item is no longer displayed for the latest items for each hub.', 'gp_lang' ),
				'min' => 1,
				'max' => 999999,
				'default' => 31,
			),

		)
	);
	
    $following_template_options[] = array(
		'title' => __( 'General', 'gp_lang' ),	
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),	
		'icon' => 'el-icon-cogs',
		'fields' => array(
							
			array( 
				'id' => 'following_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header.', 'gp_lang' ),
				'options' => array(
					'gp-standard-title' => __( 'Standard', 'gp_lang' ),
					'gp-large-title' => __( 'Large', 'gp_lang' ),
					'gp-fullwidth-title' => __( 'Fullwidth', 'gp_lang' ),
					'gp-full-page-title' => __( 'Full Page', 'gp_lang' ),
					'gp-no-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'gp-large-title',
			),
			
			array( 
				'id' => 'following_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'following_title', '!=', 'gp-no-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						        
			array( 
				'id' => 'following_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'type' => 'text',
				'required' => array( 'following_title', '!=', 'gp-no-title' ),
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
									
			array( 
				'id' => 'following_subtitle',
				'title' => __( 'Page Subtitle', 'gp_lang' ),
				'type' => 'textarea',
				'required' => array( 'following_title', '!=', 'gp-no-title' ),
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
				
			array(
				'id' => 'following_title_bg', 
				'title' => __( 'Title Header Image Background', 'gp_lang' ),
				'type'      => 'media',		
				'mode'      => false,	
				'required' => array( array( 'following_title', '!=', 'gp-standard-title' ), array( 'following_title', '!=', 'gp-no-title' ) ),
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),	
					
			array(
				'id' => 'following_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),	
				'required' => array( array( 'following_title', '!=', 'gp-standard-title' ), array( 'following_title', '!=', 'gp-no-title' ) ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'following_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),	
				'required' => array( array( 'following_title', '!=', 'gp-standard-title' ), array( 'following_title', '!=', 'gp-no-title' ) ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
									
			array( 
				'id' => 'following_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'gp-no-sidebar',
			),
			        
			array(
				'id'      => 'following_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => 'gp-standard-sidebar',
			),
										 
		),
	);	
    $metaboxes[] = array(
        'id' => 'following-options',
        'title' => __( 'Following Options', 'gp_lang' ),
        'post_types' => array( 'page' ),
        'page_template' => array( 'following-template.php' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $following_template_options,
    );
    
                  
	/*--------------------------------------------------------------
	Portfolio Item Options
	--------------------------------------------------------------*/	

    $portfolio_item_options = array();
    $portfolio_item_options[] = array(
		'title' => __( 'Portfolio', 'gp_lang' ),	
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),	
		'icon' => 'el-icon-photo-alt',
        'fields' => array(

			array(
				'id'        => 'portfolio_item_type',
				'type'      => 'radio',
				'title'     => __( 'Image/Slider Type', 'gp_lang' ),
				'desc' => __( 'The type of image or slider on the page.', 'gp_lang' ),
				'options'   => array(
					'default' => __( 'Default', 'gp_lang' ),
					'left-image' => 'Left Featured Image',
					'fullwidth-image' => 'Fullwidth Featured Image',
					'left-slider' => 'Left Slider',
					'fullwidth-slider' => 'Fullwidth Slider',
					'none' => 'None',
				), 
				'default'   => 'default',
			),   

			array(
				'id'        => 'portfolio_item_gallery_slider',
				'type'      => 'gallery',
				'required'  => array( 'portfolio_item_type', '=', array( 'left-slider', 'fullwidth-slider' ) ),
				'title'     => __( 'Gallery Slider', 'gp_lang' ),
				'subtitle'  => __( 'Create a new gallery by selecting an existing one or uploading new images using the WordPress native uploader.', 'gp_lang' ),
				'desc'  => __( 'Add a gallery slider.', 'gp_lang' ),
			),
			
			array(
				'id' => 'portfolio_item_image',
				'type' => 'dimensions',
				'required'  => array( 'portfolio_item_type', '!=', 'none' ),
				'units' => false,
				'title' => __( 'Image/Slider Dimensions', 'gp_lang' ),
				'subtitle' => __( 'Set height to 0 to have a proportionate height.', 'gp_lang' ),
				'desc' => __( 'The width and height of the featured image or slider.', 'gp_lang' ),
				'default'           => array(
					'width'     => '', 
					'height'    => '',
				),
			),
			
			array(
				'id' => 'portfolio_item_hard_crop',
				'title' => __( 'Hard Crop', 'gp_lang' ),
				'type' => 'button_set',
				'required'  => array( 'portfolio_item_type', '!=', 'none' ),
				'desc' => __( 'Images are cropped even if it is smaller than the dimensions you want to crop it to.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					true => __( 'Enabled', 'gp_lang' ),
					false => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),

			array(
				'id' => 'portfolio_item_image_size',
				'title' => __( 'Image Size', 'gp_lang' ),
				'subtitle' => __( 'Only for use with the Masonry portfolio type.', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Size of the image when displayed on a masonry portfolio page.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'regular' => __( 'Regular', 'gp_lang' ),
					'wide' => __( 'Wide', 'gp_lang' ),
					'tall' => __( 'Tall', 'gp_lang' ),
					'large' => __( 'Large', 'gp_lang' ),
				),
				'default' => 'default',
			),
		
			array( 	
				'id' => 'portfolio_item_link',
				'title' => __( 'Button Link', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'The link for the button.', 'gp_lang' ),
				'validate' => 'url',
				'default' => '',
			), 
								
			array( 	
				'id' => 'portfolio_item_link_text',
				'title' => __( 'Button Text', 'gp_lang' ),
				'type' => 'text',
				'desc' => __( 'The text for the button.', 'gp_lang' ),
				'default' => '',
			), 

			array( 
				'id' => 'portfolio_item_link_target',
				'title' => __( 'Button Link Target', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'The target for the button link.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'_blank' => __( 'New Window', 'gp_lang' ),
					'_self' => __( 'Same Window', 'gp_lang' ),
				),
				'default' => 'default',
			),
			
		),
	);		
	
    $portfolio_item_options[] = array(
		'title' => __( 'General', 'gp_lang' ),	
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),	
		'icon' => 'el-icon-cogs',
        'fields' => array(
        
			array( 
				'id' => 'portfolio_item_title',
				'title' => __( 'Title Header', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'Display the title header.', 'gp_lang' ),
				'options' => array(
					'default' => __( 'Default', 'gp_lang' ),
					'gp-large-title' => __( 'Enabled', 'gp_lang' ),
					'gp-no-large-title' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'default',
			),
			
			array( 
				'id' => 'portfolio_item_title_text',
				'title' => __( 'Title Header Text', 'gp_lang' ),
				'type' => 'button_set',
				'required' => array( 'portfolio_item_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'Display the title header text.', 'gp_lang' ),
				'options' => array(
					'enabled' => __( 'Enabled', 'gp_lang' ),
					'disabled' => __( 'Disabled', 'gp_lang' ),
				),
				'default' => 'enabled',
			),
						 
			array( 
				'id' => 'portfolio_item_custom_title',
				'title' => __( 'Custom Title Header', 'gp_lang' ),
				'type' => 'text',
				'required' => array( 'portfolio_item_title', '!=', 'gp-no-large-title' ),
				'desc' => __( 'A custom title header that overwrites the default title header.', 'gp_lang' ),
				'default' => '',
			),
			
			array( 
				'id' => 'portfolio_item_subtitle',
				'title' => __( 'Page Subtitle', 'gp_lang' ),
				'required' => array( 'portfolio_item_title', '!=', 'gp-no-large-title' ),
				'type' => 'textarea',
				'desc' => __( 'Add a subtitle below the title header.', 'gp_lang' ),
				'default' => '',
			),
									
			array(
				'id' => 'portfolio_item_title_bg', 
				'title' => __( 'Title Header Image Background', 'gp_lang' ),
				'required' => array( 'portfolio_item_title', '!=', 'gp-no-large-title' ),
				'type'      => 'media',
				'mode'      => false,
				'desc' => __( 'The title header image background.', 'gp_lang' ),
				'default' => '',
			),

			array(
				'id' => 'portfolio_item_title_teaser_video_bg', 
				'title' => __( 'Title Header Teaser Video Background', 'gp_lang' ),
				'required' => array( 'portfolio_item_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports HTML5 video only. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',
				'desc' => __( 'Video URL to the teaser video that is displayed in the title header.', 'gp_lang' ),
				'default' => '',
			),	

			array(
				'id' => 'portfolio_item_title_full_video_bg', 
				'title' => __( 'Title Header Full Video Background', 'gp_lang' ),
				'required' => array( 'portfolio_item_title', '!=', 'gp-no-large-title' ),
				'subtitle' => __( 'Supports YouTube, Vimeo and HTML5 video. For multiple HTML5 formats, each video should have exactly the same filename but remove the extension (e.g. .mp4) from the filename in the text box.', 'gp_lang' ),
				'type'      => 'text',	
				'validate'  => 'url',	
				'desc' => __( 'Video URL to the full video that is displayed when the play button is clicked.', 'gp_lang' ),
				'default' => '',
			),
											
			array( 
				'id' => 'portfolio_item_layout',
				'title' => __( 'Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'portfolio_item_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),
					 
		),
	);
    $metaboxes[] = array(
        'id' => 'portfolio-item-options',
        'title' => __( 'Portfolio Item Options', 'gp_lang' ),
        'post_types' => array( 'gp_portfolio_item' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $portfolio_item_options,
    );


	/*--------------------------------------------------------------
	Product Options
	--------------------------------------------------------------*/	

    $product_options = array();
    $product_options[] = array(
		'desc' => __( 'By default most of these options are set from the Theme Options page to change all pages at once, but you can overwrite these options here so this page has different settings.', 'gp_lang' ),
        'fields' => array( 
		
			array( 
				'id' => 'product_layout',
				'title' => __( 'Product Page Layout', 'gp_lang' ),					
				'type' => 'image_select',
				'desc' => __( 'The layout of the page.', 'gp_lang' ),
				'options' => array(
					'default' => array('title' => 'Default',   'img' => ReduxFramework::$_url . 'assets/img/1c.png'),
					'gp-left-sidebar' => array('title' => 'Left Sidebar',   'img' => ReduxFramework::$_url . 'assets/img/2cl.png'),
					'gp-right-sidebar' => array('title' => 'Right Sidebar',  'img' => ReduxFramework::$_url . 'assets/img/2cr.png'),
					'gp-no-sidebar' => array('title' => 'No Sidebar', 'img' => get_template_directory_uri() . '/lib/images/no-sidebar.png'),
					'gp-fullwidth' => array('title' => 'Fullwidth', 'img' => ReduxFramework::$_url . 'assets/img/1col.png'),
				),	
				'default' => 'default',
			),

			array(
				'id'      => 'product_sidebar',
				'type'    => 'select',
				'title'   => __( 'Sidebar', 'gp_lang' ),
				'desc' => __( 'The sidebar to display.', 'gp_lang' ),
				'data'    => 'sidebar',
				'default' => '',
			),	
					 
		),
	);
    $metaboxes[] = array(
        'id' => 'product-options',
        'title' => __( 'Product Options', 'gp_lang' ),
        'post_types' => array( 'product' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $product_options,
    );


	/*--------------------------------------------------------------
	Slide Options
	--------------------------------------------------------------*/	

    $slide_options = array();
    $slide_options[] = array(
        'fields' => array( 

			array(
				'id'       => 'slide_caption_title',
				'type'     => 'text',
				'title'    => __( 'Caption Title', 'gp_lang' ),
				'desc' => __( 'The caption title for the slide.', 'gp_lang' ),
			),	
			
			array(
				'id'       => 'slide_caption_text',
				'type'     => 'textarea',
				'title'    => __( 'Caption Text', 'gp_lang' ),
				'desc' => __( 'The caption text for the slide.', 'gp_lang' ),
			),	
					
			array(
				'id'       => 'slide_link',
				'type'     => 'text',
				'title'    => __( 'Link', 'gp_lang' ),
				'desc'     => __( 'The link which your post goes to.', 'gp_lang' ),
				'validate' => 'url',
			),
			
			array( 
				'id' => 'slide_link_target',
				'title' => __( 'Link Target', 'gp_lang' ),
				'type' => 'button_set',
				'desc' => __( 'The target for the link.', 'gp_lang' ),
				'options' => array(
					'_self' => __( 'Same Window', 'gp_lang' ),
					'_blank' => __( 'New Window', 'gp_lang' ),
				),
				'default' => '_self',
			),			
					 
		),		
	);
    $metaboxes[] = array(
        'id' => 'slide-options',
        'title' => __( 'Slide Options', 'gp_lang' ),
        'post_types' => array( 'gp_slide' ),
        'position' => 'normal',
        'priority' => 'high',
        'sections' => $slide_options,
    );
        
    // Kind of overkill, but ahh well.  ;)
    //$metaboxes = apply_filters( 'your_custom_redux_metabox_filter_here', $metaboxes );

    return $metaboxes;
  }
  add_action('redux/metaboxes/'.$redux_opt_name.'/boxes', 'gp_add_metaboxes');
endif;

// The loader will load all of the extensions automatically based on your $redux_opt_name
require_once(dirname(__FILE__).'/loader.php');