ID)."&title=".get_the_title($post->ID)."\" target=\"_blank\">
"; break; case "both": $data=$data."ID)."&title=".get_the_title($post->ID)."\" target=\"_blank\"> ID)."&title=".get_the_title($post->ID)."\" target=\"_blank\">Share on digg
"; break; } return $data; } function activate_add_to_digg(){ global $post; $current_options = get_option('add_to_digg_options'); $insertiontype = $current_options['insertion_type']; if ($insertiontype != 'template'){ add_filter('the_content', 'add_to_digg', 10); add_filter('the_excerpt', 'add_to_digg', 10); } } activate_add_to_digg(); function addtodigg(){ global $post; $current_options = get_option('add_to_digg_options'); $insertiontype = $current_options['insertion_type']; if ($insertiontype != 'auto'){ $linktype = $current_options['link_type']; switch ($linktype) { case "text": echo "ID)."&title=".get_the_title($post->ID)."\" target=\"_blank\" title=\"Share on digg\">Share on digg
"; break; case "image": echo "ID)."&title=".get_the_title($post->ID)."\" target=\"_blank\">
"; break; case "both": echo "ID)."&title=".get_the_title($post->ID)."\" target=\"_blank\"> ID)."&title=".get_the_title($post->ID)."\" target=\"_blank\">Share on digg
"; break; } } } // Create the options page function add_to_digg_options_page() { $current_options = get_option('add_to_digg_options'); $link = $current_options["link_type"]; $insert = $current_options["insertion_type"]; if ($_POST['action']){ ?>Options saved.