[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gallery-checkins
Subject:    [Gallery-checkins] CVS: gallery2/themes/classic theme.inc,1.2,1.3
From:       Bharat Mediratta <bharat () users ! sourceforge ! net>
Date:       2002-10-29 7:14:16
[Download RAW message or body]

Update of /cvsroot/gallery/gallery2/themes/classic
In directory usw-pr-cvs1:/tmp/cvs-serv17238/themes/classic

Modified Files:
	theme.inc 
Log Message:

* Fleshed out the comment details code as a test case for how module details will
  work.  Now we display the 3 most recent comments when viewing the item, and
  provide a link to the rest of them.

* Added ThinFrame to the theme code



Index: theme.inc
===================================================================
RCS file: /cvsroot/gallery/gallery2/themes/classic/theme.inc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- theme.inc	28 Oct 2002 18:51:06 -0000	1.2
+++ theme.inc	29 Oct 2002 07:14:14 -0000	1.3
@@ -90,6 +90,19 @@
     }
 
     /**
+     * @see GalleryTheme::thinFrame
+     */
+    function thinFrame($params, $content) {
+	if (!empty($params['width'])) {
+	    $width = "width=\"$params[width]\"";
+	} else {
+	    $width = "";
+	}
+
+	return "<table border=\"1\" cellspacing=\"0\" $width><tr><td>$content</td></tr></table>";
+    }
+
+    /**
      * @see GalleryTheme::lightFrame
      */
     function lightFrame($params, $content) {
@@ -99,7 +112,7 @@
 	    $width = "";
 	}
 
-	return "<table border=\"1\" $width><tr><td>$content</td></tr></table>";
+	return "<table border=\"2\" cellspacing=\"1\" $width><tr><td>$content</td></tr></table>";
     }
 
     /**



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
__[ g a l l e r y - c h e c k i n s ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic