diff --git a/index.php b/index.php
index 258a31db14..c00b60eec3 100755
--- a/index.php
+++ b/index.php
@@ -11,7 +11,7 @@
// Only this script should have this constant defined. This is used to activate the javascript that
// gives the login name automatic focus in header.inc.html.
/** @todo Couldn't this be done using the $HtmlHeadXtra array? */
-define('DOKEOS_HOMEPAGE', true);
+define('CHAMILO_HOMEPAGE', true);
$language_file = array('courses', 'index');
@@ -125,12 +125,12 @@ else {
}
// The header.
-$header_title = get_lang('Homepage');
-$sitename = api_get_setting('siteName');
-if (!empty($sitename)) {
+/*$header_title = get_lang('Homepage');
+//$sitename = api_get_setting('siteName');
+if (!api_get_user_id()) {
$header_title = null;
-}
-Display::display_header($header_title);
+}*/
+Display::display_header(" ");
/* MAIN CODE */
diff --git a/main/auth/inscription.php b/main/auth/inscription.php
index 21653cab37..28475c87fa 100755
--- a/main/auth/inscription.php
+++ b/main/auth/inscription.php
@@ -11,7 +11,6 @@ if (!empty($_POST['language'])) { //quick hack to adapt the registration form re
$_GET['language'] = $_POST['language'];
}
require_once '../inc/global.inc.php';
-
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php';
require_once api_get_path(CONFIGURATION_PATH).'profile.conf.php';
@@ -51,9 +50,7 @@ if (api_get_setting('allow_terms_conditions') == 'true') {
$tool_name = get_lang('Registration',null,(!empty($_POST['language'])?api_get_valid_language($_POST['language']):$_user['language']));
Display :: display_header($tool_name);
-echo '
';
-echo $tool_name;
-echo '
';
+echo Display::tag('h1', $tool_name);
$home = api_get_path(SYS_PATH).'home/';
if ($_configuration['multiple_access_urls']) {
@@ -601,11 +598,13 @@ if ($form->validate()) {
-
+/*
+
+*/
+?>
+
';
-echo $tool_name;
-echo '
';
+echo Display::tag('h1', $tool_name);
if (isset ($_GET['reset']) && isset ($_GET['id'])) {
$msg = Login::reset_password($_GET["reset"], $_GET["id"], true);
- $msg1= ''.get_lang('Back').'';
+ $msg1= ''.get_lang('Back').'';
echo '
'.$msg1.'
';
-
} else {
-
$form = new FormValidator('lost_password');
$form->addElement('text', 'user', get_lang('LoginOrEmailAddress'), array('size'=>'40'));
- //$form->addElement('text', 'email', get_lang('Email'), array('size'=>'40'));
//$form->applyFilter('email','strtolower');
$form->addElement('style_submit_button', 'submit', get_lang('Send'),'class="save"');
// setting the rules
- $form->addRule('user', ''.get_lang('ThisFieldIsRequired'), 'required');
+ $form->addRule('user', '
'.get_lang('ThisFieldIsRequired').'
', 'required');
if ($form->validate()) {
$values = $form->exportValues();
@@ -84,7 +78,6 @@ if (isset ($_GET['reset']) && isset ($_GET['id'])) {
if ($result && $num_rows > 0) {
$by_username = true;
-// $user = Database::fetch_array($result);
$users = Database::store_result($result);
foreach( $users as $user ) {
if ($userPasswordCrypted != 'none') {
@@ -94,17 +87,15 @@ if (isset ($_GET['reset']) && isset ($_GET['id'])) {
}
}
} else {
- Display::display_error_message(get_lang('NoUserAccountWithThisEmailAddress'));
+ Display::display_error_message(get_lang('NoUserAccountWithThisEmailAddress'));
}
+ //$msg .= '
'.get_lang('Back').'';
+ //echo '
'.$msg.'
';
- $msg .= '
'.get_lang('Back').'';
- echo '
'.$msg.'
';
-
- } else {
- echo '
';
+ } else {
echo get_lang('EnterEmailUserAndWellSendYouPassword');
- echo '
';
+ echo '
';
$form->display();
}
}
-Display :: display_footer();
\ No newline at end of file
+Display::display_footer();
\ No newline at end of file
diff --git a/main/css/base.css b/main/css/base.css
index 105d2c25bf..99d0063c31 100644
--- a/main/css/base.css
+++ b/main/css/base.css
@@ -411,25 +411,30 @@ table.lp_build td.tree {
/* Breadcrumb */
-
.bread {
//border: 1px solid #DEDEDE;
height: 25px;
margin: 0px;
- padding:0px 0px 0px 12px;
+ padding:0px;
}
.bread li {
color: #777777;
float: left;
line-height: 25px;
- padding-left: 0.75em;
+
}
+.bread span {
+ display: block;
+ font-size:11px;
+ padding: 0 15px 0 9px;
+}
+
+
.bread a {
display: block;
- font-size:11px;
- padding: 0 15px 0 10px;
+ font-size:11px;
}
.bread a:hover {
@@ -437,13 +442,23 @@ table.lp_build td.tree {
}
.bread li {
+ display: block;
+
+}
+
+.bread li a {
background: url("crumbs.gif") no-repeat scroll right center transparent;
display: block;
- padding: 0 15px 0 0;
+
background-repeat:no-repeat;
background-position:right;
}
+
+.bread .home {
+ padding:5px 15px 4px 8px;
+}
+
#logo {
height:85px;
overflow:hidden;
diff --git a/main/css/home.png b/main/css/home.png
new file mode 100644
index 0000000000..1e0beab68f
Binary files /dev/null and b/main/css/home.png differ
diff --git a/main/inc/banner.inc.php b/main/inc/banner.inc.php
index 6a6d3f3eab..2dec6c0bc1 100755
--- a/main/inc/banner.inc.php
+++ b/main/inc/banner.inc.php
@@ -4,6 +4,7 @@
/**
* This script contains the actual html code to display the "header"
* or "banner" on top of every Chamilo page.
+ * @todo this should be remove we should only use header.inc.php
*
* @package chamilo.include
*/
@@ -93,14 +94,14 @@ function show_header_1($language_file, $nameTools) {
} elseif (isset($nameTools) && $language_file != 'course_home') {
//Put the name of the user-tools in the header
if (!isset($_user['user_id'])) {
- echo '
';
+ //echo '
';
} elseif (!$noPHP_SELF) {
echo '
';
} else {
echo '
'.$nameTools.'
';
}
} else {
- echo '
';
+ //echo '
';
}
echo '