Changeset 1349
- Timestamp:
- Sep 11, 2010, 5:58:35 PM (10 years ago)
- Location:
- cpc/trunk/project/apps/frontend/modules/intervention
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/apps/frontend/modules/intervention/actions/actions.class.php
r1274 r1349 58 58 ->fetchOne(); 59 59 $this->forward404Unless($this->intervention); 60 61 $titre = ""; 62 $this->section = $this->intervention->getSection(); 63 $this->secparent = $this->section->getSection(); 64 $this->seance = $this->intervention->getSeance(); 65 if ($this->intervention->getType() == 'commission') { 66 $this->orga = $this->seance->getOrganisme(); 67 $titre .= $this->orga->getNom(); 68 } else if ($this->secparent && !(preg_match('/questions/i', $this->secparent->getTitre()))) 69 $titre .= $this->secparent->getTitre(); 70 else 71 $titre .= $this->section->getTitre(); 72 $titre .= " - ".$this->seance->getTitre(); 60 73 $this->lois = $this->intervention->getTags(array('is_triple' => true, 61 74 'namespace' => 'loi', … … 66 79 'key' => 'amendement', 67 80 'return' => 'value')); 68 $this->response->setTitle( 'Intervention de '.$this->intervention->getIntervenant()->nom);81 $this->response->setTitle($titre.' - Intervention de '.$this->intervention->getIntervenant()->nom." - NosDéputés.fr"); 69 82 // $this->response->setDescription($this->intervention->intervention); 70 83 } -
cpc/trunk/project/apps/frontend/modules/intervention/templates/_parlementaireIntervention.php
r1003 r1349 57 57 } 58 58 else { 59 echo '<span class="perso">'.$ perso->nom.' :';59 echo '<span class="perso">'.$intervention->getNomAndFonction().' :'; 60 60 echo '</span>'; 61 61 } -
cpc/trunk/project/apps/frontend/modules/intervention/templates/showSuccess.php
r825 r1349 1 1 <h1>Intervention de <?php echo $intervention->getIntervenant()->nom; ?></h1> 2 2 <?php 3 $section = $intervention->getSection(); 4 $titre2 = $intervention->getSeance()->getTitre(0,0,$intervention->getMd5()); 3 $titre2 = $seance->getTitre(0,0,$intervention->getMd5()); 5 4 $titre2 .= ' <br/> '; 6 if ($intervention->getType() == 'commission') { 7 $orga = $intervention->getSeance()->getOrganisme(); 5 if (isset($orga)) 8 6 $titre2 .= link_to($orga->getNom(), '@list_parlementaires_organisme?slug='.$orga->getSlug()); 9 } 10 if ($section->getSection()) { 11 $titre2 .= link_to(ucfirst($section->getSection()->getTitre()), '@section?id='.$section->section_id); 12 $titre2 .= ' - '; 13 } 7 if (isset($secparent)) 8 $titre2 .= link_to(ucfirst($secparent->getTitre()), '@section?id='.$section->section_id).' — '; 14 9 if ($section->getTitre()) 15 10 $titre2 .= link_to(ucfirst($section->getTitre()), '@section?id='.$section->id);
Note: See TracChangeset
for help on using the changeset viewer.