get_image_link(); $html = ""; if($config->get_bool("image_show_meta")) { # FIXME: only read from jpegs? $exif = @exif_read_data($image->get_image_filename(), 0, true); if($exif) { $head = ""; foreach ($exif as $key => $section) { foreach ($section as $name => $val) { if($key == "IFD0") { $head .= html_escape("$name: $val")."
\n"; } } } if($head) { $page->add_block(new Block("EXIF Info", $head, "left")); } } } $zoom_default = $config->get_bool("image_zoom", false) ? "scale(img);" : ""; $zoom = ""; $page->add_block(new Block("Image", $html.$zoom, "main", 0)); } } ?>