4
0

index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Place all custom page files here in this directory....
  2. Name file something like "custom_code_presentation.php" and make sure to start page contents like so:
  3. <pre>
  4. &lt;?php
  5. /*
  6. * Make sure to edit "name_here" with your page name - i.e. custom_code_presentation
  7. * You will edit on both "$GLOBALS['organizrPages'][] = 'name_here';" and "function get_page_name_here($Organizr)"
  8. */
  9. $GLOBALS['organizrPages'][] = 'name_here';
  10. function get_page_name_here($Organizr)
  11. {
  12. if (!$Organizr) {
  13. $Organizr = new Organizr();
  14. }
  15. /*
  16. * Take this out if you dont care if DB has been created
  17. */
  18. if ((!$Organizr->hasDB())) {
  19. return false;
  20. }
  21. /*
  22. * Take this out if you dont want to be for admin only
  23. */
  24. if (!$Organizr->qualifyRequest(1, true)) {
  25. return false;
  26. }
  27. return '
  28. &#x3C;script&#x3E;
  29. // Custom JS here
  30. &#x3C;/script&#x3E;
  31. &#x3C;div class=&#x22;panel bg-org panel-info&#x22;&#x3E;
  32. &#x3C;div class=&#x22;panel-heading&#x22;&#x3E;
  33. &#x3C;span lang=&#x22;en&#x22;&#x3E;Template&#x3C;/span&#x3E;
  34. &#x3C;/div&#x3E;
  35. &#x3C;div class=&#x22;panel-wrapper collapse in&#x22; aria-expanded=&#x22;true&#x22;&#x3E;
  36. &#x3C;div class=&#x22;panel-body bg-org&#x22;&#x3E;
  37. &#x3C;/div&#x3E;
  38. &#x3C;/div&#x3E;
  39. &#x3C;/div&#x3E;
  40. ';
  41. }
  42. </pre>