summaryrefslogtreecommitdiff
path: root/themes/minimal/templates
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2012-01-23 21:43:28 +0000
committerNigel Osborne <kiwi3685@me.com>2012-01-23 21:43:28 +0000
commita9b743ada891297454eed388696f9d25e79ca487 (patch)
tree41ae294229dc6d78e1ac8030da942c4aed893b37 /themes/minimal/templates
parent979f953581c321029834be96f7118a0a541bdb19 (diff)
downloadwebtrees-a9b743ada891297454eed388696f9d25e79ca487.tar.gz
webtrees-a9b743ada891297454eed388696f9d25e79ca487.tar.bz2
webtrees-a9b743ada891297454eed388696f9d25e79ca487.zip
Changes to the non-detail chart displays
Diffstat (limited to 'themes/minimal/templates')
-rw-r--r--themes/minimal/templates/compactbox_template.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/themes/minimal/templates/compactbox_template.php b/themes/minimal/templates/compactbox_template.php
new file mode 100644
index 0000000000..aabd838578
--- /dev/null
+++ b/themes/minimal/templates/compactbox_template.php
@@ -0,0 +1,46 @@
+<?php
+// Template for drawing person boxes
+// This template expects that the following variables will be set
+// $pid, $boxID, $icons, $GEDCOM, $style,
+// $name, $classfacts, $genderImage, $BirthDeath, $isF, $outBoxAdd,
+// $addname, $showid, $float
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2012 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// $Id: personbox_template.php 13295 2012-01-20 16:55:25Z greg $
+
+if (!defined('WT_WEBTREES')) {
+ header('HTTP/1.0 403 Forbidden');
+ exit;
+}
+
+echo '<div id="out-', $boxID ,'" ', $outBoxAdd, '">',
+ $thumbnail,
+ '<a onclick="event.cancelBubble=true;" href="individual.php?pid=', $pid, '&amp;ged=', rawurlencode($GEDCOM), '">',
+ '<span id="namedef-',$boxID, '" class="name',$style,' ',$classfacts,'">', $name, '</span>
+ </a>
+ <p style="font-size:90%;margin:0;">', $person->getLifeSpan(), '</p>
+ <p style="font-size:90%;margin:0;">', $birthplace, '</p>
+ <div id="inout-',$boxID,'" style="display: none;">
+ <div id="LOADING-inout-',$boxID,'">',WT_I18N::translate('Loading...'),'</div>
+ </div>
+</div>';
+?>