diff --git a/main/create_course/add_course.php b/main/create_course/add_course.php
index df447e4c0d..a31fdd8e81 100644
--- a/main/create_course/add_course.php
+++ b/main/create_course/add_course.php
@@ -124,15 +124,15 @@ $titular = & $form->add_textfield('tutor_name', array(get_lang('Professor'), nul
if ($course_validation_feature) {
// Description of the requested course.
- $form->addElement('textarea', 'description', get_lang('Description'), array('style' => 'border:#A5ACB2 solid 1px; font-family:arial,verdana,helvetica,sans-serif; font-size:12px', 'rows' => '3', 'cols' => '116'));
+ $form->addElement('textarea', 'description', get_lang('Description'), array('class' => 'span6', 'rows' => '3'));
//$form->addRule('description', get_lang('ThisFieldIsRequired'), 'required');
// Objectives of the requested course.
- $form->addElement('textarea', 'objetives', get_lang('Objectives'), array('style' => 'border:#A5ACB2 solid 1px; font-family:arial,verdana,helvetica,sans-serif; font-size:12px', 'rows' => '3', 'cols' => '116'));
+ $form->addElement('textarea', 'objetives', get_lang('Objectives'), array('class' => 'span6', 'rows' => '3'));
//$form->addRule('objetives', get_lang('ThisFieldIsRequired'), 'required');
// Target audience of the requested course.
- $form->addElement('textarea', 'target_audience', get_lang('TargetAudience'), array('style' => 'border:#A5ACB2 solid 1px; font-family:arial,verdana,helvetica,sans-serif; font-size:12px', 'rows' => '3', 'cols' => '116'));
+ $form->addElement('textarea', 'target_audience', get_lang('TargetAudience'), array('class' => 'span6', 'rows' => '3'));
//$form->addRule('target_audience', get_lang('ThisFieldIsRequired'), 'required');
}
diff --git a/main/css/base.css b/main/css/base.css
index bcebdb779f..990dd1d2da 100644
--- a/main/css/base.css
+++ b/main/css/base.css
@@ -683,10 +683,6 @@ a.personal_agenda:hover, a.personal_agenda:hover {
margin-top: 10px;
}
-.social-background-content {
- width:auto;
-}
-
.group_social_item {
float:left;
width:95%;
@@ -1873,18 +1869,14 @@ div.image-social-content center.friend {
font-size:12px;
font-weight:bold;
}
-.social-menu-text4 {
- font-family:Verdana, Geneva, sans-serif;
+.social-menu-text4 {
color:#000;
- font-weight:normal;
- font-size:10px;
+ font-weight:normal;
vertical-align:bottom;
}
-.social-menu-text-active {
- font-family:Verdana, Geneva, sans-serif;
+.social-menu-text-active {
color:#000;
- font-weight:bold;
- font-size:10px;
+ font-weight:bold;
vertical-align:bottom;
}
.social-menu-title-right {
@@ -2061,10 +2053,7 @@ border-top: 1px solid #E2E2E2;
.social-background-content {
z-index:5;
- position:relative;
- width:185px;
- left:-10px;
- overflow:hidden;
+ text-align: center;
}
.social-background-content .hidden_message {
diff --git a/main/inc/lib/message.lib.php b/main/inc/lib/message.lib.php
index 4627cd19ae..041b14e10a 100644
--- a/main/inc/lib/message.lib.php
+++ b/main/inc/lib/message.lib.php
@@ -213,8 +213,7 @@ class MessageManager
* @param bool sent an email or not (@todo)
* @return bool
*/
- public static function send_message($receiver_user_id, $subject, $content, $file_attachments = array(), $file_comments = array(), $group_id = 0, $parent_id = 0, $edit_message_id = 0, $topic_id = 0) {
- global $charset;
+ public static function send_message($receiver_user_id, $subject, $content, $file_attachments = array(), $file_comments = array(), $group_id = 0, $parent_id = 0, $edit_message_id = 0, $topic_id = 0) {
$table_message = Database::get_main_table(TABLE_MESSAGE);
$group_id = intval($group_id);
$receiver_user_id = intval($receiver_user_id);
@@ -243,8 +242,7 @@ class MessageManager
//Just in case we replace the and \n and \n\r while saving in the DB
$content = str_replace(array("\n", "\n\r"), '
', $content);
- $now = api_get_utc_datetime();
-
+ $now = api_get_utc_datetime();
if (!empty($receiver_user_id) || !empty($group_id)) {
// message for user friend
@@ -263,7 +261,9 @@ class MessageManager
"VALUES ('$user_sender_id', '$receiver_user_id', '1', '".$now."','$clean_subject','$clean_content','$group_id','$parent_id', '".$now."')";
$result = Database::query($query);
$inbox_last_id = Database::insert_id();
- }
+ }
+
+
// Save attachment file for inbox messages
if (is_array($file_attachments)) {
@@ -299,7 +299,7 @@ class MessageManager
$notification = new Notification();
$sender_info = api_get_user_info($user_sender_id);
- if (empty($group_id)) {
+ if (empty($group_id)) {
$notification->save_notification(NOTIFICATION_TYPE_MESSAGE, array($receiver_user_id), $subject, $content, $sender_info);
} else {
$group_info = GroupPortalManager::get_group_data($group_id);
diff --git a/main/inc/lib/pear/HTML/QuickForm.php b/main/inc/lib/pear/HTML/QuickForm.php
index 7b4491c71d..0c7ad6e422 100644
--- a/main/inc/lib/pear/HTML/QuickForm.php
+++ b/main/inc/lib/pear/HTML/QuickForm.php
@@ -63,7 +63,8 @@ $GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'] =
'hierselect' =>array('HTML/QuickForm/hierselect.php', 'HTML_QuickForm_hierselect'),
'autocomplete' =>array('HTML/QuickForm/autocomplete.php', 'HTML_QuickForm_autocomplete'),
'xbutton' =>array('HTML/QuickForm/xbutton.php','HTML_QuickForm_xbutton'),
- 'advanced_settings' =>array('HTML/QuickForm/advanced_settings.php','HTML_QuickForm_advanced_settings')
+ 'advanced_settings' =>array('HTML/QuickForm/advanced_settings.php','HTML_QuickForm_advanced_settings'),
+ 'label' =>array('HTML/QuickForm/label.php','HTML_QuickForm_label'),
);
diff --git a/main/inc/lib/pear/HTML/QuickForm/label.php b/main/inc/lib/pear/HTML/QuickForm/label.php
new file mode 100644
index 0000000000..9aebe42bc8
--- /dev/null
+++ b/main/inc/lib/pear/HTML/QuickForm/label.php
@@ -0,0 +1,64 @@
+
+ * @version Release: 3.2.11
+ * @since 3.0
+ * @deprecated Please use the templates rather than add raw HTML via this element
+ */
+class HTML_QuickForm_label extends HTML_QuickForm_static
+{
+ // {{{ constructor
+
+ /**
+ * Class constructor
+ *
+ * @param string $text raw HTML to add
+ * @access public
+ * @return void
+ */
+ function HTML_QuickForm_label($label, $text) {
+ $this->HTML_QuickForm_static(null, $label, $text);
+ $this->_type = 'html';
+ }
+
+ // }}}
+ // {{{ accept()
+
+ /**
+ * Accepts a renderer
+ *
+ * @param HTML_QuickForm_Renderer renderer object (only works with Default renderer!)
+ * @access public
+ * @return void
+ */
+ function accept(&$renderer) {
+ $renderer->renderHtml($this);
+ }
+
+ function toHtml() {
+ return '