cvs: pear /Forum/lib/skins/simple template.php

From: Date: Wed, 10 Oct 2001 08:28:55 +0000
Subject: cvs: pear /Forum/lib/skins/simple template.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-966@lists.php.net to get a copy of this message
mog Wed Oct 10 04:28:55 2001 EDT Added files: /pear/Forum/lib/skins/simple template.php Log: Forgot to add template.php Index: pear/Forum/lib/skins/simple/template.php +++ pear/Forum/lib/skins/simple/template.php <?PHP // class name must be in the form "phorumskin_".$skindir class phorumskin_simple { /** * $dir is set during skin initalization, * it's here for reference. */ var $dir; /** * Set by class to the file to be included for that class relative to $this->dir. * example from another class: include($this->skin->dir.$this->skin->file); */ var $file; /** * Name of the directory the skin resides in */ var $name="simple"; function format_new ($haveread) { if(!$haveread) return " <SPAN CLASS=\"new\">New</SPAN>"; else return ""; } function format_image ($tree) { $return=""; static $images = array( "t" => "<IMG SRC=\"images/t.gif\" WIDTH=12 HEIGHT=21 BORDER=0>", "l" => "<IMG SRC=\"images/l.gif\" WIDTH=12 HEIGHT=21 BORDER=0>", "p" => "<IMG SRC=\"images/p.gif\" WIDTH=9 HEIGHT=21 BORDER=0>", "m" => "<IMG SRC=\"images/m.gif\" WIDTH=9 HEIGHT=21 BORDER=0>", "c" => "<IMG SRC=\"images/c.gif\" WIDTH=9 HEIGHT=21 BORDER=0>", "i" => "<IMG SRC=\"images/i.gif\" WIDTH=12 HEIGHT=21 BORDER=0>", "n" => "<IMG SRC=\"images/n.gif\" WIDTH=9 HEIGHT=21 BORDER=0>", "space" => "<IMG SRC=\"images/trans.gif\" WIDTH=12 HEIGHT=21 BORDER=0>", ); foreach($tree as $image) { $return .= $images[$image]; } return $return; } function date_format($timestamp, $format){ GLOBAL $PHORUM; return date($PHORUM[$format], $timestamp); } } ?>

« previous php.pear.cvs (#966) next »