[ Index ]

MailPress 7.2

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

title

Body

[close]

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

   1  <?php // list_unsubscribe
   2  
   3  $xlist_unsubscribe = array (
   4      'c'     => __( 'Unsubscribe from sending list',    'MailPress' ),
   5      'b'     => __( 'Unsubscribe from all lists',     'MailPress' ),
   6      'a'     => __( 'Delete subscriber',         'MailPress' ),
   7  
   8  
   9  ); 
  10  
  11  
  12  if ( !isset( $list_unsubscribe ) )
  13  {
  14      $list_unsubscribe = get_option( MailPress_list_unsubscribe::option_name );
  15          if ( !isset( $list_unsubscribe['batch_mode'] ) ) $list_unsubscribe['batch_mode'] = 'wpcron';
  16  }
  17  ?>
  18  <form name="<?php echo basename(__DIR__); ?>" method="post" class="mp_settings">
  19      <input type="hidden" name="_tab" value="<?php echo basename(__DIR__); ?>" />
  20      <table class="form-table">
  21  <!-- Pop3 -->
  22  
  23  <?php MP_AdminPage::pop3_form( $list_unsubscribe, 'list_unsubscribe' ); ?>
  24  
  25  <!-- mailbox -->
  26          <tr class="mp_sep">
  27              <th class="thtitle"><?php _e( 'Processing', 'MailPress' ); ?></th>
  28              <td></td>
  29          </tr>
  30  <!-- unsubscribing mode -->
  31          <tr>
  32              <th><label for="list_unsubscribe_mode"><?php _e( 'Unsubscribing ...', 'MailPress' ); ?></label></th>
  33              <td class="field">
  34                  <select name="list_unsubscribe[mode]" id="list_unsubscribe_mode">
  35  <?php MP_AdminPage::select_option( $xlist_unsubscribe, $list_unsubscribe['mode'] ?? false );?>
  36                  </select>
  37              </td>
  38          </tr>
  39  <!-- cron -->
  40          <tr class="mp_sep">
  41              <th class="thtitle"><?php _e( 'Batch', 'MailPress' ); ?></th>
  42              <td></td>
  43          </tr>
  44  <?php MP_AdminPage::cron_form( $list_unsubscribe, 'list_unsubscribe', 'MailPress_list_unsubscribe', 'h_d' ); ?>
  45      </table>
  46  
  47  <?php MP_AdminPage::save_button(); ?>
  48  
  49  </form>


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