Browse Source

Bricoles

svn/root/tags/v2.1.0
kent1@arscenic.info 7 years ago
parent
commit
d789f6af93
  1. 6
      lang/paquet-roles_fr.php
  2. 6
      lang/roles_fr.php
  3. BIN
      prive/themes/spip/images/inserer-8.png
  4. BIN
      prive/themes/spip/images/roles-128.png
  5. BIN
      prive/themes/spip/images/roles-32.png
  6. BIN
      prive/themes/spip/images/roles-64.png
  7. 13
      roles_fonctions.php
  8. 10
      roles_pipelines.php

6
lang/paquet-roles_fr.php

@ -1,7 +1,9 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
@ -10,5 +12,3 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
'roles_nom' => 'Rôles',
'roles_slogan' => 'Typer des liaisons',
);
?>

6
lang/roles_fr.php

@ -1,7 +1,9 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP
if (!defined('_ECRIRE_INC_VERSION')) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
$GLOBALS[$GLOBALS['idx_lang']] = array(
// A
@ -26,5 +28,3 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
'saisir_role' => 'Indiquer un rôle…',
'saisir_valeur' => 'Valeur',
);
?>

BIN
prive/themes/spip/images/inserer-8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 229 B

BIN
prive/themes/spip/images/roles-128.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
prive/themes/spip/images/roles-32.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
prive/themes/spip/images/roles-64.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

13
roles_fonctions.php

@ -5,12 +5,14 @@
* Licence GNU/GPL
*/
if (!defined('_ECRIRE_INC_VERSION')) return;
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
include_spip('inc/roles');
/**
* Retrouve la traduction d'un rôle dans un objet donné
* Retrouve la traduction d'un rôle dans un objet donné
*
* @param string $role
* Le role dans la base de donnée
@ -18,11 +20,12 @@ include_spip('inc/roles');
* L'objet sur lequel est le rôle
* @return string
* Le texte du rôle dans la langue en cours
*
*
**/
function filtre_role_dist($role, $objet) {
if (!$role) return '';
if (!$objet) return $role;
if (!$role or !$objet) {
return '';
}
$roles = roles_presents(table_objet(objet_type($objet)));
if (isset($roles['titres'][$role])) {
return _T($roles['titres'][$role]);

10
roles_pipelines.php

@ -9,10 +9,9 @@ if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Ajoute Bootstrap dropdown aux plugins chargés
*
*
* @param array $flux
* Liste des js chargés
* @return array
@ -27,10 +26,9 @@ function roles_jquery_plugins($flux) {
return $flux;
}
/**
* Ajoute Bootstrap dropdown aux css chargées dans le privé
*
*
* @param string $flux Contenu du head HTML concernant les CSS
* @return string Contenu du head HTML concernant les CSS
**/
@ -50,11 +48,11 @@ function roles_header_prive_css($flux) {
* @return string Contenu du head HTML concernant les CSS
**/
function roles_insert_head_css($flux) {
$config = lire_config('chosen', array());
if (isset($config['active']) and $config['active']=='oui') {
$css = find_in_path('css/bootstrap-button-dropdown.css');
$flux .= '<link rel="stylesheet" href="'.direction_css($css).'" type="text/css" media="all" />' . "\n";
}
return $flux;
}
}

Loading…
Cancel
Save