<?php get_header();?>
<?php  global $smof_data;?>
            <div id="main" class="container">
            	<div id="fullContent">
					<div class="singlePost">
                    	
                   
                        	<?php
                          if(isset($_GET['author_name'])) :
                            $curauth = get_userdatabylogin($author_name);
                            else :
                            $curauth = get_userdata(intval($author));
                          endif;
                        ?>
                        <div class="authorProfile row">
                        	<?php if($curauth->image !="") { ?>
                              <div class="profileCover span12" style="background-image:url(<?php echo $curauth->image; ?>);"></div><!--End Cover-->
                          <?php } ?>
                            <div class="authorMainInfo span7 ">
                                <div class="authorMainBox mainBox">
                                    <div class="widgetTitle"><h5><?php _e('About','lioit'); ?> <?php echo $curauth->display_name; ?></h5><span class="titleBorder"></span></div>
                                    <div class="authorMainInfoData">
    
                                      <div class="authorAvatar">
                                        <?php if(function_exists('get_avatar')) { echo get_avatar( $curauth->user_email, $size = '84' ); } ?>
                                      </div>
                                     
                                      <?php if($curauth->description !="") { ?>
                                        <p class="authorBio"><?php echo $curauth->description; ?></p>
                                      <?php } ?>
                                      
                                      
                                      
                                    </div><!--.author-->
                                </div><!--End MainBox-->
                                <div class="authorMainBox mainBox">
                                    <div class="widgetTitle"><h5><?php _e('Latest Posts by ','lioit'); ?> <?php echo $curauth->display_name; ?></h5><span class="titleBorder"></span></div>
                                    <div class="authorPosts">
                                    	 <?php if(have_posts()) : while(have_posts()) : the_post('');?>
                                             <div class="lioLatestPost">
                                                <div class="liopostThumb">
                                                  
                                                  <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php the_post_thumbnail('main-block', array('title' => strip_tags(get_the_title()))); ?></a> </div>
                                                <!--End Post Thumb-->
                                                <h4> <a href="<?php the_permalink(); ?>">
                                                  <?php 
                                                                                        $badge_text = get_post_meta($post->ID, 'lioit_post_badge_text', true);
                                                                                        $badge_color = get_post_meta($post->ID, 'lioit_post_badge_color', true);
                                                                                    ?>
                                                  <?php if ($badge_text) { ?>
                                                  <div class="articleType" style="background-color:<?php echo $badge_color; ?>;"><?php echo $badge_text; ?></div>
                                                  <?php } ?>
                                                  <?php the_title(); ?>
                                                  </a> </h4>
                                                <div class="lioPosMeta"><?php
                                            $lioit_review_enable =  get_post_meta($post->ID, 'lioit_review_enable', true);
                                            $lioit_review_type =  get_post_meta($post->ID, 'lioit_review_type', true);
                                            $lioit_final_score =  get_post_meta($post->ID, 'lioit_final_score', true);
                                            $lioit_final_percentage = $lioit_final_score * 20 ;
                                        	?>
                                        	<?php if($lioit_review_enable == 'enable'){ ?>
                                            <span>
                                            	<span class="lioit-rating lioit-rating-<?php echo esc_html($lioit_review_type); ?>">
                                                	<span style="width:<?php echo esc_html($lioit_final_percentage); ?>%;"></span>
                                                </span>
                                            </span>
											<?php } ?>
                                            <span class="postViews"><i class="icon-eye-open"></i><?php echo getPostViews($post->ID); ?> </span><span class="MetapostDate"> <i class="icon-calendar"></i>
                                                  <?php the_time('F d, Y'); ?>
                                                  </span> <span class="postComments"><i class="icon-comments"></i><a href="<?php comments_link();?>">
                                                  <?php comments_number(__('0', 'lioit'), __('1', 'lioit'), __('%', 'lioit'));?>
                                                  </a></span> </div>
                                              </div><!--End AuthorPost-->
                                         <?php endwhile; ?>
										  <?php else : ?>
                                          <div class="no-res" >
                                              <p class="nop"><?php echo $curauth->display_name; ?> <?php _e('Have no Posts','lioit'); ?></p>
                                          </div>
                                          <?php endif; ?>
                                    </div><!--End AuthorPosts-->
                                    
                                </div><!--End MainBox-->
                            </div><!--End AuthoInfo-->
                            <div class="authorMainInfo span5 ">
                                <div class="authorMainBox mainBox">
                                    <div class="widgetTitle"><h5><?php _e('Basic Info','lioit'); ?></h5><span class="titleBorder"></span></div>
                                    <div class="authorMainInfoData">
                                      <ul class="basicInfo">
                                      	<?php if($curauth->display_name !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Name','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->display_name; ?></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->nickname !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Nickname','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->nickname; ?></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->job !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Jop Title','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->job; ?></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->birthday !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Birthday','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->birthday; ?></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->gender !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Gender','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->gender; ?></span>
                                        </li>
                                        <?php } ?>
                                        
                                      </ul>
                                    </div><!--.author-->
                                </div><!--End MainBox-->
                                <div class="authorMainBox mainBox">
                                    <div class="widgetTitle"><h5><?php _e('Contact Info','lioit'); ?></h5><span class="titleBorder"></span></div>
                                    <div class="authorMainInfoData">
                                      <ul class="basicInfo">
                                      	<?php if($curauth->address !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Address','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->address; ?> , <?php echo $curauth->city; ?> , <?php echo $curauth->province; ?></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->country !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Country','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->country; ?></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->phone !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Phone','lioit'); ?></span>
                                        	<span class="infoSt"><?php echo $curauth->phone; ?></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->user_email !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('E-mail','lioit'); ?></span>
                                        	<span class="infoSt"><a href="mailto:<?php echo $curauth->user_email; ?>"><?php echo $curauth->user_email; ?></a></span>
                                        </li>
                                        <?php } ?>
                                        <?php if($curauth->user_url !="") { ?>
                                        <li>
                                        	<span class="infoLabel"><?php _e('Website','lioit'); ?></span>
                                        	<span class="infoSt"><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></span>
                                        </li>
                                        <?php } ?>
                                      </ul>
                                    </div><!--.author-->
                                    <div class="widgetTitle"><h5><?php _e('Social Networks','lioit'); ?></h5><span class="titleBorder"></span></div>
                                    <div class="authorMainInfoData">
                                      <ul class="contactSocial">
      	            					 
                                        <?php if($curauth->facebook !="") { ?>
                                          <a target="_blank" href="<?php echo $curauth->facebook; ?>" class="icon-facebook social-icon  size-m" title="Facebook"></a>
                                          <?php } ?>
                                        <?php if($curauth->twitter !="") { ?>
                             			 <a target="_blank" href="<?php echo $curauth->twitter; ?>" class="icon-twitter social-icon  size-m" original-title="Twitter"></a>
                                          <?php } ?>
                                        <?php if($curauth->linkedin !="") { ?>
                                         <a target="_blank" href="<?php echo $curauth->linkedin; ?>" class="icon-linkedin social-icon  size-m" title="Linkedin"></a>
                                          <?php } ?>
                                        <?php if($curauth->gplus !="") { ?>
                                        <a target="_blank" href="<?php echo $curauth->gplus; ?>" class="icon-gplus-2 social-icon  size-m" title="Google+"></a>
                                          <?php } ?>
                                        <?php if($curauth->skype !="") { ?>
                                 
                                          <a href="skype:<?php echo $curauth->skype; ?>?call" class="icon-skype social-icon  size-m" title="Skype"></a>
                                          <?php } ?>
                                        <?php if($curauth->youtube !="") { ?>
                                                     
                                                           
                                          <a target="_blank" href="<?php echo $curauth->youtube; ?>" class="icon-youtube social-icon  size-m" title="YouTube"></a>
                                          <?php } ?>
                                        <?php if($curauth->vimeo !="") { ?>
                                        <a target="_blank" href="<?php echo $curauth->vimeo; ?>" class="icon-vimeo social-icon  size-m" title="Vimeo"></a>
                                          <?php } ?>
                                        <?php if($curauth->pinterest !="") { ?>
                                         <a target="_blank" href="<?php echo $curauth->pinterest; ?>" class="icon-pinterest social-icon  size-m" title="Pinterest"></a>
                                          <?php } ?>
                                        <?php if($curauth->dribbble !="") { ?>
                                         <a target="_blank" href="<?php echo $curauth->dribbble; ?>" class="icon-dribbble social-icon  size-m" title="Dribbble"></a>
                                          <?php } ?>
                                        <?php if($curauth->behance !="") { ?>
                                                     
                                          <a target="_blank" href="<?php echo $curauth->behance; ?>" class="icon-behance social-icon  size-m" title="Behance"></a>
                                          <?php } ?>
                                        
            
      </ul>
                                    </div><!--.author-->
                                </div><!--End MainBox-->
                                
                            </div><!--End AuthoInfo-->
                            
                        </div><!--End Profile-->
                     
                    </div><!--End ContentBox-->
                    
                </div><!--End Main Content-->
            </div><!--End Main-->
        </div><!--End Content-->

<?php get_footer();?>
