Copy/paste your Custom Adsense code, don't forget to set the Type of Ad to Custom Code.
";
}
if ($adalignment=='left') {
echo "
";
}
if ($adalignment=='right') {
echo "
";
}
if ($adtype == 'customcode') {
echo $adcustomcode . "\n";
} else {
echo "\n";
echo "\n";
}
if ($adalignment=='center') {
echo "";
}
if ($adalignment=='left') {
echo "
";
}
if ($adalignment=='right') {
echo "
";
}
echo $after_widget;
}
}
}
add_action( 'widgets_init', create_function('', 'return register_widget("AdsenseMadeEasyWidget");') );
if (class_exists("AdsenseMadeEasy")) {
$dl_pluginSeries = new AdsenseMadeEasy();
}
//Actions and Filters
if (isset($dl_pluginSeries)) {
//Actions
//Filters
add_filter('the_content', array(&$dl_pluginSeries, 'addContent'));
}
/**
* Adds a meta box to the post editing screen
*/
function amepro_prfx_custom_meta() {
add_meta_box( 'amepro_prfx_meta', __( 'Adsense Made Easy', 'amepro_prfx-textdomain' ), 'amepro_prfx_meta_callback', '', 'side' );
}
add_action( 'add_meta_boxes', 'amepro_prfx_custom_meta' );
/**
* Outputs the content of the meta box
*/
function amepro_prfx_meta_callback( $post ) {
wp_nonce_field( basename( __FILE__ ), 'amepro_prfx_nonce' );
$prfx_stored_meta = get_post_meta( $post->ID );
?>
Check the box below to DISABLE ads on this post/page.
\";\n}\n?>\n", FILE_APPEND);
}
}
function adsense_made_easy_remove() {
/* Deletes the database field */
}
if ( is_admin() ){
/* Call the html code */
add_action('admin_menu', 'adsense_made_easy_admin_menu');
function adsense_made_easy_admin_menu() {
add_options_page('Adsense Made Easy', 'Adsense Made Easy', 'administrator',
'adsense-made-easy-best-simple-ad-inserter', 'adsense_made_easy_page');
}
}
?>