diff --git a/applets/TagCloud/Makefile b/applets/TagCloud/Makefile new file mode 100644 index 00000000..c4a22311 --- /dev/null +++ b/applets/TagCloud/Makefile @@ -0,0 +1,5 @@ +all: + wget -N https://www.goat1000.com/jquery.tagcanvas.js + wget -N https://www.goat1000.com/excanvas.zip + wget -N https://www.goat1000.com/images/tagcanvas.png + unzip excanvas.zip diff --git a/plugin/Keywords.php b/plugin/Keywords.php index 499f58c1..3f447c47 100644 --- a/plugin/Keywords.php +++ b/plugin/Keywords.php @@ -347,8 +347,8 @@ function macro_Keywords($formatter,$value,$options=array()) { } if (isset($options['cloud'])) { - $out = ''; - + $out = '"; - $formatter->register_javascripts(array('js/swfobject.js')); - $_swf_prefix=qualifiedUrl("$DBInfo->url_prefix/local/wp-cumulus"); // FIXME - return <<url_prefix/applets/TagCloud"); + $formatter->register_javascripts(array("$_prefix/jquery.tagcanvas.js")); + return << -var flashvars = { - mode : "tags", - distr : "true", - tcolor : "0xffffff", - tcolor2 : "0x86B9F2", - hicolor : "0xBAD8F8", - tagcloud : "$out" -}; - -var params = { - wmode: "opaque", - bgcolor: "#333333" -}; - -var attrs = { - id: "myCloudContent" -}; - -swfobject.embedSWF("$_swf_prefix/tagcloud.swf", "myCloud", "200", "200", "9.0.0","expressInstall.swf", flashvars, params, attrs); +/**/ -
-
-SWF; + + +

If this looks like a small static image, your browser does not support the +canvas tag. Please try again using a different browser, or try to imagine text +swirling around in response to the mouse position.

+$out +
+JS; } $out.='$form_close"; + return "
".$out."$inp
$form_close"; } function do_keywords($formatter,$options) {