mediaTable() public static méthode

Print a table of media objects
public static mediaTable ( Fisharebest\Webtrees\Media[] $media_objects ) : string
$media_objects Fisharebest\Webtrees\Media[]
Résultat string
Exemple #1
0
    ?>
			<div id="linked-families">
				<?php 
    echo FunctionsPrintLists::familyTable($linked_fam);
    ?>
			</div>
		<?php 
}
?>

		<?php 
if ($linked_obje) {
    ?>
			<div id="linked-media">
				<?php 
    echo FunctionsPrintLists::mediaTable($linked_obje);
    ?>
			</div>
		<?php 
}
?>

		<?php 
if ($linked_sour) {
    ?>
			<div id="linked-sources">
				<?php 
    echo FunctionsPrintLists::sourceTable($linked_sour);
    ?>
			</div>
		<?php 
Exemple #2
0
        echo GedcomTag::getLabel('OBJE');
        echo '</td><td class="optionbox">';
        echo '<a href="#" onclick="window.open(\'addmedia.php?action=showmediaform&amp;linktoid=', $controller->record->getXref(), '\', \'_blank\', edit_window_specs); return false;">', I18N::translate('Add a new media object'), '</a>';
        echo FunctionsPrint::helpLink('OBJE');
        echo '<br>';
        echo '<a href="#" onclick="window.open(\'inverselink.php?linktoid=', $controller->record->getXref(), '&amp;linkto=source\', \'_blank\', find_window_specs); return false;">', I18N::translate('Link to an existing media object'), '</a>';
        echo '</td></tr>';
    }
}
echo '</table>
	</div>';
// Individuals linked to this source
if ($linked_indi) {
    echo '<div id="indi-sources">', FunctionsPrintLists::individualTable($linked_indi), '</div>';
}
// Families linked to this source
if ($linked_fam) {
    echo '<div id="fam-sources">', FunctionsPrintLists::familyTable($linked_fam), '</div>';
}
// Media Items linked to this source
if ($linked_obje) {
    echo '<div id="media-sources">', FunctionsPrintLists::mediaTable($linked_obje), '</div>';
}
// Shared Notes linked to this source
if ($linked_note) {
    echo '<div id="note-sources">', FunctionsPrintLists::noteTable($linked_note), '</div>';
}
echo '</div>';
//close div "source-tabs"
echo '</div>';
//close div "source-details"