[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-content/themes/plaintext/ -> new_user.php (source)

   1  <?php
   2  /*
   3  Template Name: new_user
   4  */
   5  $user = $this->args->advanced->user;
   6  
   7  if ( isset( $this->args->advanced->admin ) )
   8  {
   9      $this->build->_the_title = 'New User';
  10  
  11      $_the_content  = sprintf( __( 'Username: %s' ), stripslashes( $user->user_login ) );
  12      $_the_content .= "\r\n";
  13      $_the_content .= sprintf( __( 'E-mail: %s' ),   stripslashes( $user->user_email ) );
  14      $_the_content .= "\r\n\r\n";
  15      $this->build->_the_content = $_the_content;
  16  }
  17  else
  18  {
  19      $this->build->_the_title = 'Welcome !';
  20  
  21      $_the_content  = sprintf( __( 'Username: %s' ), stripslashes( $user->user_login ) );
  22      $_the_content .= "\r\n";
  23      $_the_content .= sprintf( __( 'Password: %s' ), ' [' . $user->password_url . ']' ) ;
  24      $_the_content .= "\r\n\r\n";
  25      $this->build->_the_content = $_the_content;
  26  
  27      $this->build->_the_actions  = __( 'Set Password', 'MailPress' ) . ' [' . $user->password_url . "]\r\n";
  28      $this->build->_the_actions .= __( 'Log in' ) . ' [' . wp_login_url() . "]\r\n";
  29  }
  30  
  31  $this->get_template_part( '_mail' );


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