[SASHA-Code] SF.net SVN: sasha:[85] trunk/SASHA
Brought to you by:
gphemsley
|
From: <gph...@us...> - 2010-01-26 18:16:23
|
Revision: 85
http://sasha.svn.sourceforge.net/sasha/?rev=85&view=rev
Author: gphemsley
Date: 2010-01-26 18:16:09 +0000 (Tue, 26 Jan 2010)
Log Message:
-----------
Add breadcrumbs to all pages.
Fix title of Home page.
Modified Paths:
--------------
trunk/SASHA/assignments.php
trunk/SASHA/index.php
trunk/SASHA/login.php
trunk/SASHA/register.php
trunk/SASHA/schedule.php
trunk/SASHA/style/default/header.php
trunk/SASHA/style/default/screen.css
trunk/SASHA/tests.php
Modified: trunk/SASHA/assignments.php
===================================================================
--- trunk/SASHA/assignments.php 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/assignments.php 2010-01-26 18:16:09 UTC (rev 85)
@@ -20,7 +20,7 @@
/**
* Specify the title of the page and the tab currently highlighted.
*/
-$page_title = 'Assignments';
+$page_title = array( 'Assignments' );
$tab = 'assignments';
require( ROOT . 'inc/inc.main.php' );
@@ -33,16 +33,16 @@
switch( $mode )
{
case 'add':
- $page_title .= ' :: Add Assignment';
+ $page_title[] = 'Add Assignment';
break;
case 'edit':
- $page_title .= ' :: Edit Assignment';
+ $page_title[] = 'Edit Assignment';
break;
case 'view':
default:
- $page_title .= ' :: View Assignments';
+ $page_title[] = 'View Assignments';
break;
}
Modified: trunk/SASHA/index.php
===================================================================
--- trunk/SASHA/index.php 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/index.php 2010-01-26 18:16:09 UTC (rev 85)
@@ -20,7 +20,7 @@
/**
* Specify the title of the page and the tab currently highlighted.
*/
-$page_title = 'Index';
+$page_title = array( 'Home' );
$tab = 'home';
require( ROOT . 'inc/inc.main.php' );
Modified: trunk/SASHA/login.php
===================================================================
--- trunk/SASHA/login.php 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/login.php 2010-01-26 18:16:09 UTC (rev 85)
@@ -21,7 +21,7 @@
/**
* Specify the title of the page and the tab currently highlighted.
*/
-$page_title = 'Login';
+$page_title = array( 'Login' );
$tab = 'login';
require( ROOT . 'inc/inc.main.php' );
Modified: trunk/SASHA/register.php
===================================================================
--- trunk/SASHA/register.php 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/register.php 2010-01-26 18:16:09 UTC (rev 85)
@@ -21,7 +21,7 @@
/**
* Specify the title of the page and the tab currently highlighted.
*/
-$page_title = 'Register';
+$page_title = array( 'Register' );
$tab = 'register';
require( ROOT . 'inc/inc.main.php' );
Modified: trunk/SASHA/schedule.php
===================================================================
--- trunk/SASHA/schedule.php 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/schedule.php 2010-01-26 18:16:09 UTC (rev 85)
@@ -20,7 +20,7 @@
/**
* Specify the title of the page and the tab currently highlighted.
*/
-$page_title = 'Schedule';
+$page_title = array( 'Schedule' );
$tab = 'schedule';
require( ROOT . 'inc/inc.main.php' );
@@ -33,16 +33,16 @@
switch( $mode )
{
case 'add':
- $page_title .= ' :: Add Schedule';
+ $page_title[] = 'Add Schedule';
break;
case 'edit':
- $page_title .= ' :: Edit Schedule';
+ $page_title[] = 'Edit Schedule';
break;
case 'view':
default:
- $page_title .= ' :: View Schedules';
+ $page_title[] = 'View Schedules';
break;
}
Modified: trunk/SASHA/style/default/header.php
===================================================================
--- trunk/SASHA/style/default/header.php 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/style/default/header.php 2010-01-26 18:16:09 UTC (rev 85)
@@ -55,7 +55,7 @@
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>SASHA :: <?php print $page_title; ?></title>
+ <title>SASHA :: <?php print implode( ' :: ', $page_title ); ?></title>
<link rel="stylesheet" type="text/css" href="<?php print ROOT; ?>style/default/screen.css" media="screen" />
@@ -102,6 +102,10 @@
</ul>
</div>
+<div id="breadcrumbs">
+ <p><?php print implode( ' → ', $page_title ); ?></p>
+</div>
+
<?php
if( !empty( $config['message']['message'] ) )
Modified: trunk/SASHA/style/default/screen.css
===================================================================
--- trunk/SASHA/style/default/screen.css 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/style/default/screen.css 2010-01-26 18:16:09 UTC (rev 85)
@@ -269,11 +269,25 @@
color: white;
}
+#breadcrumbs {
+ width: 96%;
+ margin: 0em auto;
+ font-size: smaller;
+}
+
#global-msg, #page-content {
width: 96%;
margin: 0% auto;
}
+#global-msg p.message {
+ margin-top: 0em;
+}
+
+#global-msg + #page-content > * > *:first-child {
+ margin-top: 2em;
+}
+
#schedule, #assignments, #tests {
margin: 0% auto;
}
@@ -282,13 +296,9 @@
width: 96%;
text-align: center;
margin: auto;
- padding: 0.5em 0em 1em;
+ padding: 0em 0em 1em;
}
-#global-msg + #page-content > #sub-nav {
- margin-top: -1em;
-}
-
#sub-nav ul {
margin: 1em auto;
padding: 0em;
Modified: trunk/SASHA/tests.php
===================================================================
--- trunk/SASHA/tests.php 2010-01-21 01:26:56 UTC (rev 84)
+++ trunk/SASHA/tests.php 2010-01-26 18:16:09 UTC (rev 85)
@@ -20,7 +20,7 @@
/**
* Specify the title of the page and the tab currently highlighted.
*/
-$page_title = 'Tests';
+$page_title = array( 'Tests' );
$tab = 'tests';
require( ROOT . 'inc/inc.main.php' );
@@ -33,16 +33,16 @@
switch( $mode )
{
case 'add':
- $page_title .= ' :: Add Test';
+ $page_title[] = 'Add Test';
break;
case 'edit':
- $page_title .= ' :: Edit Test';
+ $page_title[] = 'Edit Test';
break;
case 'view':
default:
- $page_title .= ' :: View Tests';
+ $page_title[] = 'View Tests';
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|