@@ -101,7 +101,8 @@ discard block |
||
| 101 | 101 | <?php if ($max_recursion == 0): ?> |
| 102 | 102 | <?php echo I18N::translate('Find the closest relationships') ?> |
| 103 | 103 | <input type="hidden" name="recursion" value="0"> |
| 104 | - <?php else: ?> |
|
| 104 | + <?php else { |
|
| 105 | + : ?> |
|
| 105 | 106 | <label> |
| 106 | 107 | <input type="radio" name="recursion" value="0" <?php echo $recursion == 0 ? 'checked' : '' ?>> |
| 107 | 108 | <?php echo I18N::translate('Find the closest relationships') ?> |
@@ -113,7 +114,9 @@ discard block |
||
| 113 | 114 | <?php echo I18N::translate('Find all possible relationships') ?> |
| 114 | 115 | <?php else: ?> |
| 115 | 116 | <?php echo I18N::translate('Find other relationships') ?> |
| 116 | - <?php endif; ?> |
|
| 117 | + <?php endif; |
|
| 118 | +} |
|
| 119 | +?> |
|
| 117 | 120 | </label> |
| 118 | 121 | <?php endif; ?> |
| 119 | 122 | </td> |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | while (list(, $next) = each($queue)) { |
| 64 | 64 | // For each family on the path |
| 65 | 65 | for ($n = count($next['path']) - 2; $n >= 1; $n -= 2) { |
| 66 | - $exclude = $next['exclude']; |
|
| 66 | + $exclude = $next['exclude']; |
|
| 67 | 67 | if (count($exclude) >= $recursion) { |
| 68 | 68 | continue; |
| 69 | 69 | } |
@@ -1115,7 +1115,7 @@ discard block |
||
| 1115 | 1115 | * |
| 1116 | 1116 | * @param Individual $individual |
| 1117 | 1117 | * |
| 1118 | - * @return Menu|null |
|
| 1118 | + * @return Menu |
|
| 1119 | 1119 | * |
| 1120 | 1120 | * @deprecated |
| 1121 | 1121 | */ |
@@ -1130,7 +1130,7 @@ discard block |
||
| 1130 | 1130 | * |
| 1131 | 1131 | * @param Individual $individual |
| 1132 | 1132 | * |
| 1133 | - * @return Menu|null |
|
| 1133 | + * @return Menu |
|
| 1134 | 1134 | * |
| 1135 | 1135 | * @deprecated |
| 1136 | 1136 | */ |
@@ -1145,7 +1145,7 @@ discard block |
||
| 1145 | 1145 | * |
| 1146 | 1146 | * @param Individual $individual |
| 1147 | 1147 | * |
| 1148 | - * @return Menu|null |
|
| 1148 | + * @return Menu |
|
| 1149 | 1149 | * |
| 1150 | 1150 | * @deprecated |
| 1151 | 1151 | */ |
@@ -1160,7 +1160,7 @@ discard block |
||
| 1160 | 1160 | * |
| 1161 | 1161 | * @param Individual $individual |
| 1162 | 1162 | * |
| 1163 | - * @return Menu|null |
|
| 1163 | + * @return Menu |
|
| 1164 | 1164 | * |
| 1165 | 1165 | * @deprecated |
| 1166 | 1166 | */ |
@@ -1192,7 +1192,7 @@ discard block |
||
| 1192 | 1192 | * |
| 1193 | 1193 | * @param Individual $individual |
| 1194 | 1194 | * |
| 1195 | - * @return Menu|null |
|
| 1195 | + * @return Menu |
|
| 1196 | 1196 | * |
| 1197 | 1197 | * @deprecated |
| 1198 | 1198 | */ |
@@ -1207,7 +1207,7 @@ discard block |
||
| 1207 | 1207 | * |
| 1208 | 1208 | * @param Individual $individual |
| 1209 | 1209 | * |
| 1210 | - * @return Menu|null |
|
| 1210 | + * @return Menu |
|
| 1211 | 1211 | * |
| 1212 | 1212 | * @deprecated |
| 1213 | 1213 | */ |
@@ -1222,7 +1222,7 @@ discard block |
||
| 1222 | 1222 | * |
| 1223 | 1223 | * @param Individual $individual |
| 1224 | 1224 | * |
| 1225 | - * @return Menu|null |
|
| 1225 | + * @return Menu |
|
| 1226 | 1226 | * |
| 1227 | 1227 | * @deprecated |
| 1228 | 1228 | */ |
@@ -1237,7 +1237,7 @@ discard block |
||
| 1237 | 1237 | * |
| 1238 | 1238 | * @param Individual $individual |
| 1239 | 1239 | * |
| 1240 | - * @return Menu|null |
|
| 1240 | + * @return Menu |
|
| 1241 | 1241 | * |
| 1242 | 1242 | * @deprecated |
| 1243 | 1243 | */ |
@@ -1267,7 +1267,7 @@ discard block |
||
| 1267 | 1267 | * |
| 1268 | 1268 | * @param Individual $individual |
| 1269 | 1269 | * |
| 1270 | - * @return Menu|null |
|
| 1270 | + * @return Menu |
|
| 1271 | 1271 | * |
| 1272 | 1272 | * @deprecated |
| 1273 | 1273 | */ |
@@ -1280,7 +1280,7 @@ discard block |
||
| 1280 | 1280 | /** |
| 1281 | 1281 | * Generate a menu item for the statistics charts. |
| 1282 | 1282 | * |
| 1283 | - * @return Menu|null |
|
| 1283 | + * @return Menu |
|
| 1284 | 1284 | * |
| 1285 | 1285 | * @deprecated |
| 1286 | 1286 | */ |
@@ -1295,7 +1295,7 @@ discard block |
||
| 1295 | 1295 | * |
| 1296 | 1296 | * @param Individual $individual |
| 1297 | 1297 | * |
| 1298 | - * @return Menu|null |
|
| 1298 | + * @return Menu |
|
| 1299 | 1299 | * |
| 1300 | 1300 | * @deprecated |
| 1301 | 1301 | */ |
@@ -2035,18 +2035,18 @@ |
||
| 2035 | 2035 | 'tooltip' => $birth->getPlace()->getGedcomName(), |
| 2036 | 2036 | ); |
| 2037 | 2037 | \ switch ($child->getSex()) { |
| 2038 | - case'F': |
|
| 2039 | - $gmark['fact_label'] = I18N::translate('daughter'); |
|
| 2040 | - $gmark['class'] = 'person_boxF'; |
|
| 2041 | - break; |
|
| 2042 | - case 'M': |
|
| 2043 | - $gmark['fact_label'] = I18N::translate('son'); |
|
| 2044 | - $gmark['class'] = 'person_box'; |
|
| 2045 | - break; |
|
| 2046 | - default: |
|
| 2047 | - $gmark['fact_label'] = I18N::translate('child'); |
|
| 2048 | - $gmark['class'] = 'person_boxNN'; |
|
| 2049 | - break; |
|
| 2038 | +case'F': |
|
| 2039 | + $gmark['fact_label'] = I18N::translate('daughter'); |
|
| 2040 | + $gmark['class'] = 'person_boxF'; |
|
| 2041 | + break; |
|
| 2042 | +case 'M': |
|
| 2043 | + $gmark['fact_label'] = I18N::translate('son'); |
|
| 2044 | + $gmark['class'] = 'person_box'; |
|
| 2045 | + break; |
|
| 2046 | +default: |
|
| 2047 | + $gmark['fact_label'] = I18N::translate('child'); |
|
| 2048 | + $gmark['class'] = 'person_boxNN'; |
|
| 2049 | + break; |
|
| 2050 | 2050 | } |
| 2051 | 2051 | $gmarks[] = $gmark; |
| 2052 | 2052 | } else { |
@@ -2469,7 +2469,7 @@ |
||
| 2469 | 2469 | if ($key == 0) { |
| 2470 | 2470 | $key_mark = 0; |
| 2471 | 2471 | } |
| 2472 | - else if ($gmark['place'] == $gmarks[$key-1]['place']) { |
|
| 2472 | + else if ($gmark['place'] == $gmarks[$key - 1]['place']) { |
|
| 2473 | 2473 | $key_mark = $key_mark; |
| 2474 | 2474 | } else { |
| 2475 | 2475 | $key_mark++; |
@@ -2468,8 +2468,7 @@ discard block |
||
| 2468 | 2468 | echo '<td class="facts_label">'; |
| 2469 | 2469 | if ($key == 0) { |
| 2470 | 2470 | $key_mark = 0; |
| 2471 | - } |
|
| 2472 | - else if ($gmark['place'] == $gmarks[$key-1]['place']) { |
|
| 2471 | + } else if ($gmark['place'] == $gmarks[$key-1]['place']) { |
|
| 2473 | 2472 | $key_mark = $key_mark; |
| 2474 | 2473 | } else { |
| 2475 | 2474 | $key_mark++; |
@@ -3024,7 +3023,8 @@ discard block |
||
| 3024 | 3023 | ob_start(); // TODO: rewrite print_gm_markers, and the functions called therein, to either return text or add JS directly. |
| 3025 | 3024 | |
| 3026 | 3025 | if ($numfound == 0 && $level > 0) { |
| 3027 | - if (isset($levelo[($level - 1)])) { // ** BH not sure yet what this if statement is for ... TODO ** |
|
| 3026 | + if (isset($levelo[($level - 1)])) { |
|
| 3027 | +// ** BH not sure yet what this if statement is for ... TODO ** |
|
| 3028 | 3028 | // show the current place on the map |
| 3029 | 3029 | |
| 3030 | 3030 | $place = Database::prepare("SELECT pl_id AS place_id, pl_place AS place, pl_lati AS lati, pl_long AS `long`, pl_zoom AS zoom, pl_icon AS icon FROM `##placelocation` WHERE pl_id=?") |
@@ -3857,7 +3857,8 @@ discard block |
||
| 3857 | 3857 | } |
| 3858 | 3858 | |
| 3859 | 3859 | function showLocation_level(address) { |
| 3860 | - address += '<?php if ($level > 0) echo ', ', addslashes(implode(', ', array_reverse($where_am_i, true))) ?>'; |
|
| 3860 | + address += '<?php if ($level > 0) { |
|
| 3861 | + echo ', ', addslashes(implode(', ', array_reverse($where_am_i, true))) ?>'; |
|
| 3861 | 3862 | geocoder.geocode({'address': address}, addAddressToMap); |
| 3862 | 3863 | } |
| 3863 | 3864 | |
@@ -3902,8 +3903,13 @@ discard block |
||
| 3902 | 3903 | <td class="optionbox" colspan="2"> |
| 3903 | 3904 | <input type="text" id="NEW_PLACE_LATI" name="NEW_PLACE_LATI" placeholder="<?php echo /* I18N: Measure of latitude/longitude */ I18N::translate('degrees') ?>" value="<?php echo abs($place_lati) ?>" size="20" onchange="updateMap();"> |
| 3904 | 3905 | <select name="LATI_CONTROL" id="LATI_CONTROL" onchange="updateMap();"> |
| 3905 | - <option value="PL_N" <?php if ($place_lati >= 0) echo "selected"; echo ">", I18N::translate('north') ?></option> |
|
| 3906 | - <option value="PL_S" <?php if ($place_lati < 0) echo "selected"; echo ">", I18N::translate('south') ?></option> |
|
| 3906 | + <option value="PL_N" <?php if ($place_lati >= 0) echo "selected"; |
|
| 3907 | +} |
|
| 3908 | +echo ">", I18N::translate('north') ?></option> |
|
| 3909 | + <option value="PL_S" <?php if ($place_lati < 0) { |
|
| 3910 | + echo "selected"; |
|
| 3911 | +} |
|
| 3912 | +echo ">", I18N::translate('south') ?></option> |
|
| 3907 | 3913 | </select> |
| 3908 | 3914 | </td> |
| 3909 | 3915 | </tr> |
@@ -3912,8 +3918,14 @@ discard block |
||
| 3912 | 3918 | <td class="optionbox" colspan="2"> |
| 3913 | 3919 | <input type="text" id="NEW_PLACE_LONG" name="NEW_PLACE_LONG" placeholder="<?php echo I18N::translate('degrees') ?>" value="<?php echo abs($place_long) ?>" size="20" onchange="updateMap();"> |
| 3914 | 3920 | <select name="LONG_CONTROL" id="LONG_CONTROL" onchange="updateMap();"> |
| 3915 | - <option value="PL_E" <?php if ($place_long >= 0) echo "selected"; echo ">", I18N::translate('east') ?></option> |
|
| 3916 | - <option value="PL_W" <?php if ($place_long < 0) echo "selected"; echo ">", I18N::translate('west') ?></option> |
|
| 3921 | + <option value="PL_E" <?php if ($place_long >= 0) { |
|
| 3922 | + echo "selected"; |
|
| 3923 | +} |
|
| 3924 | +echo ">", I18N::translate('east') ?></option> |
|
| 3925 | + <option value="PL_W" <?php if ($place_long < 0) { |
|
| 3926 | + echo "selected"; |
|
| 3927 | +} |
|
| 3928 | +echo ">", I18N::translate('west') ?></option> |
|
| 3917 | 3929 | </select> |
| 3918 | 3930 | </td> |
| 3919 | 3931 | </tr> |