ID)."','BohemiaaShare','width=694,height=500');\" title=\"Share on Bohemiaa\">Share on Bohemiaa

"; break; case "image": $data=$data."

ID)."','BohemiaaShare','width=694,height=500');\" >\"Share

"; break; case "both": $data=$data."

ID)."','BohemiaaShare','width=694,height=500');\" >\"ShareID)."','BohemiaaShare','width=694,height=500');\" title=\"Share on bohemiaa\">Share on Bohemiaa

"; break; } return $data; } function activate_add_to_bohemiaa(){ global $post; $current_options = get_option('add_to_bohemiaa_options'); $insertiontype = $current_options['insertion_type']; if ($insertiontype != 'template'){ add_filter('the_content', 'add_to_bohemiaa', 10); add_filter('the_excerpt', 'add_to_bohemiaa', 10); } } activate_add_to_bohemiaa(); function addtobohemiaa(){ global $post; $current_options = get_option('add_to_bohemiaa_options'); $insertiontype = $current_options['insertion_type']; if ($insertiontype != 'auto'){ $linktype = $current_options['link_type']; switch ($linktype) { case "text": echo "

ID)."','BohemiaaShare','width=694,height=500');\" title=\"Share on Bohemiaa\">Share on Bohemiaa

"; break; case "image": echo "

ID)."','BohemiaaShare','width=694,height=500');\" >\"Share

"; break; case "both": echo "

ID)."\" >\"ShareID)."','BohemiaaShare','width=694,height=500');\" title=\"Share on Bohemiaa\">Share on Bohemiaa

"; break; } } } // Create the options page function add_to_bohemiaa_options_page() { $current_options = get_option('add_to_bohemiaa_options'); $link = $current_options["link_type"]; $insert = $current_options["insertion_type"]; if ($_POST['action']){ ?>

Options saved.

Add to Bohemiaa Options

">
Options: