Browse Source

Afficher les images avec |adaptive_images en les recadrant si besoin + ajout d'une image par défaut

pull/5/head
jeanmarie 1 year ago
parent
commit
45420922cd
3 changed files with 7 additions and 7 deletions
  1. +3
    -3
      content/article.html
  2. +4
    -4
      content/rubrique.html
  3. +0
    -0
      images/visuel_defaut.jpg

+ 3
- 3
content/article.html View File

@ -8,9 +8,9 @@
<h1 class="#EDIT{titre}">#TITRE</h1>
[(#CONFIG{html5up_forty/mode_accueil}|=={blog}|oui)[<p class="date_article">(#DATE|affdate_jourcourt)</p>] ]
</header>
<span class="image main">
[(#LOGO_ARTICLE_RUBRIQUE|image_recadre{864:259, -, focus}|adaptive_images{1500})]
</span>
[<span class="image main">
(#LOGO_ARTICLE_RUBRIQUE|sinon{#CHEMIN{images/visuel_defaut.jpg}}|image_recadre{864:259, -, focus})
</span>]
[<div class="#EDIT{chapo} chapo surlignable">(#CHAPO|adaptive_images{1500})</div>]
[<div class="#EDIT{texte} texte surlignable">(#TEXTE|adaptive_images{1500})</div>]


+ 4
- 4
content/rubrique.html View File

@ -4,7 +4,7 @@
<section id="banner" class="style2">
<div class="inner">
<span class="image">
<img src="[(#LOGO_RUBRIQUE|extraire_attribut{src})]" alt="" />
[(#LOGO_RUBRIQUE|extraire_attribut{src}|sinon{#CHEMIN{images/visuel_defaut.jpg}}|balise_img|adaptive_images)]
</span>
<header class="major">
<h1 class="#EDIT{titre}">#TITRE</h1>
@ -29,9 +29,9 @@
<section id="two" class="spotlights">
<BOUCLE_articles(ARTICLES){id_rubrique}>
<section>
<a href="#URL_ARTICLE" class="image">
<img src="[(#LOGO_ARTICLE_RUBRIQUE|extraire_attribut{src})]" alt="" data-position="center center" />
</a>
[<a href="#URL_ARTICLE" class="image">
(#LOGO_ARTICLE_RUBRIQUE|extraire_attribut{src}|sinon{#CHEMIN{images/visuel_defaut.jpg}}|image_recadre{570:510, -, focus})
</a>]
<div class="content">
<div class="inner">
<header class="major">


images/banner.jpg → images/visuel_defaut.jpg View File


Loading…
Cancel
Save