cvs: pres2 / display.php

From: Date: Mon, 05 Jan 2004 04:02:51 +0000
Subject: cvs: pres2 / display.php
Groups: php.pres 
Request: Send a blank email to pres+get-922@lists.php.net to get a copy of this message
amt Sun Jan 4 23:02:51 2004 EDT Modified files: /pres2 display.php Log: Restore ability to hide bullets; allow images to be scaled to a percent Index: pres2/display.php diff -u pres2/display.php:1.8 pres2/display.php:1.9 --- pres2/display.php:1.8 Fri Nov 14 00:40:27 2003 +++ pres2/display.php Sun Jan 4 23:02:51 2004 @@ -291,7 +291,13 @@ $size = "width=\"{$image->width}\" height=\"{$image->height}\""; } else { $size = getimagesize($this->slideDir.$image->filename); - $size = $size[3]; + if (!empty($image->scale)) { + $width = $size[0] * $image->scale; + $height = $size[1] * $image->scale; + $size = "width=\"{$width}\" height=\"{$height}\""; + } else { + $size = $size[3]; + } } ?> <div <?=$effect?> align="<?=$image->align?>" style="margin-left: <?=$image->marginleft?>; margin-right: <?=$image->marginright?>;"> @@ -529,7 +535,7 @@ $style .= 'list-style-type: none;'; - echo "<div $eff_str><li style=\"$style\">".'<tt>'.$symbol.'</tt> '.markup_text($bullet->text)."</li></div>\n"; + echo "<div $eff_str style=\"position: relative;\"><li style=\"$style\">".'<tt>'.$symbol.'</tt> '.markup_text(htmlspecialchars($bullet->text))."</li></div>\n"; } function _table(&$table) {

« previous php.pres (#922) next »