Your IP : 18.222.112.116


Current Path : /var/www/html/wp-content/themes/church-event/templates/widgets/front/
Upload File :
Current File : /var/www/html/wp-content/themes/church-event/templates/widgets/front/authors.php

<?php

if($count > 0):

echo $before_widget;

if($title)
	echo $before_title . $title . $after_title;

$title_tag = apply_filters('wpv_widget_author_title_tag', 'h6');
?>

<ul class="authors_list">
	<?php
		for($i=1; $i<=$count; $i++)
			if(isset($instance['author_id'][$i])):
				$id = $instance['author_id'][$i];
				?>
				<li class="clearfix">
					<?php if(!!$instance['show_avatar']): ?>
						<div class="gravatar">
								<a href="<?php echo get_author_posts_url( $id, get_the_author_meta('user_nicename', $id) )?>">
									<?php echo get_avatar( get_the_author_meta('user_email', $id), 40 ) ?>
								</a>
						</div>
					<?php endif ?>
					<div class="author_info">
						<div class="author_name">
							<<?php echo $title_tag ?>>
								<?php
									// var_dump(get_defined_vars());
									$url = get_author_posts_url( $id, get_the_author_meta('user_nicename', $id) );

									if ( ! empty( $post_type ) ) {
										$url = add_query_arg( 'post_type', $post_type,  $url );
									}

									echo apply_filters( 'the_author_posts_link', sprintf(
										'<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
										esc_url( $url ),
										esc_attr( sprintf( __( 'Posts by %s', 'church-event' ), get_the_author_meta( 'display_name', $id ) ) ),
										get_the_author_meta( 'display_name', $id )
									));
								?>
								<?php if(!!$instance['show_post_count']): ?>
									<span class="post-count">(<?php echo count_user_posts($id) ?>)</span>
								<?php endif ?>
							</<?php echo $title_tag ?>>
						</div>
						<div class="author_desc">
							<?php
								if(!empty($instance['author_desc'][$i]))
									echo $instance['author_desc'][$i];
								else
									echo get_the_author_meta('description',$id);
							?>
						</div>
					</div>
				</li>
			<?php endif; ?>
</ul>

<?php

echo $after_widget;

endif;