page25.tpl.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="en">
  12. <head>
  13. <title>This is a Blog post</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="blog" />
  19. <meta name="title" content="This is a Blog post" />
  20. <meta name="description" content="This is a full meta description of the article" />
  21. <meta name="generator" content="Dolibarr 16.0.0-alpha (https://www.dolibarr.org)" />
  22. <meta name="dolibarr:pageid" content="25" />
  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 async 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-this-is-a-blog-post">
  34. <!-- Enter here your HTML content. Add a section with an id tag and tag contenteditable="true" if you want to use the inline editor for the content -->
  35. <section id="mysection1" contenteditable="true" style="background: #fff; color: #000;">
  36. This is a blog post article...
  37. </section>
  38. </body>
  39. </html>
  40. <?php // BEGIN PHP
  41. $tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "html", 25);
  42. // END PHP ?>