alltube/templates/playlist.tpl

37 lines
1.3 KiB
Smarty
Raw Normal View History

2017-04-24 23:53:38 +00:00
{include file="inc/head.tpl"}
<div class="wrapper">
<main class="main">
2017-04-24 23:53:38 +00:00
{include file="inc/logo.tpl"}
2017-05-29 17:28:42 +00:00
<p>{t}Videos extracted from{/t} {if isset($video->title)}<i>
2017-04-24 23:53:38 +00:00
<a href="{$video->webpage_url}">
2017-05-29 17:28:42 +00:00
{$video->title}</a></i>{/if}{t}:{/t}
2017-04-24 23:53:38 +00:00
</p>
2017-05-02 15:04:55 +00:00
{if $config->stream}
<a href="{path_for name="redirect"}?url={$video->webpage_url}" class="downloadBtn">Download everything</a>
{/if}
2017-04-24 23:53:38 +00:00
{foreach $video->entries as $video}
<div class="playlist-entry">
2017-06-01 09:38:35 +00:00
<h3 class="playlist-entry-title"><a target="_blank" href="{strip}
{if isset($video->ie_key) and $video->ie_key == Youtube and !filter_var($video->url, FILTER_VALIDATE_URL)}
https://www.youtube.com/watch?v=
{/if}
{$video->url}
{/strip}">
2019-01-25 20:16:58 +00:00
{if !isset($video->title)}
{if $video->ie_key == YoutubePlaylist}
Playlist
{else}
Video
{/if}
{else}
{$video->title}
{/if}
</a></h3>
2017-05-26 10:58:48 +00:00
<a target="_blank" class="downloadBtn" href="{path_for name="redirect"}?url={$video->url}">{t}Download{/t}</a>
<a target="_blank" href="{path_for name="video"}?url={$video->url}">{t}More options{/t}</a>
2017-04-24 23:53:38 +00:00
</div>
{/foreach}
</main>
2017-04-24 23:53:38 +00:00
{include file="inc/footer.tpl"}