| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || exit; |
| 3 |
|
| 4 |
$this->print_template( |
| 5 |
'notice-header', |
| 6 |
[ |
| 7 |
'title' => esc_html__( 'Your API key isn\'t valid!', 'imagify' ), |
| 8 |
'classes' => [ 'error' ], |
| 9 |
] |
| 10 |
); |
| 11 |
?> |
| 12 |
<p> |
| 13 |
<?php wp_nonce_field( 'imagify-signup', 'imagifysignupnonce', false ); ?> |
| 14 |
<?php |
| 15 |
printf( |
| 16 |
/* translators: 1 and 2 are link tag starts, 3 is a link tag end. */ |
| 17 |
esc_html__( 'Go to your Imagify account page to get your API Key and specify it on %1$syour settings%3$s or %2$screate an account for free%3$s if you don\'t have one yet.', 'imagify' ), |
| 18 |
'<a href="' . esc_url( get_imagify_admin_url() ) . '">', |
| 19 |
'<a id="imagify-signup" target="_blank" href="' . esc_url( imagify_get_external_url( 'register' ) ) . '">', |
| 20 |
'</a>' |
| 21 |
); |
| 22 |
?> |
| 23 |
</p> |
| 24 |
<?php |
| 25 |
$this->print_template( |
| 26 |
'notice-footer', |
| 27 |
[ |
| 28 |
'dismissible' => 'wrong-api-key', |
| 29 |
] |
| 30 |
); |
| 31 |
|