From e41dd1e24e345c974fe4a070088f0d09d1b6ddac Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 29 Mar 2006 03:18:21 +0000 Subject: html validation fixes: - escape & in urls (also clean up cgi url generation) - since markdown wraps inlined pages in

, close and re-open the paragraph tags when generating the embedded html - added XHTML 1.0 doctypes to templates - fixed
and
in templates - add an alt attribute to inline images, based on the WikiLink to the image. Allows things like [[my_image|img.png]] to customise alt text. --- templates/blogpost.tmpl | 4 ++-- templates/editpage.tmpl | 12 +++++++----- templates/misc.tmpl | 2 ++ templates/page.tmpl | 8 +++++--- templates/recentchanges.tmpl | 8 +++++--- 5 files changed, 21 insertions(+), 13 deletions(-) (limited to 'templates') diff --git a/templates/blogpost.tmpl b/templates/blogpost.tmpl index 5ded359a1..8e4bb6a7d 100644 --- a/templates/blogpost.tmpl +++ b/templates/blogpost.tmpl @@ -1,4 +1,4 @@ -
+
@@ -6,4 +6,4 @@ Add a new post titled:
-
+
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl index c1e7113b4..f77f45036 100644 --- a/templates/editpage.tmpl +++ b/templates/editpage.tmpl @@ -1,3 +1,5 @@ + <TMPL_VAR FORM-TITLE> @@ -16,18 +18,18 @@ confict and commit again to save your changes. -Page location:
+Page location:
-
+
-Optional comment about this change:
-
+Optional comment about this change:
+
-
+

Page preview:

diff --git a/templates/misc.tmpl b/templates/misc.tmpl index a8ee1684b..3e78c3162 100644 --- a/templates/misc.tmpl +++ b/templates/misc.tmpl @@ -1,3 +1,5 @@ + <TMPL_VAR TITLE> diff --git a/templates/page.tmpl b/templates/page.tmpl index 468361a9d..9cef35dc6 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -1,3 +1,5 @@ + <TMPL_VAR TITLE> @@ -25,11 +27,11 @@ Preferences 
-
+
-
+
-
+

Links: diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl index b42975e95..4ab53b892 100644 --- a/templates/recentchanges.tmpl +++ b/templates/recentchanges.tmpl @@ -1,3 +1,5 @@ + <TMPL_VAR TITLE> @@ -6,7 +8,7 @@ / -


+
    @@ -17,13 +19,13 @@ (">diff) -
    +
    changed by : -
    +
    -- cgit v1.2.3