ACC SHELL

Path : /srv/www/vhosts/rozzo/wp-content/themes/amplius/
File Upload :
Current File : //srv/www/vhosts/rozzo/wp-content/themes/amplius/comments.php

<?php if (have_comments()) : ?>
	<div class="entry-comments-wrapper">
		<div class="comments-title-wrapper heading-font">
			<h5 class="comments-title heading-font">		
				<?php comments_number(__('No Comments','ihatepixels'), __('Single Comment','ihatepixels'), __('% Comments','ihatepixels')); ?>
			</h5>
		</div>
		<div class="entry-comments">
			<ol id="comments" class="clearfix">
				<?php wp_list_comments('type=comment&callback=ihatepixels_comment'); ?>	
				<?php wp_list_comments('type=pings&callback=ihatepixels_comment'); ?>	
			</ol>
			<div class="comments-paginate">
				<?php paginate_comments_links(); ?>
			</div>
		</div>
	</div>
<?php endif; ?>

		<?php if (comments_open() ) : ?>
			<?php
				// custom comment form fields
				$aria_req = "";
				if ( get_option( 'require_name_email' ) == true) $aria_req = "aria-required='true'";
				if (!esc_attr( $commenter['comment_author'])){$commenter['comment_author'] = __( 'Name *', 'ihatepixels' );}
				if (!esc_attr( $commenter['comment_author_email'])){$commenter['comment_author_email'] = __( 'Email *', 'ihatepixels');}
				if (!esc_attr( $commenter['comment_author_url'])){$commenter['comment_author_url'] = __( 'Website', 'ihatepixels');}
				$comment_args = array(
					'fields' => apply_filters(
						'comment_form_default_fields', array(
							'author' => '<p class="comment-form-author"><input id="author" class="reply-form-input body-font" name="author" type="text" tabindex="1" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" '. $aria_req . ' /></p>',
							'email'  => '<p class="comment-form-email"><input id="email" class="reply-form-input body-font" name="email" type="text" tabindex="2" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30" '. $aria_req . ' /></p>',
							'url'    => '<p class="comment-form-url"><input id="url" class="reply-form-input body-font" name="url" type="text" tabindex="3" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>'
						)
					),
						'comment_field' => '<textarea name="comment" id="comment" cols="50" rows="8" tabindex="4" class="required body-font" aria-required="true"></textarea>',
						'title_reply' => '<span class="reply-title-inner">'.__( 'Leave a Reply', 'ihatepixels').'</span>',
						'title_reply_to' => '<span class="reply-title-inner heading-font">'.__( "Leave a Reply to %s").'</span>',
						'cancel_reply_link' => '<i class="icon-remove"></i>',
				        'label_submit' => __('Post Comment', 'ihatepixels'),
				        'comment_notes_before' => '',
				        'comment_notes_after' => '',
				        'container' => '<div>'
				    );
			?>
			<div class="respond-wrapper clearfix">
				<?php comment_form( $comment_args ); ?>
			</div>
		<?php endif; ?>


<?php
// single comment formating
function ihatepixels_comment( $comment, $args, $depth ) {
	$GLOBALS['comment'] = $comment;
	switch ( $comment->comment_type ) :
		case 'pingback' :
		case 'trackback' :
	?>
		<li id="comment-<?php comment_ID(); ?>" class="trackback-pingback clearfix"><h5><?php comment_author_link(); ?></h5></li>
	<?php
			break;
		default :
	?>
	<li <?php comment_class('comment clearfix'); ?> id="comment-<?php comment_ID() ?>">  	
		<div class="comment-avatar clearfix">
			<?php echo get_avatar($comment, $size='50'); ?>
		</div>	
		<div class="comment-sheet clearfix">
			<div class="comment-author heading-font"><?php printf(__('%s', 'ihatepixels'), get_comment_author_link()) ?></div>
			<ul class="comment-meta clearfix heading-font">
					<li class="comment-date"><?php printf(__('%1$s at %2$s', 'ihatepixels'), get_comment_date('d/m/Y'),  get_comment_time('G:i')) ?></li>
				<?php if($depth < $args['max_depth']) : ?>
					<li class="comment-reply"><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?></li>
				<?php endif; ?>
				<?php if(current_user_can('moderate_comments')) : ?>
					<li class="comment-edit"><?php edit_comment_link(__('Edit comment', 'ihatepixels'),'','') ?></li>
				<?php endif; ?>
				<?php if ($comment->comment_approved == '0') : ?>
					<li class="comment-moderation"><?php _e('Your comment is awaiting moderation.', 'ihatepixels') ?></li>
				<?php endif; ?>
			</ul>
			<div class="comment-text clearfix">
				<?php comment_text() ?>
			</div>
		</div>
	</li>
	<?php
			break;
	endswitch;
}

ACC SHELL 2018