SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/map_directions.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. use Sprout\Helpers\Form;
  19. use Sprout\Helpers\Needs;
  20.  
  21. Needs::googleMaps();
  22. Needs::fileGroup('map_directions');
  23. ?>
  24.  
  25. <div class="directions" data-address="<?php echo Enc::html($address); ?>" data-zoom="<?php echo Enc::html($zoom); ?>">
  26. <div class="directions-map"></div>
  27.  
  28. <form action="javascript:;" class="directions-form -clearfix">
  29.  
  30. <p>Enter a street name and/or suburb below to get directions</p>
  31.  
  32. <div class="row">
  33.  
  34. <div class="col-xs-12 col-lg-8">
  35. <?php
  36. Form::nextFieldDetails('Address', false, 'Enter a street name and/or suburb below to get directions');
  37. echo Form::text('start-address', ['-wrapper-class' => 'white hidden-label', 'placeholder' => 'Street name and/or suburb', 'id' => 'start-address', 'class' => 'directions-txt']);
  38. ?>
  39. </div>
  40.  
  41. <div class="col-xs-12 col-lg-4">
  42. <button type="submit" class="button button-block directions-btn no-disable">Get directions</button>
  43. </div>
  44.  
  45. </div>
  46.  
  47. </form>
  48.  
  49. <div class="directions-list"></div>
  50. </div>
  51.