. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\TimelineController; use Fisharebest\Webtrees\Functions\Functions; use Fisharebest\Webtrees\Functions\FunctionsPrint; $basexoffset = 0; $baseyoffset = 0; define('WT_SCRIPT_NAME', 'timeline.php'); require './includes/session.php'; $controller = new TimelineController; $controller ->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;">
px; top: px; font-size: 7pt; text-align: ;"> baseyear . '—'; ?>
scale; if ($mod < 1) { $mod = 1; } for ($i = $controller->baseyear + 1; $i < $controller->topyear; $i++) { if ($i % $mod === 0) { echo "
baseyear) * $controller->scale) - $controller->scale / 2) . "px; font-size: 7pt; text-align:" . (I18N::direction() === 'ltr' ? 'left' : 'right') . ";\">"; echo $i . '—'; echo '
'; } } echo "
topyear}\" style=\"position:absolute; " . (I18N::direction() === 'ltr' ? "left: $basexoffset" : "right: $basexoffset") . "px; top:" . ($baseyoffset + (($controller->topyear - $controller->baseyear) * $controller->scale)) . "px; font-size: 7pt; text-align:" . (I18N::direction() === 'ltr' ? 'left' : 'right') . ";\">"; 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; ?>