[30] | 1 | <BOUCLE_rubrique(RUBRIQUES) {id_rubrique}> |
---|
| 2 | <B_mot> |
---|
| 3 | [(#REM) Nube de palabras ] |
---|
| 4 | |
---|
| 5 | <div class="nube01">#TITRE: |
---|
| 6 | </div> |
---|
| 7 | <div class="nube02"> |
---|
| 8 | <?php |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | <BOUCLE_mot(MOTS){type=#TITRE}{par titre}> |
---|
| 12 | $titre[#ID_MOT]='[(#TITRE|texte_script)]'; |
---|
| 13 | $url[#ID_MOT]='#URL_MOT'; |
---|
| 14 | <BOUCLE_art1(ARTICLES){id_mot}> |
---|
| 15 | </BOUCLE_art1> |
---|
| 16 | $pop[#ID_MOT]=#TOTAL_BOUCLE; # Nombre d'articles pour ce mot |
---|
| 17 | </B_art1> |
---|
| 18 | </BOUCLE_mot> |
---|
| 19 | |
---|
| 20 | $maxpop = max($pop); # Plus grand nombre d'article pour un mot |
---|
| 21 | |
---|
| 22 | foreach ($titre as $id => $t) { |
---|
| 23 | $score = $pop[$id]/$maxpop; # entre 0 et 1 |
---|
| 24 | if($score > 0.02){ |
---|
| 25 | $s = ceil(20*$score); |
---|
| 26 | $s = 10 + $s; |
---|
| 27 | $t = str_replace(' ', ' ', $t); |
---|
| 28 | $l = "<span style='font-size:".$s."px'>$t</span>"; |
---|
| 29 | $l = "<a href='".$url[$id]."'>$l</a>"; |
---|
| 30 | echo "$l \n"; |
---|
| 31 | } |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | ?> |
---|
| 35 | </div> |
---|
| 36 | <br /> |
---|
| 37 | </B_mot> |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | <hr color="#999999" noshade size="1"> |
---|
| 42 | |
---|
| 43 | <B_art_mot2> |
---|
| 44 | #ANCRE_PAGINATION |
---|
| 45 | <BOUCLE_art_mot2(ARTICLES){type=#TITRE} {par date}{inverse}{pagination 10}> |
---|
| 46 | |
---|
| 47 | <BOUCLE_provinciast2(MOTS) {id_article}{type=#_rubrique:TITRE}> |
---|
| 48 | <b><div class="titre-texte"><small>[<a style="color:#993333" href="#URL_MOT">(#TITRE)</a> ]</small></div></b> |
---|
| 49 | </BOUCLE_provinciast2> |
---|
| 50 | <table><tr><td> |
---|
| 51 | <B_foto1> |
---|
| 52 | <BOUCLE_foto1(DOCUMENTS){id_article}{extension==jpg|png|gif}{par hasard}{0,1}> |
---|
| 53 | [(#LOGO_DOCUMENT|left||image_reduire{110,0}|inserer_attribut{hspace,4}|inserer_attribut{vspace,4}|inserer_attribut{style,border:1px solid #000000})] |
---|
| 54 | |
---|
| 55 | </BOUCLE_foto1> |
---|
| 56 | </B_foto1> |
---|
| 57 | [(#LOGO_ARTICLE|left|#URL_ARTICLE|reduire_image{140,0}|inserer_attribut{hspace,5})] |
---|
| 58 | <//B_foto1> |
---|
| 59 | [(#LOGO_ARTICLE|right||reduire_image{80,0}|inserer_attribut{hspace,5})]<a href="#URL_ARTICLE"><strong>[(#TITRE|supprimer_numero)]</strong><br /> |
---|
| 60 | <BOUCLE_sivafecha(MOTS){id_rubrique}{titre=con fecha}> |
---|
| 61 | <small>[(#DATE|nom_jour) ][(#DATE|affdate)]</small> |
---|
| 62 | </BOUCLE_sivafecha> |
---|
| 63 | <BOUCLE_sivaautor(MOTS){id_rubrique}{titre=con autor}> |
---|
| 64 | <small>[, <:par_auteur:> (#LESAUTEURS)]</small> |
---|
| 65 | </BOUCLE_sivaautor> |
---|
| 66 | [<br />(#CHAPO)]</a> |
---|
| 67 | </td></tr></table> |
---|
| 68 | </BOUCLE_art_mot2> |
---|
| 69 | |
---|
| 70 | [<p class="pagination">(#PAGINATION)</p>] |
---|
| 71 | </B_art_mot2> |
---|
| 72 | </BOUCLE_rubrique> |
---|