'; // header echo "

" . __( 'Adsense Me Plugin Options', 'mt_trans_domain' ) . "

"; // options form $change4 = get_option("mt_ads_plugin_support"); if ($change4=="Yes" || $change4=="") { $change4="checked"; $change41=""; } else { $change4=""; $change41="checked"; } ?>
How to use this plugin
There are 6 different possible ads you can display using this plugin. Simply enter the HTML code which will display the advertisements. For the first 3 ads, you will then have to either enable the widgets in your admin panel (Appearance-->Widgets) or you could enter the tag we've shown below into the HTML view of any post or page to insert it.

Widget Ad 1 - Tag: [adsense_me_1]



Widget Ad 2 - Tag: [adsense_me_2]



Widget Ad 3 - Tag: [adsense_me_3]



Widget Ad 4 - Tag: [adsense_me_4]



Ad Above Posts



Ad Below Posts


>Yes >No



" . $ads_code_1 . "

"; if ($supportplugin=="" || $supportplugin=="Yes") { if (has_action('ads_footer_plugin_support')) { add_action('wp_footer', 'ads_footer_plugin_support'); } } } function show_ads_2() { $ads_code_2 = get_option("mt_ads_code_2"); $ads_code_2 = stripslashes($ads_code_2); $supportplugin = get_option("mt_ads_plugin_support"); echo "

" . $ads_code_2 . "

"; if ($supportplugin=="" || $supportplugin=="Yes") { if (has_action('ads_footer_plugin_support')) { add_action('wp_footer', 'ads_footer_plugin_support'); } } } function show_ads_3() { $ads_code_3 = get_option("mt_ads_code_3"); $ads_code_3 = stripslashes($ads_code_3); $supportplugin = get_option("mt_ads_plugin_support"); echo "

" . $ads_code_3 . "

"; if ($supportplugin=="" || $supportplugin=="Yes") { if (has_action('ads_footer_plugin_support')) { add_action('wp_footer', 'ads_footer_plugin_support'); } } } function show_ads_4() { $ads_code_4 = get_option("mt_ads_code_6"); $ads_code_4 = stripslashes($ads_code_4); $supportplugin = get_option("mt_ads_plugin_support"); echo "

" . $ads_code_4 . "

"; if ($supportplugin=="" || $supportplugin=="Yes") { if (has_action('ads_footer_plugin_support')) { add_action('wp_footer', 'ads_footer_plugin_support'); } } } function init_ads_widget() { register_sidebar_widget("Adsense Me - Ad 1", "show_ads_1"); register_sidebar_widget("Adsense Me - Ad 2", "show_ads_2"); register_sidebar_widget("Adsense Me - Ad 3", "show_ads_3"); register_sidebar_widget("Adsense Me - Ad 4", "show_ads_4"); } function show_ads_content($content) { $adcode=get_option("mt_ads_code_content"); $adcode = stripslashes($adcode); $supportplugin = get_option("mt_ads_plugin_support"); global $single, $feed, $post; if (!$feed && $single) { $content = $adcode . "

" . $content . "

"; } if ($supportplugin=="" || $supportplugin=="Yes") { add_action('wp_footer', 'ads_footer_plugin_support'); } return $content; } function show_ads_content2($content) { $adcode=get_option("mt_ads_code_content2"); $adcode = stripslashes($adcode); $supportplugin = get_option("mt_ads_plugin_support"); global $single, $feed, $post; if (!$feed && $single) { $content = $content . "

" . $adcode . "

"; } if ($supportplugin=="" || $supportplugin=="Yes") { add_action('wp_footer', 'ads_footer_plugin_support'); } return $content; } function ads_footer_plugin_support() { echo '

Ad Plugin made by Free Wordpress Themes

'; } add_action("plugins_loaded", "init_ads_widget"); add_shortcode('adsense_me_1', 'show_ads_1'); add_shortcode('adsense_me_2', 'show_ads_2'); add_shortcode('adsense_me_3', 'show_ads_3'); add_shortcode('adsense_me_4', 'show_ads_4'); ?>