webform-confirmation.tpl.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @file
  4. * Customize confirmation screen after successful submission.
  5. *
  6. * This file may be renamed "webform-confirmation-[nid].tpl.php" to target a
  7. * specific webform e-mail on your site. Or you can leave it
  8. * "webform-confirmation.tpl.php" to affect all webform confirmations on your
  9. * site.
  10. *
  11. * Available variables:
  12. * - $node: The node object for this webform.
  13. * - $progressbar: The progress bar 100% filled (if configured). This may not
  14. * print out anything if a progress bar is not enabled for this node.
  15. * - $confirmation_message: The confirmation message input by the webform
  16. * author.
  17. * - $sid: The unique submission ID of this submission.
  18. * - $url: The URL of the form (or for in-block confirmations, the same page).
  19. */
  20. ?>
  21. <?php print $progressbar; ?>
  22. <div class="webform-confirmation">
  23. <?php if ($confirmation_message): ?>
  24. <?php print $confirmation_message ?>
  25. <?php else: ?>
  26. <p><?php print t('Thank you, your submission has been received.'); ?></p>
  27. <?php endif; ?>
  28. </div>
  29. <div class="links">
  30. <a href="<?php print $url; ?>"><?php print t('Go back to the form'); ?></a>
  31. </div>