<?php get_header();?>
            <div id="main">
            	<div id="mainContent">
					<div class="singlePost">
                     <?php
                                            if(isset($_GET['author_name'])) :
                                              $curauth = get_userdatabylogin($author_name);
                                              else :
                                              $curauth = get_userdata(intval($author));
                                            endif;
                                          ?>
                    	<div class="article authorProfile mainBorder">
                        	<div class="articleDetails">
                            	<div class="articleTitle">
                                    <h1><?php echo $curauth->display_name; ?></h1>
                                </div><!--End articleTitle-->
                            </div><!--End Article Details-->
                            <div class="author-info">
                                            <h2 class="authorTitle"><?php _e('About' , 'lioit' ) ?> <?php echo $curauth->display_name; ?></h2>
                                            <div class="authorAvatar">
                                              <?php if(function_exists('get_avatar')) { echo get_avatar( $curauth->user_email, $size = '120' ); } /* Displays the Gravatar based on the author's email address. Visit Gravatar.com for info on Gravatars */ ?>
                                            </div>
                                           
                                            <?php if($curauth->description !="") {  ?>
                                              <p class="authorBio"><?php echo $curauth->description; ?></p>
                                              <div class="authorSocial">
												 <?php if($curauth->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 } ?>
                                                <?php if($curauth->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 } ?>
                                                <?php if($curauth->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 } ?>
                                                <?php if($curauth->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 } ?>
                                                <?php if($curauth->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 } ?>		
                                               <?php if($curauth->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 } ?>
                                                <?php if($curauth->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 } ?>
                                                <?php if($curauth->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 } ?>
                                                
                                    
                                            </div>
                                            <?php } ?>
                                            
                                            
                                            
                                          </div><!--.author-->
                            
                        </div><!--End article-->
                        
                    </div><!--End ContentBox-->
                    <div class="singlePost">
                    
                    		<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                    	<div class="article mainBorder">
                        	<div class="articleDetails">
                            	<div class="articleTitle">
                                     <a href="<?php the_permalink();?>"><h1><?php the_title(); ?></h1></a>
                                </div><!--End articleTitle-->
                                <div class="articleMeta">
                                   <ul>
                                        <li class="postAuthor"><?php the_author(); ?></li>
                                        <li class="postDate"><?php the_time('F d, Y'); ?></li>
                                        <li class="postCat"><?php the_category(', ') ?></li>
                                        <li class="postComments"><?php comments_popup_link(__('<span class="icon"></span> 0 Comments', 'lioit'), __('<span class="icon"></span> 1 Comment', 'lioit'), __('<span class="icon"></span> % Comments', 'lioit')); ?></li>
                                       
                                    </ul><!--End Post Meta-->
                                    
                                </div><!--End articleMeta-->
                            </div><!--End Article Details-->
                            <div class="articleContent">
                            	<div class="articlePostThumb ThumbCover">
                                <div class="cover" style="top: 100%;">
                                            <a class="postype" href="<?php the_permalink(); ?>"></a>
                                            <a class="detail" href="<?php the_permalink(); ?>" title="View detail"></a>										
                                        </div>
                                    <?php $img = catch_that_image($post->ID); ?>
                                    <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
                                    <img src="<?php echo Lioit_URI; ?>/scripts/timthumb.php?src=<?php echo $img ?>&amp;w=200&amp;h=150&amp;zc=1" alt="<?php the_title(); ?>" />
                                    </a>
                                </div><!--End LatestPostThumb-->
                            	<?php the_excerpt();?> 
                            </div><!--End ArticleContent-->
                            <div class="articleBtm">
                            	<?php require Lioit_TM . '/share.php';?>
                                <div class="articleReadMore">
                                	<a href="<?php the_permalink();?>"><?php _e('Read More' , 'lioit' ) ?></a>
                                </div><!--End More-->
                            </div><!--End Article Bottom-->
                        </div><!--End article-->
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <?php lio_pagination(); ?>
                        
                    </div><!--End ContentBox-->
                </div><!--End Main Content-->
                <div id="sidebar">
                    <div id="mainWidgets">
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Archive')){ }else { ?>
                            <p class="noside"><?php _e('There Is No Sidebar Widgets Yet', 'lioit'); ?></p>
                        <?php } ?>
                    </div><!--End Main Widgets-->
                </div><!--End Sidebar-->
            </div><!--End Main-->
            <?php require Lioit_TM . '/lio.php';?>
        </div><!--End Content-->
		<!-- www.20script.ir -->
<?php get_footer();?>
