function ct_author_customize_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $comment_type = $comment->comment_type; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <article id="comment-<?php comment_ID(); ?> " class="comment"> <div class="comment-author"> <?php // if not a pingback if ($comment_type !== 'pingback') { // if site admin and avatar uploaded if ($comment->comment_author_email === get_option('admin_email') && get_theme_mod('avatar_method') == 'upload') { echo '<img alt="' . get_comment_author() . '" class="avatar avatar-48 photo" src="' . ct_author_output_avatar() . '" height="48" width="48" />'; } else { echo get_avatar(get_comment_author_email(), 48, '', get_comment_author()); } } ?> <span class="author-name"><?php comment_author_link(); ?> </span> </div> <div class="comment-content"> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.', 'author'); ?> </em> <br/> <?php } ?> <?php comment_text(); ?> </div> <?php // if not a pingback if ($comment_type !== 'pingback') { ?> <div class="comment-footer"> <span class="comment-date"><?php comment_date(); ?> </span> <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'author'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> <?php edit_comment_link(__('Edit', 'author')); ?> </div> <?php } ?> </article> <?php }
?> </a> <div id="overflow-container" class="overflow-container"> <div class="max-width"> <div id="main-sidebar" class="main-sidebar"> <?php hybrid_do_atomic('before_main_sidebar'); ?> <header class="site-header" id="site-header" role="banner"> <div id="title-container" class="title-container"> <?php $avatar_method = get_theme_mod('avatar_method'); if ($avatar_method == 'gravatar' || $avatar_method == 'upload') { ?> <div id="site-avatar" class="site-avatar" style="background-image: url('<?php echo ct_author_output_avatar(); ?> ')"></div> <?php } ?> <div class="container"> <?php get_template_part('logo'); ?> <?php if (get_bloginfo('description')) { echo '<p class="tagline">' . get_bloginfo("description") . '</p>'; } ?> </div>
<div id="overflow-container" class="overflow-container"> <div class="max-width"> <div id="main-sidebar" class="main-sidebar"> <?php do_action('before_main_sidebar'); ?> <header class="site-header" id="site-header" role="banner"> <div id="title-container" class="title-container"> <?php $avatar_method = get_theme_mod('avatar_method'); $avatar = get_theme_mod('avatar'); if ($avatar_method == 'gravatar' || $avatar_method == 'upload' && !empty($avatar)) { ?> <div id="site-avatar" class="site-avatar" style="background-image: url('<?php echo esc_url(ct_author_output_avatar()); ?> ')" title="<?php echo get_bloginfo('title') . ' ' . __('avatar', 'author'); ?> "></div> <?php } ?> <div class="container"> <?php get_template_part('logo'); ?> <?php if (get_bloginfo('description')) {