<div class="container">
<div class="row">
                	<div class="span12"><?php require( Lioit_DIR . '/Lioit/home/index-main-slider.php'); ?>
        			<div class="featPosts">
                    	<?php 
                                           $current_year = date('Y');
                                            $current_month = date('m');
                                        ?>
						<?php query_posts(array(  "ignore_sticky_posts" => 1,'year'     => $current_year,'monthnum' => $current_month, 'showposts' => 4, "orderby" => "comment_count")); ?>
                        <?php global $post; if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                      
                          <div class="featPost">
                            
                                            <div class="featPostThumb ">
                                                
                                                
                                                
                                               <a href="<?php the_permalink(); ?>" class="tooltip top" title="<?php the_title(); ?>"> <?php the_post_thumbnail('main-block', array('title' => strip_tags(get_the_title()))); ?></a>
                                              
                                            </div><!--End LatestPostThumb-->
                            <div class="lioPosMeta"><?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
                                            $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 class="lioit-rating lioit-rating-<?php echo esc_html($lioit_review_type); ?>">
                                                	<span style="width:<?php echo esc_html($lioit_final_percentage); ?>%;"></span>
                                                </span>
                                   
											<?php } ?>
                                            <span class="postViews"><?php echo getPostViews($post->ID); ?> </span> </div>
                        </div>
                        <?php endwhile; ?>
                        <?php  endif; ?>
                        <?php wp_reset_query(); ?>
                        </div>
                    </div><!--End span12-->
                </div><!--End Row--></div><!--End container-->