wip emails front admin menu

This commit is contained in:
asus
2024-04-03 00:13:39 +02:00
parent 9abe24b3bb
commit 1d36093d9f
5 changed files with 138 additions and 3 deletions

View File

@@ -75,3 +75,40 @@
<input type="submit" value="send"/>
</form>
<!--
'payment_success'=>[
'notification_send'=>true,
'notification_to'=>'$$__admin_email__$$',
'notification_subject'=>"paiement réussi",
'notification_message'=>"par ici la monnaie",
'confirmation_send'=>true,
'confirmation_subject'=>"paiement réussi",
'confirmation_message'=>"donne l'argent",
-->
<h1>emails :</h1>
<?php echo Plgntls::open_form_option($option_emails_name); ?>
<?php foreach($option_emails as $name => $email_options) { ?>
<div class="set_email_options_cipf vertical_wrapper">
<h2><?php echo esc_html($name); ?> :</h2>
<div>
<input type="checkbox" id="<?php echo esc_html($name); ?>_notification" name="<?php echo esc_html($name); ?>_notification_send" <?php if ($email_options['notification_send'] === true) {echo 'checked';} ?> />
<label for="<?php echo esc_html($name); ?>_notification">envoyer une notification ?</label>
</div>
<div>
<input type="checkbox" id="<?php echo esc_html($name); ?>_confirmation" name="<?php echo esc_html($name); ?>_confirmation_send" <?php if ($email_options['confirmation_send'] === true) {echo 'checked';} ?> />
<label for="<?php echo esc_html($name); ?>_confirmation">envoyer une confirmation ?</label>
</div>
</div>
<?php } ?>
<input type="submit" value="send"/>
</form>