46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
<?php
|
|
|
|
if (!defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
|
|
/** @var string $settings_url */
|
|
/** @var string $logs_url */
|
|
?>
|
|
|
|
<div class="wrap">
|
|
<h1><?php esc_html_e('ESI Peppol - Passerelle WooCommerce', 'esi_peppol'); ?></h1>
|
|
|
|
<p>
|
|
<?php esc_html_e(
|
|
'Ce plugin permet d\'envoyer vos documents de facturation WooCommerce vers le réseau Peppol.
|
|
Utilisez les boutons ci-dessous pour configurer la connexion et consulter l\'historique des échanges.',
|
|
'esi_peppol'
|
|
); ?>
|
|
</p>
|
|
|
|
<?php
|
|
$vat_notice_message = \ESI_PEPPOL\controllers\PEPPOL_Plugin::get_vat_notice_message();
|
|
if (!empty($vat_notice_message)) :
|
|
$api_key = (string) get_option('esi_peppol_api_key', '');
|
|
$password = (string) get_option('esi_peppol_password', '');
|
|
$notice_class = ($api_key === '' && $password === '') ? 'notice-info' : 'notice-warning';
|
|
?>
|
|
<div class="notice <?php echo esc_attr($notice_class); ?>">
|
|
<p><?php echo esc_html($vat_notice_message); ?></p>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<p>
|
|
<a href="<?php echo esc_url($settings_url); ?>" class="button button-primary button-hero">
|
|
<?php esc_html_e('Configuration du connecteur', 'esi_peppol'); ?>
|
|
</a>
|
|
|
|
<a href="<?php echo esc_url($logs_url); ?>" class="button button-secondary button-hero" style="margin-left: 10px;">
|
|
<?php esc_html_e('Journal des envois Peppol', 'esi_peppol'); ?>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
|
|
|