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-php-deprecation.php
48 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Notice - PHP Deprecation |
| 4 | * |
| 5 | * @package Everest Forms |
| 6 | */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; // Exit if accessed directly. |
| 10 | } |
| 11 | ?> |
| 12 | |
| 13 | <div class="notice notice-warning is-dismissible" id="everest-forms-php-deprecation-notice"> |
| 14 | <p> |
| 15 | <strong><?php esc_html_e( 'Warning!', 'everest-forms' ); ?></strong> |
| 16 | <?php _e( "Your website is running on an outdated version of PHP ( v$php_version ) that might not be supported by <strong>Everest Forms</strong> plugin in future updates.", 'everest-forms' ); //phpcs:ignore ?> |
| 17 | </br> |
| 18 | <?php |
| 19 | echo esc_html__( //phpcs:ignore |
| 20 | sprintf( //phpcs:ignore |
| 21 | 'Please update to at least PHP v%s to ensure compatibility and security.', |
| 22 | $base_version |
| 23 | ), |
| 24 | 'everest-forms' |
| 25 | ); |
| 26 | ?> |
| 27 | <a href="https://docs.wpeverest.com/everest-forms/docs/php-version-lesser-than-7-2-is-not-supported/" target="_blank"><?php esc_html_e( 'Learn More', 'everest-forms' ); ?> </a> |
| 28 | </p> |
| 29 | </div> |
| 30 | |
| 31 | <script> |
| 32 | |
| 33 | jQuery( function( $ ) { |
| 34 | $(document).ready( function() { |
| 35 | var notice_container = $('#everest-forms-php-deprecation-notice'); |
| 36 | notice_container.find( '.notice-dismiss' ).on( 'click', function(e) { |
| 37 | e.preventDefault(); |
| 38 | |
| 39 | $.post( ajaxurl, { |
| 40 | action: 'everest_forms_php_notice_dismiss', |
| 41 | _wpnonce: '<?php echo esc_js( wp_create_nonce( 'php_notice_nonce' ) ); ?>' |
| 42 | } ); |
| 43 | }); |
| 44 | |
| 45 | }); |
| 46 | }); |
| 47 | </script> |
| 48 |