composition landing pour page unique

This commit is contained in:
chankalan 2023-04-25 10:00:41 +02:00
parent 77f942685c
commit 48d5b432b4
5 changed files with 103 additions and 2 deletions

38
squelettes/body.html Normal file
View File

@ -0,0 +1,38 @@
<body class="body[__(#ENV{type-page})][--(#COMPOSITION)][ body--(#COMPOSITION)][ body--(#SITE_COURANT)]">
<div class="page_wrapper">
<header class="page_header">
<div class="page_container page_header_container">
<INCLURE{fond=header/#ENV{type-page},env}>
</div>
</header>
<div class="page_main">
<div class="page_container page_main__container">
<div class="page_main_content">
<div class="page_content">
<INCLURE{fond=breadcrumb/#ENV{type-page},env}>
<INCLURE{fond=content/#ENV{type-page},env}>
<div class="page_extra">
<INCLURE{fond=extra/#ENV{type-page},env}>
</div>
</div>[(#COMPOSITION|=={dossier}|et{#ENV{type-page}|=={article}}|et{#COMPOSITION|=={landing}}|non)
<INCLURE{fond=aside/#ENV{type-page},env} />
<!--.aside-->]
</div>
</div>
</div>
[(#COMPOSITION|=={landing}|non)
<aside class="page_connex">
<INCLURE{fond=connex/#ENV{type-page},env} />
</aside>
<footer class="page_footer">
<div class="page_container page_footer__container">
<INCLURE{fond=footer/#ENV{type-page},env}>
</div>
<INCLURE{fond=inclure/initiatives} />
</footer>
]
</div>
</body>

View File

@ -0,0 +1,52 @@
<BOUCLE_principale(ARTICLES){id_article}>
<article>
<header class="cartouche">
[<p class="#EDIT{surtitre} surtitre">#(#SURTITRE)</p>]
<h1><span class="#EDIT{titre} article__titre">#TITRE</span>[
<small class="#EDIT{soustitre} soustitre">(#SOUSTITRE)</small>
]</h1>
<p class="article__infos">
[<span class="article__date">Publié le (#DATE|nom_jour) [(#DATE|affdate)]</span>]
[(#CONFIG{baz_april/afficherauteurs}|=={on}|oui)[<span class="article__auteurs"><:par_auteur:> (#LESAUTEURS)</span>]]
</p>
<div class="postmeta">
#MODELE{article_traductions}
<BOUCLE_groupes(GROUPES_MOTS){par titre}>
<B_tags>
<p class="mots">
<strong>#TITRE : </strong><BOUCLE_tags(MOTS){id_article}{id_groupe}{', '}>
<a href="#URL_MOT">#TITRE</a>
</BOUCLE_tags>
</p>
</B_tags>
</BOUCLE_groupes>
</div>
</header>
<div class="main">
[<div class="#EDIT{chapo} article__chapo">(#CHAPO|adaptive_images{#CONST{_CONTENT_WIDTH},0})</div>]
[<div class="#EDIT{texte} article__texte">(#TEXTE|adaptive_images{#CONST{_CONTENT_WIDTH},0})</div>]
</div>
[<aside>
(#INCLURE{fond=inclure/documents,id_article})
</aside>]
<footer>
[<p class="#EDIT{hyperlien} article__hyperlien"><:voir_en_ligne:/> : <a href="(#URL_SITE)" class="spip_out">[(#NOM_SITE|sinon{[(#URL_SITE|couper{80})]})]</a></p>]
[<div class="article__notes">(#NOTES)</div>]
</footer>
</article>
</BOUCLE_principale>

View File

@ -0,0 +1,5 @@
<composition>
<nom>Landing page</nom>
<description>Pour un article de type Page unique, avoir une page sans menu ni pied de page</description>
<icon>images/article-landing.png</icon>
</composition>

View File

@ -4,7 +4,7 @@
[(#LOGO_SITE_SPIP|image_reduire{400,320}) ]<span class="nom_site_spip">#NOM_SITE_SPIP</span>
[<small class="slogan_site_spip[ (#EDIT{meta-slogan_site})]">(#SLOGAN_SITE_SPIP)</small>]
[(#SI_PAGE{sommaire}|non)</a>]</h1>
</div>
</div>[(#COMPOSITION|=={landing}|non)
<div class="header_menu">
<INCLURE{fond=inclure/nav-secteurs, env} />
<div class="liens">
@ -15,3 +15,4 @@
</div>
</div>
</div>
]

View File

@ -552,9 +552,14 @@ ul.spip {
}
.article__date {
display:none; /* provisoire, par simplicite */
display: none; /* provisoire, par simplicite */
}
.composition_landing {
.page_wrapper {
border: 0;
}
}
.composition_emissions, .composition_emission, .emissions, .derniere_emission, .prochaine_emission {
.article__date {
display: inline;