[Scummvm-cvs-logs] SF.net SVN: scummvm: [23683] web/trunk

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Aug 6 01:08:59 CEST 2006


Revision: 23683
Author:   fingolfin
Date:     2006-08-05 16:08:52 -0700 (Sat, 05 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23683&view=rev

Log Message:
-----------
Use CSS to fatten the first letter in our menus

Modified Paths:
--------------
    web/trunk/include/menu.php
    web/trunk/style.css
Modified: web/trunk/include/menu.php
===================================================================
--- web/trunk/include/menu.php	2006-08-05 10:54:49 UTC (rev 23682)
+++ web/trunk/include/menu.php	2006-08-05 23:08:52 UTC (rev 23683)
@@ -3,51 +3,30 @@
 
   function htmlmenu($name, $style, $extra = "") {
     global $file_root;
-    echo '<table class="menu" cellspacing="0">';
 ?>
+  <table class="menu" cellspacing="0">
   <tfoot>
     <tr>
       <td><img src="<?=$file_root?>/images/menu-bottom.gif" alt="" width="145" height="13" /></td>
     </tr>
-
 <?php
      if ($extra) {
-       echo "<tr><td>$extra</td></tr>\n";
+       echo "<tr><td>$extra</td></tr>";
      }
 ?>
   </tfoot>
-
+  <tr class="<?=$style?>"><th><?=$name?></th></tr>
+  <tbody><tr><td><ul>
 <?php
-    echo '<tr class="'.$style.'">';
-    echo "  <th>$name</th>";
-?>
-
-  </tr>
-  <tbody>
-    <tr>
-      <td>
-        <ul>
-<?php
  }
 
  /* add a table row */
- function add($name, $url = null) {
-   if($url) {
-     echo "          <li><a href='$url'><b>{$name[0]}</b>".substr($name, 1)."</a></li>";
-   } else {
-     echo "          <li><b>{$name[0]}</b>".substr($name, 1)."</li>";
-   }
+ function add($name, $url) {
+     echo "<li><a href='$url'>$name</a></li>";
  }
 
  function done() {
-?>
-        </ul>
-      </td>
-    </tr>
-  </tbody>
-</table>
-
-<?php
+    echo "</ul></td></tr></tbody></table>";
  }
 }
 ?>

Modified: web/trunk/style.css
===================================================================
--- web/trunk/style.css	2006-08-05 10:54:49 UTC (rev 23682)
+++ web/trunk/style.css	2006-08-05 23:08:52 UTC (rev 23683)
@@ -79,6 +79,10 @@
 	margin-bottom: 8px;
 }
 
+.menu li:first-letter {
+	font-weight:bold;
+}
+
 .menu a {
 	color: #fff;
 	text-decoration: none;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list