Source for file data.adsense.php
Documentation is available at data.adsense.php
* @subpackage plugins_data
// +----------------------------------------------------------------------+
// | Copyright (c) 2004, bitweaver.org
// +----------------------------------------------------------------------+
// | All Rights Reserved. See below for details and a complete list of authors.
// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
// | For comments, please use phpdocu.sourceforge.net documentation standards!!!
// | -> see http://phpdocu.sourceforge.net/
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
define( 'PLUGIN_GUID_DATAADSENSE', 'dataadsense' );
'auto_activate' => FALSE,
'requires_pair' => FALSE,
'load_function' => 'data_adsense',
'help_page' => 'DataPluginAdsense',
'description' => tra("This plugin adds Adsense Code to page."),
'help_function' => 'data_adsense_help',
return 'NO HELP WRITTEN FOR {ADSENSE} YET. You can set: client, width, height, format, type and channel.';
$width = ( !empty( $width ) ? $width : "728" );
$height = ( !empty( $height ) ? $height : "90" );
$client = ( !empty( $client ) ? $client : "pub-xxxxxxxxxxxxxxxx" );
$format = ( !empty( $format ) ? $format : "728x90_as" );
$type = ( !empty( $type ) ? $type : "text_image" );
$channel = ( !empty( $channel ) ? $channel : "" );
return "<!--~np~--><script type=\"text/javascript\">/* <![CDATA[ */
google_ad_width = $width;
google_ad_height = $height;
google_ad_client = \"$client\";
google_ad_format = \"$format\";
google_ad_type = \"$type\";
google_ad_channel = \"$channel\";
<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script><!--~/np~-->";
|