'AdSense Link Unit', 'shortname' => 'adl', 'display' => false, 'limit-ads' => 3 ); /* INITIALISATION All functions in here called at startup (after other plugins have loaded, in case we need to wait for the widget-plugin). */ class Ad_AdSense_Link extends Ad_AdSense_Classic { function Ad_AdSense_Link(){ $this->Ad_AdSense_Classic(); } function render_ad() { global $_adsensem; $code=''; $code .= '' . "\n"; $code.= '' . "\n"; return $code; } /* ADMIN Settings - Editing form for each Ad and defaults, reusable */ function admin_manage_form_network($name=false) { if($this->p['product']==''){$this->p['product']='ad';} if($name!==false){ ?> p['alternate-ad']=stripslashes($_POST['adsensem-alternate-ad']); $this->p['alternate-url']=stripslashes($_POST['adsensem-alternate-url']); $this->p['alternate-color']=stripslashes($_POST['adsensem-alternate-color']); $this->p['slot']='Link'; //$this->p['notes']='Link Unit'; } function reset_defaults_network() { global $_adsensem; $_adsensem['defaults'][$this->network()]+= array ( 'color-border'=> 'FFFFFF', 'color-title' => '0000FF', 'color-bg' => 'FFFFFF', 'color-text' => '000000', 'color-link' => '008000', 'channel' => '', 'uistyle' => '', 'slot' => '', 'adformat' => '250x250', 'adtype' => 'text_image', 'adformat' => '120x90', 'linktype' => '_0ads_al_s', 'html-before' => '', 'html-after' => '', ); } function import_detect_network($code){ return ( (strpos($code,'google_ad_client')!==false) && (strpos($code,'_0ads_al')!==false) && (strpos($code,'google_cpa_choice')===false) && //i.e. not a referral thing (strpos($code,'google_ad_slot')===false) //i.e. not using the new slot system ); } function _var_ad_types_available(){ return array('_0ads_al' => '4 Ads Per Unit', '_0ads_al_s' => '5 Ads Per Unit'); } } ?>