2020-02-18 13:23:20 +01:00
|
|
|
<?php
|
2020-05-16 12:21:49 +02:00
|
|
|
/**
|
|
|
|
* Utilisations de pipelines par baz_april
|
|
|
|
*
|
|
|
|
* @plugin baz_april
|
|
|
|
* @copyright 2019
|
|
|
|
* @author Nicolas Dorigny
|
|
|
|
* @licence GNU/GPL
|
|
|
|
* @package SPIP\baz_april\Pipelines
|
|
|
|
*/
|
2020-02-18 13:23:20 +01:00
|
|
|
|
2020-05-16 12:21:49 +02:00
|
|
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function baz_april_pre_typo($texte) {
|
|
|
|
// belles puces
|
|
|
|
$texte = preg_replace('/^-\s?(?!\*|#|-)/m', '-* ', $texte);
|
|
|
|
|
|
|
|
return $texte;
|
|
|
|
}
|
2021-03-08 22:12:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-03-11 16:30:51 +01:00
|
|
|
// // ordonner la liste comme on veut
|
2021-03-08 22:12:23 +01:00
|
|
|
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;
|
|
|
|
}
|