summaryrefslogtreecommitdiff
path: root/medialist.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-05-31 21:57:13 +0000
committerfisharebest <fisharebest@gmail.com>2011-05-31 21:57:13 +0000
commit45eed5300936239a4a1b352ab51a9ac02b01b5fd (patch)
tree3a00f7976ecb7259c676cfbc54af2b1fa601d631 /medialist.php
parent425299fa9e862bf0331e78783fcec95e94cf506f (diff)
downloadwebtrees-45eed5300936239a4a1b352ab51a9ac02b01b5fd.tar.gz
webtrees-45eed5300936239a4a1b352ab51a9ac02b01b5fd.tar.bz2
webtrees-45eed5300936239a4a1b352ab51a9ac02b01b5fd.zip
Oops - revert error in previous revision
Diffstat (limited to 'medialist.php')
-rw-r--r--medialist.php58
1 files changed, 22 insertions, 36 deletions
diff --git a/medialist.php b/medialist.php
index d0bcbd24e0..ddee3093e3 100644
--- a/medialist.php
+++ b/medialist.php
@@ -464,44 +464,30 @@ if ($show == 'yes') {
if (WT_USE_LIGHTBOX) {
if (WT_USER_CAN_EDIT) {
- if ($LB_ML_THUMB_LINKS != 'none') {
- echo '<table border=0><tr>';
- // ---------- Edit Media --------------------
- echo '<td class="width33 wrap center font9" valign="top">';
- echo "<a href=\"javascript:;\" title=\"" . WT_I18N::translate('Edit this Media Item\'s Details') . "\" onclick=\" return window.open('addmedia.php?action=editmedia&pid=".$mediaobject->getXref()."&linktoid=', '_blank', 'top=50, left=50, width=600, height=600, resizable=1, scrollbars=1');\">";
- if ($LB_ML_THUMB_LINKS == 'icon' || $LB_ML_THUMB_LINKS == 'both') {
- echo '<img src="'.WT_MODULES_DIR.'lightbox/images/image_edit.gif" alt="" class="icon" title="', WT_I18N::translate('Edit this Media Item\'s Details'), '" />&nbsp;&nbsp;&nbsp;';
- }
- if ($LB_ML_THUMB_LINKS == 'both') {
- echo '<br />';
- }
- if ($LB_ML_THUMB_LINKS == 'both' || $LB_ML_THUMB_LINKS == 'text') {
- echo WT_I18N::translate('Edit Details') ;
- }
- echo '</a>';
- echo '</td>';
- // ---------- Link Media to person, family or source ---------------
- echo '<td class="width33 wrap center font9" valign="top">';
- require WT_ROOT.WT_MODULES_DIR.'lightbox/functions/lb_link.php';
- echo '</td>';
- // ---------- View Media Details (mediaviewer) --------------------
- echo '<td class="width33 wrap center font9" valign="top">';
- echo '<a href="'.$mediaobject->getHtmlUrl().'" title="', WT_I18N::translate('View this Media Item\'s Details
+ echo '<table border=0><tr>';
+ // ---------- Edit Media --------------------
+ echo '<td class="width33 wrap center font9" valign="top">';
+ echo "<a href=\"javascript:;\" title=\"" . WT_I18N::translate('Edit this Media Item\'s Details') . "\" onclick=\" return window.open('addmedia.php?action=editmedia&pid=".$mediaobject->getXref()."&linktoid=', '_blank', 'top=50, left=50, width=600, height=600, resizable=1, scrollbars=1');\">";
+ echo '<img src="'.WT_MODULES_DIR.'lightbox/images/image_edit.gif" alt="" class="icon" title="', WT_I18N::translate('Edit this Media Item\'s Details'), '" />&nbsp;&nbsp;&nbsp;';
+ echo '<br />';
+ echo WT_I18N::translate('Edit Details') ;
+ echo '</a>';
+ echo '</td>';
+ // ---------- Link Media to person, family or source ---------------
+ echo '<td class="width33 wrap center font9" valign="top">';
+ require WT_ROOT.WT_MODULES_DIR.'lightbox/functions/lb_link.php';
+ echo '</td>';
+ // ---------- View Media Details (mediaviewer) --------------------
+ echo '<td class="width33 wrap center font9" valign="top">';
+ echo '<a href="'.$mediaobject->getHtmlUrl().'" title="', WT_I18N::translate('View this Media Item\'s Details
Plus other Media Options - MediaViewer page'), '">';
- if ($LB_ML_THUMB_LINKS == 'icon' || $LB_ML_THUMB_LINKS == 'both') {
- echo '&nbsp;&nbsp;&nbsp;<img src="'.WT_MODULES_DIR.'lightbox/images/image_view.gif" alt="" class="icon" title="', WT_I18N::translate('View this Media Item\'s Details
+ echo '&nbsp;&nbsp;&nbsp;<img src="'.WT_MODULES_DIR.'lightbox/images/image_view.gif" alt="" class="icon" title="', WT_I18N::translate('View this Media Item\'s Details
Plus other Media Options - MediaViewer page'), '" />';
- }
- if ($LB_ML_THUMB_LINKS == 'both') {
- echo '<br />';
- }
- if ($LB_ML_THUMB_LINKS == 'both' || $LB_ML_THUMB_LINKS == 'text') {
- echo WT_I18N::translate('View Details') ;
- }
- echo '</a>';
- echo '</td>';
- echo '</tr></table>';
- }
+ echo '<br />';
+ echo WT_I18N::translate('View Details') ;
+ echo '</a>';
+ echo '</td>';
+ echo '</tr></table>';
// ------------ Linespace ---------------------
echo '<br />';
}