diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-14 07:51:41 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-14 07:51:41 +0000 |
commit | a540eee93088628adeb3127227f401592ce4403c (patch) | |
tree | 428659d6dbd003b00ef61d8b5eea83fe84578f43 /views/default | |
parent | a8a6d84d11f285aeb8eb17e347ecfad34a2d7659 (diff) | |
download | elgg-a540eee93088628adeb3127227f401592ce4403c.tar.gz elgg-a540eee93088628adeb3127227f401592ce4403c.tar.bz2 |
Updated core tagcloud view markup/css.
git-svn-id: http://code.elgg.org/elgg/trunk@6043 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/css.php | 3 | ||||
-rw-r--r-- | views/default/output/tagcloud.php | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/views/default/css.php b/views/default/css.php index dd1e1449d..dba14194a 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -238,6 +238,9 @@ h2 { padding:1px 0 0 16px; font-size: 90%; } +.tagcloud { + text-align:justify; +} .ajax_loader { background-color: white; background-image: url(<?php echo $vars['url']; ?>_graphics/ajax_loader_bw.gif); diff --git a/views/default/output/tagcloud.php b/views/default/output/tagcloud.php index e8fffa705..2296c01fe 100644 --- a/views/default/output/tagcloud.php +++ b/views/default/output/tagcloud.php @@ -33,6 +33,9 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) { $counter = 0; $cloud = ""; $max = 0; + + $cloud .= "<h3>".elgg_echo('tagcloud')."</h3><div class='tagcloud'>"; + foreach($vars['tagcloud'] as $tag) { if ($tag->total > $max) { $max = $tag->total; @@ -44,11 +47,13 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) { } // protecting against division by zero warnings $size = round((log($tag->total) / log($max + .0001)) * 100) + 30; - if ($size < 60) { - $size = 60; + if ($size < 100) { + $size = 100; } $url = $vars['url'] . "pg/search/?q=". urlencode($tag->tag) . "&search_type=tags{$type}{$subtype}"; $cloud .= "<a href=\"{$url}\" style=\"font-size: {$size}%\" title=\"".addslashes($tag->tag)." ({$tag->total})\" style=\"text-decoration:none;\">" . htmlentities($tag->tag, ENT_QUOTES, 'UTF-8') . "</a>"; } + + $cloud .= "</div>"; echo $cloud; }
\ No newline at end of file |