[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.15.211.55: ~ $
<?php
class Bizberg_Comment_Walker extends Walker_Comment {

	var $tree_type = 'comment';
	var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' );

	// constructor wrapper for the comments list
	function __construct() { ?>

		<ul class="comment-item comment-holder">

	<?php }

	// start_lvl wrapper for child comments list
	function start_lvl( &$output, $depth = 0, $args = array() ) { ?>
		
		<ul class="child-comments comment-item">

	<?php }

	// end_lvl closing wrapper for child comments list
	function end_lvl( &$output, $depth = 0, $args = array() ) { ?>

		</ul>

	<?php }

	// start_el HTML for comment template
	function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {

		$depth++;		
		$parent_class = ( empty( $args['has_children'] ) ? '' : 'parent' ); 

		if ( 'article' == $args['style'] ) {
			$tag = 'article';
			$add_below = 'comment';
		} else {
			$tag = 'article';
			$add_below = 'comment';
		} ?>

		<li <?php comment_class(empty( $args['has_children'] ) ? '' :'parent') ?> id="comment-<?php echo absint( $comment->comment_ID ); ?>">

			<?php 
			$avatar = get_avatar( $comment, 65, '', esc_attr__( 'Author gravatar' , 'bizberg' ) ); 

			if( !empty( $avatar ) ){ 
				$margin = ''; ?>
				<div class="comment-avatar">
					<?php 
					echo wp_kses(
						$avatar,
						array( 
							'img' => array( 
								'class' => array(),
								'alt' => array(),
								'src' => array(),
								'width' => array(),
								'height' => array(),
							) 
						) 
					); 
					?>
				</div>
				<?php 
			} else {
				$margin = 'margin-left: 0;';
			} 

			$date_format = get_option( 'date_format' );
			$time_format = get_option( 'time_format' ); ?>

			<div class="comment-header" style="<?php echo esc_attr( $margin ); ?>">
				<a href="<?php echo esc_url( $comment->comment_author_url ); ?>" class="font600 font16" target="blank"><?php echo esc_html( $comment->comment_author ); ?></a>
				<span class="comment-time">
					<a href="#comment-<?php echo absint( $comment->comment_ID ); ?>">
						<?php comment_date( $date_format . ', ' . $time_format , $comment->comment_ID ); ?>		
					</a>
				</span>
			</div>

			<div class="comment-content">
				<?php comment_text( $comment->comment_ID ) ?>

				<div class="edit_repy_links">

					<?php 

					$edit_comment_link_status = current_user_can( 'edit_comment', $comment->comment_ID ) ? true : false;

					if( $edit_comment_link_status ){ ?>
						<a class="comment-edit-link btn btn-primary btn-sm" href="<?php echo esc_url( get_edit_comment_link( $comment->comment_ID ) ); ?>"><span class="comment-meta-item"><?php esc_html_e( 'Edit this comment', 'bizberg' ); ?></span></a>
						<?php 	
					}				

					$myclass = 'comment-reply';
					echo preg_replace( 
						'/comment-reply-link/', 'comment-reply-link ' . $myclass,
						get_comment_reply_link( 
							array_merge( 
								$args, 
								array(
									'add_below' => $add_below, 
									'depth' => $depth, 
									'max_depth' => $args['max_depth']
								)
							),
							$comment
						), 
						1 
					);
					?>
				</div>

				<?php if ( $comment->comment_approved == '0' ) : ?>
					<p class="comment-meta-item comment_awating"><?php esc_html_e( 'Your comment is awaiting moderation.' , 'bizberg' ); ?></p>
				<?php endif; ?>

			</div>

		<?php 

	}

	// end_el closing HTML for comment template
	function end_el(&$output, $comment, $depth = 0, $args = array() ) { ?>
		</li>
	<?php }

	// destructor closing wrapper for the comments list
	function __destruct() { ?>
		</ul>
	<?php }

}

Filemanager

Name Type Size Permission Actions
assets Folder 0755
inc Folder 0755
languages Folder 0755
page-templates Folder 0755
template-parts Folder 0755
404.php File 643 B 0644
LICENSE File 17.62 KB 0644
archive.php File 1.25 KB 0644
comments.php File 1.85 KB 0644
footer.php File 800 B 0644
functions.php File 114.82 KB 0644
header.php File 6.08 KB 0644
index.php File 2.86 KB 0644
page.php File 1.14 KB 0644
readme.txt File 3.48 KB 0644
rtl.css File 5.36 KB 0644
screenshot.jpg File 141.4 KB 0644
search.php File 1.25 KB 0644
sidebar.php File 329 B 0644
single.php File 1.46 KB 0644
style.css File 16.29 KB 0644
wp-comment-walker.php File 3.64 KB 0644
wp-menu-walker.php File 1.65 KB 0644