class-content-box-large.php
1 month ago
class-encryption-notice.php
1 month ago
class-enhancement-settings-component.php
1 month ago
class-feature-request-box.php
1 month ago
class-input-api-key.php
1 month ago
class-input-checkbox.php
1 month ago
class-link-box.php
1 month ago
class-modal-feedback.php
1 month ago
class-modal.php
1 month ago
class-navigation.php
1 month ago
class-newsletter-form.php
1 month ago
class-outdated-browser-warning.php
1 month ago
class-premium-box.php
1 month ago
class-premium-feature-list.php
1 month ago
class-review-box.php
1 month ago
class-support-box.php
1 month ago
class-support-link-boxes.php
1 month ago
class-encryption-notice.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SuperbAddons\Components\Admin; |
| 4 | |
| 5 | use SuperbAddons\Gutenberg\Form\FormEncryption; |
| 6 | |
| 7 | defined('ABSPATH') || exit(); |
| 8 | |
| 9 | class EncryptionNotice |
| 10 | { |
| 11 | public function __construct() |
| 12 | { |
| 13 | if (FormEncryption::IsAvailable()) { |
| 14 | return; |
| 15 | } |
| 16 | $this->Render(); |
| 17 | } |
| 18 | |
| 19 | private function Render() |
| 20 | { |
| 21 | ?> |
| 22 | <div class="notice notice-warning spbaddons-encryption-notice"> |
| 23 | <p> |
| 24 | <strong><?php esc_html_e('Encryption Unavailable', 'superb-blocks'); ?></strong> — |
| 25 | <?php esc_html_e('The OpenSSL PHP extension is not installed on your server. Sensitive form field values will be stored in plaintext. Contact your hosting provider to enable the OpenSSL extension.', 'superb-blocks'); ?> |
| 26 | </p> |
| 27 | </div> |
| 28 | <?php |
| 29 | } |
| 30 | } |
| 31 |