\n";
$output .= "\n";
switch ($feedflare) {
case 'comments':
if (isset($_GET['nid']) && is_numeric($_GET['nid'])) {
$node = node_load($_GET['nid']);
if (isset($node->comment) && $node->comment != COMMENT_NODE_DISABLED) {
$output .= "\n";
$output .= " ". format_plural($node->comment_count, '@count comment', '@count comments') ."\n";
$output .= " nid, array('fragment' => 'comments', 'absolute' => TRUE)) ."\" />\n";
$output .= "\n";
}
}
else {
$output .= "\n";
$output .= " \n";
$output .= " Drupal comment count\n";
$output .= " Returns the number of comments for a Drupal node\n";
$output .= " \n";
$output .= " Dave Reid\n";
$output .= " \n";
$output .= " TRUE, 'query' => "nid=\${fn:substring-before(a:id, ' ')}")) ."\" />\n";
$output .= "\n";
}
}
drupal_set_header('Content-Type: application/xml; charset=utf-8');
print $output;
}
/**
* Theme function for e-mail subscription block.
*
* @todo Convert to Form API?
*/
function theme_feedburner_block_email($feed) {
$output = '
';
return $output;
// $output = l(t('Subscribe by E-mail'), "http://feedburner.google.com/fb/a/mailverify?uri='. $feed .'&loc=en_US");
}
/**
* Theme function for feed count block.
*/
function theme_feedburner_block_feedcount($feed) {
$image = theme_image(_feedburner_construct_url('~fc/'. $feed .'?bg=99CCFF&fg=444444&anim=0'), '', '', array('width' => 88, 'height' => 26), FALSE);
return l($image, _feedburner_construct_url($feed), array('html' => TRUE));
}
/**
* Theme function for feed block.
*/
function theme_feedburner_block_feeds() {
module_load_include('inc', 'feedburner', 'feedburner.admin');
$items = array();
$query = db_query("SELECT path, feedburner FROM {feedburner}");
while ($feed = db_fetch_object($query)) {
$features = _feedburner_get_feed_features($feed->feedburner);
$items[] = theme('image', 'misc/feed.png') .' '. l(($features->title ? $features->title : $feed->path), _feedburner_construct_url($feed->feedburner));
}
return theme('item_list', $items);
}