Add link to best format at the top of the list

This commit is contained in:
Pierre Rudloff 2014-11-18 18:15:52 +01:00
parent 0757efc397
commit 187d382e2a
2 changed files with 8 additions and 0 deletions

View file

@ -51,6 +51,10 @@ if (isset($_GET["url"])) {
<p>(You might have to do a <i>Right click > Save as</i>)</p>
<ul id="format" class="format">
<?php
echo '<li class="best" itemprop="encoding" itemscope itemtype="http://schema.org/VideoObject">';
echo '<a itemprop="contentUrl" href="', $video->url ,'">';
echo '<b>Best</b> (<span itemprop="encodingFormat">', $video->ext, '</span>)';
echo '</a></li>';
foreach ($video->formats as $format) {
echo '<li itemprop="encoding" itemscope itemtype="http://schema.org/VideoObject">';
echo '<a itemprop="contentUrl" href="', $format->url ,'">';

View file

@ -544,6 +544,10 @@ h1 {
text-align:left;
}
.best {
margin-bottom: 1em;
}
@media (max-width: 640px) {
.thumb {
width:90%;