Ejemplo n.º 1
0
function boston_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    $add_below = '';
    ?>
	<!-- comment-1 -->
	<div class="comment <?php 
    echo $depth > 1 ? esc_attr('comment-replied') : '';
    ?>
" id="comment-<?php 
    echo esc_attr($comment->comment_ID);
    ?>
">
	    <div class="media">
	        <div class="media-left">
				<?php 
    $avatar = boston_get_avatar_url(get_avatar($comment, 75));
    if (!empty($avatar)) {
        ?>
					<a class="pull-left" href="javascript:;">
						<img src="<?php 
        echo esc_url($avatar);
        ?>
" class="media-object img-circle" title="" alt="">
					</a>
				<?php 
    }
    ?>
	        </div>
	        <div class="media-body">
	            <h4 class="media-heading">
	            	<a href="javascript:;"><?php 
    comment_author();
    ?>
</a>
	            	<?php 
    if ($comment->user_id == get_the_author_meta('ID')) {
        ?>
	            		<span class="author">Author</span>
	            	<?php 
    }
    ?>
	            </h4>

	            <div class="comment-meta">
	                <span class="comment-date"><?php 
    echo human_time_diff(get_the_time('U'), current_time('timestamp')) . __(' ago', 'boston');
    ?>
</span>
					<?php 
    comment_reply_link(array_merge($args, array('reply_text' => '<span class="comment-reply">' . __('Reply', 'boston') . '</span>', 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	                
	                <a href="javascript:;"></a>
	            </div>

				<?php 
    if ($comment->comment_approved != '0') {
        ?>
					<p><?php 
        echo get_comment_text();
        ?>
</p>
				<?php 
    } else {
        ?>
					<p><?php 
        _e('Your comment is awaiting moderation.', 'boston');
        ?>
</p>
				<?php 
    }
    ?>

	        </div>
	    </div>
	</div>	
	<!-- .comment-1 -->	
	<?php 
}
<!-- inner sidebar -->
<div class="col-md-3 no-padding">
    <aside class="inner-widget text-center">

        <!-- inner widget author -->
        <div class="widget iw-author">
            <div class="iw-image">
                <a href="<?php 
echo esc_url(get_author_posts_url(get_the_author_meta('ID')));
?>
">
                    <?php 
$avatar_url = boston_get_avatar_url(get_avatar(get_the_author_meta('ID'), 140));
?>
                    <img class="img-circle" src="<?php 
echo esc_url($avatar_url);
?>
" alt="author"/>
                </a>
            </div>
            <div class="iw-author-header">
                <h5><a href="<?php 
echo esc_url(get_author_posts_url(get_the_author_meta('ID')));
?>
"><?php 
the_author_meta('display_name');
?>
</a></h5>

                <p><?php 
$blog_single_author_desc_length = boston_get_option('blog_single_author_desc_length');