SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/default/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\Request;
  8. use Sprout\Helpers\Skin;
  9. use Sprout\Helpers\SocialMeta;
  10. use Sprout\Helpers\Tags;
  11. use Sprout\Helpers\Url;
  12. use Sprout\Helpers\Widgets;
  13.  
  14.  
  15. if (empty($browser_title)) $browser_title = Navigation::buildBrowserTitle($page_title);
  16. if (!SocialMeta::hasTitle()) SocialMeta::setTitle($page_title);
  17. $main_content = ContentReplace::executeChain('main_content', $main_content);
  18. if (empty($banner)) $banner = Navigation::banner();
  19. ?>
  20. <!DOCTYPE html>
  21.  
  22. <html lang="en" class="no-js">
  23.  
  24. <head>
  25. <?php require_once 'partials/_meta-data.php'; ?>
  26.  
  27. <title><?php echo Enc::html($browser_title); ?></title>
  28.  
  29. <?php if (!empty($canonical_url)): echo Url::canonical($canonical_url); endif; ?>
  30.  
  31. <script type="text/javascript">var ROOT = 'SITE/';</script>
  32. <?= Jquery::script('jquery', 'front'); ?>
  33. <needs />
  34. <?php echo SocialMeta::render(); ?>
  35.  
  36. <?php Skin::common(); ?>
  37. <?php Skin::modules(); ?>
  38. <?php Skin::css('normalize', 'flexboxgrid', 'global', 'frankenmenu'); ?>
  39. <?php Skin::js('frankenmenu', 'skin'); ?>
  40.  
  41. <?php include 'partials/_google_analytics.php'; ?>
  42. </head>
  43. <body class="<?= Enc::html(@$controller_name); ?>">
  44. <!--[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]-->
  45.  
  46. <?php require 'partials/_mobile-header.php'; ?>
  47.  
  48. <div id="wrap">
  49. <a class="-vis-hidden" href="#content">Skip to Content</a>
  50.  
  51. <?php require 'partials/_header.php'; ?>
  52.  
  53. <div id="content" class="section section--content bg-white">
  54.  
  55. <div class="container">
  56.  
  57. <div class="row reverse">
  58.  
  59. <div class="col-xs-12 col-md-8">
  60. <div class="mainbar">
  61.  
  62. <h1><?php echo Enc::html($page_title); ?></h1>
  63.  
  64. <?php if (Navigation::matchedNode()): ?>
  65. <ul class="breadcrumb"><?php echo Navigation::breadcrumb('<li>', @$post_crumbs, '</li>'); ?></ul>
  66. <?php endif; ?>
  67.  
  68. <?php echo Notification::checkMessages(); ?>
  69.  
  70. <?php echo $main_content; ?>
  71.  
  72. <?php Tags::getList(@$tags); ?>
  73.  
  74. </div>
  75. </div>
  76.  
  77. <div class="col-xs-12 col-md-4">
  78. <div class="sidebar">
  79.  
  80. <?php echo Widgets::renderArea('sidebar'); ?>
  81.  
  82. </div>
  83. </div>
  84.  
  85. </div>
  86.  
  87. </div>
  88.  
  89. </div>
  90.  
  91.  
  92. <?php require 'partials/_footer.php'; ?>
  93.  
  94. </div>
  95.  
  96. </body>
  97. </html>
  98.