1 | [(#REM) |
---|
2 | Pour la boucle principale, on se base |
---|
3 | sur le microformat hAtom (voir le projet hBones) |
---|
4 | <http://microformats.org/wiki/hatom> |
---|
5 | ] |
---|
6 | <BOUCLE_sites(SITES){par nom_site}{syndication!=non}{id_rubrique?}{id_mot?}> |
---|
7 | [(#SET{sites,[(#GET{sites}|concat{-#ID_SYNDIC})]})] |
---|
8 | <?php |
---|
9 | $GLOBALS['nom_site_#ID_SYNDIC'] = '[(#NOM_SITE|texte_script)]'; |
---|
10 | $GLOBALS['url_site_#ID_SYNDIC'] = '[(#URL_SITE|abs_url|texte_script)]'; |
---|
11 | ?> |
---|
12 | </BOUCLE_sites> |
---|
13 | [(#SET{sites,[(#EVAL{"'-'"}|explode{#GET{sites}}|array_filter)]})] |
---|
14 | <B_syndic> |
---|
15 | |
---|
16 | |
---|
17 | <div id="total_articles"> |
---|
18 | #TOTAL_BOUCLE [(#TOTAL_BOUCLE|=={1}|?{<:sedna:liens:>,<:sedna:liens_pluriel:>})] |
---|
19 | </div> |
---|
20 | |
---|
21 | [(#REM) |
---|
22 | Voir la definition des criteres {contenu} et {tri_sedna} dans sedna.php |
---|
23 | ] |
---|
24 | <?php |
---|
25 | <BOUCLE_syndic(SYNDIC_ARTICLES) {id_syndic?}{id_syndic IN #GET{sites}} {contenu} {tri_sedna} {age<=#ENV{age,1}} {0,500}> |
---|
26 | afficher_lien( |
---|
27 | #ID_SYNDIC_ARTICLE, |
---|
28 | '[(#URL_ARTICLE|creer_identifiant{#DATE})]', |
---|
29 | #ID_SYNDIC, |
---|
30 | '#DATE', |
---|
31 | '[(#URL_ARTICLE|attribut_html|texte_script)]', |
---|
32 | '[(#TITRE**|supprimer_numero|sinon{<:ecrire:info_sans_titre:>}|nettoyer_texte)]', |
---|
33 | '[ - <span class="author"><span class="vcard"><span class="fn">(#LESAUTEURS**|nettoyer_texte)</span></span></span>]', |
---|
34 | '[(#DESCRIPTIF**|nettoyer_texte)][ -- (#TAGS|texte_script)][ ((#SOURCE**|nettoyer_texte))]', |
---|
35 | '#LANG' |
---|
36 | ); |
---|
37 | </BOUCLE_syndic> |
---|
38 | ?> |
---|
39 | </ul> |
---|
40 | </B_syndic> |
---|
41 | |
---|
42 | <div id="total_articles"><:sedna:pas_articles:></div> |
---|
43 | <div class="centre_image"> |
---|
44 | <img src="#CHEMIN{sedna-big.png}" alt="" width="196" height="196" /> |
---|
45 | </div> |
---|
46 | |
---|
47 | <//B_syndic> |
---|