You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
803 B
PHP
41 lines
803 B
PHP
<?php
|
|
/**
|
|
* Plugin Rôles
|
|
* (c) 2012 Marcillaud Matthieu
|
|
* Licence GNU/GPL
|
|
*/
|
|
|
|
if (!defined('_ECRIRE_INC_VERSION')) return;
|
|
|
|
|
|
|
|
/**
|
|
* Ajoute Bootstrap (minimal) aux plugins chargés
|
|
*
|
|
* @param array $flux
|
|
* Liste des js chargés
|
|
* @return array
|
|
* Liste complétée des js chargés
|
|
**/
|
|
function roles_jquery_plugins($flux) {
|
|
$flux[] = 'javascript/bootstrap-dropdown.js';
|
|
return $flux;
|
|
}
|
|
|
|
|
|
/**
|
|
* Ajoute Bootstrap (minimal) aux css chargées
|
|
*
|
|
* @param string $texte Contenu du head HTML concernant les CSS
|
|
* @return string Contenu du head HTML concernant les CSS
|
|
**/
|
|
function roles_header_prive_css($texte) {
|
|
|
|
$css = find_in_path('css/bootstrap-button-dropdown.css');
|
|
$texte .= "<link rel='stylesheet' type='text/css' media='all' href='$css' />\n";
|
|
|
|
return $texte;
|
|
}
|
|
|
|
?>
|