Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header.php #1

Closed
solostyle opened this issue Jun 8, 2011 · 2 comments
Closed

Header.php #1

solostyle opened this issue Jun 8, 2011 · 2 comments
Assignees

Comments

@solostyle
Copy link
Owner

If the header is going to house the midnav for each of the top level divisions (massage, yoga, meditation), then I will probably need a javascript that watches the url and applies style and content changes to the midnav.

  1. when the url has a top-level division in it, show the midnav assoc with it. keep track of which division we're in, and if the url doesn't change the division, then don't retrieve the midnav from the server again. If it does change the division, retrieve the new midnav from the server
  2. highlight the midnav link that is currently assoc with the url
  3. instead of Header.php #1, don't store the midnav links on the server/database. have them hardcoded into the html. so the header not contain the midnav. Each division's page knows how to display its midnav. No SQL or retrieving of the list required. Javascript still for apply same changes to policies.php #2.
@ghost ghost assigned solostyle Jun 8, 2011
@solostyle
Copy link
Owner Author

Yes, I'm implementing options 2 and 3.

@solostyle
Copy link
Owner Author

Done implementing #3 option. Highlighting the current division and page happens in the header, too, by reading the $_SERVER['request_uri"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant