Example #1
0
    echo '<script type="text/javascript" src="' . CMS_ROOTPATH . 'fontsize.js"></script>';
    // *** Style sheet select ***
    include_once CMS_ROOTPATH . "styles/sss1.php";
    // *** Pop-up menu ***
    echo '<script type="text/javascript" src="' . CMS_ROOTPATH . 'include/popup_menu/popup_menu.js"></script>';
    if (CMS_SPECIFIC == 'Joomla') {
        JHTML::stylesheet('popup_menu.css', CMS_ROOTPATH . 'include/popup_menu/');
    } elseif (CMS_SPECIFIC == 'CMSMS') {
        // Do nothing. stylesheet links outside header won't validate. styling will be managed in CMS
    } else {
        echo '<link rel="stylesheet" type="text/css" href="' . CMS_ROOTPATH . 'include/popup_menu/popup_menu.css">';
    }
    // *** Photo lightbox effect ***
    if ($user['group_pictures'] == 'j') {
        //echo '<script type="text/javascript" src="'.CMS_ROOTPATH.'include/lightbox/js/jquery.min.js"></script>';
        echo '<script type="text/javascript" src="' . CMS_ROOTPATH . 'include/lightbox/js/slimbox2.js"></script>';
        echo '<link rel="stylesheet" href="' . CMS_ROOTPATH . 'include/lightbox/css/slimbox2.css" type="text/css" media="screen">';
    }
    // *** CSS changes for mobile devices ***
    echo '<link rel="stylesheet" media="(max-width: 640px)" href="gedcom_mobile.css">';
    if (!CMS_SPECIFIC) {
        print "</head>\n";
        print "<body onload='checkCookie()'>\n";
    }
    include_once CMS_ROOTPATH . "include/db_functions_cls.php";
    $db_functions = new db_functions();
    $db_functions->set_tree_prefix($tree_prefix_quoted);
    $db_functions->set_tree_id($_SESSION['tree_id']);
    echo '<div class="silverbody">';
}
// *** End of PDF export check ***
include_once CMS_ROOTPATH . "include/marriage_cls.php";
include_once CMS_ROOTPATH . "include/show_sources.php";
include_once CMS_ROOTPATH . "include/show_picture.php";
if ($screen_mode != 'PDF' and $screen_mode != 'ASPDF') {
    //we can't have a menu in pdf...
    include_once CMS_ROOTPATH . "menu.php";
} else {
    include_once CMS_ROOTPATH . "include/db_functions_cls.php";
    $db_functions = new db_functions();
    if (isset($_SESSION['tree_prefix'])) {
        $dataqry = "SELECT * FROM humo_trees LEFT JOIN humo_tree_texts\n\t\t\tON humo_trees.tree_id=humo_tree_texts.treetext_tree_id\n\t\t\tAND humo_tree_texts.treetext_language='" . $selected_language . "'\n\t\t\tWHERE tree_prefix='" . $tree_prefix_quoted . "'";
        @($datasql = $dbh->query($dataqry));
        @($dataDb = @$datasql->fetch(PDO::FETCH_OBJ));
    }
    $tree_prefix = $dataDb->tree_prefix;
    $db_functions->set_tree_prefix($tree_prefix);
    $tree_id = $dataDb->tree_id;
    $db_functions->set_tree_id($tree_id);
}
if ($hourglass === false) {
    $family_id = 1;
    // *** Default value, normally not used... ***
    if (isset($_GET["id"])) {
        $family_id = $_GET["id"];
    }
    if (isset($_POST["id"])) {
        $family_id = $_POST["id"];
    }
}
if ($screen_mode != 'ancestor_chart' and $screen_mode != 'ancestor_sheet' and $screen_mode != 'ASPDF') {
    // *** Source presentation selected by user (title/ footnote or hide sources) ***