function _slide(&$slide) { global $pres; list($dx, $dy) = getFlashDimensions($slide->titleFont, $slide->title, flash_fixsize($slide->titleSize)); $dx = $this->winW; // full width ?> <div align="<?php echo $slide->titleAlign; ?> " class="sticky" id="stickyBar"> <embed src="<?php echo $this->baseDir; ?> flash.php/<?php echo time(); ?> ?type=title&dy=<?php echo $dy; ?> &dx=<?php echo $dx; ?> &coid=<?php echo $this->coid; ?> " quality=high loop=false pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="<?php echo $dx; ?> " height="<?php echo $dy; ?> "> </embed> </div> <?php // Slide layout templates if (!empty($this->objs[1]->layout)) { switch ($this->objs[1]->layout) { case '2columns': echo "<div class=\"c2left\">\n"; break; case '2columns-noborder': echo "<div class=\"c2leftnb\">\n"; break; case 'box': echo "<div class=\"box\">\n"; break; } } // Automatic slides if ($this->objs[1]->template == 'titlepage') { $basefontsize = isset($this->objs[1]->fontsize) ? $this->objs[1]->fontsize : '5em'; $smallerfontsize = 2 * (double) $basefontsize / 3 . 'em'; $smallestfontsize = (double) $basefontsize / 2 . 'em'; $p = $pres; $parts = !empty($p->title) + !empty($p->event) + (!empty($p->date) || !empty($p->location)) + (!empty($p->speaker) || !empty($p->email)) + !empty($p->url) + !empty($p->subtitle); for ($i = 10; $i > $parts; $i--) { echo "<br />\n"; } if (!empty($p->title)) { echo "<div align=\"center\" style=\"font-size: {$basefontsize};\">{$p->title}</div><br />\n"; } if (!empty($p->subtitle)) { echo "<div align=\"center\" style=\"font-size: {$smallestfontsize};\">{$p->subtitle}</div><br />\n"; } if (!empty($p->event)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\">{$p->event}</div><br />\n"; } if (!empty($p->date) && !empty($p->location)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\">{$p->date}. {$p->location}</div><br />\n"; } else { if (!empty($p->date)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\">{$p->date}</div><br />\n"; } else { if (!empty($p->location)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\">{$p->location}</div><br />\n"; } } } if (!empty($p->email) && !empty($p->speaker)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\">{$p->speaker} <<a href=\"mailto:{$p->email}\">{$p->email}</a>></div><br />\n"; } else { if (!empty($p->email)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\"><<a href=\"mailto:{$p->email}\">{$p->email}</a>></div><br />\n"; } else { if (!empty($p->speaker)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\">{$p->speaker}</div><br />\n"; } } } if (!empty($p->url)) { echo "<div align=\"center\" style=\"font-size: {$smallerfontsize};\"><a href=\"{$p->url}\">{$p->url}</a></div><br />\n"; } if (!empty($p->copyright)) { for ($i = 10; $i > $parts; $i--) { echo "<br />\n"; } $str = str_replace('(c)', '©', $p->copyright); $str = str_replace('(R)', '®', $str); echo "<div align\\=\"center\" style=\"font-size: 1em\">{$str}</div>\n"; } } }
$i = $m->add($t); $i->moveTo((int) ($dx / 2) - $t->getWidth($tText) / 2, $dy - round($t->getDescent()) - ($dy - $tHeight) / 2); // Don't forget to add the button $m->add($b); break; case 'blurb': $m->setBackground(0xff, 0xff, 0xff); $m->setDimension($dx, $dy); $t = new SWFTextField(); if (!empty($objs[$coid]->title)) { $rgb = rgb($objs[$coid]->titleColor); $t->setColor($rgb[0], $rgb[1], $rgb[2]); $t = new SWFText(); $f = new SWFFont($objs[$coid]->font); $t->setFont($f); $t->setHeight(flash_fixsize($objs[$coid]->titleSize)); $t->addString($objs[$coid]->title); $i = $m->add($t); if ($in == 0) { $i->moveTo(5, 0); } } foreach ($el['text'] as $in => $val) { if (!empty($el['text'][$in]['data'])) { $t = new SWFTextField(); $t->setColor($defaultColor[0], $defaultColor[1], $defaultColor[2]); $t->align(SWFTEXTFIELD_ALIGN_LEFT); $t->setFont($f); $t->setHeight((int) ($_GET['h'] / 5)); $t->addString($el['text'][$in]['data']); $i = $m->add($t);