diff options
Diffstat (limited to 'pedigree.php')
| -rw-r--r-- | pedigree.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pedigree.php b/pedigree.php index 4f5c815b02..c3a08ce02c 100644 --- a/pedigree.php +++ b/pedigree.php @@ -64,7 +64,7 @@ $controller y1 = Math.floor(y1); x2 = Math.floor(x2); y2 = Math.floor(y2); - if (' . json_encode($controller->orientation < $controller::OLDEST_AT_TOP ) . ') { + if (' . json_encode($controller->orientation < $controller::OLDEST_AT_TOP) . ') { context.moveTo(x1, y1); context.lineTo(x2, y1); context.lineTo(x2, y2); @@ -88,7 +88,7 @@ $controller p1 = jQuery("#sosa_" + (i+1)); // change line y position if within 10% of box top/bottom addOffset = boxHeight / (p1.position().top - p0.position().top) > 0.9 ? extraOffsetY: 0; - if (' . json_encode(I18N::direction() === "rtl") . ') { + if (' . json_encode(I18N::direction() === "rtl") . ') { drawLines( ctx, p0.position().left + p0.width(), @@ -180,7 +180,7 @@ $controller <?php echo select_edit_control('orientation', array(0 => I18N::translate('Portrait'), 1 => I18N::translate('Landscape'), 2 => I18N::translate('Oldest at top'), 3 => I18N::translate('Oldest at bottom')), null, $controller->orientation); ?> </td> <td class="optionbox center"> - <?php echo two_state_checkbox("show_full", $controller->showFull());?> + <?php echo two_state_checkbox("show_full", $controller->showFull()); ?> </td> </tr> </table> @@ -201,22 +201,22 @@ echo '<div id="pedigree_chart" class="layout', $controller->orientation, '">'; foreach ($controller->nodes as $i => $node) { // -- draw the box - printf('<div id="sosa_%s" class="shadow" style="%s:%spx; top:%spx">', $i+1, $posn, $node["x"], $node["y"]); + printf('<div id="sosa_%s" class="shadow" style="%s:%spx; top:%spx">', $i + 1, $posn, $node["x"], $node["y"]); if ($controller->orientation === $controller::OLDEST_AT_TOP) { if ($i >= $lastgenStart) { echo $controller->gotoPreviousGen($i); } } else { - if(!$i) { + if (!$i) { echo $controller->get_menu(); } } - print_pedigree_person( $controller->nodes[$i]['indi'], $controller->showFull()); + print_pedigree_person($controller->nodes[$i]['indi'], $controller->showFull()); if ($controller->orientation === $controller::OLDEST_AT_TOP) { - if(!$i) { + if (!$i) { echo $controller->get_menu(); } } else { |
