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-deactivation-popup.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Deactivation popup admin |
| 4 | * |
| 5 | * Link to WPEverest contact form page. |
| 6 | * |
| 7 | * @package EverestForms\Admin |
| 8 | * @version 1.9.8 |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; // Exit if accessed directly. |
| 13 | } |
| 14 | |
| 15 | global $status, $page, $s; |
| 16 | |
| 17 | $deactivate_url = wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . EVF_PLUGIN_BASENAME . '&plugin_status=' . $status . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . EVF_PLUGIN_BASENAME ); |
| 18 | ?> |
| 19 | <div id="evf-deactivate-feedback-popup-wrapper"> |
| 20 | <div class="evf-deactivate-feedback-popup-inner"> |
| 21 | <div class="evf-deactivate-feedback-popup-header"> |
| 22 | <div class="everest-forms-deactivate-feedback-popup-header__logo-wrap"> |
| 23 | <div class="everest-forms-deactivate-feedback-popup-header__logo-icon"> |
| 24 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.88,3l1.37,2.25H15.89L14.52,3ZM21,21H1L12,3.15l6.84,11.11H10.6L12,12H14.8L12,7.43,5,18.74H21.58L23,21ZM18.64,9.77,17.27,7.53h4.36L23,9.77Z"/></svg> |
| 25 | </div> |
| 26 | <span class="evf-deactivate-feedback-popup-header-title"><?php echo esc_html__( 'Quick Feedback', 'everest-forms' ); ?></span> |
| 27 | </div> |
| 28 | <a class="close-deactivate-feedback-popup"><span class="dashicons dashicons-no-alt"></span></a> |
| 29 | </div> |
| 30 | <form class="evf-deactivate-feedback-form" method="POST"> |
| 31 | <?php |
| 32 | wp_nonce_field( '_evf_deactivate_feedback_nonce' ); |
| 33 | ?> |
| 34 | <input type="hidden" name="action" value="evf_deactivate_feedback"/> |
| 35 | |
| 36 | <div |
| 37 | class="evf-deactivate-feedback-popup-form-caption"><?php echo sprintf( esc_html__( 'Could you please share why you are deactivating %1$sEverest Forms%2$s plugin?', 'everest-forms' ), '<span>', '</span>' ); ?></div> |
| 38 | <div class="evf-deactivate-feedback-popup-form-body"> |
| 39 | <?php foreach ( $deactivate_reasons as $reason_slug => $reason ) : ?> |
| 40 | <div class="evf-deactivate-feedback-popup-input-wrapper"> |
| 41 | <input id="evf-deactivate-feedback-<?php echo esc_attr( $reason_slug ); ?>" |
| 42 | class="evf-deactivate-feedback-input" type="radio" name="reason_slug" |
| 43 | value="<?php echo esc_attr( $reason_slug ); ?>"/> |
| 44 | <label for="evf-deactivate-feedback-<?php echo esc_attr( $reason_slug ); ?>" |
| 45 | class="evf-deactivate-feedback-label"><?php echo esc_html( $reason['title'] ); ?></label> |
| 46 | <?php if ( ! empty( $reason['input_placeholder'] ) ) : ?> |
| 47 | <input class="evf-feedback-text" type="text" |
| 48 | name="reason_<?php echo esc_attr( $reason_slug ); ?>" |
| 49 | placeholder="<?php echo esc_attr( $reason['input_placeholder'] ); ?>"/> |
| 50 | <?php endif; ?> |
| 51 | </div> |
| 52 | <?php endforeach; ?> |
| 53 | </div> |
| 54 | <div class="evf-deactivate-feedback-popup-form-footer"> |
| 55 | <a href="<?php echo esc_url( $deactivate_url ); ?>" class="skip"><?php esc_html_e( 'Skip & Deactivate', 'everest-forms' ); ?></a> |
| 56 | <button class="submit" type="submit"><?php esc_html_e( 'Submit & Deactivate', 'everest-forms' ); ?></button> |
| 57 | </div> |
| 58 | <span class="consent">* <?php esc_html_e( 'By submitting this form, you will also be sending us your email address & website URL.', 'everest-forms' ); ?></span> |
| 59 | </form> |
| 60 | </div> |
| 61 | </div> |
| 62 |