Skip to content
Extraits de code Groupes Projets
Valider 8493007f rédigé par real3t@gmail.com's avatar real3t@gmail.com
Parcourir les fichiers

Pouvoir déclarer une rubrique (et sa branche) comme Blog : affiche les...

Pouvoir déclarer une rubrique (et sa branche) comme Blog : affiche les articles de la branche de manière anti-chronologique
parent 35f07f45
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -685,8 +685,11 @@ noisettes/rubriques/ListeArticlesParAnnees_Archives.html -text
noisettes/rubriques/ListeMagazines.html -text
noisettes/rubriques/ListeMagazines_Archives.html -text
noisettes/rubriques/rubrique_automatique.html -text
noisettes/rubriques/rubrique_automatique_article_bloc.html -text
noisettes/rubriques/rubrique_automatique_articles.html -text
noisettes/rubriques/rubrique_automatique_articles_archives.html -text
noisettes/rubriques/rubrique_automatique_blog.html -text
noisettes/rubriques/rubrique_automatique_blog_archives.html -text
noisettes/rubriques/typerubrique_ArticlesParAnnees.html -text
noisettes/rubriques/typerubrique_ContenuArticles.html -text
noisettes/rubriques/typerubrique_ListeArticlesParAnnees.html -text
......
......@@ -2,7 +2,12 @@
[(#INCLURE{fond=noisettes/plan/plan_branche,id_rubrique=#ENV{id_rubrique}})]
</BOUCLE_PlanLocal>
</B_PlanLocal>
<BOUCLE_Blog(HIERARCHIE){id_rubrique}{tout}{type_mot=_Specialisation_Rubrique}{titre_mot=Blog}{inverse} {0,1}>
[(#ENV{archive}|non)[(#INCLURE{fond=noisettes/rubriques/rubrique_automatique_blog,id_rubrique=#ENV{id_rubrique},env,ajax})]]
[(#ENV{archive}|oui)[(#INCLURE{fond=noisettes/rubriques/rubrique_automatique_blog_archives,id_rubrique=#ENV{id_rubrique},env,ajax})]]
</BOUCLE_Blog>
[(#ENV{archive}|non)[(#INCLURE{fond=noisettes/rubriques/rubrique_automatique_articles,id_rubrique,env,ajax})]]
[(#ENV{archive}|oui)[(#INCLURE{fond=noisettes/rubriques/rubrique_automatique_articles_archives,id_rubrique,ajax})]]
[(#ENV{archive}|oui)[(#INCLURE{fond=noisettes/rubriques/rubrique_automatique_articles_archives,id_rubrique,env,ajax})]]
<//B_Blog>
<//B_PlanLocal>
#FILTRE{mini_html}
\ No newline at end of file
<BOUCLE_(ARTICLES){id_article}>[(#CONFIG{soyezcreateurs_layout/cadragelogoarticlerubrique,#CONFIG{soyezcreateurs_layout/cadragelogocontenuautomatique,entier}}|=={recadre}|oui)[(#SET{lelogo,[(#LOGO_ARTICLE_NORMAL|image_focus{#CONFIG{soyezcreateurs_layout/largeurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/largeurlogocontenuautomatique,64}},#CONFIG{soyezcreateurs_layout/hauteurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/hauteurlogocontenuautomatique,64}}})]})]][(#CONFIG{soyezcreateurs_layout/cadragelogoarticlerubrique,#CONFIG{soyezcreateurs_layout/cadragelogocontenuautomatique,entier}}|=={entier}|oui)[(#SET{lelogo,[(#LOGO_ARTICLE_NORMAL|image_reduire{#CONFIG{soyezcreateurs_layout/largeurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/largeurlogocontenuautomatique,64}},#CONFIG{soyezcreateurs_layout/hauteurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/hauteurlogocontenuautomatique,64}}})]})]]
[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contenthauttitre}|oui)[<dt class="haslogo nogap[(#COMPTEUR_BOUCLE|alterner{'',' odd'})]"><a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]"><img class="logo contenthauttitre" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" /></a></dt>]]
<dt class="#EDIT{titre} h2[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={content}|oui)haslogo][(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contentbastitre}|oui)nogap][(#COMPTEUR_BOUCLE|alterner{'',' odd'})]">[(#INCLURE{fond=noisettes/aff_datepublication,id_article})]<a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]">[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={content}|oui)[<img class="logo logo_modenews" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" />]][(#TITRE)][ <span class="titrerubblog">#(#ENV{affrub}|?{#INFO_TITRE{rubrique,#ID_RUBRIQUE}})</span>]</a>[(#INCLURE{fond=noisettes/liste_auteurs,id_article,lang,nolink=1})]</dt>
[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contentbastitre}|oui)[<dt class="haslogo [(#COMPTEUR_BOUCLE|alterner{'',' odd'})]"><a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]"><img class="logo contentbastitre" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" /></a></dt>]]
[<dd class="cursor-pointer[(#COMPTEUR_BOUCLE|alterner{'',' odd'})] #EDIT{introduction}" onclick="location.href='#ARTICLE_URL';" title="<:soyezcreateurs:liresuitede:>[ (#TITRE|attribut_html)]">(#CHAPO|sinon{#DESCRIPTIF}|sinon{[<p>(#TEXTE|couper{300})</p>]}|image_reduire{#CONFIG{soyezcreateurs_layout/maxlargeurimage,720}|mult{2}|div{3},0})</dd>]
[<dd>(#INCLURE{fond=noisettes/inc_liste_document_article,id_article})</dd>]
</BOUCLE_>
\ No newline at end of file
......@@ -5,12 +5,8 @@
<B_articles_recents>
#ANCRE_PAGINATION
<dl id="listearticlerubrique">
<BOUCLE_articles_recents(ARTICLES){id_rubrique}{lang}{tri #GET{tri},#GET{senstri}}{!archive}{pagination}>[(#CONFIG{soyezcreateurs_layout/cadragelogoarticlerubrique,#CONFIG{soyezcreateurs_layout/cadragelogocontenuautomatique,entier}}|=={recadre}|oui)[(#SET{lelogo,[(#LOGO_ARTICLE_NORMAL|image_focus{#CONFIG{soyezcreateurs_layout/largeurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/largeurlogocontenuautomatique,64}},#CONFIG{soyezcreateurs_layout/hauteurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/hauteurlogocontenuautomatique,64}}})]})]][(#CONFIG{soyezcreateurs_layout/cadragelogoarticlerubrique,#CONFIG{soyezcreateurs_layout/cadragelogocontenuautomatique,entier}}|=={entier}|oui)[(#SET{lelogo,[(#LOGO_ARTICLE_NORMAL|image_reduire{#CONFIG{soyezcreateurs_layout/largeurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/largeurlogocontenuautomatique,64}},#CONFIG{soyezcreateurs_layout/hauteurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/hauteurlogocontenuautomatique,64}}})]})]]
[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contenthauttitre}|oui)[<dt class="haslogo nogap[(#COMPTEUR_BOUCLE|alterner{'',' odd'})]"><a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]"><img class="logo contenthauttitre" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" /></a></dt>]]
<dt class="#EDIT{titre} h2[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={content}|oui)haslogo][(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contentbastitre}|oui)nogap][(#COMPTEUR_BOUCLE|alterner{'',' odd'})]">[(#INCLURE{fond=noisettes/aff_datepublication,id_article})]<a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]">[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={content}|oui)[<img class="logo logo_modenews" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" />]][(#TITRE)]</a>[(#INCLURE{fond=noisettes/liste_auteurs,id_article,lang,nolink=1})]</dt>
[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contentbastitre}|oui)[<dt class="haslogo [(#COMPTEUR_BOUCLE|alterner{'',' odd'})]"><a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]"><img class="logo contentbastitre" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" /></a></dt>]]
[<dd class="cursor-pointer[(#COMPTEUR_BOUCLE|alterner{'',' odd'})]" onclick="location.href='#ARTICLE_URL';" title="<:soyezcreateurs:liresuitede:>[ (#TITRE|attribut_html)]">(#CHAPO|sinon{#DESCRIPTIF}|sinon{[<p>(#TEXTE|couper{300})</p>]}|image_reduire{#CONFIG{soyezcreateurs_layout/maxlargeurimage,720}|mult{2}|div{3},0})</dd>]
[<dd>(#INCLURE{fond=noisettes/inc_liste_document_article,id_article})</dd>]
<BOUCLE_articles_recents(ARTICLES){id_rubrique}{lang}{tri #GET{tri},#GET{senstri}}{!archive}{pagination}>
<INCLURE{fond=noisettes/rubriques/rubrique_automatique_article_bloc,id_article}>
</BOUCLE_articles_recents>
</dl>
[<p class="pagination">(#PAGINATION{prive})</p>]
......
......@@ -5,12 +5,8 @@
<B_articles_recents>
#ANCRE_PAGINATION
<dl id="listearticlerubrique">
<BOUCLE_articles_recents(ARTICLES){id_rubrique}{lang}{tri #GET{tri},#GET{senstri}}{archive}{pagination}>[(#CONFIG{soyezcreateurs_layout/cadragelogoarticlerubrique,#CONFIG{soyezcreateurs_layout/cadragelogocontenuautomatique,entier}}|=={recadre}|oui)[(#SET{lelogo,[(#LOGO_ARTICLE_NORMAL|image_focus{#CONFIG{soyezcreateurs_layout/largeurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/largeurlogocontenuautomatique,64}},#CONFIG{soyezcreateurs_layout/hauteurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/hauteurlogocontenuautomatique,64}}})]})]][(#CONFIG{soyezcreateurs_layout/cadragelogoarticlerubrique,#CONFIG{soyezcreateurs_layout/cadragelogocontenuautomatique,entier}}|=={entier}|oui)[(#SET{lelogo,[(#LOGO_ARTICLE_NORMAL|image_reduire{#CONFIG{soyezcreateurs_layout/largeurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/largeurlogocontenuautomatique,64}},#CONFIG{soyezcreateurs_layout/hauteurlogoarticlerubrique,#CONFIG{soyezcreateurs_layout/hauteurlogocontenuautomatique,64}}})]})]]
[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contenthauttitre}|oui)[<dt class="haslogo nogap[(#COMPTEUR_BOUCLE|alterner{'',' odd'})]"><a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]"><img class="logo contenthauttitre" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" /></a></dt>]]
<dt class="#EDIT{titre} h2[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={content}|oui)haslogo][(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contentbastitre}|oui)nogap][(#COMPTEUR_BOUCLE|alterner{'',' odd'})]">[(#INCLURE{fond=noisettes/aff_datepublication,id_article})]<a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]">[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={content}|oui)[<img class="logo logo_modenews" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" />]][(#TITRE)]</a>[(#INCLURE{fond=noisettes/liste_auteurs,id_article,lang,nolink=1})]</dt>
[(#CONFIG{soyezcreateurs_layout/logoarticlerubrique,[(#CONFIG{soyezcreateurs_layout/logoarticlenavigation,content})]}|=={contentbastitre}|oui)[<dt class="haslogo [(#COMPTEUR_BOUCLE|alterner{'',' odd'})]"><a href="#ARTICLE_URL" title="[(#DESCRIPTIF|attribut_html)][ ((#INCLURE{fond=noisettes/aff_datepublication,id_article}|supprimer_tags))]"><img class="logo contentbastitre" src="(#GET{lelogo}|extraire_attribut{src}|embarque_fichier)" width="[(#GET{lelogo}|largeur)]" height="[(#GET{lelogo}|hauteur)]" alt="" /></a></dt>]]
[<dd class="cursor-pointer[(#COMPTEUR_BOUCLE|alterner{'',' odd'})]" onclick="location.href='#ARTICLE_URL';" title="<:soyezcreateurs:liresuitede:>[ (#TITRE|attribut_html)]">(#CHAPO|sinon{#DESCRIPTIF}|sinon{[<p>(#TEXTE|couper{300})</p>]}|image_reduire{#CONFIG{soyezcreateurs_layout/maxlargeurimage,720}|mult{2}|div{3},0})</dd>]
[<dd>(#INCLURE{fond=noisettes/inc_liste_document_article,id_article})</dd>]
<BOUCLE_articles_recents(ARTICLES){id_rubrique}{lang}{tri #GET{tri},#GET{senstri}}{archive}{pagination}>
<INCLURE{fond=noisettes/rubriques/rubrique_automatique_article_bloc,id_article}>
</BOUCLE_articles_recents>
</dl>
[<p class="pagination">(#PAGINATION{prive})</p>]
......
#SET{tri,#CONFIG{soyezcreateurs/ordre_quoideneuf,date_modif}}#SET{senstri,-1}
<B_articles_recents>
#ANCRE_PAGINATION
<dl id="listearticlerubrique">
<BOUCLE_articles_recents(ARTICLES){branche}{lang}{tri #GET{tri},#GET{senstri}}{!archive}{pagination}>
<INCLURE{fond=noisettes/rubriques/rubrique_automatique_article_bloc,id_article,affrub=1}>
</BOUCLE_articles_recents>
</dl>
[<p class="pagination">(#PAGINATION{prive})</p>]
</B_articles_recents>
[(#REM) Vérifier qu'il y a des articles dans la branche :
- si oui, afficher le plan local
- si non, afficher les sites de la branche
]
<BOUCLE_ArticlesDansBranche(ARTICLES){branche}{0,1} {lang}>
[(#INCLURE{fond=noisettes/plan/plan_branche,id_rubrique=#ENV{id_rubrique},env})]
</BOUCLE_ArticlesDansBranche>
[(#INCLURE{fond=noisettes/sites_branche,id_rubrique=#ENV{id_rubrique},env})]
<//B_ArticlesDansBranche>
<//B_articles_recents>
#FILTRE{mini_html}
\ No newline at end of file
#SET{tri,#CONFIG{soyezcreateurs/ordre_quoideneuf,date_modif}}#SET{senstri,-1}
<B_articles_recents>
#ANCRE_PAGINATION
<dl id="listearticlerubrique">
<BOUCLE_articles_recents(ARTICLES){branche}{lang}{tri #GET{tri},#GET{senstri}}{archive}{pagination}>
<INCLURE{fond=noisettes/rubriques/rubrique_automatique_article_bloc,id_article,affrub=1}>
</BOUCLE_articles_recents>
</dl>
[<p class="pagination">(#PAGINATION{prive})</p>]
</B_articles_recents>
[(#REM) V�rifier qu'il y a des articles dans la branche :
- si oui, afficher le plan local
- si non, afficher les sites de la branche
]
<BOUCLE_ArticlesDansBranche(ARTICLES){branche}{0,1} {lang}>
[(#INCLURE{fond=noisettes/plan/plan_branche_archives,id_rubrique=#ENV{id_rubrique},env})]
</BOUCLE_ArticlesDansBranche>
[(#INCLURE{fond=noisettes/sites_branche,id_rubrique=#ENV{id_rubrique},env})]
<//B_ArticlesDansBranche>
<//B_articles_recents>
#FILTRE{mini_html}
\ No newline at end of file
<paquet
prefix="soyezcreateurs"
categorie="squelette"
version="5.0.8"
version="5.0.9"
etat="stable"
compatibilite="[3.1.8;3.2.*]"
logo="img_pack/soyezcreateurs_48.png"
schema="3.1.53"
schema="3.1.54"
documentation="https://contrib.spip.net/SoyezCreateurs-1237?tri_articles=titre"
>
......
......@@ -268,10 +268,16 @@ function soyezcreateurs_upgrade($nom_meta_base_version,$version_cible){
if (version_compare($current_version,'3.1.53','<')) {
spip_log("SoyezCreateurs maj 3.1.53 Début", 'soyezcreateurs_install'._LOG_INFO_IMPORTANTE);
sc_noisettespardefaut();
ecrire_meta($nom_meta_base_version,$current_version='3.1.53','non');
}
if (version_compare($current_version,'3.1.54','<')) {
spip_log("SoyezCreateurs maj 3.1.54 Début", 'soyezcreateurs_install'._LOG_INFO_IMPORTANTE);
$id_mot = create_mot("_Specialisation_Rubrique", "Blog", "Affecter ce mot clef à une rubrique pour que sa branche se comporte comme un blog.", "Avec ce mot clef : affichage des articles par ordre anti-chronologique pour tous les articles de la branche (et non de la rubrique en cours seulement).\n\nHéritage de la propriété pour les sous-rubriques.");
// On termine en invalidant les caches
include_spip('inc/invalideur');
suivre_invalideur("soyezcreateurs");
ecrire_meta($nom_meta_base_version,$current_version='3.1.53','non');
ecrire_meta($nom_meta_base_version,$current_version='3.1.54','non');
}
......
......@@ -1212,6 +1212,7 @@ dl#listearticlerubrique { clear:left; padding: 0; margin: .5em 0 1.5em; }
#listearticlerubrique dt .liste_auteurs { color: [#(#GET{c_container}|couleur_inverserluminosite{30}|couleur_saturer{0})]; font-weight: normal; font-style: italic; }
#listearticlerubrique dt .liste_auteurs:first-letter { text-transform: uppercase; }
#listearticlerubrique dt.haslogo img.logo { padding: 0; }
#listearticlerubrique dt .titrerubblog { font-style: italic; filter: contrast(25%); font-size: 0.75em; }
#listearticlerubrique dd { padding: 2px .5em 4px 1em; padding-right:.5em; padding-left:1em; margin-left: 2em; margin-bottom: 1.5em; border-left: 2px solid [#(#GET{c_titraille_bk}|couleur_foncerluminosite)]; }
#content dd p:first-of-type { margin-top: 0.25rem; }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter