"; $dbt_globals["functionDone"]=true; } } } if(!function_exists("dbt_getLinkTag")) { /** * Echos a link tag to bookmark the page * * @param string $text The text of the link and/or HTML * @param string $service Which bookmark service do you want to use. (digg,newsvine,furl,blinklist,delicious) * @param string $attr Additional attributes for the tag. * * @example dbt_getLinkTag(""); //Will create a link with an image * @example dbt_getLinkTag("Bookmark this",'style="color:blue;"'); //Will create a textlink in blue color */ function dbt_getLinkTag($text="Bookmark on del.icio.us",$service="delicious",$attr="") { dbt_addJavaScript(); echo "$text"; } } if(!function_exists("dbt_the_LinkTag")) { /** * Echos a link tag to bookmark the current post. Works only inside the loop * * @param string $text The text of the link and/or HTML * @param string $service Which bookmark service do you want to use. (digg,newsvine,furl,blinklist,delicious) * @param string $attr Additional attributes for the tag. * * @example dbt_the_LinkTag(""); //Will create a link with an image * @example dbt_the_LinkTag("Bookmark this",'style="color:blue;"'); //Will create a textlink in blue color */ function dbt_the_LinkTag($text="Bookmark on del.icio.us",$service="delicious",$attr="") { global $post; if($post && is_object($post) && $post->ID>0) { dbt_addJavaScript(); echo "ID) . "','$service');\" $attr>$text"; } } } //If enabled, write the JavaScript function into the head method. if($dbt_options["useHead"]===true && function_exists("add_action")) { add_action('wp_head', "dbt_addJavaScript"); } ?>