|
4 | 4 | *
|
5 | 5 | * @package ZeroSpam
|
6 | 6 | */
|
7 |
| - |
8 | 7 | ?>
|
9 | 8 |
|
10 | 9 | <header class="zerospam-header">
|
11 |
| - <img src="<?php echo plugin_dir_url( ZEROSPAM ) . 'assets/img/text-zero-spam.svg' ?>" width="250" /> |
12 |
| - <div class="zerospam-header__status"> |
13 |
| - <?php |
14 |
| - $status = \ZeroSpam\Core\Settings::get_settings( 'zerospam' ); |
15 |
| - if ( 'enabled' !== $status ) : |
16 |
| - echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-error.svg" class="zerospam-small-icon" />'; |
17 |
| - echo sprintf( |
18 |
| - wp_kses( |
19 |
| - /* translators: %1s: Replaced with the Zero Spam URL */ |
20 |
| - __( '<strong>Enhanced Protection is <a href="%1$s">DISABLED</a>.</strong>', 'zero-spam' ), |
21 |
| - array( |
22 |
| - 'h3' => array(), |
23 |
| - 'p' => array(), |
24 |
| - 'a' => array( |
25 |
| - 'href' => array(), |
26 |
| - 'class' => array(), |
27 |
| - 'rel' => array(), |
28 |
| - ), |
29 |
| - 'strong' => array(), |
30 |
| - ) |
31 |
| - ), |
32 |
| - admin_url( "options-general.php?page=wordpress-zero-spam-settings&subview=zerospam" ) |
33 |
| - ); |
34 |
| - else : |
35 |
| - $license_key = \ZeroSpam\Core\Settings::get_settings( 'zerospam_license' ); |
36 |
| - if ( $license_key ) : |
37 |
| - $license = \ZeroSpam\Modules\Zero_Spam::get_license( $license_key ); |
38 |
| - if ( empty( $license['license_key'] ) ) : |
39 |
| - echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-error.svg" class="zerospam-small-icon" />'; |
40 |
| - echo sprintf( |
41 |
| - wp_kses( |
42 |
| - /* translators: %1s: Replaced with the Zero Spam URL */ |
43 |
| - __( '<strong>Enhanced Protection is <a href="%1$s">DISABLED</a> (invalid license).</strong>', 'zero-spam' ), |
44 |
| - array( |
45 |
| - 'h3' => array(), |
46 |
| - 'p' => array(), |
47 |
| - 'a' => array( |
48 |
| - 'href' => array(), |
49 |
| - 'class' => array(), |
50 |
| - 'rel' => array(), |
51 |
| - ), |
52 |
| - 'strong' => array(), |
53 |
| - ) |
54 |
| - ), |
55 |
| - admin_url( "options-general.php?page=wordpress-zero-spam-settings&subview=zerospam" ) |
56 |
| - ); |
57 |
| - else : |
58 |
| - echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-success.svg" class="zerospam-small-icon" />'; |
59 |
| - echo sprintf( |
60 |
| - wp_kses( |
61 |
| - /* translators: %1s: Replaced with the Zero Spam URL */ |
62 |
| - __( '<strong>Protected — %1s queries available</strong>', 'zero-spam' ), |
63 |
| - array( |
64 |
| - 'h3' => array(), |
65 |
| - 'p' => array(), |
66 |
| - 'a' => array( |
67 |
| - 'href' => array(), |
68 |
| - 'class' => array(), |
69 |
| - 'rel' => array(), |
70 |
| - ), |
71 |
| - 'strong' => array(), |
72 |
| - ) |
73 |
| - ), |
74 |
| - number_format( $license['queries_remaining'], 0 ) |
75 |
| - ); |
76 |
| - endif; |
77 |
| - else: |
78 |
| - echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-error.svg" class="zerospam-small-icon" />'; |
79 |
| - echo sprintf( |
80 |
| - wp_kses( |
81 |
| - /* translators: %1s: Replaced with the Zero Spam URL, %2$s: Replaced with the DDoD attack wiki URL */ |
82 |
| - __( '<strong>Enhanced Protection is <a href="%1$s">DISABLED</a>.</strong>', 'zero-spam' ), |
83 |
| - array( |
84 |
| - 'h3' => array(), |
85 |
| - 'p' => array(), |
86 |
| - 'a' => array( |
87 |
| - 'href' => array(), |
88 |
| - 'class' => array(), |
89 |
| - 'rel' => array(), |
90 |
| - ), |
91 |
| - 'strong' => array(), |
92 |
| - ) |
93 |
| - ), |
94 |
| - admin_url( "options-general.php?page=wordpress-zero-spam-settings&subview=zerospam" ) |
95 |
| - ); |
96 |
| - endif; |
97 |
| - endif; |
98 |
| - ?> |
99 |
| - </div> |
| 10 | + <img src="<?php echo plugin_dir_url( ZEROSPAM ) . 'assets/img/text-zero-spam.svg' ?>" width="250" /> |
| 11 | + <div class="zerospam-header__status"> |
| 12 | + <?php |
| 13 | + $status = \ZeroSpam\Core\Settings::get_settings( 'zerospam' ); |
| 14 | + if ( 'enabled' !== $status ) : |
| 15 | + echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-error.svg" class="zerospam-small-icon" />'; |
| 16 | + echo sprintf( |
| 17 | + wp_kses( |
| 18 | + /* translators: %1s: Replaced with the Zero Spam URL */ |
| 19 | + __( '<strong>Enhanced Protection is <a href="%1$s">DISABLED</a>.</strong>', 'zero-spam' ), |
| 20 | + array( |
| 21 | + 'h3' => array(), |
| 22 | + 'p' => array(), |
| 23 | + 'a' => array( |
| 24 | + 'href' => array(), |
| 25 | + 'class' => array(), |
| 26 | + 'rel' => array(), |
| 27 | + ), |
| 28 | + 'strong' => array(), |
| 29 | + ) |
| 30 | + ), |
| 31 | + admin_url( "options-general.php?page=wordpress-zero-spam-settings&subview=zerospam" ) |
| 32 | + ); |
| 33 | + else : |
| 34 | + $license_key = \ZeroSpam\Core\Settings::get_settings( 'zerospam_license' ); |
| 35 | + if ( $license_key ) : |
| 36 | + $license = \ZeroSpam\Modules\Zero_Spam::get_license( $license_key ); |
| 37 | + if ( empty( $license['license_key'] ) ) : |
| 38 | + echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-error.svg" class="zerospam-small-icon" />'; |
| 39 | + echo sprintf( |
| 40 | + wp_kses( |
| 41 | + /* translators: %1s: Replaced with the Zero Spam URL */ |
| 42 | + __( '<strong>Enhanced Protection is <a href="%1$s">DISABLED</a> (invalid license).</strong>', 'zero-spam' ), |
| 43 | + array( |
| 44 | + 'h3' => array(), |
| 45 | + 'p' => array(), |
| 46 | + 'a' => array( |
| 47 | + 'href' => array(), |
| 48 | + 'class' => array(), |
| 49 | + 'rel' => array(), |
| 50 | + ), |
| 51 | + 'strong' => array(), |
| 52 | + ) |
| 53 | + ), |
| 54 | + admin_url( "options-general.php?page=wordpress-zero-spam-settings&subview=zerospam" ) |
| 55 | + ); |
| 56 | + else : |
| 57 | + echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-success.svg" class="zerospam-small-icon" />'; |
| 58 | + echo sprintf( |
| 59 | + wp_kses( |
| 60 | + /* translators: %1s: Replaced with the Zero Spam URL */ |
| 61 | + __( '<strong>%1s queries available</strong>', 'zero-spam' ), |
| 62 | + array( |
| 63 | + 'h3' => array(), |
| 64 | + 'p' => array(), |
| 65 | + 'a' => array( |
| 66 | + 'href' => array(), |
| 67 | + 'class' => array(), |
| 68 | + 'rel' => array(), |
| 69 | + ), |
| 70 | + 'strong' => array(), |
| 71 | + ) |
| 72 | + ), |
| 73 | + number_format( $license['queries_remaining'], 0 ) |
| 74 | + ); |
| 75 | + endif; |
| 76 | + else: |
| 77 | + echo '<img src="' . plugin_dir_url( ZEROSPAM ) . 'assets/img/icon-error.svg" class="zerospam-small-icon" />'; |
| 78 | + echo sprintf( |
| 79 | + wp_kses( |
| 80 | + /* translators: %1s: Replaced with the Zero Spam URL, %2$s: Replaced with the DDoD attack wiki URL */ |
| 81 | + __( '<strong>Enhanced Protection is <a href="%1$s">DISABLED</a>.</strong>', 'zero-spam' ), |
| 82 | + array( |
| 83 | + 'h3' => array(), |
| 84 | + 'p' => array(), |
| 85 | + 'a' => array( |
| 86 | + 'href' => array(), |
| 87 | + 'class' => array(), |
| 88 | + 'rel' => array(), |
| 89 | + ), |
| 90 | + 'strong' => array(), |
| 91 | + ) |
| 92 | + ), |
| 93 | + admin_url( "options-general.php?page=wordpress-zero-spam-settings&subview=zerospam" ) |
| 94 | + ); |
| 95 | + endif; |
| 96 | + endif; |
| 97 | + ?> |
| 98 | + </div> |
100 | 99 | </header>
|
0 commit comments