Index: feedbuttons.module
===================================================================
--- feedbuttons.module (revision 76)
+++ feedbuttons.module (working copy)
@@ -24,6 +24,7 @@
* @returns block HTML
*/
function feedbuttons_block($op='list', $delta=0) {
+ global $base_url;
// listing of blocks, such as on the admin/block page
if ($op == "list") {
$block[0]["info"] = t("Subscribe Buttons");
@@ -43,33 +44,33 @@
$feedurl = variable_get('feedbuttons_feed_url', url('node/feed', NULL, NULL, TRUE));
if ($buttons = variable_get('feedbuttons_show_items', '')) {
foreach ($buttons as $button) {
- if ($button === 'feediconlg') { $block_content .= ' .'/buttons/feed-icon32x32.png)
'; }
- if ($button === 'feedicon') { $block_content .= ' .'/buttons/feed-icon.gif)
'; }
- if ($button === 'xml') { $block_content .= ' .'/buttons/xml.gif)
'; }
- if ($button === 'google') { $block_content .= ' .'/buttons/google-all.gif)
'; }
- if ($button === 'delicious') { $block_content .= ' .'/buttons/delicious.gif)
'; }
- if ($button === 'yahoo') { $block_content .= ' .'/buttons/yahoo.gif)
'; }
- if ($button === 'bloglines') { $block_content .= ' .'/buttons/bloglines.gif)
'; }
- if ($button === 'newsgator') { $block_content .= ' .'/buttons/newsgator.gif)
'; }
- if ($button === 'msn') { $block_content .= ' .'/buttons/msn.gif)
'; }
- if ($button === 'feedster') { $block_content .= ' .'/buttons/addmyfeedster.gif)
'; }
- if ($button === 'aol') { $block_content .= ' .'/buttons/aol.gif)
'; }
- if ($button === 'furl') { $block_content .= ' .'/buttons/furl.gif)
'; }
- if ($button === 'rojo') { $block_content .= ' .'/buttons/rojo.gif)
'; }
- if ($button === 'newsburst') { $block_content .= ' .'/buttons/newsburst.gif)
'; }
- if ($button === 'pluck') { $block_content .= ' .'/buttons/pluck.png)
'; }
- if ($button === 'feedfeeds') { $block_content .= ' .'/buttons/addfeedfeeds.gif)
'; }
- if ($button === 'addkinja') { $block_content .= ' .'/buttons/addkinja.gif)
'; }
- if ($button === 'solosub') { $block_content .= ' .'/buttons/solosub.gif)
'; }
- if ($button === 'multirss') { $block_content .= ' .'/buttons/multirss.gif)
'; }
- if ($button === 'rmail') { $block_content .= ' .'/buttons/rmail.jpg)
'; }
- if ($button === 'rssfwd') { $block_content .= ' .'/buttons/rssfwd.png)
'; }
- if ($button === 'blogarithm') { $block_content .= ' .'/buttons/blogarithm.gif)
'; }
- if ($button === 'eskobo') { $block_content .= ' .'/buttons/eskobo.gif)
'; }
- if ($button === 'gritwire') { $block_content .= ' .'/buttons/addToMyGritwire.gif)
'; }
- if ($button === 'botablog') { $block_content .= ' .'/buttons/botablog.gif)
'; }
- if ($button === 'monitorthis') { $block_content .= ' .'/buttons/monitor_this.png)
'; }
- if ($button === 'simplify') { $block_content .= ' .'/buttons/simpify-white-56x24.png)
'; }
+ if ($button === 'feediconlg') { $block_content .= ' .'/buttons/feed-icon32x32.png)
'; }
+ if ($button === 'feedicon') { $block_content .= ' .'/buttons/feed-icon.gif)
'; }
+ if ($button === 'xml') { $block_content .= ' .'/buttons/xml.gif)
'; }
+ if ($button === 'google') { $block_content .= ' .'/buttons/google-all.gif)
'; }
+ if ($button === 'delicious') { $block_content .= ' .'/buttons/delicious.gif)
'; }
+ if ($button === 'yahoo') { $block_content .= ' .'/buttons/yahoo.gif)
'; }
+ if ($button === 'bloglines') { $block_content .= ' .'/buttons/bloglines.gif)
'; }
+ if ($button === 'newsgator') { $block_content .= ' .'/buttons/newsgator.gif)
'; }
+ if ($button === 'msn') { $block_content .= ' .'/buttons/msn.gif)
'; }
+ if ($button === 'feedster') { $block_content .= ' .'/buttons/addmyfeedster.gif)
'; }
+ if ($button === 'aol') { $block_content .= ' .'/buttons/aol.gif)
'; }
+ if ($button === 'furl') { $block_content .= ' .'/buttons/furl.gif)
'; }
+ if ($button === 'rojo') { $block_content .= ' .'/buttons/rojo.gif)
'; }
+ if ($button === 'newsburst') { $block_content .= ' .'/buttons/newsburst.gif)
'; }
+ if ($button === 'pluck') { $block_content .= ' .'/buttons/pluck.png)
'; }
+ if ($button === 'feedfeeds') { $block_content .= ' .'/buttons/addfeedfeeds.gif)
'; }
+ if ($button === 'addkinja') { $block_content .= ' .'/buttons/addkinja.gif)
'; }
+ if ($button === 'solosub') { $block_content .= ' .'/buttons/solosub.gif)
'; }
+ if ($button === 'multirss') { $block_content .= ' .'/buttons/multirss.gif)
'; }
+ if ($button === 'rmail') { $block_content .= ' .'/buttons/rmail.jpg)
'; }
+ if ($button === 'rssfwd') { $block_content .= ' .'/buttons/rssfwd.png)
'; }
+ if ($button === 'blogarithm') { $block_content .= ' .'/buttons/blogarithm.gif)
'; }
+ if ($button === 'eskobo') { $block_content .= ' .'/buttons/eskobo.gif)
'; }
+ if ($button === 'gritwire') { $block_content .= ' .'/buttons/addToMyGritwire.gif)
'; }
+ if ($button === 'botablog') { $block_content .= ' .'/buttons/botablog.gif)
'; }
+ if ($button === 'monitorthis') { $block_content .= ' .'/buttons/monitor_this.png)
'; }
+ if ($button === 'simplify') { $block_content .= ' .'/buttons/simpify-white-56x24.png)
'; }
}
}
@@ -121,33 +122,33 @@
'#title' => t('Show the following buttons in my block'),
'#default_value' => variable_get('feedbuttons_show_items', array('status', 'promote')),
'#options' => array(
- 'feediconlg' => t('
'),
- 'feedicon' => t('
'),
- 'xml' => t('
'),
- 'google' => t('
'),
- 'delicious' => t('
'),
- 'yahoo' => t('
'),
- 'bloglines' => t('
'),
- 'newsgator' => t('
'),
- 'msn' => t('
'),
- 'feedster' => t('
'),
- 'aol' => t('
'),
- 'furl' => t('
'),
- 'rojo' => t('
'),
- 'newsburst' => t('
'),
- 'pluck' => t('
'),
- 'feedfeeds' => t('
'),
- 'addkinja' => t('
'),
- 'solosub' => t('
'),
- 'multirss' => t('
'),
- 'rmail' => t('
'),
- 'rssfwd' => t('
'),
- 'blogarithm' => t('
'),
- 'eskobo' => t('
'),
- 'gritwire' => t('
'),
- 'botablog' => t('
'),
- 'monitorthis' => t('
'),
- 'simplify' => t('
'),
+ 'feediconlg' => t('
'),
+ 'feedicon' => t('
'),
+ 'xml' => t('
'),
+ 'google' => t('
'),
+ 'delicious' => t('
'),
+ 'yahoo' => t('
'),
+ 'bloglines' => t('
'),
+ 'newsgator' => t('
'),
+ 'msn' => t('
'),
+ 'feedster' => t('
'),
+ 'aol' => t('
'),
+ 'furl' => t('
'),
+ 'rojo' => t('
'),
+ 'newsburst' => t('
'),
+ 'pluck' => t('
'),
+ 'feedfeeds' => t('
'),
+ 'addkinja' => t('
'),
+ 'solosub' => t('
'),
+ 'multirss' => t('
'),
+ 'rmail' => t('
'),
+ 'rssfwd' => t('
'),
+ 'blogarithm' => t('
'),
+ 'eskobo' => t('
'),
+ 'gritwire' => t('
'),
+ 'botablog' => t('
'),
+ 'monitorthis' => t('
'),
+ 'simplify' => t('
'),
),
);
return system_settings_form($form);