SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/harbor/inner.php

  1. <?php
  2. use Sprout\Helpers\ContentReplace;
  3. use Sprout\Helpers\Enc;
  4. use Sprout\Helpers\Jquery;
  5. use Sprout\Helpers\Navigation;
  6. use Sprout\Helpers\Notification;
  7. use Sprout\Helpers\Skin;
  8.  
  9.  
  10. if (empty($browser_title)) $browser_title = Navigation::buildBrowserTitle($page_title);
  11. $main_content = ContentReplace::executeChain('main_content', $main_content);
  12. ?>
  13. <!DOCTYPE html>
  14. <html lang="en" class="no-js">
  15.  
  16. <head>
  17. <?php require_once '_meta-data.php'; ?>
  18.  
  19. <title><?php echo Enc::html($browser_title); ?></title>
  20.  
  21. <script type="text/javascript">var ROOT = 'SITE/';</script>
  22. <?= Jquery::script('jquery', 'front'); ?>
  23. <needs />
  24.  
  25. <link rel="preconnect" href="https://fonts.googleapis.com">
  26. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  27. <link href="https://fonts.googleapis.com/css2?family=Amatic+SC&display=swap" rel="stylesheet">
  28.  
  29. <?= Skin::css('home', 'icons'); ?>
  30.  
  31. <?php require_once '_google_analytics.php'; ?>
  32. </head>
  33.  
  34. <body>
  35. <div bp="container">
  36.  
  37. <header bp="text-center">
  38. <img src="https://cdn.shopify.com/s/files/1/0401/9172/1631/files/Harbor_and_Sprout_Logo_in_color_with_text_300x300.png?v=1619754829" alt="<?php echo Enc::html($browser_title); ?>">
  39. </header>
  40.  
  41. <main>
  42. <h1><?php echo Enc::html($page_title); ?></h1>
  43.  
  44. <?= Notification::checkMessages(); ?>
  45.  
  46. <?= $main_content; ?>
  47. </main>
  48.  
  49. <footer>
  50. <p>&copy; <?= Enc::html(sprintf('%s - %s', date('Y'), Kohana::config('sprout.site_title'))); ?></p>
  51. </footer>
  52.  
  53. </div>
  54. </body>
  55. </html>
  56.