OSDN Git Service

Web: Tweak "PAD file" page style
authorTim Gerundt <tim@gerundt.de>
Wed, 21 Jan 2009 22:10:05 +0000 (22:10 +0000)
committerTim Gerundt <tim@gerundt.de>
Wed, 21 Jan 2009 22:10:05 +0000 (22:10 +0000)
Web/WinMergePAD.php
Web/engine/css/print.css
Web/engine/css/screen.css

index 9b356cf..fb56fd1 100644 (file)
@@ -2,9 +2,11 @@
   include('page.inc');
 
   $page = new Page;
-  $page->printHead('WinMerge: PAD file', TAB_HOME);
+  $page->setDescription('The easiest way to get informations about the latest stable version from WinMerge for your web site is the Portable Application Description file, which you find here.');
+  $page->setKeywords('WinMerge, PAD file, Portable Application Description');
+  $page->printHead('WinMerge: PAD File', TAB_HOME);
 ?>
-<h2>PAD file</h2>
+<h2>PAD File</h2>
 <p>The easiest way to get informations about the latest stable version from WinMerge for your web site is the <a href="http://www.asp-shareware.org/pad/">Portable Application Description</a> file, which you find here:</p>
 <pre class="code"><a href="http://winmerge.org/WinMergePAD.xml">http://winmerge.org/WinMergePAD.xml</a></pre>
 <p>If you can't work with the <a href="WinMergePAD.xml">PAD file</a>, you can use the following informations:</p>
   $program_os_support = $program_info['PROGRAM_OS_SUPPORT'][0]['VALUE'];
   $program_language = $program_info['PROGRAM_LANGUAGE'][0]['VALUE'];
   $program_type = $program_info['PROGRAM_TYPE'][0]['VALUE'];
+  print("<div class=\"padfile\">\n");
   print("<h2>" . $program_name . " " . $program_version . "</h2>\n");
   print("<dl>\n");
-  print("  <dt>Release Date:</dt>\n");
+  print("  <dt>Release Date</dt>\n");
   print("  <dd>" . $release_date_month . "/" . $release_date_day . "/" . $release_date_year . "</dd>\n");
-  print("  <dt>Release Status:</dt>\n");
+  print("  <dt>Release Status</dt>\n");
   print("  <dd>" . $release_status . "</dd>\n");
-  print("  <dt>Download:</dt>\n");
+  print("  <dt>Download</dt>\n");
   print("  <dd><a href=\"" . $download . "\">" . $download . "</a> (" . $file_size_mb . " MB)</dd>\n");
-  print("  <dt>Operating Systems:</dt>\n");
+  print("  <dt>Operating Systems</dt>\n");
   print("  <dd>" . str_replace(',', ', ', $program_os_support) . "</dd>\n");
-  print("  <dt>Supported Languages:</dt>\n");
+  print("  <dt>Supported Languages</dt>\n");
   print("  <dd>" . str_replace(',', ', ', $program_language) . "</dd>\n");
-  print("  <dt>Type:</dt>\n");
+  print("  <dt>Type</dt>\n");
   print("  <dd>" . $program_type . "</dd>\n");
   print("</dl>\n");
 
   $keywords = $program_descriptions['KEYWORDS'][0]['VALUE'];
   print("<h3>Descriptions</h3>\n");
   print("<dl>\n");
-  print("  <dt>Description (80 chars):</dt>\n");
+  print("  <dt>Description (80 chars)</dt>\n");
   print("  <dd>" . $description_80 . "</dd>\n");
-  print("  <dt>Description (250 chars):</dt>\n");
+  print("  <dt>Description (250 chars)</dt>\n");
   print("  <dd>" . $description_250 . "</dd>\n");
-  print("  <dt>Description (450 chars):</dt>\n");
+  print("  <dt>Description (450 chars)</dt>\n");
   print("  <dd>" . $description_450 . "</dd>\n");
-  print("  <dt>Keywords:</dt>\n");
+  print("  <dt>Keywords</dt>\n");
   print("  <dd>" . str_replace(',', ', ', $keywords) . "</dd>\n");
   print("</dl>\n");
 
   $pad_url = $web_info['APPLICATION_URLS'][0]['APPLICATION_XML_FILE_URL'][0]['VALUE'];
   print("<h3>Web Addresses</h3>\n");
   print("<dl>\n");
-  print("  <dt>Information:</dt>\n");
+  print("  <dt>Information</dt>\n");
   print("  <dd><a href=\"" . $info_url . "\">" . $info_url . "</a></dd>\n");
-  print("  <dt>Screenshot:</dt>\n");
+  print("  <dt>Screenshot</dt>\n");
   print("  <dd><a href=\"" . $screenshot_url . "\">" . $screenshot_url . "</a></dd>\n");
-  print("  <dt>Icon:</dt>\n");
+  print("  <dt>Icon</dt>\n");
   print("  <dd><a href=\"" . $icon_url . "\">" . $icon_url . "</a></dd>\n");
-  print("  <dt>PAD file:</dt>\n");
+  print("  <dt>PAD file</dt>\n");
   print("  <dd><a href=\"" . $pad_url . "\">" . $pad_url . "</a></dd>\n");
   print("</dl>\n");
 
   $support_email = $company_info['SUPPORT_INFO'][0]['SUPPORT_EMAIL'][0]['VALUE'];
   print("<h3>Company</h3>\n");
   print("<dl>\n");
-  print("  <dt>Name:</dt>\n");
+  print("  <dt>Name</dt>\n");
   print("  <dd><a href=\"" . $company_website_url . "\">" . $company_name . "</a></dd>\n");
-  print("  <dt>Contact:</dt>\n");
+  print("  <dt>Contact</dt>\n");
   print("  <dd><a href=\"mailto:" . $contact_email . "\">" . $contact_first_name . "</a></dd>\n");
-  print("  <dt>Support:</dt>\n");
+  print("  <dt>Support</dt>\n");
   print("  <dd><a href=\"mailto:" . $support_email . "\">" . $support_email . "</a></dd>\n");
   print("</dl>\n");
+  print("</div> <!-- .padfile -->\n");
 
   $page->printFoot();
 ?>
\ No newline at end of file
index 67b67c2..2c25f7d 100644 (file)
@@ -123,6 +123,18 @@ ul.inline li {
        list-style: none;
 }
 
+/* PAD file */
+.padfile dt {
+       margin: 0 0 0 2em;
+       padding: 0;
+       font-weight: bold;
+}
+
+.padfile dd {
+       margin: 0 0 1em 4em;
+       padding: 0;
+}
+
 /* Translations Status */
 .status {
        border-collapse: collapse;
index 89b39e6..95fe8c0 100644 (file)
@@ -401,6 +401,18 @@ ul.inline li {
        clear: left;
 }
 
+/* PAD file */
+.padfile dt {
+       margin: 0 0 0 2em;
+       padding: 0;
+       font-weight: bold;
+}
+
+.padfile dd {
+       margin: 0 2em 1em 4em;
+       padding: 0;
+}
+
 /* Translations Status */
 .status {
        border-collapse: collapse;