cvs: pres2 / index.php objects.php

From: Date: Sun, 22 Jun 2003 05:22:00 +0000
Subject: cvs: pres2 / index.php objects.php
Groups: php.pres 
Request: Send a blank email to pres+get-756@lists.php.net to get a copy of this message
rasmus Sun Jun 22 01:22:00 2003 EDT Modified files: /pres2 index.php objects.php Log: More href title tags and get rid of the next slide title in the footer area. I found it too distracting. Now if you hover over the nav arrows in the php2 template you will see the titles of the next and previous slides. Index: pres2/index.php diff -u pres2/index.php:1.28 pres2/index.php:1.29 --- pres2/index.php:1.28 Sat Jun 21 22:51:15 2003 +++ pres2/index.php Sun Jun 22 01:22:00 2003 @@ -86,7 +86,7 @@ <html> <head> -<base href="<?php echo "http://".getenv('HTTP_HOST').$baseDir?>"> +<base href="<?php echo "http://".$_SERVER['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.143 pres2/objects.php:1.144 --- pres2/objects.php:1.143 Sat Jun 21 22:51:15 2003 +++ pres2/objects.php Sun Jun 22 01:22:00 2003 @@ -315,17 +315,17 @@ <td><img src="images/blank.gif" width="5" /></td> <td><? if( $slideNum > 0){ $prevSlide = $slideNum - 1; - echo "<a href=\"http://$_SERVER[HTTP_HOST]$baseDir$showScript/$currentPres/$prevSlide\">" - . '<img src="images/back.gif" border="0" hspace="2" alt="'.$prevTitle.'"/></a>'; + echo "<a title=\"$prevTitle\" href=\"http://$_SERVER[HTTP_HOST]$baseDir$showScript/$currentPres/$prevSlide\">" + . '<img src="images/back.gif" border="0" hspace="2" /></a>'; } if($slideNum < $maxSlideNum) $nextSlideNum = $slideNum + 1; ?></td> <td bgcolor="999999"><img src="images/blank.gif" width="25" height="1" /><br /> <span class="c2"><b><i>&nbsp;&nbsp; - <a href="<?= "http://$_SERVER[HTTP_HOST]{$baseDir}slidelist.php" ?>" onClick="window.open('<?= "http://$_SERVER[HTTP_HOST]{$baseDir}slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?= $winW-300 ?>,top=0'); return false" class="linka"><?= $slideNum ?></a> &nbsp; &nbsp; </i></b></span></td> + <a title="<?= $slideNum.' of '.$maxSlideNum?>" href="<?= "http://$_SERVER[HTTP_HOST]{$baseDir}slidelist.php" ?>" onClick="window.open('<?= "http://$_SERVER[HTTP_HOST]{$baseDir}slidelist.php" ?>','slidelist','toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,width=300,height=500,left=<?= $winW-300 ?>,top=0'); return false" class="linka"><?= $slideNum ?></a> &nbsp; &nbsp; </i></b></span></td> <td><? if( !empty($nextSlideNum) ) - echo "<a href=\"http://$_SERVER[HTTP_HOST]$baseDir$showScript/$currentPres/$nextSlideNum\">" - . '<img src="images/next.gif" border="0" hspace="2" alt="'.$nextTitle.'"/></a>'; + echo "<a title=\"$nextTitle\" href=\"http://$_SERVER[HTTP_HOST]$baseDir$showScript/$currentPres/$nextSlideNum\">" + . '<img src="images/next.gif" border="0" hspace="2" /></a>'; ?></td> <td><img src="images/blank.gif" height="10" width="15" /></td> </tr> @@ -2214,15 +2214,17 @@ <? } break; +/* (this seemed too intrusive) case 'php2': if($nextTitle) { ?> <span class="C5"> - <?echo markup_text($nextTitle);?> + <?echo 'next: '.markup_text($nextTitle);?> </span> <? } break; +*/ } }

« previous php.pres (#756) next »