Added conditional message for IE users to download plugin from Google for webm.

This commit is contained in:
jgen 2014-04-18 18:47:14 -04:00
parent b5d005710c
commit 7fd655fc4e

View File

@ -27,7 +27,8 @@ else {
<source src='" . make_link("/image/" . $image->id) . "' type='video/ogg' /> <source src='" . make_link("/image/" . $image->id) . "' type='video/ogg' />
</video>"; </video>";
} elseif ($ext == "webm") { } elseif ($ext == "webm") {
$html = "Video not playing? <a href='" . $image->parse_link_template(make_link('image/$id/$id%20-%20$tags.$ext')) . "'>Click here</a> to download the file.<br><video controls='controls' autoplay='autoplay'> $ie_only = "<!--[if IE]><p>To view webm files with IE, please <a href='http://tools.google.com/dlpage/webmmf/' target='_blank'>download this plugin</a>.</p><![endif]-->";
$html = $ie_only ."Video not playing? <a href='" . $image->parse_link_template(make_link('image/$id/$id%20-%20$tags.$ext')) . "'>Click here</a> to download the file.<br><video controls='controls' autoplay='autoplay'>
<source src='" . make_link("/image/" . $image->id) . "' type='video/webm' /> <source src='" . make_link("/image/" . $image->id) . "' type='video/webm' />
</video>"; </video>";
} }