PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/_plugins_/barre_accessibilite/barrac_mes_options.php

https://bitbucket.org/pombredanne/spip-zone-treemap
PHP | 186 lines | 125 code | 15 blank | 46 comment | 1 complexity | 6d3fb3a53be2d493ed907a854a75c971 MD5 | raw file
  1. <?php
  2. // barrac_mes_options.php
  3. // $LastChangedRevision$
  4. // $LastChangedBy$
  5. // $LastChangedDate$
  6. /*****************************************************
  7. Copyright (C) 2008 Christian PAULUS
  8. cpaulus@quesaco.org - http://www.quesaco.org/
  9. /*****************************************************
  10. This file is part of BarrAc.
  11. BarrAc is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15. BarrAc is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU General Public License for more details.
  19. You should have received a copy of the GNU General Public License
  20. along with BarrAc; if not, write to the Free Software
  21. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. /*****************************************************
  23. Ce fichier est un des composants de BarrAc.
  24. BarrAc est un programme libre, vous pouvez le redistribuer et/ou le modifier
  25. selon les termes de la Licence Publique Generale GNU publiee par
  26. la Free Software Foundation (version 2 ou bien toute autre version ulterieure
  27. choisie par vous).
  28. BarrAc est distribue car potentiellement utile, mais SANS AUCUNE GARANTIE,
  29. ni explicite ni implicite, y compris les garanties de commercialisation ou
  30. d'adaptation dans un but specifique. Reportez-vous a la Licence Publique Generale GNU
  31. pour plus de details.
  32. Vous devez avoir recu une copie de la Licence Publique Generale GNU
  33. en meme temps que ce programme ; si ce n'est pas le cas, ecrivez a la
  34. Free Software Foundation, Inc.,
  35. 59 Temple Place, Suite 330, Boston, MA 02111-1307, Etats-Unis.
  36. *****************************************************/
  37. if (!defined('_DIR_PLUGIN_BARRAC')) {
  38. $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
  39. define('_DIR_PLUGIN_BARRAC',(_DIR_PLUGINS.end($p)).'/');
  40. }
  41. define("_BARRAC_PREFIX", "barrac");
  42. define("_BARRAC_LANG", _BARRAC_PREFIX.":");
  43. define("_DIR_PLUGIN_BARRAC_IMG_PACK", _DIR_PLUGIN_BARRAC."images/");
  44. define("_BARRAC_META_PREFERENCES", "barrac_preferences");
  45. define("_BARRAC_FAMILLE_DEFAULT", "standard");
  46. define("_BARRAC_POSITION_DEFAULT", "top_left");
  47. define("_BARRAC_PRESENTATION_VERTICAL", "vertical");
  48. define("_BARRAC_PRESENTATION_HORIZONTAL", "horizontal");
  49. define("_BARRAC_PRESENTATION_DEFAULT", _BARRAC_PRESENTATION_HORIZONTAL);
  50. define("_BARRAC_ICONE_TAILLE_DEFAULT", 24);
  51. define("_BARRAC_ICONE_TAILLE_MAX", 96);
  52. define("_BARRAC_ICONE_MARGE_DEFAULT", 8);
  53. define("_BARRAC_ICONE_MARGE_MAX", 24);
  54. define("_BARRAC_ACTION_POINTER", 'pointer');
  55. define("_BARRAC_ACTION_GROSSIR", 'grossir');
  56. define("_BARRAC_ACTION_REDUIRE", 'reduire');
  57. define("_BARRAC_ACTION_ESPACER", 'espacer');
  58. define("_BARRAC_ACTION_RAPPROCHER", 'rapprocher');
  59. define("_BARRAC_ACTION_ENCADRER", 'encadrer');
  60. define("_BARRAC_ACTION_DECADRER", 'decadrer');
  61. define("_BARRAC_ACTION_INVERSER", 'inverser');
  62. define("_BARRAC_ACTION_REPLACER", 'replacer'); // inverse de inverser
  63. define("_BARRAC_ACTION_FOND", 'fond'); // fond de l'icone
  64. define("_BARRAC_POINTER_DEFAULT", "#contenu"); // ancre par defaut de SPIP
  65. define("_BARRAC_GROSSIR_TAILLE_MAX", 1000);
  66. define("_BARRAC_POSITIONS_ARRAY",
  67. serialize(
  68. array(
  69. 'top_left' => -90
  70. , 'top_right' => 0
  71. , 'bottom_left' => 180
  72. , 'bottom_right' => 90
  73. )
  74. )
  75. );
  76. define("_BARRAC_BOUTONS_RELATIONS",
  77. serialize(
  78. array(
  79. _BARRAC_ACTION_GROSSIR => _BARRAC_ACTION_REDUIRE
  80. , _BARRAC_ACTION_ESPACER => _BARRAC_ACTION_RAPPROCHER
  81. , _BARRAC_ACTION_ENCADRER => _BARRAC_ACTION_DECADRER
  82. , _BARRAC_ACTION_INVERSER => _BARRAC_ACTION_REPLACER
  83. )
  84. )
  85. );
  86. define("_BARRAC_BOUTONS_PARENTS",
  87. serialize(
  88. array(
  89. _BARRAC_ACTION_POINTER, _BARRAC_ACTION_GROSSIR, _BARRAC_ACTION_ESPACER, _BARRAC_ACTION_ENCADRER, _BARRAC_ACTION_INVERSER
  90. )
  91. )
  92. );
  93. define("_BARRAC_BOUTONS_FRERES",
  94. serialize(
  95. array(
  96. _BARRAC_ACTION_REDUIRE, _BARRAC_ACTION_RAPPROCHER, _BARRAC_ACTION_DECADRER, _BARRAC_ACTION_REPLACER
  97. )
  98. )
  99. );
  100. define("_BARRAC_DEFAULT_VALUES_ARRAY",
  101. serialize(
  102. array(
  103. // par defaut, tous les boutons actifs (ne valider que les parents !)
  104. _BARRAC_ACTION_POINTER => 'oui'
  105. , _BARRAC_ACTION_GROSSIR => 'oui'
  106. , _BARRAC_ACTION_ESPACER => 'oui'
  107. , _BARRAC_ACTION_ENCADRER => 'oui'
  108. , _BARRAC_ACTION_INVERSER => 'oui'
  109. , 'barrac_position_barre' => _BARRAC_POSITION_DEFAULT // coin de l'ecran : top_left, top_right, bottom_left, bottom_right
  110. , 'barrac_position_fixed' => 'non'
  111. , 'barrac_presentation_barre' => _BARRAC_PRESENTATION_DEFAULT // vertical || horizontal
  112. , 'barrac_marge_entre_boutons' => _BARRAC_ICONE_MARGE_DEFAULT
  113. , 'barrac_taille_bouton' => _BARRAC_ICONE_TAILLE_DEFAULT
  114. , 'barrac_pointeur_ancre' => _BARRAC_POINTER_DEFAULT // ancre du contenu de la page
  115. , 'barrac_famille_boutons' => _BARRAC_FAMILLE_DEFAULT
  116. , 'barrac_flip_pointer' => 'oui' // rotation de la fleche sur le centre de l'ecran (pointer)
  117. , 'barrac_flip_horizontal' => 'oui'
  118. , 'barrac_flip_vertical' => 'oui'
  119. , 'barrac_flip_contextuel' => 'oui'
  120. , 'barrac_grossir_global' => 'oui'
  121. , 'barrac_grossir_taille' => '600'
  122. , 'barrac_grossir_cssfile' => '' // si complete, force barrac_grossir_global => 'non'
  123. , 'barrac_espacer_global' => 'oui'
  124. , 'barrac_espacer_taille' => '2ex'
  125. , 'barrac_espacer_cssfile' => '' // si complete, force barrac_espacer_global => 'non'
  126. , 'barrac_encadrer_global' => 'oui'
  127. , 'barrac_encadrer_taille' => '12px'
  128. , 'barrac_encadrer_padding' => '12px'
  129. , 'barrac_encadrer_couleur' => 'black'
  130. , 'barrac_encadrer_cssfile' => '' // si complete, force barrac_encadrer_global => 'non'
  131. , 'barrac_inverser_global' => 'oui'
  132. , 'barrac_inverser_color' => '#000'
  133. , 'barrac_inverser_bgcolor' => '#fff'
  134. , 'barrac_inverser_cssfile' => '' // si complete, force barrac_inverser_global => 'non'
  135. , 'barrac_mobile_no_display' => "oui" // ne pas afficher sur les mobiles
  136. )
  137. )
  138. );
  139. define("_BARRAC_BOUTONS_LEGENDES",
  140. serialize(
  141. array(
  142. _BARRAC_ACTION_POINTER => "aller_au_contenu"
  143. , _BARRAC_ACTION_GROSSIR => "grossir_taille_caracteres"
  144. , _BARRAC_ACTION_REDUIRE => "reduire_taille_caracteres"
  145. , _BARRAC_ACTION_ESPACER => "espacer_blocs"
  146. , _BARRAC_ACTION_RAPPROCHER => "retablir_blocs"
  147. , _BARRAC_ACTION_ENCADRER => "encadrer_paragraphes"
  148. , _BARRAC_ACTION_DECADRER => "decadrer_paragraphes"
  149. , _BARRAC_ACTION_INVERSER => "inverser_couleurs"
  150. , _BARRAC_ACTION_REPLACER => "retrouver_couleurs"
  151. )
  152. )
  153. );
  154. ?>