Smarty
This commit is contained in:
parent
eeb506bdf7
commit
0b4e75547a
25 changed files with 276 additions and 331 deletions
15
templates/disabled.tpl
Normal file
15
templates/disabled.tpl
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div class="wrapper">
|
||||
<div class="main">
|
||||
<h1><img itemprop="image" class="logo" src="img/logo.png"
|
||||
alt="AllTube Download" width="328" height="284"></h1>
|
||||
<div>
|
||||
Due to various technical reasons,
|
||||
we can no longer host an online version of AllTube.<br/>
|
||||
However, you are free to
|
||||
<a title="AllTube releases on GitHub"
|
||||
href="https://github.com/Rudloff/alltube/releases">
|
||||
download the code</a>
|
||||
and run it on your own server.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
13
templates/error.tpl
Normal file
13
templates/error.tpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div class="wrapper">
|
||||
<div class="main error">
|
||||
{include file="logo.tpl"}
|
||||
<h2>An error occured</h2>
|
||||
Please check the URL of your video.
|
||||
<p><i>
|
||||
{foreach $errors as $error}
|
||||
{$error|escape}
|
||||
<br/>
|
||||
{/foreach}
|
||||
</i></p>
|
||||
</div>
|
||||
</div>
|
8
templates/extractors.tpl
Normal file
8
templates/extractors.tpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
<h2 class="titre">Supported websites</h2>
|
||||
<div class="tripleliste">
|
||||
<ul>
|
||||
{foreach $extractors as $extractor}
|
||||
<li>{$extractor}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
22
templates/footer.tpl
Normal file
22
templates/footer.tpl
Normal file
|
@ -0,0 +1,22 @@
|
|||
</div>
|
||||
<footer>
|
||||
<div class="footer_wrapper">
|
||||
Code by <a rel="author" target="blank" itemprop="author"
|
||||
href="http://rudloff.pro/">Pierre Rudloff</a>
|
||||
· Design by
|
||||
<a rel="author" itemprop="author" target="blank"
|
||||
href="http://olivierhaquette.fr">Olivier Haquette</a>
|
||||
·
|
||||
<a target="_blank"
|
||||
href="https://www.facebook.com/pages/AllTube-Download/571380966249415"
|
||||
title="AllTube Download on Facebook">Like us on Facebook</a>
|
||||
·
|
||||
<a href="https://github.com/Rudloff/alltube">Get the code</a>
|
||||
·
|
||||
Based on <a href="http://rg3.github.io/youtube-dl/">youtube-dl</a>
|
||||
·
|
||||
<a href="javascript:window.location='{$base_url}/api.php?url='+location.href;">Bookmarklet</a>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
29
templates/head.tpl
Normal file
29
templates/head.tpl
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!Doctype HTML>
|
||||
<html lang="en" itemscope itemtype="http://schema.org/WebApplication">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name=viewport content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Easily download videos from Youtube, Dailymotion, Vimeo and other websites." />
|
||||
<link rel="stylesheet" href="dist/main.css" />
|
||||
<link rel="author" href="https://plus.google.com/110403274854419000481?rel=author" />
|
||||
<link rel="author" href="https://plus.google.com/103696815796116179392?rel=author" />
|
||||
<link href="https://plus.google.com/108799967445657477255" rel="publisher" />
|
||||
<title itemprop="name">AllTube Download</title>
|
||||
<meta itemprop="url" content="http://alltubedownload.net/" />
|
||||
<link rel="icon" href="img/favicon.png" />
|
||||
<meta property="og:url" content="http://www.alltubedownload.net/" />
|
||||
<meta property="og:title" content="AllTube Download" />
|
||||
<meta property="og:description" content="Easily download videos from Youtube, Dailymotion, Vimeo and other websites." />
|
||||
<meta property="og:image" content="http://www.alltubedownload.net/img/logo.png" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content="AllTube Download" />
|
||||
<meta name="twitter:image" content="http://www.alltubedownload.net/img/logo.png" />
|
||||
<meta name="twitter:creator" content="@Tael67" />
|
||||
<meta name="twitter:description" content="Easily download videos from Youtube, Dailymotion, Vimeo and other websites." />
|
||||
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
|
||||
<script src="dist/main.js"></script>
|
||||
<meta itemprop="applicationCategory" content="Download" />
|
||||
<meta itemprop="operatingSystem" content="Linux" />
|
||||
<meta itemprop="operatingSystem" content="Mac OS X" />
|
||||
</head>
|
||||
<body class="{$class}">
|
8
templates/header.tpl
Normal file
8
templates/header.tpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
<header>
|
||||
<div class="social">
|
||||
<a class="twitter" href="http://twitter.com/home?status={$base_url|urlencode}" target="_blank">
|
||||
Share on Twitter<div class="twittermask"></div></a>
|
||||
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u={$base_url|urlencode}" target="_blank">Share on Facebook<div class="facebookmask"></div></a>
|
||||
</div>
|
||||
</header>
|
||||
<div class="wrapper">
|
24
templates/index.tpl
Normal file
24
templates/index.tpl
Normal file
|
@ -0,0 +1,24 @@
|
|||
<div class="main">
|
||||
<div><img itemprop="image" class="logo" src="img/logo.png"
|
||||
alt="AllTube Download" width="328" height="284"></div>
|
||||
<form action="api.php">
|
||||
<label class="labelurl" for="url">
|
||||
Copy here the URL of your video (Youtube, Dailymotion, etc.)
|
||||
</label>
|
||||
<div class="champs">
|
||||
<span class="URLinput_wrapper">
|
||||
<input class="URLinput" type="url" name="url" id="url"
|
||||
required placeholder="http://website.com/video" />
|
||||
</span>
|
||||
<input class="downloadBtn" type="submit" value="Download" /><br/>
|
||||
{if $convert}
|
||||
<div class="mp3">
|
||||
<p><input type="checkbox" id="audio" class="audio" name="audio">
|
||||
<label for="audio"><span class="ui"></span>
|
||||
Audio only (MP3)</label></p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
<a class="combatiblelink" href="extractors.php">See all supported websites</a>
|
||||
</div>
|
4
templates/logo.tpl
Normal file
4
templates/logo.tpl
Normal file
|
@ -0,0 +1,4 @@
|
|||
<h1 class="logobis">
|
||||
<a class="logocompatible" href="index.php">
|
||||
AllTube Download<span class="logocompatiblemask"><img src="img/logocompatiblemask.png" width="447" height="107" alt="" /></span>
|
||||
</a></h1>
|
9
templates/maintenance.tpl
Normal file
9
templates/maintenance.tpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
<div class="wrapper">
|
||||
<div class="main">
|
||||
<h1><img itemprop="image" class="logo" src="img/logo.png"
|
||||
alt="AllTube Download" width="328" height="284"></h1>
|
||||
<div>Due to some issues with our server,
|
||||
we have to disable AllTube for a few days.
|
||||
Sorry for the inconvenience.</div>
|
||||
</div>
|
||||
</div>
|
52
templates/video.tpl
Normal file
52
templates/video.tpl
Normal file
|
@ -0,0 +1,52 @@
|
|||
<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"
|
||||
src="img/ic_media_route_disabled_holo_light.png"
|
||||
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"
|
||||
src="img/ic_media_route_off_holo_light.png"
|
||||
title="Cast to ChromeCast" alt="Google Cast™" />
|
||||
<img src="img/ic_media_route_on_holo_light.png"
|
||||
alt="Casting to ChromeCast…" title="Stop casting"
|
||||
id="cast_btn_stop" class="cast_btn cast_hidden cast_icon" /></p>
|
||||
<img itemprop="image" class="thumb" src="{$video->thumbnail}" alt="" />
|
||||
<br/>
|
||||
<input type="hidden" name="url"
|
||||
value="{$video->webpage_url}" />
|
||||
{if $video->formats}
|
||||
<h3>Available formats:</h3>
|
||||
<p>(You might have to do a <i>Right click > Save as</i>)</p>
|
||||
<ul id="format" class="format">
|
||||
<li class="best" itemprop="encoding" itemscope
|
||||
itemtype="http://schema.org/VideoObject">
|
||||
<a download="{$video->_filename}" itemprop="contentUrl"
|
||||
href="{$video->url|escape}">
|
||||
<b>Best</b> (<span itemprop="encodingFormat">{$video->ext}</span>)
|
||||
</a></li>
|
||||
{foreach $video->formats as $format}
|
||||
<li itemprop="encoding"
|
||||
itemscope itemtype="http://schema.org/VideoObject">
|
||||
<a download="{$video->ext|replace:$format->ext:$video->_filename}" itemprop="contentUrl"
|
||||
href="{$format->url|escape}">
|
||||
<span itemprop="videoQuality">{$format->format}</span> (<span itemprop="encodingFormat">{$format->ext}</span>)
|
||||
</a></li>
|
||||
{/foreach}
|
||||
</ul><br/><br/>
|
||||
{else}
|
||||
<input type="hidden" name="format" value="best" />
|
||||
{/if}
|
||||
{if $video->formats}
|
||||
<a class="downloadBtn"
|
||||
href="{$video->url|escape}">Download</a><br/>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue