mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 07:18:43 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,339 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
{description}
|
||||
Copyright (C) {year} {fullname}
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
{signature of Ty Coon}, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
@@ -0,0 +1,7 @@
|
||||
debug-bar-pretty-output
|
||||
=======================
|
||||
|
||||
Helper classes for WordPress Debug Bar plugins.
|
||||
|
||||
* `Debug_Bar_Pretty_Output` - pretty prints variables.
|
||||
* `Debug_Bar_List_PHP_Classes` - lists all PHP Core and Extension classes.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,690 @@
|
||||
<?php
|
||||
/**
|
||||
* Debug Bar Pretty Output - Helper class for Debug Bar plugins.
|
||||
*
|
||||
* Used by the following plugins:
|
||||
* - Debug Bar Constants
|
||||
* - Debug Bar Cron (1.0+)
|
||||
* - Debug Bar Post Types
|
||||
* - Debug Bar Taxonomies
|
||||
* - Debug Bar WP Objects (unreleased)
|
||||
* - Debug Bar Screen Info
|
||||
*
|
||||
* @package Debug Bar Pretty Output
|
||||
* @author Juliette Reinders Folmer <wpplugins_nospam@adviesenzo.nl>
|
||||
* @link https://github.com/jrfnl/debug-bar-pretty-output
|
||||
* @version 1.8.0
|
||||
*
|
||||
* @copyright 2013-2018 Juliette Reinders Folmer
|
||||
* @license http://creativecommons.org/licenses/GPL/2.0/ GNU General Public License, version 2 or higher.
|
||||
*/
|
||||
|
||||
if ( ! class_exists( 'Debug_Bar_Pretty_Output' ) && class_exists( 'Debug_Bar_Panel' ) ) {
|
||||
|
||||
/**
|
||||
* Class Debug_Bar_Pretty_Output.
|
||||
*/
|
||||
class Debug_Bar_Pretty_Output {
|
||||
|
||||
const VERSION = '1.8.0';
|
||||
|
||||
const NAME = 'db-pretty-output';
|
||||
|
||||
const TBODY_MAX = 10;
|
||||
|
||||
/**
|
||||
* Whether to limit how deep the variable printing will recurse into an array/object.
|
||||
*
|
||||
* @var bool|int Set to a positive integer to limit the recursion depth to that depth.
|
||||
* Defaults to false.
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
protected static $limit_recursion = false;
|
||||
|
||||
|
||||
/**
|
||||
* Set the recursion limit.
|
||||
*
|
||||
* Always make sure you also unset the limit after you're done with this class so as not to impact
|
||||
* other plugins which may be using this printing class.
|
||||
*
|
||||
* @since 1.4
|
||||
*
|
||||
* @param int $depth Maximum recursion depth.
|
||||
*/
|
||||
public static function limit_recursion( $depth ) {
|
||||
if ( is_int( $depth ) && $depth > 0 ) {
|
||||
self::$limit_recursion = $depth;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reset the recusion limit to it's default (unlimited).
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
public static function unset_recursion_limit() {
|
||||
self::$limit_recursion = false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A not-so-pretty method to show pretty output ;-).
|
||||
*
|
||||
* @since 1.3
|
||||
*
|
||||
* @param mixed $var Variable to show.
|
||||
* @param string $title Optional. Variable title.
|
||||
* @param bool $escape Optional. Whether to character escape the textual output.
|
||||
* @param string $space Internal. Indentation spacing.
|
||||
* @param bool $short Internal. Short or normal annotation.
|
||||
* @param int $depth Internal. The depth of the current recursion.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_output( $var, $title = '', $escape = true, $space = '', $short = false, $depth = 0 ) {
|
||||
|
||||
$output = '';
|
||||
|
||||
if ( '' === $space ) {
|
||||
$output .= '<div class="db-pretty-var">';
|
||||
}
|
||||
if ( is_string( $title ) && '' !== $title ) {
|
||||
$output .= '<h4 style="clear: both;">' . ( ( true === $escape ) ? esc_html( $title ) : $title ) . "</h4>\n";
|
||||
}
|
||||
|
||||
if ( is_array( $var ) ) {
|
||||
if ( ! empty( $var ) ) {
|
||||
$output .= 'Array: <br />' . $space . '(<br />';
|
||||
if ( is_int( self::$limit_recursion ) && $depth > self::$limit_recursion ) {
|
||||
/* translators: %d = number used as a limit. */
|
||||
$output .= '... ( ' . sprintf( __( 'output limited at recursion depth %d', 'db-pretty-output' ), self::$limit_recursion ) . ')<br />';
|
||||
|
||||
} else {
|
||||
if ( true !== $short ) {
|
||||
$spacing = $space . ' ';
|
||||
} else {
|
||||
$spacing = $space . ' ';
|
||||
}
|
||||
|
||||
foreach ( $var as $key => $value ) {
|
||||
$output .= $spacing . '[' . ( ( true === $escape ) ? esc_html( $key ) : $key );
|
||||
if ( true !== $short ) {
|
||||
$output .= ' ';
|
||||
switch ( true ) {
|
||||
case ( is_string( $key ) ):
|
||||
$output .= '<span style="color: #336600;;"><b><i>(string)</i></b></span>';
|
||||
break;
|
||||
|
||||
case ( is_int( $key ) ):
|
||||
$output .= '<span style="color: #FF0000;"><b><i>(int)</i></b></span>';
|
||||
break;
|
||||
|
||||
case ( is_float( $key ) ):
|
||||
$output .= '<span style="color: #990033;"><b><i>(float)</i></b></span>';
|
||||
break;
|
||||
|
||||
default:
|
||||
$output .= '(' . __( 'unknown', 'db-pretty-output' ) . ')';
|
||||
break;
|
||||
}
|
||||
}
|
||||
$output .= '] => ';
|
||||
$output .= self::get_output( $value, '', $escape, $spacing, $short, ++$depth );
|
||||
}
|
||||
unset( $key, $value );
|
||||
}
|
||||
|
||||
$output .= $space . ')<br />';
|
||||
|
||||
} else {
|
||||
$output .= 'array()<br />';
|
||||
}
|
||||
} elseif ( is_string( $var ) ) {
|
||||
$output .= self::get_pretty_string( $var, $short, $escape );
|
||||
|
||||
} elseif ( is_bool( $var ) ) {
|
||||
$output .= self::get_pretty_bool( $var, $short );
|
||||
|
||||
} elseif ( is_int( $var ) ) {
|
||||
$output .= self::get_pretty_int( $var, $short );
|
||||
|
||||
} elseif ( is_float( $var ) ) {
|
||||
$output .= self::get_pretty_float( $var, $short );
|
||||
|
||||
} elseif ( is_null( $var ) ) {
|
||||
$output .= self::get_pretty_null( $var, $short );
|
||||
|
||||
} elseif ( is_resource( $var ) ) {
|
||||
$output .= self::get_pretty_resource( $var, $short );
|
||||
|
||||
} elseif ( is_object( $var ) ) {
|
||||
$output .= 'Object: <br />' . $space . '(<br />';
|
||||
if ( is_int( self::$limit_recursion ) && $depth > self::$limit_recursion ) {
|
||||
/* translators: %d = number used as a limit. */
|
||||
$output .= '... ( ' . sprintf( __( 'output limited at recursion depth %d', 'db-pretty-output' ), self::$limit_recursion ) . ')<br />';
|
||||
} else {
|
||||
if ( true !== $short ) {
|
||||
$spacing = $space . ' ';
|
||||
} else {
|
||||
$spacing = $space . ' ';
|
||||
}
|
||||
$output .= self::get_object_info( $var, $escape, $spacing, $short, ++$depth );
|
||||
}
|
||||
$output .= $space . ')<br /><br />';
|
||||
|
||||
} else {
|
||||
$output .= esc_html__( 'I haven\'t got a clue what this is: ', 'db-pretty-output' ) . gettype( $var ) . '<br />';
|
||||
}
|
||||
if ( '' === $space ) {
|
||||
$output .= '</div>';
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Convert a string to pretty output.
|
||||
*
|
||||
* @since 1.6.0
|
||||
*
|
||||
* @param string $string The string to make pretty.
|
||||
* @param bool $short Short or normal annotation.
|
||||
* @param bool $escape Whether to character escape the textual output.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_pretty_string( $string, $short = false, $escape = true ) {
|
||||
$output = '<span style="color: #336600;">';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= '<b><i>string[' . strlen( $string ) . ']</i></b> : ';
|
||||
}
|
||||
|
||||
$output .= '‘';
|
||||
if ( true === $escape ) {
|
||||
$output .= str_replace( ' ', ' ', esc_html( $string ) );
|
||||
} else {
|
||||
$output .= str_replace( ' ', ' ', $string );
|
||||
}
|
||||
$output .= '’</span><br />';
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Convert a boolean to pretty output.
|
||||
*
|
||||
* @since 1.6.0
|
||||
*
|
||||
* @param bool $bool The boolean variable to make pretty.
|
||||
* @param bool $short Short or normal annotation.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_pretty_bool( $bool, $short = false ) {
|
||||
$output = '<span style="color: #000099;">';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= '<b><i>bool</i></b> : ' . $bool . ' ( = ';
|
||||
} else {
|
||||
$output .= '<b><i>b</i></b> ';
|
||||
}
|
||||
|
||||
$output .= '<i>';
|
||||
if ( false === $bool ) {
|
||||
$output .= '<span style="color: #FF0000;">false</span>';
|
||||
} elseif ( true === $bool ) {
|
||||
$output .= '<span style="color: #336600;">true</span>';
|
||||
} else {
|
||||
$output .= __( 'undetermined', 'db-pretty-output' );
|
||||
}
|
||||
$output .= ' </i>';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= ')';
|
||||
}
|
||||
|
||||
$output .= '</span><br />';
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Convert an integer to pretty output.
|
||||
*
|
||||
* @since 1.6.0
|
||||
*
|
||||
* @param int $int The integer to make pretty.
|
||||
* @param bool $short Short or normal annotation.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_pretty_int( $int, $short = false ) {
|
||||
$output = '<span style="color: #FF0000;">';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= '<b><i>int</i></b> : ';
|
||||
}
|
||||
|
||||
if ( 0 === $int ) {
|
||||
$output .= '<b>' . $int . '</b>';
|
||||
} else {
|
||||
$output .= $int;
|
||||
}
|
||||
$output .= "</span><br />\n";
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Convert a float to pretty output.
|
||||
*
|
||||
* @since 1.6.0
|
||||
*
|
||||
* @param float $float The float to make pretty.
|
||||
* @param bool $short Short or normal annotation.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_pretty_float( $float, $short = false ) {
|
||||
$output = '<span style="color: #990033;">';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= '<b><i>float</i></b> : ';
|
||||
}
|
||||
|
||||
$output .= $float . '</span><br />';
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Convert a null value to pretty output.
|
||||
*
|
||||
* @since 1.6.0
|
||||
*
|
||||
* @param null $null The null value to make pretty.
|
||||
* @param bool $short Short or normal annotation.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_pretty_null( $null, $short = false ) {
|
||||
$output = '<span style="color: #666666;">';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= '<b><i>';
|
||||
}
|
||||
|
||||
$output .= 'null';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= '</i></b> : ' . $null . ' ( = <i>NULL</i> )';
|
||||
}
|
||||
|
||||
$output .= '</span><br />';
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a resource to pretty output.
|
||||
*
|
||||
* @since 1.6.0
|
||||
*
|
||||
* @param resource $resource The resource to make pretty.
|
||||
* @param bool $short Short or normal annotation.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_pretty_resource( $resource, $short = false ) {
|
||||
$output = '<span style="color: #666666;">';
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= '<b><i>resource</i></b> : ';
|
||||
}
|
||||
|
||||
$output .= $resource;
|
||||
|
||||
if ( true !== $short ) {
|
||||
$output .= ' ( = <i>RESOURCE</i> )';
|
||||
}
|
||||
|
||||
$output .= '</span><br />';
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve pretty output about objects.
|
||||
*
|
||||
* @todo: get object properties to show the variable type on one line with the 'property'.
|
||||
* @todo: get scope of methods and properties.
|
||||
*
|
||||
* @since 1.3
|
||||
*
|
||||
* @param object $obj Object to show.
|
||||
* @param bool $escape Internal. Whether to character escape the textual output.
|
||||
* @param string $space Internal. Indentation spacing.
|
||||
* @param bool $short Internal. Short or normal annotation.
|
||||
* @param int $depth Internal. The depth of the current recursion.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_object_info( $obj, $escape, $space, $short, $depth = 0 ) {
|
||||
|
||||
$output = '';
|
||||
|
||||
$output .= $space . '<b><i>Class</i></b>: ' . esc_html( get_class( $obj ) ) . ' (<br />';
|
||||
if ( true !== $short ) {
|
||||
$spacing = $space . ' ';
|
||||
} else {
|
||||
$spacing = $space . ' ';
|
||||
}
|
||||
$properties = get_object_vars( $obj );
|
||||
if ( ! empty( $properties ) && is_array( $properties ) ) {
|
||||
foreach ( $properties as $var => $val ) {
|
||||
if ( is_array( $val ) ) {
|
||||
$output .= $spacing . '<b><i>property</i></b>: ' . esc_html( $var ) . "<b><i> (array)</i></b>\n";
|
||||
$output .= self::get_output( $val, '', $escape, $spacing, $short, $depth );
|
||||
} else {
|
||||
$output .= $spacing . '<b><i>property</i></b>: ' . esc_html( $var ) . ' = ';
|
||||
$output .= self::get_output( $val, '', $escape, $spacing, $short, $depth );
|
||||
}
|
||||
}
|
||||
}
|
||||
unset( $properties, $var, $val );
|
||||
|
||||
$methods = get_class_methods( $obj );
|
||||
if ( ! empty( $methods ) && is_array( $methods ) ) {
|
||||
foreach ( $methods as $method ) {
|
||||
$output .= $spacing . '<b><i>method</i></b>: ' . esc_html( $method ) . "<br />\n";
|
||||
}
|
||||
}
|
||||
unset( $methods, $method );
|
||||
|
||||
$output .= $space . ')<br /><br />';
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Helper Function specific to the Debug bar plugin.
|
||||
* Retrieves html string of properties in a table and methods in an unordered list.
|
||||
*
|
||||
* @since 1.3
|
||||
*
|
||||
* @param object $obj Object for which to show the properties and methods.
|
||||
* @param bool $is_sub Internal. Top level or nested object.
|
||||
*
|
||||
* @reurn string
|
||||
*/
|
||||
public static function get_ooutput( $obj, $is_sub = false ) {
|
||||
$properties = get_object_vars( $obj );
|
||||
$methods = get_class_methods( $obj );
|
||||
|
||||
$output = '';
|
||||
|
||||
if ( false === $is_sub ) {
|
||||
$output .= '
|
||||
<h2><span>' . esc_html__( 'Properties:', 'db-pretty-output' ) . '</span>' . count( $properties ) . '</h2>';
|
||||
|
||||
$output .= '
|
||||
<h2><span>' . esc_html__( 'Methods:', 'db-pretty-output' ) . '</span>' . count( $methods ) . '</h2>';
|
||||
}
|
||||
|
||||
// Properties.
|
||||
if ( ! empty( $properties ) && is_array( $properties ) ) {
|
||||
$h = 'h4';
|
||||
if ( false === $is_sub ) {
|
||||
$h = 'h3';
|
||||
}
|
||||
|
||||
$output .= '
|
||||
<' . $h . '>' . esc_html__( 'Object Properties:', 'db-pretty-output' ) . '</' . $h . '>';
|
||||
|
||||
uksort( $properties, 'strnatcasecmp' );
|
||||
$output .= self::get_table( $properties, __( 'Property', 'db-pretty-output' ), __( 'Value', 'db-pretty-output' ) );
|
||||
}
|
||||
|
||||
// Methods.
|
||||
if ( ! empty( $methods ) && is_array( $methods ) ) {
|
||||
$output .= '
|
||||
<h3>' . esc_html__( 'Object Methods:', 'db-pretty-output' ) . '</h3>
|
||||
<ul class="' . sanitize_html_class( self::NAME ) . '">';
|
||||
|
||||
uksort( $methods, 'strnatcasecmp' );
|
||||
|
||||
foreach ( $methods as $method ) {
|
||||
$output .= '<li>' . esc_html( $method ) . '()</li>';
|
||||
}
|
||||
unset( $method );
|
||||
$output .= '</ul>';
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve the table output.
|
||||
*
|
||||
* @since 1.3
|
||||
*
|
||||
* @param array $array Array to be shown in the table.
|
||||
* @param string $col1 Label for the first table column.
|
||||
* @param string $col2 Label for the second table column.
|
||||
* @param string|array $class One or more CSS classes to add to the table.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function get_table( $array, $col1, $col2, $class = null ) {
|
||||
|
||||
$classes = 'debug-bar-table ' . sanitize_html_class( self::NAME );
|
||||
if ( isset( $class ) ) {
|
||||
if ( is_string( $class ) && '' !== $class ) {
|
||||
$classes .= ' ' . sanitize_html_class( $class );
|
||||
} elseif ( ! empty( $class ) && is_array( $class ) ) {
|
||||
$class = array_map( $class, 'sanitize_html_class' );
|
||||
$classes = $classes . ' ' . implode( ' ', $class );
|
||||
}
|
||||
}
|
||||
$col1 = ( is_string( $col1 ) ) ? $col1 : __( 'Key', 'db-pretty-output' );
|
||||
$col2 = ( is_string( $col2 ) ) ? $col2 : __( 'Value', 'db-pretty-output' );
|
||||
|
||||
$double_it = false;
|
||||
if ( count( $array ) > self::TBODY_MAX ) {
|
||||
$double_it = true;
|
||||
}
|
||||
|
||||
$return = self::get_table_start( $col1, $col2, $classes, $double_it );
|
||||
$return .= self::get_table_rows( $array );
|
||||
$return .= self::get_table_end();
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate the table header.
|
||||
*
|
||||
* @param string $col1 Label for the first table column.
|
||||
* @param string $col2 Label for the second table column.
|
||||
* @param string|array $class One or more CSS classes to add to the table.
|
||||
* @param bool $double_it Whether to repeat the table headers as table footer.
|
||||
*/
|
||||
private static function get_table_start( $col1, $col2, $class = null, $double_it = false ) {
|
||||
$class_string = '';
|
||||
if ( is_string( $class ) && '' !== $class ) {
|
||||
$class_string = ' class="' . esc_attr( $class ) . '"';
|
||||
}
|
||||
$output = '
|
||||
<table' . $class_string . '>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>' . esc_html( $col1 ) . '</th>
|
||||
<th>' . esc_html( $col2 ) . '</th>
|
||||
</tr>
|
||||
</thead>';
|
||||
|
||||
if ( true === $double_it ) {
|
||||
$output .= '
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>' . esc_html( $col1 ) . '</th>
|
||||
<th>' . esc_html( $col2 ) . '</th>
|
||||
</tr>
|
||||
</tfoot>';
|
||||
}
|
||||
$output .= '
|
||||
<tbody>';
|
||||
|
||||
return apply_filters( 'db_pretty_output_table_header', $output );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate table rows.
|
||||
*
|
||||
* @param array $array Array to be shown in the table.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_table_rows( $array ) {
|
||||
$output = '';
|
||||
foreach ( $array as $key => $value ) {
|
||||
$output .= self::get_table_row( $key, $value );
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate individual table row.
|
||||
*
|
||||
* @param mixed $key Item key to use a row label.
|
||||
* @param mixed $value Value to show.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_table_row( $key, $value ) {
|
||||
$output = '
|
||||
<tr>
|
||||
<th>' . esc_html( $key ) . '</th>
|
||||
<td>';
|
||||
|
||||
if ( is_object( $value ) ) {
|
||||
$output .= self::get_ooutput( $value, true );
|
||||
} else {
|
||||
$output .= self::get_output( $value, '', true, '', false );
|
||||
}
|
||||
|
||||
$output .= '</td>
|
||||
</tr>';
|
||||
|
||||
return apply_filters( 'db_pretty_output_table_body_row', $output, $key );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate table closing.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private static function get_table_end() {
|
||||
return '
|
||||
</tbody>
|
||||
</table>
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Print pretty output.
|
||||
*
|
||||
* @deprecated since v1.3 in favour of get_output().
|
||||
*
|
||||
* @param mixed $var Variable to show.
|
||||
* @param string $title Optional. Variable title.
|
||||
* @param bool $escape Optional. Whether to character escape the textual output.
|
||||
* @param string $space Internal. Indentation spacing.
|
||||
* @param bool $short Internal. Short or normal annotation.
|
||||
* @param string $deprecated Deprecated argument. Do not use.
|
||||
*/
|
||||
public static function output( $var, $title = '', $escape = false, $space = '', $short = false, $deprecated = null ) {
|
||||
_deprecated_function( __CLASS__ . '::' . __METHOD__, __CLASS__ . ' 1.3', __CLASS__ . '::get_output() ' . esc_html__( 'or even better: upgrade your Debug Bar plugins to their current version', 'db-pretty-output' ) );
|
||||
echo self::get_output( $var, $title, $escape, $space, $short ); // WPCS: xss ok.
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Print pretty output about objects.
|
||||
*
|
||||
* @deprecated since v1.3 in favour of get_object_info().
|
||||
*
|
||||
* @param object $obj Object to show.
|
||||
* @param bool $escape Internal. Whether to character escape the textual output.
|
||||
* @param string $space Internal. Indentation spacing.
|
||||
* @param bool $short Internal. Short or normal annotation.
|
||||
* @param string $deprecated Deprecated argument. Do not use.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private static function object_info( $obj, $escape, $space, $short, $deprecated = null ) {
|
||||
_deprecated_function( __CLASS__ . '::' . __METHOD__, __CLASS__ . ' 1.3', __CLASS__ . '::get_object_info() ' . esc_html__( 'or even better: upgrade your Debug Bar plugins to their current version', 'db-pretty-output' ) );
|
||||
echo self::get_object_info( $obj, $escape, $space, $short ); // WPCS: xss ok.
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Helper Function specific to the Debug bar plugin.
|
||||
* Outputs properties in a table and methods in an unordered list.
|
||||
*
|
||||
* @deprecated since v1.3 in favour of get_ooutput().
|
||||
*
|
||||
* @param object $obj Object for which to show the properties and methods.
|
||||
* @param string $deprecated Deprecated argument. Do not use.
|
||||
* @param bool $is_sub Internal. Top level or nested object.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function ooutput( $obj, $deprecated = null, $is_sub = false ) {
|
||||
_deprecated_function( __CLASS__ . '::' . __METHOD__, __CLASS__ . ' 1.3', __CLASS__ . '::get_ooutput() ' . esc_html__( 'or even better: upgrade your Debug Bar plugins to their current version', 'db-pretty-output' ) );
|
||||
echo self::get_ooutput( $obj, $is_sub ); // WPCS: xss ok.
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Render the table output.
|
||||
*
|
||||
* @deprecated since v1.3 in favour of get_table().
|
||||
*
|
||||
* @param array $array Array to be shown in the table.
|
||||
* @param string $col1 Label for the first table column.
|
||||
* @param string $col2 Label for the second table column.
|
||||
* @param string|array $class One or more CSS classes to add to the table.
|
||||
* @param string $deprecated Deprecated argument. Do not use.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function render_table( $array, $col1, $col2, $class = null, $deprecated = null ) {
|
||||
_deprecated_function( __CLASS__ . '::' . __METHOD__, __CLASS__ . ' 1.3', __CLASS__ . '::get_table() ' . esc_html__( 'or even better: upgrade your Debug Bar plugins to their current version', 'db-pretty-output' ) );
|
||||
echo self::get_table( $array, $col1, $col2, $class ); // WPCS: xss ok.
|
||||
}
|
||||
} // End of class Debug_Bar_Pretty_Output.
|
||||
|
||||
/* Load text strings for this class. */
|
||||
if ( function_exists( 'is_textdomain_loaded' ) && function_exists( 'load_plugin_textdomain' ) ) {
|
||||
if ( ! is_textdomain_loaded( 'db-pretty-output' ) ) {
|
||||
load_plugin_textdomain( 'db-pretty-output', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
||||
}
|
||||
}
|
||||
} // End of if class_exists wrapper.
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Nothing to see here.
|
||||
Binary file not shown.
@@ -0,0 +1,128 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Debug Bar Pretty Output\n"
|
||||
"POT-Creation-Date: 2016-04-11 20:36+0200\n"
|
||||
"PO-Revision-Date: 2016-04-11 20:36+0200\n"
|
||||
"Last-Translator: Juliette Reinders Folmer <wpplugins_nospam@adviesenzo.nl>\n"
|
||||
"Language-Team: Juliette Reinders Folmer <wpplugins_nospam@adviesenzo.nl>\n"
|
||||
"Language: nl_NL\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.8.7\n"
|
||||
"X-Poedit-KeywordsList: __;esc_html__;esc_html_e;esc_attr__;esc_attr_e;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
"X-Poedit-SearchPath-0: .\n"
|
||||
"X-Poedit-SearchPath-1: ..\n"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:101 class-debug-bar-pretty-output.php:208
|
||||
#, php-format
|
||||
msgid "output limited at recursion depth %d"
|
||||
msgstr "output beperkt tot recursiediepte %d"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:128
|
||||
msgid "unknown"
|
||||
msgstr "onbekend"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:162
|
||||
msgid "undetermined"
|
||||
msgstr "niet bepaald"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:222
|
||||
msgid "I haven't got a clue what this is: "
|
||||
msgstr "Geen idee wat dit is:"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:307
|
||||
msgid "Properties:"
|
||||
msgstr "Eigenschappen:"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:310
|
||||
msgid "Methods:"
|
||||
msgstr "Methoden:"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:321
|
||||
msgid "Object Properties:"
|
||||
msgstr "Object eigenschappen:"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:324
|
||||
msgid "Property"
|
||||
msgstr "Eigenschap"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:324 class-debug-bar-pretty-output.php:371
|
||||
msgid "Value"
|
||||
msgstr "Waarde"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:330
|
||||
msgid "Object Methods:"
|
||||
msgstr "Object Methoden:"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:370
|
||||
msgid "Key"
|
||||
msgstr "Sleutel"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:493 class-debug-bar-pretty-output.php:512
|
||||
#: class-debug-bar-pretty-output.php:530 class-debug-bar-pretty-output.php:549
|
||||
msgid "or even better: upgrade your Debug Bar plugins to their current version"
|
||||
msgstr ""
|
||||
"of better nog: upgrade de geïnstalleerde Debug Bar plugins naar hun huidige "
|
||||
"versie"
|
||||
|
||||
#~ msgid "Empty array()"
|
||||
#~ msgstr "Leeg array()"
|
||||
|
||||
#~ msgid "Name"
|
||||
#~ msgstr "Naam"
|
||||
|
||||
#~ msgid "WP Constants"
|
||||
#~ msgstr "WP Constants"
|
||||
|
||||
#~ msgid "Constants within WP:"
|
||||
#~ msgstr "Constants binnen WP:"
|
||||
|
||||
#~ msgid "No constants found... this is really weird..."
|
||||
#~ msgstr "Geen constants gevonden... dit is vreemd..."
|
||||
|
||||
#~ msgid "WP Class Constants"
|
||||
#~ msgstr "WP Class Constants"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "<strong>Please note</strong>: these may be both native WordPress classes "
|
||||
#~ "as well as classes which may be declared by plugins or Themes.<br />You "
|
||||
#~ "can use these constants in your code using <code>class_name::"
|
||||
#~ "constant_name</code>."
|
||||
#~ msgstr ""
|
||||
#~ "<strong>Toelichting:</strong>: dit kunnen zowel de WordPress eigen "
|
||||
#~ "classes zijn als ook de classes welke door plugins of themes gedeclareerd "
|
||||
#~ "zijn.<br />Je kan deze constants in je eigen code gebruiken door middel "
|
||||
#~ "van <code>class_name::constant_name</code>."
|
||||
|
||||
#~ msgid "See the <a %s>FAQ</a> for more information."
|
||||
#~ msgstr "Lees de <a %s>FAQ</a> voor meer informatie."
|
||||
|
||||
#~ msgid "Constants:"
|
||||
#~ msgstr "Constants:"
|
||||
|
||||
#~ msgid "No classes nor class constants found... this is kinda strange..."
|
||||
#~ msgstr "Geen classes of class constants gevonden... dit is vreemd..."
|
||||
|
||||
#~ msgid "PHP Constants"
|
||||
#~ msgstr "PHP Constants"
|
||||
|
||||
#~ msgid "Visit the PHP manual page about the %s constants."
|
||||
#~ msgstr "Bezoek de PHP handleiding pagina over de %s constants."
|
||||
|
||||
#~ msgid "No PHP constants found... this is really weird..."
|
||||
#~ msgstr "Geen PHP constants gevonden... dit is vreemd..."
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Debug Bar must be activated to use the Debug Bar Constants Plugin. <a "
|
||||
#~ "href=\"%s\">Visit your plugins page to activate</a>."
|
||||
#~ msgstr ""
|
||||
#~ "Debug Bar moet geactiveerd zijn om de Debug Bar Constants Plugin te "
|
||||
#~ "kunnen gebruiken. <a href=\"%s\">Ga naar de plugins pagina om deze te "
|
||||
#~ "activeren</a>."
|
||||
|
||||
#~ msgid "Nothing to display"
|
||||
#~ msgstr "Niets om weer te geven"
|
||||
@@ -0,0 +1,71 @@
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Debug Bar Pretty Output\n"
|
||||
"POT-Creation-Date: 2016-04-11 20:36+0200\n"
|
||||
"PO-Revision-Date: 2015-04-18 14:37+0100\n"
|
||||
"Last-Translator: Juliette Reinders Folmer <wpplugins_nospam@adviesenzo.nl>\n"
|
||||
"Language-Team: Juliette Reinders Folmer <wpplugins_nospam@adviesenzo.nl>\n"
|
||||
"Language: en_US\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.8.7\n"
|
||||
"X-Poedit-Basepath: ..\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
||||
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
||||
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Poedit-SearchPath-0: .\n"
|
||||
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
||||
|
||||
#: class-debug-bar-pretty-output.php:101 class-debug-bar-pretty-output.php:208
|
||||
#, php-format
|
||||
msgid "output limited at recursion depth %d"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:128
|
||||
msgid "unknown"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:162
|
||||
msgid "undetermined"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:222
|
||||
msgid "I haven't got a clue what this is: "
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:307
|
||||
msgid "Properties:"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:310
|
||||
msgid "Methods:"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:321
|
||||
msgid "Object Properties:"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:324
|
||||
msgid "Property"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:324 class-debug-bar-pretty-output.php:371
|
||||
msgid "Value"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:330
|
||||
msgid "Object Methods:"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:370
|
||||
msgid "Key"
|
||||
msgstr ""
|
||||
|
||||
#: class-debug-bar-pretty-output.php:493 class-debug-bar-pretty-output.php:512
|
||||
#: class-debug-bar-pretty-output.php:530 class-debug-bar-pretty-output.php:549
|
||||
msgid "or even better: upgrade your Debug Bar plugins to their current version"
|
||||
msgstr ""
|
||||
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Nothing to see here.
|
||||
Reference in New Issue
Block a user