Conditional headers in full design

main
Inga 🏳‍🌈 14 years ago
parent a0cbfb9ae1
commit 3a3062c92c
  1. 4
      templates/Full/Post.xslt
  2. 4
      templates/Full/Thread.xslt
  3. 2
      templates/Full/elems/Main.xslt

@ -7,7 +7,9 @@
</xsl:template> </xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/> <xsl:call-template name="threadInfo"/>
</xsl:if>
<br /> <br />
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -21,7 +23,9 @@
</tr> </tr>
</table> </table>
<br /> <br />
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/> <xsl:call-template name="threadInfo"/>
</xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="threadInfo"> <xsl:template name="threadInfo">

@ -7,7 +7,9 @@
</xsl:template> </xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/> <xsl:call-template name="threadInfo"/>
</xsl:if>
<br /> <br />
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -49,7 +51,9 @@
</tr> </tr>
</table> </table>
<br /> <br />
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/> <xsl:call-template name="threadInfo"/>
</xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="threadInfo"> <xsl:template name="threadInfo">

@ -18,7 +18,9 @@
</title> </title>
</head> </head>
<body> <body>
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="header"/> <xsl:call-template name="header"/>
</xsl:if>
<xsl:call-template name="specific"/> <xsl:call-template name="specific"/>
<div style="display:none"> <div style="display:none">
<form action="" method="POST" id="systemForm"> <form action="" method="POST" id="systemForm">

Loading…
Cancel
Save