forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 47639 - in forrest/trunk/src/core/context/skins/pelt: css xslt/html
Date Fri, 01 Oct 2004 07:44:50 GMT
Author: crossley
Date: Fri Oct  1 00:44:49 2004
New Revision: 47639

Modified:
   forrest/trunk/src/core/context/skins/pelt/css/screen.css
   forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl
Log:
Icons were out of place when activating alternative formats (XML, POD, print).
Pelt was providing a transformation for the PDF icon, but not the others.
Hence it was getting the default table-based transformation from common/
Also added corresponding classes to screen.css
http://marc.theaimsgroup.com/?l=forrest-dev&m=109592378423781
Submitted by: Arturo Vazquez arturo.vazquez<AT>gmail.com


Modified: forrest/trunk/src/core/context/skins/pelt/css/screen.css
==============================================================================
--- forrest/trunk/src/core/context/skins/pelt/css/screen.css	(original)
+++ forrest/trunk/src/core/context/skins/pelt/css/screen.css	Fri Oct  1 00:44:49 2004
@@ -444,16 +444,69 @@
     height: 16px;
     width: 16px;
 }
+.xmllink {
+    position: relative; /* IE bugfix cont'd */
+    float: right;
+    margin: 0px 5px;
+    padding: 0;
+}
+.xmllink br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
+.xmllink a {
+    display: block;
+    font-size: 70%;
+    text-align: center;
+    margin: 0;
+    padding: 0;
+}
+
+.xmllink img {
+    display: block;
+    height: 16px;
+    width: 16px;
+}
+.podlink {
+    position: relative; /* IE bugfix cont'd */
+    float: right;
+    margin: 0px 5px;
+    padding: 0;
+}
+.podlink br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
+.podlink a {
+    display: block;
+    font-size: 70%;
+    text-align: center;
+    margin: 0;
+    padding: 0;
+}
+
+.podlink img {
+    display: block;
+    height: 16px;
+    width: 16px;
+}
+
 .printlink {
     float: right;
 }
+.printlink br {
+    margin-top: -10px;
+    padding-left: 1px;
+}
 .printlink a {
     display: block;
+    font-size: 70%;
     text-align: center;
-    margin: 0 5px;
+    margin: 0;
+    padding: 0;
 }
 .printlink img {
     display: block;
-    height: 32px;
-    width: 32px;
+    height: 16px;
+    width: 16px;
 }

Modified: forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl	(original)
+++ forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl	Fri Oct  1 00:44:49
2004
@@ -500,12 +500,53 @@
     +-->
   <xsl:template match="div[@id='skinconf-pdflink']">
     <xsl:if test="not($config/disable-pdf-link) or $disable-pdf-link = 'false'"> 
-      <div class="pdflink"><a href="{$filename-noext}.pdf" class="dida">
-        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF"/><br/>
+      <div class="pdflink" title="PDF"><a href="{$filename-noext}.pdf" class="dida">
+        <img class="skin" src="{$skin-img-dir}/pdfdoc.gif" alt="PDF" /><br/>
         PDF</a>
       </div>
     </xsl:if>
   </xsl:template>
+  <xsl:template match="div[@id='skinconf-xmllink']">
+    <xsl:if test="not($config/disable-xml-link) or $disable-xml-link = 'false'"> 
+      <div class="xmllink" title="XML"><a href="{$filename-noext}.xml" class="dida">
+        <img class="skin" src="{$skin-img-dir}/xmldoc.gif" alt="XML" /><br/>
+        XML</a>
+      </div>
+    </xsl:if>
+  </xsl:template>
+  <xsl:template match="div[@id='skinconf-podlink']">
+    <xsl:if test="not($config/disable-pod-link) or $disable-pod-link = 'false'"> 
+      <div class="podlink" title="POD"><a href="{$filename-noext}.pod" class="dida">
+        <img class="skin" src="{$skin-img-dir}/poddoc.png" alt="POD" /><br/>
+        POD</a>
+      </div>
+    </xsl:if>
+  </xsl:template>
+  <xsl:template match="div[@id='skinconf-printlink']">
+    <xsl:if test="not($config/disable-print-link) or $disable-print-link = 'false'">

+        <script type="text/javascript" language="Javascript">
+function printit() {
+  if (window.print) {
+    window.print() ;  
+  }
+}
+        </script>
+
+        <script type="text/javascript" language="Javascript">
+var NS = (navigator.appName == "Netscape");
+var VERSION = parseInt(navigator.appVersion);
+if (VERSION > 3) {
+  document.write('<div class="printlink" title="Print this Page">');
+  document.write('  <a href="javascript:printit()" class="dida">');
+  document.write('    <img class="skin" src="{$skin-img-dir}/printer.gif" alt="Print this
Page" />');
+  document.write('    <br />');
+  document.write('  print</a>');
+  document.write('</div>');
+}
+        </script>
+    </xsl:if>
+  </xsl:template>
+  
   <xsl:template match="div[@id='disable-font-script']">
     <xsl:if test="$disable-font-script = 'false'">
 	  <div class="trail">

Mime
View raw message