Index: /trunk/apps/snippets/config/app.yml =================================================================== --- /trunk/apps/snippets/config/app.yml (revision 7) +++ /trunk/apps/snippets/config/app.yml (revision 17) @@ -6,2 +6,3 @@ feed_size: 10 sidebar_comments: 5 + tag_list_columns: 4 Index: /trunk/apps/snippets/modules/tag/actions/actions.class.php =================================================================== --- /trunk/apps/snippets/modules/tag/actions/actions.class.php (revision 15) +++ /trunk/apps/snippets/modules/tag/actions/actions.class.php (revision 17) @@ -18,5 +18,5 @@ { $this->tags = SnippetTagPeer::getAllWithCount(1000); - $this->column_count = intval(count($this->tags)/3); + $this->column_count = intval(count($this->tags)/sfConfig::get('app_tag_list_columns')); } Index: /trunk/lib/model/SnippetTagPeer.php =================================================================== --- /trunk/lib/model/SnippetTagPeer.php (revision 15) +++ /trunk/lib/model/SnippetTagPeer.php (revision 17) @@ -48,5 +48,5 @@ } - public function getPopular() + public function getPopular($levels = 3, $floor = 0.2, $power = 0.4) { $all_tags = self::getAllWithCount(200); @@ -55,7 +55,7 @@ foreach($all_tags as $tag => $count) { - if($count/$max_count > 0.2) + if($count/$max_count > $floor) { - $tags[$tag] = intval(3*$count/$max_count); + $tags[$tag] = intval(($levels-1)*pow($count/$max_count, $power)+1); } } Index: /trunk/web/css/main.css =================================================================== --- /trunk/web/css/main.css (revision 16) +++ /trunk/web/css/main.css (revision 17) @@ -196,19 +196,8 @@ list-position:inside; } - - #bar .tag_1 { - font-size: 0.9em; - } - - #bar .tag_2 { - - } - - #bar .tag_3 { - font-size: 1.2em; - } .tags td { padding-right:15px; + padding-left:10px; } @@ -332,2 +321,14 @@ background-position: left 20px; } + +#bar a:link.tag_1 { + color: #A09385; +} + +#bar a:link.tag_2 { + color: #836540; +} + +#bar a.tag_3 { + +}