SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/components/fb_autocomplete_address.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. ?>
  4.  
  5. <div class="search-symbol">
  6. <?php echo $form_field; ?>
  7. </div>
  8.  
  9. <script>
  10. var autocomplete;
  11. Fb.initAutoCompleteAddress($('.js-autocomplete-address').attr('id'),
  12. <?php echo json_encode($options); ?>);
  13. </script>
  14.