[pLog-svn] r4126 - plugins/branches/lifetype-1.1/tagcloud

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Tue Oct 17 02:37:16 GMT 2006


Author: jondaley
Date: 2006-10-17 02:37:14 +0000 (Tue, 17 Oct 2006)
New Revision: 4126

Modified:
   plugins/branches/lifetype-1.1/tagcloud/plugintagcloud.class.php
Log:
font-weights are only allowed to be 100,200,etc. apparently.

Modified: plugins/branches/lifetype-1.1/tagcloud/plugintagcloud.class.php
===================================================================
--- plugins/branches/lifetype-1.1/tagcloud/plugintagcloud.class.php	2006-10-12 16:04:04 UTC (rev 4125)
+++ plugins/branches/lifetype-1.1/tagcloud/plugintagcloud.class.php	2006-10-17 02:37:14 UTC (rev 4126)
@@ -201,9 +201,10 @@
 			
 			if ($size > $maxSize) $size = $maxSize;
 			if ($weight > $maxWeight) $weight = $maxWeight;
-
+            $weight = floor($weight / 100) * 100;
+            
             $rg = $this->blogInfo->getBlogRequestGenerator();
-            $baseUrl = $rg->getBaseUrl();		
+            $baseUrl = $rg->getBaseUrl();
 			$Cloud .= "<a rel=\"nofollow\" href=\"{$baseUrl}?searchTerms=$k&op=Search&blogId={$blogId}\" style=\"font-size: {$size}em; font-weight: {$weight}; line-height: 90%\" title=\"$k\">$k</a>\n";
 		}
 	



More information about the pLog-svn mailing list