html-admin-page-addons.php
2 years ago
html-admin-page-builder.php
4 years ago
html-admin-page-entries-view.php
3 years ago
html-admin-page-export.php
3 years ago
html-admin-page-form-templates.php
3 years ago
html-admin-page-import.php
3 years ago
html-admin-page-tools-logs.php
4 years ago
html-admin-page-tools.php
5 years ago
html-admin-settings.php
7 years ago
html-deactivation-popup.php
3 years ago
html-notice-allow-usage.php
2 years ago
html-notice-custom.php
6 years ago
html-notice-php-deprecation.php
3 years ago
html-notice-review.php
2 years ago
html-notice-survey.php
4 years ago
html-notice-update.php
6 years ago
html-notice-updated.php
6 years ago
html-notice-updating.php
6 years ago
html-notice-survey.php
57 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Notice - Survey |
| 4 | * |
| 5 | * @package EverestForms\Admin\Notice |
| 6 | */ |
| 7 | |
| 8 | defined( 'ABSPATH' ) || exit; |
| 9 | |
| 10 | ?> |
| 11 | <div id="message" class="updated everest-forms-message evf-survey-notice"> |
| 12 | <div class="everest-forms-logo"> |
| 13 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.15,4l1.23,2H15.49L14.26,4ZM20,20H2.21L12,4.09,18.1,14H10.77L12,12h2.52L12,7.91,5.79,18H20.56l1.23,2ZM17.94,10,16.71,8H20.6l1.23,2Z"/></svg> |
| 14 | </div> |
| 15 | <div class="everest-forms-message--content"> |
| 16 | <h3 class="everest-forms-message__title"><?php esc_html_e( 'Everest Forms Survey!', 'everest-forms' ); ?></h3> |
| 17 | <p class="everest-forms-message__description"> |
| 18 | <p> |
| 19 | <?php |
| 20 | printf( |
| 21 | '%s<br><p>%s<p><p>%s<p>', |
| 22 | esc_html__( 'Hey there!', 'everest-forms' ), |
| 23 | esc_html__( 'We would be grateful if you could spare a moment and help us fill this survey', 'everest-forms' ), |
| 24 | esc_html__( 'This survey will take approximately 4 minutes to complete.', 'everest-forms' ) |
| 25 | ); |
| 26 | ?> |
| 27 | </p> |
| 28 | <p class="extra-pad"> |
| 29 | <?php |
| 30 | printf( |
| 31 | '<strong>%s</strong><br>%s<span class="dashicons dashicons-smiley smile-icon"></span><br>', |
| 32 | esc_html__( 'What benefit would you have?', 'everest-forms' ), |
| 33 | esc_html__( 'We will take your feedback from the survey which will eventually help to improve the Everest Forms plugin. Thank you in advance for participating.', 'everest-forms' ) |
| 34 | ); |
| 35 | ?> |
| 36 | </p> |
| 37 | </p> |
| 38 | <p class="everest-forms-message__action submit"> |
| 39 | <a href="https://survey.wpeverest.com/everest-forms/" class="button button-primary evf-dismiss-review-notice evf-survey-received" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-external"></span><?php esc_html_e( 'Start Survey', 'everest-forms' ); ?></a> |
| 40 | <a href="#" class="button button-secondary evf-dismiss-survey-notice" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-smiley"></span><?php esc_html_e( 'I already did', 'everest-forms' ); ?></a> |
| 41 | </p> |
| 42 | </div> |
| 43 | </div> |
| 44 | <script type="text/javascript"> |
| 45 | jQuery( document ).ready( function ( $ ) { |
| 46 | $( document ).on( 'click', '.evf-dismiss-survey-notice, .evf-survey-notice button', function ( event ) { |
| 47 | if ( ! $( this ).hasClass( 'evf-survey-received' ) ) { |
| 48 | event.preventDefault(); |
| 49 | } |
| 50 | $.post( ajaxurl, { |
| 51 | action: 'everest_forms_survey_dismiss' |
| 52 | } ); |
| 53 | $( '.evf-survey-notice' ).remove(); |
| 54 | } ); |
| 55 | } ); |
| 56 | </script> |
| 57 |