function wp125_stylesheet() { if (get_option("wp125_disable_default_style") == '') { wp_register_style('wp125style', wp125_get_plugin_dir('url') . '/wp125.css'); wp_enqueue_style('wp125style'); } }
function wp125_stylesheet() { if (get_option("wp125_disable_default_style") == '') { echo '<link rel="stylesheet" href="' . wp125_get_plugin_dir('url') . '/wp125.css" type="text/css" media="screen" />' . "\n"; } else { return; } }
function wp125_admin_page_footer() { echo '<div style="margin-top:45px; font-size:0.87em;">'; echo '<div style="float:right;"><a href="http://www.webmaster-source.com/static/donate_plugin.php?plugin=wp125&KeepThis=true&TB_iframe=true&height=250&width=550" class="thickbox" title="Donate"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" alt="Donate" /></a></div>'; echo '<div><a href="'.wp125_get_plugin_dir('url').'/readme.txt?KeepThis=true&TB_iframe=true&height=450&width=680" class="thickbox" title="Documentation">'.__('Documentation', 'wp125').'</a> | <a href="http://www.webmaster-source.com/wp125-ad-plugin-wordpress/">'.__('WP125 Homepage', 'wp125').'</a></div>'; echo '</div>'; }
add_option("wp125_ad_orientation", "2c"); add_option("wp125_num_slots", "6"); add_option("wp125_ad_order", "normal"); add_option("wp125_buyad_url", ""); add_option("wp125_disable_default_style", ""); add_option("wp125_widget_title", "Ads"); add_option("wp125_dofollow", ""); add_option("wp125_emailonexp", get_option('admin_email')); add_option("wp125_daysbeforeexp", "3"); add_option("wp125_defaultad", wp125_get_plugin_dir('url') . "/youradhere.jpg"); add_option("wp125_db_version", $wp125_db_version); } //***Upgrader*** $installed_ver = get_option("wp125_db_version"); if ($installed_ver != $wp125_db_version) { dbDelta($sql); $sql = "CREATE TABLE " . $table_name . " (\n\t id int(12) NOT NULL auto_increment,\n\t slot int(2) NOT NULL,\n\t name text NOT NULL,\n\t clicks int(7) NOT NULL,\n\t start_date varchar(12) NOT NULL,\n\t end_date varchar(12) NOT NULL,\n\t status int(1) NOT NULL,\n\t target text NOT NULL,\n\t image_url text NOT NULL,\n\t pre_exp_email int(1) NOT NULL,\n\t PRIMARY KEY (id)\n\t);"; dbDelta($sql); add_option("wp125_ad_orientation", "2c"); add_option("wp125_num_slots", "6"); add_option("wp125_ad_order", "normal"); add_option("wp125_buyad_url", ""); add_option("wp125_disable_default_style", ""); add_option("wp125_widget_title", "Ads"); add_option("wp125_dofollow", ""); add_option("wp125_emailonexp", get_option('admin_email')); add_option("wp125_daysbeforeexp", "3"); add_option("wp125_defaultad", wp125_get_plugin_dir('url') . "/youradhere.jpg"); update_option("wp125_db_version", $wp125_db_version); } //***** End Installer *****