pas encore de surcharge du sociaux + fix initiatives

This commit is contained in:
chankalan 2020-02-28 03:11:51 +01:00
parent 838354cd2e
commit 8abcfc4354
2 changed files with 4 additions and 72 deletions

View File

@ -1,68 +0,0 @@
<?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;
}

View File

@ -154,9 +154,9 @@
color:white;
.btn-boussole {
font-size:0.8rem;
display:none;
left:$spacer;
top:0;
margin-left:-$spacer;
background:$couleurPrincipale;
color:white;
@media ($bp-medium) {
@ -182,11 +182,11 @@
margin-top:$spacer;
@media ($bp-medium) {
color:$couleurPrincipaleDowner;
font-size:0.7em;
font-size:0.6em;
margin:0;
position:absolute;
bottom:-$spacer;
left:$spacer;
left:$spacer*1.6;
}
}
}