Use template includes

This commit is contained in:
Pierre Rudloff 2016-08-01 01:01:10 +02:00
parent 37c223638d
commit fc73459731
9 changed files with 24 additions and 47 deletions

View file

@ -1,6 +1,7 @@
{include file='inc/head.tpl'}
<div class="wrapper">
<div class="main error">
{include file="logo.tpl"}
{include file="inc/logo.tpl"}
<h2>An error occured</h2>
Please check the URL of your video.
<p><i>
@ -9,4 +10,5 @@
<br/>
{/foreach}
</i></p>
</div>
</div>
{include file='inc/footer.tpl'}

View file

@ -1,8 +1,12 @@
{include file='inc/head.tpl'}
{include file='inc/header.tpl'}
{include file='inc/logo.tpl'}
<h2 class="titre">Supported websites</h2>
<div class="tripleliste">
<ul>
<ul>
{foreach $extractors as $extractor}
<li>{$extractor}</li>
{/foreach}
</ul>
</div>
{include file='inc/footer.tpl'}

View file

@ -1,4 +1,6 @@
<div class="main">
{include file='inc/head.tpl'}
{include file='inc/header.tpl'}
<div class="main">
<div><img class="logo" src="{base_url|noscheme}/img/logo.png"
alt="AllTube Download" width="328" height="284"></div>
<form action="{path_for name="video"}">
@ -27,3 +29,4 @@
</div>
</div>
{include file='inc/footer.tpl'}

View file

@ -1,7 +1,8 @@
{include file="inc/head.tpl"}
<div class="wrapper">
<div itemscope itemtype="http://schema.org/VideoObject">
<div class="main">
{include file="logo.tpl"}
{include file="inc/logo.tpl"}
<p id="download_intro">You are going to download<i itemprop="name">
<a itemprop="url" id="video_link"
data-ext="{$video->ext}"
@ -86,3 +87,4 @@
{/if}
</div>
</div>
{include file="inc/footer.tpl"}