summaryrefslogtreecommitdiff
path: root/themes/minimal/templates
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2012-01-25 02:34:01 +0000
committerNigel Osborne <kiwi3685@me.com>2012-01-25 02:34:01 +0000
commitaefcb05b962cb23363b1c724676f33bf75d06ecb (patch)
treee3fdcfbe838a9ffcd129911b01c8ae1a4799fd58 /themes/minimal/templates
parent84752d93cf0e3f443ac7bfe86d1201f22dff2b25 (diff)
downloadwebtrees-aefcb05b962cb23363b1c724676f33bf75d06ecb.tar.gz
webtrees-aefcb05b962cb23363b1c724676f33bf75d06ecb.tar.bz2
webtrees-aefcb05b962cb23363b1c724676f33bf75d06ecb.zip
Further changes to compact (no details) display on charts
Diffstat (limited to 'themes/minimal/templates')
-rw-r--r--themes/minimal/templates/compactbox_template.php33
1 files changed, 22 insertions, 11 deletions
diff --git a/themes/minimal/templates/compactbox_template.php b/themes/minimal/templates/compactbox_template.php
index 0422c7c834..2049c037f5 100644
--- a/themes/minimal/templates/compactbox_template.php
+++ b/themes/minimal/templates/compactbox_template.php
@@ -32,15 +32,26 @@ if (!defined('WT_WEBTREES')) {
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,'">', $shortname, '</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>';
+echo '<div id="out-', $boxID ,'" ', $outBoxAdd, '">
+ <div class="compact_view" style="cursor:url(\''.$WT_IMAGES["zoomin"].'\'),n-resize;">',
+ $thumbnail,
+ '<a onclick="event.cancelBubble=true;" href="individual.php?pid=', $pid, '&amp;ged=', rawurlencode($GEDCOM), '" title="',strip_tags($name),'">
+ <span id="namedef-',$boxID, '" class="name',$style,' ',$classfacts,'">', $shortname, '</span>
+ </a>
+ <p>', $person->getLifeSpan(), '</p>
+ <p>', $birthplace, '</p>
+ </div>';
+ // details for zoom view
+ echo '<br><hr>
+ <a onclick="event.cancelBubble=true;" href="individual.php?pid=', $pid, '&amp;ged=', rawurlencode($GEDCOM), '">',
+ '<span id="namedef-',$boxID, '" class="name',$style,' ',$classfacts,'">', $name.$addname, '</span>
+ <span class="name',$style,'" ',$genderImage,'</span>
+ </a>
+ <br>',
+ $BirthDeath,
+ '<div id="inout-',$boxID,'" style="display: none;">
+ <div id="LOADING-inout-',$boxID,'">',WT_I18N::translate('Loading...'),'</div>
+ </div>';
+ // end of zoom view
+echo '</div>';
?>