. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\TimelineController; use Fisharebest\Webtrees\Functions\Functions; use Fisharebest\Webtrees\Functions\FunctionsPrint; global $WT_TREE; $basexoffset = 0; $baseyoffset = 0; define('WT_SCRIPT_NAME', 'timeline.php'); require './includes/session.php'; $controller = new TimelineController; $controller ->restrictAccess(Module::isActiveChart($WT_TREE, 'timeline_chart')) ->pageHeader() ->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL) ->addInlineJavascript('autocomplete();'); ?>

people); $half = $count; if ($count > 5) { $half = ceil($count / 2); } $half++; foreach ($controller->people as $p => $indi) { $pid = $indi->getXref(); $col = $p % 6; if ($i === $half) { echo ""; } $i++; ?> people) > 0) { $scalemod = round($controller->scale * .2) + 1; ?>
canShow()) { echo $indi->getSexImage('large'); ?> getFullName(); ?>
getAddName(); ?>
birthyears[$pid])) { ?>

', I18N::translate('This information is private and cannot be shown.'), ''; ?>



pidlinks . "scale=" . ($controller->scale + $scalemod); ?>&ged=getNameUrl(); ?>" class="icon-zoomin" title="">
pidlinks . "scale=" . ($controller->scale - $scalemod); ?>&ged=getNameUrl(); ?>" class="icon-zoomout" title="">

people) > 0) { ?>
px; top: px;">
baseyear . '—'; ?>
scale; if ($mod < 1) { $mod = 1; } for ($i = $controller->baseyear + 1; $i < $controller->topyear; $i++) { if ($i % $mod === 0) { echo '
'; echo $i . '—'; echo '
'; } } echo '
'; echo $controller->topyear . '—'; echo '
'; Functions::sortFacts($controller->indifacts); $factcount = 0; foreach ($controller->indifacts as $fact) { $controller->printTimeFact($fact); $factcount++; } // print the age boxes foreach ($controller->people as $p => $indi) { $pid = $indi->getXref(); $ageyoffset = $baseyoffset + ($controller->bheight * $p); $col = $p % 6; ?>