Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
nycre
/
wp-content
/
themes
/
realexa
/
mascot-framework
/
lib
/
File Content:
class-wp-bootstrap-comment-walker.php
<?php /** * A custom WordPress comment walker class to implement the Bootstrap 3 Media object in wordpress comment list. * * @package WP Bootstrap Comment Walker * @version 1.0.0 * @author Edi Amin <to.ediamin@gmail.com> * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link https://github.com/ediamin/wp-bootstrap-comment-walker */ if( !class_exists( 'Realexa_Bootstrap_Comment_Walker' ) ) { class Realexa_Bootstrap_Comment_Walker extends Walker_Comment { /** * Output a comment in the HTML5 format. * * @access protected * @since 1.0.0 * * @see wp_list_comments() * * @param object $comment Comment to display. * @param int $depth Depth of comment. * @param array $args An array of arguments. */ protected function html5_comment( $comment, $depth, $args ) { $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; ?> <<?php echo esc_attr( $tag ); ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '' ); ?>> <div class="comment-item-wrapper"> <?php if ( 0 != $args['avatar_size'] ): ?> <div class="comment-thumb"> <a href="<?php echo get_comment_author_url(); ?>"> <?php echo get_avatar( $comment, $args['avatar_size'], '', false, array( 'class' => 'media-object' ) ); ?> </a> </div> <?php endif; ?> <div id="div-comment-<?php comment_ID(); ?>"> <div class="comment-body"> <div class="comment-reply-link-wrapper"> <ul class="comment-reply-link"> <?php edit_comment_link( esc_html__( 'Edit', 'realexa' ), '<li class="list-inline-item edit-link">', '</li>' ); ?> <?php comment_reply_link( array_merge( $args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '<li class="list-inline-item reply-link">', 'reply_text'=> sprintf(esc_html__('Reply %s', 'realexa'), ''), 'after' => '</li>' ) ) ); ?> </ul> </div> <?php printf( '<h5 class="comment-author-name">%s</h5>', get_comment_author_link() ); ?> <div class="comment-metadata"> <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID, $args ) ); ?>"> <time datetime="<?php comment_time( 'c' ); ?>"> <?php printf( _x( '%1$s at %2$s', '1: date, 2: time', 'realexa' ), get_comment_date(), get_comment_time() ); ?> </time> </a> </div><!-- .comment-metadata --> <?php if ( '0' == $comment->comment_approved ) : ?> <p class="comment-awaiting-moderation label label-info"><?php esc_html_e( 'Your comment is awaiting moderation.', 'realexa' ); ?></p> <?php endif; ?> <div class="comment-content"> <?php comment_text(); ?> </div><!-- .comment-content --> </div> </div> </div> <?php } } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
breadcrumbs.php
42028 bytes
0644
class-wp-bootstrap-comment-walker.php
3006 bytes
0644
N4ST4R_ID | Naxtarrr