1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Commit Graph

49 Commits

Author SHA1 Message Date
Sherif Ramadan
8fb7c3de19 Modified the response handling from the API on master to return a useful error message in case of failure for the voting feature. 2012-12-12 12:49:10 -05:00
Sherif Ramadan
61152c6ae9 Added new user notes voting features. This provides users to vote on user contributed notes in the manual throughout php.net. 2012-12-12 10:14:37 -05:00
Levi Morrison
ee7acf4ae0 Major homepage rework. The old layout prioritized all the wrong things. This rework is not complete, but after surveying multiple people it does seem better already, so I decided to push.
Also fixed many small usability issues such as links not changing appearance on focus, but do change on hover.
2012-07-03 17:24:07 -06:00
Levi Morrison
b63bc20ae5 Simplified Download PHP portion of homepage and corresponding portion of downloads.php 2012-07-03 12:55:31 -06:00
Levi Morrison
b6894f931a Halfed the scroll time for TOC comments. It caused a stutter in the scroll on many pages. The faster scroll seems to eliminate the problem. 2012-06-11 15:43:27 -06:00
Peter Cowburn
b7b4431bf9 wrap "{Edit|Report bug on} this page" footer links
The recent increase in global font size caused these menu links to
mush into the copyright line.
2012-06-11 22:00:52 +01:00
Levi Morrison
3e506b0719 Fixed a logical error I made a while back. You had to click twice instead of ocne to scroll to a parameter's definition. 2012-06-11 13:05:21 -06:00
Levi Morrison
d6da00ef28 Improved visual styles for the dropdown search items. 2012-05-24 16:27:37 -06:00
Levi Morrison
719517cdf7 Decreased slide time on main menu from 200ms to 100ms as per usability expert Jakob Nielsen's advice for large drop-down menus. 2012-05-24 15:29:55 -06:00
Levi Morrison
135b3b2aea Generic code cleanup. Side effect is that the code runs slightly faster. 2012-05-24 15:22:25 -06:00
Levi Morrison
e1c8ca6182 Restored the ability to click on a parameter in the function definition and it would scroll to the parameter description. 2012-05-24 15:05:34 -06:00
Paul Dragoonis
f93348739b Adding new links to the TOC Sidebar. Report a bug and Edit this Page links. 2011-10-14 19:03:01 +00:00
Stewart Lord
2794cd6d2e Corrected mime type of thumbnail images in data URI. 2011-09-22 06:14:06 +00:00
Stewart Lord
86c75aca35 Made elephpant image banner dynamic.
Elephpant images are pulled from flickr via the php-master server hourly.
The web site now provides a simple PHP script to serve a random sampling
of these images in JSON format.

The web browser now loads the elephpant images via JavaScript, requesting
only the number of images that are required to fill the viewport. Images
are inserted into the page using the data URI scheme. This ensures that 
only one http request is needed to load all of the required images.

If the browser window resizes, the JavaScript will fetch additional images
as required to fill out the viewport again. There is a slight delay built
in (250ms) to avoid excessive requests while the window is being resized.

Some browsers (e.g. older versions of MSIE) do not support the data URI
scheme. For these browsers we may wish to provide a fallback mechanism of
aggregating the images (e.g. MHTML, aka MIME HTML).

If the images fail to load, the elephant banner is hidden automatically.
2011-09-21 04:33:01 +00:00
Paul Dragoonis
bc33a70f23 typo fix on a comment. refl to ref 2011-01-10 22:02:09 +00:00
Paul Dragoonis
4ec4c2a9a3 Patch to allow you to click on the arrow on the downloads area and it taks you to the default .gz download. Unable to implement with HTML5 so using JS to workaround the issue until a more elegant solution has been found 2011-01-10 22:01:19 +00:00
Adam Harvey
f4d76e7a54 Implement some of Hannes's suggestions from last week: move the IE ≤ 7
background hack out to a separate workarounds stylesheet, and use Remy Sharp's
HTML5 shim to enable IE support for HTML5 elements rather than declaring them
ad hoc in the header.
2011-01-10 09:40:10 +00:00
Paul Dragoonis
f9ac62a160 Made the beta-warning banner animated like stack-overflow, it's more eye catching now which is the point of it. It's position: fixed so it's floating on top of the content 2011-01-06 23:20:33 +00:00
Adam Harvey
b515e67a31 Add a temporary banner across the top of the beta site that explains that it's
an experimental design and not the actual live site. Barring major changes to
the structure of header.inc, with any luck this commit should be able to be
reverted whole to get rid of this before deploying to live.
2011-01-06 16:41:32 +00:00
Stewart Lord
95e5d86787 Beta home page now displays a blurb about PHP and download links inside the
(auto-expanded) mega drop-down as per mock-up sent to the mailing list.

The top-portion of the mock-up was generally well received. The lower-portion
needs additional work. This change only commits the top portion. Some minor
changes were made to incorporate feedback and tidy things up.
2011-01-04 08:23:49 +00:00
Stewart Lord
0844013785 Fixed a couple of problems with the mega drop-down menu. It no longer requires
two clicks to switch the current menu when the current menu has no sub-menu.
Also, fixed an issue where repeatedly clicking the same link could break the 
dom (we now ignore clicks while animating).
2011-01-04 05:38:14 +00:00
Hannes Magnusson
bf68afbc00 Offline++ 2011-01-02 17:22:06 +00:00
Hannes Magnusson
d3206f0f2d - go directly to the correct page rather then hitting the errorhandler first
- fix 'undefined' error on maybe-we-should-skip-these-hits categories
2011-01-02 14:24:57 +00:00
Hannes Magnusson
75af810887 No idea why $(param).scrollTo() isn't working.. but this works atleast 2011-01-01 22:29:18 +00:00
Paul Dragoonis
a981f4ae7e Accidental merge of common.js, reverting back to revision 306955 2011-01-01 21:45:14 +00:00
Paul Dragoonis
410cb1bb55 Adding the pointer icon to the buttons that lack it 2011-01-01 21:40:25 +00:00
Hannes Magnusson
ce6a31567d simplify, and update the fragment in the url when clicking things in the quicktoc 2011-01-01 19:07:42 +00:00
Hannes Magnusson
5b36164304 Do not let the browser fill the field (fixes an annoying second display of the
filename, rather then the search keyword)
And fix CS
2011-01-01 18:23:14 +00:00
Hannes Magnusson
668ef66193 Optimize out useless function call in category header resolving (still commented out though)
Only display 20 results, more then that is quite useless
2011-01-01 15:41:43 +00:00
Hannes Magnusson
69efe130e1 Scroll to the parameter doc when clicking on it in the proto description 2011-01-01 15:27:51 +00:00
Hannes Magnusson
d8a5cf26e6 use css for this 2010-12-31 12:28:15 +00:00
Hannes Magnusson
bdc3fb9932 - Use the generated search index from PhD (generated at the same time as the docs)
- Add descriptions into the search results
- Only sort possible matches, rather then the entire index everytime
- Use "poor-mans-categorization" - with the 'proper categorization' code
  commented out. Maybe provide an my.php option in the future for it?
2010-12-31 10:07:10 +00:00
Paul Dragoonis
e9088b665f Adding alternate row colors: better jQuery selector 2010-12-31 05:37:08 +00:00
Paul Dragoonis
ce1bc84380 Adding alternate row colors 2010-12-31 05:35:23 +00:00
Paul Dragoonis
5f7c710b04 Last time for the TOC - made it more browser compliant, IE and FF the previous version would have broke in 2010-12-30 22:12:12 +00:00
Paul Dragoonis
e7d571d486 Better validation, scrollTo() plugin doesn't check if an elem exists before trying to scroll to it, so we check that prior to calling scrollTo() 2010-12-30 21:37:13 +00:00
Paul Dragoonis
60b92a62bc Fixes for rightclick->saveas on the TOC links. Also faster code, using the DOM ID's and no .data() 2010-12-30 21:24:37 +00:00
Paul Dragoonis
ac658df854 Created the TOC and have an animated jQuery scrollTo() to each TOC section. 2010-12-30 19:49:02 +00:00
Stewart Lord
740ce24f57 Removed built-in styles from search input for webkit browsers. There are still
discrepancies between how webkit and moz browsers display this field. For
example, webkit browsers have some left padding that can't be removed.

Removed manual placeholder text handling from common.js
2010-12-30 18:49:38 +00:00
Hannes Magnusson
ab334671b6 Make it easier to reference specific parts on the page by showing the anchors
# Idea stolen from Norman Walsh, among others :)
2010-12-30 11:36:57 +00:00
Hannes Magnusson
b4a3397d0b quicktoc for articles/chapters too 2010-12-30 11:01:04 +00:00
Hannes Magnusson
6a22f40b6c - Link to bugreporting into the footer too
- The OE apparently wants ".php" after the id..
2010-12-29 19:54:41 +00:00
Hannes Magnusson
c8cc91de8f Throw 'edit this page' into the footer of manual pages, linking to the OE 2010-12-29 19:08:15 +00:00
Hannes Magnusson
e40dcbdaac use the document language 2010-12-29 19:05:39 +00:00
Stewart Lord
334280a067 Modified the 'mega' drop-down menu to open on click instead of 'hover intent'.
This should provide a better (more solid) user experience and allows us to
remove the hover intent plugin. All third-party JS is now loaded via CDN.

Previously the menu faded in/out, now it slides up/down pushing page content
out of the way. Additionally, restyled the menu container so that it spans
the full width of the page (menu contents are still constrained to ~960px).
The menu now has a high-impact dark-grey background with off-white text.

Split the community menu into four columns of links instead of three.
Removed some inline styles from header.inc. Tweaked news_toc() to support
an optional $sections argument that allows the caller to specify which
sections it wants rendered.

Removed shade.png as it is no longer used. The only graphic used by the new
layout is now sprites.png.
2010-12-29 07:25:58 +00:00
Hannes Magnusson
9f7fc58c1b Fix script location from manual pages 2010-12-28 14:19:11 +00:00
Stewart Lord
4548b5425f Fixed the scoring of results in search auto-complete. This required an upgrade
to jQuery 1.4.4 and the inclusion of jQuery UI 1.8.7 (both linked to Google's 
Ajax APIs CDN) as the auto-complete plugin has been rolled into the standard 
jQuery UI library.

We now supply a source callback function to the auto-complete plugin (instead
of a JS array). This callback mimics the quick-ref logic for ranking manual 
pages based on where the user's search term appears in the name of the doc 
entry. However, it lacks the similar_text() component since that function is 
not available in JS (doesn't seem like a significant loss).

Tweaked auto-complete related CSS rules to accommodate different markup 
produced by the new version of the auto-complete plugin.
2010-12-28 08:46:56 +00:00
Hannes Magnusson
73f9f45ddd Generate quick toc for function reference pages (needs new PhD release to
generate the anchors)
2010-12-28 08:09:04 +00:00
Hannes Magnusson
83301bce52 Merge in new styles from PROTOTYPE_2010
(not includes/used anywhere yet)
2010-12-26 16:11:06 +00:00