Browse Source

Ajout des squelettes pour gérer les sites

pull/3/head
nicod@lerebooteux.fr 2 years ago
parent
commit
6d9b047519
  1. 3
      .gitattributes
  2. 9
      breadcrumb/site.html
  3. 17
      content/site.html
  4. 17
      inclure/articles-syndic.html

3
.gitattributes

@ -13,6 +13,7 @@ breadcrumb/mot.html -text
breadcrumb/plan.html -text
breadcrumb/recherche.html -text
breadcrumb/rubrique.html -text
breadcrumb/site.html -text
breadcrumb/sommaire.html -text
content/article.html -text
content/auteur.html -text
@ -20,6 +21,7 @@ content/mot.html -text
content/plan.html -text
content/recherche.html -text
content/rubrique.html -text
content/site.html -text
content/sommaire.html -text
css/geshi.css -text
extra/dist.html -text
@ -53,6 +55,7 @@ images/icone-loupe.svg -text
images/icone-rss.svg -text
images/icone-telecharger.svg -text
images/logo_relief.png -text
inclure/articles-syndic.html -text
inclure/head-theme.html -text
inclure/head.html -text
inclure/menu_lang.html -text

9
breadcrumb/site.html

@ -0,0 +1,9 @@
<BOUCLE_site(SITES){id_syndic}>
<nav role="navigation">
<p><span class="visuallyhidden"><:galactic:vous_etes_ici:/></span>
<span><a href="#URL_SITE_SPIP"><:accueil_site:/></a></span>
<BOUCLE_ariane(HIERARCHIE){id_syndic}><span><a href="#URL_RUBRIQUE">[(#TITRE|couper{80})]</a></span></BOUCLE_ariane>
[<span>(#NOM_SITE|couper{80})</span>]
</p>
</nav>
</BOUCLE_site>

17
content/site.html

@ -0,0 +1,17 @@
[(#REM)
Un cache plus court, pour la boucle syndic_articles
]#CACHE{3600}
<BOUCLE_site(SITES){id_syndic}>
<div class="cartouche">
<a href="#URL_SITE">[(#LOGO_SITE|image_reduire{150,100}|image_aplatir{png,ffffff})][(#LOGO_RUBRIQUE|image_reduire{150,100}|image_aplatir{png,ffffff})]</a>
<h1 class="#EDIT{nom_site}">#NOM_SITE</h1>
</div>
[<div class="#EDIT{descriptif} chapo">(#DESCRIPTIF)</div>]
[<p class="#EDIT{url_site} hyperlien"><a href="#URL_SITE" class="spip_out">(#URL_SITE|couper{80})</a></p>]
<INCLURE{fond=inclure/articles-syndic, id_syndic, ajax}>
[<div class="notes"><h2><:info_notes:></h2>(#NOTES)</div>]
</BOUCLE_site>

17
inclure/articles-syndic.html

@ -0,0 +1,17 @@
[(#REM) Articles issus de la syndication ]
<B_articles>
<div class="menu articles">
#ANCRE_PAGINATION
<h2><:articles:></h2>
[<p class="pagination">(#PAGINATION{page})</p>]
<BOUCLE_articles(SYNDIC_ARTICLES) {id_syndic} {age<180} {!par date} {pagination 20}{recherche?}>
<p>
<strong><a href="#URL_ARTICLE" class="spip_out">#TITRE</a></strong>
[<br>(#TAGS|afficher_enclosures)]
<br><small>[(#DATE|affdate_jourcourt)][, <:par_auteur:> (#LESAUTEURS)][ &mdash; <em>(#TAGS|afficher_tags)</em>]</small>
[<br>(#DESCRIPTIF|couper{300}|image_reduire{300})]
</p>
</BOUCLE_articles>
[<p class="pagination">(#PAGINATION{page})</p>]
</div>
</B_articles>
Loading…
Cancel
Save