[ Index ]

MailPress 544

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

title

Body

[close]

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

   1  <?php
   2  
   3  $xevery = array (    30     => sprintf(__('%1$s seconds', MP_TXTDOM), '30'), 
   4              45     => sprintf(__('%1$s seconds', MP_TXTDOM), '45'), 
   5              60     => sprintf(__('%1$s minute' , MP_TXTDOM) , ''), 
   6              120     => sprintf(__('%1$s minutes', MP_TXTDOM), '2'), 
   7              300     => sprintf(__('%1$s minutes', MP_TXTDOM), '5'), 
   8              900     => sprintf(__('%1$s minutes', MP_TXTDOM), '15'), 
   9              1800     => sprintf(__('%1$s minutes', MP_TXTDOM), '30'), 
  10              3600     => sprintf(__('%1$s hour',     MP_TXTDOM), '') ); 
  11  
  12  $xmailboxstatus = array(    0    =>    __('no changes', MP_TXTDOM),
  13                      1    =>    __('mark as read', MP_TXTDOM),
  14                      2    =>    __('delete', MP_TXTDOM) );
  15  
  16  if (!isset($bounce_handling)) $bounce_handling = get_option(MailPress_bounce_handling::option_name);
  17  ?>
  18  <tr>
  19      <th class='thtitle'><?php _e('Handling Bounces', MP_TXTDOM); ?></th>
  20      <td></td>
  21  </tr>
  22  <tr>
  23      <th><?php _e('Return-Path', MP_TXTDOM); ?></th>
  24      <td class='field'>
  25          <input type='text' size='25' name='bounce_handling[Return-Path]' value="<?php if (isset($bounce_handling['Return-Path'])) echo $bounce_handling['Return-Path']; ?>" />
  26          <br /><?php printf(__('generated Return-Path will be %1$s', MP_TXTDOM), (!isset($bounce_handling['Return-Path'])) ?  __('start_of_email<i>+mail_id</i>+<i>mp_user_id</i>@mydomain.com', MP_TXTDOM) : substr($bounce_handling['Return-Path'], 0, strpos($bounce_handling['Return-Path'], '@')) . '<i>+mail_id</i>+<i>mp_user_id</i>@' . substr($bounce_handling['Return-Path'], strpos($bounce_handling['Return-Path'], '@') + 1) ); ?>
  27      </td>
  28  </tr>
  29  <tr>
  30      <th><?php _e('Max bounces per user', MP_TXTDOM); ?></th>
  31      <td class='field'>
  32          <select name='bounce_handling[max_bounces]'  style='width:4em;'>
  33  <?php MP_AdminPage::select_number(0, 5, ( (isset($bounce_handling['max_bounces'])) ? $bounce_handling['max_bounces'] : 1 ) );?>
  34          </select>
  35      </td>
  36  </tr>
  37  <tr>
  38      <th><?php _e('Bounce in mailbox', MP_TXTDOM); ?></th>
  39      <td class='field'>
  40          <select name='bounce_handling[mailbox_status]'>
  41  <?php MP_AdminPage::select_option($xmailboxstatus, ( (isset($bounce_handling['mailbox_status'])) ? $bounce_handling['mailbox_status'] : 2 ) );?>
  42          </select>
  43      </td>
  44  </tr>
  45  <tr>
  46      <th><?php _e('Submit batch with', MP_TXTDOM); ?></th>
  47      <td>
  48          <table class='general'>
  49              <tr>
  50                  <td class='pr10'>
  51                      <label for='bounce_handling_wp_cron'>
  52                          <input value='wpcron' name='bounce_handling[batch_mode]' id='bounce_handling_wp_cron' class='submit_batch_bounce tog' type='radio' <?php checked('wpcron', $bounce_handling['batch_mode']); ?> />
  53                          &#160;&#160;
  54                          <?php _e('WP_Cron', MP_TXTDOM); ?>
  55                      </label>
  56                  </td>
  57                  <td class='bounce_wpcron pr10 toggl3<?php if ('wpcron' != $bounce_handling['batch_mode']) echo ' hide'; ?>' style='padding-left:10px;vertical-align:bottom;'>
  58                      <?php _e('Every', MP_TXTDOM); ?>
  59                      &#160;&#160;
  60                      <select name='bounce_handling[every]' id='every_bounce' >
  61  <?php MP_AdminPage::select_option($xevery, $bounce_handling['every']);?>
  62                      </select>
  63                  </td>
  64              </tr>
  65              <tr>
  66                  <td class='pr10'>
  67                      <label for='bounce_handling_other'>
  68                          <input value='other' name='bounce_handling[batch_mode]' id='bounce_handling_other' class='submit_batch_bounce tog' type='radio' <?php checked('other', $bounce_handling['batch_mode']); ?> />
  69                          &#160;&#160;
  70                          <?php _e('Other', MP_TXTDOM); ?>
  71                      </label>
  72                  </td>
  73                  <td class='bounce_other pr10 toggl3<?php if ('other' != $bounce_handling['batch_mode']) echo ' hide'; ?>'>
  74                      <?php printf(__('see sample in "%1$s"', MP_TXTDOM), '<code>' . MP_CONTENT_DIR . 'xtras/mp_bounce_handling' . '</code>'); ?>
  75                  </td>
  76              </tr>
  77          </table>
  78      </td>
  79  </tr>
  80  <tr class='mp_sep' style='line-height:2px;padding:0;'><td style='line-height:2px;padding:0;'></td><td></td></tr>


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1