Browse Source

Du footer encore.

svn/root
marcimat@rezo.net 1 year ago
parent
commit
3849a3adb9
  1. 2
      .gitattributes
  2. 20
      css/composants/_footer.scss
  3. 22
      css/composants/_second-footer.scss
  4. 32
      footer/dist.html
  5. 7
      inclure/second-footer.html
  6. 10
      lang/theme_patisson_fr.php

2
.gitattributes

@ -28,8 +28,10 @@ fonts/lato-v16-latin-300italic.svg -text
fonts/lato-v16-latin-300italic.ttf -text
fonts/lato-v16-latin-300italic.woff -text
fonts/lato-v16-latin-300italic.woff2 -text
footer/dist.html -text
inclure/search-bar.html -text
inclure/second-footer.html -text
lang/paquet-theme_patisson_fr.php -text
lang/theme_patisson_fr.php -text
/paquet.xml -text
/vignette.png -text

20
css/composants/_footer.scss

@ -1,11 +1,25 @@
.footer {
font-family: $font-family-alt;
background-color: $gray-100;
margin-top: 4 * $spacer;
padding-top: 2 * $spacer;
padding-top: 3 * $spacer;
padding-bottom: 2 * $spacer;
margin-bottom:0;
text-align: left;
position:relative;
.colophon {padding-right: 100px}
.generator {position: absolute;top:2 * $spacer;right:0;max-width: 100px;}
.site-title {
font-size: 2.5rem;
}
.footer-nav-title {
text-transform: uppercase;
font-size: 1rem;
font-family: $font-family-alt;
}
.footer-nav {
margin:0; padding:0;
list-style-type: none;
}
.footer-nav-item {
font-size: .9rem;
}
}

22
css/composants/_second-footer.scss

@ -1,12 +1,28 @@
.second-footer {
font-family: $font-family-alt;
background-color: $gray-900;
text-align:center;
color: white;
padding: 1em;
.site-info {
font-family: $font-family-alt;
padding: 1em 1em .3em;
.colophon {
text-transform: uppercase;
font-size:.8rem;
letter-spacing: 1px;
margin:0;
position:relative;
}
.generator {
margin-left: 1em;
position: relative;
top: -8px;
a {
display: inline-block;
transition: background-color .3s;
padding: 3px;
border-radius: 10px;
&:hover, &:focus {
background-color: rgba(100, 100, 100, .3);
}
}
}
}

32
footer/dist.html

@ -0,0 +1,32 @@
<div class="row">
<div class="col-sm-12 col-md-8">
<h2 class="site-title">#NOM_SITE_SPIP</h2>
#DESCRIPTIF_SITE_SPIP
</div>
<div class="col-sm-6 col-md-2">
<h4 class="footer-nav-title"><:theme_patisson:parcourir:></h4>
<B_rub>
<ul class="footer-nav">
<BOUCLE_rub(RUBRIQUES){racine}{par num titre, titre}>
<li class="footer-nav-item"><a href="#URL_RUBRIQUE">#TITRE</a></li>
</BOUCLE_rub>
</ul>
</B_rub>
</div>
<div class="col-sm-6 col-md-2">
<h4 class="footer-nav-title"><:theme_patisson:connecter:></h4>
<ul class="footer-nav">
<li class="footer-nav-item"><a rel="contents" href="#URL_PAGE{plan}"><:plan_site:></a></li><?php
if (isset($GLOBALS['visiteur_session']['id_auteur']) AND $GLOBALS['visiteur_session']['id_auteur']) {
?><li class="footer-nav-item"><a href="#URL_LOGOUT" rel="nofollow"><:icone_deconnecter:></a></li><?php
if (include_spip('inc/autoriser') AND autoriser('ecrire')){
?><li class="footer-nav-item"><a href="#EVAL{_DIR_RESTREINT_ABS}"><:espace_prive:></a></li><?php
}
} else {
?><li class="footer-nav-item"><a href="[(#URL_PAGE{login}|parametre_url{url,#SELF|parametre_url{url,''}})]" rel="nofollow" class='login_modal'><:lien_connecter:></a></li><?php
}
?><li class="footer-nav-item"><a href="#URL_PAGE{backend}" rel="alternate" title="<:syndiquer_site:>">[(#CHEMIN{feed.png}
|balise_img{<:icone_suivi_activite:>})]&nbsp;RSS&nbsp;2.0</a></li>
</ul>
</div>
</div>

7
inclure/second-footer.html

@ -1,5 +1,10 @@
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="site-info">#NOM_SITE_SPIP</div>
<p class="colophon">
<BOUCLE_annee(ARTICLES){par date}{0,1}>[(#DATE|annee|!={#VAL{Y}|date}|oui)[(#DATE|annee)]]</BOUCLE_annee>-</B_annee>[(#DATE|annee) ]
 &mdash; <span class="site-info">#NOM_SITE_SPIP</span>
<small class="generator"><a href="https://www.spip.net/" rel="generator" title="<:site_realise_avec_spip:>" class="spip_out">[(#CHEMIN{spip.png}|balise_img{SPIP})]</a></small>
</p>
</div>
</div>

10
lang/theme_patisson_fr.php

@ -0,0 +1,10 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
'parcourir' => 'Parcourir',
'connecter' => 'Connecter',
);
Loading…
Cancel
Save