Browse Source

on utilise le formulaire configurer_html5up + les langues html5up + y

svn/attic/html5up_editorial/118729
chankalan@choc0.net 5 years ago
parent
commit
5065f73c34
  1. 6
      .gitattributes
  2. 12
      content/sommaire.html
  3. 2
      css/vars_spip.scss.html
  4. 50
      formulaires/configurer_html5up.html
  5. 4
      html5up_editorial_administrations.php
  6. 10
      inclure/sidebar.html
  7. 0
      lang/html5up_en.php
  8. 3
      lang/html5up_fr.php
  9. 4
      paquet.xml
  10. 4
      prive/squelettes/contenu/configurer_html5up_editorial.html
  11. 2
      prive/squelettes/navigation/configurer_html5up_editorial.html
  12. 6
      rubrique.html

6
.gitattributes vendored

@ -64,7 +64,7 @@ fonts/fontawesome-webfont.ttf -text
fonts/fontawesome-webfont.woff -text
fonts/fontawesome-webfont.woff2 -text
footer/dist.html -text
formulaires/configurer_html5up_editorial.html -text
formulaires/configurer_html5up.html -text
formulaires/recherche.html -text
formulaires/recherche.php -text
head/404.html -text
@ -106,8 +106,8 @@ javascript/main.js -text
javascript/perso.js -text
javascript/skel.min.js -text
javascript/util.js -text
lang/html5up_editorial_en.php -text
lang/html5up_editorial_fr.php -text
lang/html5up_en.php -text
lang/html5up_fr.php -text
lang/paquet-html5up_editorial_en.php -text
lang/paquet-html5up_editorial_fr.php -text
modeles/article_resume.html -text

12
content/sommaire.html

@ -2,7 +2,7 @@
#SET{exclus,#ARRAY}
<B_hero>
<section id="banner">
<BOUCLE_hero(ARTICLES){id_article IN #CONFIG{html5up_editorial/hero}|picker_selected{article}}>
<BOUCLE_hero(ARTICLES){id_article IN #CONFIG{html5up/hero}|picker_selected{article}}>
<INCLURE{fond=inclure/article-hero,id_article} />#SET{exclus,#GET{exclus}|push{#ID_ARTICLE}}
</BOUCLE_hero>
</section>
@ -10,7 +10,7 @@
<B_major>
<section>
<BOUCLE_major(ARTICLES){id_article IN #CONFIG{html5up_editorial/major}|picker_selected{article}}>
<BOUCLE_major(ARTICLES){id_article IN #CONFIG{html5up/major}|picker_selected{article}}>
[<header class="major">
<h2 class="#EDIT{titre}">(#TITRE)</h2>
</header>]
@ -20,14 +20,14 @@
</BOUCLE_major>
</section>
</B_major>
<BOUCLE_heroside(ARTICLES){id_article IN #CONFIG{html5up_editorial/heroside}|picker_selected{article}}>
<BOUCLE_heroside(ARTICLES){id_article IN #CONFIG{html5up/heroside}|picker_selected{article}}>
#SET{exclus,#GET{exclus}|push{#ID_ARTICLE}}
</BOUCLE_heroside>
<section>
<INCLURE{fond=inclure/liste/articles,env,ajax,
parpage=#CONFIG{html5up_editorial/suivants_parpage,6},
parpage=#CONFIG{html5up/suivants_parpage,6},
exclus=#GET{exclus},
total=#CONFIG{html5up_editorial/suivants_total,12},
titre=#CONFIG{html5up_editorial/suivants_titre}} />
total=#CONFIG{html5up/suivants_total,12},
titre=#CONFIG{html5up/suivants_titre}} />
</section>

2
css/vars_spip.scss.html

@ -7,6 +7,6 @@
fg-light: #9fa3a6,
border: rgba(210,215,217,0.75),
border-bg: transparentize(#e6ebed, 0.75),
accent: [(#CONFIG{html5up_editorial/accent})]
accent: [(#CONFIG{html5up/couleur_accent})]
);

50
formulaires/configurer_html5up_editorial.html → formulaires/configurer_html5up.html

@ -1,6 +1,6 @@
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
<h3 class="titrem"><:html5up_editorial:cfg_titre_parametrages:></h3>
<h3 class="titrem"><:html5up:cfg_titre_parametrages:></h3>
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
@ -10,25 +10,25 @@
#ACTION_FORMULAIRE
<fieldset>
<legend><:html5up_editorial:couleur:></legend>
<legend><:html5up:couleur:></legend>
<div class="editer-groupe">
[(#SAISIE{input,accent,
label=<:html5up_editorial:couleur_accent:>,
explication=<:html5up_editorial:couleur_accent_explications:>,
[(#SAISIE{input,couleur_accent,
label=<:html5up:couleur_accent:>,
explication=<:html5up:couleur_accent_explications:>,
class=palette,
type=color,
defaut=#F56A6A})]
</div>
</fieldset>
<fieldset>
<legend><:html5up_editorial:reseaux_sociaux:></legend>
<legend><:html5up:reseaux_sociaux:></legend>
<div class="editer-groupe">
<div class="editer pleine_largeur">
<span class="explication">
[(#PLUGIN{sociaux}|non)
<:html5up_editorial:reseau_sociaux_activer:>
<:html5up:reseau_sociaux_activer:>
][(#PLUGIN{sociaux}|oui)
<a href="#URL_ECRIRE{configurer_sociaux}"><:html5up_editorial:reseaux_sociaux_configurer:></a>
<a href="#URL_ECRIRE{configurer_sociaux}"><:html5up:reseaux_sociaux_configurer:></a>
]
</span>
</div>
@ -38,28 +38,28 @@
<legend><:zcore:accueil:></legend>
<div class="editer-groupe">
[(#SAISIE{selecteur_article, hero,
label=<:html5up_editorial:hero:>,
explication=<:html5up_editorial:hero_explications:>})]
label=<:html5up:hero:>,
explication=<:html5up:hero_explications:>})]
[(#SAISIE{selecteur_article, major,
label=<:html5up_editorial:major:>,
explication=<:html5up_editorial:major_explications:>})]
label=<:html5up:major:>,
explication=<:html5up:major_explications:>})]
[(#SAISIE{input,suivants_titre,
label=<:html5up_editorial:article_suivants_titre:>,
explication=<:html5up_editorial:article_suivants_titre_explications:>})]
label=<:html5up:article_suivants_titre:>,
explication=<:html5up:article_suivants_titre_explications:>})]
[(#SAISIE{input,suivants_total,
label=<:html5up_editorial:articles_suivants_total:>,
explication=<:html5up_editorial:articles_suivants_total_explications:>})]
label=<:html5up:articles_suivants_total:>,
explication=<:html5up:articles_suivants_total_explications:>})]
[(#SAISIE{input,suivants_parpage,
label=<:html5up_editorial:articles_suivants_parpage:>,
explication=<:html5up_editorial:articles_suivants_parpage_explications:>})]
label=<:html5up:articles_suivants_parpage:>,
explication=<:html5up:articles_suivants_parpage_explications:>})]
</div>
</fieldset>
<fieldset>
<legend><:html5up_editorial:sidebar:></legend>
<legend><:html5up:sidebar:></legend>
<div class="editer-groupe">
[(#SAISIE{selecteur_article, heroside,
label=<:html5up_editorial:heroside:>,
explication=<:html5up_editorial:heroside_explications:>})]
label=<:html5up:heroside:>,
explication=<:html5up:heroside_explications:>})]
</div>
<legend>Contact</legend>
<div class="editer-groupe">
@ -75,18 +75,18 @@
</div>
[(#SAISIE{input,contact_telephone,
label=<:html5up_editorial:contact_tel:>})]
label=<:html5up:contact_tel:>})]
[(#SAISIE{textarea,contact_adresse,
label=<:html5up_editorial:contact_adresse:>,
label=<:html5up:contact_adresse:>,
rows=4})]
[(#SAISIE{textarea,contact_complement,
label=<:html5up_editorial:contact_complement:>,
label=<:html5up:contact_complement:>,
rows=4})]
</div>
</fieldset>
<input type="hidden" name="_meta_casier" value="html5up_editorial" />
<input type="hidden" name="_meta_casier" value="html5up" />
<p class="boutons"><span class="image_loading">&nbsp;</span><input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p>
</div>
</form>

4
html5up_editorial_administrations.php

@ -26,8 +26,8 @@ if (!defined('_ECRIRE_INC_VERSION')) {
function html5up_editorial_upgrade($nom_meta_base_version, $version_cible) {
$maj = array();
$maj['create'] = array(
array('ecrire_config','html5up_editorial', array(
'accent' => '#f56a6a'
array('ecrire_config','html5up', array(
'couleur_accent' => '#f56a6a'
))
);
include_spip('base/upgrade');

10
inclure/sidebar.html

@ -7,7 +7,7 @@
<B_heroside>
<section>
<BOUCLE_heroside(ARTICLES){id_article IN #CONFIG{html5up_editorial/heroside}|picker_selected{article}}>
<BOUCLE_heroside(ARTICLES){id_article IN #CONFIG{html5up/heroside}|picker_selected{article}}>
[<header class="major">
<h2[ class="(#EDIT{titre})"]>(#TITRE)</h2>
</header>]
@ -23,14 +23,14 @@
<section>
<header class="major">
<h2><:html5up_editorial:contact:></h2>
<h2><:html5up:contact:></h2>
</header>
<ul class="contact">
[<li class="fa-envelope-o"><a href="mailto:#CONFIG{sociaux/mail}">(#CONFIG{sociaux/mail})</a></li>]
[<li class="fa-phone">(#CONFIG{html5up_editorial/contact_telephone})</li>]
[<li class="fa-home">(#CONFIG{html5up_editorial/contact_adresse}|propre|ptobr)</li>]
[<li class="fa-clock-o">(#CONFIG{html5up_editorial/contact_complement}|propre|ptobr)</li>]
[<li class="fa-phone">(#CONFIG{html5up/contact_telephone})</li>]
[<li class="fa-home">(#CONFIG{html5up/contact_adresse}|propre|ptobr)</li>]
[<li class="fa-clock-o">(#CONFIG{html5up/contact_complement}|propre|ptobr)</li>]
[(#PLUGIN{contact}|oui)
<li class="contact_form fa-share">
<div class="ajax">

0
lang/html5up_editorial_en.php → lang/html5up_en.php

3
lang/html5up_editorial_fr.php → lang/html5up_fr.php

@ -55,4 +55,5 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
// T
'theme_graphique_par_html5up' => 'Thème graphique par HTML5 UP',
'titre_page_configurer_html5up_editorial' => 'Configurer le squelette Editorial',
);
'titre_page_configurer_html5up_solid_state' => 'Configurer le squelette Solid State',
);

4
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="html5up_editorial"
categorie="squelette"
version="1.0.11"
version="1.1.0"
etat="test"
compatibilite="[3.1.0;3.2.*]"
logo="prive/themes/spip/images/html5up_editorial-64.png"
@ -26,6 +26,6 @@
<utilise nom="contact" compatibilite="[0.16.0;]" />
<utilise nom="sociaux" compatibilite="[2.1.0;]" />
<menu nom="configurer_html5up_editorial" titre="html5up_editorial:html5up_editorial_titre" parent="menu_squelette" icone="images/html5up_editorial-16.png" />
<menu nom="configurer_html5up_editorial" titre="html5up:html5up_editorial_titre" parent="menu_squelette" icone="images/html5up_editorial-16.png" />
</paquet>

4
prive/squelettes/contenu/configurer_html5up_editorial.html

@ -1,7 +1,7 @@
[(#AUTORISER{configurer,_html5up_editorial}|sinon_interdire_acces)]
<h1 class="grostitre"><:html5up_editorial:titre_page_configurer_html5up_editorial:></h1>
<h1 class="grostitre"><:html5up:titre_page_configurer_html5up_editorial:></h1>
<div class="ajax">
#FORMULAIRE_CONFIGURER_HTML5UP_EDITORIAL
#FORMULAIRE_CONFIGURER_HTML5UP
</div>

2
prive/squelettes/navigation/configurer_html5up_editorial.html

@ -1,3 +1,3 @@
#BOITE_OUVRIR
<:html5up_editorial:aide:>
<:html5up:aide:>
#BOITE_FERMER

6
rubrique.html

@ -1,7 +1,3 @@
<BOUCLE_rubrique_langue(RUBRIQUES){id_rubrique}{racine}{si #CONFIG{html5up_editorial/multilinguisme_par_secteur}}>
[(#HTTP_HEADER{Location: #URL_SITE_SPIP|parametre_url{lang,#LANG}})]
</BOUCLE_rubrique_langue>
<BOUCLE_rubriques(RUBRIQUES){id_rubrique}>
<INCLURE{fond=structure,env,id_secteur=#ID_SECTEUR,type-page=rubrique,composition=#COMPOSITION} />
</BOUCLE_rubriques>
<//B_rubrique_langue>
</BOUCLE_rubriques>
Loading…
Cancel
Save