Compare commits

..

2 Commits

Author SHA1 Message Date
504fdae7fc feat: import squelette head from alpha 2024-01-16 15:41:38 +01:00
b1c666e149 feat: import squelette sommaire.html de alpha 2024-01-16 15:28:21 +01:00
2 changed files with 171 additions and 0 deletions

60
inc/head.html Normal file
View File

@ -0,0 +1,60 @@
[(#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/typo.css}|direction_css)" type="text/css" />][
<link rel="stylesheet" href="(#CHEMIN{css/media.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="(#PRODUIRE{fond=css/main.css}|direction_css|timestamp)" type="text/css" media="all" />][
<link rel="stylesheet" href="(#CHEMIN{css/alpha.spip.css}|direction_css)" type="text/css" />][
<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) 7. Les scripts du thème ]
[<script src="(#CHEMIN{js/jquery.dropotron.min.js})" type="text/javascript"></script>]
[<script src="(#CHEMIN{js/jquery.scrollgress.min.js})" type="text/javascript"></script>]
[<script src="(#CHEMIN{js/skel.min.js})" type="text/javascript"></script>]
[<script src="(#CHEMIN{js/util.js})" type="text/javascript"></script>]
[<script src="(#CHEMIN{js/main.js})" type="text/javascript"></script>]
[(#REM) 7. Vos scripts ]
[<script src="(#CHEMIN{js/script.js})" type="text/javascript"></script>]
[(#REM) 8. Votre head ]
[(#CHEMIN{inc-theme-head.html}|oui) #INCLURE{fond=inc-theme-head,env}]
[(#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})" />]
<!--[if lte IE 8]><script src="#CHEMIN{js/ie/html5shiv.js}"></script><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="#CHEMIN{css/ie8.css}" /><![endif]-->

111
sommaire.html Normal file
View File

@ -0,0 +1,111 @@
[(#REM)
page sommaire
on liste les listes definies dans la configuration du squelette
param:
(aucun)
]<!DOCTYPE HTML>
<!--
Alpha by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html class="sommaire">
<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="landing">
<div id="page-wrapper">
<!-- Header -->
<INCLURE{fond=inclure/header,alpha_class='alt'} />
<!-- Banner -->
<section id="banner">
<h1 [(#CONFIG{alpha/config_titre_sommaire}|non) class="invisible"]>#NOM_SITE_SPIP</h1>
</section>
<!-- Main -->
<section id="main" class="container">
<section class="box special">
<header class="major">
[<h2 class="slogan_site_spip">(#SLOGAN_SITE_SPIP)</h2>]
[<div>(#DESCRIPTIF_SITE_SPIP)</div>]
</header>
<span class="image featured"><BOUCLE_doc(DOCUMENTS){tout}{id_document=#CONFIG{alpha/doc_home2}}>[(#FICHIER|image_recadre{1200:393,-,focus}|image_reduire{1200})]</BOUCLE_doc></span>
</section>
#SET{CPT,0}
<div class="row">
<BOUCLE_sommaire(ARTICLES){par num titre}{id_article IN #CONFIG{alpha/articles_home}|explode{','}} >
#SET{CPT,#GET{CPT}|plus{1}}
#SET{divdeux,#GET{CPT}|fmod{2}}
<div class="6u 12u(narrower)">
<section class="box special">
<span class="image featured">[(#LOGO_ARTICLE_RUBRIQUE|image_recadre{619:275,-,focus}|image_reduire{619}|inserer_attribut{class,spip_logos})]</span>
<h3>#TITRE</h3>
#INTRODUCTION
<ul class="actions">
<li><a href="#URL_ARTICLE" class="button alt"><:alpha:read_more:></a></li>
</ul>
</section>
</div>
[(#GET{divdeux}|=={0}|?{"</div><div class='row'>"})]
</BOUCLE_sommaire>
<BOUCLE_rub123(RUBRIQUES){par num titre}{id_parent=0}>
#SET{CPT,#GET{CPT}|plus{1}}
#SET{divdeux,#GET{CPT}|fmod{2}}
<div class="6u 12u(narrower)">
<section class="box special">
<span class="image featured">[(#LOGO_ARTICLE_RUBRIQUE|image_recadre{619:275,-,focus}|image_reduire{619}|inserer_attribut{class,spip_logos})]</span>
<h3>#TITRE</h3>
#INTRODUCTION
<ul class="actions">
<li><a href="#URL_RUBRIQUE" class="button alt"><:alpha:read_more:></a></li>
</ul>
</section>
</div>
[(#GET{divdeux}|=={0}|?{"</div><div class='row'>"})]
</BOUCLE_rub123>
<BOUCLE_articles_apres(ARTICLES){par num titre}{id_article IN #CONFIG{alpha/articles_home_apres}|explode{','}} >
#SET{CPT,#GET{CPT}|plus{1}}
#SET{divdeux,#GET{CPT}|fmod{2}}
<div class="6u 12u(narrower)">
<section class="box special">
<span class="image featured">[(#LOGO_ARTICLE_RUBRIQUE|image_recadre{619:275,-,focus}|image_reduire{619}|inserer_attribut{class,spip_logos})]</span>
<h3>#TITRE</h3>
#INTRODUCTION
<ul class="actions">
<li><a href="#URL_ARTICLE" class="button alt"><:alpha:read_more:></a></li>
</ul>
</section>
</div>
[(#GET{divdeux}|=={0}|?{"</div><div class='row'>"})]
</BOUCLE_articles_apres>
</div>
</section>
[(#CONFIG{alpha/newsletter_home}|oui)
<!-- CTA -->
<INCLURE{fond=inclure/CallToAction} />]
<!-- Footer -->
<INCLURE{fond=inclure/footer,self=#SELF} />
</div>
</body>
</html>