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,35 +9,39 @@
|
||||||
|
|
||||||
<xsl:template name="results">
|
<xsl:template name="results">
|
||||||
|
|
||||||
<h1>
|
<xsl:for-each select="//page/results">
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_1']" /> 
|
|
||||||
<xsl:value-of select="//results/@pagesize * (//results/@currentpage - 1) + 1" /> 
|
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_2']" /> 
|
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="(//results/@pagesize * //results/@currentpage) < //results/@resultcount">
|
|
||||||
<xsl:value-of select="//results/@pagesize * //results/@currentpage" />
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select="//results/@resultcount" />
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose> 
|
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_3']" /> 
|
|
||||||
<xsl:value-of select="//results/@resultcount" /> 
|
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_4']" />
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<xsl:call-template name="results-listing"/>
|
<h1>
|
||||||
|
<xsl:value-of select="$locale_strings[@id='results_heading_1']" /> 
|
||||||
|
<xsl:value-of select="//results/@pagesize * (//results/@currentpage - 1) + 1" /> 
|
||||||
|
<xsl:value-of select="$locale_strings[@id='results_heading_2']" /> 
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="(//results/@pagesize * //results/@currentpage) < //results/@resultcount">
|
||||||
|
<xsl:value-of select="//results/@pagesize * //results/@currentpage" />
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="//results/@resultcount" />
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose> 
|
||||||
|
<xsl:value-of select="$locale_strings[@id='results_heading_3']" /> 
|
||||||
|
<xsl:value-of select="//results/@resultcount" /> 
|
||||||
|
<xsl:value-of select="$locale_strings[@id='results_heading_4']" />
|
||||||
|
</h1>
|
||||||
|
|
||||||
<xsl:if test="//results/@lastpage > 1">
|
<xsl:call-template name="results-listing"/>
|
||||||
<xsl:call-template name="pagination-arrows"/>
|
|
||||||
</xsl:if>
|
<xsl:if test="//results/@lastpage > 1">
|
||||||
|
<xsl:call-template name="pagination-arrows"/>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
|
</xsl:for-each>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template name="results-listing">
|
<xsl:template name="results-listing">
|
||||||
<div class="results">
|
<div class="results">
|
||||||
<xsl:for-each select="//results/result">
|
<xsl:for-each select="result">
|
||||||
<div class="result">
|
<div class="result">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
|
|
|
@ -524,6 +524,7 @@
|
||||||
<xsl:if test="$start <= $end">
|
<xsl:if test="$start <= $end">
|
||||||
|
|
||||||
<xsl:call-template name="for-loop">
|
<xsl:call-template name="for-loop">
|
||||||
|
|
||||||
<xsl:with-param name="start">
|
<xsl:with-param name="start">
|
||||||
<xsl:value-of select="$start + 1"/>
|
<xsl:value-of select="$start + 1"/>
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
|
|
|
@ -19,14 +19,14 @@
|
||||||
|
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
|
|
||||||
|
<xsl:call-template name="searchbar" />
|
||||||
|
|
||||||
|
<xsl:if test="string-length(//@username)=0">
|
||||||
|
<xsl:call-template name="loginbox" />
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//frontpage">
|
<xsl:when test="//frontpage">
|
||||||
<xsl:call-template name="searchbar" />
|
|
||||||
|
|
||||||
<xsl:if test="string-length(//@username)=0">
|
|
||||||
<xsl:call-template name="loginbox" />
|
|
||||||
</xsl:if>
|
|
||||||
|
|
||||||
|
|
||||||
<xsl:call-template name="tagcloud" />
|
<xsl:call-template name="tagcloud" />
|
||||||
|
|
||||||
|
@ -35,10 +35,11 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:call-template name="splashbox" />
|
<xsl:call-template name="splashbox" />
|
||||||
|
|
||||||
|
<xsl:call-template name="results"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
<xsl:when test="//page/video">
|
<xsl:when test="//page/video">
|
||||||
<xsl:call-template name="searchbar" />
|
|
||||||
<!--
|
<!--
|
||||||
<xsl:call-template name="tagbar" />
|
<xsl:call-template name="tagbar" />
|
||||||
-->
|
-->
|
||||||
|
@ -51,7 +52,6 @@
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
|
||||||
<xsl:when test="//page//results">
|
<xsl:when test="//page//results">
|
||||||
<xsl:call-template name="searchbar" />
|
|
||||||
<xsl:call-template name="results"/>
|
<xsl:call-template name="results"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
Loading…
Reference in a new issue