summaryrefslogtreecommitdiff
path: root/doc/web/homepage/page-php-classes.inc
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-04-21 00:21:29 +0200
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-04-21 00:21:29 +0200
commitd5783dd6df8c4c0248a2837133d932bed30fe67b (patch)
treeaacac4fa0c455867af1259524ac0809566b11a2a /doc/web/homepage/page-php-classes.inc
parent0b917d2c8dc2a6a3f64e9157f196fc0367419194 (diff)
downloadvdr-plugin-live-cvs-commit-355.tar.gz
vdr-plugin-live-cvs-commit-355.tar.bz2
Updated screenshot functionality on the LIVE homepage for the nextcvs-commit-355
release.
Diffstat (limited to 'doc/web/homepage/page-php-classes.inc')
-rw-r--r--doc/web/homepage/page-php-classes.inc21
1 files changed, 16 insertions, 5 deletions
diff --git a/doc/web/homepage/page-php-classes.inc b/doc/web/homepage/page-php-classes.inc
index 7ad2341..17d03ab 100644
--- a/doc/web/homepage/page-php-classes.inc
+++ b/doc/web/homepage/page-php-classes.inc
@@ -5,13 +5,15 @@ class Status
var $vers_string;
var $vers_number;
var $datefmt;
+ var $language;
- function Status($title, $vname, $vnum, $datefmt)
+ function Status($title, $vname, $vnum, $datefmt, $lang)
{
$this->title = $title;
$this->vers_string = $vname;
$this->vers_number = $vnum;
$this->datefmt = $datefmt;
+ $this->language = $lang;
}
}
@@ -39,14 +41,14 @@ class Screenshots
function RandomImg()
{
$idx = array_rand($this->images);
- $this->MakeAnchor($this->images[$idx]);
+ $this->MakeAnchor($idx);
}
function AllImg()
{
- foreach($this->images as $img) {
- $this->MakeAnchor($img);
+ foreach($this->images as $idx => $descr) {
+ $this->MakeAnchor($idx);
}
}
@@ -58,7 +60,16 @@ class Screenshots
function FullImage($img)
{
$img = basename($img);
- echo "<a href=\"screenshots.php\"><img src=\"img/${img}.jpg\" alt=\"img/${img}.jpg\"/ style=\"width: 770px\"></a>\n";
+ echo "<a href=\"screenshots.php\"><img src=\"img/${img}.jpg\" alt=\"img/${img}.jpg\"/ style=\"width: 810px\"></a>\n";
+ }
+
+ function ImageDescr($img, $error)
+ {
+ $img = basename($img);
+ if (isset($this->images[$img]))
+ return $this->images[$img];
+ else
+ return $error;
}
}
?>