| 1 |
<?php |
| 2 |
|
| 3 |
namespace Monei\Templates; |
| 4 |
|
| 5 |
class NoticeGatewayNotAvailable implements TemplateInterface { |
| 6 |
|
| 7 |
public function render( $data ): void { |
| 8 |
$settings_link = esc_url( |
| 9 |
admin_url( |
| 10 |
add_query_arg( |
| 11 |
array( |
| 12 |
'page' => 'wc-settings', |
| 13 |
'tab' => 'monei_settings', |
| 14 |
), |
| 15 |
'admin.php' |
| 16 |
) |
| 17 |
) |
| 18 |
); |
| 19 |
?> |
| 20 |
<a class="button" href="<?php echo esc_url( $settings_link ); ?>"><?php esc_html_e( 'Go to MONEI API Key Settings', 'monei' ); ?></a> |
| 21 |
|
| 22 |
<div class="inline error"> |
| 23 |
<p> |
| 24 |
<strong><?php esc_html_e( 'Gateway Disabled', 'monei' ); ?></strong>: <?php esc_html_e( 'MONEI only support EUROS, USD & GBP currencies.', 'monei' ); ?> |
| 25 |
</p> |
| 26 |
</div> |
| 27 |
<?php |
| 28 |
} |
| 29 |
} |