Ignore:
Timestamp:
Mar 19, 2010, 6:38:08 PM (11 years ago)
Author:
goya
Message:

correction liens tags accent

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

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/tag/actions/components.class.php

    r1048 r1152  
    99
    1010
    11     //Ici on cherche à groupes les tags qui sont très similaires
     11    //Ici on cherche à grouper les tags qui sont très similaires
    1212    foreach(array_keys($this->tags) as $tag) {
    1313      if (preg_match('/^(é|É|Î)/', $tag)) {
  • cpc/trunk/project/apps/frontend/modules/tag/templates/_tagcloud.php

    r1048 r1152  
    33if (count($keys)) { foreach($keys as $tag) : ?>
    44<span class="tag_level_<?php echo $tags[$tag]['class']; ?>"><a href="<?php
    5 echo url_for($route.'tags='.$tags[$tag]['related']); ?>" title="<?php echo $tags[$tag]['count']; ?>"><?php
     5$rel = preg_replace('/\s+/', '&nbsp;', $tags[$tag]['related']);
     6$rel = preg_replace('/^aZ/', 'â', $rel);
     7$rel = preg_replace('/^eZ/', 'é', $rel);
     8$rel = preg_replace('/^EZ/', 'É', $rel);
     9$rel = preg_replace('/^iZ/', 'î', $rel);
     10$rel = preg_replace('/^IZ/', 'Î', $rel);
     11echo url_for($route.'tags='.$rel); ?>" title="<?php echo $tags[$tag]['count']; ?>"><?php
    612$nom = preg_replace('/\s+/', '&nbsp;', $tags[$tag]['tag']);
    713$nom = preg_replace('/^aZ/', 'â', $nom);
Note: See TracChangeset for help on using the changeset viewer.