init();
/* Note:
* if $controller->getLocalFilename() is not set, then an invalid MID was passed in
* if $controller->pid is not set, then a filename was passed in that is not in the gedcom
*/
$filename = $controller->getLocalFilename();
print_header($controller->getPageTitle());
if (!$controller->mediaobject){
echo "", i18n::translate('Unable to find record with ID'), "
";
print_footer();
exit;
}
global $tmb;
// LBox =============================================================================
// Get Javascript variables from lb_config.php ---------------------------
if (WT_USE_LIGHTBOX) {
require WT_ROOT.'modules/lightbox/lb_defaultconfig.php';
require WT_ROOT.'modules/lightbox/functions/lb_call_js.php';
}
// LBox ============================================================================
//The next set of code draws the table that displays information about the person
?>
|
mediaobject->getFullName()); if ($SHOW_ID_NUMBERS && !empty($controller->pid)) print " " . getLRM() . "(".$controller->pid.")" . getLRM(); ?>
mediaobject->getAddName()); ?> mediaobject->isMarkedDeleted()) print "".i18n::translate('This record has been marked for deletion upon admin approval.').""; ?> |
||
|
canDisplayDetails()) {
//Check to see if the File exists in the system. (ie if the file is external, or it exists locally)
if (isFileExternal($filename) || $controller->mediaobject->fileExists()) {
// the file is external, or it exists locally
// attempt to get the image size
$imgwidth = $controller->mediaobject->getWidth()+40;
$imgheight = $controller->mediaobject->getHeight()+150;
if (WT_USE_LIGHTBOX) $dwidth = 200;
else $dwidth = 300;
if ($imgwidth<$dwidth) $dwidth = $imgwidth;
$name = trim($controller->mediaobject->getFullName());
// Get info on how to handle this media file
$mediaInfo = mediaFileInfo($filename, $controller->mediaobject->getThumbnail(), $controller->pid, $name, '', false);
//-- Thumbnail field
echo '';
echo ' ".i18n::translate('Download File')." "; } // else the file is not external and does not exist } else { ?> |
|
|
|
pid);
if (isset($links) && !empty($links)){
?>
|
||