From f35d202de596d4cc6d2bbfe7450f8361ff1845e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Arag=C3=B3n?= Date: Wed, 27 Feb 2019 11:50:58 -0500 Subject: [PATCH] fix social wall - refs BT#15171 --- app/Resources/public/css/base.css | 4 +- index.php | 2 - main/inc/lib/pear/HTML/QuickForm/button.php | 53 ++++++++++++--------- main/inc/lib/pear/HTML/QuickForm/file.php | 6 --- main/inc/lib/social.lib.php | 15 ++++-- 5 files changed, 45 insertions(+), 35 deletions(-) diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index 2947f0b320..1be730e0ea 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -2847,7 +2847,7 @@ form .formw .freeze { } .js .input-file-trigger { display: inline-block; - padding: 5px 15px; + padding: 6px 15px; background: #f5f6f7; color: #7a7a7a; font-size: 12px; @@ -2862,7 +2862,7 @@ form .formw .freeze { top: 0; left: 0; opacity: 0; padding: 5px 0; - + width: 100%; } .js .input-file:hover + .input-file-trigger, .js .input-file:focus + .input-file-trigger, diff --git a/index.php b/index.php index c7708887c1..3ec41266e4 100755 --- a/index.php +++ b/index.php @@ -195,7 +195,5 @@ if (isset($_GET['firstpage'])) { api_delete_firstpage_parameter(); } -var_dump(api_get_user_info()); - $controller->setGradeBookDependencyBar(api_get_user_id()); $controller->tpl->display_two_col_template(); diff --git a/main/inc/lib/pear/HTML/QuickForm/button.php b/main/inc/lib/pear/HTML/QuickForm/button.php index 9c496d47ca..b6491eb857 100755 --- a/main/inc/lib/pear/HTML/QuickForm/button.php +++ b/main/inc/lib/pear/HTML/QuickForm/button.php @@ -211,6 +211,7 @@ class HTML_QuickForm_button extends HTML_QuickForm_input public function getTemplate($layout) { $size = $this->getColumnsSize(); + $attributes = $this->getAttributes(); if (empty($size)) { $size = array(2, 8, 2); @@ -234,30 +235,38 @@ class HTML_QuickForm_button extends HTML_QuickForm_input '; break; case FormValidator::LAYOUT_HORIZONTAL: - return ' -
- -
+ if (isset($attributes['custom']) && $attributes['custom'] == true) { + $template = ' {icon} {element} - - -

{label_2}

- - - - {error} - -
-
- - {label_3} - -
-
'; + '; + } else { + $template = ' +
+ +
+ {icon} + {element} + + +

{label_2}

+ + + + {error} + +
+
+ + {label_3} + +
+
'; + } + return $template; break; case FormValidator::LAYOUT_BOX: case FormValidator::LAYOUT_BOX_NO_LABEL: diff --git a/main/inc/lib/pear/HTML/QuickForm/file.php b/main/inc/lib/pear/HTML/QuickForm/file.php index 92a9d8a1c6..b710c4c3c8 100755 --- a/main/inc/lib/pear/HTML/QuickForm/file.php +++ b/main/inc/lib/pear/HTML/QuickForm/file.php @@ -401,9 +401,6 @@ class HTML_QuickForm_file extends HTML_QuickForm_input case FormValidator::LAYOUT_HORIZONTAL: if (isset($attributes['custom']) && $attributes['custom'] == true) { $template = ' -
-
-
{element}

-
-
-