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-review.php
45 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Notice - Review |
| 4 | * |
| 5 | * @package EverestForms\Admin\Notice |
| 6 | */ |
| 7 | |
| 8 | defined( 'ABSPATH' ) || exit; |
| 9 | |
| 10 | ?> |
| 11 | <div id="message" class="updated everest-forms-message evf-review-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( 'HAKUNA MATATA!', 'everest-forms' ); ?></h3> |
| 17 | <p class="everest-forms-message__description"> |
| 18 | <?php |
| 19 | /* translators: %1$s: Plugin Name, %2$s: Rating link */ |
| 20 | printf( esc_html__( 'Hope you are having nice experience with %1$s plugin. Please provide this plugin a nice review. %3$s %2$s |
| 21 | Basically, it would encourage us to release updates regularly with new features & bug fixes so that you can keep on using the plugin without any issues and also to provide free support like we have been doing. %4$s', 'everest-forms' ), '<strong>Everest Forms</strong>', '<strong>What benefit would you have?</strong> <br>', '<br>','<span class="dashicons dashicons-smiley smile-icon"></span>' ); |
| 22 | ?> |
| 23 | </p> |
| 24 | <p class="everest-forms-message__action submit"> |
| 25 | <a href="https://wordpress.org/support/plugin/everest-forms/reviews?rate=5#new-post" class="button button-primary evf-dismiss-review-notice evf-review-received" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure, I\'d love to!', 'everest-forms' ); ?></a> |
| 26 | <a href="#" class="button button-secondary evf-dismiss-review-notice" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-smiley"></span><?php esc_html_e( 'Remind me later', 'everest-forms' ); ?></a> |
| 27 | <a href="#" class="button button-secondary evf-dismiss-review-notice" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-dismiss"></span><?php esc_html_e( 'I already did', 'everest-forms' ); ?></a> |
| 28 | <a href="https://everestforms.net/support/" class="button button-secondary evf-have-query" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-testimonial"></span><?php esc_html_e( 'I have a query', 'everest-forms' ); ?></a> |
| 29 | </p> |
| 30 | </div> |
| 31 | </div> |
| 32 | <script type="text/javascript"> |
| 33 | jQuery( document ).ready( function ( $ ) { |
| 34 | $( document ).on( 'click', '.evf-dismiss-review-notice, .evf-review-notice button', function ( event ) { |
| 35 | if ( ! $( this ).hasClass( 'evf-review-received' ) ) { |
| 36 | event.preventDefault(); |
| 37 | } |
| 38 | $.post( ajaxurl, { |
| 39 | action: 'everest_forms_review_dismiss' |
| 40 | } ); |
| 41 | $( '.evf-review-notice' ).remove(); |
| 42 | } ); |
| 43 | } ); |
| 44 | </script> |
| 45 |