SproutCMS

This is the code documentation for the SproutCMS project

source of /skin/default/partials/_header.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. use Sprout\Helpers\Navigation;
  4. ?>
  5.  
  6. <header id="header">
  7.  
  8. <div class="section section--header bg-navyblue">
  9.  
  10. <div class="container">
  11.  
  12. <div class="row">
  13.  
  14. <div class="col-xs-12 col-sm-6 col-md-7">
  15.  
  16. <div class="header__logo">
  17.  
  18. <a href="ROOT/" onclick="ga('send', 'event', 'Skin', 'LogoClick');">
  19.  
  20. <img class="header__logo__img" src="SKIN/images/sprout-logo-white.svg" alt="Logo for <?php echo Enc::html(Kohana::config('sprout.site_title')); ?>">
  21.  
  22. </a>
  23.  
  24. </div>
  25.  
  26. </div>
  27.  
  28. <div class="col-xs-12 col-sm-6 col-md-5">
  29.  
  30. <div class="header__search">
  31.  
  32. <form method="get" action="search">
  33.  
  34. <div class="row">
  35.  
  36. <div class="col-xs-8">
  37.  
  38. <div class="field-element field-element--text field-element--white field-element--hidden-label">
  39.  
  40. <div class="field-label">
  41.  
  42. <label for="fm-site-search">Search the <?php echo Enc::html(Kohana::config('sprout.site_title')); ?> website</label>
  43.  
  44. </div>
  45.  
  46. <div class="field-input">
  47.  
  48. <input id="fm-site-search" class="textbox" type="text" name="q" value="<?php echo Enc::html(@$_GET['q']); ?>" placeholder="Enter your search here">
  49.  
  50. </div>
  51.  
  52. </div>
  53.  
  54. </div>
  55.  
  56. <div class="col-xs-4">
  57.  
  58. <button type="submit" class="button button-block">Search</button>
  59.  
  60. </div>
  61.  
  62. </div>
  63.  
  64. </form>
  65.  
  66. </div>
  67.  
  68. </div>
  69.  
  70. </div>
  71.  
  72. </div>
  73.  
  74. </div>
  75.  
  76.  
  77. <div class="section section--nav bg-orange">
  78.  
  79. <nav id="frankenmenu">
  80.  
  81. <div class="container">
  82.  
  83. <?php Navigation::simpleMenu(); ?>
  84.  
  85. </div>
  86.  
  87. </nav>
  88.  
  89. </div>
  90.  
  91. </header>