Changeset 1482


Ignore:
Timestamp:
Sep 28, 2010, 11:36:20 PM (10 years ago)
Author:
roux
Message:

remove tags when zero

Location:
cpc/trunk/project
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/documents/templates/showSuccess.php

    r1449 r1482  
    3939</div>
    4040<div class="right">
    41 <div class="nuage_de_tags">
    42 <h3>Mots-clés</h3>
    43   <?php echo include_component('tag', 'tagcloud', array('tagquery' => $qtag, 'model' => 'Texteloi', 'limit' => 40, 'fixlevel' => 1)); ?>
    44 </div>
     41  <?php echo include_component('tag', 'tagcloud', array('tagquery' => $qtag, 'model' => 'Texteloi', 'limit' => 40, 'fixlevel' => 1, 'nozerodisplay' => true)); ?>
    4542<?php if ((isset($texte) && $texte > 0) || count($annexes) || $amendements) { ?>
    4643  <div class="annexes">
  • cpc/trunk/project/apps/frontend/modules/section/templates/showSuccess.php

    r1449 r1482  
    1717<div class="resume">
    1818<div class="right">
    19 <div class="nuage_de_tags">
    20 <h3>Mots-clés de cette section</h3>
    21 <?php echo include_component('tag', 'tagcloud', array('hide'=>1, 'tagquery' => $qtag, 'model' => 'Intervention', 'limit'=>40, 'route' => '@tag_section_interventions?section='.$section->id.'&')); ?>
    22 </div>
     19<?php echo include_component('tag', 'tagcloud', array('hide'=>1, 'tagquery' => $qtag, 'model' => 'Intervention', 'limit'=>40, 'route' => '@tag_section_interventions?section='.$section->id.'&', 'nozerodisplay' => true)); ?>
    2320</div>
    2421<div class="left">
  • cpc/trunk/project/apps/frontend/modules/tag/templates/_tagcloud.php

    r1385 r1482  
     1<?php $keys = array_keys($tags);
     2$tot = count($keys);
     3if (!isset($nozerodisplay))
     4  $nozerodisplay = false;
     5if (!$nozerodisplay || $tot > 0) {
     6if ($nozerodisplay) { ?>
     7<div class="nuage_de_tags">
     8<h3>Mots-clés</h3>
     9<?php } ?>
    110<div class="internal_tag_cloud">
    211<?php $ct = 1; $keys = array_keys($tags);
    3 if (count($keys)) { foreach($keys as $tag) : ?>
     12if ($tot > 0) { foreach($keys as $tag) : ?>
    413<span class="tag_level_<?php echo $tags[$tag]['class']; ?>"><?php if (isset($route)) {
    514echo '<a href="';
     
    2534<span><em>Aucun mot-clé trouvé</em></span>
    2635<?php } ?></div>
     36<?php if ($nozerodisplay) { ?>
     37</div>
     38<?php }
     39} ?>
     40
  • cpc/trunk/project/web/css/xneth/style.css

    r1476 r1482  
    10281028  height: 170px;
    10291029  margin-right: 3px;
     1030  text-align: center;
    10301031}
    10311032.graph_depute p {
Note: See TracChangeset for help on using the changeset viewer.