[ Index ]

MailPress 7.1

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

title

Body

[close]

/mp-includes/class/ -> MP_autoresponder_event_mailinglist_.class.php (source)

   1  <?php
   2  abstract class MP_autoresponder_event_mailinglist_ extends MP_autoresponder_event_
   3  {
   4  	function to_do( $autoresponder, $args )
   5      {
   6          $this->mp_user_id = $args['mp_user_id'];
   7  
   8          return ( $autoresponder->description['settings']['mailinglist_id'] == $args['mailinglist_id'] );
   9      }
  10  
  11  	function settings_form( $settings )
  12      {
  13          $mailinglist_id = ( isset( $settings['mailinglist_id'] ) ) ? $settings['mailinglist_id'] : get_option( MailPress_mailinglist::option_name_default );
  14  
  15          $out = '';
  16          $out .= '<label for="autoresponder_mailinglist_' . $this->id . '">' . __( 'Mailing list', 'MailPress' ) . '</label>' . "\r\n";
  17          $out .= MP_Mailinglist::dropdown( array( 'htmlname' => "description[settings][{$this->id}][mailinglist_id]", 'htmlid' => "autoresponder_mailinglist_{$this->id}", 'selected' => $mailinglist_id, 'hierarchical' => true, 'orderby' => 'name', 'hide_empty' => '0', 'echo' => false, ) ) . "\r\n";
  18          $out .= '<p>' . __( 'For that mailinglist', 'MailPress' ) . '</p>' . "\r\n";
  19  
  20          echo $out;
  21      }
  22  }


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1