From 4a8997ed54320b005af07ac6d012f61b753ac7dd Mon Sep 17 00:00:00 2001 From: Imanol Losada Date: Mon, 27 Oct 2014 18:56:56 -0500 Subject: [PATCH] Moved delete link below photograph. This is the best place when the window is so narrow - refs #5637 --- main/inc/lib/social.lib.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/main/inc/lib/social.lib.php b/main/inc/lib/social.lib.php index dee980c85a..3e0378a60d 100755 --- a/main/inc/lib/social.lib.php +++ b/main/inc/lib/social.lib.php @@ -1313,7 +1313,7 @@ class SocialManager extends UserManager $media = ''; $media .= '
'; - $media .= '
'; + $media .= ''; $media .= '
'; $media .= '
'; + if ($visibility) { + $media .= '
'; + $media .= '
'.get_lang('SocialMessageDelete').'
'; + $media .= '
'; + } $media .= '
'; $media .= ''.Security::remove_XSS($message['content']).''; $media .= '
'; @@ -1436,7 +1436,7 @@ class SocialManager extends UserManager $html = ''; $html .= '
'; - $html .= '
'; + $html .= '
'; $html .= '
'; $html .= ''.''.$nameCompleteAuthor.''; @@ -1450,13 +1450,15 @@ class SocialManager extends UserManager $html .= '
'; $html .= ''.$date.''; $html .= '
'; - $html .= '
'; - $html .= $htmlDelete; - $html .= '
'; $html .= '
'; $html .= '
'; $html .= $wallImage; $html .= '
'; + if ($visibility) { + $html .= '
'; + $html .= $htmlDelete; + $html .= '
'; + } $html .= '
'; $html .= ''.Security::remove_XSS(self::readContentWithOpenGraph($message['content'])).''; $html .= '
';