Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tweaking some layout to fit more info on screen

updating configuration.php.tmpl to reflect the new includes.php (I forgot this last time)
  • Loading branch information...
commit 75cc367aadde45138f195113c76aa21c6c71bf85 1 parent d32e4d1
authored January 17, 2010
12  configuration.php.tmpl
@@ -5,7 +5,13 @@
5 5
  * 
6 6
  * if you get 401 unauthorized errors, check that these values are correct
7 7
  */
8  
-define("LSAPI_ACCESS_ID", "your_access_id_goes_here");
9  
-define("LSAPI_SECRET_KEY", "your_secret_key_goes_here");
  8
+define("LSAPI_ACCESS_ID", "your access id goes here");
  9
+define("LSAPI_SECRET_KEY", "your secret key goes here");
10 10
 
11  
-?>
  11
+/*
  12
+ * require everything we need in once place, here
  13
+ */
  14
+require_once("parallel_request.php");
  15
+require_once("models/canonical_candidate.php");
  16
+require_once("models/canonicalizing_homepage.php");
  17
+?>
11  css/canonicalizable.css
@@ -35,6 +35,17 @@ html>body {
35 35
 	margin-right:auto;
36 36
 	width:90%;
37 37
 	margin-bottom:10px;
  38
+	padding-top:20px;
  39
+}
  40
+
  41
+.messagebox li {
  42
+	list-style: none;
  43
+	margin-left: 5px;
  44
+}
  45
+
  46
+.messagebox p {
  47
+	margin:0px;
  48
+	padding:0px;
38 49
 }
39 50
 
40 51
 .goodbox {
28  index.php
@@ -31,13 +31,13 @@
31 31
 <p>This is the page you want users to end up first when they visit your site.</p>
32 32
 
33 33
 <div class="messagebox <?php echo $homepage_isgood?"goodbox":"badbox";?>">
34  
-<dl>
35  
-<dt>URL:</dt><dd><a href="http://<?php echo htmlspecialchars($homepage); ?>"><?php echo htmlspecialchars($homepage); ?></a></dd>
36  
-<dt>Title:</dt><dd><?php echo htmlspecialchars($c_homepage->homepage->metrics->ut, ENT_NOQUOTES, "UTF-8"); ?></dd>
37  
-<dt>HTTP Status:</dt><dd><?php echo $c_homepage->homepage->metrics->us; ?></dd>
38  
-<dt>Links:</dt><dd><?php echo $c_homepage->homepage->metrics->uid;?></dd>
39  
-<?php if($c_homepage->metrics->ur) {?><dt>Redirects To:</dt><dd><?php echo htmlspecialchars($c_homepage->homepage->metrics->ur); ?></dd><?php } ?>
40  
-</dl>
  34
+<ul>
  35
+<li>URL: <a href="http://<?php echo htmlspecialchars($homepage); ?>"><?php echo htmlspecialchars($homepage); ?></a></li>
  36
+<li>Title: <?php echo htmlspecialchars($c_homepage->homepage->metrics->ut, ENT_NOQUOTES, "UTF-8"); ?></li>
  37
+<li>HTTP Status: <?php echo $c_homepage->homepage->metrics->us; ?></li>
  38
+<li>Links: <?php echo $c_homepage->homepage->metrics->uid;?></li>
  39
+<?php if($c_homepage->metrics->ur) {?><li>Redirects To: <?php echo htmlspecialchars($c_homepage->homepage->metrics->ur); ?></li><?php } ?>
  40
+</ul>
41 41
 <p><?php echo $homepage_message; ?></p>
42 42
 </div>
43 43
 
@@ -70,13 +70,13 @@
70 70
 list($isgood, $candidate, $message) = $candidate_info;?>
71 71
 
72 72
 <div class="messagebox <?php if($isgood == 0) echo "goodbox"; elseif($isgood == 1) echo "warnbox"; else echo "badbox";?>">
73  
-<dl>
74  
-<dt>URL:</dt><dd><a href="http://<?php echo htmlspecialchars($candidate->url); ?>"><?php echo htmlspecialchars($candidate->url); ?></a></dd>
75  
-<dt>Title:</dt><dd><?php echo htmlspecialchars($candidate->metrics->ut, ENT_NOQUOTES, "UTF-8"); ?></dd>
76  
-<dt>HTTP Status :</dt><dd><?php echo $candidate->metrics->us; ?></dd>
77  
-<dt>Links:</dt><dd><?php echo $candidate->metrics->uid;?></dd>
78  
-<?php if($candidate->metrics->ur) {?><dt>Redirects To:</dt><dd><?php echo htmlspecialchars($candidate->metrics->ur); ?></dd><?php } ?>
79  
-</dl>
  73
+<ul>
  74
+<li>URL: <a href="http://<?php echo htmlspecialchars($candidate->url); ?>"><?php echo htmlspecialchars($candidate->url); ?></a></li>
  75
+<li>Title:</dt><dd><?php echo htmlspecialchars($candidate->metrics->ut, ENT_NOQUOTES, "UTF-8"); ?></li>
  76
+<li>HTTP Status: <?php echo $candidate->metrics->us; ?></li>
  77
+<li>Links: <?php echo $candidate->metrics->uid;?></li>
  78
+<?php if($candidate->metrics->ur) {?><li>Redirects To: <?php echo htmlspecialchars($candidate->metrics->ur); ?></li><?php } ?>
  79
+</ul>
80 80
 <p><?php echo $message; ?></p>
81 81
 </div>
82 82
 <?php } // foreach($candidates as $candidate_info)?>

0 notes on commit 75cc367

Please sign in to comment.
Something went wrong with that request. Please try again.