From 84c0bec36c2c78fcb558f37cb60bb3e8128ffaf5 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 16 Mar 2015 16:51:55 -0500 Subject: [PATCH] Fix show avatar in social tool - refs #7539 --- main/css/base.css | 11 +++++++++++ main/inc/lib/social.lib.php | 2 +- main/template/default/layout/footer.tpl | 13 +++++++++++++ main/template/default/layout/head.tpl | 21 +++++++++++++++++++++ 4 files changed, 46 insertions(+), 1 deletion(-) diff --git a/main/css/base.css b/main/css/base.css index 38236aa925..cc1df51083 100755 --- a/main/css/base.css +++ b/main/css/base.css @@ -5421,3 +5421,14 @@ i.size-32.icon-new-work{ vertical-align: bottom; margin-right: 5px; } + +/** + * Modal for user avatar preview + * @author Angel Fernando Quiroz Campos + */ +#expand-image-modal img { + display: block; + height: auto; + margin: auto; + max-width: 100%; +} diff --git a/main/inc/lib/social.lib.php b/main/inc/lib/social.lib.php index e5ade7042b..e04f50f292 100755 --- a/main/inc/lib/social.lib.php +++ b/main/inc/lib/social.lib.php @@ -618,7 +618,7 @@ class SocialManager extends UserManager //--- User image if ($img_array['file'] != 'unknown.jpg') { - $html .= ' '; + $html .= ' '; } else { $html .= ''; } diff --git a/main/template/default/layout/footer.tpl b/main/template/default/layout/footer.tpl index d09cec513e..ce216d795a 100755 --- a/main/template/default/layout/footer.tpl +++ b/main/template/default/layout/footer.tpl @@ -60,6 +60,19 @@ {# Extra footer configured in admin section, only shown to non-admins #} {{ footer_extra_content }} + +