summaryrefslogtreecommitdiff
path: root/themes/minimal
diff options
context:
space:
mode:
Diffstat (limited to 'themes/minimal')
-rw-r--r--themes/minimal/css-1.6.2/style.css3
-rw-r--r--themes/minimal/footer.php40
-rw-r--r--themes/minimal/header.php103
-rw-r--r--themes/minimal/templates/block_main_temp.php43
-rw-r--r--themes/minimal/templates/block_small_temp.php43
-rw-r--r--themes/minimal/templates/compactbox_template.php45
-rw-r--r--themes/minimal/templates/personbox_template.php52
-rw-r--r--themes/minimal/theme.php93
8 files changed, 3 insertions, 419 deletions
diff --git a/themes/minimal/css-1.6.2/style.css b/themes/minimal/css-1.6.2/style.css
index bcc59b800e..40c1e19d63 100644
--- a/themes/minimal/css-1.6.2/style.css
+++ b/themes/minimal/css-1.6.2/style.css
@@ -4226,8 +4226,7 @@ header nav {
display: block;
}
-.lang-active,
-.theme-active {
+.secondary-menu .active {
font-weight: 900;
}
diff --git a/themes/minimal/footer.php b/themes/minimal/footer.php
deleted file mode 100644
index 74247e1960..0000000000
--- a/themes/minimal/footer.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-// Footer for Minimal theme
-//
-// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
-//
-// Derived from PhpGedView
-// Copyright (C) 2002 to 2009 PGV Development Team.
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-echo '</main>';
-if ($view!='simple') {
- echo '<footer>';
- echo contact_links();
- echo '<p class="logo">';
- echo '<a href="', WT_WEBTREES_URL, '" target="_blank" title="', WT_WEBTREES, ' ', WT_VERSION, '">webtrees</a>';
- echo '</p>';
- if ($WT_TREE && $WT_TREE->getPreference('SHOW_STATS')) {
- echo execution_stats();
- }
- echo '</footer>';
-}
diff --git a/themes/minimal/header.php b/themes/minimal/header.php
deleted file mode 100644
index c2049a48c7..0000000000
--- a/themes/minimal/header.php
+++ /dev/null
@@ -1,103 +0,0 @@
-<?php
-// Header for Minimal theme
-//
-// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
-//
-// Derived from PhpGedView
-// Copyright (C) 2002 to 2009 PGV Development Team.
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-use WT\Auth;
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-// This theme uses the jQuery “colorbox” plugin to display images
-$this
- ->addExternalJavascript(WT_JQUERY_COLORBOX_URL)
- ->addExternalJavascript(WT_JQUERY_WHEELZOOM_URL)
- ->addInlineJavascript('activate_colorbox();')
- ->addInlineJavascript('jQuery.extend(jQuery.colorbox.settings, {width:"85%", height:"85%", transition:"none", slideshowStart:"'. WT_I18N::translate('Play').'", slideshowStop:"'. WT_I18N::translate('Stop').'"})')
- ->addInlineJavascript('
- jQuery.extend(jQuery.colorbox.settings, {
- title: function() {
- var img_title = jQuery(this).data("title");
- return img_title;
- }
- });
- ');
-?>
-<!DOCTYPE html>
-<html <?php echo WT_I18N::html_markup(); ?>>
-<head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <?php echo header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL); ?>
- <title><?php echo WT_Filter::escapeHtml($title); ?></title>
- <link rel="icon" href="<?php echo WT_CSS_URL; ?>favicon.png" type="image/png">
- <link rel="stylesheet" type="text/css" href="<?php echo WT_THEME_URL; ?>jquery-ui-1.11.2/jquery-ui.css">
- <link rel="stylesheet" type="text/css" href="<?php echo WT_CSS_URL; ?>style.css">
- <!--[if IE 8]>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
- <![endif]-->
-</head>
-<body>
- <?php if ($view !== 'simple') { ?>
- <header>
- <h1><?php echo WT_TREE_TITLE; ?></h1>
- <ul class="secondary-menu">
- <?php
- if (Auth::check()) {
- echo '<li><a href="edituser.php">', WT_Filter::escapeHtml(Auth::user()->getRealName()), '</a></li> <li>', logout_link(), '</li>';
- if (WT_USER_CAN_ACCEPT && exists_pending_change()) {
- echo ' <li><a href="#" onclick="window.open(\'edit_changes.php\',\'_blank\',chan_window_specs); return false;" style="color:red;">', WT_I18N::translate('Pending changes'), '</a></li>';
- }
- } else {
- echo '<li>', login_link(), '</li> ';
- }
- ?>
- <?php echo WT_MenuBar::getFavoritesMenu(); ?>
- <?php echo WT_MenuBar::getLanguageMenu(); ?>
- <?php echo WT_MenuBar::getThemeMenu(); ?>
- <li>
- <form style="display:inline;" action="search.php" method="post">
- <input type="hidden" name="action" value="general">
- <input type="hidden" name="ged" value="<?php echo WT_GEDCOM; ?>">
- <input type="hidden" name="topsearch" value="yes">
- <input type="search" name="query" size="20" placeholder="<?php echo WT_I18N::translate('Search'); ?>">
- </form>
- </li>
- </ul>
- <nav>
- <ul class="primary-menu" role="menubar">
- <?php echo WT_MenuBar::getGedcomMenu(); ?>
- <?php echo WT_MenuBar::getMyPageMenu(); ?>
- <?php echo WT_MenuBar::getChartsMenu(); ?>
- <?php echo WT_MenuBar::getListsMenu(); ?>
- <?php echo WT_MenuBar::getCalendarMenu(); ?>
- <?php echo WT_MenuBar::getReportsMenu(); ?>
- <?php echo WT_MenuBar::getSearchMenu(); ?>
- <?php echo implode('', WT_MenuBar::getModuleMenus()); ?>
- </ul>
- </nav>
- </header>
- <?php } ?>
- <?php echo WT_FlashMessages::getHtmlMessages(); ?>
- <main id="content">
diff --git a/themes/minimal/templates/block_main_temp.php b/themes/minimal/templates/block_main_temp.php
deleted file mode 100644
index 0f0b4416e0..0000000000
--- a/themes/minimal/templates/block_main_temp.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-// Template for drawing the main blocks on the portal pages
-//
-// This template expects that the following variables will be set
-// $id - the DOM id for the block div
-// $title - the title of the block
-// $class - the additional class of the block
-// $content - the content of the block
-//
-// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
-//
-// Derived from PhpGedView
-// Copyright (C) 2008 to 2009 PGV Development Team.
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-?>
-<div id="<?php echo $id; ?>" class="block" >
- <div class="blockheader">
- <?php echo $title; ?>
- </div>
- <div class="blockcontent normal_inner_block <?php echo $class; ?>">
- <?php echo $content; ?>
- </div>
-</div>
diff --git a/themes/minimal/templates/block_small_temp.php b/themes/minimal/templates/block_small_temp.php
deleted file mode 100644
index 37e618400c..0000000000
--- a/themes/minimal/templates/block_small_temp.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-// Template for drawing the height-restricted blocks on the portal pages
-//
-// This template expects that the following variables will be set
-// $id - the DOM id for the block div
-// $title - the title of the block
-// $class - the additional class of the block
-// $content - the content of the block
-//
-// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
-//
-// Derived from PhpGedView
-// Copyright (C) 2008 to 2009 PGV Development Team.
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-?>
-<div id="<?php echo $id; ?>" class="block" >
- <div class="blockheader">
- <?php echo $title; ?>
- </div>
- <div class="blockcontent small_inner_block <?php echo $class; ?>">
- <?php echo $content; ?>
- </div>
-</div>
diff --git a/themes/minimal/templates/compactbox_template.php b/themes/minimal/templates/compactbox_template.php
deleted file mode 100644
index 4a3386f801..0000000000
--- a/themes/minimal/templates/compactbox_template.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-// Template for drawing person boxes
-// This template expects that the following variables will be set
-// $pid, $boxID, $icons, $GEDCOM, $style,
-// $name, $outBoxAdd, $addname
-//
-// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
-//
-// Derived from PhpGedView
-// Copyright (C) 2010 PGV Development Team.
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-echo
-'<div data-pid="'. $pid . '"' , $outBoxAdd, '>
- <div class="compact_view">',
- $thumbnail,
- '<a href="individual.php?pid=', $pid, '&amp;ged=', rawurlencode($GEDCOM), '" title="',strip_tags($name.$addname),'">
- <span class="namedef name',$style,'">', $shortname, '</span>
- </a>
- </div>
- <div class="inout2 details',$style,'">',
- $person->getLifeSpan(), '
- </div>
- <div class="inout"></div>
-</div>';
-
diff --git a/themes/minimal/templates/personbox_template.php b/themes/minimal/templates/personbox_template.php
deleted file mode 100644
index b1fdc7ade2..0000000000
--- a/themes/minimal/templates/personbox_template.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-// Template for drawing person boxes
-// This template expects that the following variables will be set
-// $pid, $boxID, $icons, $GEDCOM, $style,
-// $name, $genderImage, $BirthDeath, $outBoxAdd,
-// $addname
-//
-// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
-//
-// Derived from PhpGedView
-// Copyright (C) 2010 PGV Development Team. All rights reserved.
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-echo
-'<div data-pid="'. $pid . '" ',$outBoxAdd,'>
- <div class="noprint icons">', $icons, '</div>',
- '<div class="chart_textbox" style="max-height:', $bheight,'px;">',
- $thumbnail,
- '<a href="individual.php?pid=', $pid, '&amp;ged=', rawurlencode($GEDCOM), '">
- <span class="namedef name',$style,'">',
- $name,
- $genderImage,'
- <span class="details',$style,'">' . $LDSord . '</span>
- </span>
- </a>
- <div class="namedef name',$style,'">',$addname,'</div>
- <div class="inout2 details',$style,'">',
- $BirthDeath,
- '</div>
- </div>
- <div class="inout"></div>
-</div>';
-
diff --git a/themes/minimal/theme.php b/themes/minimal/theme.php
index dd9f5aeafb..52b66b9b28 100644
--- a/themes/minimal/theme.php
+++ b/themes/minimal/theme.php
@@ -2,10 +2,7 @@
// Minimal theme
//
// webtrees: Web based Family History software
-// Copyright (C) 2014 webtrees development team.
-//
-// Derived from PhpGedView
-// Copyright (C) 2002 to 2010 PGV Development Team.
+// Copyright (C) 2015 webtrees development team.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -21,90 +18,4 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-if (!defined('WT_WEBTREES')) {
- header('HTTP/1.0 403 Forbidden');
- exit;
-}
-
-// Theme name - this needs double quotes, as file is scanned/parsed by script
-$theme_name = "minimal"; /* I18N: Name of a theme. */ WT_I18N::translate('minimal');
-
-// A version number in the path prevents browser-cache problems during upgrade
-define('WT_CSS_URL', WT_THEME_URL . 'css-1.6.2/');
-
-$headerfile = WT_THEME_DIR.'header.php';
-$footerfile = WT_THEME_DIR.'footer.php';
-
-//-- variables for image names
-$WT_IMAGES = array(
- // used to draw charts
- 'dline' => WT_CSS_URL . 'images/dline.png',
- 'dline2' => WT_CSS_URL . 'images/dline2.png',
- 'hline' => WT_CSS_URL . 'images/hline.png',
- 'spacer' => WT_CSS_URL . 'images/spacer.png',
- 'vline' => WT_CSS_URL . 'images/vline.png',
-
- // used in button images and javascript
- 'add' => WT_CSS_URL . 'images/add.png',
- 'button_family' => WT_CSS_URL . 'images/buttons/family.png',
- 'minus' => WT_CSS_URL . 'images/minus.png',
- 'plus' => WT_CSS_URL . 'images/plus.png',
- 'remove' => WT_CSS_URL . 'images/remove.png',
- 'search' => WT_CSS_URL . 'images/search.png',
-
- // need different sizes before moving to CSS
- 'default_image_F' => WT_CSS_URL . 'images/silhouette_female.png',
- 'default_image_M' => WT_CSS_URL . 'images/silhouette_male.png',
- 'default_image_U' => WT_CSS_URL . 'images/silhouette_unknown.png',
-);
-
-//-- Variables for the Fan chart
-$fanChart = array(
- 'font' => WT_ROOT . 'includes/fonts/DejaVuSans.ttf',
- 'size' => 7,
- 'color' => '#000000',
- 'bgColor' => '#eeeeee',
- 'bgMColor' => '#cccccc',
- 'bgFColor' => '#dddddd'
-);
-
-// This section defines variables for the pedigree chart
-$bwidth = 250; // width of boxes on pedigree chart
-$bheight = 80; // height of boxes on pedigree chart
-$baseyoffset = 10; // position the entire pedigree tree relative to the top of the page
-$basexoffset = 10; // position the entire pedigree tree relative to the left of the page
-$bxspacing = 0; // horizontal spacing between boxes on the pedigree chart
-$byspacing = 5; // vertical spacing between boxes on the pedigree chart
-$brborder = 1; // box right border thickness
-$linewidth = 1.5; // width of joining lines
-$shadowcolor = ''; // shadow color for joining lines
-$shadowblur = 0; // shadow blur for joining lines
-$shadowoffsetX = 0; // shadowOffsetX for joining lines
-$shadowoffsetY = 0; // shadowOffsetY for joining lines
-
-// Global variables for the descendancy chart
-$Dbaseyoffset = 20; // position the entire descendancy tree relative to the top of the page
-$Dbasexoffset = 20; // position the entire descendancy tree relative to the left of the page
-$Dbxspacing = 5; // horizontal spacing between boxes
-$Dbyspacing = 10; // vertical spacing between boxes
-$Dbwidth = 260; // width of DIV layer boxes
-$Dbheight = 80; // height of DIV layer boxes
-$Dindent = 15; // width to indent descendancy boxes
-$Darrowwidth = 30; // additional width to include for the up arrows
-$Darrowwidth = 15; // additional width to include for the up arrows
-
-// Dimensions for compact version of chart displays
-$cbwidth = 240;
-$cbheight = 50;
-
-// The largest possible area for charts is 300,000 pixels. As the maximum height or width is 1000 pixels
-$WT_STATS_S_CHART_X = 440;
-$WT_STATS_S_CHART_Y = 125;
-$WT_STATS_L_CHART_X = 900;
-// For map charts, the maximum size is 440 pixels wide by 220 pixels high
-$WT_STATS_MAP_X = 440;
-$WT_STATS_MAP_Y = 220;
-
-$WT_STATS_CHART_COLOR1 = "ffffff";
-$WT_STATS_CHART_COLOR2 = "555555";
-$WT_STATS_CHART_COLOR3 = "cccccc";
+return new WT\Theme\Minimal;