Default to group email

This commit is contained in:
abuyoyo 2025-01-04 09:26:55 +02:00
parent ea03247c9c
commit 5ab49dd8c8
2 changed files with 6 additions and 7 deletions

View File

@ -48,7 +48,7 @@
padding: 6px 10px
}
#swpm-form .swpm-radio-wrap {
display: inline;
margin-bottom: 5px;
}
#swpm-form .wp-editor-wrap {
padding-left: 0;

View File

@ -188,14 +188,13 @@ function swpm_plugin_main() {
<th scope=”row”></th>
<td>
<div class="swpm-radio-wrap">
<input type="radio" class="radio" name="group_email" value="no" id="no"<?php if ( isset($group_email) && $group_email === 'no' ) echo ' checked'; ?> required>
<label for="no"><?php _e( 'Send each recipient an individual email', 'swpm' ); ?></label>
</div>
&nbsp;&nbsp;
<div class="swpm-radio-wrap">
<input type="radio" class="radio" name="group_email" value="yes" id="yes"<?php if ( isset($group_email) && $group_email === 'yes' ) echo ' checked'; ?> required>
<input type="radio" class="radio" name="group_email" value="yes" id="yes"<?php checked( ! isset($group_email) || $group_email === 'yes' ) ?> required>
<label for="yes"><?php _e( 'Send a group email to all recipients', 'swpm' ); ?></label>
</div>
<div class="swpm-radio-wrap">
<input type="radio" class="radio" name="group_email" value="no" id="no"<?php checked( isset($group_email) && $group_email === 'no' ) ?> required>
<label for="no"><?php _e( 'Send each recipient an individual email', 'swpm' ); ?></label>
</div>
</td>
</tr>
<tr>