[z3-checkins] r55574 - in z3/deliverance/sandboxes/paul/dvplone/var: . themesets themesets/nuplone themesets/plone

paul at codespeak.net paul at codespeak.net
Wed Jun 4 20:41:15 CEST 2008


Author: paul
Date: Wed Jun  4 20:41:11 2008
New Revision: 55574

Added:
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/contentcustom.xsl
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themecustom.xsl
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themeset.xml
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themesource-plain.html
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themesource-tables.html
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/contentcustom.xsl
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themecustom.xsl
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themeset.xml
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themesource-plain.html
   z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themesource-tables.html
Removed:
   z3/deliverance/sandboxes/paul/dvplone/var/theme1.html
   z3/deliverance/sandboxes/paul/dvplone/var/theme2.html
Log:
Use a multi-directory "cached" structure

Deleted: /z3/deliverance/sandboxes/paul/dvplone/var/theme1.html
==============================================================================
--- /z3/deliverance/sandboxes/paul/dvplone/var/theme1.html	Wed Jun  4 20:41:11 2008
+++ (empty file)
@@ -1,11 +0,0 @@
-<html>
-    <head>
-        <title>Theme Page Title</title>
-    </head>
-    <body>
-        <h1 id="pageheading">Theme Page Heading</h1>
-        <div id="pagecontent">
-            <p>Some sample theme content.</p>
-        </div>
-    </body>
-</html>

Deleted: /z3/deliverance/sandboxes/paul/dvplone/var/theme2.html
==============================================================================
--- /z3/deliverance/sandboxes/paul/dvplone/var/theme2.html	Wed Jun  4 20:41:11 2008
+++ (empty file)
@@ -1,20 +0,0 @@
-<html>
-    <head>
-        <title>Second Theme Page Title</title>
-    </head>
-    <body>
-        <table border="0" height="300" cellpadding="20">
-            <tr>
-                <td width="200" bgcolor="gray" valign="top">
-                    <h2 align="center">Navigation</h2>
-                    <ul id="navmenu"/>
-                </td>
-                <td valign="top">
-                    <ul id="breadcrumbs"/>
-                    <h1 id="pageheading">Theme Page Heading</h1>
-                    <div id="pagecontent">Theme content to replace.</div>
-                </td>
-            </tr>
-        </table>
-    </body>
-</html>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/contentcustom.xsl
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/contentcustom.xsl	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template match="/">
+    <div>I overroad everything!</div>
+  </xsl:template>
+  <xsl:template match="ul[@id='breadcrumbs']">
+    <div id="breadcrumbs">
+      <strong>You are here: </strong> 
+      <xsl:for-each select="li/a">
+        <a href="{@href}"><xsl:value-of select="."/></a>
+        <xsl:if test="position() != last()"> | </xsl:if>
+      </xsl:for-each>
+    </div>
+  </xsl:template>
+</xsl:stylesheet>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themecustom.xsl
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themecustom.xsl	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template match="node()|@*">
+    <xsl:copy>
+      <xsl:apply-templates select="node()|@*"/>
+    </xsl:copy>
+  </xsl:template>
+</xsl:stylesheet>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themeset.xml
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themeset.xml	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?oxygen RNGSchema="themeset.rng" type="xml"?>
+<themeset xmlns="http://openplans.org/deliverance">
+  <customizers theme="themecustom.xsl" content="contentcustom.xsl"/>
+  <theme href="themesource-tables.html">
+    <!-- A pretty theme with a sidebar -->
+    <pagetype>
+      <match>
+        <content>/html</content>
+      </match>
+      <rules>
+        <replace theme="//td/h1[@id='pageheading']" content="/html/head/title"/>
+        <replace theme="//div[@id='pagecontent']" content="/html/body/div[@id='content']"/>
+        <replace theme="//ul[@id='navmenu']" content="/html/body/ul[@id='related']"/>
+        <replace theme="//ul[@id='breadcrumbs']" content="/html/body/ul[@id='breadcrumbs']"/>
+      </rules>
+    </pagetype>
+    <match>
+      <!-- These are OR'd together -->
+      <content>/html/head/meta[@name='dv.section']</content>
+      <req key="domain_url">look-at-me.com</req>
+    </match>
+    <rules>
+      <replace theme="//td/h1[@id='pageheading']" content="/html/head/title"/>
+    </rules>
+  </theme>
+  <theme href="themesource-plain.html">
+    <rules>
+      <replace theme="//div[@id='pagecontent']" content="/html/body/div[@id='content']"/>
+    </rules>
+  </theme>
+</themeset>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themesource-plain.html
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themesource-plain.html	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,16 @@
+<html>
+    <head>
+        <title>Theme Page Title</title>
+        <style type="text/css">
+            body {margin: 3em;font-family:sans-serif;font-size:large}
+            #banner {background-color: silver; text-align: center; height: 1.5em; padding:0.5em}
+        </style>
+    </head>
+    <body>
+        <h1 id="banner">I AM NUPLONE, HEAR ME ROAR</h1>
+        <h4 id="pageheading">Theme Page Heading</h4>
+        <div id="pagecontent">
+            <p>Some sample theme content.</p>
+        </div>
+    </body>
+</html>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themesource-tables.html
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/nuplone/themesource-tables.html	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,25 @@
+<html>
+    <head>
+        <title>Second Theme Page Title</title>
+        <style type="text/css">
+            body {margin: 3em;font-family:sans-serif;font-size:large}
+            #banner {background-color: silver; text-align: center; height: 1.5em; padding:0.5em}
+        </style>
+    </head>
+    <body>
+        <h1 id="banner">I AM NUPLONE, HEAR ME ROAR</h1>
+        <table border="0" height="300" cellpadding="20">
+            <tr>
+                <td width="200" bgcolor="gray" valign="top">
+                    <h2 align="center">Navigation</h2>
+                    <ul id="navmenu"/>
+                </td>
+                <td valign="top">
+                    <ul id="breadcrumbs"/>
+                    <h1 id="pageheading">Theme Page Heading</h1>
+                    <div id="pagecontent">Theme content to replace.</div>
+                </td>
+            </tr>
+        </table>
+    </body>
+</html>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/contentcustom.xsl
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/contentcustom.xsl	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template match="/">
+    <div>I overroad everything!</div>
+  </xsl:template>
+  <xsl:template match="ul[@id='breadcrumbs']">
+    <div id="breadcrumbs">
+      <strong>You are here: </strong> 
+      <xsl:for-each select="li/a">
+        <a href="{@href}"><xsl:value-of select="."/></a>
+        <xsl:if test="position() != last()"> | </xsl:if>
+      </xsl:for-each>
+    </div>
+  </xsl:template>
+</xsl:stylesheet>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themecustom.xsl
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themecustom.xsl	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:template match="node()|@*">
+    <xsl:copy>
+      <xsl:apply-templates select="node()|@*"/>
+    </xsl:copy>
+  </xsl:template>
+</xsl:stylesheet>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themeset.xml
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themeset.xml	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?oxygen RNGSchema="themeset.rng" type="xml"?>
+<themeset xmlns="http://openplans.org/deliverance">
+  <customizers theme="themecustom.xsl" content="contentcustom.xsl"/>
+  <theme href="themesource-tables.html">
+    <!-- A pretty theme with a sidebar -->
+    <pagetype>
+      <match>
+        <content>/html</content>
+      </match>
+      <rules>
+        <replace theme="//td/h1[@id='pageheading']" content="/html/head/title"/>
+        <replace theme="//div[@id='pagecontent']" content="/html/body/div[@id='content']"/>
+        <replace theme="//ul[@id='navmenu']" content="/html/body/ul[@id='related']"/>
+        <replace theme="//ul[@id='breadcrumbs']" content="/html/body/ul[@id='breadcrumbs']"/>
+      </rules>
+    </pagetype>
+    <match>
+      <!-- These are OR'd together -->
+      <content>/html/head/meta[@name='dv.section']</content>
+      <req key="domain_url">look-at-me.com</req>
+    </match>
+    <rules>
+      <replace theme="//td/h1[@id='pageheading']" content="/html/head/title"/>
+    </rules>
+  </theme>
+  <theme href="themesource-plain.html">
+    <rules>
+      <replace theme="//div[@id='pagecontent']" content="/html/body/div[@id='content']"/>
+    </rules>
+  </theme>
+</themeset>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themesource-plain.html
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themesource-plain.html	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,11 @@
+<html>
+    <head>
+        <title>Theme Page Title</title>
+    </head>
+    <body>
+        <h1 id="pageheading">Theme Page Heading</h1>
+        <div id="pagecontent">
+            <p>Some sample theme content.</p>
+        </div>
+    </body>
+</html>

Added: z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themesource-tables.html
==============================================================================
--- (empty file)
+++ z3/deliverance/sandboxes/paul/dvplone/var/themesets/plone/themesource-tables.html	Wed Jun  4 20:41:11 2008
@@ -0,0 +1,20 @@
+<html>
+    <head>
+        <title>Second Theme Page Title</title>
+    </head>
+    <body>
+        <table border="0" height="300" cellpadding="20">
+            <tr>
+                <td width="200" bgcolor="gray" valign="top">
+                    <h2 align="center">Navigation</h2>
+                    <ul id="navmenu"/>
+                </td>
+                <td valign="top">
+                    <ul id="breadcrumbs"/>
+                    <h1 id="pageheading">Theme Page Heading</h1>
+                    <div id="pagecontent">Theme content to replace.</div>
+                </td>
+            </tr>
+        </table>
+    </body>
+</html>


More information about the z3-checkins mailing list