                            <div class="articleAuthor">
                            	<h2 class="borderTitle"><span>درباه نویسنده</span></h2>
                                <div class="authorLeft">
                                	<div class="authorAvatar">
                                    	<?php echo get_avatar( get_the_author_meta( 'user_email' ), '92' ); ?>
                                    </div><!--End AuthorAvatar-->
                                    <div class="authorProfile">
                                    	<?php the_author_posts_link(); ?>
                                    </div><!--End Profile-->
                                </div><!--End Author Left-->
                                <div class="authorContent">
                                	<div class="authorDetails">
                                    	<h2><?php the_author(); ?></h2>
                                        <span class="AuthorPostsCount">تعداد مقالات : <?php
										global $post;
										$author_id=$post->post_author;
											$post_author = $author_id; //author id
											$count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = $post_author AND post_type IN ('post') and post_status = 'publish'" );
											echo $count;
									?></span><!--End Count-->
                                    </div><!--End AuthorDetails-->
                                    
                                    <p><?php the_author_meta('description'); ?></p>
                                    
                                    
                                    <div class="authorSocial">
									<?php if ( get_the_author_meta( 'url' ) ) : ?>
                                    <a class="ttip" href="<?php the_author_meta( 'url' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( " 's site", 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_site.png" alt="" /></a>
                                    <?php endif ?>	
                                    <?php if ( get_the_author_meta( 'twitter' ) ) : ?>
                                    <a class="ttip" href="http://twitter.com/<?php the_author_meta( 'twitter' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( '  on Twitter', 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_twitter.png" alt="" /></a>
                                    <?php endif ?>	
                                    <?php if ( get_the_author_meta( 'facebook' ) ) : ?>
                                    <a class="ttip" href="<?php the_author_meta( 'facebook' ); ?>" title="<?php the_author_meta( 'display_name' ); ?> <?php _e( '  on Facebook', 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_facebook.png" alt="" /></a>
                                    <?php endif ?>
                                    <?php if ( get_the_author_meta( 'google' ) ) : ?>
                                    <a class="ttip" href="<?php the_author_meta( 'google' ); ?>" title="<?php the_author_meta( 'display_name' ); ?> <?php _e( '  on Google+', 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_google.png" alt="" /></a>
                                    <?php endif ?>	
                                    <?php if ( get_the_author_meta( 'linkedin' ) ) : ?>
                                    <a class="ttip" href="<?php the_author_meta( 'linkedin' ); ?>" title="<?php the_author_meta( 'display_name' ); ?> <?php _e( '  on Linkedin', 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_linkedin.png" alt="" /></a>
                                    <?php endif ?>				
                                    <?php if ( get_the_author_meta( 'flickr' ) ) : ?>
                                    <a class="ttip" href="<?php the_author_meta( 'flickr' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( '  on Flickr', 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_flickr.png" alt="" /></a>
                                    <?php endif ?>	
                                    <?php if ( get_the_author_meta( 'youtube' ) ) : ?>
                                    <a class="ttip" href="<?php the_author_meta( 'youtube' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( '  on YouTube', 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_youtube.png" alt="" /></a>
                                    <?php endif ?>
                                    <?php if ( get_the_author_meta( 'pinterest' ) ) : ?>
                                    <a class="ttip" href="<?php the_author_meta( 'pinterest' ); ?>" title="<?php the_author_meta( 'display_name' ); ?><?php _e( '  on Pinterest', 'lioit' ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icon_pinterest.png" alt="" /></a>
                                    <?php endif ?>
                                    
                        
                                </div>
                                    
                                </div><!--End AuthorContent-->
                                
                            </div><!--End ArticleAuthor-->