Implemented vanity URLs removing .php suffix

This commit is contained in:
Lukas Eder 2013-08-27 18:22:34 +02:00
parent b244a512bb
commit 4e6a01cb57
3 changed files with 17 additions and 17 deletions

View File

@ -49,8 +49,8 @@ The jOOQ roadmap plans for:
Find release notes for currently maintained branches here:
</p>
<ul>
<li><a href="notes.php?version=<?=preg_replace('/(\\d+\\.\\d+)\\.\\d+(-RC\\d+)?/', '$1', $version)?>" title="Release notes for the latest jOOQ version">The <?=$minorVersion?> branch (the latest version)</a></li>
<li><a href="notes.php?version=3.0" title="Release notes for the 3.0 jOOQ branch">The 3.0 branch</a></li>
<li><a href="notes?version=<?=preg_replace('/(\\d+\\.\\d+)\\.\\d+(-RC\\d+)?/', '$1', $version)?>" title="Release notes for the latest jOOQ version">The <?=$minorVersion?> branch (the latest version)</a></li>
<li><a href="notes?version=3.0" title="Release notes for the 3.0 jOOQ branch">The 3.0 branch</a></li>
</ul>
<h3>2.x release notes</h3>
@ -58,13 +58,13 @@ Find release notes for currently maintained branches here:
Find release notes for past branches here:
</p>
<ul>
<li><a href="notes.php?version=2.6" title="Release notes for the 2.6 jOOQ branch">The 2.6 branch</a></li>
<li><a href="notes.php?version=2.5" title="Release notes for the 2.5 jOOQ branch">The 2.5 branch</a></li>
<li><a href="notes.php?version=2.4" title="Release notes for the 2.4 jOOQ branch">The 2.4 branch</a></li>
<li><a href="notes.php?version=2.3" title="Release notes for the 2.3 jOOQ branch">The 2.3 branch</a></li>
<li><a href="notes.php?version=2.2" title="Release notes for the 2.2 jOOQ branch">The 2.2 branch</a></li>
<li><a href="notes.php?version=2.1" title="Release notes for the 2.1 jOOQ branch">The 2.1 branch</a></li>
<li><a href="notes.php?version=2.0" title="Release notes for the 2.0 jOOQ branch">The 2.0 branch</a></li>
<li><a href="notes?version=2.6" title="Release notes for the 2.6 jOOQ branch">The 2.6 branch</a></li>
<li><a href="notes?version=2.5" title="Release notes for the 2.5 jOOQ branch">The 2.5 branch</a></li>
<li><a href="notes?version=2.4" title="Release notes for the 2.4 jOOQ branch">The 2.4 branch</a></li>
<li><a href="notes?version=2.3" title="Release notes for the 2.3 jOOQ branch">The 2.3 branch</a></li>
<li><a href="notes?version=2.2" title="Release notes for the 2.2 jOOQ branch">The 2.2 branch</a></li>
<li><a href="notes?version=2.1" title="Release notes for the 2.1 jOOQ branch">The 2.1 branch</a></li>
<li><a href="notes?version=2.0" title="Release notes for the 2.0 jOOQ branch">The 2.0 branch</a></li>
</ul>
<p>

View File

@ -111,7 +111,7 @@ function manualHeader($isSingle, $forVersion) {
track('email/clicked');
$.ajax({
type: "POST",
url: '<?=$root?>/registration-email-save.php',
url: '<?=$root?>/registration-email-save',
data: $("#registration-email-form").serialize(),
success: function(data, textStatus, jqXHR) {
fade($email);
@ -166,7 +166,7 @@ function manualHeader($isSingle, $forVersion) {
registration(true, true);
});
if ($registration && document.URL.indexOf("download.php") >= 0) {
if ($registration && document.URL.indexOf("download") >= 0) {
if (!$.cookie("jooq-registration-email") ||
!$.cookie("jooq-registration-survey")) {
@ -267,19 +267,19 @@ function manualHeader($isSingle, $forVersion) {
<a href="<?=$root?>/" title="jOOQ Home Page">Start</a>
</div>
<div class="navigation-item-left <?php if ($menu == 'learn') print 'navigation-item-active'?>">
<a href="<?=$root?>/learn.php" title="Learn about jOOQ">Learn</a>
<a href="<?=$root?>/learn" title="Learn about jOOQ">Learn</a>
</div>
<div class="navigation-item-left <?php if ($menu == 'download') print 'navigation-item-active'?>">
<a href="<?=$root?>/download.php" title="Download jOOQ">Download</a>
<a href="<?=$root?>/download" title="Download jOOQ">Download</a>
</div>
<div class="navigation-item-left <?php if ($menu == 'community') print 'navigation-item-active'?>">
<a href="<?=$root?>/community.php" title="See who's behind jOOQ and contribute">Community</a>
<a href="<?=$root?>/community" title="See who's behind jOOQ and contribute">Community</a>
</div>
<div class="navigation-item-left <?php if ($menu == 'news') print 'navigation-item-active'?>">
<a href="<?=$root?>/news.php" title="What's new around jOOQ">News</a>
<a href="<?=$root?>/news" title="What's new around jOOQ">News</a>
</div>
<div class="navigation-item-left <?php if ($menu == 'donate') print 'navigation-item-active'?>">
<a href="<?=$root?>/donate.php" title="Show some love to the jOOQ developer">Donate</a>
<a href="<?=$root?>/donate" title="Show some love to the jOOQ developer">Donate</a>
</div>
</div>
</div>

View File

@ -4,7 +4,7 @@ function getH1() {
return 'Licensing';
}
function getActiveMenu() {
return "";
return "support";
}
function printContent() {
global $root;