alltube/templates/index.tpl

53 lines
2.9 KiB
Smarty
Raw Normal View History

{extends file='page.tpl'}
{block name='main'}
2022-02-06 18:17:05 +00:00
<div>
{html_image file='img/logo.png' path_prefix={base_url}|cat:'/' alt=$config->appName class="logo"}
</div>
<form action="{path_for name="info"}">
2020-05-13 22:18:39 +00:00
<label class="labelurl" for="url">
{t}Copy here the URL of your video (YouTube, Dailymotion, etc.){/t}
2020-05-13 22:18:39 +00:00
</label>
<div class="champs">
2015-04-11 20:08:24 +00:00
<span class="URLinput_wrapper">
<!-- We used to have an autofocus attribute on this field but it triggerd a very specific CSS bug: https://github.com/Rudloff/alltube/issues/117 -->
<input class="URLinput large-font" type="url" name="url" id="url"
2022-02-03 19:55:09 +00:00
required placeholder="https://example.com/video"/>
2015-04-11 20:08:24 +00:00
</span>
2020-05-13 22:18:39 +00:00
{if $config->uglyUrls}
<input type="hidden" name="page" value="info"/>
{/if}
<input class="downloadBtn large-font" type="submit" value="{t}Download{/t}"/><br/>
{if $config->convert}
<div class="mp3 small-font">
<div class="mp3-inner">
<input type="checkbox" id="audio" class="audio"
name="audio" {($config->defaultAudio) ? 'checked' : ''}>
2020-05-13 22:18:39 +00:00
<label for="audio"><span class="ui"></span>
{t}Audio only (MP3){/t}
</label>
{if $config->convertSeek}
<div class="seekOptions">
<label for="from">{t}From{/t}</label> <input type="text"
pattern="(\d+:)?(\d+:)?\d+(\.\d+)?"
placeholder="HH:MM:SS" value=""
name="from"
id="from"/>
<label for="to">{t}to{/t}</label> <input type="text"
pattern="(\d+:)?(\d+:)?\d+(\.\d+)?"
placeholder="HH:MM:SS" value="" name="to"
id="to"/>
</div>
{/if}
2018-07-03 17:47:35 +00:00
</div>
</div>
2020-05-13 22:18:39 +00:00
{/if}
</div>
2015-04-11 20:08:24 +00:00
</form>
2017-06-01 09:25:59 +00:00
<a class="combatiblelink small-font" href="{path_for name="extractors"}">{t}See all supported websites{/t}</a>
2016-07-10 11:12:44 +00:00
<div id="bookmarklet" class="bookmarklet_wrapper">
2017-05-26 06:55:04 +00:00
<p> {t}Drag this to your bookmarks bar:{/t} </p>
2020-05-13 22:18:39 +00:00
<a class="bookmarklet small-font"
href="javascript:window.location='{$domain}{path_for name='info' queryParams=['url' => '%url%']}'.replace('%url%', encodeURIComponent(location.href));">{t}Bookmarklet{/t}</a>
2015-10-28 10:57:44 +00:00
</div>
{/block}