forked from sendtogeo/Seo-Panel
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,31 @@ | ||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list"> | ||
<table width="100%" class="list"> | ||
<tr class="listHead"> | ||
<td class="left"><?php echo $spText['common']['Url']?></td> | ||
<td><?php echo $spText['common']['Url']?></td> | ||
<td><?php echo $spTextPS['Desktop Speed']?></td> | ||
<td><?php echo $spTextPS['Mobile Speed']?></td> | ||
<td><?php echo $spTextPS['Mobile Usability']?></td> | ||
<td class="right"><?php echo $spText['common']['Details']?></td> | ||
<td><?php echo $spText['common']['Details']?></td> | ||
</tr> | ||
<?php | ||
$colCount = 5; | ||
$colCount = 4; | ||
if(count($list) > 0){ | ||
$catCount = count($list); | ||
$i = 0; | ||
foreach($list as $url){ | ||
|
||
$class = ($i % 2) ? "blue_row" : "white_row"; | ||
if($catCount == ($i + 1)){ | ||
$leftBotClass = "tab_left_bot"; | ||
$rightBotClass = "tab_right_bot"; | ||
}else{ | ||
$leftBotClass = "td_left_border td_br_right"; | ||
$rightBotClass = "td_br_right"; | ||
} | ||
$tdWidth = "25%"; | ||
foreach($list as $url) { | ||
$debugVar = !empty($_POST['debug']) ? "&debug=1" : ""; | ||
$debugVar .= !empty($_POST['debug_format']) ? "&debug_format=" . $_POST['debug_format'] : "" ; | ||
$debugVar .= !empty($_POST['debug_format']) ? "&debug_format=" . $_POST['debug_format'] : "" ; | ||
?> | ||
<tr class="<?php echo $class?>"> | ||
<td class="<?php echo $leftBotClass?>" style="text-align:left;padding-left:10px;"><?php echo $url?></td> | ||
<td class="td_br_right"><?php echo $reportList[$url]['desktop']['speed_score'] ? $reportList[$url]['desktop']['speed_score'] : 0;?> / 100</td> | ||
<td class="td_br_right"><?php echo $reportList[$url]['mobile']['speed_score'] ? $reportList[$url]['mobile']['speed_score'] : 0;?> / 100</td> | ||
<td class="td_br_right"><?php echo $reportList[$url]['mobile']['usability_score'] ? $reportList[$url]['mobile']['usability_score'] : 0;?> / 100</td> | ||
<td class="<?php echo $rightBotClass?>"> | ||
<a href="javascript:void(0);" onclick="scriptDoLoadDialog('index.php', 'tmp', 'sec=showdiv&div_id=details_id<?php echo $i?>', 1000, 800)"><?php echo $spText['common']['Details']?> >></a> | ||
<div id="details_id<?php echo $i?>" style="display: none;"> | ||
<?php include(SP_VIEWPATH."/pagespeed/pagespeeddetails.ctp.php");?> | ||
</div> | ||
<tr> | ||
<td style="text-align:left;padding-left:10px;"><?php echo $url?></td> | ||
<td><?php echo $reportList[$url]['desktop']['speed_score'] ? $reportList[$url]['desktop']['speed_score'] : 0;?> / 100</td> | ||
<td><?php echo $reportList[$url]['mobile']['speed_score'] ? $reportList[$url]['mobile']['speed_score'] : 0;?> / 100</td> | ||
<td> | ||
<a href="https://developers.google.com/speed/pagespeed/insights/?url=<?php echo $url; ?>" target="_blank"> | ||
<?php echo $spText['common']['Details']?> >> | ||
</a> | ||
</td> | ||
</tr> | ||
<?php | ||
$i++; | ||
} | ||
}else{ | ||
echo showNoRecordsList($colCount-2); | ||
} | ||
?> | ||
<tr class="listBot"> | ||
<td class="left" colspan="<?php echo ($colCount-1)?>"></td> | ||
<td class="right"></td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters