<?php get_header();?>
           <div id="main" class="container">
            	<div class="row">
            	
					<div class="singlePost span7 blogstyle4">
<?php echo ImgSlider_Fun(1, 1); ?>
<br />
                    	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                            <div class="hentryContent">
                                <div class="postContent">

                                    <div class="postTitle">
                                    	
                                        <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><!--End PostTitle-->
                                    <div class="postMetaContainer">
                                       <ul class="postMeta">
                                      		<?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'){ ?>
                                            <li>
                                            	<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>
                                            </li>
											<?php } ?>
                                         
                                      		<?php if(!empty($smof_data['show_postdate'])) { ?>
                                            <li class="postDateMeta"><?php the_time('F d, Y'); ?></li>
                                            <?php } ?>
                                            <?php if(!empty($smof_data['show_postauthor'])) { ?>
                                            <li class="postAuthor"><?php _e('By','lioit') ?> <?php the_author_posts_link(); ?></li>
                                            <?php } ?>
                                            <?php if(!empty($smof_data['show_postcat'])) { ?>
                                            <li class="postCategory"><?php _e('in','lioit') ?> <?php the_category(', ') ?></li>
                                            <?php } ?>
                                            <?php if(!empty($smof_data['show_postcomm'])) { ?>
                                            <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><?php } ?>
                                            
                                        </ul><!--End postMeta-->
                                    </div><!--End PostMetaContainer-->
                                      <?php if ( in_category( 'Arabic' )) { ?><div id="content-ur"><?php }; ?>   <p><?php if (is_syndicated()) :
                     // Strip down to an excerpt
                     $text = get_the_content(); $text = strip_tags($text);
                     if (strlen($text) > 255) :
                          $text = substr($text, 0, 400).'...';
                     endif;
                     print $text;
                else :
                     the_content('Read the rest of this entry &raquo;');
                endif; ?></p><?php if ( in_category( 'Arabic' )) { ?></div><?php }; ?>
                                </div><!--End PostContent-->
                                <div class="postBtm">
                                   <!--End PostTags-->
                               <!--<a href="<?php the_permalink();?>" class="postMore btn"><?php _e('Read More' , 'lioit' ) ?></a>-->
                                </div><!--End PostBtm-->
                            </div><!--End hentryConent-->
                        </article><!--End Post-->
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <div class="mainPagination">
                            <div class="pagesNambers"><?php lio_pagination(); ?></div><!--En Nambers-->
                            <?php
                             if( get_next_posts_link() || get_previous_posts_link() ) { ?>
                                <div class="paginationLinks">
                                    <?php previous_posts_link('<i class="icon-angle-left"></i>'); ?>
                                    <?php next_posts_link('<i class="icon-angle-right"></i>'); ?>
                             </div>	

                            <?php } ?>
                        </div><!--End MainBagination-->


<!-- vietnamnewsgazette.com_728x90 -->
<div id='div-gpt-ad-1414326301133-0' style='width:728px; height:90px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1414326301133-0'); });
</script>
</div>
<!-- vietnamnewsgazette.com_728x90 -->

                    </div><!--End ContentBox-->
                    <?php require( Lioit_DIR . '/Lioit/home/small-sidebar.php'); ?>
                        <?php get_sidebar();?>
             
                
           		</div><!--End Row-->
              
            </div><!--End Main-->
        </div><!--End Content-->
<?php get_footer();?>