get_image_link(); $ext = strtolower($image->get_ext()); if ($ext == "mp4") { $html = "Video not playing? Click here to download the file.
"; } elseif ($ext == "flv") { $html = "Video not playing? Click here to download the file.
"; } elseif ($ext == "ogv") { $html = "Video not playing? Click here to download the file.
"; } elseif ($ext == "webm") { $ie_only = ""; $html = $ie_only ."Video not playing? Click here to download the file.
"; } else { $html = "Video type '$ext' not recognised"; } $page->add_block(new Block("Video", $html, "main", 10)); } }