Add: possibility to add google adsense in demo mode
This commit is contained in:
parent
f6d86611c4
commit
80bad999bb
@ -258,5 +258,23 @@ print '</form>';
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
// Google Adsense (ex: demo mode)
|
||||||
|
if (! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN_GOOGLE_AD_SLOT))
|
||||||
|
{
|
||||||
|
print '<div align="center">'."\n";
|
||||||
|
print '<script type="text/javascript"><!--'."\n";
|
||||||
|
print 'google_ad_client = "'.$conf->global->MAIN_GOOGLE_AD_CLIENT.'";'."\n";
|
||||||
|
print '/* '.$conf->global->MAIN_GOOGLE_AD_WIDTH.'x'.$conf->global->MAIN_GOOGLE_AD_HEIGHT.', '.$conf->global->MAIN_GOOGLE_AD_NAME.' */'."\n";
|
||||||
|
print 'google_ad_slot = "'.$conf->global->MAIN_GOOGLE_AD_SLOT.'";'."\n";
|
||||||
|
print 'google_ad_width = '.$conf->global->MAIN_GOOGLE_AD_WIDTH.';'."\n";
|
||||||
|
print 'google_ad_height = '.$conf->global->MAIN_GOOGLE_AD_HEIGHT.';'."\n";
|
||||||
|
print '//-->'."\n";
|
||||||
|
print '</script>'."\n";
|
||||||
|
print '<script type="text/javascript"'."\n";
|
||||||
|
print 'src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'."\n";
|
||||||
|
print '</script>'."\n";
|
||||||
|
print '</div>'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooter('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user