zendframework/zf-web — pull request #137 by tfountain (2014-04-24 23:29:19+00:00)
Title: Added message to outdated manual pages

This PR adds a prominent message to the top of manual pages if the user is viewing a page from an older ZF version. Where possible, the message will link to the equivalent page in the current release version. If the user is viewing the current release version, or a major maintained version, nothing is shown.

Here's how it looks if you're viewing a page in the 2.2 docs:

![msg](https://cloud.githubusercontent.com/assets/387569/2796148/960b2ecc-cc07-11e3-968d-a983e6d3c449.png)

And here's how it looks if you're viewing a 1.x version other than 1.12:

![msg2](https://cloud.githubusercontent.com/assets/387569/2796153/b0cbfba6-cc07-11e3-91bd-066719b1c72d.png)

The logic is all in a view helper. I'm happy to tweak the wording or styling. The 'red' colour was used as it's the 'alert' style from the foundation defaults, and is already used elsewhere on the site for form validation errors.