diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2012-01-24 22:36:38 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2012-01-24 22:36:38 +0000 |
| commit | c7e56cc78b35bdfae3eeac5dcd6910df979091a6 (patch) | |
| tree | 286a4424fc2a472a206d6b83c6dcb5b9397e6dc7 /themes/minimal/templates | |
| parent | 150f0ecd54048b55659ba1f6002eeca71f248152 (diff) | |
| download | webtrees-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.php | 2 |
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, '&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>
|
