cvs: pres2 / index.php objects.php
| From: | Rasmus Lerdorf | Date: | Sun, 22 Jun 2003 02:51:16 +0000 |
| Subject: | cvs: pres2 / index.php objects.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-751@lists.php.net to get a copy of this message | ||
rasmus Sat Jun 21 22:51:16 2003 EDT
Modified files:
/pres2 index.php objects.php
Log:
Hovering over the slide title will show you the xml filename you need to
edit to change the slide contents. Having it as the alt tag on the logo
was not convenient at all.
Index: pres2/index.php
diff -u pres2/index.php:1.27 pres2/index.php:1.28
--- pres2/index.php:1.27 Thu Jun 19 03:53:36 2003
+++ pres2/index.php Sat Jun 21 22:51:15 2003
@@ -86,7 +86,7 @@
<html>
<head>
-<base href="<?="http://$_SERVER[HTTP_HOST]".$baseDir?>">
+<base href="<?php echo "http://".getenv('HTTP_HOST').$baseDir?>">
<title>PHP Presents</title>
<?php include("css.php"); ?>
<script language="JavaScript1.2">
Index: pres2/objects.php
diff -u pres2/objects.php:1.142 pres2/objects.php:1.143
--- pres2/objects.php:1.142 Thu Jun 19 03:53:36 2003
+++ pres2/objects.php Sat Jun 21 22:51:15 2003
@@ -298,12 +298,12 @@
else $logo1url = $pres[1]->logoimage1url;
if(!empty($logo1)) {
$size = getimagesize($logo1);
- echo "<td align=\"left\" $size[3]><a
href=\"$logo1url\"><img src=\"$logo1\" border=\"0\"
align=\"left\" style=\"float: left; margin-bottom: 0em; margin-left: 0em;\"
alt=\"".$pres[1]->slides[$slideNum]->filename."\"></a></td>";
+ echo "<td align=\"left\" $size[3]><a
href=\"$logo1url\"><img src=\"$logo1\" border=\"0\"
align=\"left\" style=\"float: left; margin-bottom: 0em; margin-left:
0em;\"></a></td>";
$offset+=2;
}
?>
<td align="center">
- <?echo "<div align=\"center\" style=\"font-size: $titlesize; margin:
0 ".$offset."em 0 0;\"><a href=\"http://$_SERVER[HTTP_HOST]$baseDir$showScript/$currentPres/$slideNum\"
style=\"text-decoration: none; color:
$titlecolor;\">".markup_text($this->title)."</a></div>";?>
+ <?echo "<div align=\"center\" style=\"font-size: $titlesize; margin:
0 ".$offset."em 0 0;\"><a
title=\"".$pres[1]->slides[$slideNum]->filename."\" href=\"http://$_SERVER[HTTP_HOST]$baseDir$showScript/$currentPres/$slideNum\"
style=\"text-decoration: none; color:
$titlecolor;\">".markup_text($this->title)."</a></div>";?>
</td>
</tr></table>
<br />