Please update!'; if (version_compare($wp_version,"2.8","<")) { exit ($exit_msg); } function plus1_button_menu() { add_options_page(__('+1 Button Settings'), __('Google +1 Button Plugin'), 'manage_options', 'plus1_button', 'plus1_button_options'); } function plus1_button_options() { ?>

>
>
>
>

>
>

 

Best adsense plugin for wordpress.
Adsense Float Give it a try

' . __('Google +1 Button Settings Saved') . ''; } function plus1_button_button( $url='', $size='', $css='' ) { if ( !$url ) $url = get_permalink(); if ( !$url ) return; if ( $css ) $tag = '
#plus1_button_option_form h2 { clear: both; } #plus1_button_option_form .plus1_button_button { margin: 8px; } '; } add_action('admin_head', 'plus1_button_admin_css'); add_filter('the_content', 'plus1_button'); add_action('admin_menu', 'plus1_button_menu'); add_action('init', 'plus1_button_init'); function plus1_button_add_meta_box() { if ( get_option( 'plus1-button-show-on-post', true ) ) add_meta_box( 'plus1_button_meta', __('Google +1 Settings'), 'plus1_button_meta_box_content', 'post', 'advanced', 'high' ); if ( get_option( 'plus1-button-show-on-page', false ) ) add_meta_box( 'plus1_button_meta', __('Google +1 Settings'), 'plus1_button_meta_box_content', 'page', 'advanced', 'high' ); } function plus1_button_meta_box_content( $post ) { $plus1_button_checked = get_post_meta( $post->ID, 'plus1_button_disabled', false ); if ( empty( $plus1_button_checked ) || $plus1_button_checked === false ) $plus1_button_checked = ' checked="checked"'; else $plus1_button_checked = ''; echo '

'; } function plus1_button_meta_box_save( $post_id ) { if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id; // Record plus1_button disable if ( 'post' == $_POST['post_type'] || 'page' == $_POST['post_type'] ) { if ( current_user_can( 'edit_post', $post_id ) ) { if ( isset( $_POST['plus1_button_status_hidden'] ) ) { if ( !isset( $_POST['enable_post_plus1_button'] ) ) update_post_meta( $post_id, 'plus1_button_disabled', 1 ); else delete_post_meta( $post_id, 'plus1_button_disabled' ); } } } return $post_id; } function plus1_button_plugin_settings( $links ) { $settings_link = ''.__('Settings').''; array_unshift( $links, $settings_link ); return $links; } function plus1_button_add_plugin_settings($links, $file) { if ( $file == basename( dirname( __FILE__ ) ).'/'.basename( __FILE__ ) ) { $links[] = '' . __('Settings') . ''; $links[] = '' . __('Support') . ''; } return $links; } add_action( 'admin_init', 'plus1_button_add_meta_box' ); add_action( 'save_post', 'plus1_button_meta_box_save' ); add_action( 'plugin_action_links_'.basename( dirname( __FILE__ ) ).'/'.basename( __FILE__ ), 'plus1_button_plugin_settings', 10, 4 ); add_filter( 'plugin_row_meta', 'plus1_button_add_plugin_settings', 10, 2 ); ?>