From ed1a53698a1d9f020c35d0cada0b9f4e990509a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 11 Oct 2007 09:51:29 +0000 Subject: #180897 by sun and dvessel: fix various XHTML validity issues in Drupal by closing unclosed tags, avoiding empty table containers, and so on --- themes/garland/node.tpl.php | 4 ++-- themes/garland/page.tpl.php | 16 +++++++--------- themes/garland/style-rtl.css | 26 -------------------------- themes/garland/style.css | 8 -------- themes/garland/template.php | 16 +++------------- 5 files changed, 12 insertions(+), 58 deletions(-) (limited to 'themes') diff --git a/themes/garland/node.tpl.php b/themes/garland/node.tpl.php index 5dbdd1463..b227d86c7 100644 --- a/themes/garland/node.tpl.php +++ b/themes/garland/node.tpl.php @@ -13,11 +13,11 @@ -
+
-
+
diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php index d28f77efe..f7e27fb52 100644 --- a/themes/garland/page.tpl.php +++ b/themes/garland/page.tpl.php @@ -62,19 +62,17 @@
- + '. $mission .'
'; endif; ?> - '; endif; ?> '. $title .''; endif; ?> - '; endif; ?> - - - - + '. $tabs .'
'; endif; ?> + '. $tabs2 .''; endif; ?> + - -
+
+ +
diff --git a/themes/garland/style-rtl.css b/themes/garland/style-rtl.css index 4e3ded367..c59302519 100644 --- a/themes/garland/style-rtl.css +++ b/themes/garland/style-rtl.css @@ -4,32 +4,6 @@ html { direction: rtl; } -/** - * Markup free clearing - * Details: http://www.positioniseverything.net/easyclearing.html - */ -.clear-block:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -.clear-block { - display: inline-block; -} - -/* Hides from IE-mac \*/ -* html .clear-block { - height: 1%; -} - -.clear-block { - display: block; -} -/* End hide from IE-mac */ - /** * Generic elements */ diff --git a/themes/garland/style.css b/themes/garland/style.css index df375fdb5..308d9342e 100644 --- a/themes/garland/style.css +++ b/themes/garland/style.css @@ -971,14 +971,6 @@ tr.selected td a:link, tr.selected td a:visited, tr.selected td a:active { /** * CSS support */ -div.clear { - display: block; - clear: both; - height: 1px; - line-height: 0px; - font-size: 0px; - margin-bottom: -1px; -} /******************************************************************* * Color Module: Don't touch * diff --git a/themes/garland/template.php b/themes/garland/template.php index f40bebc11..0d06bb44e 100644 --- a/themes/garland/template.php +++ b/themes/garland/template.php @@ -53,11 +53,7 @@ function phptemplate_comment_wrapper($content, $node) { * Override or insert PHPTemplate variables into the templates. */ function phptemplate_preprocess_page(&$vars) { - if ($secondary = menu_secondary_local_tasks()) { - $output = ''; - $output .= "
    \n". $secondary ."
\n"; - $vars['tabs2'] = $output; - } + $vars['tabs2'] = menu_secondary_local_tasks(); // Hook into color.module if (module_exists('color')) { @@ -67,18 +63,12 @@ function phptemplate_preprocess_page(&$vars) { /** * Returns the rendered local tasks. The default implementation renders - * them as tabs. + * them as tabs. Overridden to split the secondary tasks. * * @ingroup themeable */ function phptemplate_menu_local_tasks() { - $output = ''; - - if ($primary = menu_primary_local_tasks()) { - $output .= "
    \n". $primary ."
\n"; - } - - return $output; + return menu_primary_local_tasks(); } function phptemplate_comment_submitted($comment) { -- cgit v1.2.3