diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-29 15:42:46 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-29 15:42:46 -0400 |
commit | 8fd20f58e67c57364437b6c68205361b91f5ac2e (patch) | |
tree | f0da6dbfbe056f8871b3f66f4a6cefc6ab54b55e | |
parent | 7d43f211c0941e469a17ca6bcde91b95f93bbdf1 (diff) |
show the weight in output (for my own edification)
darcs-hash:20080729194246-84dde-4a47578d8727720097dab9362cb356bd8f4d2a7d.gz
-rw-r--r-- | actions/tag.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/tag.php b/actions/tag.php index cc95690e2..b967136d9 100644 --- a/actions/tag.php +++ b/actions/tag.php @@ -111,14 +111,14 @@ class TagAction extends StreamAction { } foreach ($tw as $tag => $weight) { - $this->show_tag($tag, $weight/$sum); + $this->show_tag($tag, $weight, $weight/$sum); } common_element_end('p'); } } - function show_tag($tag, $relative) { + function show_tag($tag, $weight, $relative) { # XXX: these should probably tune to the size of the site $cls = ($relative > 0.1) ? 'largest' : @@ -129,7 +129,7 @@ class TagAction extends StreamAction { ($relative > 0.002) ? 'verysmall' : 'smallest'; - common_element('a', array('class' => $cls, + common_element('a', array('class' => "$cls weight-$weight", 'href' => common_local_url('tag', array('tag' => $tag))), $tag); common_text(' '); |