[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-admin/includes/settings/bounce_handling_II/ -> form.php (source)

   1  <?php // bounce_handling_II
   2  
   3  $xmailboxstatus = array(     0    =>    __( 'no changes', 'MailPress' ),
   4                  1    =>    __( 'mark as read', 'MailPress' ),
   5                  2    =>    __( 'delete', 'MailPress' ) );
   6  
   7  if ( !isset( $bounce_handling_II ) )
   8  {
   9      $bounce_handling_II = get_option( MailPress_bounce_handling_II::option_name );
  10      if ( !isset( $bounce_handling_II['batch_mode'] ) ) $bounce_handling_II['batch_mode'] = 'wpcron';
  11  }
  12  if ( !isset( $bounce_handling_II['pop3'] ) )
  13  {
  14      $bounce_handling_II['pop3'] = get_option( 'MailPress_connection_pop3' );
  15  }
  16  ?>
  17  <form name="<?php echo basename(__DIR__); ?>" method="post" class="mp_settings">
  18      <input type="hidden" name="_tab" value="<?php echo basename(__DIR__); ?>" />
  19      <table class="form-table">
  20  <!-- Pop3 -->
  21  
  22  <?php MP_AdminPage::pop3_form( $bounce_handling_II, 'bounce_handling_II' ); ?>
  23  
  24  <!-- bounces -->
  25          <tr class="mp_sep">
  26              <th class="thtitle"><?php _e( 'Handling Bounces', 'MailPress' ); ?> II</th>
  27              <td></td>
  28          </tr>
  29  <?php if ( !class_exists( 'MailPress_bounce_handling' ) ) : ?>
  30          <tr>
  31              <th><label for="bounce_handling_II_Return_Path"><?php _e( 'Return-Path', 'MailPress' ); ?></label></th>
  32              <td class="field<?php if ( isset( MP_AdminPage::$err_mess['Return-Path'] ) ) echo ' form-invalid'; ?>">
  33                  <input type="text" name="bounce_handling_II[Return-Path]" value="<?php if ( isset( $bounce_handling_II['Return-Path'] ) ) echo esc_attr( $bounce_handling_II['Return-Path'] ); ?>" class="regular-text" id="bounce_handling_II_Return_Path" />
  34                  <br /><?php _e( 'optional', 'MailPress' ); ?>
  35              </td>
  36          </tr>
  37  <?php endif; ?>
  38          <tr>
  39              <th><label for="bounce_handling_II_max_bounces"><?php _e( 'Max Bounces Per User', 'MailPress' ); ?></label></th>
  40              <td class="field">
  41                  <select name="bounce_handling_II[max_bounces]" class="w4e" id="bounce_handling_II_max_bounces">
  42  <?php MP_AdminPage::select_number( 0, 5, $bounce_handling_II['max_bounces'] ?? 1 );?>
  43                  </select>
  44              </td>
  45          </tr>
  46          <tr>
  47              <th><label for="bounce_handling_II_mailbox_status"><?php _e( 'Bounce In Mailbox', 'MailPress' ); ?></label></th>
  48              <td class="field">
  49                  <select name="bounce_handling_II[mailbox_status]" id="bounce_handling_II_mailbox_status">
  50  <?php MP_AdminPage::select_option( $xmailboxstatus, ( ( isset( $bounce_handling_II['mailbox_status'] ) ) ? $bounce_handling_II['mailbox_status'] : 2 ) );?>
  51                  </select>
  52              </td>
  53          </tr>
  54  <!-- cron -->
  55          <tr class="mp_sep">
  56              <th class="thtitle"><?php _e( 'Batch', 'MailPress' ); ?></th>
  57              <td></td>
  58          </tr>
  59  <?php MP_AdminPage::cron_form( $bounce_handling_II, 'bounce_handling_II', 'MailPress_bounce_handling_II' ); ?>
  60      </table>
  61  
  62  <?php MP_AdminPage::save_button(); ?>
  63  
  64  </form>


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1