";
//wp_register_script('add-smart-app-banner', WP_PLUGIN_URL.'/smart-app-banner.js');
}
function asab_enqueue_style(){
wp_enqueue_style( 'asab_style', plugins_url( '/smart-app-banner.css', __FILE__ ), false );
//wp_enqueue_style( 'core', 'smart-app-banner.css', false );
}
// This tells WordPress to call the function named "setup_theme_admin_menus"
// when it's time to create the menu pages.
add_action("admin_menu", "asab_setup_theme_plugin_menus");
function asab_page_settings() {
//require("themesoptions.php");
//echo " i am gere";
require("sab-options.php");
}
$sabarray['appleid'] = get_option('sab_appleid');
$sabarray['playid'] = get_option('sab_playid');
$sabarray['msid'] = get_option('sab_msid');
$sabarray['msname'] = get_option('sab_msname');
$sabarray['dayshidden'] = get_option('sab_dayshidden');
$sabarray['daysreminder'] = get_option('sab_daysreminder');
$sabarray['title'] = get_option('sab_title');
$sabarray['author'] = get_option('sab_author');
$sabarray['button'] = get_option('sab_button');
$sabarray['iosprice'] = get_option('sab_iosprice');
$sabarray['playprice'] = get_option('sab_playprice');
$sabarray['msprice'] = get_option('sab_msprice');
$sabarray['image'] = get_option('sab_image');
if($sabarray['msprice']==''){
$sabarray['msprice']='Free';
}
if($sabarray['playprice']==''){
$sabarray['playprice']='Free';
}
if($sabarray['iosprice']==''){
$sabarray['iosprice']='Free';
}
if($sabarray['dayshidden']==''){
$sabarray['dayshidden']=15;
}
if($sabarray['daysreminder']==''){
$sabarray['daysreminder']=20;
}
if($sabarray['button']==''){
$sabarray['button']='View';
}
function asab_addhead(){
global $sabarray;
echo ''."\t\n";
if($sabarray['appleid']){
echo ''."\t\n";
}
if($sabarray['playid']){
echo ''."\t\n";
}
if($sabarray['msid']){
echo '
'."\t\n";
}
if($sabarray['image']){
echo ''."\t\n";
echo ''."\t\n";
}
echo ''."\t\n";
}
function asab_footerscript(){
global $sabarray;
echo "";
}
add_action( 'wp_enqueue_scripts', 'asab_enqueue_style' );
add_action( 'wp_enqueue_scripts', 'asab_script' );
add_action('wp_head','asab_addhead');
add_action('wp_footer','asab_footerscript');