Remove reduntant/duplicate code between do-download and get-download
Also make this page more interesting when the download is missing from
this specific mirror by give the choise of going to other mirrors to check.
Rather then blindly go to the download file though we go to the same page
on the other mirror so we can check if the file exists there before giving
the link to the actual real file.
This also makes it a lot easier to work with on developers checkouts
This is actually an improvement on the old site, really, because the previous
case of "all php.net sites" is handled by the last item in the dropdown. My
inclination for now is to not worry about the other search modes that were
supported in the old site's search bar: many of them are for subsites that have
their own search, such as bugs.php.net and pecl.php.net, and the others have
tabs on results.php anyway.
Squashed commit of the following:
commit 6e788887da9dc91c6deb0e7fc81526592c0f60a5
Author: Adam Harvey <aharvey@php.net>
Date: Wed Nov 20 11:47:11 2013 -0800
Move the prevnext-container into the breadcrumbs.
commit d58a00dfbf61e7ff57cd350a64c57ab066141d81
Author: Adam Harvey <aharvey@php.net>
Date: Wed Nov 20 11:40:09 2013 -0800
OK, this is minimally functional.
commit 5b4c2e30a27d658d9b5bce4278823277554a2835
Author: Adam Harvey <aharvey@php.net>
Date: Wed Nov 20 11:38:40 2013 -0800
Various fixups.
commit 8bb763d18ac8c0d47094b1681e5acab8b6365b66
Author: Adam Harvey <aharvey@php.net>
Date: Wed Nov 20 11:26:25 2013 -0800
Revert "Kill the next/prev page from the top & move lang chooser"
This reverts commit f613c04078.
Conflicts:
include/header.inc
include/shared-manual.inc
styles/theme.css
This uses Twitter's typeahead.js for the actual autocompletion, and uses our
existing search-index.json and search-description.json files. These are pretty
big, and an obvious fix down the track would be to combine them into one,
preferably much smaller file. mod_gzip should help to some extent, as should
the HTML 5 Local Storage caching I've implemented.
I've also pulled in Hogan.js for templating, since typeahead.js really needs
some sort of templating engine to be useful.
Excluding the JSON files, the added JS dependencies are around 50k
uncompressed. I think this is reasonable, but honestly, it's not really a
significant win over the autocomplete bits of jQuery UI. I've used typeahead.js
more for its multiple section functionality than anything else.
The styling on this is pretty average, but I'm mostly interested in testing
functionality right now. Fixes welcome.
Disables the cookie check too, so people that had it stored will now always
see the new design, even if they opted-out of it originally.
The only way to view the "original" page is adding ?beta=0 to the url