# HG changeset patch # User ymh # Date 1272477406 -7200 # Node ID 84d54120ed7e3ae3f8b40309767e9dad1957f200 # Parent 074326680b0924fe73d1a9a42fe1178fd3d5e96d# Parent 65f17722d5c817be507681c18018cd657d0b2a16 Merge with 65f17722d5c817be507681c18018cd657d0b2a16 diff -r 074326680b09 -r 84d54120ed7e 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:56:25 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/actions/components.class.php Wed Apr 28 19:56:46 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 074326680b09 -r 84d54120ed7e web/thdProject/apps/frontend/modules/homepage/templates/_randomFilm.php --- a/web/thdProject/apps/frontend/modules/homepage/templates/_randomFilm.php Wed Apr 28 19:56:25 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/homepage/templates/_randomFilm.php Wed Apr 28 19:56:46 2010 +0200 @@ -1,108 +1,4 @@ -

Regardez et annotez des extraits :

-
-
- getTitle(); ?>
De getDirectorsArray(), 'name'); ?> -
- -
-
    -
  • - Tags liĆ©s au film : -
  • - getTagsArray() as $item) { - if($item){ - $tag = $item; - echo '
  • '.$tag.' -
  • '; - - } - } ?> - -
-
-
-
-
Tagger le film
+ $film, 'size' => 'big')); ?> + \ No newline at end of file diff -r 074326680b09 -r 84d54120ed7e web/thdProject/apps/frontend/modules/partials/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/partials/actions/components.class.php Wed Apr 28 19:56:25 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/partials/actions/components.class.php Wed Apr 28 19:56:46 2010 +0200 @@ -18,8 +18,14 @@ } public function executeFilmItem() { - // FIXME - $this->tag = Array('score' => 3); + // Process thumb + $this->thumbWidth = 337; + $this->thumbHeight = 190; + + if (isset($this->size) && $this->size == 'big') { + $this->thumbWidth = 720; + $this->thumbHeight = 405; + } // Get image filename $images = $this->film->getImages(); @@ -30,7 +36,6 @@ $this->imageFilename = $image->getFile(); } - // Get Tag cloud // Only display 10 tags $this->tagCloud = ThdUtil::getTagCloud($this->film->getTagCloud(), 10); diff -r 074326680b09 -r 84d54120ed7e web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php --- a/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Wed Apr 28 19:56:25 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Wed Apr 28 19:56:46 2010 +0200 @@ -1,8 +1,8 @@ -
+
getTitle(); ?> De getDirectorsArray(), 'name'); ?>
- +
    diff -r 074326680b09 -r 84d54120ed7e web/thdProject/apps/frontend/modules/static/config/view.yml --- a/web/thdProject/apps/frontend/modules/static/config/view.yml Wed Apr 28 19:56:25 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/static/config/view.yml Wed Apr 28 19:56:46 2010 +0200 @@ -1,4 +1,4 @@ all: components: - sideBar: [ search, sideBar ] \ No newline at end of file + sideBar: [ homepage, sideBar ] \ No newline at end of file diff -r 074326680b09 -r 84d54120ed7e web/thdProject/web/css/flashplayer.css --- a/web/thdProject/web/css/flashplayer.css Wed Apr 28 19:56:25 2010 +0200 +++ b/web/thdProject/web/css/flashplayer.css Wed Apr 28 19:56:46 2010 +0200 @@ -80,11 +80,20 @@ margin: 0; padding: 0; display: block; - width:337px; - height:190px; text-align:center; cursor: pointer; } + +.player-item-mini { + width:337px; + height:190px; +} + +.player-item-big { + width:720px; + height:410px; +} + .player-item .infos a.title { font-size: 20px; font-weight: normal; @@ -108,11 +117,16 @@ .player-item .infos .film-infos { font-size:11px; } -.player-item #play { +.player-item-mini .play-button { position: relative; top: 30px; - /*background:#000000 url(images/buttons/btn_play.png) no-repeat;*/ } + +.player-item-big .play-button { + position: relative; + top: 150px; +} + .player-item .tags { position:relative; top: 19px;