SproutCMS

This is the code documentation for the SproutCMS project

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

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. ?>
  4.  
  5. <div class="columns js-random-code">
  6. <?php echo $form_field; ?>
  7. <button type="button" class="button column column-3">
  8. Generate Code
  9. </button>
  10. </div>
  11.  
  12. <script>
  13. Fb.initRandomCode(
  14. "<?= Enc::id($form_id); ?>",
  15. <?= json_encode($options); ?>);
  16. </script>
  17.