[MKDoc-commit] Added condition for external links opening in new windows

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Mon Aug 8 14:27:28 BST 2005


Log Message:
-----------
Added condition for external links opening in new windows

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/templates/component/image:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/component/image/Attic/en.html,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -Ltemplates/component/image/en.html -Ltemplates/component/image/en.html -u -r1.1.2.7 -r1.1.2.8
--- templates/component/image/en.html
+++ templates/component/image/en.html
@@ -7,13 +7,29 @@
 <span
   class="image"
   xmlns:petal="http://purl.org/petal/1.0/"
+  petal:define="externallinks config:EXTERNAL_LINKS_OPEN_IN_NEW_WINDOW"
   petal:condition="self/title"
 >
   <a 
     href="#"
+    target="_blank"
     petal:omit-tag="false:  self/link"
     petal:attributes="href  self/link/uri; 
                       title self/link/description"
+    petal:condition="true: externallinks"
+  ><img
+     src="#"
+     alt="a beautiful image"
+     petal:attributes="src   self/uri; 
+                       alt   self/title;
+                       title self/description" 
+  /></a>
+  <a 
+    href="#"
+    petal:omit-tag="false:  self/link"
+    petal:attributes="href  self/link/uri; 
+                      title self/link/description"
+    petal:condition="flase: externallinks"
   ><img
      src="#"
      alt="a beautiful image"


More information about the MKDoc-commit mailing list