page21.tpl.php 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php // BEGIN PHP
  2. $websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__;
  3. if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) {
  4. $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2;
  5. require_once $pathdepth ? str_repeat('../', $pathdepth) : './'.'master.inc.php';
  6. } // Not already loaded
  7. require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php';
  8. require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php';
  9. ob_start();
  10. // END PHP ?>
  11. <html lang="fr">
  12. <head>
  13. <title>Footer</title>
  14. <meta charset="utf-8">
  15. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  16. <meta name="robots" content="index, follow" />
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <meta name="keywords" content="" />
  19. <meta name="title" content="Footer" />
  20. <meta name="description" content="" />
  21. <meta name="generator" content="Dolibarr 14.0.0-alpha (https://www.dolibarr.org)" />
  22. <meta name="dolibarr:pageid" content="21" />
  23. <?php if ($website->use_manifest) { print '<link rel="manifest" href="/manifest.json.php" />'."\n"; } ?>
  24. <!-- Include link to CSS file -->
  25. <link rel="stylesheet" href="/styles.css.php?website=<?php echo $websitekey; ?>" type="text/css" />
  26. <!-- Include link to JS file -->
  27. <script src="/javascript.js.php"></script>
  28. <!-- Include HTML header from common file -->
  29. <?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?>
  30. <!-- Include HTML header from page header block -->
  31. </head>
  32. <!-- File generated by Dolibarr website module editor -->
  33. <body id="bodywebsite" class="bodywebsite bodywebpage-footer">
  34. <!-- Footer -->
  35. <footer id="footer">
  36. <section contenteditable="true">
  37. <h2>Aliquam sed mauris</h2>
  38. <p>Sed lorem ipsum dolor sit amet et nullam consequat feugiat consequat magna adipiscing tempus etiam dolore veroeros. eget dapibus mauris. Cras aliquet, nisl ut viverra sollicitudin, ligula erat egestas velit, vitae tincidunt odio.</p>
  39. <ul class="actions">
  40. <li><a href="generic.php" class="buttonwebsite">Learn More</a></li>
  41. </ul>
  42. </section>
  43. <section contenteditable="true">
  44. <h2>Etiam feugiat</h2>
  45. <dl class="alt">
  46. <dt>Address</dt>
  47. <dd><?php echo $mysoc->getFullAddress(1, '<br>'); ?></dd>
  48. <dt>Phone</dt>
  49. <dd><?php echo $mysoc->phone; ?></dd>
  50. <dt>Email</dt>
  51. <dd><a href="mailto:<?php echo $mysoc->email; ?>"><?php echo $mysoc->email; ?></a></dd>
  52. </dl>
  53. <ul class="icons">
  54. <ul class="list-inline">
  55. <?php foreach ($mysoc->socialnetworks as $key => $value) {
  56. print '<li><a target="_blank" class="icon alt fab fa-'.$key.'" href="'.(preg_match('/^http/', $value) ? $value : 'https://www.'.$key.'.com/'.$value).'"><span class="label">'.ucfirst($key).'</span></a></li>';
  57. } ?>
  58. </ul>
  59. </section>
  60. <div class="copyright">&copy; Untitled. Design: <a href="https://html5up.net">HTML5 UP</a> adapted for <a href="https://www.dolibarr.org">Dolibarr</a> by <a href="https://www.nltechno.com">NLTechno</a>.</div>
  61. </footer>
  62. <script>
  63. // When the user scrolls down 20px from the top of the document, show the button
  64. window.onscroll = function() {scrollFunction()};
  65. function scrollFunction() {
  66. console.log("Execute code for scroll Top button");
  67. if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
  68. document.getElementById("myBtnToTop").style.display = "block";
  69. } else {
  70. document.getElementById("myBtnToTop").style.display = "none";
  71. }
  72. }
  73. // When the user clicks on the button, scroll to the top of the document
  74. function topFunction() {
  75. document.body.scrollTop = 0; // For Safari
  76. document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
  77. }
  78. </script>
  79. <button onclick="topFunction()" id="myBtnToTop" title="Go to top">Top</button>
  80. </body>
  81. </html>
  82. <?php // BEGIN PHP
  83. $tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "html", 21);
  84. // END PHP ?>