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

334 Commits

Author SHA1 Message Date
Peter Kokot
dd8d8bf863 Sync final and leading newlines
This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 12:37:26 +02:00
Peter Kokot
e235f79473 Trim trailing whitespace
This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.
2018-10-17 10:51:08 +02:00
Peter Kokot
0f95b8c709 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-10-17 07:29:46 +02:00
Christoph M. Becker
a9aafdff2e selects "Other" in language chooser if current language should not be available (fixes #67629) 2015-03-24 19:43:30 +01:00
Hannes Magnusson
20930ba377 Fix undefined notice using older phd 2015-03-24 10:40:10 -07:00
Peter Cowburn
e79ae85efe use correct variable name 2015-03-08 14:24:15 +00:00
Hannes Magnusson
f206626aca fix warning until the genereated files have been updated 2015-03-07 14:25:48 -08:00
Sobak
920eb39277 Better handling for deprecated functions 2015-03-07 19:23:34 +01:00
Hannes Magnusson
61919c6478 Its enough to set the BASE_PAGE once 2015-02-04 09:58:58 -08:00
Jeff Welch
fa33a05da9 Removed superfluous slashes. 2014-06-21 03:18:38 -04:00
Michael
1c41366df8 Revert "Replace <small> with <span style"
This reverts commit 12f04c0d4a.
2014-06-06 23:48:35 +02:00
Michael
12f04c0d4a Replace <small> with <span style
Replace <small> with <span style="font-size:0.8em"> because the
definition of <small> is a complete other with HTML5
2014-06-05 20:35:30 +02:00
Michael
113c86286d Also remove XHTML from .inc files 2014-06-04 19:50:50 +02:00
Hannes Magnusson
cb20874745 Add support for <link hreflang> as suggested by Joost de Valk <joost@yoast.com> 2014-06-03 15:39:13 -07:00
Levi Morrison
8fb9b79ca8 Related functions now on right; some homepage fixes. 2014-04-27 23:14:11 -06:00
Levi Morrison
acf87cb5bc Some code-style improvements... I think. It also improves some HTML semantics (such as using label instead of p) so if you revert this, please bear that in mind. It probably should have been separate commits; I'm sorry. 2014-01-01 12:37:19 -07:00
Hannes Magnusson
3443525304 Relax a tad on the massive doc page caching :) 2013-12-28 19:18:33 -08:00
Hannes Magnusson
f237cd07bf Cache manual pages. Fixes bug #55584 2013-12-26 17:14:02 -08:00
Hannes Magnusson
ab3c553caa I don't know why I added the base root for language codes.. 2013-12-26 16:10:00 -08:00
Hannes Magnusson
feba5b534f Err #fail broke the language changer when implmementing the goto next/previous page keyboard shortcuts 2013-12-26 15:52:24 -08:00
Hannes Magnusson
36e805e147 Bring back the mega dropdown, toggled with "?" keyboard shortcut 2013-12-26 13:34:43 -08:00
Levi Morrison
e5f81e5cc1 We don't want 'elephpants' => false to render the elephpants. 2013-12-15 13:14:39 -07:00
Levi Morrison
2eb10d3d28 Improved comment sorting algorithm. It probably still has some room for improvements. The weights are probably not quite right, either. 2013-12-06 12:58:32 -07:00
Levi Morrison
dfb37fa3d0 Retabbed file; it was using at least 3 different methods. 2013-12-05 08:18:58 -07:00
Hannes Magnusson
fa8b4d31ba Turns out.. these are no longer used
Also moved the vim mode line to the bottom of the file
2013-12-04 14:38:12 -08:00
Hannes Magnusson
c61c0b9398 Kill STATIC_ROOT, its not helpful. Also use MYSITE for all js/css 2013-12-04 12:10:54 -08:00
Hannes Magnusson
a2c4c5b62a Thats a littlebit to weird to always print 'PHP manual' above all page titles 2013-11-21 19:03:59 -08:00
Adam Harvey
33ed430d7a Update breadcrumbs to use flexbox when available, and show PHP Manual above h1. 2013-11-21 18:06:07 -08:00
Hannes Magnusson
9050dae5ab Revert "Remove the filename from BASE_HREF (used for <base />), fixes bug#66138"
This reverts commit cc3a7dccac.
2013-11-21 10:55:09 -08:00
Hannes Magnusson
cc3a7dccac Remove the filename from BASE_HREF (used for <base />), fixes bug#66138 2013-11-21 09:29:29 -08:00
Hannes Magnusson
7cf8424edf Remove wrappers for the beta design, and the old code 2013-11-20 16:29:56 -08:00
Adam Harvey
73d9faf6ae Reinstate (very small) edit and report bug links on manual pages. 2013-11-20 14:08:32 -08:00
Adam Harvey
166ffb7b99 Restore the previous and next links to their former glory.
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
2013-11-20 12:17:42 -08:00
Hannes Magnusson
be1bcf78cf Remove annoying javascript error on all pages except docs 2013-10-28 16:22:02 -07:00
Levi Morrison
b77249465f Removed unnecessary inner 'strong' element. 2013-09-26 16:44:52 -06:00
Levi Morrison
4ed8826784 Fixed minor HTML validation error in vote uris. 2013-09-20 14:48:24 -06:00
Levi Morrison
0b941d17ff Allow line breaks at certain characters in the left-hand menu. 2013-09-17 10:25:07 -06:00
Levi Morrison
4b07d39501 Created Retina versions of misc images. The images for the Notes section are new but patterned after the old ones. 2013-07-25 02:20:41 -06:00
Levi Morrison
50265cbadf Crazy amounts of refactoring. Still in progress but really needed to commit so I don't lose everything. 2013-07-06 23:18:23 -06:00
Levi Morrison
459ceeaaf9 Fixed bug #65107: Paamayim Nekudotayim rendering as ')'. 2013-06-26 12:52:12 -06:00
Paul Dragoonis
3bb29af24a Language chooser changes 2013-06-25 22:31:49 +01:00
Hannes Magnusson
f613c04078 Kill the next/prev page from the top & move lang chooser
The next/prev page takes way to much space there and isn't very
important feature to have such promonently in-your-face, creating
imbalance at the top.

Moved the language chooser to just above the version info
2013-06-25 11:29:40 -07:00
Paul Dragoonis
cec2f2ee6d Removing code for the old quicktoc, and adding code for the new manualheader and language changer dropdown 2013-06-25 16:58:13 +01:00
Peter Cowburn
e847116268 Revert "Revert "Removal of left menu class prefixes for method names since they're already indented within that class name""
This reverts commit ae8aa85575.

Ooooooopppss!!!
2013-01-11 21:12:32 +00:00
Peter Cowburn
ae8aa85575 Revert "Removal of left menu class prefixes for method names since they're already indented within that class name"
This reverts commit 16a31cfa93.
2013-01-11 20:12:44 +00:00
Paul Dragoonis
16a31cfa93 Removal of left menu class prefixes for method names since they're already indented within that class name 2013-01-08 17:07:04 +00:00
Sherif Ramadan
9f44618c52 Patched user notes feature from regular site into prototype with some slight adjustments.
The old manual_notes had a display for number of notes on a page. This feature was missing from
the beta site so I added to manual_notes_beta.
2013-01-06 08:46:40 -05:00
Adam Harvey
5c8beafabc Update user notes styling on the beta site.
Part of this also improves the markup we're generating on both the stable and
beta sites by removing the inline styles that have crept into
shared-manual.inc.

Squashed commit of the following:

commit 8aaaea73f8a1128c45bbd081b0a61fb58aaff10e
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 18:21:51 2012 +0800

    Remove inline styles from the user note voting elements.

commit 4239bdcfa8506d5e37d678032570aa6b81fe54be
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 18:21:25 2012 +0800

    Fix clearing behaviour when the user note heading wraps.

commit fc08e0abad0d1b500d0d1561bf5966febd3c4426
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 18:15:05 2012 +0800

    Replace the user note vote styling on the beta site with something more inline
    with the beta site style.

commit ade84bf601be20c74493d54d089edf8578ba1185
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 18:14:46 2012 +0800

    Improve note vote support on the beta site.

commit 0e1a71f8a4945408000428fa88f1d5aa12aeeca4
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 18:12:31 2012 +0800

    Add genanchors to user notes.

commit 03393d70a6f3ac8530432ba5d7c228528ad6230d
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 17:49:41 2012 +0800

    Make the note styling more in line with other block elements by moving the
    header row outside the shaded note body.

commit dc2a83990c33fd3cf7df209201536458ff01de59
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 17:45:10 2012 +0800

    Rationalise beta site user note styles.

commit da2b492c186d6b8946170e1702f052ef93696028
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Dec 27 17:31:53 2012 +0800

    Apply styling to user note dates in site.css, not inline.
2012-12-27 18:25:32 +08:00
Sherif Ramadan
d0d43e5580 Adjusted sorting votes function. The old behavior is inaccurate in reflecting rating. 2012-12-15 16:46:19 -05:00
Sherif Ramadan
1341f83e1d Updated the notes sorting function. Enhanced sorting results based on multiple criteria. 2012-12-13 22:20:44 -05:00