'; if ( get_option( $option_name ) !== false ) { update_option( $option_name, $new_value ); } else { $deprecated = null; $autoload = 'no'; add_option( $option_name, $new_value, $deprecated, $autoload ); } } static function uninstall(){ delete_option( 'AdLugeVT_script'); delete_option( 'AdLugeVT_pages'); } static function deact(){ update_option( 'AdLugeVT_script', '' ); update_option( 'AdLugeVT_pages', '' ); } function admin_menu() { $hook = add_menu_page('Visitor Tracker','Visitor Tracker','manage_options',__FILE__, array( &$this, 'options_panel' ),AdLugeVT_PLUGIN_URL.'/img/favicon.ico'); } function wp_footer() { if ( !is_admin() && !is_feed() && !is_robots() && !is_trackback() ) { $comment_starts = " "; $comment_ends = ""; $text = get_option( 'AdLugeVT_script', '' ); $text = convert_smilies( $text ); $text = do_shortcode( $text ); $page_list = get_option( 'AdLugeVT_pages'); $text = $comment_starts."\n".$text."\n".$comment_ends."\n"; if($page_list=='' ) { echo $text; } else { $pages = array_diff(get_all_page_ids(),explode(',',$page_list)); foreach($pages as $pages_on): if(is_page($pages_on)) { echo $text; } endforeach; if(!is_page()) echo $text; } } } function options_panel() { ?>
Settings saved successfully.