thèmes récents + corrections diverses

This commit is contained in:
chankalan 2020-10-23 16:33:47 +02:00
parent 3c547e945b
commit 77a3377417
6 changed files with 73 additions and 23 deletions

View File

@ -2,3 +2,9 @@
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
function retiremot($chaine) {
$chaine = str_replace('mot','',$chaine);
return $chaine;
}

View File

@ -1,7 +1,7 @@
<paquet
prefix="librealire"
categorie="squelette"
version="0.3.1"
version="0.3.2"
schema="0.3.2"
etat="dev"
compatibilite="[3.2.7;3.3.*]"

View File

@ -30,20 +30,13 @@
</aside>
<footer class="page_footer">
<B_themes>
<div class="page_connexplus">
<div class="page_container page_connexplus__container">
<div class="liste liste_mots"><ul>
<BOUCLE_themes(MOTS){id_groupe=1}{par titre}>
<li><a href="#URL_MOT">#TITRE</a></li>
[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE|div{4}|round}|oui)</ul><ul>]
[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE|div{4}|round|mult{2}}|oui)</ul><ul>]
[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE|div{4}|round|mult{3}}|oui)</ul><ul>]
</BOUCLE_themes>
</ul></div>
<INCLURE{fond=inclure/themes} />
</div>
</div>
</B_themes>
<div class="page_container page_footer__container">
<INCLURE{fond=footer/#ENV{type-page},env}>
</div>

View File

@ -0,0 +1,23 @@
<div class="liste liste_mots">
<h2><:baz_april:themes_recents:></h2>
<div class="listes">
#SET{popmot,#ARRAY}
<BOUCLE_popmots(MOTS){id_groupe=1}>
<BOUCLE_pop(ARTICLES){id_mot}>
</BOUCLE_pop>
#SET{popmot,#GET{popmot}|array_merge{#ARRAY{mot#ID_MOT,#TOTAL_BOUCLE}}}
</B_pop>
</BOUCLE_popmots>
<ul>
<BOUCLE_popop(DATA){source tableau, #GET{popmot}}{!par valeur}>
<li><a href="[(#INFO_URL{mot,[(#CLE|retiremot)]})]">
[(#VALEUR|>={100}|oui)<strong>][(#INFO_TITRE{mot,[(#CLE|retiremot)]})] <small>(#VALEUR)</small>[(#VALEUR|>={100}|oui)</strong>]
</a></li>
[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE|div{4}|round}|oui)</ul><ul>]
[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE|div{4}|round|mult{2}}|oui)</ul><ul>]
[(#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE|div{4}|round|mult{3}}|oui)</ul><ul>]
</BOUCLE_popop>
</ul>
</div>
</div>

View File

@ -0,0 +1,5 @@
<BOUCLE_compo(RUBRIQUES){composition=transcriptions}>
<BOUCLE_trans(ARTICLES){id_rubrique}{!par date}{0,1}>
[(#MODELE{bouton,texte=[(#ENV{texte}|propre|sinon{Dernière transcription})],lienobjet=article,lienidobjet=#ID_ARTICLE,class=taille3 tp})]
</BOUCLE_trans>
</BOUCLE_compo>

View File

@ -2,14 +2,27 @@
a {
&.tp:before {
content:'. . .';
display:inline-block;
margin: 0 -1em 0 0;
font-size: 1.2rem;
float: left;
line-height: 1.8;
color: red;
&.tp {
background:none !important;
padding:0;
color:$couleurPrincipale;
&:before {
content:'. . .';
display:inline-block;
margin: 0 -2em 0 0;
font-size: 1.2rem;
float: left;
line-height: 1.8;
color: red;
}
&.taille3 {
&:before {
line-height:2.2;
}
}
&:hover, &:focus {
color:$couleurSecondaire;
}
}
}
@ -103,7 +116,7 @@ a {
background:$couleurConnexplus;
color:#000;
margin-bottom:($spacer*1.5);
.liste.liste_mots {
.liste.liste_mots .listes {
display:flex;
flex-wrap:wrap;
> ul {
@ -150,15 +163,25 @@ a {
font-weight:200;
color:$couleurPrincipale;
@include clearfix();
@include flex();
.main {
max-width: 65%;
font-size: 1.6rem;
float:left;
padding:$spacer $spacer*1.5 $spacer ($spacer*4);
}
aside {
width:35%;
float:right;
max-width:35%;
}
@media ($bp-medium) {
flex-direction:column;
.main, aside {
max-width:100%;
padding:$spacer;
font-size:1.2rem;
.modele_citation .citation_texte {
font-size:1.2rem;
}
}
}
}
.formulaire_spip.formulaire_recherche {