'wide',
'icon' => 'true',
'timesSaved' => 'true',
'graph' => 'true',
'tags' => '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
*/
$RecipeInfo['delicious']['Version']='2009-10-04b';
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'
));
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($DeliciousBadgeFmt, '');
SDVA($DeliciousBadgeDefaults, array(
'size' => 'wide',
'icon' => 'true',
'timesSaved' => 'true',
'graph' => 'true',
'tags' => 'true'
));
Markup("deliciousbadge", ">block", '/\\(:deliciousbadge\\s*(.*?):\\)/ei', "DeliciousTagometerBadge('$1')");
function DeliciousTagometerBadge($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));
$output = "
";
return Keep($output);
}