From: <var...@us...> - 2013-06-18 15:39:35
|
Revision: 8817 http://sourceforge.net/p/phpwiki/code/8817 Author: vargenau Date: 2013-06-18 15:39:31 +0000 (Tue, 18 Jun 2013) Log Message: ----------- Use CSS Modified Paths: -------------- trunk/configurator.php trunk/lib/AccessLog.php trunk/lib/BlockParser.php trunk/lib/HtmlParser.php trunk/lib/PageList.php trunk/lib/PagePerm.php trunk/lib/plugin/AnalyseAccessLogSql.php trunk/lib/plugin/Calendar.php trunk/lib/plugin/DebugAuthInfo.php trunk/lib/plugin/DebugBackendInfo.php trunk/lib/plugin/EditMetaData.php trunk/lib/plugin/LdapSearch.php trunk/lib/plugin/ModeratedPage.php trunk/lib/plugin/PhotoAlbum.php trunk/lib/plugin/PreferenceApp.php trunk/lib/plugin/PrevNext.php trunk/lib/plugin/RecentReferrers.php trunk/lib/plugin/SemanticSearchAdvanced.php trunk/lib/plugin/UpLoad.php trunk/lib/plugin/WantedPagesOld.php trunk/themes/Crao/crao.css trunk/themes/Crao/templates/navbar.tmpl trunk/themes/Crao/templates/top.tmpl trunk/themes/Hawaiian/Hawaiian.css trunk/themes/MacOSX/MacOSX.css trunk/themes/MacOSX/images/index.php trunk/themes/MonoBook/main.css trunk/themes/Portland/portland.css trunk/themes/Portland/templates/body.tmpl trunk/themes/Portland/templates/debug.tmpl trunk/themes/Portland/templates/editpage.tmpl trunk/themes/Portland/templates/navbar.tmpl trunk/themes/Sidebar/sidebar.css trunk/themes/Sidebar/templates/debug.tmpl trunk/themes/SpaceWiki/SpaceWiki.css trunk/themes/Wordpress/Wordpress.css trunk/themes/Wordpress/templates/editpage.tmpl trunk/themes/blog/Kubrick.css trunk/themes/blog/templates/actionbar.tmpl trunk/themes/default/phpwiki.css trunk/themes/default/templates/actionbar.tmpl trunk/themes/default/templates/addcomment.tmpl trunk/themes/default/templates/debug.tmpl trunk/themes/default/templates/editpage.tmpl trunk/themes/default/templates/forumadd.tmpl trunk/themes/default/templates/login.tmpl trunk/themes/default/templates/online.tmpl trunk/themes/default/templates/pagelink.tmpl trunk/themes/fusionforge/templates/editpage.tmpl trunk/themes/shamino_com/shamino_com.css trunk/themes/smaller/templates/actionbar.tmpl trunk/themes/wikilens/templates/body.tmpl Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/configurator.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -1866,7 +1866,7 @@ global $tdwidth; $i = "<h3>" . $title . "</h3>\n " . nl2p($this->_get_description()) . "\n"; // $i .= "<em>Not editable.</em><br />\n<pre>" . $this->default_value."</pre>"; - return '<tr><td width="100%" class="unchangeable-variable-top" colspan="2">' . "\n" . $i . "</td></tr>\n" + return '<tr><td style="width:100%" class="unchangeable-variable-top" colspan="2">' . "\n" . $i . "</td></tr>\n" . '<tr style="border-top: none;"><td class="unchangeable-variable-left" width="' . $tdwidth . '"> </td>'; } } @@ -2495,7 +2495,8 @@ { $id = preg_replace("/\W/", "", $this->config_item_name); $group_name = preg_replace("/\W/", "", $title); - $i = "<tr class=\"header\" id=\"$id\">\n<td class=\"part\" width=\"100%\" colspan=\"2\" bgcolor=\"#eeeeee\">\n"; + $i = '<tr class="header" id="'.$id.'">'."\n"; + $i .= '<td class="part" style="width:100%;background-color:#eee" colspan="2">'."\n"; $i .= "<h2>" . $title . "</h2>\n " . nl2p($this->_get_description()) . "\n"; $i .= "<p><a href=\"javascript:toggle_group('$id')\" id=\"{$id}_text\">Hide options.</a></p>"; return $i . "</td>\n"; Modified: trunk/lib/AccessLog.php =================================================================== --- trunk/lib/AccessLog.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/AccessLog.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -656,10 +656,8 @@ // otherwise the headers will not be ready $tbody = $this->_getQueryResults($query, $dbi); - return HTML::table(array('border' => 1, - 'cellspacing' => 1, - 'cellpadding' => 1), - HTML::caption(HTML::h1(HTML::br(), $this->_getCaption($args))), + return HTML::table(array('border' => 1), + HTML::caption($this->_getCaption($args)), HTML::thead($this->_theadrow), $tbody); } Modified: trunk/lib/BlockParser.php =================================================================== --- trunk/lib/BlockParser.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/BlockParser.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -851,9 +851,7 @@ $defs[$key]->setWidth($ncols); return HTML::table(array('class' => 'wiki-dl-table', - 'border' => 1, - 'cellspacing' => 0, - 'cellpadding' => 6), + 'border' => 1), $defs); } } Modified: trunk/lib/HtmlParser.php =================================================================== --- trunk/lib/HtmlParser.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/HtmlParser.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -379,7 +379,7 @@ if (!$alignment and preg_match("/float(right|left)/i", $css_class, $m)) ; $alignment = $m[1]; if ($alignment) { - $attrs[] = "align=$alignment"; + $attrs[] = "class=align-$alignment"; $this->log(" Image is contained within a DIV that specifies $alignment alignment"); $this->log(" Adding '$alignment' to [Image] markup attributes"); } else { @@ -389,7 +389,7 @@ $this->log(" Image is not contained within a DIV"); } if ($alignment) - $attrs[] = "align=$alignment"; + $attrs[] = "class=align-$alignment"; // // Check if we need to request a thumbnail of this // image; it's needed if the specified width attribute Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/PageList.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -1650,7 +1650,7 @@ $this->_options['limit']); if ($tokens) { $paging = Template("pagelink", $tokens); - $out->pushContent(HTML::table(array('width' => '100%'), $paging)); + $out->pushContent(HTML::table(array('class' => 'fullwidth'), $paging)); } } @@ -1669,7 +1669,7 @@ $length += 1; } $width = sprintf("%d", 100 / $this->_options['cols']) . '%'; - $cols = HTML::tr(array('valign' => 'top')); + $cols = HTML::tr(array('class' => 'top')); for ($i = $offset; $i < $offset + $count; $i += $length) { $this->_saveOptions(array('cols' => 0, 'paging' => 'none')); $this->_pages = array_slice($this->_pages, $i, $length); @@ -1761,7 +1761,7 @@ } $out->pushContent($list); if ($do_paging and $tokens) { - $out->pushContent(HTML::table(array('width' => '100%'), $paging)); + $out->pushContent(HTML::table(array('class' => 'fullwidth'), $paging)); } return $out; } Modified: trunk/lib/PagePerm.php =================================================================== --- trunk/lib/PagePerm.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/PagePerm.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -578,7 +578,7 @@ $td->pushContent(HTML::tr(HTML::td(array('align' => 'right'), $group), HTML::td($bool ? '[X]' : '[ ]'))); } - $table->pushContent(HTML::tr(array('valign' => 'top'), + $table->pushContent(HTML::tr(array('class' => 'top'), HTML::td($access), HTML::td($td))); } if ($type == 'default') @@ -639,7 +639,7 @@ $addbutton->setAttr('checked', 'checked'); $newperm->setAttr('checked', 'checked'); $table->pushContent( - HTML::tr(array('valign' => 'top'), + HTML::tr(array('class' => 'top'), HTML::td(HTML::strong($access . ":")), HTML::td($newgroup), HTML::td($nbsp, $newperm), @@ -686,7 +686,7 @@ } if (!empty($groups)) $table->pushContent( - HTML::tr(array('valign' => 'top'), + HTML::tr(array('class' => 'top'), HTML::td(array('align' => 'right'), _("add ")), HTML::td($newgroup), HTML::td(array('align' => 'center'), $nbsp, $newperm), Modified: trunk/lib/plugin/AnalyseAccessLogSql.php =================================================================== --- trunk/lib/plugin/AnalyseAccessLogSql.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/AnalyseAccessLogSql.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -291,10 +291,8 @@ // otherwise the headers will not be ready $tbody = $this->getQueryResults($query, $dbi); - return HTML::table(array('border' => 1, - 'cellspacing' => 1, - 'cellpadding' => 1), - HTML::caption(HTML::h1(HTML::br(), $this->getCaption($args))), + return HTML::table(array('border' => 1), + HTML::caption($this->getCaption($args)), HTML::thead($this->_theadrow), $tbody); } Modified: trunk/lib/plugin/Calendar.php =================================================================== --- trunk/lib/plugin/Calendar.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/Calendar.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -101,9 +101,7 @@ return HTML::tr(HTML::td(array('colspan' => $args['display_weeknum'] ? 8 : 7, 'align' => 'center'), - HTML::table(array('width' => '100%', - 'class' => 'cal-header'), - $row))); + HTML::table(array('class' => 'cal-header fullwidth'), $row))); } private function __daynames($start_wday) @@ -189,9 +187,7 @@ 1, // mday (1-31) $args['year']); - $cal = HTML::table(array('cellspacing' => 0, - 'cellpadding' => 2, - 'class' => 'cal'), + $cal = HTML::table(array('class' => 'cal'), HTML::thead( $this->__header($request->getArg('pagename'), $time), Modified: trunk/lib/plugin/DebugAuthInfo.php =================================================================== --- trunk/lib/plugin/DebugAuthInfo.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/DebugAuthInfo.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -57,9 +57,7 @@ } $html = HTML(HTML::h3(fmt("General Auth Settings"))); - $table = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0)); + $table = HTML::table(array('border' => 1)); $table->pushContent($this->show_hash("AUTH DEFINES", $this->buildConstHash( array("ENABLE_USER_NEW", "ALLOW_ANON_USER", @@ -95,9 +93,7 @@ if (!$user) { $html->pushContent(HTML::p(fmt("No userid"))); } else { - $table = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0)); + $table = HTML::table(array('border' => 1)); //$table->pushContent(HTML::tr(HTML::td(array('colspan' => 2)))); $userdata = obj2hash($user, array('_dbi', '_request', 'password', 'passwd')); if (isa($user, "_FilePassUser")) { @@ -149,9 +145,7 @@ if ($depth > 3) $val = $heading; elseif ($heading == "Object of wikidb_sql") $val = $heading; elseif (substr($heading, 0, 13) == "Object of db_") $val = $heading; elseif (!isset($seen[$heading])) { //if (empty($seen[$heading])) $seen[$heading] = 1; - $val = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0), + $val = HTML::table(array('border' => 1), $this->show_hash($heading, obj2hash($val), $depth + 1)); } else { $val = $heading; Modified: trunk/lib/plugin/DebugBackendInfo.php =================================================================== --- trunk/lib/plugin/DebugBackendInfo.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/DebugBackendInfo.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -52,9 +52,7 @@ $html = HTML(HTML::h3(fmt("Querying backend directly for “%s”", $page))); - $table = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0)); + $table = HTML::table(array('border' => 1)); $pagedata = $backend->get_pagedata($page); if (!$pagedata) { // FIXME: invalid HTML @@ -129,16 +127,12 @@ // how to indent this table? $val = unserialize($val); $this->_fixupData($val, $fullkey); - $data[$key] = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0), + $data[$key] = HTML::table(array('border' => 1), $this->_showhash(false, $val, $fullkey)); } elseif (is_array($val)) { // how to indent this table? $this->_fixupData($val, $fullkey); - $data[$key] = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0), + $data[$key] = HTML::table(array('border' => 1), $this->_showhash(false, $val, $fullkey)); } elseif (is_object($val)) { // how to indent this table? @@ -146,9 +140,7 @@ print_r($val); $val = HTML::pre(ob_get_contents()); ob_end_clean(); - $data[$key] = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0), + $data[$key] = HTML::table(array('border' => 1), $this->_showhash(false, $val, $fullkey)); } elseif ($key and $key == '%content') { if ($val === true) Modified: trunk/lib/plugin/EditMetaData.php =================================================================== --- trunk/lib/plugin/EditMetaData.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/EditMetaData.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -125,9 +125,7 @@ $html->pushContent(HTML::p(fmt("No metadata for %s", $page))); $table = HTML(); } else { - $table = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0)); + $table = HTML::table(array('border' => 1)); $this->_fixupData($pagemeta); $table->pushContent($this->_showhash("MetaData('$page')", $pagemeta)); } Modified: trunk/lib/plugin/LdapSearch.php =================================================================== --- trunk/lib/plugin/LdapSearch.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/LdapSearch.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -196,7 +196,7 @@ } $html->pushContent($row); } - return HTML::table(array('cellpadding' => 1, 'cellspacing' => 1, 'border' => 1), $html); + return HTML::table(array('border' => 1), $html); } } Modified: trunk/lib/plugin/ModeratedPage.php =================================================================== --- trunk/lib/plugin/ModeratedPage.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/ModeratedPage.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -374,9 +374,7 @@ $loader = new WikiPluginLoader(); $BackendInfo = $loader->getPlugin("DebugBackendInfo"); - $table = HTML::table(array('border' => 1, - 'cellpadding' => 2, - 'cellspacing' => 0)); + $table = HTML::table(array('border' => 1)); $content = $table; $diff = ''; if ($moderation['args']['action'] == 'edit') { Modified: trunk/lib/plugin/PhotoAlbum.php =================================================================== --- trunk/lib/plugin/PhotoAlbum.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/PhotoAlbum.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -303,9 +303,8 @@ } // cell operations - $cell = array('align' => "center", - 'valign' => "top", - 'class' => 'photoalbum cell', + $cell = array( + 'class' => 'photoalbum cell align-center top', 'bgcolor' => "$color"); if ($cellwidth != 'auto') { if ($cellwidth == 'equal') { @@ -366,8 +365,8 @@ if ($mode == 'tiles') { $row->pushContent( HTML::td($cell, - HTML::div(array('valign' => 'top'), $url_image), - HTML::div(array('valign' => 'bottom'), + HTML::div(array('class' => 'top'), $url_image), + HTML::div(array('class' => 'bottom'), HTML::div(array('class' => 'boldsmall'), ($url_text)), HTML::br(), @@ -380,12 +379,12 @@ } elseif ($mode == 'list') { $desc = ($showdesc != 'none') ? $value["desc"] : ''; $row->pushContent( - HTML::td(array("valign" => "top", + HTML::td(array("class" => "top", "nowrap" => 0, "bgcolor" => $color), HTML::div(array('class' => 'boldsmall'), ($url_text)))); $row->pushContent( - HTML::td(array("valign" => "top", + HTML::td(array("class" => "top", "nowrap" => 0, "bgcolor" => $color), HTML::div(array('class' => 'gensmall'), @@ -396,7 +395,7 @@ if ($desc != '') $row->pushContent( - HTML::td(array("valign" => "top", + HTML::td(array("class" => "top", "nowrap" => 0, "bgcolor" => $color), HTML::div(array('class' => 'gensmall'), $desc))); @@ -493,9 +492,7 @@ } //create main table - $table_attributes = array("border" => 0, - "cellpadding" => 5, - "cellspacing" => 2, + $table_attributes = array( "class" => "photoalbum", "width" => $tablewidth ? $tablewidth : "100%"); Modified: trunk/lib/plugin/PreferenceApp.php =================================================================== --- trunk/lib/plugin/PreferenceApp.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/PreferenceApp.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -177,7 +177,7 @@ } } - $table = HTML::table(array('cellpadding' => '5', 'cellspacing' => '1', 'border' => '0')); + $table = HTML::table(); $tr = HTML::tr(); $td = HTML::td(array('bgcolor' => '#FFFFFF')); $td->pushContent(" "); Modified: trunk/lib/plugin/PrevNext.php =================================================================== --- trunk/lib/plugin/PrevNext.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/PrevNext.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -77,10 +77,10 @@ $sep = $WikiTheme->getButtonSeparator(); if ($align == 'center') { $tr = HTML::tr(); - $links = HTML::table(array('cellpadding' => 0, 'cellspacing' => 0, 'width' => '100%'), $tr); + $links = HTML::table(array('class' => 'fullwidth'), $tr); } elseif ($align == 'right') { $td = HTML::td(array('align' => $align)); - $links = HTML::table(array('cellpadding' => 0, 'cellspacing' => 0, 'width' => '100%'), HTML::tr($td)); + $links = HTML::table(array('class' => 'fullwidth'), HTML::tr($td)); } else { $links = HTML(); } Modified: trunk/lib/plugin/RecentReferrers.php =================================================================== --- trunk/lib/plugin/RecentReferrers.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/RecentReferrers.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -51,10 +51,7 @@ return HTML::div(array('class' => "error"), "Error: no ACCESS_LOG"); } $args = $this->getArgs($argstr, $request); - $table = HTML::table(array('cellpadding' => 1, - 'cellspacing' => 2, - 'border' => 0, - 'class' => 'pagelist')); + $table = HTML::table(array('class' => 'pagelist')); if (!$args['noheader'] and !empty($args['caption'])) $table->pushContent(HTML::caption(array('align' => 'top'), $args['caption'])); $limit = $args['limit']; Modified: trunk/lib/plugin/SemanticSearchAdvanced.php =================================================================== --- trunk/lib/plugin/SemanticSearchAdvanced.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/SemanticSearchAdvanced.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -113,7 +113,7 @@ $reldef, $hiddenfield, HiddenInputs(array('attribute' => '')), $instructions, HTML::br(), - HTML::table(array('border' => '0', 'width' => '100%'), + HTML::table(array('class' => 'fullwidth'), HTML::tr(HTML::td(_("Page Name")._(': '), $pagefilter), HTML::td(array('align' => 'right'), $help)), Modified: trunk/lib/plugin/UpLoad.php =================================================================== --- trunk/lib/plugin/UpLoad.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/UpLoad.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -290,7 +290,7 @@ fwrite($log_handle, "\n" . "<tr><td><a href=\"$userfile_name\">$userfile_name</a></td>" - . "<td align=\"right\">$file_size kB</td>" + . "<td class=\"align-right\">$file_size kB</td>" . "<td> " . $WikiTheme->formatDate(time()) . "</td>" . "<td> <em>" . $user->getId() . "</em></td></tr>"); fclose($log_handle); Modified: trunk/lib/plugin/WantedPagesOld.php =================================================================== --- trunk/lib/plugin/WantedPagesOld.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/lib/plugin/WantedPagesOld.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -151,10 +151,7 @@ { if (count($this->pagelist) > 0) { - $table = HTML::table(array('cellpadding' => 0, - 'cellspacing' => 1, - 'border' => 0, - 'class' => 'pagelist')); + $table = HTML::table(array('class' => 'pagelist')); if ($caption) $table->pushContent(HTML::caption(array('align' => 'top'), $caption)); Modified: trunk/themes/Crao/crao.css =================================================================== --- trunk/themes/Crao/crao.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Crao/crao.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -100,6 +100,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/Crao/templates/navbar.tmpl =================================================================== --- trunk/themes/Crao/templates/navbar.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Crao/templates/navbar.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -6,8 +6,8 @@ <input type="hidden" name="pagename" value="<?php echo _("TitleSearch")?>" /> <?php } ?> <div id="navbuttons"> -<table width="100%" cellpadding="0" cellspacing="0" border="0"> -<tr valign="middle"><td align="left"> +<table width="fullwidth"> +<tr class="middle"><td align="left"> <?php echo WikiLink(_("RecentChanges"), "button") ?> <?php if (!empty($revision)) { ?> <?php echo $SEP?><?php echo Button("RelatedChanges", _("RelatedChanges")) ?> Modified: trunk/themes/Crao/templates/top.tmpl =================================================================== --- trunk/themes/Crao/templates/top.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Crao/templates/top.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -3,8 +3,8 @@ if (!$HIDE_TOOLBARS) { ?> <!-- The logo --> -<table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr valign="middle"> +<table class="fullwidth"> + <tr class="middle"> <td><div id="logo"><a href="<?php echo WikiURL(HOME_PAGE)?>"><?php echo WIKI_NAME?></a></div></td> <td><div id="signin"><?php echo Template('signin') ?></div></td> </tr> Modified: trunk/themes/Hawaiian/Hawaiian.css =================================================================== --- trunk/themes/Hawaiian/Hawaiian.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Hawaiian/Hawaiian.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -67,6 +67,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/MacOSX/MacOSX.css =================================================================== --- trunk/themes/MacOSX/MacOSX.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/MacOSX/MacOSX.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -98,6 +98,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/MacOSX/images/index.php =================================================================== --- trunk/themes/MacOSX/images/index.php 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/MacOSX/images/index.php 2013-06-18 15:39:31 UTC (rev 8817) @@ -15,7 +15,7 @@ } //--></script> </head> -<body bgcolor="#8888aa"> +<body style="background-color:"#8888aa"> <?php $dir = opendir("."); while ($fileName = readdir($dir)) Modified: trunk/themes/MonoBook/main.css =================================================================== --- trunk/themes/MonoBook/main.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/MonoBook/main.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -288,6 +288,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/Portland/portland.css =================================================================== --- trunk/themes/Portland/portland.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Portland/portland.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -51,6 +51,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/Portland/templates/body.tmpl =================================================================== --- trunk/themes/Portland/templates/body.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Portland/templates/body.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -3,8 +3,8 @@ <h1><a class="wikilink" href="<?php echo WikiURL(HOME_PAGE)?>" ><img src="<?php echo $WikiTheme->getImageURL('logo')?>" - border="0" alt="<?php echo fmt(_("%s: %s"), WIKI_NAME, HOME_PAGE) ?>" - align="bottom" /></a> <?php echo $HEADER?></h1> + alt="<?php echo fmt(_("%s: %s"), WIKI_NAME, HOME_PAGE) ?>" + class="bottom" /></a> <?php echo $HEADER?></h1> <?php echo $CONTENT ?> <?php echo Template('navbar') ?> <!-- RELATEDPAGES were here. --> Modified: trunk/themes/Portland/templates/debug.tmpl =================================================================== --- trunk/themes/Portland/templates/debug.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Portland/templates/debug.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -1,5 +1,5 @@ <?php global $RUNTIMER; ?> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> +<table class="fullwidth"> <tr><td> <div id="xhtml-validator"><a href="http://validator.w3.org/check/referer">Valid XHTML 1.0</a> <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a> Modified: trunk/themes/Portland/templates/editpage.tmpl =================================================================== --- trunk/themes/Portland/templates/editpage.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Portland/templates/editpage.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -10,9 +10,8 @@ <form method="post" name="editpage" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8"> -<table class="toolbar" width="100%" - cellpadding="0" cellspacing="0" border="0"> -<tr align="bottom"> +<table class="toolbar fullwidth"> +<tr class="bottom"> <td> <?php echo $PAGE_LOCKED_MESSAGE ?> <?php echo $CONCURRENT_UPDATE_MESSAGE ?> @@ -21,7 +20,7 @@ <?php echo _("Saving this page will overwrite the current version.")?></strong></p> <?php } ?> </td> - <td align="right"> + <td class="align-right"> <?php echo $PREVIEW_B ?> <?php if ($SAVE_B) { ?> <?php echo $SEP?> <?php echo $SAVE_B ?> Modified: trunk/themes/Portland/templates/navbar.tmpl =================================================================== --- trunk/themes/Portland/templates/navbar.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Portland/templates/navbar.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -14,10 +14,8 @@ CSSs float:left; and float:right;. However float:right; seems to cause MSIE4.01/NT to hang. So, we use tables... --> -<table class="toolbar" width="100%" - cellpadding="0" cellspacing="0" border="0" - id="actionbar"> -<tr valign="baseline"> +<table class="toolbar fullwidth" id="actionbar"> +<tr class="baseline"> <td> <?php echo WikiLink(_("RecentChanges"), "button") ?> <?php if ($user->isAdmin()) { ?> Modified: trunk/themes/Sidebar/sidebar.css =================================================================== --- trunk/themes/Sidebar/sidebar.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Sidebar/sidebar.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -287,6 +287,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/Sidebar/templates/debug.tmpl =================================================================== --- trunk/themes/Sidebar/templates/debug.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Sidebar/templates/debug.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -1,5 +1,5 @@ <?php global $RUNTIMER; ?> -<table width="%100" border="0" cellpadding="0" cellspacing="0"> +<table width="%100"> <tr><td> <div id="xhtml-validator"><a href="http://validator.w3.org/check/referer"><img id="xhtml" Modified: trunk/themes/SpaceWiki/SpaceWiki.css =================================================================== --- trunk/themes/SpaceWiki/SpaceWiki.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/SpaceWiki/SpaceWiki.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -98,6 +98,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/Wordpress/Wordpress.css =================================================================== --- trunk/themes/Wordpress/Wordpress.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Wordpress/Wordpress.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -39,6 +39,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/Wordpress/templates/editpage.tmpl =================================================================== --- trunk/themes/Wordpress/templates/editpage.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/Wordpress/templates/editpage.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -12,9 +12,8 @@ <form method="post" name="editpage" id="editpage" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8"> - <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> -<table class="toolbar" width="100%" - cellpadding="0" cellspacing="0" border="0"> + <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1">'; ?> +<table class="toolbar fullwidth"> <tr align="bottom"> <td> <?php echo $PAGE_LOCKED_MESSAGE ?> Modified: trunk/themes/blog/Kubrick.css =================================================================== --- trunk/themes/blog/Kubrick.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/blog/Kubrick.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -250,6 +250,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/blog/templates/actionbar.tmpl =================================================================== --- trunk/themes/blog/templates/actionbar.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/blog/templates/actionbar.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -1,5 +1,5 @@ -<table width="100%" cellpadding="0" cellspacing="0" border="0"> -<tr valign="baseline"> +<table class="fullwidth"> +<tr class="baseline"> <td> <div class="actionbuttons"> <?php echo WikiLink(HOME_PAGE, "known",_("Home")) ?> Modified: trunk/themes/default/phpwiki.css =================================================================== --- trunk/themes/default/phpwiki.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/phpwiki.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -59,6 +59,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/default/templates/actionbar.tmpl =================================================================== --- trunk/themes/default/templates/actionbar.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/actionbar.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -4,8 +4,8 @@ * CSSs float:left; and float:right;. However float:right; seems * to cause MSIE4.01/NT to hang. * So, we use tables... */ ?> -<table width="100%" cellpadding="0" cellspacing="0" border="0"> -<tr valign="baseline"> +<table class="fullwidth"> +<tr class="baseline"> <td> <div id="actionbuttons"> <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?> @@ -51,10 +51,10 @@ </td> <?php if (empty($NOSIGNIN)) { ?> <?php -/* valign="top" is not ideal here but required to get reasonable alignment +/* class="top" is not ideal here but required to get reasonable alignment with the other action buttons in some browsers, like OmniWeb and Safari (therefore probably Konquorer too) */ ?> - <td align="right" valign="top"> + <td class="align-right top"> <div id="signin"><?php echo Template('signin') ?></div> </td> <?php } ?> Modified: trunk/themes/default/templates/addcomment.tmpl =================================================================== --- trunk/themes/default/templates/addcomment.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/addcomment.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -8,7 +8,7 @@ <input type="hidden" name="comment[pagename]" value="<?php echo $PAGENAME?>" /> <?php echo HiddenInputs($request->getArgs()) ?> <table class="wikicomment-form"> - <tr><td width="100%"><textarea class="commentedit" rows="3" cols="55" + <tr><td><textarea class="commentedit" rows="3" cols="55" name="comment[content]"></textarea></td> <td class="submit-button"><input type="submit" value="<?php echo _("Add Comment") Modified: trunk/themes/default/templates/debug.tmpl =================================================================== --- trunk/themes/default/templates/debug.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/debug.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -1,5 +1,5 @@ <?php global $RUNTIMER; ?> -<table width="100%" border="0" cellpadding="0" cellspacing="0"> +<table class="fullwidth"> <tr><td> <?php /* Note: The Portland theme's debug.tmpl overrides this file with it's own non-graphical variant. */ ?> <div id="xhtml-validator"><a href="http://validator.w3.org/check/referer"><img Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/editpage.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -33,7 +33,7 @@ <br class="clear-floats" /> <table class="fullwidth"> <tr><td><?php echo $EDIT_TOOLBAR ?></td> - <td align="right"><div id="editarea-size"> + <td class="align-right"><div id="editarea-size"> <?php echo _("Size").':'?> <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?> @@ -53,14 +53,13 @@ <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?> </div> <?php } ?> -<table class="toolbar" width="100%" - cellpadding="0" cellspacing="0" border="0"> -<tr valign="middle"> +<table class="toolbar fullwidth"> +<tr class="middle"> <td> <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br /> <?php echo $OLD_MARKUP_CB ?> <label for="useOldMarkup"><?php echo _("Use old markup")?></label> <?php echo $OLD_MARKUP_CONVERT?> </td> - <td align="center"> + <td class="align-center"> <?php if (!empty($WYSIWYG_B)){ ?> <?php echo $WYSIWYG_B?><?php echo $SEP?> <?php } ?> @@ -80,7 +79,7 @@ <?php echo $PUBLIC_CB ?> <label for="edit-public" title="<?php echo _("Export to a separate public area?")?>"><?php echo _("Public")?></label> <?php }} ?> </td> - <td colspan="2" align="right"> + <td colspan="2" class="align-right"> <?php if (!$user->isAuthenticated()) { ?> <?php echo Template('signin', array('FORMNAME' => 'editpage')) ?> <?php } ?> Modified: trunk/themes/default/templates/forumadd.tmpl =================================================================== --- trunk/themes/default/templates/forumadd.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/forumadd.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -9,15 +9,15 @@ <table class="wikiforum-reply"> <caption><?php echo _("Post new")?></caption> <col class="label" width="1*" /><col class="input" width="100*" /> - <tr><th align="right"><?php echo _("Title:")?></th> + <tr><th class="align-right"><?php echo _("Title:")?></th> <td><input class="wikitext" type="text" size="60" maxlength="256" name="forum[summary]" value="<?php echo isset($forum['summary']) ? $forum['summary'] : '' ?>" /></td> </tr> - <tr><th align="right"><?php echo _("Reply")?>:</th> + <tr><th class="align-right"><?php echo _("Reply")?>:</th> <td><textarea class="forumedit" rows="5" cols="60" name="forum[body]"><?php echo isset($forum['body']) ? $forum['body'] : ''?></textarea></td> </tr> - <tr><td colspan="2" align="center" class="submit-button" + <tr><td colspan="2" class="align-center" class="submit-button" ><input type="submit" value="<?php echo _("Add Message")?>" name="forum[add]" class="wikiaction" /></td> </tr> Modified: trunk/themes/default/templates/login.tmpl =================================================================== --- trunk/themes/default/templates/login.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/login.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -66,9 +66,9 @@ <td> <fieldset> <legend><?php echo _("Sign In") ?></legend> -<table cellspacing="4"> +<table> <tr> - <td align="right"><?php echo _("UserId:") ?></td> + <td class="align-right"><?php echo _("UserId:") ?></td> <td><input type="text" name="auth[userid]" size="12" maxlength="256" value="<?php echo $userid?>" tabindex="1" /> <?php if (ENABLE_AUTH_OPENID) { ?> <?php echo _("or")?> <a href="http://openid.net/"><?php echo _("OpenID") ?></a>: <input type="text" id="inp-openid" name="openid_url" size="32" maxlength="256" value="" tabindex="3" /> @@ -76,10 +76,10 @@ </td> </tr> <tr> - <td align="right"><?php echo _("Password:") ?></td> + <td class="align-right"><?php echo _("Password:") ?></td> <td><input type="password" name="auth[passwd]" size="12" maxlength="256" tabindex="2" /></td> </tr> -<tr><td></td><td align="left"> +<tr><td></td><td class="align-left"> <?php echo Button("submit:", _("Sign In"), 'wikiaction')?> <?php if (!$require_level) { ?> <?php echo Button("submit:auth[cancel]", _("Cancel"), 'button')?> Modified: trunk/themes/default/templates/online.tmpl =================================================================== --- trunk/themes/default/templates/online.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/online.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -14,7 +14,7 @@ $header = HTML::a(array('href'=>$url,'title'=>_("Switch to detailed list")),_("Who is Online")); } ?> -<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> +<table class="forumline fullwidth"> <tr><td class="cat" colspan="2"><?php echo $header ?></td></tr> <tr><td class="row1" rowspan="3"><?php echo $ONLINE_ICON ?></td> <td class="row1 gensmall"><?php echo fmt("Our users created a total of %d pages.",$NUM_PAGES) ?><br /> @@ -56,7 +56,7 @@ $url = WikiUrl($pagename,array("mode"=>"summary")); $header = HTML::a(array('href'=>$url,'title'=>_("Switch to summary")),_("Who is Online")); ?> -<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> +<table class="forumline fullwidth"> <tr><td class="cat" colspan="3"><?php echo $header ?></td></tr> <tr><td class="cat" colspan="3"><?php echo _("Registered Users") ?></td></tr> <?php if (!empty($ADMINS) and $dispose_admin) { ?> Modified: trunk/themes/default/templates/pagelink.tmpl =================================================================== --- trunk/themes/default/templates/pagelink.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/default/templates/pagelink.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -11,7 +11,7 @@ $NEXT = false; } ?> -<tr><td width="100%" colspan="<?php echo $COLS ?>"><table width="100%" class="wikipaging"><tr class="wikipaging"> +<tr><td style="width:100%" colspan="<?php echo $COLS ?>"><table class="fullwidth wikipaging"><tr class="wikipaging"> <td class="wikipaging<?php echo $PREV ? "-enabled" : "-disabled" ?>" align="left"> <?php echo $PREV ? HTML::a(array('href'=>$FIRST_LINK), "|<<") : "|<<" ?> Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -66,7 +66,7 @@ <br class="clear-floats" /> <table class="fullwidth"> <tr><td><?php echo $EDIT_TOOLBAR ?></td> - <td align="right"><div id="editarea-size"> + <td class="align-right"><div id="editarea-size"> <?php echo _("Size").':'?> <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?> @@ -77,11 +77,11 @@ <label for="edit-summary"><?php echo _("Summary").':'?></label> <?php echo $SUMMARY_INPUT?> </div> <table class="fullwidth"> -<tr valign="middle"> +<tr class="middle"> <td> <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br /> </td> - <td align="center"> + <td class="align-center"> <?php echo $PREVIEW_B ?> <?php if ($SAVE_B) { ?> <?php echo $SEP?><?php echo $SAVE_B ?> Modified: trunk/themes/shamino_com/shamino_com.css =================================================================== --- trunk/themes/shamino_com/shamino_com.css 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/shamino_com/shamino_com.css 2013-06-18 15:39:31 UTC (rev 8817) @@ -175,6 +175,18 @@ vertical-align: top; } +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + +.baseline { + vertical-align: baseline; +} + .nowrap { white-space: nowrap; } Modified: trunk/themes/smaller/templates/actionbar.tmpl =================================================================== --- trunk/themes/smaller/templates/actionbar.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/smaller/templates/actionbar.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -8,8 +8,8 @@ * CSSs float:left; and float:right;. However float:right; seems * to cause MSIE4.01/NT to hang. * So, we use tables... */ ?> -<table width="100%" cellpadding="0" cellspacing="0" border="0"> -<tr valign="baseline"> +<table class="fullwidth"> +<tr class="baseline"> <td> <div id="actionbuttons"> <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?> @@ -45,7 +45,7 @@ </div> </td> <?php if (empty($NOSIGNIN)) { ?> - <td align="right"> + <td class="align-right"> <div id="signin"><?php echo Template('signin') ?></div> </td> <?php } ?> Modified: trunk/themes/wikilens/templates/body.tmpl =================================================================== --- trunk/themes/wikilens/templates/body.tmpl 2013-06-18 13:42:44 UTC (rev 8816) +++ trunk/themes/wikilens/templates/body.tmpl 2013-06-18 15:39:31 UTC (rev 8817) @@ -5,7 +5,7 @@ <?php echo Template('top') ?> </div> </td></tr> -<tr valign="top"><td class="leftnav" width="120"> +<tr class="top"><td class="leftnav" width="120"> <div class="toolbar"> <?php echo Template('navbar') ?> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |