. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\PedigreeController; use Fisharebest\Webtrees\Functions\FunctionsEdit; use Fisharebest\Webtrees\Functions\FunctionsPrint; require 'includes/session.php'; $controller = new PedigreeController; $controller->restrictAccess(Module::isActiveChart($controller->tree(), 'pedigree_chart')); // Only generate the content for interactive users (not search robots). if (Filter::getBool('ajax') && Session::has('initiated')) { $posn = I18N::direction() === 'rtl' ? 'right' : 'left'; $lastgenStart = (int) floor($controller->treesize / 2); echo '
'; //Output the chart foreach ($controller->nodes as $i => $node) { // -- draw the box $flex_direction = ''; if ($controller->orientation === $controller::OLDEST_AT_TOP || $controller->orientation === $controller::OLDEST_AT_BOTTOM) { $flex_direction = ' flex-column'; } printf('
', $i + 1, $posn, $node['x'], $node['y']); if ($controller->orientation === $controller::OLDEST_AT_TOP) { if ($i >= $lastgenStart) { echo $controller->gotoPreviousGen($i); } } else { if (!$i) { echo $controller->getMenu(); } } FunctionsPrint::printPedigreePerson($controller->nodes[$i]['indi']); if ($controller->orientation === $controller::OLDEST_AT_TOP) { if (!$i) { echo $controller->getMenu(); } } else { if ($i >= $lastgenStart) { echo $controller->gotoPreviousGen($i); } } echo '
'; } echo ''; echo '
'; echo ' '; return; } $controller ->addInlineJavascript('$(".wt-page-content").load(location.search + "&ajax=1");') ->pageHeader(); ?>

getPageTitle() ?>

root, ['id' => 'rootid', 'name' => 'rootid']) ?>
tree()->getPreference('MAX_PEDIGREE_GENERATIONS'))), $controller->generations, ['id' => 'PEDIGREE_GENERATIONS', 'name' => 'PEDIGREE_GENERATIONS']) ?>
I18N::translate('Portrait'), 1 => I18N::translate('Landscape'), 2 => I18N::translate('Oldest at top'), 3 => I18N::translate('Oldest at bottom')], $controller->orientation, ['id' => 'orientation', 'name' => 'orientation']) ?>