mirror of
https://github.com/php/web-pres2.git
synced 2026-03-23 23:12:07 +01:00
Image titles
This commit is contained in:
@@ -91,10 +91,15 @@ include $reveal_template;
|
||||
|
||||
function render_image($e) {
|
||||
global $slide_path;
|
||||
return <<<EOB
|
||||
$ret = '';
|
||||
if(!empty($e['title'])) {
|
||||
$ret .= "<p>{$e['title']}</p>\n";
|
||||
}
|
||||
$ret .= <<<EOB
|
||||
<img src="/{$slide_path}/{$e[filename]}" width="{$e[width]}" height="{$e[height]}">
|
||||
|
||||
EOB;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function render_blurb($e) {
|
||||
|
||||
Reference in New Issue
Block a user