Image titles

This commit is contained in:
Rasmus Lerdorf
2014-03-11 11:09:11 -07:00
parent 764319cc67
commit ea9cb53f68

View File

@@ -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) {