# HG changeset patch # User clebeaupin # Date 1272495472 -7200 # Node ID 9845ed787b8838a987c5ed72bc48d75b631d7999 # Parent 4bf8ee3cba88ddbaa4414b50d6cd7c473dab1b17 Fix IE7 problem. Improve tag generation diff -r 4bf8ee3cba88 -r 9845ed787b88 web/thdProject/apps/frontend/modules/homepage/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/homepage/actions/components.class.php Wed Apr 28 20:06:59 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/actions/components.class.php Thu Apr 29 00:57:52 2010 +0200 @@ -6,15 +6,9 @@ } public function executeTagList() { - // FIXME: Dummy value - $this->tagList = Array(); - $this->tag = Array('score' => 3); - // Get Tags in Segment list - $query = Doctrine_Query::create() - ->from('ThdSegment S') - ->limit(5); - $this->tagsList = $query->execute(); - + // Get global tag cloud + // Only display 10 tags + $this->tagCloud = ThdUtil::processTagCloud(ThdUtil::getGlobalTagCloud(20), 20); } public function executeRandomFilm() { diff -r 4bf8ee3cba88 -r 9845ed787b88 web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php --- a/web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php Wed Apr 28 20:06:59 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/templates/_tagList.php Thu Apr 29 00:57:52 2010 +0200 @@ -1,14 +1,10 @@