Squelette élégant pour vos photos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
945 B

[(#REM)
sommaire :
on charge 2 photos des articles definis dans config
on a un cache très court pour générer l'image aléatoire sans utiliser de js
param:
- lang
]#CACHE{0}<BOUCLE_fond_desktop(ARTICLES){id_article IN #CONFIG{aoto/sommaire_photos_desktop}|picker_selected{article}}{statut IN prepa,prop,publie}{0,1}>
<BOUCLE_img_desktop(DOCUMENTS){id_article}{extension IN jpg,gif,png}{0,1}{par hasard}{tout}>
[<div class="home-fond home-fond--desktop wow fadeIn" style="background-image:url('(#URL_DOCUMENT)');"></div>]
</BOUCLE_img_desktop>
</BOUCLE_fond_desktop>
<BOUCLE_fond_rwd(ARTICLES){id_article IN #CONFIG{aoto/sommaire_photos_rwd}|picker_selected{article}}{statut IN prepa,prop,publie}{0,1}>
<BOUCLE_img_rwd(DOCUMENTS){id_article}{extension IN jpg,gif,png}{0,1}{par hasard}{tout}>
[<div class="home-fond home-fond--rwd wow fadeIn" style="background-image:url('(#URL_DOCUMENT)');"></div>]
</BOUCLE_img_rwd>
</BOUCLE_fond_rwd>