# HG changeset patch # User clebeaupin # Date 1272476945 -7200 # Node ID 65f17722d5c817be507681c18018cd657d0b2a16 # Parent 411b36a1912e9a0ed2dc5d220d4c9b8ba49c11bc Update big home player diff -r 411b36a1912e -r 65f17722d5c8 web/thdProject/apps/frontend/modules/homepage/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/homepage/actions/components.class.php Wed Apr 28 19:05:19 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/actions/components.class.php Wed Apr 28 19:49:05 2010 +0200 @@ -22,39 +22,8 @@ // Initialize query $query = Doctrine_Query::create() ->from('ThdFilm F') - ->leftJoin('F.images I ') - ->leftJoin('F.videos V') - //->where("cu.code='{$culture}' AND mo.code='{$module}' AND ms.code='{$section}'") ->orderBy('RAND()'); $this->film = $query->execute()->getFirst(); - - // Get image filename - $images = $this->film->getImages(); - $this->imageFilename = null; - - if ($images) { - $image = $images[0]; - $this->imageFilename = $image->getFile(); - } - - - // Get Tag cloud - // Only display 10 tags - $this->tagCloud = ThdUtil::getTagCloud($this->film->getTagCloud(), 10); - - // Get video filename - $videos = $this->film->getVideos(); - $this->videoFilename = null; - - if ($videos) { - $video = $videos[0]; - $this->videoFilename = $video->getFile(); - } - - // Create tag action - $controller = $this->getController(); - $this->actionUri = $controller->genUrl('@editVideoSegment?film_slug='.$this->film->getSlugUrl()); - } public function executeLastTaggedList() { diff -r 411b36a1912e -r 65f17722d5c8 web/thdProject/apps/frontend/modules/homepage/templates/_randomFilm.php --- a/web/thdProject/apps/frontend/modules/homepage/templates/_randomFilm.php Wed Apr 28 19:05:19 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/templates/_randomFilm.php Wed Apr 28 19:49:05 2010 +0200 @@ -1,108 +1,4 @@ -
-
-