analysis is boring
git-svn-id: http://yolanda.mister-muffin.de/svn@190 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
9150a3cfc8
commit
91ee099c00
5 changed files with 118 additions and 117 deletions
|
@ -115,6 +115,8 @@
|
|||
<!-- video page -->
|
||||
<str id="download_video">Download</str>
|
||||
<str id="megabytes">MB</str>
|
||||
<str id="watch_browserplugin">use browser plugin</str>
|
||||
<str id="watch_cortadoapplet">use java applet</str>
|
||||
<str id="edit_video">Edit</str>
|
||||
<str id="bookmark_video">Bookmark</str>
|
||||
<str id="license_conditions">License Conditions</str>
|
||||
|
|
|
@ -39,7 +39,18 @@ div
|
|||
|
||||
div.button-download, div.button-edit, div.button-bookmark
|
||||
{
|
||||
display: inline-block;
|
||||
display: inline-block;
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
div.button-download img, div.button-edit img, div.button-bookmark img
|
||||
{
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
div.comments
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.footer
|
||||
|
@ -117,12 +128,34 @@ div
|
|||
|
||||
div.tagcloud
|
||||
{
|
||||
display: inline-block;
|
||||
padding: 1.5em;
|
||||
padding: 1.5em;
|
||||
padding-left: 20%;
|
||||
padding-right: 20%;
|
||||
}
|
||||
|
||||
div.videoccdata
|
||||
{
|
||||
margin: 1.5em;
|
||||
}
|
||||
|
||||
div.videoccdata img
|
||||
{
|
||||
border-width: 0px;
|
||||
margin-left: 0.5em;
|
||||
margin-right: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
div.videostuff
|
||||
{
|
||||
}
|
||||
|
||||
div.videotitle
|
||||
{
|
||||
font-size: 1.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
fieldset
|
||||
{
|
||||
border-width: 0px;
|
||||
|
@ -154,14 +187,18 @@ img
|
|||
|
||||
img.logo-big
|
||||
{
|
||||
display: inline-block;
|
||||
padding-bottom: 1.5em;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
img.logo-small
|
||||
{
|
||||
}
|
||||
|
||||
span.code
|
||||
{
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
span.protip
|
||||
{
|
||||
color: #606060;
|
||||
|
@ -177,11 +214,6 @@ span.protip:before
|
|||
content: "( ";
|
||||
}
|
||||
|
||||
span.videotitle
|
||||
{
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
table.results
|
||||
{
|
||||
display: inline;
|
||||
|
|
|
@ -54,12 +54,16 @@
|
|||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="//@stylesheet" />
|
||||
</xsl:attribute>
|
||||
</link>
|
||||
|
||||
<xsl:if test="not(//@embed='true')">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="//@stylesheet" />
|
||||
</xsl:attribute>
|
||||
</link>
|
||||
</xsl:if>
|
||||
|
||||
<title>
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean(//frontpage)">
|
||||
|
|
|
@ -28,14 +28,14 @@
|
|||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<span class="videotitle">
|
||||
<div class="videotitle">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
<br />
|
||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:description" />
|
||||
<table class="videometadata">
|
||||
|
@ -301,46 +301,50 @@
|
|||
<xsl:template name="pagination-arrows">
|
||||
<xsl:variable name="query_string" select="concat('/', //results/@scriptname, '?', //results/@argument, '=', //results/@value, '&orderby=', //results/@orderby, '&sort=', //results/@sort, '&pagesize=', //results/@pagesize)" />
|
||||
<div>
|
||||
<xsl:choose>
|
||||
<xsl:when test="//results/@currentpage<=1">
|
||||
<img src="./images/placeholder32x32.png" />
|
||||
<img src="./images/placeholder32x32.png" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=1')" />
|
||||
</xsl:attribute>
|
||||
<img src="./images/tango/go-first.png" />
|
||||
</a>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage - 1)" />
|
||||
</xsl:attribute>
|
||||
<img src="./images/tango/go-previous.png" />
|
||||
</a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:choose>
|
||||
<xsl:when test="//results/@lastpage<=//results/@currentpage">
|
||||
<img src="./images/placeholder32x32.png" />
|
||||
<img src="./images/placeholder32x32.png" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage + 1)" />
|
||||
</xsl:attribute>
|
||||
<img src="./images/tango/go-next.png" />
|
||||
</a>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=', //results/@lastpage)" />
|
||||
</xsl:attribute>
|
||||
<img src="./images/tango/go-last.png" />
|
||||
</a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=1')" />
|
||||
</xsl:attribute>
|
||||
<xsl:if test="//results/@currentpage<=1">
|
||||
<xsl:attribute name="style">
|
||||
visibility: hidden;
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<img src="./images/tango/go-first.png" />
|
||||
</a>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage - 1)" />
|
||||
</xsl:attribute>
|
||||
<xsl:if test="//results/@currentpage<=1">
|
||||
<xsl:attribute name="style">
|
||||
visibility: hidden;
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<img src="./images/tango/go-previous.png" />
|
||||
</a>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage + 1)" />
|
||||
</xsl:attribute>
|
||||
<xsl:if test="//results/@lastpage<=//results/@currentpage">
|
||||
<xsl:attribute name="style">
|
||||
visibility: hidden;
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<img src="./images/tango/go-next.png" />
|
||||
</a>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat($query_string, '&page=', //results/@lastpage)" />
|
||||
</xsl:attribute>
|
||||
<xsl:if test="//results/@lastpage<=//results/@currentpage">
|
||||
<xsl:attribute name="style">
|
||||
visibility: hidden;
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<img src="./images/tango/go-last.png" />
|
||||
</a>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
>
|
||||
|
||||
<xsl:template name="video">
|
||||
<xsl:if test="//@embed!='true'">
|
||||
<h2>
|
||||
<xsl:if test="not(//@embed='true')">
|
||||
<br />
|
||||
<div class="videotitle">
|
||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:title" />
|
||||
<xsl:variable name="minutes" select="floor(//video/@duration div 60)" />
|
||||
<xsl:variable name="hours" select="floor(//video/@duration div 3600)" />
|
||||
|
@ -22,7 +23,7 @@
|
|||
(<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</h2>
|
||||
</div>
|
||||
</xsl:if>
|
||||
<div class="video">
|
||||
<xsl:choose>
|
||||
|
@ -68,7 +69,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
Watch using Browser Video Plugin
|
||||
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
|
||||
</a>
|
||||
</div>
|
||||
</xsl:when>
|
||||
|
@ -96,14 +97,14 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
Watch using Cortado Java Applet
|
||||
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
|
||||
</a>
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
|
||||
<xsl:if test="//@embed!='true'">
|
||||
<xsl:if test="not(//@embed='true')">
|
||||
<div class="button-download">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
|
@ -155,29 +156,6 @@
|
|||
</a>
|
||||
</xsl:if>
|
||||
</div>
|
||||
|
||||
<table class="videometadata">
|
||||
<tr>
|
||||
<td class="leftcell">
|
||||
Viewcount
|
||||
</td>
|
||||
<td class="rightcell">
|
||||
<xsl:value-of select="//video/@viewcount" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftcell">
|
||||
Downloadcount
|
||||
</td>
|
||||
<td class="rightcell">
|
||||
<xsl:value-of select="//video/@downloadcount" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Permalink: <xsl:value-of select="//rdf:RDF/cc:Work/dc:identifier" />
|
||||
<br />
|
||||
<pre><iframe src="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, '/embed=true')" />" /></pre>
|
||||
<div class="videoccdata">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
|
@ -247,14 +225,6 @@
|
|||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:creator" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftcell">
|
||||
<xsl:value-of select="$locale_strings[@id='DC.Subject']" />:
|
||||
</td>
|
||||
<td class="rightcell">
|
||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:subject" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftcell">
|
||||
<xsl:value-of select="$locale_strings[@id='DC.Description']" />:
|
||||
|
@ -263,14 +233,6 @@
|
|||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:description" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftcell">
|
||||
<xsl:value-of select="$locale_strings[@id='DC.Publisher']" />:
|
||||
</td>
|
||||
<td class="rightcell">
|
||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:publisher" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="leftcell">
|
||||
<xsl:value-of select="$locale_strings[@id='DC.Date']" />:
|
||||
|
@ -297,18 +259,15 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="videometadata">
|
||||
<xsl:for-each select="//referers/referer">
|
||||
<tr>
|
||||
<td class="leftcell">
|
||||
<xsl:value-of select="@count" />
|
||||
</td>
|
||||
<td class="rightcell">
|
||||
<xsl:value-of select="@referer" />
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
<div class="videostuff">
|
||||
<span class="protip-embed">
|
||||
To embed the video on another web page, use the following HTML code:
|
||||
<br />
|
||||
<span class="code">
|
||||
<iframe src="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, '/embed=true')" />" />
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<xsl:call-template name="comments"/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue