SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/search_form.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2015 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 3 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. use Sprout\Helpers\Enc;
  18. ?>
  19. <form action="SITE/search" method="get">
  20.  
  21. <div class="field-element-attach-wrapper">
  22. <div class="field-element field-element--text field-element--hidden-label">
  23. <div class="field-label">
  24. <label for="fm-site-search">Search the <?php echo Enc::html(Kohana::config('sprout.site_title')); ?> website</label>
  25. </div>
  26. <div class="field-input">
  27. <input id="fm-site-search" class="textbox" type="text" name="q" value="<?php echo Enc::html(@$_GET['q']); ?>" placeholder="Enter your search here">
  28. </div>
  29. </div>
  30. <button type="submit" class="field-element-attach-wrapper__button">
  31. <span class="-vis-hidden">Search</span>
  32. <div class="bg-icon bg-icon--search"></div>
  33. </button>
  34. </div>
  35.  
  36.  
  37.  
  38. </form>
  39.