get_media_count()>0);
}
// Implement WT_Module_Tab
public function getTabContent() {
global $MULTI_MEDIA, $NAV_MEDIA;
ob_start();
// For Reorder media ------------------------------------
if (WT_USER_CAN_EDIT) {
echo "
";
require_once './includes/media_tab_head.php';
echo "";
}
?>
controller->indi->canDisplayDetails()) {
print "| ";
print_privacy_error();
print " |
";
}
else {
$media_found = print_main_media($this->controller->pid, 0, true);
if (!$media_found) print "| ".i18n::translate('There are no media objects for this individual.')." |
\n";
//-- New Media link
if (!$this->controller->isPrintPreview() && WT_USER_CAN_EDIT && $this->controller->indi->canDisplayDetails()) {
?>
|
|
getName().'_content">'.ob_get_clean().'';
}
/**
* get the number of media items for this person
* @return int
*/
function get_media_count() {
if ($this->mediaCount===null) {
$ct = preg_match("/\d OBJE/", $this->controller->indi->getGedcomRecord());
foreach ($this->controller->indi->getSpouseFamilies() as $k=>$sfam)
$ct += preg_match("/\d OBJE/", $sfam->getGedcomRecord());
$this->mediaCount = $ct;
}
return $this->mediaCount;
}
// Implement WT_Module_Tab
public function canLoadAjax() {
return true;
}
// Implement WT_Module_Tab
public function getPreLoadContent() {
return '';
}
// Implement WT_Module_Tab
public function getJSCallback() {
return '';
}
}