	<?php 
	if($load_css_js==1) 
	{
		$include_css_js=include("application/views/site/report_css_js.php");
		echo "<!DOCTYPE html><html><head>".$include_css_js."</head></style><body>";
	}
	$lead_config=$this->basic->get_data("lead_config",array("where"=>array("status"=>"1")));
	if(isset($lead_config[0])) $direct_download="0";
	else $direct_download="1";
	echo "<input type='hidden' value='".$site_info[0]["id"]."' id='hidden_id'/>";		
	?>


	<?php 
		if($load_css_js==1) 
		{
			$path = 'assets/images/logo.png';
			$type = pathinfo($path, PATHINFO_EXTENSION);
			$data = file_get_contents($path);
			$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
			echo "<img style='margin-left:242px;max-width:200px;' src='".$base64."' alt='".$this->config->item("institute_address1")."'>";
			echo "<h3 class='text-center'>".$this->config->item("institute_address1")."</h3>";
			if($this->config->item("institute_address2")!="")
			echo "<h6 class='text-center'>Address: ".$this->config->item("institute_address2")."</h6>";
			echo "<h6 class='text-center'>Contact: ".$this->config->item("institute_email");
			echo " | ".$this->config->item("institute_mobile");
			echo "</h6><h6 class='text-center'>Website: <a href=".site_url()." target='_BLANK'>".site_url()."</a></h6><br/>";
		}
	?>



	<?php 
	if($load_css_js==1) 
	{
		$headline="<br>Health Report";
		$catch_line="";
		$searched_at="Examined at";
	}
	else
	{
		$headline=$this->lang->line("health report");
		$catch_line=$this->lang->line('follow recommendations of this health report to keep your site healthy');
		$searched_at=$this->lang->line('examined at');
	}
	?>
	<div class='full' style='position: relative'>
	<h2 id="" class="title text-center"><?php echo $headline; ?> : <a href="<?php echo $site_info[0]["domain_name"]; ?>"  target="_BLANK"><?php echo $site_info[0]["domain_name"]; ?></a></h2>
	<p class="text-center slogan"><?php echo $catch_line; ?></p>
	<p class="text-center slogan"> <?php echo $searched_at." : ".$site_info[0]["searched_at"]; ?></p>

	<hr>

	<?php 
	
	$mobile_ready_data=json_decode($site_info[0]['mobile_ready_data'],true);
	$pass="Unknown";
	if(isset($mobile_ready_data["ruleGroups"]["USABILITY"]["pass"]))
	$pass=$mobile_ready_data["ruleGroups"]["USABILITY"]["pass"];	
	
	$warning_count=$site_info[0]["warning_count"];
	if($pass!="1") $warning_count++;
	
	$warning_class="success";
	if($warning_count>0) $warning_class="warning";
	?>

    

	<div class="container">

		<?php if($load_css_js!=1) {?>
			<div class="row">
				<div class="col-xs-12 col-sm-12 col-lg-7 col-md-7 share-container text-center"><?php include("application/views/site/share_button.php");?></div>
				<div class="col-xs-12 col-sm-12 col-lg-3 col-md-3 share-sibing text-center"><a id="add_competutor" class="btn btn-lg btn-primary" href="<?php echo site_url("home/index/".$site_info[0]["id"]);?>">  <i class="fa fa-adjust"></i> <?php echo $this->lang->line("compare with competutor");?></a></div>
				<div class="col-xs-12 col-sm-12 col-lg-2 col-md-2 share-sibing text-center"><a id="download_list" class="btn btn-lg btn-success"> <i class="fa fa-cloud-download"></i> <?php echo $this->lang->line("download pdf");?></a></div>
				<div class="col-xs-12">
					<div class="box box-green no_radius" id="subscribe_div" style="display:none;">
						<br>
						<div class="box-body chart-responsive minus">
							<div class="col-xs-12">
								<div id="success_msg"></div>
							</div>
							<div class="col-xs-12">
								<div class="alert alert-custom text-center" id="send_email_message"><?php echo $this->lang->line('the download link will be sent to your email'); ?></div>
							</div>
							<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
								<input type="text" class="form-control" id="name" required placeholder="<?php echo $this->lang->line('your name'); ?> *">
							</div>
							<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
								<input type="text" class="form-control" id="email" required placeholder="<?php echo $this->lang->line('your email'); ?> *">
							</div>
							<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
								<a class="btn btn-success btn-lg" id="send_email"> <i class="fa fa-send"></i> <?php echo $this->lang->line('send report'); ?></a>
							</div>
						</div>
						<br>
					</div>


				</div>
			</div>
			<div class="space"></div>
		<?php } ?>

		<?php if($this->is_ad_enabled && $this->is_ad_enabled1 && $load_css_js!=1) : ?>	
		<div class="add-970-90 hidden-xs hidden-sm" style='text-align: center'><?php echo $this->ad_content1; ?></div>
		<div class="add-320-100 hidden-md hidden-lg" style='text-align: center'><?php echo $this->ad_content1_mobile; ?></div>		
		<div class="space"></div>
		<br>
		<?php endif; ?>	

		<?php echo "<div style='font-size:20px !important;' class='text-center alert alert-".$warning_class."'><b>".$this->config->item('product_short_name')."</b> ".$this->lang->line("found")." <b>".$warning_count."</b> ".$this->lang->line('major issues')."</div>"; ?>
		<div class="row">
			<div class="col-xs-12">		

				<?php if($load_css_js!=1) {?>
					<p style='text-align: center;position: relative'>
						<input type="text" class="dial knob" data-readonly="true" value="<?php echo $site_info[0]["overall_score"]; ?>" data-width="120" data-height="120" data-fgColor="#39CCCC" data-thickness=".1">
						<span style='position: absolute; top: 70px; right: 0; width: 100%; text-align: center; color: #39CCCC'><?php echo $this->lang->line('Score'); ?></span>
					</p> 
				<?php } else { ?>
				<div class="col-xs-12">
					<div style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;padding: 10px" class="info-box">
							<span class="info-box-text">Score</span>
							<span class="info-box-number"><?php echo $site_info[0]["overall_score"]; ?></span>
					</div>
				</div>
				<?php } ?>

				<!-- page title start-->
				<?php 
				$recommendation_word=$this->lang->line("Knowledge Base");
				$value=$site_info[0]["title"];
				$check=$this->site_check->title_check($value); 
				$item=$this->lang->line("Page Title");
				$long_recommendation=$this->lang->line('page_title_recommendation');
				if(strlen($value)==0) //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Your site do not have any title.");
				}
				else if($check=="1") // warning
				{
					$class="yellow";
					$status="exclamation-circle";
					$short_recommendation=$this->lang->line("Your page title exceeds 60 characters. It's not good.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your page title does not exceed 60 characters. It's fine.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<i class='fa fa-<?php echo $status;?>'></i> <b><?php echo $item; ?> :</b> <?php echo $value; ?>				
						<br/><br/><br/>
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  page title end-->
			</div>
		</div>





		<div class="row">
			<div class="col-xs-12">				
				<!-- meta description start-->
				<?php 
				$value=$site_info[0]["description"];
				$check=$this->site_check->description_check($value); 
				$item=$this->lang->line("Meta Description");
				$long_recommendation=$this->lang->line('description_recommendation');
				if(strlen($value)==0) // error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Your site do not have any meta description.");
				}
				else if($check=="1") //warning
				{
					$class="yellow";
					$status="exclamation-circle";
					$short_recommendation=$this->lang->line("Your meta description exceeds 150 characters. It's not good.");
				}
				else // ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your meta description does not exceed 150 characters. It's fine.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<i class='fa fa-<?php echo $status;?>'></i> <b><?php echo $item; ?> :</b> <?php echo $value; ?>				
						<br/><br/><br/>
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  meta description end-->
			</div>
		</div>





		<div class="row">
			<div class="col-xs-12">				
				<!-- meta keyword start-->
				<?php 
				$value=$site_info[0]["meta_keyword"];
				$check=empty($value) ? 1 : 0;
				$item=$this->lang->line("Meta Keyword");
				$long_recommendation=$this->lang->line('meta_keyword_recommendation');
				if($check=="1") //error
				{
					$class="red";
					$status="remove";
					$short_recommendation="<br/><br/><br/>".$this->lang->line("Your site do not have any meta keyword.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation="";
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<i class='fa fa-<?php echo $status;?>'></i> <b><?php echo $item; ?> :</b> <?php echo $value; ?>			
						
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  meta keyword end-->
			</div>
		</div>






		<div class="row">
			<?php 
			$one_phrase=json_decode($site_info[0]["keyword_one_phrase"],true); 
			$two_phrase=json_decode($site_info[0]["keyword_two_phrase"],true); 
			$three_phrase=json_decode($site_info[0]["keyword_three_phrase"],true); 
			$four_phrase=json_decode($site_info[0]["keyword_four_phrase"],true); 
			$total_words=empty($site_info[0]["total_words"]) ? 0 : $site_info[0]["total_words"];
			include("application/views/site/array_spam_keyword.php");
		
			$class="blue-dark";
			$status="info-circle";
		
			?>
			<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">	
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $this->lang->line("Single Keywords"); ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<div class="table-resposive table-responsive-vertical">
							<table class="table table-bordered table-bordered table-condensed table-striped">
								<tr>
									<th><?php echo $this->lang->line("Keyword"); ?></th>
									<th><?php echo $this->lang->line("Occurrence"); ?></th>
									<th><?php echo $this->lang->line("Density"); ?></th>
									<th><?php echo $this->lang->line("Possible Spam"); ?></th>
								</tr>
								<?php foreach ($one_phrase as $key => $value) : ?>
									<tr>
										<td><?php echo $key; ?></td>
										<td><?php echo $value; ?></td>
										<td><?php $occurence = ($value/$total_words)*100; echo round($occurence, 3)." %"; ?></td>
										<td><?php 
												if(in_array(strtolower($key), $array_spam_keyword)) echo "Yes";
												else echo 'No'; 
											?>
										</td>
									</tr>
								<?php endforeach; ?>
							</table>
						</div>
					</div>
				</div> 
			</div>

			<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">	
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $this->lang->line("Two Word Keywords"); ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<div class="table-resposive table-responsive-vertical">
							<table class="table table-bordered table-condensed table-striped">
								<tr>
									<th><?php echo $this->lang->line("Keyword"); ?></th>
									<th><?php echo $this->lang->line("Occurrence"); ?></th>
									<th><?php echo $this->lang->line("Density"); ?></th>
									<th><?php echo $this->lang->line("Possible Spam"); ?></th>
								</tr>
								<?php foreach ($two_phrase as $key => $value) : ?>
									<tr>
										<td><?php echo $key; ?></td>
										<td><?php echo $value; ?></td>
										<td><?php $occurence = $value/$total_words*100; echo round($occurence, 3)." %"; ?></td>
										<td><?php 
												if(in_array(strtolower($key), $array_spam_keyword)) echo "Yes";
												else echo 'No'; 
											?>
										</td>
									</tr>
								<?php endforeach; ?>
							</table>
						</div>
					</div>
				</div> 
			</div>

			<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">	
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $this->lang->line("Three Word Keywords"); ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<div class="table-resposive table-responsive-vertical">
							<table class="table table-bordered table-bordered table-condensed table-striped">
								<tr>
									<th><?php echo $this->lang->line("Keyword"); ?></th>
									<th><?php echo $this->lang->line("Occurrence"); ?></th>
									<th><?php echo $this->lang->line("Density"); ?></th>
									<th><?php echo $this->lang->line("Possible Spam"); ?></th>
								</tr>
								<?php foreach ($three_phrase as $key => $value) : ?>
									<tr>
										<td><?php echo $key; ?></td>
										<td><?php echo $value; ?></td>
										<td><?php $occurence = $value/$total_words*100; echo round($occurence, 3)." %"; ?></td>
										<td><?php 
												if(in_array(strtolower($key), $array_spam_keyword)) echo "Yes";
												else echo 'No'; 
											?>
										</td>
									</tr>
								<?php endforeach; ?>
							</table>
						</div>
					</div> 
				</div>
			</div>

			<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">	
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $this->lang->line("Four Word Keywords"); ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<div class="table-resposive table-responsive-vertical">
							<table class="table table-bordered table-condensed table-striped">
								<tr>
									<th><?php echo $this->lang->line("Keyword"); ?></th>
									<th><?php echo $this->lang->line("Occurrence"); ?></th>
									<th><?php echo $this->lang->line("Density"); ?></th>
									<th><?php echo $this->lang->line("Possible Spam"); ?></th>
								</tr>
								<?php foreach ($four_phrase as $key => $value) : ?>
									<tr>
										<td><?php echo $key; ?></td>
										<td><?php echo $value; ?></td>
										<td><?php $occurence = $value/$total_words*100; echo round($occurence, 3)." %"; ?></td>
										<td><?php 
												if(in_array(strtolower($key), $array_spam_keyword)) echo "Yes";
												else echo 'No'; 
											?>
										</td>
									</tr>
								<?php endforeach; ?>
							</table>
						</div>
					</div> 
				</div>
			</div>

		</div> <!-- end of 1,2,3,4 keyword -->





		<div class="row">
			<div class="col-xs-12">				
				<!-- Key words usage start-->
				<?php 
				$value=$site_info[0]["meta_keyword"];
				$check=$this->site_check->keyword_usage_check($site_info[0]["meta_keyword"],array_keys($one_phrase),array_keys($two_phrase),array_keys($three_phrase),array_keys($four_phrase));
				$item=$this->lang->line("Keyword Usage");
				$long_recommendation=$this->lang->line('keyword_usage_recommendation');
				if($check=="1") //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("The most using keywords do not match with meta keywords.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("The most using keywords match with meta keywords.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  Key words usage end-->
			</div>
		</div>





		<div class="row">
			<div class="col-xs-12">				
				<!--total words start-->
				<?php 
				$value=$site_info[0]["total_words"];
				$item=$this->lang->line("Total Words");
				$long_recommendation=$this->lang->line('unique_stop_words_recommendation');
				$class="blue-dark";
				$status="info-circle";
				
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<i class='fa fa-<?php echo $status;?>'></i> <b><?php echo $item; ?> :</b> <?php echo $value; ?>				
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  total words end-->
			</div>
		</div>



			<div class="row">
			<div class="col-xs-12">				
				<!-- text_to_html_ratiostart-->
				<?php 
				$check=round($site_info[0]["text_to_html_ratio"]); 
				$item=$this->lang->line("Text/HTML Ratio Test");
				$long_recommendation=$this->lang->line('text_to_html_ratio_recommendation');

				if($check<20) //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Site failed text/HTML ratio test.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Site passed text/HTML ratio test.");
				}
				$short_recommendation.="<br/><br/><i class='fa fa-".$status."'></i> <b>".$item." : ".$check."%</b>";
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">						
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  text_to_html_ratio end-->
			</div>
		</div>







		<div class="row">
			<?php 
				$h1=json_decode($site_info[0]["h1"],true); 
				$h2=json_decode($site_info[0]["h2"],true); 
				$h3=json_decode($site_info[0]["h3"],true); 
				$h4=json_decode($site_info[0]["h4"],true); 
				$h5=json_decode($site_info[0]["h5"],true); 
				$h6=json_decode($site_info[0]["h6"],true); 			
			?>
			<?php 
				$item=$this->lang->line("HTML Headings");
				$long_recommendation=$this->lang->line('heading_recommendation');
				$class="blue-dark";
				$status="info-circle";
			?>
			<div class="col-xs-12">
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
							<h3 class="highlight_header">H1(<?php echo count($h1) ?>)</h3>
							<div class="highlight_header_content">
								<ul>
								<?php foreach($h1 as $key=>$value): ?>
									<li><?php echo $value; ?></li>
								<?php endforeach; ?>
								</ul>
							</div>
						</div>					
						<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
							<h3 class="highlight_header">H2(<?php echo count($h2) ?>)</h3>
							<div class="highlight_header_content">
								<ul>
								<?php foreach($h2 as $key=>$value): ?>
									<li><?php echo $value; ?></li>
								<?php endforeach; ?>
								</ul>
							</div>
						</div>					
						<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
							<h3 class="highlight_header">H3(<?php echo count($h3) ?>)</h3>
							<div class="highlight_header_content">
								<ul>
								<?php foreach($h3 as $key=>$value): ?>
									<li><?php echo $value; ?></li>
								<?php endforeach; ?>
								</ul>
							</div>
						</div>					
						<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
							<h3 class="highlight_header">H4(<?php echo count($h4) ?>)</h3>
							<div class="highlight_header_content">
								<ul>
								<?php foreach($h4 as $key=>$value): ?>
									<li><?php echo $value; ?></li>
								<?php endforeach; ?>
								</ul>
							</div>
						</div>					
						<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
							<h3 class="highlight_header">H5(<?php echo count($h5) ?>)</h3>
							<div class="highlight_header_content">
								<ul>
								<?php foreach($h5 as $key=>$value): ?>
									<li><?php echo $value; ?></li>
								<?php endforeach; ?>
								</ul>
							</div>
						</div>					
						<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
							<h3 class="highlight_header">H6(<?php echo count($h6) ?>)</h3>
							<div class="highlight_header_content">
								<ul>
								<?php foreach($h6 as $key=>$value): ?>
									<li><?php echo $value; ?></li>
								<?php endforeach; ?>
								</ul>
							</div>
						</div>	
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>				
					</div><!-- /.box-body -->
				</div><!-- /.box -->
			</div>		
		</div>






		<div class="row">
			<div class="col-xs-12">				
				<!-- robot start-->
				<?php 
				$value=$site_info[0]["robot_txt_exist"];
				$check=$value;
				$item=$this->lang->line("robot.txt");
				$long_recommendation=$this->lang->line('robot_recommendation');
				if($check=="0") //warning
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Your site does not have robot.txt.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your site have robot.txt");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">					
						<?php echo $short_recommendation; ?>
						<?php
							if($check=="1")
							{ ?>															
								<br><br>
								<h3 class="highlight_header"><?php echo $item;?> </h3>
								<div class="highlight_header_content">>
									<?php print_r($site_info[0]["robot_txt_content"]);?>
								</div>	
							<?php
							} ?>
						<br/><br/>
						<br/><br/>	
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  robot end-->
			</div>
		</div>






		<div class="row">
			<div class="col-xs-12">				
				<!-- sitemap start-->
				<?php 
				$value=$site_info[0]["sitemap_exist"];
				$check=$value;
				$item=$this->lang->line("Sitemap");
				$long_recommendation=$this->lang->line('sitemap_recommendation');
				if($check=="0") //warning
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Your site does not have sitemap");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your site have sitemap");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php echo $short_recommendation; ?>
						<?php if($check=="1") echo "<br>Location: <a href='".$site_info[0]["sitemap_location"]."' target='_BLANK'>".$site_info[0]["sitemap_location"]."</a>";?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  sitemap end-->
			</div>
		</div>







		<div class="row">
			<div class="col-xs-12">				
				<!-- sitemap start-->
				<?php 
				$item=$this->lang->line("Internal Vs. External Links");				
				$class="blue-dark";
				$status="info-circle";
				
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">

						<div class="row">
							
							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line("Total Internal Links?"); ?></span>
										<span class="info-box-number"><?php echo $site_info[0]["internal_link_count"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line("Total External Links?"); ?></span>
										<span class="info-box-number"><?php echo $site_info[0]["external_link_count"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">								
								<h3 class="highlight_header"><?php echo $this->lang->line("Internal Links"); ?></h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											$internal_link=json_decode($site_info[0]["internal_link"],true);											
											foreach ($internal_link as $value) 
											{
												echo "<li>".$value["link"]."</li>";
											}
										?>
									</ul>
								</div>						
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">								
								<h3 class="highlight_header"><?php echo $this->lang->line("External Links"); ?></h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											$external_link=json_decode($site_info[0]["external_link"],true);
											foreach ($external_link as $value) 
											{
												echo "<li>".$value["link"]."</li>";
											}
										?>
									</ul>
								</div>						
							</div>
						</div>

					</div>
				</div> 
				<!--  sitemap end-->
			</div>
		</div>

		<!-- Alexa Rank -->

		<div class="row">
			<div class="col-xs-12">				
				<!-- sitemap start-->
				<?php 
				$item=$this->lang->line("Alexa Rank");				
				$class="blue-dark";
				$status="info-circle";	
				$alexa_rank_array = json_decode($site_info[0]['alexa_rank'], true);	
				?>

				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">

						<div class="row">

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line('Traffic Rank'); ?></span>
										<span class="info-box-number"><?php echo $alexa_rank_array["traffic_rank"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>
							
							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line('Reach Rank'); ?></span>
										<span class="info-box-number"><?php echo $alexa_rank_array["reach_rank"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line('Top Country'); ?></span>
										<span class="info-box-number"><?php echo $alexa_rank_array["country"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line('Top Country Rank'); ?></span>
										<span class="info-box-number"><?php echo $alexa_rank_array["country_rank"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

						</div>

					</div>
				</div> 
				<!--  sitemap end-->
			</div>
		</div>

		<!-- end Alexa Rank -->



		<!-- Domain IP Information -->

		<div class="row">
			<div class="col-xs-12">				
				<!-- sitemap start-->
				<?php 
				$item=$this->lang->line("Domain IP Information");				
				$class="blue-dark";
				$status="info-circle";	
				$domain_ip_info = json_decode($site_info[0]['domain_ip_info'], true);	
				?>

				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">

						<div class="row">

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('ISP'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["isp"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>
							
							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('IP'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["ip"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('Organization'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["organization"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('City'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["city"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('Country'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["country"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('Time Zone'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["time_zone"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('Longitude'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["longitude"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4">
								<div class="info-box custom" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon custom bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text custom"><?php echo $this->lang->line('Latitude'); ?></span>
										<span class="info-box-number custom"><?php echo $domain_ip_info["latitude"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

						</div>

					</div>
				</div> 
				<!--  sitemap end-->
			</div>
		</div>

		<!-- end Domain Ip Information -->




		

		<div class="row">
			<div class="col-xs-12">				
				<!-- sitemap start-->
				<?php 
				$item=$this->lang->line("NoIndex , NoFollow, DoDollow Links");
				$long_recommendation=$this->lang->line('no_do_follow_recommendation');
				
				$class="blue-dark";
				$status="info-circle";
				
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">

						<div class="row">
							<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
								<div class="info-box" style="border:1px solid #DD4B39;border-bottom:2px solid #DD4B39;">
									<span class="info-box-icon bg-red"><i class="fa fa-remove"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line("Total NoIndex Links"); ?></span>
										<span class="info-box-number"><?php echo count(json_decode($site_info[0]["noindex_list"],true)); ?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
								<div class="info-box" style="border:1px solid #F39C12;border-bottom:2px solid #F39C12;">
									<span class="info-box-icon bg-yellow"><i class="fa fa-remove"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line("Total NoFollow Links"); ?></span>
										<span class="info-box-number"><?php echo $site_info[0]["nofollow_link_count"]; ?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>
							<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
								<div class="info-box" style="border:1px solid #00A65A;border-bottom:2px solid #00A65A;">
									<span class="info-box-icon bg-green"><i class="fa fa-check"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line("Total DoFollow Links"); ?></span>
										<span class="info-box-number"><?php echo $site_info[0]["dofollow_link_count"]; ?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>


							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line("NoIndex Enabled by Meta Robot?"); ?></span>
										<span class="info-box-number"><?php echo $site_info[0]["noindex_by_meta_robot"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-question-circle"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $this->lang->line("NoFollow Enabled by Meta Robot?"); ?></span>
										<span class="info-box-number"><?php echo $site_info[0]["nofollowed_by_meta_robot"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">								
								<h3 class="highlight_header"><?php echo $this->lang->line("NoIndex Links"); ?></h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											$noindex_list=json_decode($site_info[0]["noindex_list"],true);
											foreach ($noindex_list as $value) 
											{
												echo "<li>".$value."</li>";
											}
										?>
									</ul>
								</div>						
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">								
								<h3 class="highlight_header"><?php echo $this->lang->line("NoFollow Links"); ?></h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											$nofollow_links=json_decode($site_info[0]["nofollow_link_list"],true);
											foreach ($nofollow_links as $value) 
											{
												echo "<li>".$value."</li>";
											}
										?>
									</ul>
								</div>						
							</div>

						</div>
						

						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  sitemap end-->
			</div>
		</div>







		<div class="row">
			<div class="col-xs-12">				
				<!-- seo friendly link start-->
				<?php 
				$value=json_decode($site_info[0]["not_seo_friendly_link"],true);
				$check=count($value);
				$item=$this->lang->line("SEO Friendly Links");
				$long_recommendation=$this->lang->line('seo_friendly_recommendation');
				if($check==0) //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Links of your site are SEO friendly.");
				}
				else //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Some links of your site are not SEO friendly.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php 
							echo $short_recommendation; 
							if($check>0)
							{ ?>															
								<br><br>
								<h3 class="highlight_header">Not SEO Friendly Links </h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											foreach ($value as $val) 
											{
												echo "<li>".$val."</li>";
											}
										?>
									</ul>
								</div>	
							<?php
							}
						?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  seo friendly link end-->
			</div>
		</div>






		<div class="row">
			<div class="col-xs-12">				
				<!-- favicon start-->
				<?php 
				$check=$site_info[0]["is_favicon_found"];
				$item=$this->lang->line("Favicon");
				$long_recommendation="<a target='_BLANK' href='http://blog.woorank.com/2014/07/favicon-seo/'><i class='fa fa-hand-o-right'></i>  Learn more</a>";
				if($check=="0") //error
				{
					$class="yellow";
					$status="exclamation-circle";
					$short_recommendation=$this->lang->line("Your site does not have favicon.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your site have favicon.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php 
							echo $short_recommendation; 
						?>
						<br/><br/>						
						<?php echo $long_recommendation; ?>

					</div>
				</div> 
				<!--  favicon end-->
			</div>
		</div>







		<div class="row">
			<div class="col-xs-12">				
				<!-- img alt start-->
				<?php 
				$value=json_decode($site_info[0]["image_not_alt_list"],true);
				$check=$site_info[0]["image_without_alt_count"];
				$item=$this->lang->line("Image 'alt' Test");
				$long_recommendation=$this->lang->line('img_alt_recommendation');
				if($check=="0") //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your site does not have any image without alt text.");
				}
				else //warning
				{
					$class="yellow";
					$status="exclamation-circle";
					$short_recommendation=$this->lang->line("Your site have").$check.$this->lang->line("images without alt text.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php 
							echo $short_recommendation; 
							if($check>0)
							{ ?>															
								<br><br>
								<h3 class="highlight_header">Images Without alt </h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											foreach ($value as $val) 
											{
												echo "<li>".$val."</li>";
											}
										?>
									</ul>
								</div>	
							<?php
							}
						?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  img alt end-->
			</div>
		</div>




		<div class="row">
			<div class="col-xs-12">				
				<!-- page title start-->
				<?php 
				$value=$site_info[0]["doctype"];
				$check=$site_info[0]["doctype_is_exist"]; 
				$item=$this->lang->line("DOC Type");
				$long_recommendation=$this->lang->line('doc_type_recommendation');
				if($check=="0") //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Page do not have doc type");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Page have doc type.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<i class='fa fa-<?php echo $status;?>'></i> <b><?php echo $item; ?> :</b> <?php echo $value; ?>				
						<br/><br/><br/>
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  page title end-->
			</div>
		</div>







		<div class="row">
			<div class="col-xs-12">				
				<!-- depreciate tag start-->
				<?php 
				$value=json_decode($site_info[0]["depreciated_html_tag"],true);
				$check=array_sum($value);
				$item=$this->lang->line("Depreciated HTML Tag");
				$long_recommendation=$this->lang->line('depreciated_html_recommendation');
				if($check==0) //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your site does not have any depreciated HTML tag.");
				}
				else //warning
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Your site have").$check.$this->lang->line("depreciated HTML tags.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php 
							echo $short_recommendation; 
							if($check>0)
							{ ?>															
								<br><br>
								<h3 class="highlight_header">Depreciated HTML Tags </h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											foreach ($value as $key=>$val) 
											{
												echo "<li>".$key." : ".$val."</li>";
											}
										?>
									</ul>
								</div>	
							<?php
							}
						?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  depreciate tag end-->
			</div>
		</div>






		<div class="row">
			<div class="col-xs-12">				
				<!-- html page size start-->
				<?php 
				$value=round($site_info[0]["total_page_size_general"])." KB";
				$check=$value; 
				$item=$this->lang->line("HTML Page Size");
				$long_recommendation=$this->lang->line('html_page_size_recommendation');
				if($check>100) // warning
				{
					$class="yellow";
					$status="exclamation-circle";
					$short_recommendation=$this->lang->line("HTML page size is > 100KB");
				}
				else // ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("HTML page size is <= 100KB");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	
						<i class='fa fa-<?php echo $status;?>'></i> <b><?php echo $item; ?> :</b> <?php echo $value; ?>				
						<br/><br/><br/>
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  html page size end-->
			</div>
		</div>







		<div class="row">
			<div class="col-xs-12">				
				<!-- html page size start-->
				<?php 

				$value=round($site_info[0]["page_size_gzip"])." KB";
				$check=$site_info[0]["is_gzip_enable"]; 
				$item=$this->lang->line("GZIP Compression");
				$item2="GZIP Compressed Size";
				$long_recommendation=$this->lang->line('gzip_recommendation');
				if($check=="0") // warning
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("GZIP compression is disabled.");
				}
				else // ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("GZIP compression is enabled.");
					if(round($site_info[0]["page_size_gzip"]) > 33) 
					{
						$short_recommendation.=$this->lang->line("GZIP compressed size should be < 33KB");
						$class="red";
						$status="remove";
					}
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">	

						<?php if($check=="1") 
						{ ?>
							<i class='fa fa-<?php echo $status;?>'></i> <b><?php echo $item2; ?> :</b> <?php echo $value; ?>				
							<br/><br/><br/>
						<?php 
						} ?>

						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  html page size end-->
			</div>
		</div>








		<div class="row">
			<div class="col-xs-12">				
				<!--  inline css start-->
				<?php 
				$value=json_decode($site_info[0]["inline_css"],true);
				$check=count($value);
				$item=$this->lang->line("Inline CSS");
				$long_recommendation=$this->lang->line('inline_css_recommendation');
				if($check==0) //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your site does not have any inline css.");
				}
				else //warning
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Your site have").$check.$this->lang->line("inline css.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php 
							echo $short_recommendation; 
							if($check>0)
							{ ?>															
								<br><br>
								<h3 class="highlight_header"><?php echo $this->lang->line("Inline CSS"); ?> </h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											foreach ($value as $val) 
											{
												echo "<li>".$val."</li>";
											}
										?>
									</ul>
								</div>	
							<?php
							}
						?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--   inline css end-->
			</div>
		</div>





		<div class="row">
			<div class="col-xs-12">				
				<!--  inline css start-->
				<?php 
				$value=json_decode($site_info[0]["internal_css"],true);
				$check=count($value);
				$item=$this->lang->line("Internal CSS");
				$long_recommendation=$this->lang->line('internal_css_recommendation');
				if($check==0) //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Your site does not have any internal css.");
				}
				else //warning
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Your site have").$check.$this->lang->line("internal css.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">						
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>
					</div>
				</div> 
				<!--   inline css end-->
			</div>
		</div>





		<div class="row">
			<div class="col-xs-12">				
				<!-- micro data schema start-->
				<?php 
				$value=json_decode($site_info[0]["micro_data_schema_list"],true);
				$check=count($value);
				$item=$this->lang->line("Micro Data Schema Test");
				$long_recommendation=$this->lang->line('micro_data_recommendation');
				if($check>0) //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Site passed micro data schema test.").$check.$this->lang->line("results found.");
				}
				else //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Site failed micro data schema test.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php 
							echo $short_recommendation; 
							if($check>0)
							{ ?>															
								<br><br>
								<h3 class="highlight_header"><?php echo $this->lang->line("Micro data schema list"); ?></h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											foreach ($value as $val) 
											{
												echo "<li>".$val."</li>";
											}
										?>
									</ul>
								</div>	
							<?php
							}
						?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  micro data schema end-->
			</div>
		</div>






		<div class="row">
			<div class="col-xs-12">				
				<!-- ip dns start-->
				<?php 
				$item=$this->lang->line("IP & DNS Report");				
				$class="blue-dark";
				$status="info-circle";
				
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">

						<div class="row">

							
							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-map-marker"></i></span>
									<div class="info-box-content">
										<span class="info-box-text">IPv4</span>
										<span class="info-box-number"><?php echo $site_info[0]["ip"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
								<div class="info-box" style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;">
									<span class="info-box-icon bg-blue"><i class="fa fa-map-marker"></i></span>
									<div class="info-box-content">
										<span class="info-box-text">IPv6</span>
										<span class="info-box-number"><?php if($site_info[0]["is_ipv6_compatiable"]==0) echo "Not Compatiable "; else echo $site_info[0]["ipv6"];?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>

							<?php 
							$dns_report=json_decode($site_info[0]["dns_report"],true);
							if(count($dns_report)>0)
							{ ?>
								<div class="col-xs-12">								
									<h5>DNS Report </h5>
									<div class="highlight_header_content_large2 table-resposive no_padding">
										<?php 										
											echo "<table class='table table-bordered table-striped table-hover'>";
											echo "<tr class='success'>";
												echo "<td>SL</td>";
												echo "<td>Host</td>";
												echo "<td>Class</td>";
												echo "<td>TTL</td>";
												echo "<td>Type</td>";
												echo "<td>PRI</td>";
												echo "<td>Target</td>";
												echo "<td>IP</td>";
											echo "</tr>";
											$sl=0;
											foreach ($dns_report as $value) 
											{
												$sl++;
												if(!isset($value["host"]))  $value["host"]="";
												if(!isset($value["class"])) $value["class"]="";
												if(!isset($value["ttl"]))   $value["ttl"]="";
												if(!isset($value["type"]))  $value["type"]="";
												if(!isset($value["pri"])) 	$value["pri"]="";
												if(!isset($value["target"]))$value["target"]="";
												if(!isset($value["ip"])) 	$value["ip"]="";
												if($value["type"]=="AAAA")
													$value["ip"]=$value["ipv6"];
										
												echo "<tr>";
													echo "<td>".$sl."</td>";
													echo "<td>".$value["host"]."</td>";
													echo "<td>".$value["class"]."</td>";
													echo "<td>".$value["ttl"]."</td>";
													echo "<td>".$value["type"]."</td>";
													echo "<td>".$value["pri"]."</td>";
													echo "<td>".$value["target"]."</td>";
													echo "<td>".$value["ip"]."</td>";
												echo "</tr>";
											}
											echo "</table>";
										?>
									</div>						
								</div>
							<?php } 
							else echo '<div class="col-xs-12"><h5 class=" alert alert-warning"> <i class="fa fa-remove"></i> No DNS report found</h5></div>';?>
						</div>
					</div>
				</div> 	<!--  ip dns end-->
			</div>
		</div>






		<div class="row">
			<div class="col-xs-12">				
				<!-- ip can start-->
				<?php 
				$check=$site_info[0]["is_ip_canonical"]; 
				$item=$this->lang->line("IP Canonicalization Test");
				$long_recommendation=$this->lang->line('ip_canonicalization_recommendation');
				if($check=="0") //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Site failed IP canonicalization test.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Site passed IP canonicalization test.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  ip can end-->
			</div>
		</div>




		<div class="row">
			<div class="col-xs-12">				
				<!-- url can start-->
				<?php 
				$check=$site_info[0]["is_url_canonicalized"]; 
				$item=$this->lang->line("URL Canonicalization Test");
				$long_recommendation=$this->lang->line('url_canonicalization_recommendation');
				if($check=="0") //error
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Site failed URL canonicalization test.");
				}
				else //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Site passed URL canonicalization test.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php echo $short_recommendation; ?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--  url can end-->
			</div>
		</div>





		<div class="row">
			<div class="col-xs-12">				
				<!--  plain email start-->
				<?php 
				$value=json_decode($site_info[0]["email_list"],true);
				$check=count($value);
				$item=$this->lang->line("Plain Text Email Test");
				$long_recommendation=$this->lang->line('plain_email_recommendation');
				if($check==0) //ok
				{
					$class="green";
					$status="check";
					$short_recommendation=$this->lang->line("Site passed plain text email test. No plain text email found.");
				}
				else //warning
				{
					$class="red";
					$status="remove";
					$short_recommendation=$this->lang->line("Site failed plain text email test.").$check.$this->lang->line("plain text email found.");
				}
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus">
						<?php 
							echo $short_recommendation; 
							if($check>0)
							{ ?>															
								<br><br>
								<h3 class="highlight_header"><?php echo $this->lang->line("Plain Text Email List"); ?></h3>
								<div class="highlight_header_content">
									<ul>
										<?php 
											foreach ($value as $val) 
											{
												echo "<li>".$val."</li>";
											}
										?>
									</ul>
								</div>	
							<?php
							}
						?>
						<br/><br/>
						<a  class="recommendation_link" title="<?php echo $item; ?> : <?php echo $recommendation_word; ?>"> <i class="fa fa-book"></i> <b><?php echo $recommendation_word; ?></b></a>
						<div class="recommendation well"><?php echo $long_recommendation; ?></div>

					</div>
				</div> 
				<!--   plain email end-->
			</div>
		</div>





		<div class="row">
			<div class="col-xs-12">				
				<!-- sitemap start-->
				<?php 
				$item=$this->lang->line("cURL Response");				
				$class="blue-dark";
				$status="info-circle";
				
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">

						<div class="row">
							<div class="col-xs-12 table-responsive">
								<?php $curl_response=json_decode($site_info[0]["general_curl_response"],true) ?>
									<?php 										
										echo "<table class='table table-condensed table-striped table-bordered'>";
										$sl=0;
										foreach ($curl_response as $key=>$value) 
										{
											if(is_array($value)) $value=implode(",", $value);
											$sl++;
											if(($sl+1)%2==0)
											echo "<tr>";
												echo "<td><b>".str_replace("_"," ",$key)."</b></td>";
												echo "<td>".$value."</td>";
											if($sl%2==0)
											echo "</tr>";
										}
										echo "</table>";
									?>
							</div>

						</div>

					</div>
				</div> 
				<!--  sitemap end-->
			</div>
		</div>




		<?php 
		$pass="Unknown";
		$score="Unknown";
		if(isset($mobile_ready_data["ruleGroups"]["USABILITY"]["pass"]))
		$pass=$mobile_ready_data["ruleGroups"]["USABILITY"]["pass"];
		if(isset($mobile_ready_data["ruleGroups"]["USABILITY"]["score"]))
		$score=$mobile_ready_data["ruleGroups"]["USABILITY"]["score"];

		if($pass=="1") //ok
		{
			$class="green";
			$status="check";
		}
		else //error
		{
			$class="red";
			$status="remove";
		}
		$item=$this->lang->line("Mobile Friendly Check");	
		
		?>
		<div class="row">
			<div class="col-xs-12">
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body">	
						<div class="row">
							<div class="col-xs-12 col-md-9">
								<?php 							
								 
								if($pass=="1") 
								echo "<br><h3 style='margin-top:0px;'><span class='label label-success'>".$this->lang->line("Mobile Friendly : Yes")." <br></span></h3> Score : ".$score;
								else if($pass=="Unknown")  
								echo "<br><h3 style='margin-top:0px;'><span class='label label-danger'>".$this->lang->line("Mobile Friendly : Unknown")." <br></span></h3> Score : ".$score;
								else echo "<br><h3 style='margin-top:0px;'><span class='label label-danger'>".$this->lang->line("Mobile Friendly : No")." <br></span></h3> Score : ".$score;

								?>
								<br><br>
								<div class=" table-responsive">
									<table class="table table-hover table-striped">
										<tr>
											<th><?php echo $this->lang->line("Localized Rule Name"); ?></th>
											<th><?php echo $this->lang->line("Rule Impact"); ?></th>
										</tr>
										<?php if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["localizedRuleName"]) || isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"]))
										{?>		
											<tr>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["localizedRuleName"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["localizedRuleName"];
													?>
												</td>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"];
													?>
												</td>
											</tr>
										<?php 
										} ?>

										<?php if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["UseLegibleFontSizes"]["localizedRuleName"]) || isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"]))
										{?>		
											<tr>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["UseLegibleFontSizes"]["localizedRuleName"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["UseLegibleFontSizes"]["localizedRuleName"];
													?>
												</td>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["UseLegibleFontSizes"]["ruleImpact"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["UseLegibleFontSizes"]["ruleImpact"];
													?>
												</td>
											</tr>
										<?php 
										} ?>

										<?php if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["AvoidPlugins"]["localizedRuleName"]) || isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"]))
										{?>		
											<tr>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["AvoidPlugins"]["localizedRuleName"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["AvoidPlugins"]["localizedRuleName"];
													?>
												</td>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["AvoidPlugins"]["ruleImpact"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["AvoidPlugins"]["ruleImpact"];
													?>
												</td>
											</tr>
										<?php 
										} ?>

										<?php if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["SizeContentToViewport"]["localizedRuleName"]) || isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"]))
										{?>		
											<tr>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["SizeContentToViewport"]["localizedRuleName"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["SizeContentToViewport"]["localizedRuleName"];
													?>
												</td>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["SizeContentToViewport"]["ruleImpact"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["SizeContentToViewport"]["ruleImpact"];
													?>
												</td>
											</tr>
										<?php 
										} ?>

										<?php if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["SizeTapTargetsAppropriately"]["localizedRuleName"]) || isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"]))
										{?>		
											<tr>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["SizeTapTargetsAppropriately"]["localizedRuleName"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["SizeTapTargetsAppropriately"]["localizedRuleName"];
													?>
												</td>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["SizeTapTargetsAppropriately"]["ruleImpact"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["SizeTapTargetsAppropriately"]["ruleImpact"];
													?>
												</td>
											</tr>
										<?php 
										} ?>

										<?php if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["AvoidInterstitials"]["localizedRuleName"]) || isset($mobile_ready_data["formattedResults"]["ruleResults"]["ConfigureViewport"]["ruleImpact"]))
										{?>		
											<tr>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["AvoidInterstitials"]["localizedRuleName"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["AvoidInterstitials"]["localizedRuleName"];
													?>
												</td>
												<td>
													<?php 
													if(isset($mobile_ready_data["formattedResults"]["ruleResults"]["AvoidInterstitials"]["ruleImpact"]))
													echo $mobile_ready_data["formattedResults"]["ruleResults"]["AvoidInterstitials"]["ruleImpact"];
													?>
												</td>
											</tr>
										<?php 
										} ?>

										<?php if(!isset($mobile_ready_data["formattedResults"]["ruleResults"])) 
										{?>		
											<tr>
												<td colspan="2" class="text-center">No data to show.</td>
											</tr>
										<?php 
										} ?>

									</table>
								</div>

								<div class="well">
									<b><?php echo $this->lang->line("CMS:"); ?></b> <?php if(isset($mobile_ready_data["pageStats"]["cms"])) echo $mobile_ready_data["pageStats"]["cms"];?>								
									<br><b><?php echo $this->lang->line("Locale:"); ?></b> <?php if(isset($mobile_ready_data["formattedResults"]["locale"])) echo $mobile_ready_data["formattedResults"]["locale"];?>								
									<br><b><?php echo $this->lang->line("Roboted Resources:"); ?></b> <?php if(isset($mobile_ready_data["pageStats"]["numberRobotedResources"])) echo $mobile_ready_data["pageStats"]["numberRobotedResources"];?>								
									<br><b><?php echo $this->lang->line("Transient Fetch Failure Resources:"); ?></b> <?php if(isset($mobile_ready_data["pageStats"]["numberTransientFetchFailureResources"])) echo $mobile_ready_data["pageStats"]["numberTransientFetchFailureResources"];?>								
									<br>
								</div>

							</div>
							<div class="col-xs-12 col-md-3" style="margin-bottom:30px !important;padding-left:12px;min-height:530px;background: url('<?php echo base_url("assets/images/mobile.png");?>') no-repeat !important;">
								<?php 
								$mobile_ready_data=json_decode($site_info[0]["mobile_ready_data"],true);
														
								if(isset($mobile_ready_data["screenshot"]["data"]))
								{
									$src=str_replace("_", "/", $mobile_ready_data["screenshot"]["data"]);
									$src=str_replace("-", "+", $src);
									echo '<img src="data:image/jpeg;base64,'.$src.'" style="max-width:225px !important;margin-top:52px;">';
								}
								?>
							</div>
						</div>				
					</div><!-- /.box-body -->
				</div><!-- /.box -->
			</div>		
			
		</div>




		<div class="row">
			<div class="col-xs-12">		
				<?php 
				$item=$this->lang->line("Google Page Speed Insight (Mobile)");				
				$class="blue-dark";
				$status="info-circle";				
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">
						
						<div class="row">								
							<?php 
							$item=$this->lang->line("Page Speed");				
							$class="blue-dark";
							$status="info-circle";	
							$value=$site_info[0]['speed_score_mobile'];			
							?>
							<?php if($load_css_js!=1) {?>
							<div class="col-xs-12 col-md-6 table-responsive">
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<input id="mobile_speed" type="hidden" value="<?php echo $value; ?>" />
									</div>
								</div>	
							</div>
							<?php } else { ?>
							<div class="col-xs-12 col-md-6">
								<div style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;" class="info-box">
									<span class="info-box-icon bg-blue"><i class="fa fa-bullseye"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $item;?></span>
										<span class="info-box-number"><?php echo $value; ?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>
							<?php } ?>


							<?php 
							$item=$this->lang->line("Usability Score");				
							$class="blue-dark";
							$status="info-circle";		
							$value=$site_info[0]['speed_usability_mobile'];		
							?>

							<?php if($load_css_js!=1) {?>
							<div class="col-xs-12 col-md-6 table-responsive">								
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<input id="mobile_usability" type="hidden" value="<?php echo $value; ?>" />
									</div>
								</div>							
							</div> <!-- col end -->

							<?php } else { ?>
							<div class="col-xs-12 col-md-6">
								<div style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;" class="info-box">
									<span class="info-box-icon bg-blue"><i class="fa fa-bullseye"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $item;?></span>
										<span class="info-box-number"><?php echo $value; ?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>
							<?php } ?>


						</div>


						<div class="row">
						<br>
							<?php 
							$item=$this->lang->line("Page Statistics");				
							$class="blue-dark";
							$status="info-circle";				
							?>
							<div class="col-xs-12">
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php $curl_response=json_decode($site_info[0]["pagestat_mobile"],true) ?>
											<?php 										
												echo "<br><table class='table table-striped table-bordered'>";
												$sl=0;
												foreach ($curl_response as $key=>$value) 
												{
													if(is_array($value)) $value=implode(",", $value);
													$sl++;
													if(($sl+1)%2==0)
													echo "<tr>";
														echo "<td><b>".str_replace("_"," ",$key)."</b></td>";
														echo "<td>".$value."</td>";
													if($sl%2==0)
													echo "</tr>";
												}
												echo "</table><br><br>";
											?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>

				

						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Avoid App Install Interstitials That Hide Content");				
								$value=json_decode($site_info[0]["avoid_interstitials_mobile"],true);
								$check=$value["app_count"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Your page have').' <big></b>('.$check.')</b></big> '.$this->lang->line('app install interstitials that are hiding a significant amount of content. Learn more about the importance of').' <a href="https://developers.google.com/webmasters/mobile-sites/mobile-seo/common-mistakes/avoid-interstitials" target="_blank">'.$this->lang->line('avoiding the use of app install interstitials').'</a>.';
									$short_recommendation.="<br><br><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
									$short_recommendation.="</ul>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your page does not appear to have any app install interstitials that hide a significant amount of content. Learn more about the importance of').' <a href="https://developers.google.com/webmasters/mobile-sites/mobile-seo/common-mistakes/avoid-interstitials" target="_blank">'.$this->lang->line('avoiding the use of app install interstitials').'</a>.';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>




						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Avoid Plugins");				
								$value=json_decode($site_info[0]["avoid_plugins_mobile"],true);
								$check=$value["plugin_count"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Your page have').' <big></b>('.$check.')</b></big> '.$this->lang->line('plugins, which are preventing content from being usable on many platforms. Learn more about the importance of').' <a href="https://developers.google.com/speed/docs/insights/AvoidPlugins" target="_blank">'.$this->lang->line('avoiding plugins').'</a>.';
									$short_recommendation.="<br><br><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
									$short_recommendation.="</ul>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your page does not appear to use plugins, which would prevent content from being usable on many platforms. Learn more about the importance of').' <a href="https://developers.google.com/speed/docs/insights/AvoidPlugins" target="_blank">'.$this->lang->line('avoiding plugins').'</a>.';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>


						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Configure Viewport");				
								$value=json_decode($site_info[0]["configure_viewport_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Your page does not have a viewport specified. This causes mobile devices to render your page as it would appear on a desktop browser, scaling it down to fit on a mobile screen. Configure a viewport to allow your page to render properly on all devices.').'<br/><a href="https://developers.google.com/speed/docs/insights/ConfigureViewport" target="_blank">'.$this->lang->line('Configure a viewport').'</a> '.$this->lang->line('for this page.');
						
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your page specifies a viewport matching the device\'s size, which allows it to render properly on all devices. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/ConfigureViewport" target="_blank">'.$this->lang->line('configuring viewports').'</a>.';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Size Content to Viewport");				
								$value=json_decode($site_info[0]["size_content_to_viewport_mobile"],true);
								$check=$value["rule_impact"];
								$content_width=$value["content_width"];
								$viewport_width=$value["viewport_width"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('The page content is too wide for the viewport, forcing the user to scroll horizontally.').' <br/><a href="https://developers.google.com/speed/docs/insights/SizeContentToViewport" target="_blank">'.$this->lang->line('Size the page content to the viewport').'</a> '.$this->lang->line('to provide a better user experience.').'<br/><br/>'.$this->lang->line('The page content is').' <b>'.$content_width.$this->lang->line('CSS pixels').'</b> '.$this->lang->line('wide, but the viewport is only').' <b>'.$viewport_width.$this->lang->line('CSS pixels').'</b> '.$this->lang->line('wide. The following elements fall outside the viewport:');
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".htmlspecialchars($val["result"]["args"][0]["value"])."</li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('The contents of your page fit within the viewport. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/SizeContentToViewport" target="_blank">'.$this->lang->line('sizing content to the viewport').'</a>.';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>


						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Size Tap Targets Appropriately");				
								$value=json_decode($site_info[0]["size_tap_targets_appropriately_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Some of the links/buttons on your webpage may be too small for a user to easily tap on a touchscreen. Consider').' <a href="https://developers.google.com/speed/docs/insights/SizeTapTargetsAppropriately" target="_blank">'.$this->lang->line('making these tap targets larger').'</a> '.$this->lang->line('to provide a better user experience.The following tap targets are close to other nearby tap targets and may need additional spacing around them.');
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>The tap target ".htmlspecialchars($val["result"]["args"][0]["value"])."  is close to <b>".$val["result"]["args"][1]["value"]."</b> other tap targets</li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('All of your page\'s links/buttons are large enough for a user to easily tap on a touchscreen. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/SizeTapTargetsAppropriately" target="_blank">'.$this->lang->line('sizing tap targets appropriately').'</a>.';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Use Legible Font Sizes");				
								$value=json_decode($site_info[0]["use_legible_font_sizes_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('The following text on your page renders in a way that may be difficult for some of your visitors to read.').' <a href="https://developers.google.com/speed/docs/insights/UseLegibleFontSizes" target="_blank">'.$this->lang->line('Use legible font sizes').'</a> '.$this->lang->line('to provide a better user experience.').'<br><br>'.$this->lang->line('The following text fragments have a small font size. Increase the font size to make them more legible.');
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li><span class='label label-warning'>".htmlspecialchars($val["result"]["args"][0]["value"])."</span> renders only <b>".$val["result"]["args"][1]["value"]."</b> pixels tall (<b>".$val["result"]["args"][2]["value"]."</b> CSS pixels) </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('The text on your page is legible. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/UseLegibleFontSizes" target="_blank">'.$this->lang->line('using legible font sizes').'</a>.';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>






						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Landing Page Redirects");				
								$value=json_decode($site_info[0]["avoid_landing_page_redirects_mobile"],true);
								$check=$value["redirect_count"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Your page has').$check.$this->lang->line('redirects. Redirects introduce additional delays before the page can be loaded.').' <br><a target="_blank" href="https://developers.google.com/speed/docs/insights/AvoidRedirects">'.$this->lang->line('Avoid landing page redirects').'</a> '.$this->lang->line('for the following chain of redirected URLs:');
									$short_recommendation.="<br><br><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
									$short_recommendation.="</ul>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your page has no redirects. Learn more about').' <a target="_blank" href="https://developers.google.com/speed/docs/insights/AvoidRedirects">'.$this->lang->line('avoiding landing page redirects').'</a>';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>

						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("GZIP Compression");				
								$value=json_decode($site_info[0]["gzip_compression_mobile"],true);
								$check=$value["rule_impact"];
								$size_compressable=$value["total_size_compressable"];
								$percent_compressable=$value["total_percentage_compressable"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Compressing resources with gzip or deflate can reduce the number of bytes sent over the network.').'
									<br><a target="_blank" href="https://developers.google.com/speed/docs/insights/EnableCompression">'.$this->lang->line('Enable compression').'</a> '.$this->lang->line('for the following resources to reduce their transfer size by').' <b>'.$size_compressable.' ( '.$percent_compressable.$this->lang->line('reduction').' )</b>.';
									
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"].$this->lang->line("could save")." <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"].$this->lang->line("reduction")." )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have compression enabled. Learn more about').' <a target="_blank" href="https://developers.google.com/speed/docs/insights/EnableCompression">'.$this->lang->line('enabling compression').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Leverage Browser Caching");				
								$value=json_decode($site_info[0]["leverage_browser_caching_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.').'
									<br><a target="_blank" href="https://developers.google.com/speed/docs/insights/LeverageBrowserCaching">'.$this->lang->line('Leverage browser caching').'</a> '.$this->lang->line('for the following cacheable resources:');
									
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have enabled browser caching. Learn more about').' <a target="_blank" href="https://developers.google.com/speed/docs/insights/LeverageBrowserCaching">'.$this->lang->line('browser caching recommendations').'</a>.';
								}			
								?>

								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Server Response Time");				
								$value=json_decode($site_info[0]["main_resource_server_response_time_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('In our test, your server responded in').' <b>'.$value["response_time"].'</b>. '.$this->lang->line('There are many factors that can slow down your server response time.').' <br><a href="https://developers.google.com/speed/docs/insights/Server" target="_blank">'.$this->lang->line('Please read our recommendations').'</a> '.$this->lang->line('to learn how you can monitor and measure where your server is spending the most time.');
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your server responded quickly. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/Server" target="_blank">'.$this->lang->line('server response time optimization').'</a>.';
								}			
								?>

								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Minify CSS");				
								$value=json_decode($site_info[0]["minify_css_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$size_minifiable=$check=$value["total_size_minifiable"];
									$percent_minifiable=$check=$value["total_percentage_minifiable"];
									$short_recommendation=$this->lang->line('Compacting CSS code can save many bytes of data and speed up download and parse times.').' <br><a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('Minify CSS').'</a> '.$this->lang->line('for the following resources to reduce their size by').'  <b>'.$size_minifiable.' ( '.$percent_minifiable.$this->lang->line('reduction').' )</b>.';
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"].$this->lang->line("could save")." <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"].$this->lang->line("reduction")." )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your CSS is minified. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('minifying CSS').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Minify HTML");				
								$value=json_decode($site_info[0]["minify_html_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$size_minifiable=$check=$value["total_size_minifiable"];
									$percent_minifiable=$check=$value["total_percentage_minifiable"];
									$short_recommendation=$this->lang->line('Compacting HTML code, including any inline JavaScript and CSS contained in it, can save many bytes of data and speed up download and parse times.').' <br><a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('Minify HTML').'</a> '.$this->lang->line('for the following resources to reduce their size by').'  <b>'.$size_minifiable.' ( '.$percent_minifiable.$this->lang->line('reduction').' )</b>.';
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"].$this->lang->line("could save")." <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"].$this->lang->line("reduction")." )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your HTML is minified. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('minifying HTML').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Minify JavaScript");				
								$value=json_decode($site_info[0]["minify_javaScript_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$size_minifiable=$check=$value["total_size_minifiable"];
									$percent_minifiable=$check=$value["total_percentage_minifiable"];
									$short_recommendation=$this->lang->line('Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time.').' <br><a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('Minify JavaScript').'</a> '.$this->lang->line('for the following resources to reduce their size by').'  <b>'.$size_minifiable.' ( '.$percent_minifiable.$this->lang->line('reduction').' )</b>.';
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]." could save <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"]."reduction )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your JavaScript content is minified. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('minifying HTML').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Render-blocking JavaScript and CSS");				
								$value=json_decode($site_info[0]["minimize_render_blocking_resources_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$blocking_js_count=isset($value["js_urls"]) ? count($value["js_urls"]) : 0;
									$blocking_css_count=isset($value["css_urls"]) ? count($value["css_urls"]) : 0;
									$short_recommendation="<div class='col-xs-12'>".$this->lang->line("Your page has")." <big><b>(".$blocking_js_count.")</b></big> ".$this->lang->line("blocking script resources and")." <big><b>(".$blocking_css_count.")</b></big> ".$this->lang->line("blocking CSS resources. This causes a delay in rendering your page. None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.")."</div>";

									if(isset($value["js_urls"]))
									$short_recommendation.="
									<div class='col-xs-12 col-md-6'>
										<br/><h3 class='highlight_header'>Render-blocking JavaScript</h3>
										<div class='highlight_header_content'>
											<ul>";
												foreach($value["js_urls"] as $val)
												$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
												$short_recommendation.="
											</ul>
										</div>
									</div>";

									if(isset($value["css_urls"]))
										$short_recommendation.="
									<div class='col-xs-12 col-md-6'>
										<br><h3 class='highlight_header'>Render-blocking CSS</h3>
										<div class='highlight_header_content'>
											<ul>";
												foreach($value["css_urls"] as $val)
												$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
												$short_recommendation.="
											</ul>
										</div>
									</div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have no render-blocking resources. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/BlockingJS" target="_blank">'.$this->lang->line('removing render-blocking resources').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Optimize Images");				
								$value=json_decode($site_info[0]["optimize_images_mobile"],true);
								$check=$value["rule_impact"];
								$size_compressable=$value["total_size_optimizable"];
								$percent_compressable=$value["total_percentage_optimizable"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Properly formatting and compressing images can save many bytes of data.').'
									<br><a target="_blank" href="https://developers.google.com/speed/docs/insights/OptimizeImages">'.$this->lang->line('Optimize the following images').'</a> '.$this->lang->line('to reduce their transfer size by').' <b>'.$size_compressable.' ( '.$percent_compressable.$this->lang->line('reduction').' )</b>.';
									
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]." could save <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"]."reduction )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your images are optimized. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/OptimizeImages" target="_blank">'.$this->lang->line('optimizing images').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Prioritize Visible Content");				
								$value=json_decode($site_info[0]["prioritize_visible_content_mobile"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Visible content is not properly prioritized. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/PrioritizeVisibleContent" target="_blank">'.$this->lang->line('prioritizing visible content').'</a>.';					
						
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have the above-the-fold content properly prioritized. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/PrioritizeVisibleContent" target="_blank">'.$this->lang->line('prioritizing visible content').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



					</div>
				</div> 
			</div>
		</div> <!-- end of mobile -->









		<div class="row">
			<div class="col-xs-12">		
				<?php 
				$item=$this->lang->line("Google Page Speed Insight (Desktop)");				
				$class="blue-dark";
				$status="info-circle";				
				?>
				<div class="box box-<?php echo $class;?>">
					<div class="box-header with-border">
						<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
						<div class="box-tools pull-right">
							<i class="fa fa-minus minus"></i>
						</div>
					</div>
					<div class="box-body chart-responsive minus clearfix">
						
						<div class="row">
							<br>
							<?php 
							$item=$this->lang->line("Page Statistics");				
							$class="blue-dark";
							$status="info-circle";				
							?>
							<div class="col-xs-12 col-md-8 table-responsive">
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php $curl_response=json_decode($site_info[0]["pagestat"],true) ?>
											<?php 										
												echo "<br><table class='table table-striped table-bordered'>";
												$sl=0;
												foreach ($curl_response as $key=>$value) 
												{
													if(is_array($value)) $value=implode(",", $value);
													$sl++;
													if(($sl+1)%2==0)
													echo "<tr>";
														echo "<td><b>".str_replace("_"," ",$key)."</b></td>";
														echo "<td>".$value."</td>";
													if($sl%2==0)
													echo "</tr>";
												}
												echo "</table><br><br>";
											?>
									</div>
								</div>							
							</div> <!-- col end -->

							<?php 
								$item=$this->lang->line("Page Speed");				
								$class="blue-dark";
								$status="info-circle";	
								$value=$site_info[0]['speed_score'];			
							?>
							<?php if($load_css_js!=1) { ?>
							<div class="col-xs-12 col-md-4 table-responsive">								
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<input id="desktop_speed" type="hidden" value="<?php echo $value; ?>" />
									</div>
								</div>							
							</div> <!-- col end -->

							<?php } else { ?>
							<div class="col-xs-12 col-md-4">
								<div style="border:1px solid #0073B7;border-bottom:2px solid #0073B7;" class="info-box">
									<span class="info-box-icon bg-blue"><i class="fa fa-bullseye"></i></span>
									<div class="info-box-content">
										<span class="info-box-text"><?php echo $item;?></span>
										<span class="info-box-number"><?php echo $value; ?></span>
									</div><!-- /.info-box-content -->
								</div>
							</div>
							<?php } ?>

						</div>




						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Landing Page Redirects");				
								$value=json_decode($site_info[0]["avoid_landing_page_redirects"],true);
								$check=$value["redirect_count"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Your page has').$check.$this->lang->line('redirects. Redirects introduce additional delays before the page can be loaded.').' <br><a target="_blank" href="https://developers.google.com/speed/docs/insights/AvoidRedirects">Avoid landing page redirects</a> '.$this->lang->line('for the following chain of redirected URLs:');
									$short_recommendation.="<br><br><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
									$short_recommendation.="</ul>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your page has no redirects. Learn more about').' <a target="_blank" href="https://developers.google.com/speed/docs/insights/AvoidRedirects">'.$this->lang->line('avoiding landing page redirects').'</a>';
								}			
							?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>	
							</div> <!-- end col -->
						</div>

						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("GZIP Compression");				
								$value=json_decode($site_info[0]["gzip_compression"],true);
								$check=$value["rule_impact"];
								$size_compressable=$value["total_size_compressable"];
								$percent_compressable=$value["total_percentage_compressable"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Compressing resources with gzip or deflate can reduce the number of bytes sent over the network.').'
									<br><a target="_blank" href="https://developers.google.com/speed/docs/insights/EnableCompression">'.$this->lang->line('Enable compression').'</a> '.$this->lang->line('for the following resources to reduce their transfer size by').' <b>'.$size_compressable.' ( '.$percent_compressable.$this->lang->line('reduction').' )</b>.';
									
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"].$this->lang->line("could save")." <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"].$this->lang->line("reduction")." )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have compression enabled. Learn more about').' <a target="_blank" href="https://developers.google.com/speed/docs/insights/EnableCompression">'.$this->lang->line('enabling compression').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Leverage Browser Caching");				
								$value=json_decode($site_info[0]["leverage_browser_caching"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.').'
									<br><a target="_blank" href="https://developers.google.com/speed/docs/insights/LeverageBrowserCaching">'.$this->lang->line('Leverage browser caching').'</a> '.$this->lang->line('for the following cacheable resources:');
									
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have enabled browser caching. Learn more about').' <a target="_blank" href="https://developers.google.com/speed/docs/insights/LeverageBrowserCaching">'.$this->lang->line('browser caching recommendations').'</a>.';
								}			
								?>

								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Server Response Time");				
								$value=json_decode($site_info[0]["main_resource_server_response_time"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('In our test, your server responded in').' <b>'.$value["response_time"].'</b>. '.$this->lang->line('There are many factors that can slow down your server response time.').' <br><a href="https://developers.google.com/speed/docs/insights/Server" target="_blank">'.$this->lang->line('Please read our recommendations').'</a> '.$this->lang->line('to learn how you can monitor and measure where your server is spending the most time.');
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your server responded quickly. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/Server" target="_blank">'.$this->lang->line('server response time optimization').'</a>.';
								}			
								?>

								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Minify CSS");				
								$value=json_decode($site_info[0]["minify_css"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$size_minifiable=$check=$value["total_size_minifiable"];
									$percent_minifiable=$check=$value["total_percentage_minifiable"];
									$short_recommendation=$this->lang->line('Compacting CSS code can save many bytes of data and speed up download and parse times.').' <br><a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('Minify CSS').'</a> '.$this->lang->line('for the following resources to reduce their size by').'  <b>'.$size_minifiable.' ( '.$percent_minifiable.$this->lang->line('reduction').' )</b>.';
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"].$this->lang->line("could save")." <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"].$this->lang->line("reduction")." )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your CSS is minified. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('minifying CSS').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Minify HTML");				
								$value=json_decode($site_info[0]["minify_html"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$size_minifiable=$check=$value["total_size_minifiable"];
									$percent_minifiable=$check=$value["total_percentage_minifiable"];
									$short_recommendation=$this->lang->line('Compacting HTML code, including any inline JavaScript and CSS contained in it, can save many bytes of data and speed up download and parse times.').' <br><a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('Minify HTML').'</a> '.$this->lang->line('for the following resources to reduce their size by').'  <b>'.$size_minifiable.' ( '.$percent_minifiable.$this->lang->line('reduction').' )</b>.';
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"].$this->lang->line("could save")." <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"].$this->lang->line("reduction")." )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your HTML is minified. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('minifying HTML').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Minify JavaScript");				
								$value=json_decode($site_info[0]["minify_javaScript"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$size_minifiable=$check=$value["total_size_minifiable"];
									$percent_minifiable=$check=$value["total_percentage_minifiable"];
									$short_recommendation=$this->lang->line('Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time.').' <br><a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('Minify JavaScript').'</a> '.$this->lang->line('for the following resources to reduce their size by').'  <b>'.$size_minifiable.' ( '.$percent_minifiable.$this->lang->line('reduction').' )</b>.';
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"].$this->lang->line("could save")." <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"].$this->lang->line("reduction")." )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your JavaScript content is minified. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/MinifyResources" target="_blank">'.$this->lang->line('minifying HTML').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>


						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Render-blocking JavaScript and CSS");				
								$value=json_decode($site_info[0]["minimize_render_blocking_resources"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$blocking_js_count=isset($value["js_urls"]) ? count($value["js_urls"]) : 0;
									$blocking_css_count=isset($value["css_urls"]) ? count($value["css_urls"]) : 0;
									$short_recommendation="<div class='col-xs-12'>".$this->lang->line("Your page has")." <big><b>(".$blocking_js_count.")</b></big> ".$this->lang->line("blocking script resources and")." <big><b>(".$blocking_css_count.")</b></big> ".$this->lang->line("blocking CSS resources. This causes a delay in rendering your page. None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.")."</div>";

									if(isset($value["js_urls"]))
									$short_recommendation.="
									<div class='col-xs-12 col-md-6'>
										<br/><h3 class='highlight_header'>Render-blocking JavaScript</h3>
										<div class='highlight_header_content'>
											<ul>";
												foreach($value["js_urls"] as $val)
												$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
												$short_recommendation.="
											</ul>
										</div>
									</div>";

									if(isset($value["css_urls"]))
										$short_recommendation.="
									<div class='col-xs-12 col-md-6'>
										<br><h3 class='highlight_header'>Render-blocking CSS</h3>
										<div class='highlight_header_content'>
											<ul>";
												foreach($value["css_urls"] as $val)
												$short_recommendation.="<li>".$val["result"]["args"][0]["value"]."</li>";
												$short_recommendation.="
											</ul>
										</div>
									</div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have no render-blocking resources. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/BlockingJS" target="_blank">'.$this->lang->line('removing render-blocking resources').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Optimize Images");				
								$value=json_decode($site_info[0]["optimize_images"],true);
								$check=$value["rule_impact"];
								$size_compressable=$value["total_size_optimizable"];
								$percent_compressable=$value["total_percentage_optimizable"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Properly formatting and compressing images can save many bytes of data.').'
									<br><a target="_blank" href="https://developers.google.com/speed/docs/insights/OptimizeImages">'.$this->lang->line('Optimize the following images').'</a> '.$this->lang->line('to reduce their transfer size by').' <b>'.$size_compressable.' ( '.$percent_compressable.$this->lang->line('reduction').' )</b>.';
									
									$short_recommendation.="<br><br><div class='highlight_header_content'><ul>";
									foreach($value["urls"] as $val)
									$short_recommendation.="<li>".$val["result"]["args"][0]["value"]." could save <b>".$val["result"]["args"][1]["value"]." ( ".$val["result"]["args"][2]["value"]."reduction )</b> </li>";
									$short_recommendation.="</ul></div>";
									
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('Your images are optimized. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/OptimizeImages" target="_blank">'.$this->lang->line('optimizing images').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>



						<div class="row">							
							<div class="col-xs-12">
								<?php 
								$item=$this->lang->line("Prioritize Visible Content");				
								$value=json_decode($site_info[0]["prioritize_visible_content"],true);
								$check=$value["rule_impact"];
								if(is_numeric($check) && $check>0)
								{
									$class="red";
									$status="remove";	
									$short_recommendation=$this->lang->line('Visible content is not properly prioritized. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/PrioritizeVisibleContent" target="_blank">'.$this->lang->line('prioritizing visible content').'</a>.';					
						
								}
								else
								{
									$class="green";
									$status="check";	
									$short_recommendation=$this->lang->line('You have the above-the-fold content properly prioritized. Learn more about').' <a href="https://developers.google.com/speed/docs/insights/PrioritizeVisibleContent" target="_blank">'.$this->lang->line('prioritizing visible content').'</a>.';
								}			
								?>
								<div class="box box-<?php echo $class;?>">
									<div class="box-header with-border">
										<h3 class="box-title <?php echo $class;?>"><i class="fa fa-<?php echo $status;?>"></i> <?php echo $item; ?></h3>
										<div class="box-tools pull-right">
											<i class="fa fa-minus minus"></i>
										</div>
									</div>
									<div class="box-body chart-responsive table-responsive minus clearfix">
										<?php echo $short_recommendation; ?>
									</div>
								</div>							
							</div> <!-- col end -->
						</div>






					</div>
				</div> 
			</div>
		</div> <!-- end of desktop -->




	</div>
</div>	

<script>
    $(function() {
        $(".dial").knob();
    });
</script>

<?php if($load_css_js!=1) { ?>
<script>
$(document).ready(function(){
    $('[data-toggle="popover"]').popover(); 

    $(".minus").click(function() {
    	$(this).parent().parent().next(".box-body").toggle();
	});
	$(".recommendation_link").click(function() {
    	$(this).next(".recommendation").toggle();
	});

	$(document).on('click','#download_list',function(){
		var direct_download="<?php echo $direct_download;?>";
		if(direct_download=="1") 
		{			
			$("#subscribe_div").html('<div class="box-body chart-responsive minus"><div class="col-xs-12"><div style="font-size:18px" class="alert text-center"><img class="center-block" src="<?php echo site_url();?>assets/pre-loader/Fading squares.gif" alt="Processing..."><br/><?php echo $this->lang->line("this may take a while to generate pdf"); ?> </div></div></div>');
			$("#subscribe_div").css("background","#f1f1f1");
			$("#subscribe_div").show();
			var hidden_id=$("#hidden_id").val();
			var base_url="<?php echo site_url();?>";
			$.ajax({
			url:base_url+'health_check/direct_download',
			type:'POST',
			data:{hidden_id:hidden_id},
			success:function(response){
				$("#subscribe_div").html(response);
			  }
		   });	
		}

		else $("#subscribe_div").css("display","block");
	});





	$(document).on('click','#send_email',function(){
		var email=$("#email").val();
		var name=$("#name").val();
		var hidden_id=$("#hidden_id").val();

		

		if(email=="" || name=="") 
		{
			alert("<?php echo $this->lang->line('something is missing'); ?>");
			return;
		}

		$("#send_email_message").removeClass('alert-success');
		$("#send_email_message").removeClass('alert-danger');
		$("#send_email_message").addClass('alert-custom');
		$("#send_email_message").html("<?php echo $this->lang->line('this may take a while to generate pdf and send email'); ?>");
		$('#send_email').addClass('disabled');


		$("#success_msg").html('<img class="center-block" src="<?php echo site_url();?>assets/pre-loader/custom.gif" alt="Processing..."><br/>');
		var base_url="<?php echo site_url();?>";
		$.ajax({
		url:base_url+'health_check/send_download_link',
		type:'POST',
		data:{email:email,name:name,hidden_id:hidden_id},
		success:function(response){
			$("#send_email_message").show();
			$("#success_msg").html("");	
			$('#send_email').removeClass('disabled');
			
			if(response=="")
			{
				$("#send_email_message").removeClass('alert-custom');
				$("#send_email_message").removeClass('alert-success');
				$("#send_email_message").addClass('alert-danger');
				$("#send_email_message").html("<?php echo $this->lang->line('something went wrong, please try again'); ?>");
			}

			else if(response=="0")
			{
				$("#send_email_message").removeClass('alert-custom');
				$("#send_email_message").removeClass('alert-success');
				$("#send_email_message").addClass('alert-danger');
				$("#send_email_message").html("<?php echo $this->lang->line('you can not download more result using this email, download quota is crossed'); ?>");
			}					
			else
			{
				$("#send_email_message").removeClass('alert-custom');
				$("#send_email_message").removeClass('alert-danger');
				$("#send_email_message").addClass('alert-success');
				$("#send_email_message").html("<?php echo $this->lang->line('a email has been sent to your email'); ?>");
			}
		}
	});
  });


});
</script>

<script type="text/javascript">
	var desktop_speed=$("#desktop_speed").val();
	$("#desktop_speed").myfunc({divFact:10,cusVal:desktop_speed});
	var mobile_speed=$("#mobile_speed").val();
	$("#mobile_speed").myfunc({divFact:10,cusVal:mobile_speed});
	var mobile_usability=$("#mobile_usability").val();
	$("#mobile_usability").myfunc({divFact:10,cusVal:mobile_usability});
</script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36251023-1']);
  _gaq.push(['_setDomainName', 'jqueryscript.net']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<?php } ?>

<?php if($load_css_js==1) echo "</body></html>";?>