# HG changeset patch # User Gautier Thibault # Date 1271773936 -7200 # Node ID c19b7400ac1b599b2cfb77fae63143b168a6e7e4 # Parent 7c693f70ac4f240f202b41586595d27d5d4a9a25 update tag list diff -r 7c693f70ac4f -r c19b7400ac1b web/thdProject/apps/frontend/modules/partials/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/partials/actions/components.class.php Tue Apr 20 14:55:54 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/partials/actions/components.class.php Tue Apr 20 16:32:16 2010 +0200 @@ -29,6 +29,15 @@ $image = $images[0]; $this->imageFilename = $image->getFile(); } + + + // Get Tags + $tags = $this->film->getTagsArray(); + $this->tagList = null; + if ($tags) { + $this->tagList = $tags; + } + // Get video filename $videos = $this->film->getVideos(); diff -r 7c693f70ac4f -r c19b7400ac1b web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php --- a/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Tue Apr 20 14:55:54 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php Tue Apr 20 16:32:16 2010 +0200 @@ -8,24 +8,16 @@
  • Tags liés au film :
  • -
  • - anna -
  • - Jalousie -
  • - erotomanie -
  • - violence -
  • -
  • - anna -
  • - Jalousie -
  • - erotomanie -
  • - violence -
  • + getTagsArray() as $item) { + if($item){ + $tag = $item; + echo '
  • '.$tag.' +
  • '; + + } + } ?> + \ No newline at end of file diff -r 7c693f70ac4f -r c19b7400ac1b web/thdProject/apps/frontend/modules/reflex/actions/components.class.php --- a/web/thdProject/apps/frontend/modules/reflex/actions/components.class.php Tue Apr 20 14:55:54 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/reflex/actions/components.class.php Tue Apr 20 16:32:16 2010 +0200 @@ -3,20 +3,35 @@ class reflexComponents extends sfComponents { - public function executeReflexNavigator() { - - } - - public function executePlayer() { - $ref = '013002'; - $film_slug = 'apres-lui'; - + public function executeTagNavigator() { + $ref = '058000'; + // retrieve infos in database $query = Doctrine_Query::create() ->from('ThdFilm F') ->leftJoin('F.images I ') ->leftJoin('F.videos V') ->where("F.ref='{$ref}'"); + //$this->film = $query->execute(); + // if (!$this->film) return sfView::NONE; + + // retrieve tags infos + // $film = $this->film(); + + + return sfView::SUCCESS; + + } + + public function executePlayer() { + $this->film_uniqueid = (string) $request->getParameter('film_uniqueid'); + // retrieve infos in database + + $query = Doctrine_Query::create() + ->from('ThdFilm F') + ->leftJoin('F.images I ') + ->leftJoin('F.videos V') + ->where("F.uniqueid='{$film_uniqueid}'"); $this->film = $query->execute()->getFirst(); if (!$this->film) return sfView::NONE; diff -r 7c693f70ac4f -r c19b7400ac1b web/thdProject/apps/frontend/modules/reflex/templates/_suggestionFilmList.php --- a/web/thdProject/apps/frontend/modules/reflex/templates/_suggestionFilmList.php Tue Apr 20 14:55:54 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/reflex/templates/_suggestionFilmList.php Tue Apr 20 16:32:16 2010 +0200 @@ -1,3 +1,4 @@ +

    Les films suivants

    \ No newline at end of file diff -r 7c693f70ac4f -r c19b7400ac1b web/thdProject/apps/frontend/modules/tag/templates/viewTagListSuccess.php --- a/web/thdProject/apps/frontend/modules/tag/templates/viewTagListSuccess.php Tue Apr 20 14:55:54 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/tag/templates/viewTagListSuccess.php Tue Apr 20 16:32:16 2010 +0200 @@ -1,3 +1,3 @@

    Résultats pour :

    - + 'all', 'filmCount' => '10', 'mostTaggedFilms' => $mostTaggedFilms, 'pageIndex' => $pageIndex, 'pageNbItems' => $pageNbItems)); ?> diff -r 7c693f70ac4f -r c19b7400ac1b web/thdProject/web/css/base.css --- a/web/thdProject/web/css/base.css Tue Apr 20 14:55:54 2010 +0200 +++ b/web/thdProject/web/css/base.css Tue Apr 20 16:32:16 2010 +0200 @@ -510,7 +510,6 @@ text-align: center; padding: 2px 5px 2px 5px; float: left; - width: 200px; }