wp/wp-content/themes/themeforest-2964855-scrn-responsive-single-page-portfolio/SCRN/includes/comments.php
changeset 8 c7c34916027a
parent 7 cf61fcea0001
child 9 177826044cd9
equal deleted inserted replaced
7:cf61fcea0001 8:c7c34916027a
     1 <?php if ( ! function_exists( 'vp_comment' ) ) :
       
     2 
       
     3 function vp_comment($comment, $args, $depth) {
       
     4 
       
     5    $GLOBALS['comment'] = $comment; ?>
       
     6 
       
     7    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
       
     8 
       
     9    <div id="comment-<?php comment_ID(); ?>" class="comment-body clearfix">
       
    10 
       
    11 		<div class="avatar">
       
    12 
       
    13 			<?php echo get_avatar($comment, 93); ?>
       
    14 
       
    15 		</div>
       
    16 
       
    17 				
       
    18 
       
    19 		<div class="no-wrap">
       
    20 
       
    21 	        <p class="meta">
       
    22 
       
    23 	          	<span class="author">
       
    24 
       
    25 	          		<?php comment_author_link();?>
       
    26 
       
    27 	          	</span> / 
       
    28 
       
    29 	            <?php echo(get_comment_date('F jS, Y G:i')) ?>
       
    30 
       
    31 	        </p>
       
    32 
       
    33           	<p>
       
    34 
       
    35 	          	<?php comment_text();
       
    36 
       
    37 	          	$reply_link = get_comment_reply_link( array_merge( $args, array('reply_text' => esc_attr__('Reply','Tharsis'),'depth' => $depth, 'max_depth' => $args['max_depth'])) ); 
       
    38 
       
    39 	          	if ( $reply_link ) echo $reply_link;
       
    40 
       
    41 	          	edit_comment_link( __( '(Edit)', 'Tharsis' ), ' ' );?>
       
    42 
       
    43          	</p>
       
    44 
       
    45          	<?php if ($comment->comment_approved == '0') : ?>
       
    46 
       
    47 				<p>
       
    48 
       
    49 					<em class="moderation"><?php esc_html_e('Your comment is awaiting moderation.','Tharsis') ?></em>
       
    50 
       
    51 				</p>
       
    52 
       
    53 				<br />
       
    54 
       
    55 			<?php endif; ?>
       
    56 
       
    57         </div>
       
    58 
       
    59 			
       
    60 
       
    61 	</div> <!-- end comment-body-->
       
    62 
       
    63 <?php }
       
    64 
       
    65 endif; ?>