SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/default/home.php

  1. <?php
  2. use Sprout\Helpers\ContentReplace;
  3. use Sprout\Helpers\Enc;
  4. use Sprout\Helpers\Jquery;
  5. use Sprout\Helpers\Notification;
  6. use Sprout\Helpers\Request;
  7. use Sprout\Helpers\Skin;
  8. use Sprout\Helpers\Url;
  9. use Sprout\Helpers\Widgets;
  10.  
  11.  
  12. $page['text'] = ContentReplace::executeChain('main_content', $page['text']);
  13. ?>
  14. <!DOCTYPE html>
  15. <html lang="en" class="no-js">
  16.  
  17. <head>
  18. <?php require_once 'partials/_meta-data.php'; ?>
  19.  
  20. <title><?php echo Enc::html($browser_title); ?></title>
  21.  
  22. <script type="text/javascript">var ROOT = 'SITE/';</script>
  23. <?= Jquery::script('jquery', 'front'); ?>
  24. <needs />
  25.  
  26. <?php Skin::common(); ?>
  27. <?php Skin::css('normalize', 'flexboxgrid', 'global', 'frankenmenu'); ?>
  28. <?php Skin::js('frankenmenu','skin'); ?>
  29.  
  30. <?php require_once 'partials/_google_analytics.php'; ?>
  31. </head>
  32. <body>
  33. <!--[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]-->
  34.  
  35. <a class="-vis-hidden" href="#content">Skip to Content</a>
  36.  
  37. <?php require 'partials/_mobile-header.php'; ?>
  38.  
  39. <div id="wrap">
  40.  
  41. <?php require 'partials/_header.php'; ?>
  42.  
  43. <?php require 'partials/_hero-banner.php'; ?>
  44.  
  45. <?php require 'partials/_promos-three.php'; ?>
  46.  
  47. <div id="content" class="section section--content bg-white">
  48.  
  49. <div class="container">
  50.  
  51. <div class="row reverse">
  52.  
  53. <div class="col-xs-12 col-md-8">
  54. <div class="mainbar">
  55.  
  56. <h1><?php echo Enc::html(Kohana::config('sprout.site_title')); ?></h1>
  57.  
  58. <?php echo Notification::checkMessages(); ?>
  59.  
  60. <?php echo $page['text']; ?>
  61.  
  62. </div>
  63. </div>
  64.  
  65. <div class="col-xs-12 col-md-4">
  66. <div class="sidebar">
  67.  
  68. <?php echo Widgets::renderArea('sidebar'); ?>
  69.  
  70. </div>
  71. </div>
  72.  
  73. </div>
  74.  
  75. </div>
  76.  
  77. </div>
  78.  
  79. <?php require 'partials/_footer.php'; ?>
  80.  
  81. </div>
  82.  
  83. </body>
  84. </html>
  85.