"; return $data; } function activate_plusone(){ global $post; $current_options = get_option('plusone_options'); $insertiontype = $current_options['insertion_type']; if ($insertiontype !== 'template'){ add_filter('the_content', 'plusone', 10); add_filter('the_excerpt', 'plusone', 10); } } activate_plusone(); function footer() { echo ''; } add_action('wp_footer', 'footer'); function plusone_template(){ global $post; $current_options = get_option('plusone'); $insertiontype = $current_options['insertion_type']; $pagetype = $current_options["page_type"]; if ($insertiontype !== 'auto'){ echo plusone(); } } // Create the options page function plusone_options_page() { $current_options = get_option('plusone_options'); $insert = $current_options["insertion_type"]; $pagetype = $current_options["page_type"]; if ($_POST['action']){ ?>

Options saved.

+1 for Wordpress Options

Options: