<?php get_header();?>
            <div id="main" class="container singleContent">
           	 <div class="row">
            <?php
	$ratings = new lioit_user_rating();
    $lioit_review_enable = get_post_meta($post->ID, 'lioit_review_enable', true);
    $lioit_user_ratings_visibility = get_post_meta($post->ID, 'lioit_user_ratings_visibility', true);
    $lioit_final_score = get_post_meta($post->ID, 'lioit_final_score', true);
    $lioit_longer_summary = get_post_meta($post->ID, 'lioit_longer_summary', true);
    $lioit_brief_summary = get_post_meta($post->ID, 'lioit_brief_summary', true);
    $lioit_review_type = get_post_meta($post->ID, 'lioit_review_type', true);
    $lioit_criteria_display = get_post_meta($post->ID, 'lioit_criteria_display', true);
    $lioit_criteria_header = get_post_meta($post->ID, 'lioit_criteria_header', true);
    
	$lioit_c1_rating = get_post_meta($post->ID, 'lioit_c1_rating', true);
    $lioit_c1_description = get_post_meta($post->ID, 'lioit_c1_description', true);
    $lioit_c2_rating = get_post_meta($post->ID, 'lioit_c2_rating', true);
    $lioit_c2_description = get_post_meta($post->ID, 'lioit_c2_description', true);
    $lioit_c3_rating = get_post_meta($post->ID, 'lioit_c3_rating', true);
    $lioit_c3_description = get_post_meta($post->ID, 'lioit_c3_description', true);
    $lioit_c4_rating = get_post_meta($post->ID, 'lioit_c4_rating', true);
    $lioit_c4_description = get_post_meta($post->ID, 'lioit_c4_description', true);
    $lioit_c5_rating = get_post_meta($post->ID, 'lioit_c5_rating', true);
    $lioit_c5_description = get_post_meta($post->ID, 'lioit_c5_description', true);
    $lioit_c6_rating = get_post_meta($post->ID, 'lioit_c6_rating', true);
    $lioit_c6_description = get_post_meta($post->ID, 'lioit_c6_description', true);
	$lioit_c7_rating = get_post_meta($post->ID, 'lioit_c7_rating', true);
    $lioit_c7_description = get_post_meta($post->ID, 'lioit_c7_description', true);
    $lioit_c8_rating = get_post_meta($post->ID, 'lioit_c8_rating', true);
    $lioit_c8_description = get_post_meta($post->ID, 'lioit_c8_description', true);
    $lioit_c1_percentage = $lioit_c1_rating * 20;
    $lioit_c2_percentage = $lioit_c2_rating * 20;
    $lioit_c3_percentage = $lioit_c3_rating * 20;
    $lioit_c4_percentage = $lioit_c4_rating * 20;
    $lioit_c5_percentage = $lioit_c5_rating * 20;
    $lioit_c6_percentage = $lioit_c6_rating * 20;
	$lioit_c7_percentage = $lioit_c7_rating * 20;
    $lioit_c8_percentage = $lioit_c8_rating * 20;
    $lioit_final_percentage = $lioit_final_score * 20;
    $lioit_c1_width = $lioit_c1_percentage + 2;
    $lioit_c2_width = $lioit_c2_percentage + 2;
    $lioit_c3_width = $lioit_c3_percentage + 2;
    $lioit_c4_width = $lioit_c4_percentage + 2;
    $lioit_c5_width = $lioit_c5_percentage + 2;
    $lioit_c6_width = $lioit_c6_percentage + 2;
	$lioit_c7_width = $lioit_c7_percentage + 2;
	$lioit_c8_width = $lioit_c8_percentage + 2;
    $lioit_final_width = $lioit_final_percentage + 2;
	$sideoption = get_post_meta($post->ID, 'lioit_sideoption', true);
	$side_layout = get_post_meta($post->ID, 'lioit_side_layout', true);
?>
            	<?php if($sideoption) { ?>
					<?php if($side_layout == "leftside") { ?>
                    <?php } elseif($side_layout =="nosidebar") { ?>
                    	<div id="mainContentRight" class="span12">
							<?php require Lioit_TM . '/single.php';?>
                        </div><!--End Main Content-->
                    <?php } elseif($side_layout =="doublesidebarright") { ?>
                        <div id="mainContentRight" class="span7">
                            <?php require Lioit_TM . '/single.php';?>
                        </div><!--End Main Content-->
                         <div class="sidebar smallSidebar span2">
                                <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Single sidebar Small')){ }else { ?>
                                <?php } ?>
                        </div><!--End smallSidebar-->
                        <?php get_sidebar();?>
                    <?php } elseif($side_layout =="doublesidebarleft") { ?>
                    	
                         <div class="sidebar smallSidebar span2">
                                <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Single sidebar Small')){ }else { ?>
                                <?php } ?>
                        </div><!--End smallSidebar-->
                        <?php get_sidebar();?>
                    	<div id="mainContentRight" class="span7">
							<?php require Lioit_TM . '/single.php';?>
                        </div><!--End Main Content-->
                    <?php } elseif($side_layout =="singlesidebarright") { ?>
                        <div id="mainContentRight" class="span9">
                            <?php require Lioit_TM . '/single.php';?>
                        </div><!--End Main Content-->
                    	<?php get_sidebar();?>	
                    <?php } elseif($side_layout =="singlesidebarleft") { ?>	
                    	<?php get_sidebar();?>
                        <div id="mainContentRight" class="span9">
                            <?php require Lioit_TM . '/single.php';?>
                        </div><!--End Main Content-->
                    	
                    <?php } ?>
                <?php } else { ?>
                	<div id="mainContentRight" class="span9">
                            <?php require Lioit_TM . '/single.php';?>
                        </div><!--End Main Content-->
                    	<?php get_sidebar();?>	
                <?php } ?>
                </div><!--End row-->
            </div><!--End Main-->
        </div><!--End Content-->
<?php get_footer();?>
