. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\AncestryController; use Fisharebest\Webtrees\Functions\FunctionsEdit; require 'includes/session.php'; $controller = new AncestryController; $controller->restrictAccess(Module::isActiveChart($controller->tree(), 'ancestors_chart')); // Only generate the content for interactive users (not search robots). if (Filter::getBool('ajax') && Session::has('initiated')) { echo $controller->getChart(); echo $controller->getJavascript(); return; } $ajax_url = Html::url('ancestry.php', [ 'rootid' => $controller->root->getXref(), 'ged' => $controller->root->getTree()->getName(), 'PEDIGREE_GENERATIONS' => $controller->generations, 'chart_style' => $controller->chart_style, 'show_cousins' => $controller->show_cousins, 'ajax' => 1, ]); $controller->pageHeader(); ?>

getPageTitle() ?>

root, ['id' => 'rootid', 'name' => 'rootid']) ?>
tree()->getPreference('MAX_PEDIGREE_GENERATIONS'))), $controller->generations, ['id' => 'PEDIGREE_GENERATIONS', 'name' => 'PEDIGREE_GENERATIONS']) ?>
I18N::translate('List'), '1' => I18N::translate('Booklet'), '2' => I18N::translate('Individuals'), '3' => I18N::translate('Families')], $controller->chart_style, true, ['onchange' => '$("input[name=show_cousins]").prop("disabled", $(this).val() !== "1")']) ?> 'show_cousins', 'disabled' => $controller->chart_style !== '1']) ?>