<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.2.5 - Nulled by Tempus @ vBulletin-Mods.com            # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2017 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| #        www.vbulletin.com | www.vbulletin.com/license.html        # ||
|| #################################################################### ||
\*======================================================================*/

function get_adsense_templates()
{
	#####################
	## LOW (text)
	#####################

	$ad_navbar_below_low_text = '<vb:if condition="$adsense_pub_id AND CONTENT_PAGE">
<div style="width:728px; margin:0 auto; padding-bottom:1em">
<script type="text/javascript"><!--
google_ad_client = "{vb:var adsense_pub_id}";
google_ad_host = "{vb:var adsense_host_id}";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
google_ad_channel = "";
google_color_border = "{vb:stylevar page_bgcolor_hex}";
google_color_bg = "{vb:stylevar page_bgcolor_hex}";
google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}";
google_color_text = "{vb:stylevar body_fgcolor_hex}";
google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript"
  src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</vb:if>';

	$ad_footer_start_low_text = '<vb:if condition="$adsense_pub_id AND CONTENT_PAGE">
<div class="google_adsense_footer" style="width:468px; margin:0 auto; padding-top:1em">
<script type="text/javascript"><!--
google_ad_client = "{vb:var adsense_pub_id}";
google_ad_host = "{vb:var adsense_host_id}";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "{vb:stylevar page_bgcolor_hex}";
google_color_bg = "{vb:stylevar page_bgcolor_hex}";
google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}";
google_color_text = "{vb:stylevar body_fgcolor_hex}";
google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript"
  src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</vb:if>';

	#####################
	## HIGH (text)
	#####################

	$ad_footer_start_high_text = '<vb:if condition="$adsense_pub_id AND CONTENT_PAGE">
<div class="google_adsense_footer" style="width:728px; margin:0 auto; padding-top:1em">
<script type="text/javascript"><!--
google_ad_client = "{vb:var adsense_pub_id}";
google_ad_host = "{vb:var adsense_host_id}";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "{vb:stylevar page_bgcolor_hex}";
google_color_bg = "{vb:stylevar page_bgcolor_hex}";
google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}";
google_color_text = "{vb:stylevar body_fgcolor_hex}";
google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript"
  src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</vb:if>';


	$ad_navbar_below_high_text = '<vb:if condition="$adsense_pub_id AND CONTENT_PAGE">
<div style="width:728px; margin:0 auto; padding-bottom:1em">
<script type="text/javascript"><!--
google_ad_client = "{vb:var adsense_pub_id}";
google_ad_host = "{vb:var adsense_host_id}";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "{vb:stylevar alt2_bgcolor_hex}";
google_color_bg = "{vb:stylevar alt1_bgcolor_hex}";
google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}";
google_color_text = "{vb:stylevar body_fgcolor_hex}";
google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript"
  src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</vb:if>';

	$ad_showthread_firstpost_start_high_text = '<vb:if condition="$adsense_pub_id AND CONTENT_PAGE">
<vb:if condition="!$bbuserinfo[\'userid\']">
<div style="float:right; width:300px; height:250px; margin-left:10px">
<script type="text/javascript"><!--
google_ad_client = "{vb:var adsense_pub_id}";
google_ad_host = "{vb:var adsense_host_id}";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "{vb:stylevar alt1_bgcolor_hex}";
google_color_bg = "{vb:stylevar alt2_bgcolor_hex}";
google_color_link = "{vb:stylevar body_link_n_fgcolor_hex}";
google_color_text = "{vb:stylevar body_fgcolor_hex}";
google_color_url = "{vb:stylevar body_link_n_fgcolor_hex}";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript"
  src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</vb:if>
</vb:if>';


	// ######################## THE ARRAY ###########################

	$ad_showthread_firstpost_sig = '<vb:if condition="$adsense_pub_id AND CONTENT_PAGE">
<vb:if condition="!$bbuserinfo[\'userid\']">
<div style="clear:both"></div>
</vb:if>
</vb:if>';

	return array(
		'low-text' => array(
			'ad_navbar_below' => $ad_navbar_below_low_text,
			'ad_showthread_firstpost_start' => '',
			'ad_showthread_firstpost_sig' => '',
			'ad_footer_start' => $ad_footer_start_low_text,
		),
		'low-image' => array(
			'ad_navbar_below' => remove_adsense_text_only_limit($ad_navbar_below_low_text),
			'ad_showthread_firstpost_start' => '',
			'ad_showthread_firstpost_sig' => '',
			'ad_footer_start' => remove_adsense_text_only_limit($ad_footer_start_low_text),
		),

		'high-text' => array(
			'ad_navbar_below' => $ad_navbar_below_high_text,
			'ad_showthread_firstpost_start' => $ad_showthread_firstpost_start_high_text,
			'ad_showthread_firstpost_sig' => $ad_showthread_firstpost_sig,
			'ad_footer_start' => $ad_footer_start_high_text,
		),
		'high-image' => array(
			'ad_navbar_below' => remove_adsense_text_only_limit($ad_navbar_below_high_text),
			'ad_showthread_firstpost_start' => remove_adsense_text_only_limit($ad_showthread_firstpost_start_high_text),
			'ad_showthread_firstpost_sig' => $ad_showthread_firstpost_sig,
			'ad_footer_start' => remove_adsense_text_only_limit($ad_footer_start_high_text),
		),

		'remove' => array(
			'ad_navbar_below' => '',
			'ad_showthread_firstpost_start' => '',
			'ad_showthread_firstpost_sig' => '',
			'ad_footer_start' => '',
		),
	);
}

function remove_adsense_text_only_limit($adsense_string)
{
	return str_replace(
		'google_ad_type = "text";',
		'google_ad_type = "text_image";',
		$adsense_string
	);
}

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 00:00, Mon Jan 01th 1960 : $Revision: 92140 $
|| # $Date: 1960-01-01 00:00:00 -0000 (Mon, 01 Jan 1960) $
|| ####################################################################
\*======================================================================*/
