"; //print $rtype." ".$rowm["m_media"]." ".$pid; if (!displayDetailsById($rowm['m_media'], 'OBJE') || FactViewRestricted($rowm['m_media'], $rowm['m_gedrec'])) { //print $rowm['m_media']." no privacy "; return false; } $styleadd=""; if ($rtype=='new') $styleadd = "change_new"; if ($rtype=='old') $styleadd = "change_old"; // NOTE Start printing the media details $thumbnail = thumbnail_file($rowm["m_file"], true, false, $pid); // $isExternal = stristr($thumbnail,"://"); $isExternal = isFileExternal($thumbnail); $linenum = 0; // NOTE Get the title of the media if (showFactDetails("OBJE", $pid)) { $mediaTitle = $rowm["m_titl"]; $subtitle = get_gedcom_value("TITL", 2, $rowm["mm_gedrec"]); if (!empty($subtitle)) $mediaTitle = $subtitle; $mainMedia = check_media_depth($rowm["m_file"], "NOTRUNC"); if ($mediaTitle=="") $mediaTitle = basename($rowm["m_file"]); print "\n" . "
| ". "\n";
// Get info on how to handle this media file
$mediaInfo = mediaFileInfo($mainMedia, $thumbnail, $rowm["m_media"], $mediaTitle, '');
//-- Thumbnail field
print " ".i18n::translate('Type').": $mediaType"; } print "\n" . " | " . "\n"; print " | ";
//print "";
print $rowm['m_media'];
//print "";
print "";
print " " . $mediaType;
print "";
print " " . "\n"; print $mediaTitle . "\n"; print " | " . "\n";
print "