v2.4.6 : lister les réseaux sociaux
This commit is contained in:
parent
d6842f8ced
commit
e8ba1b75d5
@ -20,3 +20,34 @@ function baz_april_pre_typo($texte) {
|
|||||||
|
|
||||||
return $texte;
|
return $texte;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// ordonner la liste comme on veut
|
||||||
|
function baz_april_sociaux_maliste($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']['rss'] = 'RSS';
|
||||||
|
$flux['data']['mastodon'] = 'Mastodon';
|
||||||
|
$flux['data']['twitter'] = 'Twitter';
|
||||||
|
$flux['data']['facebook'] = 'Facebook';
|
||||||
|
$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';
|
||||||
|
$flux['data']['mail'] = 'E-mail';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $flux;
|
||||||
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<paquet
|
<paquet
|
||||||
prefix="baz_april"
|
prefix="baz_april"
|
||||||
categorie="squelette"
|
categorie="squelette"
|
||||||
version="2.4.5"
|
version="2.4.6"
|
||||||
schema="1.0.0"
|
schema="1.0.0"
|
||||||
etat="stable"
|
etat="stable"
|
||||||
compatibilite="[3.2.0;3.3.*]"
|
compatibilite="[3.2.0;3.3.*]"
|
||||||
@ -48,6 +48,7 @@
|
|||||||
|
|
||||||
<pipeline nom="autoriser" inclure="baz_april_autorisations.php"/>
|
<pipeline nom="autoriser" inclure="baz_april_autorisations.php"/>
|
||||||
<pipeline nom="pre_typo" inclure="baz_april_pipelines.php"/>
|
<pipeline nom="pre_typo" inclure="baz_april_pipelines.php"/>
|
||||||
|
<pipeline nom="sociaux_maliste" inclure="baz_april_pipelines.php"/>
|
||||||
|
|
||||||
<chemin path="squelettes"/>
|
<chemin path="squelettes"/>
|
||||||
<chemin path="squelettes/scss"/>
|
<chemin path="squelettes/scss"/>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[(#REM) Avec plugin sociaux ]
|
[(#REM) Avec plugin sociaux ]
|
||||||
<!-- sociaux -->[(#SET{rezo,[(#PIPELINE{sociaux_lister,#ARRAY{args,#ARRAY{skel,#SQUELETTE,date,#ENV**{date}},data,#ARRAY}})]})]
|
<!-- sociaux -->[(#SET{rezo,[(#PIPELINE{sociaux_maliste,#ARRAY{args,#ARRAY{skel,#SQUELETTE,date,#ENV**{date}},data,#ARRAY}})]})]
|
||||||
<span class="sociaux">
|
<span class="sociaux">
|
||||||
<BOUCLE_rezo (DATA) {source tableau,#GET{rezo}}>[(#CONFIG{sociaux/#CLE}|oui)
|
<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>
|
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user