[gnomeweb-wp: 1/5] use xhtml 1.0 transitional as doctype for the template



commit 28e9d0fb361546914e9ee7f389cc62611b88a664
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Thu Feb 10 23:50:40 2011 -0200

    use xhtml 1.0 transitional as doctype for the template

 wp-content/plugins/wppo/wppo.php         |    1 +
 wp-content/themes/gnome-grass/header.php |    3 ++-
 wp-content/themes/gnome-grass/xhtml.xsl  |    6 ++++++
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/wp-content/plugins/wppo/wppo.php b/wp-content/plugins/wppo/wppo.php
index 6376063..cd40255 100644
--- a/wp-content/plugins/wppo/wppo.php
+++ b/wp-content/plugins/wppo/wppo.php
@@ -40,6 +40,7 @@ bindtextdomain ('gnomesite', PO_DIR);
 bind_textdomain_codeset ('gnomesite', 'UTF-8');
 textdomain ('gnomesite');
 
+
 /* Creates wppo auxiliary table when plugin is installed to keep all the
  * translated xml in an easy accessible format.
  */
diff --git a/wp-content/themes/gnome-grass/header.php b/wp-content/themes/gnome-grass/header.php
index 781fae8..a76ad56 100644
--- a/wp-content/themes/gnome-grass/header.php
+++ b/wp-content/themes/gnome-grass/header.php
@@ -1,4 +1,5 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
+<?php echo '<?xml version="1.0" encoding="utf-8"?>'."\n";?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 
 <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
 
 <!-- Good morning, GNOME -->
diff --git a/wp-content/themes/gnome-grass/xhtml.xsl b/wp-content/themes/gnome-grass/xhtml.xsl
new file mode 100644
index 0000000..e8e6e12
--- /dev/null
+++ b/wp-content/themes/gnome-grass/xhtml.xsl
@@ -0,0 +1,6 @@
+<stylesheet version="1.0"
+     xmlns="http://www.w3.org/1999/XSL/Transform";>
+    <template match="/">
+        <copy-of select="."/>
+    </template>
+</stylesheet>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]