Changeset 2685


Ignore:
Timestamp:
May 13, 2012, 6:35:21 PM (8 years ago)
Author:
teymour
Message:

Tagcloud sur l'ensemble du quinquenat

Location:
cpc/trunk/project/apps/frontend/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_fiche.php

    r2612 r2685  
    102102       <td><a href="<?php echo url_for('@parlementaire_rss?slug='.$parlementaire->slug); ?>"><?php echo image_tag('xneth/rss_obliq.png', 'alt="Flux rss"'); ?></a><br/><a href="<?php echo url_for('@parlementaire_rss?slug='.$parlementaire->slug); ?>">par RSS</a></td>
    103103</tr></table>
    104       <h2>Champ lexical</h2>
     104      <h2>Champ lexical <small>(<?php
     105if (myTools::isFinLegislature()) {
     106echo "sur l'ensemble du quinquenat";
     107}else{
     108echo "sur 12 mois";
     109}
     110?>)</small></h2>
    105111      <div style="text-align: justify">
    106112<?php echo include_component('tag', 'parlementaire', array('parlementaire'=>$parlementaire)); ?>
  • cpc/trunk/project/apps/frontend/modules/tag/actions/components.class.php

    r2684 r2685  
    7171      ->from('Tagging tg, tg.Tag t, Intervention i')
    7272      ->where('i.parlementaire_id = ?', $this->parlementaire->id)
    73       ->andWhere('i.date > ?', date('Y-m-d', time()-60*60*24*365))
    7473      ->andWhere('i.id = tg.taggable_id');
     74    if (!myTools::isFinLegislature()) {
     75      $this->qtag = $this->qtag->andWhere('i.date > ?', date('Y-m-d', time()-60*60*24*365));
     76    }
    7577  }
    7678
Note: See TracChangeset for help on using the changeset viewer.