<?php

/*--------------------------------------------------------------
Load Default Visual Composer Templates
--------------------------------------------------------------*/

// Remove cats and filter_cats_id options
// esc_html__ to all widget_title options

// Homepage 5
if ( ! function_exists( 'ghostpool_homepage_5_template' ) ) {
	function ghostpool_homepage_5_template( $gp_data ) {
		$gp_template = array();
		$gp_template['name'] = esc_html__( 'Homepage 5', 'gauge' );
		$gp_template['custom_class'] = 'gp_vc_homepage_5_template';
		$gp_template['content'] = '[vc_row css=".vc_custom_1451896072874{margin-bottom: 0px !important;}"][vc_column width="2/3" css=".vc_custom_1430832266152{margin-bottom: 0px !important;}"][blog widget_title="' . esc_html__( 'Latest Games', 'gauge' ) . '" post_types="page" format="blog-columns-3" filter="enabled" filter_cats="1" filter_date="1" filter_title="1" filter_comment_count="1" filter_views="1" filter_followers="1" filter_site_rating="1" filter_user_rating="1" filter_hub_awards="1" filter_date_posted="1" per_page="6" image_width="246" image_height="161" image_alignment="image-above" title_position="title-over-thumbnail" excerpt_length="0" display_site_rating="1" see_all="enabled" see_all_link="hubs/hub-games/"][vc_empty_space height="20px"][vc_row_inner css=".vc_custom_1430831918656{margin-bottom: 0px !important;}"][vc_column_inner width="2/3" css=".vc_custom_1451896171736{margin-bottom: 0px !important;}"][news widget_title="' . esc_html__( 'Latest News', 'gauge' ) . '" meta_author="1" meta_date="1"][vc_empty_space height="40px"][/vc_column_inner][vc_column_inner width="1/3" css=".vc_custom_1451896176987{margin-bottom: 0px !important;}"][blog widget_title="' . esc_html__( 'User Favourites', 'gauge' ) . '" post_types="page" format="blog-columns-1" orderby="user_rating" per_page="5" image_width="237" image_height="154" image_alignment="image-above" title_position="title-over-thumbnail" excerpt_length="0" display_user_rating="1"][vc_empty_space height="20px"][/vc_column_inner][/vc_row_inner][/vc_column][vc_column width="1/3"][ranking widget_title="' . esc_html__( 'Top Games', 'gauge' ) . '" meta_hub_fields="1" display_site_rating="1"][vc_empty_space height="40px"][vc_raw_js]JTNDYSUyMGhyZWYlM0QlMjJodHRwJTNBJTJGJTJGdGhlbWVmb3Jlc3QubmV0JTJGaXRlbSUyRmdhdWdlLW11bHRpcHVycG9zZS1yZXZpZXctdGhlbWUlMkY4Njc2MDc5JTNGcmVmJTNER2hvc3RQb29sJTIyJTNFJTNDaW1nJTIwc3JjJTNEJTIyaHR0cCUzQSUyRiUyRmR1bW15aW1hZ2UuY29tJTJGMzcweDUxNCUyRmVlZSUyRjk5OS5qcGclMjZhbXAlM0J0ZXh0JTNEQWQlMjBTcGFjZSUyMiUyMGFsdCUzRCUyMkJ1eSUyMFRoaXMlMjBUaGVtZSUyMiUyMCUyRiUzRSUzQyUyRmElM0U=[/vc_raw_js][vc_empty_space height="40px"][/vc_column][/vc_row][vc_row css=".vc_custom_1451896088300{margin-bottom: 0px !important;}"][vc_column][featured widget_title="' . esc_html__( 'Featured', 'gauge' ) . '" meta_hub_cats="1" meta_hub_fields="1" display_site_rating="1" css=".vc_custom_1451896093670{margin-bottom: 0px !important;background-image: url(https://gauge.ghostpool.com/wp-content/uploads/photodune-3826839-black-girl-in-black-m.jpg?id=3529) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}" page_id="watch-dogs"][vc_empty_space height="40px"][news widget_title="' . esc_html__( 'Other News', 'gauge' ) . '" format="blog-columns-4" filter="enabled" filter_date="1" filter_title="1" filter_comment_count="1" filter_views="1" filter_date_posted="1" filter_date_modified="1" per_page="8" image_width="374" image_height="244" image_alignment="image-above" excerpt_length="150" meta_author="1" meta_date="1" read_more_link="disabled" see_all="enabled" see_all_link="category/news/"][vc_empty_space height="10px"][/vc_column][/vc_row][vc_row css=".vc_custom_1451896118145{margin-bottom: 0px !important;}"][vc_column width="1/3" css=".vc_custom_1451896348992{margin-bottom: 0px !important;}"][videos widget_title="' . esc_html__( 'Latest Videos', 'gauge' ) . '" meta_date="1" see_all="enabled" see_all_link="videos/video-games/"][vc_empty_space height="40px"][/vc_column][vc_column width="2/3" css=".vc_custom_1451896392878{margin-bottom: 0px !important;}"][blog widget_title="' . esc_html__( 'Most Commented', 'gauge' ) . '" post_types="page" format="blog-columns-3" orderby="comment_count" per_page="6" image_width="246" image_height="161" image_alignment="image-above" excerpt_length="0" meta_comment_count="1"][/vc_column][/vc_row]';
		array_unshift( $gp_data, $gp_template );
		return $gp_data;
	}
	add_filter( 'vc_load_default_templates', 'ghostpool_homepage_5_template' );
}

// Homepage 4
if ( ! function_exists( 'ghostpool_homepage_4_template' ) ) {
	function ghostpool_homepage_4_template( $gp_data ) {
		$gp_template = array();
		$gp_template['name'] = esc_html__( 'Homepage 4', 'gauge' );
		$gp_template['custom_class'] = 'gp_vc_homepage_4_template';
		$gp_template['content'] = '[vc_row css=".vc_custom_1451899798397{margin-bottom: 0px !important;}"][vc_column width="2/3" css=".vc_custom_1407852765886{margin-bottom: 0px !important;}"][news widget_title="' . esc_html__( 'Latest News', 'gauge' ) . '" per_page="20" image_width="220" image_height="130" excerpt_length="200" meta_author="1" meta_date="1" see_all="enabled"][vc_empty_space height="40px"][/vc_column][vc_column width="1/3"][ranking widget_title="' . esc_html__( 'Top Games', 'gauge' ) . '" meta_hub_fields="1" display_site_rating="1"][vc_empty_space height="40px"][vc_raw_js]JTNDaW1nJTIwc3JjJTNEJTIyaHR0cCUzQSUyRiUyRmR1bW15aW1hZ2UuY29tJTJGMzcweDc1MCUyRmVlZSUyRjk5OS5qcGclMjIlMjBhbHQlM0QlMjIlMjIlMjAlMkYlM0U=[/vc_raw_js][vc_empty_space height="40px"][/vc_column][/vc_row][vc_row][vc_column css=".vc_custom_1408373051330{margin: 30px 0px !important;}"][vc_separator][/vc_column][/vc_row][vc_row css=".vc_custom_1451899794759{margin-bottom: 0px !important;}"][vc_column width="1/3"][videos widget_title="' . esc_html__( 'Latest Videos', 'gauge' ) . '" meta_date="1" see_all="enabled"][vc_empty_space height="40px"][/vc_column][vc_column width="2/3"][blog widget_title="' . esc_html__( 'Most Commented', 'gauge' ) . '" post_types="page" format="blog-columns-3" orderby="comment_count" per_page="6" image_width="246" image_height="161" image_alignment="image-above" excerpt_length="0"][/vc_column][/vc_row]';
		array_unshift( $gp_data, $gp_template );
		return $gp_data;
	}
	add_filter( 'vc_load_default_templates', 'ghostpool_homepage_4_template' );
}

// Homepage 3
if ( ! function_exists( 'ghostpool_homepage_3_template' ) ) {
	function ghostpool_homepage_3_template( $gp_data ) {
		$gp_template = array();
		$gp_template['name'] = esc_html__( 'Homepage 3', 'gauge' );
		$gp_template['custom_class'] = 'gp_vc_homepage_3_template';
		$gp_template['content'] = '[vc_row full_width="stretch_row" css=".vc_custom_1451899500208{margin-bottom: 0px !important;}"][vc_column width="2/3" css=".vc_custom_1451899503664{margin-bottom: 0px !important;}"][vc_tta_tabs active_section="1" css=".vc_custom_1451899527020{margin-bottom: 0px !important;}"][vc_tta_section title="Latest" tab_id="1444656724903-5d3b5dbf-9bb8"][vc_empty_space height="20px"][news per_page="20" image_width="220" image_height="130" excerpt_length="200" meta_author="1" meta_date="1" meta_views="1" meta_comment_count="1"][vc_empty_space height="20px"][/vc_tta_section][vc_tta_section title="Most Commented" tab_id="1444656725075-fddf3751-30a6"][vc_empty_space height="20px"][news orderby="comment_count" per_page="20" image_width="220" image_height="130" excerpt_length="200" meta_author="1" meta_date="1" meta_views="1" meta_comment_count="1"][vc_empty_space height="20px"][/vc_tta_section][vc_tta_section title="Top Rated" tab_id="1444656741083-fd2d3a9f-eff9"][vc_empty_space height="20px"][blog post_types="page" orderby="site_rating" per_page="20" image_width="220" image_height="130" excerpt_length="0" meta_hub_cats="1" meta_hub_fields="1" display_site_rating="1" display_user_rating="1"][vc_empty_space height="20px"][/vc_tta_section][/vc_tta_tabs][vc_empty_space height="20px"][/vc_column][vc_column width="1/3"][news widget_title="' . esc_html__( 'Hot News', 'gauge' ) . '" size="blog-small-size" image_width="75" image_height="75" excerpt_length="30" meta_author="1" meta_date="1" read_more_link="disabled"][vc_empty_space height="40px"][featured image_width="330" image_height="215" image_alignment="image-above" excerpt_length="100" text_color="#ffffff" css=".vc_custom_1451899487421{margin-bottom: 0px !important;background-image: url(https://gauge.ghostpool.com/wp-content/uploads/photodune-2222515-zombie-aftermath-m.jpg?id=3501) !important;}" post_id="professionally-monetize-end"][vc_empty_space height="40px"][ranking per_page="3" meta_hub_fields="1" display_site_rating="1"][vc_empty_space height="40px"][/vc_column][/vc_row][vc_row full_width="stretch_row" css=".vc_custom_1451899555687{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 40px !important;padding-bottom: 20px !important;background-color: #f5f5f5 !important;}"][vc_column][blog widget_title="' . esc_html__( 'Hot Games', 'gauge' ) . '" post_types="page" format="blog-columns-3" orderby="site_rating" filter="enabled" filter_date="1" filter_title="1" filter_comment_count="1" filter_views="1" filter_followers="1" filter_site_rating="1" filter_user_rating="1" filter_hub_awards="1" filter_date_posted="1" filter_date_modified="1" per_page="6" image_width="767" image_height="500" image_alignment="image-above" title_position="title-over-thumbnail" display_site_rating="1" display_user_rating="1" see_all="enabled" see_all_link="hubs/hub-games/"][/vc_column][/vc_row]';
		array_unshift( $gp_data, $gp_template );
		return $gp_data;
	}
}
add_filter( 'vc_load_default_templates', 'ghostpool_homepage_3_template' );

// Homepage 2
if ( ! function_exists( 'ghostpool_homepage_2_template' ) ) {
	function ghostpool_homepage_2_template( $gp_data ) {
		$gp_template = array();
		$gp_template['name'] = esc_html__( 'Homepage 2', 'gauge' );
		$gp_template['custom_class'] = 'gp_vc_homepage_2_template';
		$gp_template['content'] = '[vc_row full_width="stretch_row" css=".vc_custom_1423675289855{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 60px !important;padding-bottom: 60px !important;}"][vc_column][blog widget_title="' . esc_html__( 'Latest Games', 'gauge' ) . '" post_types="page" format="blog-columns-3" filter="enabled" filter_cats="1" filter_date="1" filter_title="1" filter_comment_count="1" filter_views="1" filter_followers="1" filter_site_rating="1" filter_user_rating="1" filter_hub_awards="1" filter_date_posted="1" filter_date_modified="1" per_page="6" image_width="375" image_height="238" image_alignment="image-above" excerpt_length="150" meta_hub_cats="1" display_site_rating="1" display_user_rating="1" see_all="enabled" see_all_link="hubs/hub-games/"][/vc_column][/vc_row][vc_row full_width="stretch_row" css=".vc_custom_1423675301543{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 60px !important;padding-bottom: 60px !important;background-color: #222222 !important;}"][vc_column css=".vc_custom_1408712012234{margin-bottom: 0px !important;}"][featured widget_title="' . esc_html__( 'Featured', 'gauge' ) . '" meta_hub_cats="1" meta_hub_fields="1" display_site_rating="1" text_color="#ffffff" background_overlay="disabled" css=".vc_custom_1430742419682{background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}" page_id="watch-dogs"][/vc_column][/vc_row][vc_row full_width="stretch_row" css=".vc_custom_1423675325393{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 80px !important;padding-bottom: 80px !important;}"][vc_column][news widget_title="' . esc_html__( 'Other News', 'gauge' ) . '" format="blog-columns-4" per_page="8" image_width="365" image_height="238" image_alignment="image-above" excerpt_length="150" meta_author="1" meta_date="1" read_more_link="disabled"][/vc_column][/vc_row][vc_row full_width="stretch_row" css=".vc_custom_1423675342685{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 80px !important;padding-bottom: 80px !important;background-color: #222222 !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}"][vc_column width="2/3" css=".vc_custom_1411497368993{margin-bottom: 0px !important;}"][blog widget_title="' . esc_html__( 'Most Commented', 'gauge' ) . '" post_types="page" format="blog-columns-3" orderby="comment_count" filter="enabled" per_page="6" image_width="240" image_height="156" image_alignment="image-above" excerpt_length="0" meta_comment_count="1"][/vc_column][vc_column width="1/3"][videos widget_title="' . esc_html__( 'Latest Videos', 'gauge' ) . '" meta_date="1"][/vc_column][/vc_row]';
		array_unshift( $gp_data, $gp_template );
		return $gp_data;
	}
}
add_filter( 'vc_load_default_templates', 'ghostpool_homepage_2_template' );

// Homepage 1
if ( ! function_exists( 'ghostpool_homepage_1_template' ) ) {
	function ghostpool_homepage_1_template( $gp_data ) {
		$gp_template = array();
		$gp_template['name'] = esc_html__( 'Homepage 1', 'gauge' );
		$gp_template['custom_class'] = 'gp_vc_homepage_1_template';
		$gp_template['content'] = '[vc_row css=".vc_custom_1451896072874{margin-bottom: 0px !important;}"][vc_column width="2/3" css=".vc_custom_1430832266152{margin-bottom: 0px !important;}"][blog widget_title="' . esc_html__( 'Latest Games', 'gauge' ) . '" post_types="page" format="blog-columns-3" filter="enabled" filter_cats="1" filter_date="1" filter_title="1" filter_comment_count="1" filter_views="1" filter_followers="1" filter_site_rating="1" filter_user_rating="1" filter_hub_awards="1" filter_date_posted="1" per_page="6" image_width="246" image_height="161" image_alignment="image-above" title_position="title-over-thumbnail" excerpt_length="0" display_site_rating="1" see_all="enabled" see_all_link="hubs/hub-games/"][vc_empty_space height="20px"][vc_row_inner css=".vc_custom_1430831918656{margin-bottom: 0px !important;}"][vc_column_inner width="2/3" css=".vc_custom_1451896171736{margin-bottom: 0px !important;}"][news widget_title="' . esc_html__( 'Latest News', 'gauge' ) . '" meta_author="1" meta_date="1"][vc_empty_space height="40px"][/vc_column_inner][vc_column_inner width="1/3" css=".vc_custom_1451896176987{margin-bottom: 0px !important;}"][blog widget_title="' . esc_html__( 'User Favourites', 'gauge' ) . '" post_types="page" format="blog-columns-1" orderby="user_rating" per_page="5" image_width="237" image_height="154" image_alignment="image-above" title_position="title-over-thumbnail" excerpt_length="0" display_user_rating="1"][vc_empty_space height="20px"][/vc_column_inner][/vc_row_inner][/vc_column][vc_column width="1/3"][ranking widget_title="' . esc_html__( 'Top Games', 'gauge' ) . '" meta_hub_fields="1" display_site_rating="1"][vc_empty_space height="40px"][vc_raw_js]JTNDYSUyMGhyZWYlM0QlMjJodHRwJTNBJTJGJTJGdGhlbWVmb3Jlc3QubmV0JTJGaXRlbSUyRmdhdWdlLW11bHRpcHVycG9zZS1yZXZpZXctdGhlbWUlMkY4Njc2MDc5JTNGcmVmJTNER2hvc3RQb29sJTIyJTNFJTNDaW1nJTIwc3JjJTNEJTIyaHR0cCUzQSUyRiUyRmR1bW15aW1hZ2UuY29tJTJGMzcweDUxNCUyRmVlZSUyRjk5OS5qcGclMjZhbXAlM0J0ZXh0JTNEQWQlMjBTcGFjZSUyMiUyMGFsdCUzRCUyMkJ1eSUyMFRoaXMlMjBUaGVtZSUyMiUyMCUyRiUzRSUzQyUyRmElM0U=[/vc_raw_js][vc_empty_space height="40px"][/vc_column][/vc_row][vc_row css=".vc_custom_1451896088300{margin-bottom: 0px !important;}"][vc_column][featured widget_title="' . esc_html__( 'Featured', 'gauge' ) . '" meta_hub_cats="1" meta_hub_fields="1" display_site_rating="1" css=".vc_custom_1451896093670{margin-bottom: 0px !important;background-image: url(https://gauge.ghostpool.com/wp-content/uploads/photodune-3826839-black-girl-in-black-m.jpg?id=3529) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}" page_id="watch-dogs"][vc_empty_space height="40px"][news widget_title="' . esc_html__( 'Other News', 'gauge' ) . '" format="blog-columns-4" filter="enabled" filter_date="1" filter_title="1" filter_comment_count="1" filter_views="1" filter_date_posted="1" filter_date_modified="1" per_page="8" image_width="374" image_height="244" image_alignment="image-above" excerpt_length="150" meta_author="1" meta_date="1" read_more_link="disabled" see_all="enabled" see_all_link="category/news/"][vc_empty_space height="10px"][/vc_column][/vc_row][vc_row css=".vc_custom_1451896118145{margin-bottom: 0px !important;}"][vc_column width="1/3" css=".vc_custom_1451896348992{margin-bottom: 0px !important;}"][videos widget_title="' . esc_html__( 'Latest Videos', 'gauge' ) . '" meta_date="1" see_all="enabled" see_all_link="videos/video-games/"][vc_empty_space height="40px"][/vc_column][vc_column width="2/3" css=".vc_custom_1451896392878{margin-bottom: 0px !important;}"][blog widget_title="' . esc_html__( 'Most Commented', 'gauge' ) . '" post_types="page" format="blog-columns-3" orderby="comment_count" per_page="6" image_width="246" image_height="161" image_alignment="image-above" excerpt_length="0" meta_comment_count="1"][/vc_column][/vc_row]';
		array_unshift( $gp_data, $gp_template );
		return $gp_data;
	}
}	
add_filter( 'vc_load_default_templates', 'ghostpool_homepage_1_template' );

// Hub Page
if ( ! function_exists( 'ghostpool_hub_template' ) ) {
	function ghostpool_hub_template( $gp_data ) {
		$gp_template = array();
		$gp_template['name'] = esc_html__( 'Hub Page', 'gauge' );
		$gp_template['custom_class'] = 'gp_vc_hub_page_template';
		$gp_template['content'] = '[vc_row css=".vc_custom_1407855744612{margin-bottom: 0px !important;}"][vc_column width="7/12" css=".vc_custom_1407855616904{margin-bottom: 0px !important;}"][news widget_title="' . esc_html__( 'Latest News', 'gauge' ) . '" per_page="4" page_numbers="enabled" see_all="enabled"][vc_empty_space height="40px"][/vc_column][vc_column width="5/12"][vc_row_inner][vc_column_inner][images widget_title="' . esc_html__( 'Latest Images', 'gauge' ) . '" image_width="157" image_height="132" see_all="enabled"][/vc_column_inner][/vc_row_inner][vc_empty_space height="40px"][vc_row_inner css=".vc_custom_1407855701457{margin-bottom: 0px !important;}"][vc_column_inner][videos widget_title="' . esc_html__( 'Latest Videos', 'gauge' ) . '" meta_date="1" see_all="enabled"][/vc_column_inner][/vc_row_inner][/vc_column][/vc_row]';
		array_unshift( $gp_data, $gp_template );
		return $gp_data;
	}
}
add_filter( 'vc_load_default_templates', 'ghostpool_hub_template' );

?>