template.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php // $Id: template.php,v 1.2 2006/03/15 14:34:45 pcool Exp $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004-2006 Dokeos S.A.
  6. Copyright (c) Sally "Example" Programmer (sally@somewhere.net)
  7. //add your name + the name of your organisation - if any - to this list
  8. For a full list of contributors, see "credits.txt".
  9. The full license can be read in "license.txt".
  10. This program is free software; you can redistribute it and/or
  11. modify it under the terms of the GNU General Public License
  12. as published by the Free Software Foundation; either version 2
  13. of the License, or (at your option) any later version.
  14. See the GNU General Public License for more details.
  15. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  16. Mail: info@dokeos.com
  17. ==============================================================================
  18. */
  19. /**
  20. ==============================================================================
  21. * This file is a code template;
  22. * copy the code and paste it in a new file to begin your own work.
  23. *
  24. * @package dokeos.plugin
  25. ==============================================================================
  26. */
  27. /*
  28. ==============================================================================
  29. INIT SECTION
  30. ==============================================================================
  31. */
  32. // name of the language file which needs to be included
  33. // 'inc.php' is automatically appended to the file name
  34. // $langFile = "langFile";
  35. // global settings initialisation
  36. // also provides access to main, database and display API libraries
  37. include("../inc/global.inc.php");
  38. /*
  39. -----------------------------------------------------------
  40. Libraries
  41. -----------------------------------------------------------
  42. */
  43. //the main_api.lib.php, database.lib.php and display.lib.php
  44. //libraries are included by default
  45. /*
  46. -----------------------------------------------------------
  47. Header
  48. -----------------------------------------------------------
  49. */
  50. // Optional extra http or html header
  51. // If you need to add some HTTP/HTML headers code
  52. // like JavaScript functions, stylesheets, redirects, put them here.
  53. // $httpHeadXtra[] = "";
  54. // $httpHeadXtra[] = "";
  55. // ...
  56. //
  57. // $htmlHeadXtra[] = "";
  58. // $htmlHeadXtra[] = "";
  59. // ...
  60. $tool_name = "Example Plugin"; // title of the page (should come from the language file)
  61. Display::display_header($tool_name);
  62. /*
  63. ==============================================================================
  64. FUNCTIONS
  65. ==============================================================================
  66. */
  67. // put your functions here
  68. // if the list gets large, divide them into different sections:
  69. // display functions, tool logic functions, database functions
  70. // try to place your functions into an API library or separate functions file - it helps reuse
  71. /*
  72. ==============================================================================
  73. MAIN CODE
  74. ==============================================================================
  75. */
  76. // Put your main code here. Keep this section short,
  77. // it's better to use functions for any non-trivial code
  78. api_display_tool_title($tool_name);
  79. Display::display_normal_message("Hello world!");
  80. /*
  81. ==============================================================================
  82. FOOTER
  83. ==============================================================================
  84. */
  85. Display::display_footer();
  86. ?>