[ Index ]

MailPress 7.2

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

title

Body

[close]

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

   1  <?php
   2  /*
   3  Template Name: moderate
   4  */
   5  $comment = $this->args->advanced->comment;
   6  $url     = $this->args->advanced->url;
   7  
   8  $_the_title = ( isset( $url['approve'] ) )
   9                          ? sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), '{{the_title}}' )
  10                          : sprintf( __( 'New comment on your post "%s"' ), '{{the_title}}' );
  11  
  12  $_the_content  = sprintf( __( 'Author : %1$s (IP: %2$s , %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment->author_domain );
  13  $_the_content .= "\n"; 
  14  $_the_content .= sprintf( __( 'E-mail : %s' ), $comment->comment_author_email );
  15  $_the_content .= "\n"; 
  16  $_the_content .= sprintf( __( 'URL    : %s' ), $comment->comment_author_url );
  17  $_the_content .= "\n"; 
  18  $_the_content .= sprintf( __( 'Whois  : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s' ), $comment->comment_author_IP );
  19  $_the_content .= "\n\n"; 
  20  $_the_content .= __( 'Comment : ' );
  21  $_the_content .= "\n"; 
  22  $_the_content .= $comment->comment_content;
  23  $_the_content .= "\n\n"; 
  24  
  25  $moderator = ( isset( $mail->p->title ) ) ? true : false;
  26  
  27  $_the_actions  = '';
  28  $_the_actions .= ( isset( $url['approve'] ) )
  29                          ? __( 'Approve' )  . " [{$url['approve']}]\n"
  30                          : __( 'View all' ) . " [{$url['comments']}#comments\n";
  31  $_the_actions .= ( EMPTY_TRASH_DAYS ) 
  32                          ? __( 'Trash' )    . " [{$url['trash']}]\n"
  33                          : __( 'Delete' )   . " [{$url['delete']}]\n";
  34  $_the_actions .=                  __( 'Spam' )     . " [{$url['spam']}]\n";
  35  
  36  $this->get_template_part( '_mail' );


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