';
switch( $_GET[ 'action' ] ) {
//---------------------------------------------------//
default:
?>
Advertisement Magament - Below you can type in your adcodes.
Below you can type in your adcodes. Read the description next to the boxes for information on where the ads actually appear in your blog.
I like money
window.location='options-general.php?page=Advertising_page&updated=true&updatedmsg=" . urlencode('Settings saved.') . "';
";
break;
//---------------------------------------------------//
case "temp":
break;
//---------------------------------------------------//
}
echo '';
}
function advertising($data){
$advertising_home = stripslashes( get_site_option('Advertising_front_page') );
$advertising_single_top = stripslashes( get_site_option('Advertising_single_top') );
$advertising_single_bottom = stripslashes( get_site_option('Advertising_single_bottom') );
$advertising_page_top = stripslashes( get_site_option('Advertising_page_top') );
$advertising_page_bottom = stripslashes( get_site_option('Advertising_page_bottom') );
if (is_single()) {
return $advertising_single_top . $data . $advertising_single_bottom ;
} else if (is_home()) {
return $advertising_home . $data ;
} else if (is_page()) {
return $advertising_page_top . $data . $advertising_page_bottom ;
} else {
return $data ;
}
}
add_filter('the_content', 'advertising');
function adbelowfooter() {
$belowfooteradvertisement = stripslashes( get_site_option('Advertising_below_footer') );
echo $belowfooteradvertisement;
}
add_action('wp_footer', 'adbelowfooter');
function adbelowcommentbox() {
$belowcommentboxadvertisement = stripslashes( get_site_option('Advertising_below_commentbox') );
echo $belowcommentboxadvertisement;
}
add_action('comment_form', 'adbelowcommentbox');
function blogs_top() {
$blogs_top_advertisement = stripslashes( get_site_option('Advertising_blog_top') );
echo $blogs_top_advertisement;
}
add_action('get_header', 'blogs_top');
?>