v0.2.0, un pas de géant
parent
f5f71fc918
commit
f39e29ba19
@ -1,7 +0,0 @@
|
||||
<div class="header__boussole">
|
||||
<div class="page--container">
|
||||
<nav class="nav">
|
||||
<a href="#">inclure un menu</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin sociaux
|
||||
* Licence GPL3
|
||||
*
|
||||
*/
|
||||
|
||||
if (!defined("_ECRIRE_INC_VERSION")) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserer une CSS pour le contenu embed
|
||||
*
|
||||
* @param $head
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function sociaux_insert_head_css($head) {
|
||||
include_spip('inc/config');
|
||||
if (lire_config('sociaux/css', 0)) {
|
||||
$head .= '<link rel="stylesheet" type="text/css" href="' . find_in_path('lib/socicon/style.css') . '" />' . "\n";
|
||||
$head .= '<link rel="stylesheet" type="text/css" href="' . find_in_path('css/sociaux.css') . '" />' . "\n";
|
||||
}
|
||||
|
||||
return $head;
|
||||
}
|
||||
|
||||
function sociaux_sociaux_lister($flux) {
|
||||
/**
|
||||
* On reprend les éléments initiaux de la v1 du plugin :
|
||||
* facebook, twitter, instagram, blogger, pinterest, linkedin, youtube, rss, email, tripadvisor, vimeo, flickr
|
||||
*
|
||||
*/
|
||||
if (isset($flux['data'])) {
|
||||
$flux['data']['mail'] = 'E-mail';
|
||||
$flux['data']['rss'] = 'RSS';
|
||||
$flux['data']['facebook'] = 'Facebook';
|
||||
$flux['data']['twitter'] = 'Twitter';
|
||||
$flux['data']['mastodon'] = 'Mastodon';
|
||||
$flux['data']['instagram'] = 'Instagram';
|
||||
$flux['data']['blogger'] = 'Blogger';
|
||||
$flux['data']['pinterest'] = 'Pinterest';
|
||||
$flux['data']['linkedin'] = 'Linkedin';
|
||||
$flux['data']['youtube'] = 'Youtube';
|
||||
$flux['data']['tripadvisor'] = 'TripAdvisor';
|
||||
$flux['data']['vimeo'] = 'Vimeo';
|
||||
$flux['data']['flickr'] = 'Flickr';
|
||||
$flux['data']['viber'] = 'Viber';
|
||||
$flux['data']['whatsapp'] = 'Whatsapp';
|
||||
$flux['data']['skype'] = 'Skype';
|
||||
}
|
||||
|
||||
return $flux;
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajoute les scripts JS et CSS de saisies dans l'espace privé
|
||||
*
|
||||
* @param string $flux
|
||||
* @return string
|
||||
**/
|
||||
function sociaux_header_prive($flux){
|
||||
$css = find_in_path('lib/socicon/style.css');
|
||||
$flux .= "\n<link rel='stylesheet' href='$css' type='text/css' media='all' />\n";
|
||||
return $flux;
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
<!-- connex -->[(#REM) charger un fichier different pour chaque page ]
|
||||
<!--<div class="page--container">
|
||||
</div>-->
|
@ -0,0 +1,18 @@
|
||||
<div class="page--container">
|
||||
<span class="initiatives"><:baz_april:des_initiatives_april:></span>
|
||||
<button type="button" class="btn-boussole"><:baz_april:site_april:></button>
|
||||
<nav class="nav"><BOUCLE_csv(DATA){source csv, #CHEMIN{csv/boussole.csv}}>
|
||||
<a href="#VALEUR{1}">#VALEUR{0}</a></BOUCLE_csv>
|
||||
</nav>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
jQuery(function($){
|
||||
|
||||
// afficher/masquer la boussole < medium
|
||||
$('.btn-boussole').on('click', function(){
|
||||
$(this).toggleClass('actif').siblings('.nav').toggleClass('ouvert');
|
||||
$('.principale .btn-nav').removeClass('actif').siblings('.nav-list').removeClass('ouvert');
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
@ -0,0 +1,6 @@
|
||||
April,https://www.april.org
|
||||
Expolibre,https://www.expolibre.org
|
||||
Chapril,https://www.chapril.org
|
||||
Libre à vous,https://www.libreavous.org
|
||||
Libre à lire,https://www.librealire.org
|
||||
Candidat.fr,https://www.candidat.fr
|
|
@ -0,0 +1,6 @@
|
||||
April,https://www.april.org
|
||||
Expolibre,https://www.expolibre.org
|
||||
Chapril,https://www.chapril.org
|
||||
Libre à vous,https://www.libreavous.org
|
||||
Libre à lire,https://www.librealire.org
|
||||
Candidat.fr,https://www.candidat.fr
|
|
@ -0,0 +1,14 @@
|
||||
<p class="colophon">
|
||||
|
||||
<span class="april"><img src="#CHEMIN{scss/img/logo_april_b.png}" /></span>
|
||||
|
||||
<BOUCLE_contact(ARTICLES){page=contact}>
|
||||
<a href="#URL_ARTICLE">#TITRE</a>
|
||||
</BOUCLE_contact>
|
||||
<INCLURE{fond=inclure/rezo} />
|
||||
<BOUCLE_mentions(ARTICLES){page=mentions}>
|
||||
<a href="#URL_ARTICLE">#TITRE</a>
|
||||
</BOUCLE_mentions>
|
||||
<a rel="contents" href="#URL_PAGE{plan}"><:plan_site:></a>
|
||||
|
||||
</p>
|
@ -0,0 +1,7 @@
|
||||
<div class="header__boussole">
|
||||
<div class="page--container">
|
||||
<nav class="nav"><BOUCLE_csv(DATA){source csv, #CHEMIN{csv/boussole.csv}}>
|
||||
<a href="#VALEUR{1}">#VALEUR{0}</a></BOUCLE_csv>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
@ -1,5 +1,5 @@
|
||||
<B_nav>
|
||||
<nav class="nav" aria-label="Menu principal">
|
||||
<nav class="nav principale" aria-label="Menu principal">
|
||||
<ul class="nav-list">
|
||||
<BOUCLE_nav(RUBRIQUES) {racine} {par num titre, titre}>
|
||||
<li class="nav-item[ (#EXPOSE)][ (#COMPTEUR_BOUCLE|=={1}|oui)first][ (#COMPTEUR_BOUCLE|=={#TOTAL_BOUCLE}|oui)last]"><a href="#URL_RUBRIQUE"[ class="(#EXPOSE)"]>#TITRE</a></li>
|
@ -0,0 +1,7 @@
|
||||
[(#REM) Avec plugin sociaux ]
|
||||
<!-- sociaux -->[(#SET{rezo,[(#PIPELINE{sociaux_lister,#ARRAY{args,#ARRAY{skel,#SQUELETTE,date,#ENV**{date}},data,#ARRAY}})]})]
|
||||
<span class="sociaux">
|
||||
<BOUCLE_rezo (DATA) {source tableau,#GET{rezo}}>[(#CONFIG{sociaux/#CLE}|oui)
|
||||
<a href="[(#CLE|=={mail}|oui)mailto:][(#CLE|=={skype}|oui)callto:]#CONFIG{sociaux/#CLE}" class="#CLE[(#CLE|in_array{#LISTE{rss,mail,whatsapp,skype}}|non)spip_out]">[(#CONFIG{sociaux/css}|oui)<span class="socicon socicon-#CLE"></span>]<span class="name">[(#VALEUR)]</span></a>]</BOUCLE_rezo>
|
||||
</span>
|
||||
<!-- #sociaux -->
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue