diff --git a/index.php b/index.php
index f22f40a6ee..327e43a0a6 100755
--- a/index.php
+++ b/index.php
@@ -295,12 +295,9 @@ if (!api_is_anonymous()) {
echo show_right_block(get_lang('Profile'), $profile_content);
}
-
-
// Display right menu: language form, login section + useful weblinks.
-echo '
';
echo '';
@@ -425,10 +422,13 @@ function display_dashboard_link() {
* @todo does $_plugins need to be global?
*/
function display_anonymous_right_menu() {
- global $loginFailed, $_plugins, $_user, $menu_navigation;
+ global $loginFailed, $_plugins, $_user, $menu_navigation, $home, $home_old;
- $platformLanguage = api_get_setting('platformLanguage');
- $sys_path = api_get_path(SYS_PATH);
+ $platformLanguage = api_get_setting('platformLanguage');
+ $sys_path = api_get_path(SYS_PATH);
+ $user_selected_language = api_get_interface_language();
+
+ echo '';
}
+ }
+ echo '';
+
+ // Notice
- // Deleting the myprofile link.
+ $home_notice = @(string)file_get_contents($sys_path.$home.'home_notice_'.$user_selected_language.'.html');
+ if (empty($home_notice)) {
+ $home_notice = @(string)file_get_contents($sys_path.$home.'home_notice.html');
+ }
+
+ if (!empty($home_notice)) {
+ $home_notice = api_to_system_encoding($home_notice, api_detect_encoding(strip_tags($home_notice)));
+ echo show_right_block('', $home_notice, 'note');
+ }
+
+
+
+ if (isset($_SESSION['_user']['user_id']) && $_SESSION['_user']['user_id'] != 0) {
+ // Deleting the myprofile link.
if (api_get_setting('allow_social_tool') == 'true') {
unset($menu_navigation['myprofile']);
}
- if (!empty($menu_navigation)) {
- echo '';
+ $content .= '';
+ echo show_right_block(get_lang('MainNavigation'), $content);
}
- }
+ }
// Help section.
/* Hide right menu "general" and other parts on anonymous right menu. */
-
- $user_selected_language = api_get_interface_language();
- global $home, $home_old;
+
if (!isset($user_selected_language)) {
$user_selected_language = $platformLanguage;
}
$home_menu = @(string)file_get_contents($sys_path.$home.'home_menu_'.$user_selected_language.'.html');
- /*if (empty($home_menu)) {
- $home_menu = @(string)file_get_contents($sys_path.$home_old.'home_menu_'.$user_selected_language.'.html');
- }
- if (empty($home_menu)) {
- $home_menu = @(string)file_get_contents($sys_path.$home.'home_menu.html');
+ if (!empty($home_menu)) {
+ $home_menu_content .= '';
+ echo show_right_block(get_lang('MenuGeneral'), $home_menu_content);
}
- if (empty($home_menu)) {
- $home_menu = @(string)file_get_contents($sys_path.$home_old.'home_menu.html');
- }*/
- if (!empty($home_menu)) {
- echo '';
- }
-
+ //Plugin
+
if ($_user['user_id'] && api_number_of_plugins('campushomepage_menu') > 0) {
- echo '';
+ ob_start();
api_plugin('campushomepage_menu');
- echo '
';
- }
-
- // Includes for any files to be displayed below anonymous right menu.
-
- $home_notice = @(string)file_get_contents($sys_path.$home.'home_notice_'.$user_selected_language.'.html');
- if (empty($home_notice)) {
- $home_notice = @(string)file_get_contents($sys_path.$home.'home_notice.html');
- }
- if (!empty($home_notice)) {
- echo '';
- $home_notice = api_to_system_encoding($home_notice, api_detect_encoding(strip_tags($home_notice)));
- echo $home_notice;
- echo '
';
+ $plugin_content = ob_get_contents();
+ ob_end_clean();
+ echo show_right_block('', $plugin_content);
}
}
@@ -908,17 +902,15 @@ function get_courses_of_user($user_id) {
}
-function show_right_block($title, $content) {
- $html = '';
-
+function show_right_block($title, $content, $class = '') {
+ $html = '';
$html.= '';
return $html;
-}
-
-
+}
\ No newline at end of file
diff --git a/main/admin/configure_homepage.php b/main/admin/configure_homepage.php
index 1feccf1f1e..cbc2914004 100755
--- a/main/admin/configure_homepage.php
+++ b/main/admin/configure_homepage.php
@@ -899,7 +899,7 @@ switch ($action) {
|
|
diff --git a/main/css/base.css b/main/css/base.css
index a44f033c4b..775630db76 100644
--- a/main/css/base.css
+++ b/main/css/base.css
@@ -728,3 +728,6 @@ div.system_announcement {
width: 98%;
}
+.note {
+ background-color: #FFFF96;
+}
\ No newline at end of file
diff --git a/main/css/base_classic.css b/main/css/base_classic.css
index fb001a2f4b..9bc6fa4df2 100644
--- a/main/css/base_classic.css
+++ b/main/css/base_classic.css
@@ -18,9 +18,16 @@
}
#header4 {
- width: 100%;
+ width: 98%;
float:left;
- padding-left:15px;
+ padding-left:20px;
padding-right:0px;
}
+.menu , #menu {
+ min-height: 90px;
+}
+
+.message-body {
+ font-size:100%;
+}
\ No newline at end of file
diff --git a/main/css/chamilo/default.css b/main/css/chamilo/default.css
index 1d7b059603..fdab477f97 100755
--- a/main/css/chamilo/default.css
+++ b/main/css/chamilo/default.css
@@ -1422,7 +1422,7 @@ a.nobold:hover {
font-size: 12px;
line-height: 14px;
font-family: verdana, arial, helvetica, sans-serif;
- background-color: #E5EDF9;
+ background-color: #FFFF96;
color: #666666;
border: 1px solid #bbb;
padding: 10px 10px 10px 10px;
diff --git a/main/inc/banner.inc.php b/main/inc/banner.inc.php
index e2907e5dd5..db1789d6ad 100755
--- a/main/inc/banner.inc.php
+++ b/main/inc/banner.inc.php
@@ -39,10 +39,8 @@ echo '';
}
+ return $menu_navigation;
}
//Header 4
@@ -589,4 +590,9 @@ function show_header_4($interbreadcrumb, $language_file, $nameTools) {
}
}
echo '';
+}
+
+
+function load_navigation_menu() {
+
}
\ No newline at end of file
diff --git a/user_portal.php b/user_portal.php
index b0f4ad2e45..675a4bf4df 100755
--- a/user_portal.php
+++ b/user_portal.php
@@ -641,7 +641,8 @@ if (api_get_setting('allow_social_tool') == 'true') {
// Main navigation section.
// Tabs that are deactivated are added here.
if (!empty($menu_navigation)) {
- $main_navigation_content .= '