diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-09-09 17:55:10 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-09-09 17:55:10 +0100 |
| commit | f9e6fd40c9b1196453317721786a524f20c06652 (patch) | |
| tree | 0f7366cff0dda097b1d395d353620a5c067266e5 /app/Module | |
| parent | e013c5cbdf548f226eefdc97188b91e6eb126589 (diff) | |
| download | webtrees-f9e6fd40c9b1196453317721786a524f20c06652.tar.gz webtrees-f9e6fd40c9b1196453317721786a524f20c06652.tar.bz2 webtrees-f9e6fd40c9b1196453317721786a524f20c06652.zip | |
Add re-order media link to main menu. Fix missing icon
Diffstat (limited to 'app/Module')
| -rw-r--r-- | app/Module/AlbumModule.php | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/app/Module/AlbumModule.php b/app/Module/AlbumModule.php index 8d735e88b6..90088c3ef1 100644 --- a/app/Module/AlbumModule.php +++ b/app/Module/AlbumModule.php @@ -85,19 +85,10 @@ class AlbumModule extends AbstractModule implements ModuleTabInterface { $html = '<div id="' . $this->getName() . '_content">'; //Show Lightbox-Album header Links - if (Auth::isEditor($WT_TREE)) { - $html .= '<table class="facts_table"><tr><td class="descriptionbox rela">'; - // Add a media object - if ($WT_TREE->getPreference('MEDIA_UPLOAD') >= Auth::accessLevel($WT_TREE)) { - $html .= '<a href="edit_interface.php?action=add-media-link&ged=' . $controller->record->getTree()->getNameHtml() . '&xref=' . $controller->record->getXref() . '">' . I18N::translate('Add a media object') . '</a>'; - } - - if (Auth::isManager($WT_TREE) && $this->getMedia()) { - $html .= '<span><a href="edit_interface.php?action=reorder-media&ged=' . $controller->record->getTree()->getNameHtml() . '&xref=' . $controller->record->getXref() . '">'; - $html .= I18N::translate('Re-order media'); - $html .= '</a></span>'; - } - $html .= '</td></tr></table>'; + if (Auth::isEditor($WT_TREE) && $WT_TREE->getPreference('MEDIA_UPLOAD') >= Auth::accessLevel($WT_TREE)) { + $html .= '<div class="descriptionbox">'; + $html .= '<a href="edit_interface.php?action=add-media-link&ged=' . $controller->record->getTree()->getNameHtml() . '&xref=' . $controller->record->getXref() . '">' . I18N::translate('Add a media object') . '</a>'; + $html .= '</div>'; } $html .= '<div class="facts_value">'; |
