'wide',
'icon' => 'true',
'timesSaved' => 'true',
'graph' => 'true',
'tags' => 'true'
);
For (:deliciousbadge:)
Users can declare their own network badge using the copy&paste method from http://delicious.com/help/networkbadges via:
$DeliciousBadgeFmt = 'yourjavascripthere';
Otherwise, (:deliciousbadge:) can be called with the following arguments:
* user: delicious.com username (required)
* icon: medium, small, or none (default: medium)
* bookmarkcount: true or false (default: true) - number of bookmarks you've collected
* networkcount: true or false (default: true) - number of networks you belong to
* fancount: true or false (default: true)- number of fans you have
* showicon: true or false (default: true)
* showname: true or false (default: true) - displays username at the bottom, with a link to user's delicious page
Declare your own set of default values via $DeliciousBadgeDefaults in config.php:
$DeliciousBadgeDefaults = array(
'user' => 'myAccount',
'icon' => 'medium',
'bookmarkcount' => 'true',
'networkcount' => 'true',
'fancount' => 'true',
'showicon' => 'true',
'showname' => 'true'
);
Version Log:
* March 2006 1.0 - Initial Release
* January 2007 1.1 - Added tagometer badge
* November 2008 - Updated for change from delicious.com to delicious.com
* April 2009 - Bug fixes. changed "label" to "title" to match delicious.com
* 2009-10-03 - re-uploaded supposed version of April 2009 (just guessing), as it appears November 2008 was what was still being offered above; fixed issue with 'title' not displaying; plus, added $DeliciousBookmarkDefaults and $DeliciousTagDefaults as SDVA's, for easy config.php declaration
* 2009-10-04 - can now display notes via shownotes=true, plus added showname & showadd; revised (:deliciousbadge:) to permit arguments
* 2009-10-05 - added more arguments (showadd, showicon, showname) to (:tagroll:). changed (:deliciousbadge:) to incorporate the Delicious Network Badge. The Tagometer is now called via (:tagometer:) and has various arguments. renamed various variable names, and cleaned up the code a bit...
* 2009-10-14 - added style=none for tagrolls - removes default delicious formatting, allows tagrolls to be formatted via align=right, etc...
*/
$RecipeInfo['delicious']['Version']='2009-10-14';
Markup("linkroll", ">block", '/\\(:linkroll\\s*(.*?):\\)/ei', "DeliciousLinks('$1')");
Markup("tagroll", ">block", '/\\(:tagroll\\s*(.*?):\\)/ei', "DeliciousTags('$1')");
SDVA($DeliciousBookmarkDefaults, array (
'number' => '10',
'sort' => 'recent',
'tags' => '',
'user' => '',
'icon' => 'large',
'title' => 'My Delicious Bookmarks',
'showtags' => 'false',
'shownotes' => 'false',
'showadd' => 'false',
'showname' => 'false'
));
function DeliciousLinks($p) {
global $DeliciousBookmarkDefaults;
// Defaults & Inputs
$opt = array_merge($DeliciousBookmarkDefaults, ParseArgs($p));
// Return nothing if no username listed
if ($opt['user'] == '') { return ''; }
// Begin output
$output = "";
// Finish output and return it
return $output;
};
SDVA($DeliciousTagDefaults, array(
'number' => '',
'sort' => 'alpha',
'sizerange' => '12-35',
'user' => '',
'flow' => 'cloud',
'title' => 'My Delicious Tags',
'color1' => '87ceeb',
'color2' => '0000ff',
'counts' => 'false',
'showicon' => 'false',
'showname' => 'false',
'showadd' => 'false'
));
function DeliciousTags($p) {
global $DeliciousTagDefaults;
// Defaults & Inputs
$opt = array_merge($DeliciousTagDefaults, ParseArgs($p));
// Return nothing if no username listed
if ($opt['user'] == '') { return ''; }
// Begin output
$output = "";
// Finish output and return it
return $output;
}
# DELICIOUS TAGOMETER BADGE
SDV($DeliciousTagometerFmt, '');
SDVA($DeliciousTagometerDefaults, array(
'size' => 'wide',
'icon' => 'true',
'timesSaved' => 'true',
'graph' => 'true',
'tags' => 'true'
));
Markup("delicioustagometer", ">block", '/\\(:tagometer\\s*(.*?):\\)/ei', "DeliciousTagometerBadge('$1')");
function DeliciousTagometerBadge($p) {
global $DeliciousTagometerDefaults, $DeliciousTagometerFmt;
# allow user to declare their own badge, using the copy&paste method from http://delicious.com/help/tagometer
if ($DeliciousTagometerFmt) {
return Keep($DeliciousTagometerFmt);
}
$opt = array_merge($DeliciousTagometerDefaults, ParseArgs($p));
$output = "
";
return Keep($output);
}
# DELICIOUS NETWORK BADGE
SDV($DeliciousBadgeFmt, '');
SDVA($DeliciousBadgeDefaults, array(
'user' => '',
'icon' => 'medium',
'bookmarkcount' => 'true',
'networkcount' => 'true',
'fancount' => 'true',
'showicon' => 'true',
'showname' => 'true'
));
Markup("deliciousnetworkbadge", ">block", '/\\(:deliciousbadge\\s*(.*?):\\)/ei', "DeliciousNetworkBadge('$1')");
function DeliciousNetworkBadge($p) {
global $DeliciousBadgeDefaults, $DeliciousBadgeFmt;
# allow user to declare their own badge, using the copy&paste method from http://delicious.com/help/tagometer
if ($DeliciousBadgeFmt) {
return Keep($DeliciousBadgeFmt);
}
$opt = array_merge($DeliciousBadgeDefaults, ParseArgs($p));
// Return nothing if no username listed
if ($opt['user'] == '') { return ''; }
$output = '