diff options
Diffstat (limited to 'repo.php')
| -rw-r--r-- | repo.php | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -17,6 +17,9 @@ namespace Fisharebest\Webtrees; */ use Fisharebest\Webtrees\Controller\RepositoryController; +use Fisharebest\Webtrees\Functions\FunctionsPrint; +use Fisharebest\Webtrees\Functions\FunctionsPrintFacts; +use Fisharebest\Webtrees\Functions\FunctionsPrintLists; define('WT_SCRIPT_NAME', 'repo.php'); require './includes/session.php'; @@ -34,13 +37,13 @@ if ($controller->record && $controller->record->canShow()) { '<a href="#" onclick="accept_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" onclick="reject_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>' ), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } elseif (Auth::isEditor($controller->record->getTree())) { echo '<p class="ui-state-highlight">', I18N::translate('This repository has been deleted. The deletion will need to be reviewed by a moderator.'), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } } elseif ($controller->record->isPendingAddtion()) { @@ -52,13 +55,13 @@ if ($controller->record && $controller->record->canShow()) { '<a href="#" onclick="accept_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" onclick="reject_changes(\'' . $controller->record->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>' ), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } elseif (Auth::isEditor($controller->record->getTree())) { echo '<p class="ui-state-highlight">', I18N::translate('This repository has been edited. The changes need to be reviewed by a moderator.'), - ' ', help_link('pending_changes'), + ' ', FunctionsPrint::helpLink('pending_changes'), '</p>'; } } @@ -120,12 +123,12 @@ echo '<div id="repo-tabs"> // Print the facts foreach ($facts as $fact) { - print_fact($fact, $controller->record); + FunctionsPrintFacts::printFact($fact, $controller->record); } // new fact link if ($controller->record->canEdit()) { - print_add_new_fact($controller->record->getXref(), $facts, 'REPO'); + FunctionsPrint::printAddNewFact($controller->record->getXref(), $facts, 'REPO'); } echo '</table> </div>'; @@ -133,7 +136,7 @@ echo '<div id="repo-tabs"> // Sources linked to this repository if ($linked_sour) { echo '<div id="source-repo">'; - echo format_sour_table($linked_sour); + echo FunctionsPrintLists::sourceTable($linked_sour); echo '</div>'; } |
