Нема описа

embed.php 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. /**
  3. * Challenge HTML template specific to form embed page.
  4. *
  5. * @since 1.6.2
  6. *
  7. * @var integer $minutes
  8. */
  9. if ( ! \defined( 'ABSPATH' ) ) {
  10. exit;
  11. }
  12. ?>
  13. <div class="wpforms-challenge-tooltips">
  14. <div id="tooltip-content5">
  15. <?php if ( wpforms_is_gutenberg_active() ) : // Gutenberg content. ?>
  16. <h3><?php esc_html_e( 'Add a Block', 'wpforms-lite' ); ?></h3>
  17. <p>
  18. <?php
  19. echo wp_kses(
  20. sprintf(
  21. /* translators: %s - Link to the WPForms documentation page. */
  22. __( 'Click the plus button, search for WPForms, click the block to<br>embed it. <a href="%s" target="_blank" rel="noopener noreferrer">Learn More</a>.', 'wpforms-lite' ),
  23. 'https://wpforms.com/docs/creating-first-form/#display-form'
  24. ),
  25. [
  26. 'a' => [
  27. 'href' => [],
  28. 'rel' => [],
  29. 'target' => [],
  30. ],
  31. 'br' => [],
  32. ]
  33. );
  34. ?>
  35. </p>
  36. <i class="wpforms-challenge-tooltips-red-arrow"></i>
  37. <?php else : ?>
  38. <h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3>
  39. <p><?php esc_html_e( 'Click the “Add Form” button, select your form, then add the embed code.', 'wpforms-lite' ); ?></p>
  40. <?php endif; ?>
  41. <button type="button" class="wpforms-challenge-step5-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button>
  42. </div>
  43. </div>
  44. <div class="wpforms-challenge-popup-container">
  45. <div id="wpforms-challenge-congrats-popup" class="wpforms-challenge-popup">
  46. <div class="wpforms-challenge-popup-header wpforms-challenge-popup-header-congrats">
  47. <i class="wpforms-challenge-popup-close fa fa-times-circle fa-lg"></i>
  48. </div>
  49. <div class="wpforms-challenge-popup-content">
  50. <h3><?php esc_html_e( 'Congrats, you did it!', 'wpforms-lite' ); ?></h3>
  51. <p>
  52. <?php
  53. echo wp_kses(
  54. sprintf(
  55. /* translators: %1$s - Number of minutes in HTML container; %2$s - Single or plural word 'minute'; %3$s - Number of seconds in HTML container; %4$s - Single or plural word 'second'; %5$s - 5 rating star symbols HTML. */
  56. __( 'You completed the WPForms Challenge in <b>%1$s %2$s %3$s %4$s</b>. Share your success story with other WPForms users and help us spread the word <b>by giving WPForms a 5-star rating (%5$s) on WordPress.org</b>. Thanks for your support and we look forward to bringing you more awesome features.', 'wpforms-lite' ),
  57. '<span id="wpforms-challenge-congrats-minutes"></span>',
  58. _n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' ),
  59. '<span id="wpforms-challenge-congrats-seconds"></span>',
  60. _n( 'second', 'seconds', absint( $minutes ), 'wpforms-lite' ),
  61. '<span class="rating-stars"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></span>'
  62. ),
  63. [
  64. 'span' => [
  65. 'id' => [],
  66. 'class' => [],
  67. ],
  68. 'b' => [],
  69. 'i' => [
  70. 'class' => [],
  71. ],
  72. ]
  73. );
  74. ?>
  75. </p>
  76. <a href="https://wordpress.org/support/plugin/wpforms-lite/reviews/?filter=5#new-post" class="wpforms-challenge-popup-btn wpforms-challenge-popup-rate-btn" target="_blank" rel="noopener"><?php esc_html_e( 'Rate WPForms on WordPress.org', 'wpforms-lite' ); ?>
  77. <span class="dashicons dashicons-external"></span></a>
  78. </div>
  79. </div>
  80. <div id="wpforms-challenge-contact-popup" class="wpforms-challenge-popup">
  81. <div class="wpforms-challenge-popup-header wpforms-challenge-popup-header-contact">
  82. <i class="wpforms-challenge-popup-close fa fa-times-circle fa-lg"></i>
  83. </div>
  84. <div class="wpforms-challenge-popup-content">
  85. <form id="wpforms-challenge-contact-form">
  86. <h3><?php esc_html_e( 'Help us improve WPForms', 'wpforms-lite' ); ?></h3>
  87. <p>
  88. <?php
  89. echo esc_html(
  90. sprintf(
  91. /* translators: %1$d - Number of minutes; %2$s - Single or plural word 'minute'. */
  92. __( 'We\'re sorry that it took longer than %1$d %2$s to create a form. Our goal is to create the most beginner friendly WordPress form plugin. Please take a moment to let us know how we can improve WPForms.', 'wpforms-lite' ),
  93. absint( $minutes ),
  94. _n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' )
  95. )
  96. );
  97. ?>
  98. </p>
  99. <textarea class="wpforms-challenge-contact-message"></textarea>
  100. <label>
  101. <input type="checkbox" class="wpforms-challenge-contact-permission"><?php esc_html_e( 'Yes, I give WPForms permission to contact me for any follow up questions.', 'wpforms-lite' ); ?>
  102. </label>
  103. <button type="submit" class="wpforms-challenge-popup-btn wpforms-challenge-popup-contact-btn"><?php esc_html_e( 'Submit Feedback', 'wpforms-lite' ); ?></button>
  104. </form>
  105. </div>
  106. </div>
  107. </div>