<?php
$wppas_title = 'WP PRO ADVERTISING SYSTEM - All In One Ad Manager for Wordpress';
add_filter( 'show_admin_bar', '__return_false' );

$id = isset( $_GET['wppasbid'] ) && !empty( $_GET['wppasbid'] ) ? $_GET['wppasbid'] : 0;
$id = isset( $_GET['wppasaid'] ) && !empty( $_GET['wppasaid'] ) ? $_GET['wppasaid'] : $id; 
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->

<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php echo $wppas_title; ?></title>

<?php
if(function_exists('wp_head')) { wp_head(); }
?>
<style>
html{ margin-top:0 !important;}
body{ margin:0 !important; background-color:#FFF !important;}
</style>
</head>

<body id="wppas" <?php body_class(); ?>>

	<?php echo do_shortcode('[wpproads id="'.$id.'"]'); ?>
    <?php if(function_exists('wp_footer')) { wp_footer(); } ?>
</body>
</html>