commit initial

This commit is contained in:
François Poulain 2017-01-09 10:47:45 +01:00 committed by root
commit 655ef8c906
16 changed files with 2497 additions and 0 deletions

51
article.html Normal file
View File

@ -0,0 +1,51 @@
<BOUCLE_principale(ARTICLES) {id_article}>
<!DOCTYPE html>
[(#REM) Cf.: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
]<!--[if lt IE 7 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie6"> <![endif]-->
<!--[if IE 7 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie7"> <![endif]-->
<!--[if IE 8 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie8"> <![endif]-->
<!--[if IE 9 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)]] no-js"> <!--<![endif]-->
<head>
<script type='text/javascript'>/*<![CDATA[*/(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement);/*]]>*/</script>
<title>[(#TITRE|couper{80}|textebrut) - ][(#NOM_SITE_SPIP|textebrut)] <BOUCLE_titrerub(RUBRIQUES){id_rubrique}>#TITRE</BOUCLE_titrerub></title>
[<meta name="description" content="(#INTRODUCTION{150}|attribut_html)" />]
[<link rel="canonical" href="(#URL_ARTICLE|url_absolue)" />]
<INCLURE{fond=inclure/head} />
</head>
<body class="pas_surlignable page_article">
<div class="page mw960p center">
<header id="header" role="banner" class="line">
<div class="header">
<h1 class="spip_logo_site txtright">#NOM_SITE_SPIP <BOUCLE_titrerub2(RUBRIQUES){id_rubrique}>#TITRE</BOUCLE_titrerub2>[(#LOGO_SITE_SPIP|image_reduire{150,150})]</h1>
</div>
<div id="mobile-header" class="when-portrait-up-hidden">
<a id="responsive-menu-button" href="#sidr-main" class="btn"><div id="lines"></div> Menu</a>
</div>
<nav class="nav clearfix cl-effect-15 when-portrait-down-hidden" id="nav">
<ul class="menu-liste menu-items">
<li class="menu-entree item">
<a href="#URL_RUBRIQUE">Accueil</a>
</li>
<BOUCLE_menu_articles(ARTICLES){id_rubrique}{par num titre}>
[(#RANG|<{1000}|oui) <li class="menu-entree item[ (#EXPOSE{'on active',''})]">
<a href="#URL_ARTICLE">#TITRE</a>
</li>]
</BOUCLE_menu_articles>
</ul>
</nav>
</header>
<div class="main">
<div class="content hentry pal pts" id="content" >
[<div class="#EDIT{texte} texte surlignable clearfix">(#TEXTE|image_reduire{672,*})</div>]
</div><!--.content-->
<INCLURE{fond=inclure/footer,self=#SELF} />
</div><!--.main-->
</div><!--.page-->
</body>
</html>
</BOUCLE_principale>

2169
css/perso.css Normal file

File diff suppressed because it is too large Load Diff

BIN
images/fond_entete-x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

BIN
images/fond_entete.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

10
inclure/footer.html Executable file
View File

@ -0,0 +1,10 @@
<div class="footer clearfix pal">
<p class="colophon">
[<small class="generator fr"><a href="http://www.spip.net/" rel="generator" title="<:site_realise_avec_spip:>" class="generator spip_out">(#CHEMIN{spip.png}|image_reduire{32,32}|inserer_attribut{alt,SPIP})</a></small>]
<a rel="nofollow" href="mailto:#EMAIL_WEBMASTER"><:contact:></a>
| <a rel="nofollow" href="#EVAL{_DIR_RESTREINT_ABS}">Se connecter</a>[
(#SESSION{id_auteur}|oui) | <a href="#URL_LOGOUT" rel="nofollow"><:icone_deconnecter:></a>]
</p>
</div>
[<script src="(#CHEMIN{js/scripts_footer.js})" type="text/javascript"></script>]

64
inclure/head.html Executable file
View File

@ -0,0 +1,64 @@
[(#REM)
Head standard de toutes les pages ;
les elements specifiques (title, description) figurent dans chaque squelette
]
<meta http-equiv="Content-Type" content="text/html; charset=#CHARSET" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
[(#REM) Lien vers le flux RSS du site ]
[<link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:>" href="(#URL_PAGE{backend})" />]
[(#REM)
On appelle les feuilles de style
dans l'ordre de la methode daisy http://daisy.tetue.net/img/daisy-nomenclature.png
1. Base CSS http://tinytypo.tetue.net/ ]
[<link rel="stylesheet" href="(#CHEMIN{css/reset.css}|direction_css)" type="text/css" />]
[(#REM) 2. Style SPIP et ses plugins ]
[<link rel="stylesheet" href="(#CHEMIN{css/spip.css}|direction_css)" type="text/css" />]
#INSERT_HEAD_CSS
[(#REM) 3. Vos feuilles de style pour l'habillage du site a) theme, b) variante, c) specifique ]
[<link rel="stylesheet" href="(#CHEMIN{css/perso.css}|direction_css)" type="text/css" />]
[(#REM)
Balise permettant aux plugins d'inserer des appels javascript ;
4. C'est ici que SPIP va inserer l'appel de la librairie jQuery
5. Et appeler a la fin compacte_head pour agreger et compacter tout le head dans des fichiers statiques si l'option est cochee dans Configuration
]
#INSERT_HEAD
[(#REM) 6. Vos scripts ]
[<script src="(#CHEMIN{js/script.js})" type="text/javascript"></script>]
[(#REM) Fierement fabrique avec SPIP ]
<meta name="generator" content="SPIP[ (#SPIP_VERSION)]" />
[(#REM) Favicon ]
[<link rel="icon" type="image/x-icon" href="(#CHEMIN{favicon.ico})" />
[<link rel="shortcut icon" type="image/x-icon" href="(#CHEMIN{favicon.ico})" />]]
[(#REM) meta robots ]
[<meta name="robots" content="(#ENV{robots})" />]
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//piwik.april.org/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '5']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//piwik.april.org/piwik.php?idsite=5" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->

10
inclure/header.html Executable file
View File

@ -0,0 +1,10 @@
<div class="header">
[(#ENV{home,'non'}|=={oui}|?{
<h1 class="spip_logo_site txtright">#NOM_SITE_SPIP[(#LOGO_SITE_SPIP|image_reduire{150,150})]</h1>
,
<strong class="h1 spip_logo_site t"><a rel="start home" href="#URL_SITE_SPIP/" title="<:accueil_site:>">[(#LOGO_SITE_SPIP
|image_reduire{224,96})]#NOM_SITE_SPIP</a></strong>
})][<p id="slogan">(#SLOGAN_SITE_SPIP)</p>]
</div>

9
inclure/nav.html Executable file
View File

@ -0,0 +1,9 @@
<div id="mobile-header" class="when-portrait-up-hidden">
<a id="responsive-menu-button" href="#sidr-main" class="btn"><div id="lines"></div> Menu</a>
</div>
[<nav class="nav clearfix cl-effect-15 when-portrait-down-hidden" id="nav">
(#INCLURE{fond=inclure/menu, env, identifiant=barrenav})
</nav>]

1
js/script.js Executable file
View File

@ -0,0 +1 @@
$(document).ready(function(){$("nav#nav a").each(function(){$(this).attr("data-hover",$(this).text())}),$("#responsive-menu-button").sidr({name:"sidr-main",source:"#nav ul"})});

1
js/scripts_footer.js Normal file

File diff suppressed because one or more lines are too long

39
mes_fonctions.php Normal file
View File

@ -0,0 +1,39 @@
<?php
/**
* Created by PhpStorm.
* User: declic3000
* Date: 26/11/16
* Time: 11:36
*/
function balise_LISTE_REGIONS ($p) {
$p->code = "liste_regions()";
return $p;
}
function liste_regions(){
$tab_regions=array(
'3'=>"Auvergne-Rhône-Alpes",
'5'=>"Bourgogne-Franche-Comté",
'6'=>"Bretagne",
'7'=>"Centre-Val de Loire",
'9'=>"Corse",
'1'=>"Grand Est",
'23'=>"Guadeloupe",
'24'=>"Guyane",
'17'=>"Hauts-de-France",
'12'=>"Île-de-France",
'26'=>"La Réunion",
'25'=>"Martinique",
'28'=>"Mayotte",
'4'=>"Normandie",
'2'=>"Nouvelle-Aquitaine",
'13'=>"Occitanie",
'18'=>"Pays de la Loire",
'21'=>"Provence-Alpes-Côte d'Azur",
'27'=>"Autre pays" );
return $tab_regions;
}

16
modeles/agenda.html Normal file
View File

@ -0,0 +1,16 @@
<BOUCLE_region(DATA){source tableau,#LISTE_REGIONS}>
[(#SET{url,#VAL{'http://www.agendadulibre.org/maps.json?tag='}|concat{#ENV{tag}}|concat{'&future=false&region='}|concat{#CLE}})]
<B_agenda>
<h4 class="spip">#VALEUR </h4>
<ul>
<BOUCLE_agenda(DATA) {source json, #GET{url} }{par properties/start_time}>
[(#SET{evt,#VALEUR|table_valeur{properties}})]
<li>[[(#GET{evt/start_time}|nom_jour)] (#GET{evt/start_time}|affdate)[ à (#GET{evt/start_time}|heures)][:(#GET{evt/start_time}|minutes)]]
<a href="http://www.agendadulibre.org/events/[(#GET{evt/id})]">[(#GET{evt/name})]</a>
à [(#GET{evt/city})]
</li>
</BOUCLE_agenda>
</ul>
</B_agenda>
</BOUCLE_region>

View File

@ -0,0 +1,7 @@
[(#SET{url,#VAL{'http://www.agendadulibre.org/maps.json?tag='}|concat{#ENV{tag}}|concat{'&future=false'}})]
<BOUCLE_agenda(DATA) {source json, #GET{url} }>
</BOUCLE_agenda>
#TOTAL_BOUCLE
</B_agenda>

34
modeles/agenda_rss.html Normal file
View File

@ -0,0 +1,34 @@
<p style="margin-left: 20%">
<select id="rss-link-select" onchange="change_rss_link()">
<option value="0">Toutes les régions</option>
<BOUCLE_region(DATA){source tableau,#LISTE_REGIONS}>
<option value="#CLE">#VALEUR</option>
</BOUCLE_region>
</select>
<a href="http://www.agendadulibre.org/events.rss?tag=#ENV{tag}&daylimit=120" id="rss-link">Flux RSS de tous les évènements</a>
</p>
<script language="javascript">
function change_rss_link()
{
select = document.getElementById('rss-link-select');
selection = select.value;
link = document.getElementById('rss-link');
if (selection == 0) {
link.innerHTML = "Flux RSS de tous les évènements";
link.href = "http://www.agendadulibre.org/events.rss?tag=#ENV{tag}&daylimit=120";
} else {
link.innerHTML = "Flux RSS des évènements de la région " + select.options[select.selectedIndex].text;
link.href = "http://www.agendadulibre.org/events.rss?region=" + selection + "&tag=#ENV{tag}6&daylimit=120";
}
}
</script>

50
rubrique.html Normal file
View File

@ -0,0 +1,50 @@
<BOUCLE_principale(RUBRIQUES) {id_rubrique}>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[(#REM) Cf.: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
]<!--[if lt IE 7 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie6"> <![endif]-->
<!--[if IE 7 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie7"> <![endif]-->
<!--[if IE 8 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie8"> <![endif]-->
<!--[if IE 9 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js"> <!--<![endif]-->
<head>
<script type='text/javascript'>/*<![CDATA[*/(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement);/*]]>*/</script>
<title>[(#NOM_SITE_SPIP|textebrut)] #TITRE</title>
[<meta name="description" content="(#TEXTE{150}|attribut_html)" />]
[<link rel="canonical" href="(#URL_RUBRIQUE|url_absolue)" />]
<INCLURE{fond=inclure/head} />
</head>
<body class="pas_surlignable page_article">
<div class="page mw960p center">
<header id="header" role="banner" class="line">
<div class="header">
<h1 class="spip_logo_site txtright">#NOM_SITE_SPIP #TITRE[(#LOGO_SITE_SPIP|image_reduire{150,150})]</h1>
</div>
<div id="mobile-header" class="when-portrait-up-hidden">
<a id="responsive-menu-button" href="#sidr-main" class="btn"><div id="lines"></div> Menu</a>
</div>
<nav class="nav clearfix cl-effect-15 when-portrait-down-hidden" id="nav">
<ul class="menu-liste menu-items">
<li class="menu-entree item on activ">
<a href="#URL_RUBRIQUE">Accueil</a>
</li>
<BOUCLE_menu_articles(ARTICLES){id_rubrique}{par num titre}>
[(#RANG|<{1000}|oui) <li class="menu-entree item">
<a href="#URL_ARTICLE">#TITRE</a>
</li>]
</BOUCLE_menu_articles>
</ul>
</nav>
</header>
<div class="main">
<div class="content hentry pal pts" id="content" >
[<div class="#EDIT{texte} texte surlignable clearfix">(#TEXTE|image_reduire{672,*})</div>]
</div><!--.content-->
<INCLURE{fond=inclure/footer,self=#SELF} />
</div><!--.main-->
</div><!--.page-->
</body>
</html>
</BOUCLE_principale>

36
sommaire.html Normal file
View File

@ -0,0 +1,36 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[(#REM) Cf.: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
]<!--[if lt IE 7 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie6"> <![endif]-->
<!--[if IE 7 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie7"> <![endif]-->
<!--[if IE 8 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie8"> <![endif]-->
<!--[if IE 9 ]> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" class="[(#LANG_DIR)] no-js"> <!--<![endif]-->
<head>
<script type='text/javascript'>/*<![CDATA[*/(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement);/*]]>*/</script>
<title>[(#NOM_SITE_SPIP|textebrut)][ - (#SLOGAN_SITE_SPIP|textebrut)]</title>
[<meta name="description" content="(#DESCRIPTIF_SITE_SPIP|couper{150}|attribut_html)" />]
<INCLURE{fond=inclure/head} />
</head>
<body class="pas_surlignable page_sommaire">
<div class="page mw960p center">
<header id="header" role="banner" class="line">
<INCLURE{fond=inclure/header,home=oui} />
<INCLURE{fond=inclure/nav,env} />
</header>
<div class="main">
<div class="content pal" id="content" >
<BOUCLE_ARTICLE(ARTICLES){page=accueil}>
[<div class="#EDIT{texte} texte surlignable clearfix">(#TEXTE|image_reduire{672,*})</div>]
</BOUCLE_ARTICLE>
</div>
<INCLURE{fond=inclure/footer,self=#SELF} />
</div><!--.main-->
</div><!--.page-->
</body>
</html>