summaryrefslogtreecommitdiff
path: root/templates/header.tpl
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2012-12-31 15:27:39 +0000
committerNathan Kinkade <nath@nkinka.de>2012-12-31 15:27:39 +0000
commit0b07d7392c2e269bbc6944cd9ab72900126b9f7c (patch)
tree0a6694a0fa454d6a97b5d20fbde5c4322c337037 /templates/header.tpl
parentcb977f3c5c80f4a4ca58437c7479d2e431a089e0 (diff)
Removed .php extension from URLs.
Diffstat (limited to 'templates/header.tpl')
-rw-r--r--templates/header.tpl18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/header.tpl b/templates/header.tpl
index cd64c20..f8331f3 100644
--- a/templates/header.tpl
+++ b/templates/header.tpl
@@ -4,7 +4,7 @@
<head>{$myHeaders}</head>
-{if $config->_thisScript == "index.php"}
+{if $config->_thisScript == "/"}
<body onload='getElement("searchForm").searchString.focus();'>
{else}
<body>
@@ -20,19 +20,19 @@
{if isset($isLoggedIn)}
<div id='headerRight'>
Hi {$smarty.session.user.username|escape:"html"}.<br />
- [<a href='logout.php'>Logout</a>]
+ [<a href='logout'>Logout</a>]
</div>
{else}
<div id='headerRight'>
- <form action='login.php' method='post' id='loginForm' onsubmit='return validateLoginFields();'>
+ <form action='login' method='post' id='loginForm' onsubmit='return validateLoginFields();'>
<div id='loginLeft'>
Login <input type='text' name='username' id='username' size='15' maxlength='25' /><br />
Password <input type='password' name='password' id='password' size='15' maxlength='25' />
</div>
<div id='loginRight'>
<input type='submit' name='doLogin' value='Login' style='margin-bottom: 1ex;' /><br />
- <a href='register.php'>Register</a>.
+ <a href='register'>Register</a>.
</div>
</form>
</div>
@@ -41,11 +41,11 @@
<div id='headerLinkBar'>
<div id='headerLinks'>
<a href='{$config->_rootUri}' title='Home/Search Page'>Search</a> &nbsp; | &nbsp;
- <a href='about.php' title='About nutridb.org'>About</a> &nbsp; | &nbsp;
- <a href='guide.php' title='A brief guide'>Guide</a> &nbsp; | &nbsp;
- <a href='faq.php' title='FAQ'>FAQ</a> &nbsp; | &nbsp;
- <a href='download.php' title='Download'>Download</a> &nbsp; | &nbsp;
- <a href='contact.php' title='Contact'>Contact</a>
+ <a href='about' title='About nutridb.org'>About</a> &nbsp; | &nbsp;
+ <a href='guide' title='A brief guide'>Guide</a> &nbsp; | &nbsp;
+ <a href='faq' title='FAQ'>FAQ</a> &nbsp; | &nbsp;
+ <a href='download' title='Download'>Download</a> &nbsp; | &nbsp;
+ <a href='contact' title='Contact'>Contact</a>
</div>
<div id='systemMsgs'>{$systemMsg}</div>
</div>