getOpts(); } function getOpts() { if (isset($this->opts) AND !empty($this->opts)) {return;} $this->opts=get_option("adsenseontop"); if (!isset($this->opts['vermar']) OR $this->opts['vermar']=="") $this->opts['vermar']="0"; if (!isset($this->opts['hormar']) OR $this->opts['hormar']=="") $this->opts['hormar']="0"; if (!empty($this->opts)) {return;} $this->opts=Array ( 'type' => 1, 'pos' => 'Top', 'bg' => 'trans', 'hormar' => 20, 'vermar' => 5 ) ; } function sanitize_entries($options){ return $options; } function admin_menu() { if (isset($_POST["adtop_submit"])) { $this->opts=$this->sanitize_entries($_POST['adtop'], $sizes); update_option('adsenseontop',$this->opts); echo '
'; } ?>
Adsense on Top V adtop_version; ?>
For further Information visit the Plugin Site
'); adopt($this->opts['type']); echo (''); } function add_style(){ global $adopt; $ao_opts=$adopt->opts; $bg=$ao_opts['col_bg'][$this->opts['type']]; echo ('
'); } function add_scripts() { wp_enqueue_script("jquery"); } } } if (!function_exists('adopt_installed')) { function adopt_installed($po=false) { global $adopt; $adopt_version=$adopt->adopt_version; if (!$adopt_version or $adopt_version=="") { if ($po) echo ('Attention ! You have to install the Adsense Optimizer Plugin to use Adsense on Top !!!
'); return false; } if (substr($adopt_version,0,1) < "2") { if ($po) echo ('Attention ! You have to install a newer Version of Adsense Optimizer Plugin to use Adsense on Top !!!
'); return false; } return true; } } $adtop = new adtop(); function adtop_menu() { global $adtop; if (function_exists('add_options_page')) { add_options_page('Adsense on Top', 'Adsense on Top', 'administrator', __FILE__, array(&$adtop, 'admin_menu')); } } add_action('admin_menu', 'adtop_menu'); add_action('wp_footer', array($adtop, 'add_js')); add_action('wp_head', array($adtop, 'add_style')); add_action('wp_enqueue_scripts', array($adtop, 'add_scripts')); ?>