diff options
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">'; |
