summaryrefslogtreecommitdiff
path: root/themes/minimal/templates
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2012-01-24 22:36:38 +0000
committerNigel Osborne <kiwi3685@me.com>2012-01-24 22:36:38 +0000
commitc7e56cc78b35bdfae3eeac5dcd6910df979091a6 (patch)
tree286a4424fc2a472a206d6b83c6dcb5b9397e6dc7 /themes/minimal/templates
parent150f0ecd54048b55659ba1f6002eeca71f248152 (diff)
downloadwebtrees-c7e56cc78b35bdfae3eeac5dcd6910df979091a6.tar.gz
webtrees-c7e56cc78b35bdfae3eeac5dcd6910df979091a6.tar.bz2
webtrees-c7e56cc78b35bdfae3eeac5dcd6910df979091a6.zip
Add a short name function for compact displays on charts:
It uses given and surname only It abbreviates 3rd and then 2nd given names to initial only, if necessary to fit box size.
Diffstat (limited to 'themes/minimal/templates')
-rw-r--r--themes/minimal/templates/compactbox_template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/minimal/templates/compactbox_template.php b/themes/minimal/templates/compactbox_template.php
index aabd838578..0422c7c834 100644
--- a/themes/minimal/templates/compactbox_template.php
+++ b/themes/minimal/templates/compactbox_template.php
@@ -35,7 +35,7 @@ if (!defined('WT_WEBTREES')) {
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>
+ '<span id="namedef-',$boxID, '" class="name',$style,' ',$classfacts,'">', $shortname, '</span>
</a>
<p style="font-size:90%;margin:0;">', $person->getLifeSpan(), '</p>
<p style="font-size:90%;margin:0;">', $birthplace, '</p>