alltube/templates/playlist.tpl

37 lines
1.3 KiB
Smarty
Raw Normal View History

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