\n";
if (class_exists('WordPress_OpenID_OptionStore')) {
$q = "SELECT distinct url FROM wp_comments, wp_openid_identities WHERE wp_openid_identities.user_id=wp_comments.user_id AND comment_approved='1' ORDER BY url;";
$urls = $wpdb->get_results($q);
$blogurl = get_bloginfo('url'); // http://codex.wordpress.org/Function_Reference/get_bloginfo
$blogname = get_bloginfo('name');
$ret .= "Comment accept list for ".$blogurl."";
$ret .= "
\n";
foreach($urls as $openid) {
$o = $openid->url;
$s = "#!ah_" . sha1($o);
$ret .= "- " . $o . "
\n";
}
$ret .= "
\n";
}
$ret .= "\n\n";
return $ret;
}
/*
f2f_shortcode: Insert list of OpenIDs as RDFa in content (use: "[f2f]" in page or post content/text)
*/
if (function_exists('add_shortcode')) {
function f2f_shortcode($atts, $content=null) {
return '' . f2f_openid_list_rdfa() . '
';
}
add_shortcode( 'f2f', 'f2f_shortcode' );
}
// EOF