SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/default/wide.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\Request;
  8. use Sprout\Helpers\Skin;
  9. use Sprout\Helpers\SocialMeta;
  10. use Sprout\Helpers\Tags;
  11. use Sprout\Helpers\Url;
  12.  
  13.  
  14. if (empty($browser_title)) $browser_title = Navigation::buildBrowserTitle($page_title);
  15. if (!SocialMeta::hasTitle()) SocialMeta::setTitle($page_title);
  16. $main_content = ContentReplace::executeChain('main_content', $main_content);
  17. if (empty($banner)) $banner = Navigation::banner();
  18. ?>
  19. <!DOCTYPE html>
  20.  
  21. <html lang="en" class="no-js">
  22.  
  23. <head>
  24. <?php require_once 'partials/_meta-data.php'; ?>
  25.  
  26. <title><?php echo Enc::html($browser_title); ?></title>
  27.  
  28. <?php if (!empty($canonical_url)): echo Url::canonical($canonical_url); endif; ?>
  29.  
  30. <script type="text/javascript">var ROOT = 'SITE/';</script>
  31. <?= Jquery::script('jquery', 'front'); ?>
  32. <needs />
  33. <?php echo SocialMeta::render(); ?>
  34.  
  35. <?php Skin::common(); ?>
  36. <?php Skin::modules(); ?>
  37. <?php Skin::css('normalize', 'flexboxgrid', 'global', 'frankenmenu'); ?>
  38. <?php Skin::js('frankenmenu', 'skin'); ?>
  39.  
  40. <?php include 'partials/_google_analytics.php'; ?>
  41. </head>
  42. <body class="<?= Enc::html(@$controller_name); ?>">
  43. <!--[if IE]><div class="old-browser"><p>This website uses modern construction techniques, which may not render correctly in your old browser. <br>We recommend updating your browser for the best online experience.</p> <p>Visit <a href="http://browsehappy.com/">browsehappy.com</a> to help you select an upgrade.</p></div><![endif]-->
  44.  
  45. <?php require 'partials/_mobile-header.php'; ?>
  46.  
  47. <div id="wrap">
  48. <a class="-vis-hidden" href="#content">Skip to Content</a>
  49.  
  50. <?php require 'partials/_header.php'; ?>
  51.  
  52. <div id="content" class="section section--content bg-white">
  53.  
  54. <div class="container">
  55.  
  56. <div class="mainbar mainbar--wide">
  57.  
  58. <h1><?php echo Enc::html($page_title); ?></h1>
  59.  
  60. <?php if (Navigation::matchedNode()): ?>
  61. <ul class="breadcrumb"><?php echo Navigation::breadcrumb('<li>', @$post_crumbs, '</li>'); ?></ul>
  62. <?php endif; ?>
  63.  
  64. <?php echo Notification::checkMessages(); ?>
  65.  
  66. <?php echo $main_content; ?>
  67.  
  68. <?php Tags::getList(@$tags); ?>
  69.  
  70. </div>
  71.  
  72. </div>
  73.  
  74. </div>
  75.  
  76.  
  77. <?php require 'partials/_footer.php'; ?>
  78.  
  79. </div>
  80.  
  81. </body>
  82. </html>
  83.