diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-04 12:19:31 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-04 12:19:31 +0000 |
| commit | a9f185c4c92010765557cda2def9d50d582712c9 (patch) | |
| tree | a702cbfa877ed69850285c465b19d3291636a66a | |
| parent | 5947a82682f092540fb80b7e7c2189bd2f462e67 (diff) | |
| download | webtrees-a9f185c4c92010765557cda2def9d50d582712c9.tar.gz webtrees-a9f185c4c92010765557cda2def9d50d582712c9.tar.bz2 webtrees-a9f185c4c92010765557cda2def9d50d582712c9.zip | |
The align="center" attribute is obsolete and fails strict validation. Replace it with CSS.
| -rw-r--r-- | modules_v3/family_nav/module.php | 32 | ||||
| -rw-r--r-- | modules_v3/googlemap/googlemap.php | 2 | ||||
| -rw-r--r-- | modules_v3/googlemap/help_text.php | 56 | ||||
| -rw-r--r-- | modules_v3/googlemap/module.php | 2 |
4 files changed, 45 insertions, 47 deletions
diff --git a/modules_v3/family_nav/module.php b/modules_v3/family_nav/module.php index 97bc8a9304..a2b3626e0e 100644 --- a/modules_v3/family_nav/module.php +++ b/modules_v3/family_nav/module.php @@ -103,7 +103,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { $styleadd = ""; ?> <tr> - <td style="padding-bottom:4px;" align="center" colspan="2"> + <td style="padding-bottom:4px;" class="center" colspan="2"> <?php echo "<a class=\"famnav_link\" href=\"".$family->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$family->getHtmlUrl()."');\">"; echo "<b>".$label."</b>"; @@ -124,7 +124,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$people["husb"]->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$people['husb']->getHtmlUrl()."');\">"; echo $people["husb"]->getFullName(); @@ -148,7 +148,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$people["wife"]->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$people['wife']->getHtmlUrl()."');\">"; echo $people["wife"]->getFullName(); @@ -182,7 +182,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { } ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($child); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($child); ?> nam"> <?php if ($pid == $child->getXref()) { echo "<a class=\"famnav_link\" href=\"#\">"; @@ -215,7 +215,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { $elderdate = ""; ?> <tr> - <td style="padding-bottom: 4px;" align="center" colspan="2"> + <td style="padding-bottom: 4px;" class="center" colspan="2"> <?php echo "<a class=\"famnav_link\" href=\"".$family->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$family->getHtmlUrl()."');\">"; echo "<b>".$label."</b>"; @@ -243,7 +243,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$people["husb"]->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$people['husb']->getHtmlUrl()."');\">"; echo $people["husb"]->getFullName(); @@ -276,7 +276,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$people["wife"]->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$people['wife']->getHtmlUrl()."');\">"; echo $people["wife"]->getFullName(); @@ -302,7 +302,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($child); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($child); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$child->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$child->getHtmlUrl()."');\">"; echo $child->getFullName(); @@ -323,7 +323,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { echo "<tr><td><br /></td><td></td></tr>"; ?> <tr> - <td style="padding-bottom: 4px;" align="center" colspan="2"> + <td style="padding-bottom: 4px;" class="center" colspan="2"> <?php echo "<a class=\"famnav_link\" href=\"".$family->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$family->getHtmlUrl()."');\">"; echo "<b>".WT_I18N::translate('Immediate Family')."</b>"; @@ -352,7 +352,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> <?php if ($pid == $people["husb"]->getXref()) { echo "<a class=\"famnav_link\" href=\"#\">"; @@ -383,7 +383,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> <?php if ($pid == $people["wife"]->getXref()) { echo "<a class=\"famnav_link\" href=\"#\">"; @@ -416,7 +416,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($child); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($child); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$child->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$child->getHtmlUrl()."');\">"; echo $child->getFullName(); @@ -441,7 +441,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { $elderdate = ""; ?> <tr> - <td style="padding-bottom: 4px;" align="center" colspan="2"> + <td style="padding-bottom: 4px;" class="center" colspan="2"> <?php echo "<a class=\"famnav_link\" href=\"".$family->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$family->getHtmlUrl()."');\">"; echo "<b>".$label."</b>"; @@ -464,7 +464,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["husb"]); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$people["husb"]->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$people['husb']->getHtmlUrl()."');\">"; echo $people["husb"]->getFullName(); @@ -491,7 +491,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($people["wife"]); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$people["wife"]->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$people['wife']->getHtmlUrl()."');\">"; echo $people["wife"]->getFullName(); @@ -517,7 +517,7 @@ class family_nav_WT_Module extends WT_Module implements WT_Module_Sidebar { <td class="facts_label<?php echo $styleadd; ?> nowrap" style="width:75px;"> <?php echo $menu->getMenu(); ?> </td> - <td align="center" class="<?php echo $controller->getPersonStyle($child); ?> nam"> + <td class="center <?php echo $controller->getPersonStyle($child); ?> nam"> <?php echo "<a class=\"famnav_link\" href=\"".$child->getHtmlUrl()."\" onclick=\"return familyNavLoad('".$child->getHtmlUrl()."');\">"; echo $child->getFullName(); diff --git a/modules_v3/googlemap/googlemap.php b/modules_v3/googlemap/googlemap.php index 049dfabc8e..af774abf1c 100644 --- a/modules_v3/googlemap/googlemap.php +++ b/modules_v3/googlemap/googlemap.php @@ -501,7 +501,7 @@ function build_indiv_map($indifacts, $famids) { echo '<tr><td colspan="2" class="facts_value">', WT_I18N::translate('No map data for this person'); echo '</td></tr>'; if (WT_USER_IS_ADMIN) { - echo '<tr><td align="center" colspan="2">'; + echo '<tr><td class="center" colspan="2">'; echo '<a href="module.php?mod=googlemap&mod_action=admin_editconfig">', WT_I18N::translate('Google Maps configuration'), '</a>'; echo '</td></tr>'; } diff --git a/modules_v3/googlemap/help_text.php b/modules_v3/googlemap/help_text.php index 15e23fd87d..6ee08682da 100644 --- a/modules_v3/googlemap/help_text.php +++ b/modules_v3/googlemap/help_text.php @@ -1,29 +1,27 @@ <?php -/** - * Googlemap Module help text. - * - * This file is included from the application help_text.php script. - * It simply needs to set $title and $text for the help topic $help_topic - * - * webtrees: Web based Family History software - * Copyright (C) 2011 webtrees development team. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @version $Id$ - */ +// Googlemap Module help text. +// +// This file is included from the application help_text.php script. +// It simply needs to set $title and $text for the help topic $help_topic +// +// webtrees: Web based Family History software +// Copyright (C) 2011 webtrees development team. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id$ if (!defined('WT_WEBTREES') || !defined('WT_SCRIPT_NAME') || WT_SCRIPT_NAME!='help_text.php') { header('HTTP/1.0 403 Forbidden'); @@ -206,19 +204,19 @@ case 'PLACECHECK_KEY': $text= '<table border="1" cellspacing="0" cellpadding="3"><tr><td style="color:red;">'. WT_Gedcom_Tag::getLabel('PLAC'). - '</td><td style="color:red;" align="center"><strong>X</strong></td><td align="center" style="color:red;"><strong>X</strong></td><td style="font-size:85%; white-space:normal;">'. + '</td><td style="color:red;" class="center"><strong>X</strong></td><td class="center" style="color:red;"><strong>X</strong></td><td style="font-size:85%; white-space:normal;">'. WT_I18N::translate('This place and its coordinates do not exist in the GoogleMap tables.'). '</td></tr><tr><td style="color:blue;">'. WT_Gedcom_Tag::getLabel('PLAC'). - '</td><td style="color:red;" align="center"><strong>X</strong></td><td align="center" style="color:red;"><strong>X</strong></td><td style="font-size:85%; white-space:normal;">'. + '</td><td style="color:red;" class="center"><strong>X</strong></td><td class="center" style="color:red;"><strong>X</strong></td><td style="font-size:85%; white-space:normal;">'. WT_I18N::translate('This place exists in the GoogleMap tables, but has no coordinates.'). '</td></tr><tr><td><strong>'. WT_I18N::translate('unknown'). - '</td><td style="color:red;" align="center"><strong>X</strong></td><td align="center" style="color:red;"><strong>X</strong></td><td style="font-size:85%; white-space:normal;">'. + '</td><td style="color:red;" class="center"><strong>X</strong></td><td class="center" style="color:red;"><strong>X</strong></td><td style="font-size:85%; white-space:normal;">'. WT_I18N::translate('This place level is blank in your GEDCOM file. It should be added to GoogleMap places as "unknown" with coordinates from its parent level before you add any place to the next level.'). '</td></tr><tr><td style="color:blue;">'. WT_I18N::translate('unknown'). - '</td><td align="center">N55.0</td><td align="center">W85.0</td><td style="font-size:85%; white-space:normal;">'. + '</td><td class="center">N55.0</td><td class="center">W85.0</td><td style="font-size:85%; white-space:normal;">'. WT_I18N::translate('This place level is blank in your GEDCOM file, but exists as "unknown" in the GoogleMap places table with coordinates. No action required until the missing level can be entered.'). '</td></tr></table>'; diff --git a/modules_v3/googlemap/module.php b/modules_v3/googlemap/module.php index ceb1b98329..f58bfe4fc9 100644 --- a/modules_v3/googlemap/module.php +++ b/modules_v3/googlemap/module.php @@ -127,7 +127,7 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu echo '<td width="40%" align="left">'; echo '<a href="module.php?mod=', $this->getName(), '&mod_action=admin_editconfig">', WT_I18N::translate('Google Maps configuration'), '</a>'; echo '</td>'; - echo '<td width="35%" align="center">'; + echo '<td width="35%" class="center">'; echo '<a href="module.php?mod=', $this->getName(), '&mod_action=admin_places">', WT_I18N::translate('Edit geographic place locations'), '</a>'; echo '</td>'; echo '<td width="25%" align="right">'; |
