summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-09-10 23:41:04 +0200
committerDavid A. Madore <david+git@madore.org>2011-09-10 23:41:04 +0200
commit9a606212cbfd62bcaf24ff1820668f0439ef5acf (patch)
treef7c9097ad83df64e91925e69c0ba64f6c7ed0fc6
parent3f8930ef88bc648091a5be2bb3d2de606e06304c (diff)
downloaddamlengine-9a606212cbfd62bcaf24ff1820668f0439ef5acf.tar.gz
damlengine-9a606212cbfd62bcaf24ff1820668f0439ef5acf.tar.bz2
damlengine-9a606212cbfd62bcaf24ff1820668f0439ef5acf.zip
More rel="author" links, to social networks.
-rw-r--r--org/madore/damlengine/TodoFooter.java22
1 files changed, 21 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoFooter.java b/org/madore/damlengine/TodoFooter.java
index c9dcf19..215d5b7 100644
--- a/org/madore/damlengine/TodoFooter.java
+++ b/org/madore/damlengine/TodoFooter.java
@@ -36,12 +36,32 @@ public final class TodoFooter extends TodoElement {
addr.appendChild(ctx.doc.createTextNode(" ("));
Element email = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:email-despammed");
addr.appendChild(email);
- addr.appendChild(ctx.doc.createTextNode(")"));
email.appendChild(ctx.doc.createTextNode("david+www"));
email.appendChild(ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:email-at"));
email.appendChild(ctx.doc.createTextNode("madore"));
email.appendChild(ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:email-dot"));
email.appendChild(ctx.doc.createTextNode("org"));
+ addr.appendChild(ctx.doc.createTextNode("|"));
+ a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
+ a.setAttributeNS(null, "href", "https://plus.google.com/113543720848960431456");
+ a.setAttributeNS(null, "rel", "author");
+ addr.appendChild(a);
+ a.appendChild(ctx.doc.createTextNode("Google+"));
+ addr.appendChild(ctx.doc.createTextNode("|"));
+ a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
+ a.setAttributeNS(null, "href", "http://www.facebook.com/grotsen");
+ a.setAttributeNS(null, "rel", "author");
+ addr.appendChild(a);
+ a.appendChild(ctx.doc.createTextNode("Facebook"));
+ addr.appendChild(ctx.doc.createTextNode("|"));
+ a = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
+ a.setAttributeNS(null, "href",
+ ((ctx.gc.uriToTop==null)?"http://www.madore.org/~david/"
+ :ctx.gc.uriToTop) + "ego.html");
+ a.setAttributeNS(null, "rel", "author");
+ addr.appendChild(a);
+ a.appendChild(ctx.doc.createTextNode("\u2042"));
+ addr.appendChild(ctx.doc.createTextNode(")"));
Node ws = node.getNextSibling();
if ( ws != null && ( ws.getNodeType() == Node.TEXT_NODE
|| ws.getNodeType() == Node.CDATA_SECTION_NODE )