403Webshell
Server IP : 208.109.34.209  /  Your IP : 216.73.217.134
Web Server : Apache
System : Linux 209.34.109.208.host.secureserver.net 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64
User : oceanproject ( 1012)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/oceanproject/public_html/wp-content/themes/reda/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/oceanproject/public_html/wp-content/themes/reda/inc/comments-functions.php
<?php

class Reda_Walker_Comment extends Walker_Comment {

	public function start_lvl( &$output, $depth = 0, $args = array() ) {
		$GLOBALS['comment_depth'] = $depth + 1;

		switch ( $args['style'] ) {
			case 'div':
				break;
			case 'ol':
				$output .= '<ol class="comment-list">' . "\n";
				break;
			case 'ul':
			default:
				$output .= '<ul class="comment-list">' . "\n";
				break;
		}
	}

	protected function comment( $comment, $depth, $args ) {
		if ( 'div' == $args['style'] ) {
			$tag = 'div';
			$add_below = 'comment';
		} else {
			$tag = 'li';
			$add_below = 'div-comment';
		}
?>
		<?php echo '<'.$tag; comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>" <?php echo '>'; ?>
		
		<div id="div-comment-<?php comment_ID(); ?>" class="comment-author vcard">
		
			<div class="comment-author-avatar">
			<?php
			if ( 0 != $args['avatar_size'] ) {
				echo get_avatar( $comment, $args['avatar_size'] );
			}
			?>
			</div>
			<div class="comment-header">
				<div class="comment-author-link"><?php echo get_comment_author_link( $comment );?></div>
				<div class="comment-date comment-meta commentmetadata">
					<a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">
						<?php printf( __( '%1$s at %2$s' , 'reda'), get_comment_date( '', $comment ),  get_comment_time() ); ?>
					</a>
					<?php edit_comment_link( esc_html__( '(Edit)', 'reda')); ?>
					<?php if ( '0' == $comment->comment_approved ) : ?>
					<span class="comment-awaiting-moderation"><?php esc_html_e( 'Your comment is awaiting moderation.', 'reda' ) ?></span>
					
					<?php endif; ?>
				</div>
			</div>
			<article class="comment-body">
				<div id="comment-content">
					<?php comment_text( $comment, array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
					<?php
					comment_reply_link( array_merge( $args, array(
						'add_below' => $add_below,
						'depth'     => $depth,
						'max_depth' => $args['max_depth'],
						'before'    => '<div class="reply"><span class="link-hover comment-reply-link">',
						'after'     => '</span></div>'
					) ) );
					?>
				</div>
			</article>
		
		<?php if ( 'div' != $args['style'] ) : ?>
		</div>
		<?php endif; ?>
<?php
	}
}

function reda_comment_form_submit_button($button) {
	$button = '<button name="submit" type="submit" class="btn btn-single btn-sm btn-solid btn-accent btn-comment" tabindex="5" id="submit"><div class="btn-text">'.esc_html__('Comment', 'reda').'</div></button>' .
		get_comment_id_fields();
	return $button;
}
add_filter('comment_form_submit_button', 'reda_comment_form_submit_button');

function reda_move_comment_field_to_bottom( $fields ) {
	$comment_field = $fields['comment'];
	unset( $fields['comment'] );
	$fields['comment'] = $comment_field;
	return $fields;
}
add_filter( 'comment_form_fields', 'reda_move_comment_field_to_bottom' );

 

Youez - 2016 - github.com/yon3zu
LinuXploit