PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/_plugins_/mon_diplome/mon_diplome_options.php

https://bitbucket.org/pombredanne/spip-zone-treemap
PHP | 101 lines | 49 code | 6 blank | 46 comment | 1 complexity | a59eb08eabfdff707e490318ff1bcda3 MD5 | raw file
  1. <?php
  2. // mon_diplome_options.php
  3. // $LastChangedRevision$
  4. // $LastChangedBy$
  5. // $LastChangedDate$
  6. /*****************************************************
  7. Copyright (C) 2009 Christian PAULUS
  8. cpaulus@quesaco.org - http://www.quesaco.org/
  9. /*****************************************************
  10. This file is part of Plom.
  11. Plom 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. Plom 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 Plom; 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 Plom.
  24. Plom est un programme libre, vous pouvez le redistribuer et/ou le modifier
  25. selon les termes de la Licence Publique Generale GNU publie'e par
  26. la Free Software Foundation (version 2 ou bien toute autre version ulterieure
  27. choisie par vous).
  28. Plom 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. // pour SPIP 1.9.1
  38. if(!defined('_DIR_PLUGIN_PLOM')) {
  39. $p = explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
  40. define('_DIR_PLUGIN_PLOM',(_DIR_PLUGINS.end($p)).'/');
  41. }
  42. define("_DIR_IMAGES_PLOM", _DIR_PLUGIN_PLOM."images/");
  43. define("_PLOM_PAGE_DEFAUT", "mon_diplome");
  44. define("_PLOM_MODELE_DEFAUT", "mon_diplome");
  45. $plom_options = array(
  46. 'id_auteur' => null // # de celui identifié
  47. // titre du document
  48. , 'titre_document' => ""
  49. // le fond du diplome peut être un PDF
  50. , 'appliquer_fond' => "oui"
  51. , 'modele_fond' => "mon_diplome"
  52. // le modèle par défaut (texte)
  53. , 'modele_texte' => 'mon_diplome'
  54. // format sortie, proprietes PDF, etc...
  55. , 'format' => "A4"
  56. , 'orientation' => "landscape"
  57. , 'creator' => "mon_diplome+html2pdf+fpdf/SPIP"
  58. , 'author' => $GLOBALS['meta']['nom_site']
  59. , 'subject' => _T('plom:pdf_sujet_defaut')
  60. , 'title' => _T('plom:pdf_titre_defaut')
  61. // squelette de sortie
  62. // doit se trouver a la racine du plug ou squelettes
  63. // ici, 'mon_diplome.html'
  64. , 'page' => "mon_diplome"
  65. // prefs complémentaires
  66. , 'SetAutoPageBreak' => false
  67. , 'SetAutoPageBreakMargin' => 0
  68. , 'MarginLeft' => 0
  69. , 'MarginTop' => 0
  70. , 'SetDisplayMode' => "real" // 'fullpage' || 'fullwidth' || 'real' || 'default'
  71. );
  72. ?>