Ignore:
Timestamp:
Jul 14, 2010, 3:36:15 PM (11 years ago)
Author:
goya
Message:

adaptation orga page loi pour retraites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/loi/templates/loiSuccess.php

    r1172 r1240  
    11<h1><?php echo $loi->titre; ?></h1>
    22<?php if ($loi->source) echo '<p class="source"><a href="'.$loi->source.'" rel="nofollow">Source</a></p><div class="clear"></div>';
    3 if ($loi->parlementaire_id && $loi->expose) { ?>
     3if ($loi->parlementaire_id && $loi->expose && !($loi->texteloi_id == 2760)) { ?>
    44  <div class="loi">
    55  <div class="intervenant">
     
    8282</div>
    8383<br/>
    84 <?php if (!$loi->parlementaire_id && $loi->expose) echo '<h2>Exposé des motifs&nbsp;:</h2><div class="loi">'.preg_replace('/\s+(:|;|\?|!)/', '&nbsp;\1', $loi->expose).'</div><br/>'; ?>
     84<?php if ((!$loi->parlementaire_id && $loi->expose) || $loi->texteloi_id == 2760) {
     85  echo '<h2>Exposé des motifs&nbsp;:</h2>';
     86  if ($loi->parlementaire_id && $perso = $loi->getParlementaire() && $perso->getPageLink() && $photo = $perso->hasPhoto())
     87    echo '<div class="intervenant"><a href="'.url_for($perso->getPageLink()).'"><img alt="'.$perso->nom.'" src="'.url_for('@resized_photo_parlementaire?height=70&slug='.$perso->slug).'" /></a></div>';
     88  echo '<div class="loi">'.preg_replace('/\s+(:|;|\?|!)/', '&nbsp;\1', $loi->expose).'</div><br/>';
     89} ?>
    8590<div class="commentaires">
    8691  <h3>Derniers commentaires sur <?php echo preg_replace('/<br\/>.*$/', '', $loi->titre); ?> <span class="rss"><a href="<?php echo url_for('@loi_rss_commentaires?loi='.$loi->texteloi_id); ?>"><?php echo image_tag($sf_request->getRelativeUrlRoot().'/images/xneth/rss.png', 'alt="Flux rss"'); ?></a></span></h3>
Note: See TracChangeset for help on using the changeset viewer.