summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2011-02-23 21:40:57 +0000
committerNigel Osborne <kiwi3685@me.com>2011-02-23 21:40:57 +0000
commit0c20dbb3b460ccbec8852eaea180763fee58b0d1 (patch)
treec63b6b680350e46156cd23b9b855e2b535d9c6dd
parent5c298a18edd94022c57c7687e4995d9cc6806b24 (diff)
downloadwebtrees-0c20dbb3b460ccbec8852eaea180763fee58b0d1.tar.gz
webtrees-0c20dbb3b460ccbec8852eaea180763fee58b0d1.tar.bz2
webtrees-0c20dbb3b460ccbec8852eaea180763fee58b0d1.zip
Remove unnecessary text and simplify table structure (slightly)
-rw-r--r--modules/googlemap/placehierarchy.php17
-rw-r--r--placelist.php2
2 files changed, 5 insertions, 14 deletions
diff --git a/modules/googlemap/placehierarchy.php b/modules/googlemap/placehierarchy.php
index 2329c0f21f..92cd76e824 100644
--- a/modules/googlemap/placehierarchy.php
+++ b/modules/googlemap/placehierarchy.php
@@ -147,19 +147,10 @@ function create_map() {
$parent = safe_GET('parent');
// create the map
- if ($level > 0) {
- echo '<p><table class="center" style="margin-top:0px;"><tr valign="top"><td style="background:none;">', /* I18N: %s is a country or region */ WT_I18N::translate('The markers indicate places in %s', $parent[$level-1]), '</p>';
- } else {
- echo '<p><table class="center" style="margin-top:0px;"><tr valign="top"><td style="background:none;"></p>';
- }
+ echo '<table class="center" style="margin-top:20px;"><tr valign="top"><td>';
//<!-- start of map display -->
- echo '<br /><br />';
- echo '<table style="margin-top:-32px;"><tr valign="top">';
- if ($level>=1) {
- echo '<td class="center" width="200px" style="background:none; padding-top:26px; padding-bottom:0px;">';
- } else {
- echo '<td class="center" width="200px" style="padding-top:6px;">';
- }
+ echo '<table><tr valign="top">';
+ echo '<td class="center" width="200px">';
$levelm = set_levelm($level, $parent);
$latlng =
@@ -188,7 +179,7 @@ function create_map() {
}
echo '</tr></table>';
echo '</td>';
- echo '<td style="margin-left:15px; padding-top:7px; float:right; ">';
+ echo '<td style="margin-left:15px; float:right; ">';
if ($STREETVIEW) {
?>
diff --git a/placelist.php b/placelist.php
index 9ee7053ff1..d51daa4ac7 100644
--- a/placelist.php
+++ b/placelist.php
@@ -222,7 +222,7 @@ if ($display=="hierarchy") {
echo " dir=\"rtl\"";
}
echo ">\n\t\t<tr>\n\t\t";
- echo"<br /><td class=\"list_label\" ";
+ echo"<td class=\"list_label\" ";
if ($ct1 > 20) {
echo "colspan=\"3\"";
} elseif ($ct1 > 4) {