'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['color-border']=strip_tags(stripslashes($_POST['adsensem-color-border'])); $this->p['color-title']=strip_tags(stripslashes($_POST['adsensem-color-title'])); $this->p['color-bg']=strip_tags(stripslashes($_POST['adsensem-color-bg'])); $this->p['color-text']=strip_tags(stripslashes($_POST['adsensem-color-text'])); $this->p['color-link']=strip_tags(stripslashes($_POST['adsensem-color-link'])); $this->p['uistyle']=strip_tags(stripslashes($_POST['adsensem-uistyle'])); $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_formats_available(){ $formats['horizontal']=array('728x15' => '728 x 15', '468x15' => '468 x 15'); $formats['square']=array('200x90' => '200 x 90', '180x90' => '180 x 90', '160x90' => '160 x 90', '120x90' => '120 x 90'); return $formats; } function _var_ad_types_available(){ return array('_0ads_al' => '4 Ads Per Unit', '_0ads_al_s' => '5 Ads Per Unit'); } function can_benice(){return false;} //Middle function admin_manage_column2(){ //adsensem_admin::manage_dbxoutput(array('product')); adsensem_admin::manage_dbxoutput(array('ad_format')); adsensem_admin::manage_dbxoutput(array('colors','styles')); } } ?>