diff --git a/main/admin/user_list.php b/main/admin/user_list.php
index 1ffe240731..1686149df7 100755
--- a/main/admin/user_list.php
+++ b/main/admin/user_list.php
@@ -11,7 +11,6 @@ $language_file = array ('registration','admin');
$cidReset = true;
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
-require_once api_get_path(LIBRARY_PATH).'security.lib.php';
require_once api_get_path(LIBRARY_PATH).'xajax/xajax.inc.php';
global $_configuration;
@@ -861,7 +860,7 @@ $form->addElement('style_submit_button', 'submit',get_lang('Search'),'class="sea
echo '
';
if (api_is_platform_admin()) {
- echo '
'.
+ echo ''.
''.Display::return_icon('new_user.png',get_lang('AddUsers'),'','32').''.
'';
}
diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php
index 5c5dfec4bb..d2183ea566 100755
--- a/main/inc/introductionSection.inc.php
+++ b/main/inc/introductionSection.inc.php
@@ -154,7 +154,7 @@ if ($intro_dispForm) {
echo ' ';
}
-$style_introduction_section = 'style="margin-left:10%;margin-right:10%;"';
+
$thematic_description_html = '';
if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
@@ -177,8 +177,17 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
}
if (!empty($thematic_advance_info)) {
-
- $style_introduction_section = 'style="margin-left:10%;margin-right:10%; margin-bottom:30px;"';
+
+ if ($is_allowed_to_edit) {
+ $style_introduction_section = 'style="margin-left:10%;margin-right:10%; margin-top:30px;" ';
+ } else {
+ if (empty($intro_content)) {
+ $style_introduction_section = 'style="margin-left:10%;margin-right:10%; "';
+ } else {
+ $style_introduction_section = 'style="margin-left:10%;margin-right:10%;" margin-top:30px;';
+ }
+ }
+
$thematic_advance = get_lang('CourseThematicAdvance').' '.$thematic->get_total_average_of_thematic_advances().'%';
if (api_is_allowed_to_edit(null, true)) {
//$thematic_advance = ''.get_lang('CourseThematicAdvance').' '.$thematic->get_total_average_of_thematic_advances().'%';
@@ -215,12 +224,12 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
}
}
-
+$style_introduction_section = 'style="margin-left:10%; margin-right:10%;"';
echo '';
if ($intro_dispDefault) {
//$intro_content = make_clickable($intro_content); // make url in text clickable
$intro_content = text_filter($intro_content); // parse [tex] codes
- if (!empty($intro_content) || !empty($thematic_description_html)) {
+ if (!empty($intro_content)) {
echo "
";
}
}
diff --git a/main/social/profile.php b/main/social/profile.php
index f98bb64bd7..9a812e3857 100755
--- a/main/social/profile.php
+++ b/main/social/profile.php
@@ -81,9 +81,9 @@ function toogle_course (element_html, course_code){
var content = \'social_content\' + id_elem[1];
if (my_image=="nolines_plus.gif") {
$(id_button).attr("src","../img/nolines_minus.gif"); var action = "load_course";
- $("div#"+content).show("slow");
+ $("div#"+content).show("fast");
} else {
- $("div#"+content).hide("slow");
+ $("div#"+content).hide("fast");
$(id_button).attr("src","../img/nolines_plus.gif"); var action = "unload";
return false;
}
@@ -96,7 +96,6 @@ function toogle_course (element_html, course_code){
url: "'.api_get_path(WEB_AJAX_PATH).'social.ajax.php?a=toogle_course",
data: "load_ajax="+id_elem+"&action="+action+"&course_code="+course_code,
success: function(datos) {
- //$("div#"+name_div_id).hide("slow");
$("div#"+content).html(datos);
}
});