. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\FanchartController; use Fisharebest\Webtrees\Functions\FunctionsEdit; use Fisharebest\Webtrees\Functions\FunctionsPrint; define('WT_SCRIPT_NAME', 'fanchart.php'); require './includes/session.php'; $controller = new FanchartController; global $WT_TREE; if (Filter::getBool('img')) { header('Content-Type: image/png'); echo $controller->generateFanChart('png'); return; } $controller ->restrictAccess(Module::isActiveChart($WT_TREE, 'fan_chart')) ->pageHeader() ->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL) ->addInlineJavascript(' autocomplete(); var WT_FANCHART = (function() { jQuery("area") .click(function (e) { e.stopPropagation(); e.preventDefault(); var target = jQuery(this.hash); target // position the menu centered immediately above the mouse click position and // make sure it doesn’t end up off the screen .css({ left: Math.max(0 ,e.pageX - (target.outerWidth()/2)), top: Math.max(0, e.pageY - target.outerHeight()) }) .toggle() .siblings(".fan_chart_menu").hide(); }); jQuery(".fan_chart_menu") .on("click", "a", function(e) { e.stopPropagation(); }); jQuery("#fan_chart") .click(function(e) { jQuery(".fan_chart_menu").hide(); }); return "' . strip_tags($controller->root->getFullName()) . '"; })(); '); ?>
', $controller->error_message, '
'; return; } if ($controller->root) { echo '