help.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * Project view.
  4. *
  5. * Contains the view layout and some code to present the data.
  6. *
  7. * @author Iñigo Valentin <i@inigovalentin.com>
  8. * @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3
  9. * @package IV
  10. * @category View
  11. * @property Help_Page $page The page model.
  12. * @var Help_Page $page The page model.
  13. */
  14. ?>
  15. <!DOCTYPE html>
  16. <html lang='<?=get_context()->get_lang()?>'>
  17. <head>
  18. <?=$page->generate_head()?>
  19. </head>
  20. <body>
  21. <?php
  22. include __DIR__ . "/inc/header.php";
  23. ?>
  24. <main>
  25. <?php
  26. $sections = ["info", "license", "privacy", "cookies"];
  27. $first = true;
  28. foreach($sections as $section) {
  29. ?>
  30. <section id='<?=$section?>' class='help <?=$first ? "selected" : ""?>'>
  31. <h3 class='pointer' onClick='toggleHelp("<?=$section?>");'>
  32. <img class='slider' src='<?=URL::IMG["CONTROL"]?>slid_r.svg' alt='>'/>
  33. <?=$page->get_section_title($section)?>
  34. </h3>
  35. <div>
  36. <?=$page->get_section_text($section)?>
  37. </div>
  38. </section>
  39. <?php
  40. $first = false;
  41. }
  42. ?>
  43. </main>
  44. <div id='policy_cover'></div>
  45. <section id='policy'>
  46. <h3>
  47. <?=TEXT::get("HELP_POLICY")?>
  48. <div id='policy_close'>
  49. <a onClick='closePolicy();'>
  50. <img src='<?=URL::IMG["LAYOUT"]?>control/close.svg'/>
  51. </a>
  52. </div>
  53. </h3>
  54. <div>
  55. <?=get_context()->get_user()->get_text("POLICY")?>
  56. </div>
  57. </section>
  58. <?php
  59. include __DIR__ . "/inc/footer.php";
  60. ?>
  61. </body>
  62. </html>