[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-content/themes/_template/ -> 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  extract( MP_theme_html_template_::who_is( $comment->comment_author_IP ) );
   9  
  10  $this->build->_the_title = ( isset( $url['approve'] ) )
  11                          ? sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), '{{the_title}}' )
  12                          : sprintf( __( 'New comment on your post "%s"' ), '{{the_title}}' );
  13  
  14  $_the_content  = '<table style="border:none;width:100%;"><tr><td style="width:60%;vertical-align:top;padding:5px 5px 5px 0;">';
  15  $_the_content .= '<br />' . "\n";
  16  $_the_content .= sprintf( __( 'Author : %1$s (IP: %2$s , %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment->author_domain );
  17  $_the_content .= '<br />' . "\n";
  18  $_the_content .= sprintf( __( 'E-mail : %s' ), $comment->comment_author_email );
  19  $_the_content .= '<br />' . "\n";
  20  $_the_content .= sprintf( __( 'URL    : %s' ), $comment->comment_author_url );
  21  $_the_content .= '<br />' . "\n";
  22  $_the_content .= __( 'Comment: ' );
  23  $_the_content .= '<br />' . "\n";
  24  $_the_content .= apply_filters( 'comment_text', $comment->comment_content );
  25  $_the_content .= '<br />' . "\n";
  26  $_the_content .= '</td><td style="padding:5px 0 5px 5px;">';
  27  if ( $src ) $_the_content .= '<br />' . "\r\n" . '<img src="' . $src . '" alt="" /><br />' . "\r\n";
  28  if ( $addr )$_the_content .= '<br />' . "\r\n" . 'reverse geocoding : ' . $addr . '<br />' . "\r\n";
  29  $_the_content .= '</td></tr></table>';
  30  $_the_content .= '<br />' . "\n";
  31  $_the_content .= '<br />' . "\n";
  32  $this->build->_the_content = $_the_content;
  33  
  34  $_the_actions  = '';
  35  $_the_actions .= ( isset( $url['approve'] ) )  
  36                            ? '<a ' . $this->classes( 'button', false ) . ' href="' . $url['approve'] . '">'        . __( 'Approve' )  . '</a>'
  37                             : '<a ' . $this->classes( 'button', false ) . ' href="' . $url['comments']. '#comments">'. __( 'View all' ) . '</a>';
  38  $_the_actions .= ( EMPTY_TRASH_DAYS ) ? '&#160;<a ' . $this->classes( 'button', false ) . ' href="' . $url['trash'] . '">'    . __( 'Trash' )    . '</a>'
  39                                :  '&#160;<a ' . $this->classes( 'button', false ) . ' href="' . $url['delete']. '">'    . __( 'Delete' )   . '</a>';
  40  $_the_actions .=                        '&#160;<a ' . $this->classes( 'button', false ) . ' href="' . $url['spam'] . '">'    . __( 'Spam' )     . '</a>';
  41  $this->build->_the_actions = $_the_actions;
  42  
  43  $this->get_template_part( '_mail' );


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