some videos now on front page, fixed results template to allow several
<results /> on one page git-svn-id: http://yolanda.mister-muffin.de/svn@317 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
f15eaf0887
commit
84a9112e82
3 changed files with 34 additions and 29 deletions
|
@ -9,6 +9,8 @@
|
|||
|
||||
<xsl:template name="results">
|
||||
|
||||
<xsl:for-each select="//page/results">
|
||||
|
||||
<h1>
|
||||
<xsl:value-of select="$locale_strings[@id='results_heading_1']" /> 
|
||||
<xsl:value-of select="//results/@pagesize * (//results/@currentpage - 1) + 1" /> 
|
||||
|
@ -32,12 +34,14 @@
|
|||
<xsl:call-template name="pagination-arrows"/>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="results-listing">
|
||||
<div class="results">
|
||||
<xsl:for-each select="//results/result">
|
||||
<xsl:for-each select="result">
|
||||
<div class="result">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
|
|
|
@ -524,6 +524,7 @@
|
|||
<xsl:if test="$start <= $end">
|
||||
|
||||
<xsl:call-template name="for-loop">
|
||||
|
||||
<xsl:with-param name="start">
|
||||
<xsl:value-of select="$start + 1"/>
|
||||
</xsl:with-param>
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
|
||||
<xsl:call-template name="header"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="//frontpage">
|
||||
<xsl:call-template name="searchbar" />
|
||||
|
||||
<xsl:if test="string-length(//@username)=0">
|
||||
<xsl:call-template name="loginbox" />
|
||||
</xsl:if>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="//frontpage">
|
||||
|
||||
<xsl:call-template name="tagcloud" />
|
||||
|
||||
|
@ -35,10 +35,11 @@
|
|||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="splashbox" />
|
||||
|
||||
<xsl:call-template name="results"/>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="//page/video">
|
||||
<xsl:call-template name="searchbar" />
|
||||
<!--
|
||||
<xsl:call-template name="tagbar" />
|
||||
-->
|
||||
|
@ -51,7 +52,6 @@
|
|||
</xsl:when>
|
||||
|
||||
<xsl:when test="//page//results">
|
||||
<xsl:call-template name="searchbar" />
|
||||
<xsl:call-template name="results"/>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
|
Loading…
Reference in a new issue