| 1 |
<?php |
<?php |
| 2 |
// $Id: atom.module,v 1.16.2.5 2007/03/01 03:48:41 deekayen Exp $ |
// $Id: atom.module,v 1.16.2.6 2007/12/05 14:59:31 deekayen Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_help |
* Implementation of hook_help |
| 88 |
$feed_info['title'] = strip_tags(variable_get('site_name', 'Drupal')); |
$feed_info['title'] = strip_tags(variable_get('site_name', 'Drupal')); |
| 89 |
$feed_info['subtitle'] = strip_tags(variable_get('site_slogan', '')); |
$feed_info['subtitle'] = strip_tags(variable_get('site_slogan', '')); |
| 90 |
$feed_info['html_url'] = $base_url; |
$feed_info['html_url'] = $base_url; |
| 91 |
$feed_info['atom_url'] = url('atom/feed', NULL, NULL, true); |
$feed_info['atom_url'] = url('atom/feed', NULL, NULL, TRUE); |
| 92 |
_atom_print_feed($nodes, $feed_info); |
_atom_print_feed($nodes, $feed_info); |
| 93 |
} |
} |
| 94 |
|
|
| 101 |
$feed_info = array(); |
$feed_info = array(); |
| 102 |
$feed_info['title'] = strip_tags(sprintf(t('%s blogs'), variable_get('site_name', 'Drupal'))); |
$feed_info['title'] = strip_tags(sprintf(t('%s blogs'), variable_get('site_name', 'Drupal'))); |
| 103 |
$feed_info['subtitle'] = strip_tags(variable_get('site_slogan', '')); |
$feed_info['subtitle'] = strip_tags(variable_get('site_slogan', '')); |
| 104 |
$feed_info['html_url'] = url('blog', NULL, NULL, true); |
$feed_info['html_url'] = url('blog', NULL, NULL, TRUE); |
| 105 |
$feed_info['atom_url'] = url('blog/atom/feed', NULL, NULL, true); |
$feed_info['atom_url'] = url('blog/atom/feed', NULL, NULL, TRUE); |
| 106 |
_atom_print_feed($nodes, $feed_info); |
_atom_print_feed($nodes, $feed_info); |
| 107 |
} |
} |
| 108 |
|
|
| 119 |
|
|
| 120 |
$feed_info = array(); |
$feed_info = array(); |
| 121 |
$feed_info['title'] = sprintf(t("%s's blog"), $user); |
$feed_info['title'] = sprintf(t("%s's blog"), $user); |
| 122 |
$feed_info['html_url'] = url('blog/'. arg(1), NULL, NULL, true); |
$feed_info['html_url'] = url('blog/'. arg(1), NULL, NULL, TRUE); |
| 123 |
$feed_info['atom_url'] = url('blog/'. arg(1) .'/atom/feed', NULL, NULL, true); |
$feed_info['atom_url'] = url('blog/'. arg(1) .'/atom/feed', NULL, NULL, TRUE); |
| 124 |
_atom_print_feed($nodes, $feed_info); |
_atom_print_feed($nodes, $feed_info); |
| 125 |
} |
} |
| 126 |
|
|
| 139 |
continue; |
continue; |
| 140 |
} |
} |
| 141 |
|
|
| 142 |
$link = url("node/$node->nid", NULL, NULL, true); |
$link = url("node/$node->nid", NULL, NULL, TRUE); |
| 143 |
|
|
| 144 |
if (node_hook($item, 'view')) { |
if (node_hook($item, 'view')) { |
| 145 |
node_invoke($item, 'view', TRUE, FALSE); |
node_invoke($item, 'view', TRUE, FALSE); |
| 149 |
} |
} |
| 150 |
|
|
| 151 |
// Allow modules to change $node->teaser before viewing. |
// Allow modules to change $node->teaser before viewing. |
| 152 |
node_invoke_nodeapi($item, 'view', true, false); |
node_invoke_nodeapi($item, 'rss item', TRUE, FALSE); |
| 153 |
|
|
| 154 |
$output .= " <entry>\n"; |
$output .= " <entry>\n"; |
| 155 |
$output .= ' <title>'. check_plain(strip_tags($item->title)) ."</title>\n"; |
$output .= ' <title>'. check_plain(strip_tags($item->title)) ."</title>\n"; |