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 = '
'."\n";
+
foreach ($words as $key=>$val) {
$style=$sty[$fz-1];
for ($i=0;$i<$fz;$i++) {
@@ -358,45 +358,76 @@ function macro_Keywords($formatter,$value,$options=array()) {
}
}
if ($val > $min) {
- $out .= "";
+ $out .= ">".$key."\n";
}
}
- $out = preg_replace('/&/',urlencode('&'),$out);
-
- $tout = "Tag nameTag two";
+ $out = preg_replace('/&/',urlencode('&'),$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;
+
+JS;
}
$out.='';
$checkbox = '';
@@ -454,7 +485,7 @@ function macro_Keywords($formatter,$value,$options=array()) {
EOF;
}
- return "".$out."$inp
$form_close";
+ return "".$out."$inp
$form_close";
}
function do_keywords($formatter,$options) {