alltube/templates/video.tpl

53 lines
2.0 KiB
Smarty
Raw Normal View History

2015-04-11 22:08:24 +02:00
<div class="wrapper">
<div itemscope itemtype="http://schema.org/VideoObject">
<div class="main">
{include file="logo.tpl"}
<p>You are going to download<i itemprop="name">
<a itemprop="url" id="video_link"
data-ext="{$video->ext}"
data-video="{$video->url|escape}"
href="{$video->webpage_url}">
{$video->title}</a></i>.
<img class="cast_icon" id="cast_disabled"
2016-04-06 13:19:27 +02:00
src="{base_url|noscheme}/img/ic_media_route_disabled_holo_light.png"
2015-04-11 22:08:24 +02:00
alt="Google Cast™ is disabled"
title="Google Cast is not supported on this browser." />
<img class="cast_btn cast_hidden cast_icon" id="cast_btn_launch"
2016-04-06 13:19:27 +02:00
src="{base_url|noscheme}/img/ic_media_route_off_holo_light.png"
2015-04-11 22:08:24 +02:00
title="Cast to ChromeCast" alt="Google Cast™" />
2016-04-06 13:19:27 +02:00
<img src="{base_url|noscheme}/img/ic_media_route_on_holo_light.png"
2015-04-11 22:08:24 +02:00
alt="Casting to ChromeCast…" title="Stop casting"
id="cast_btn_stop" class="cast_btn cast_hidden cast_icon" /></p>
2015-10-31 12:04:13 +01:00
{if isset($video->thumbnail)}
<img itemprop="image" class="thumb" src="{$video->thumbnail}" alt="" />
{/if}
2015-04-11 22:08:24 +02:00
<br/>
2015-04-12 16:29:05 +02:00
{if isset($video->formats)}
2016-04-10 21:42:38 +02:00
<h3><label for="format">Available formats:</label></h3>
<form action="{path_for name="redirect"}">
<input type="hidden" name="url" value="{$video->webpage_url}" />
<select name="format" id="format">
<option value="best">
Best ({$video->ext})
</option>
<option value="worst">
Worst
</option>
<optgroup label="Other formats">
{foreach $video->formats as $format}
<option value="{$format->format_id}">
{$format->format} ({$format->ext})
</option>
{/foreach}
</optgroup>
</select><br/><br/>
<input class="downloadBtn" type="submit" value="Download" /><br/>
</form>
2015-04-11 22:08:24 +02:00
{else}
<input type="hidden" name="format" value="best" />
<a class="downloadBtn"
href="{$video->url|escape}">Download</a><br/>
{/if}
</div>
</div>