initial commit
18
index.php
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Front to the WordPress application. This file doesn't do anything, but loads
|
||||||
|
* wp-blog-header.php which does and tells WordPress to load the theme.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tells WordPress to load the WordPress theme and output it.
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
define('WP_USE_THEMES', true);
|
||||||
|
|
||||||
|
/** Loads the WordPress Environment and Template */
|
||||||
|
require('./wp-blog-header.php');
|
||||||
|
?>
|
281
license.txt
Normal file
|
@ -0,0 +1,281 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||||
|
51 Franklin St, Fifth Floor, Boston, MA 02110, 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 Library 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
|
||||||
|
|
91
readme.html
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>WordPress › ReadMe</title>
|
||||||
|
<link rel="stylesheet" href="wp-admin/css/install.css" type="text/css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1 id="logo" style="text-align: center">
|
||||||
|
<img alt="WordPress" src="wp-admin/images/wordpress-logo.png" />
|
||||||
|
<br /> Version 2.8.4
|
||||||
|
</h1>
|
||||||
|
<p style="text-align: center">Semantic Personal Publishing Platform</p>
|
||||||
|
|
||||||
|
<h1>First Things First</h1>
|
||||||
|
<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I'm proud to be a part of. Thousands of hours have gone into WordPress, and we're dedicated to making it better every day. Thank you for making it part of your world.</p>
|
||||||
|
<p style="text-align: right;">— Matt Mullenweg</p>
|
||||||
|
|
||||||
|
<h1>Installation: Famous 5-minute install</h1>
|
||||||
|
<ol>
|
||||||
|
<li>Unzip the package in an empty directory.</li>
|
||||||
|
<li>Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li>
|
||||||
|
<li>Save the file as <code>wp-config.php</code></li>
|
||||||
|
<li>Upload everything.</li>
|
||||||
|
<li>Open <span class="file"><a href="wp-admin/install.php">/wp-admin/install.php</a></span> in your browser. This should setup the tables needed for your blog. If there is an error, double check your <span class="file">wp-config.php</span> file, and try again. If it fails again, please go to the <a href="http://wordpress.org/support/">support forums</a> with as much data as you can gather.</li>
|
||||||
|
<li><strong>Note the password given to you.</strong></li>
|
||||||
|
<li> The install script should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username <code>admin</code> and the password generated during the installation. You can then click on 'Profile' to change the password.</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<h1>Upgrading</h1>
|
||||||
|
<p>Before you upgrade anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</p>
|
||||||
|
<h2>Upgrading from any previous WordPress to 2.8.4:</h2>
|
||||||
|
<ol>
|
||||||
|
<li>Delete your old WP files, saving ones you've modified.</li>
|
||||||
|
<li>Upload the new files.</li>
|
||||||
|
<li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></li>
|
||||||
|
<li>You wanted more, perhaps? That's it!</li>
|
||||||
|
</ol>
|
||||||
|
<h2>Template Changes</h2>
|
||||||
|
<p>If you have customized your templates you will probably have to make some changes to them. If you're converting your 1.2 or earlier templates, <a href="http://codex.wordpress.org/Upgrade_1.2_to_1.5">we've created a special guide for you</a>. </p>
|
||||||
|
|
||||||
|
<h1>Online Resources</h1>
|
||||||
|
<p>If you have any questions that aren't addressed in this document, please take advantage of WordPress' numerous online resources:</p>
|
||||||
|
<dl>
|
||||||
|
<dt><a href="http://codex.wordpress.org/">The WordPress Codex </a></dt>
|
||||||
|
<dd>The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd>
|
||||||
|
<dt><a href="http://wordpress.org/development/">The Development Blog</a></dt>
|
||||||
|
<dd>This is where you'll find the latest updates and news related to WordPress. Bookmark and check often.</dd>
|
||||||
|
<dt><a href="http://planet.wordpress.org/">WordPress Planet </a></dt>
|
||||||
|
<dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd>
|
||||||
|
<dt><a href="http://wordpress.org/support/">WordPress Support Forums</a></dt>
|
||||||
|
<dd>If you've looked everywhere and still can't find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
|
||||||
|
<dt><a href="http://codex.wordpress.org/IRC">WordPress IRC Channel</a></dt>
|
||||||
|
<dd>Finally, there is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="irc://irc.freenode.net/wordpress">irc.freenode.net #wordpress</a>)</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<h1>System Recommendations</h1>
|
||||||
|
<ul>
|
||||||
|
<li>PHP version <strong>4.3</strong> or higher.</li>
|
||||||
|
<li>MySQL version <strong>4.0</strong> or higher.</li>
|
||||||
|
<li>... and a link to <a href="http://wordpress.org/">http://wordpress.org</a> on your site.</li>
|
||||||
|
</ul>
|
||||||
|
<p>WordPress is the official continuation of <a href="http://cafelog.com/">b2/cafélog</a>, which came from Michel V. The work has been continued by the <a href="http://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="http://wordpress.org/donate/">donating</a>.</p>
|
||||||
|
|
||||||
|
<h1>Upgrading from another system</h1>
|
||||||
|
<p>WordPress can <a href="http://codex.wordpress.org/Importing_Content">import from a number of systems</a>. First you need to get WordPress installed and working as described above.</p>
|
||||||
|
|
||||||
|
<h1>XML-RPC and Atom Interface</h1>
|
||||||
|
<p>You can now post to your WordPress blog with tools like <a href="http://windowslivewriter.spaces.live.com/">Windows Live Writer</a>, <a href="http://ecto.kung-foo.tv/">Ecto</a>, <a href="http://bloggar.com/">Bloggar</a>, <a href="http://radio.userland.com">Radio Userland</a> (which means you can use Radio's email-to-blog feature), <a href="http://www.newzcrawler.com/">NewzCrawler</a>, and other tools that support the Blogging APIs! :) You can read more about <a href="http://codex.wordpress.org/XML-RPC_Support">XML-RPC support on the Codex</a>.</p>
|
||||||
|
|
||||||
|
<h1>Post via Email</h1>
|
||||||
|
<p>You can post from an email client! To set this up go to your "Writing" options screen and fill in the connection details for your secret POP3 account. Then you need to set up <code>wp-mail.php</code> to execute periodically to check the mailbox for new posts. You can do it with Cron-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your <code>wp-mail.php</code> URL.</p>
|
||||||
|
<p>Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address discrete. The script will <em>delete</em> emails that are successfully posted.</p>
|
||||||
|
|
||||||
|
<h1>User Roles</h1>
|
||||||
|
<p>We've eliminated user levels in order to make way for the much more flexible roles system introduced in 2.0. You can <a href="http://codex.wordpress.org/Roles_and_Capabilities">read more about Roles and Capabilities on the Codex</a>.</p>
|
||||||
|
|
||||||
|
<h1> Final notes</h1>
|
||||||
|
<ul>
|
||||||
|
<li>If you have any suggestions, ideas, comments, or if you (gasp!) found a bug, join us in the <a href="http://wordpress.org/support/">Support Forums</a>.</li>
|
||||||
|
<li>WordPress now has a robust plugin API that makes extending the code easy. If you are a developer interested in utilizing this see the <a href="http://codex.wordpress.org/Plugin_API">plugin documentation in the Codex</a>. In most all cases you shouldn't modify any of the core code.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h1>Share the Love</h1>
|
||||||
|
<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.</p>
|
||||||
|
|
||||||
|
<h1>Copyright</h1>
|
||||||
|
<p>WordPress is released under the <abbr title="GNU Public License">GPL</abbr> (see <a href="license.txt">license.txt</a>).</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
1356
wp-admin/admin-ajax.php
Normal file
44
wp-admin/admin-footer.php
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* WordPress Administration Template Footer
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div></div><!-- wpbody-content -->
|
||||||
|
<div class="clear"></div></div><!-- wpbody -->
|
||||||
|
<div class="clear"></div></div><!-- wpcontent -->
|
||||||
|
</div><!-- wpwrap -->
|
||||||
|
|
||||||
|
<div id="footer">
|
||||||
|
<p id="footer-left" class="alignleft"><?php
|
||||||
|
do_action( 'in_admin_footer' );
|
||||||
|
$upgrade = apply_filters( 'update_footer', '' );
|
||||||
|
echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.').'</span> | '.__('<a href="http://codex.wordpress.org/">Documentation</a>').' | '.__('<a href="http://wordpress.org/support/forum/4">Feedback</a>') ); ?>
|
||||||
|
</p>
|
||||||
|
<?php // if ( $is_IE ) browse_happy(); ?>
|
||||||
|
<p id="footer-upgrade" class="alignright"><?php echo $upgrade; ?></p>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
do_action('admin_footer', '');
|
||||||
|
do_action('admin_print_footer_scripts');
|
||||||
|
do_action("admin_footer-$hook_suffix");
|
||||||
|
|
||||||
|
// get_site_option() won't exist when auto upgrading from <= 2.7
|
||||||
|
if ( function_exists('get_site_option') ) {
|
||||||
|
if ( false === get_site_option('can_compress_scripts') )
|
||||||
|
compression_test();
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
16
wp-admin/admin-functions.php
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Administration Functions
|
||||||
|
*
|
||||||
|
* This file is deprecated, use 'wp-admin/includes/admin.php' instead.
|
||||||
|
*
|
||||||
|
* @deprecated 2.5
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
_deprecated_file( basename(__FILE__), '2.5', 'wp-admin/includes/admin.php' );
|
||||||
|
|
||||||
|
/** WordPress Administration API: Includes all Administration functions. */
|
||||||
|
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
||||||
|
?>
|
128
wp-admin/admin-header.php
Normal file
|
@ -0,0 +1,128 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* WordPress Administration Template Header
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||||
|
if (!isset($_GET["page"])) require_once('admin.php');
|
||||||
|
|
||||||
|
get_admin_page_title();
|
||||||
|
$title = esc_html( strip_tags( $title ) );
|
||||||
|
wp_user_settings();
|
||||||
|
wp_menu_unfold();
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
||||||
|
<title><?php echo $title; ?> ‹ <?php bloginfo('name') ?> — WordPress</title>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
wp_admin_css( 'css/global' );
|
||||||
|
wp_admin_css();
|
||||||
|
wp_admin_css( 'css/colors' );
|
||||||
|
wp_admin_css( 'css/ie' );
|
||||||
|
wp_enqueue_script('utils');
|
||||||
|
|
||||||
|
$hook_suffix = '';
|
||||||
|
if ( isset($page_hook) )
|
||||||
|
$hook_suffix = "$page_hook";
|
||||||
|
else if ( isset($plugin_page) )
|
||||||
|
$hook_suffix = "$plugin_page";
|
||||||
|
else if ( isset($pagenow) )
|
||||||
|
$hook_suffix = "$pagenow";
|
||||||
|
|
||||||
|
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
|
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
|
||||||
|
var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time() ?>'};
|
||||||
|
var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = '<?php echo substr($pagenow, 0, -4); ?>', adminpage = '<?php echo $admin_body_class; ?>';
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if ( in_array( $pagenow, array('post.php', 'post-new.php', 'page.php', 'page-new.php') ) ) {
|
||||||
|
add_action( 'admin_print_footer_scripts', 'wp_tiny_mce', 25 );
|
||||||
|
wp_enqueue_script('quicktags');
|
||||||
|
}
|
||||||
|
|
||||||
|
do_action('admin_enqueue_scripts', $hook_suffix);
|
||||||
|
do_action("admin_print_styles-$hook_suffix");
|
||||||
|
do_action('admin_print_styles');
|
||||||
|
do_action("admin_print_scripts-$hook_suffix");
|
||||||
|
do_action('admin_print_scripts');
|
||||||
|
do_action("admin_head-$hook_suffix");
|
||||||
|
do_action('admin_head');
|
||||||
|
|
||||||
|
if ( get_user_setting('mfold') == 'f' ) {
|
||||||
|
$admin_body_class .= ' folded';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $is_iphone ) { ?>
|
||||||
|
<style type="text/css">.row-actions{visibility:visible;}</style>
|
||||||
|
<?php } ?>
|
||||||
|
</head>
|
||||||
|
<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
|
||||||
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
|
(function(){
|
||||||
|
var c = document.body.className;
|
||||||
|
c = c.replace(/no-js/, 'js');
|
||||||
|
document.body.className = c;
|
||||||
|
})();
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="wpwrap">
|
||||||
|
<div id="wpcontent">
|
||||||
|
<div id="wphead">
|
||||||
|
<?php
|
||||||
|
$blog_name = get_bloginfo('name', 'display');
|
||||||
|
if ( '' == $blog_name ) {
|
||||||
|
$blog_name = ' ';
|
||||||
|
} else {
|
||||||
|
$blog_name_excerpt = wp_html_excerpt($blog_name, 40);
|
||||||
|
if ( $blog_name != $blog_name_excerpt )
|
||||||
|
$blog_name_excerpt = trim($blog_name_excerpt) . '…';
|
||||||
|
$blog_name = $blog_name_excerpt;
|
||||||
|
}
|
||||||
|
$title_class = '';
|
||||||
|
if ( function_exists('mb_strlen') ) {
|
||||||
|
if ( mb_strlen($blog_name, 'UTF-8') > 30 )
|
||||||
|
$title_class = 'class="long-title"';
|
||||||
|
} else {
|
||||||
|
if ( strlen($blog_name) > 30 )
|
||||||
|
$title_class = 'class="long-title"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a></h1>
|
||||||
|
|
||||||
|
<div id="wphead-info">
|
||||||
|
<div id="user_info">
|
||||||
|
<p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?>
|
||||||
|
<?php if ( ! $is_opera ) { ?><span class="turbo-nag hidden"> | <a href="tools.php"><?php _e('Turbo') ?></a></span><?php } ?> |
|
||||||
|
<a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php favorite_actions($hook_suffix); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="wpbody">
|
||||||
|
<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
|
||||||
|
|
||||||
|
<div id="wpbody-content">
|
||||||
|
<?php
|
||||||
|
screen_meta($hook_suffix);
|
||||||
|
|
||||||
|
do_action('admin_notices');
|
||||||
|
|
||||||
|
if ( $parent_file == 'options-general.php' ) {
|
||||||
|
require(ABSPATH . 'wp-admin/options-head.php');
|
||||||
|
}
|
33
wp-admin/admin-post.php
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* WordPress Administration Generic POST Handler.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** We are located in WordPress Administration Panels */
|
||||||
|
define('WP_ADMIN', true);
|
||||||
|
|
||||||
|
if ( defined('ABSPATH') )
|
||||||
|
require_once(ABSPATH . 'wp-load.php');
|
||||||
|
else
|
||||||
|
require_once('../wp-load.php');
|
||||||
|
|
||||||
|
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
||||||
|
|
||||||
|
nocache_headers();
|
||||||
|
|
||||||
|
do_action('admin_init');
|
||||||
|
|
||||||
|
$action = 'admin_post';
|
||||||
|
|
||||||
|
if ( !wp_validate_auth_cookie() )
|
||||||
|
$action .= '_nopriv';
|
||||||
|
|
||||||
|
if ( !empty($_REQUEST['action']) )
|
||||||
|
$action .= '_' . $_REQUEST['action'];
|
||||||
|
|
||||||
|
do_action($action);
|
||||||
|
|
||||||
|
?>
|
159
wp-admin/admin.php
Normal file
|
@ -0,0 +1,159 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* WordPress Administration Bootstrap
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* In WordPress Administration Panels
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
if ( !defined('WP_ADMIN') )
|
||||||
|
define('WP_ADMIN', TRUE);
|
||||||
|
|
||||||
|
if ( defined('ABSPATH') )
|
||||||
|
require_once(ABSPATH . 'wp-load.php');
|
||||||
|
else
|
||||||
|
require_once('../wp-load.php');
|
||||||
|
|
||||||
|
if ( get_option('db_upgraded') ) {
|
||||||
|
$wp_rewrite->flush_rules();
|
||||||
|
update_option( 'db_upgraded', false );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Runs on the next page load after successful upgrade
|
||||||
|
*
|
||||||
|
* @since 2.8
|
||||||
|
*/
|
||||||
|
do_action('after_db_upgrade');
|
||||||
|
} elseif ( get_option('db_version') != $wp_db_version ) {
|
||||||
|
wp_redirect(admin_url('upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI']))));
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
||||||
|
|
||||||
|
auth_redirect();
|
||||||
|
|
||||||
|
nocache_headers();
|
||||||
|
|
||||||
|
update_category_cache();
|
||||||
|
|
||||||
|
set_screen_options();
|
||||||
|
|
||||||
|
$posts_per_page = get_option('posts_per_page');
|
||||||
|
$date_format = get_option('date_format');
|
||||||
|
$time_format = get_option('time_format');
|
||||||
|
|
||||||
|
wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback'));
|
||||||
|
|
||||||
|
wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
|
||||||
|
wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));
|
||||||
|
|
||||||
|
wp_enqueue_script( 'common' );
|
||||||
|
wp_enqueue_script( 'jquery-color' );
|
||||||
|
|
||||||
|
$editing = false;
|
||||||
|
|
||||||
|
if (isset($_GET['page'])) {
|
||||||
|
$plugin_page = stripslashes($_GET['page']);
|
||||||
|
$plugin_page = plugin_basename($plugin_page);
|
||||||
|
}
|
||||||
|
|
||||||
|
require(ABSPATH . 'wp-admin/menu.php');
|
||||||
|
|
||||||
|
do_action('admin_init');
|
||||||
|
|
||||||
|
// Handle plugin admin pages.
|
||||||
|
if (isset($plugin_page)) {
|
||||||
|
if( ! $page_hook = get_plugin_page_hook($plugin_page, $pagenow) ) {
|
||||||
|
$page_hook = get_plugin_page_hook($plugin_page, $plugin_page);
|
||||||
|
// backwards compatibility for plugins using add_management_page
|
||||||
|
if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) {
|
||||||
|
// There could be plugin specific params on the URL, so we need the whole query string
|
||||||
|
if ( !empty($_SERVER[ 'QUERY_STRING' ]) )
|
||||||
|
$query_string = $_SERVER[ 'QUERY_STRING' ];
|
||||||
|
else
|
||||||
|
$query_string = 'page=' . $plugin_page;
|
||||||
|
wp_redirect( 'tools.php?' . $query_string );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $page_hook ) {
|
||||||
|
do_action('load-' . $page_hook);
|
||||||
|
if (! isset($_GET['noheader']))
|
||||||
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
|
do_action($page_hook);
|
||||||
|
} else {
|
||||||
|
if ( validate_file($plugin_page) ) {
|
||||||
|
wp_die(__('Invalid plugin page'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! ( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) )
|
||||||
|
wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
|
||||||
|
|
||||||
|
do_action('load-' . $plugin_page);
|
||||||
|
|
||||||
|
if (! isset($_GET['noheader']))
|
||||||
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
|
include(WP_PLUGIN_DIR . "/$plugin_page");
|
||||||
|
}
|
||||||
|
|
||||||
|
include(ABSPATH . 'wp-admin/admin-footer.php');
|
||||||
|
|
||||||
|
exit();
|
||||||
|
} else if (isset($_GET['import'])) {
|
||||||
|
|
||||||
|
$importer = $_GET['import'];
|
||||||
|
|
||||||
|
if ( ! current_user_can('import') )
|
||||||
|
wp_die(__('You are not allowed to import.'));
|
||||||
|
|
||||||
|
if ( validate_file($importer) ) {
|
||||||
|
wp_die(__('Invalid importer.'));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Allow plugins to define importers as well
|
||||||
|
if ( !isset($wp_importers) || !isset($wp_importers[$importer]) || ! is_callable($wp_importers[$importer][2]))
|
||||||
|
{
|
||||||
|
if (! file_exists(ABSPATH . "wp-admin/import/$importer.php"))
|
||||||
|
{
|
||||||
|
wp_die(__('Cannot load importer.'));
|
||||||
|
}
|
||||||
|
include(ABSPATH . "wp-admin/import/$importer.php");
|
||||||
|
}
|
||||||
|
|
||||||
|
$parent_file = 'tools.php';
|
||||||
|
$submenu_file = 'import.php';
|
||||||
|
$title = __('Import');
|
||||||
|
|
||||||
|
if (! isset($_GET['noheader']))
|
||||||
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
|
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
||||||
|
|
||||||
|
define('WP_IMPORTING', true);
|
||||||
|
|
||||||
|
call_user_func($wp_importers[$importer][2]);
|
||||||
|
|
||||||
|
include(ABSPATH . 'wp-admin/admin-footer.php');
|
||||||
|
|
||||||
|
// Make sure rules are flushed
|
||||||
|
global $wp_rewrite;
|
||||||
|
$wp_rewrite->flush_rules(false);
|
||||||
|
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
do_action("load-$pagenow");
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !empty($_REQUEST['action']) )
|
||||||
|
do_action('admin_action_' . $_REQUEST['action']);
|
||||||
|
|
||||||
|
?>
|
59
wp-admin/async-upload.php
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Accepts file uploads from swfupload or other asynchronous upload methods.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
define('WP_ADMIN', true);
|
||||||
|
|
||||||
|
if ( defined('ABSPATH') )
|
||||||
|
require_once(ABSPATH . 'wp-load.php');
|
||||||
|
else
|
||||||
|
require_once('../wp-load.php');
|
||||||
|
|
||||||
|
// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
|
||||||
|
if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
||||||
|
$_COOKIE[SECURE_AUTH_COOKIE] = $_REQUEST['auth_cookie'];
|
||||||
|
elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
||||||
|
$_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
|
||||||
|
unset($current_user);
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
header('Content-Type: text/plain; charset=' . get_option('blog_charset'));
|
||||||
|
|
||||||
|
if ( !current_user_can('upload_files') )
|
||||||
|
wp_die(__('You do not have permission to upload files.'));
|
||||||
|
|
||||||
|
// just fetch the detail form for that attachment
|
||||||
|
if ( isset($_REQUEST['attachment_id']) && ($id = intval($_REQUEST['attachment_id'])) && $_REQUEST['fetch'] ) {
|
||||||
|
if ( 2 == $_REQUEST['fetch'] ) {
|
||||||
|
add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
|
||||||
|
echo get_media_item($id, array( 'send' => false, 'delete' => true ));
|
||||||
|
} else {
|
||||||
|
add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2);
|
||||||
|
echo get_media_item($id);
|
||||||
|
}
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
check_admin_referer('media-form');
|
||||||
|
|
||||||
|
$id = media_handle_upload('async-upload', $_REQUEST['post_id']);
|
||||||
|
if (is_wp_error($id)) {
|
||||||
|
echo '<div id="media-upload-error">'.esc_html($id->get_error_message()).'</div>';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $_REQUEST['short'] ) {
|
||||||
|
// short form response - attachment ID only
|
||||||
|
echo $id;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// long form response - big chunk o html
|
||||||
|
$type = $_REQUEST['type'];
|
||||||
|
echo apply_filters("async_upload_{$type}", $id);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
306
wp-admin/categories.php
Normal file
|
@ -0,0 +1,306 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Categories Management Panel
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** Load WordPress Bootstrap */
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
$title = __('Categories');
|
||||||
|
|
||||||
|
wp_reset_vars( array('action', 'cat') );
|
||||||
|
|
||||||
|
if ( isset( $_GET['action'] ) && isset($_GET['delete']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
|
||||||
|
$action = 'bulk-delete';
|
||||||
|
|
||||||
|
switch($action) {
|
||||||
|
|
||||||
|
case 'addcat':
|
||||||
|
|
||||||
|
check_admin_referer('add-category');
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
if ( wp_insert_category($_POST ) )
|
||||||
|
wp_safe_redirect( add_query_arg( 'message', 1, wp_get_referer() ) . '#addcat' );
|
||||||
|
else
|
||||||
|
wp_safe_redirect( add_query_arg( 'message', 4, wp_get_referer() ) . '#addcat' );
|
||||||
|
|
||||||
|
exit;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'delete':
|
||||||
|
$cat_ID = (int) $_GET['cat_ID'];
|
||||||
|
check_admin_referer('delete-category_' . $cat_ID);
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
$cat_name = get_cat_name($cat_ID);
|
||||||
|
|
||||||
|
// Don't delete the default cats.
|
||||||
|
if ( $cat_ID == get_option('default_category') )
|
||||||
|
wp_die(sprintf(__("Can’t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
|
||||||
|
|
||||||
|
wp_delete_category($cat_ID);
|
||||||
|
|
||||||
|
wp_safe_redirect( add_query_arg( 'message', 2, wp_get_referer() ) );
|
||||||
|
exit;
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'bulk-delete':
|
||||||
|
check_admin_referer('bulk-categories');
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die( __('You are not allowed to delete categories.') );
|
||||||
|
|
||||||
|
foreach ( (array) $_GET['delete'] as $cat_ID ) {
|
||||||
|
$cat_name = get_cat_name($cat_ID);
|
||||||
|
|
||||||
|
// Don't delete the default cats.
|
||||||
|
if ( $cat_ID == get_option('default_category') )
|
||||||
|
wp_die(sprintf(__("Can’t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
|
||||||
|
|
||||||
|
wp_delete_category($cat_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
wp_safe_redirect( wp_get_referer() );
|
||||||
|
exit();
|
||||||
|
|
||||||
|
break;
|
||||||
|
case 'edit':
|
||||||
|
|
||||||
|
$title = __('Edit Category');
|
||||||
|
|
||||||
|
require_once ('admin-header.php');
|
||||||
|
$cat_ID = (int) $_GET['cat_ID'];
|
||||||
|
$category = get_category_to_edit($cat_ID);
|
||||||
|
include('edit-category-form.php');
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'editedcat':
|
||||||
|
$cat_ID = (int) $_POST['cat_ID'];
|
||||||
|
check_admin_referer('update-category_' . $cat_ID);
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
$location = 'categories.php';
|
||||||
|
if ( $referer = wp_get_original_referer() ) {
|
||||||
|
if ( false !== strpos($referer, 'categories.php') )
|
||||||
|
$location = $referer;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( wp_update_category($_POST) )
|
||||||
|
$location = add_query_arg('message', 3, $location);
|
||||||
|
else
|
||||||
|
$location = add_query_arg('message', 5, $location);
|
||||||
|
|
||||||
|
wp_redirect($location);
|
||||||
|
|
||||||
|
exit;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
|
||||||
|
if ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
|
||||||
|
wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
wp_enqueue_script('admin-categories');
|
||||||
|
if ( current_user_can('manage_categories') )
|
||||||
|
wp_enqueue_script('inline-edit-tax');
|
||||||
|
|
||||||
|
require_once ('admin-header.php');
|
||||||
|
|
||||||
|
$messages[1] = __('Category added.');
|
||||||
|
$messages[2] = __('Category deleted.');
|
||||||
|
$messages[3] = __('Category updated.');
|
||||||
|
$messages[4] = __('Category not added.');
|
||||||
|
$messages[5] = __('Category not updated.');
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="wrap nosubsub">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title );
|
||||||
|
if ( isset($_GET['s']) && $_GET['s'] )
|
||||||
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( stripslashes($_GET['s']) ) ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
|
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||||
|
endif; ?>
|
||||||
|
|
||||||
|
<form class="search-form topmargin" action="" method="get">
|
||||||
|
<p class="search-box">
|
||||||
|
<label class="screen-reader-text" for="category-search-input"><?php _e('Search Categories'); ?>:</label>
|
||||||
|
<input type="text" id="category-search-input" name="s" value="<?php _admin_search_query(); ?>" />
|
||||||
|
<input type="submit" value="<?php esc_attr_e( 'Search Categories' ); ?>" class="button" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
<br class="clear" />
|
||||||
|
|
||||||
|
<div id="col-container">
|
||||||
|
|
||||||
|
<div id="col-right">
|
||||||
|
<div class="col-wrap">
|
||||||
|
<form id="posts-filter" action="" method="get">
|
||||||
|
<div class="tablenav">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
|
||||||
|
if ( empty($pagenum) )
|
||||||
|
$pagenum = 1;
|
||||||
|
|
||||||
|
$cats_per_page = get_user_option('categories_per_page');
|
||||||
|
if ( empty($cats_per_page) )
|
||||||
|
$cats_per_page = 20;
|
||||||
|
$cats_per_page = apply_filters('edit_categories_per_page', $cats_per_page);
|
||||||
|
|
||||||
|
if ( !empty($_GET['s']) )
|
||||||
|
$num_cats = count(get_categories(array('hide_empty' => 0, 'search' => $_GET['s'])));
|
||||||
|
else
|
||||||
|
$num_cats = wp_count_terms('category');
|
||||||
|
|
||||||
|
$page_links = paginate_links( array(
|
||||||
|
'base' => add_query_arg( 'pagenum', '%#%' ),
|
||||||
|
'format' => '',
|
||||||
|
'prev_text' => __('«'),
|
||||||
|
'next_text' => __('»'),
|
||||||
|
'total' => ceil($num_cats / $cats_per_page),
|
||||||
|
'current' => $pagenum
|
||||||
|
));
|
||||||
|
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action">
|
||||||
|
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
||||||
|
<?php wp_nonce_field('bulk-categories'); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<table class="widefat fixed" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('categories'); ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('categories', false); ?>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<tbody id="the-list" class="list:cat">
|
||||||
|
<?php
|
||||||
|
cat_rows(0, 0, 0, $pagenum, $cats_per_page);
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
<?php
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action2">
|
||||||
|
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
|
||||||
|
<?php wp_nonce_field('bulk-categories'); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="form-wrap">
|
||||||
|
<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), apply_filters('the_category', get_cat_name(get_option('default_category')))) ?></p>
|
||||||
|
<p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'admin.php?import=wp-cat2tag') ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div><!-- /col-right -->
|
||||||
|
|
||||||
|
<div id="col-left">
|
||||||
|
<div class="col-wrap">
|
||||||
|
|
||||||
|
<?php if ( current_user_can('manage_categories') ) { ?>
|
||||||
|
<?php $category = (object) array(); $category->parent = 0; do_action('add_category_form_pre', $category); ?>
|
||||||
|
|
||||||
|
<div class="form-wrap">
|
||||||
|
<h3><?php _e('Add Category'); ?></h3>
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
<form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">
|
||||||
|
<input type="hidden" name="action" value="addcat" />
|
||||||
|
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-category'); ?>
|
||||||
|
|
||||||
|
<div class="form-field form-required">
|
||||||
|
<label for="cat_name"><?php _e('Category Name') ?></label>
|
||||||
|
<input name="cat_name" id="cat_name" type="text" value="" size="40" aria-required="true" />
|
||||||
|
<p><?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-field">
|
||||||
|
<label for="category_nicename"><?php _e('Category Slug') ?></label>
|
||||||
|
<input name="category_nicename" id="category_nicename" type="text" value="" size="40" />
|
||||||
|
<p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-field">
|
||||||
|
<label for="category_parent"><?php _e('Category Parent') ?></label>
|
||||||
|
<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
|
||||||
|
<p><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-field">
|
||||||
|
<label for="category_description"><?php _e('Description') ?></label>
|
||||||
|
<textarea name="category_description" id="category_description" rows="5" cols="40"></textarea>
|
||||||
|
<p><?php _e('The description is not prominent by default, however some themes may show it.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="submit"><input type="submit" class="button" name="submit" value="<?php esc_attr_e('Add Category'); ?>" /></p>
|
||||||
|
<?php do_action('edit_category_form', $category); ?>
|
||||||
|
</form></div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div><!-- /col-left -->
|
||||||
|
|
||||||
|
</div><!-- /col-container -->
|
||||||
|
</div><!-- /wrap -->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
inline_edit_term_row('categories');
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
include('admin-footer.php');
|
||||||
|
|
||||||
|
?>
|
240
wp-admin/comment.php
Normal file
|
@ -0,0 +1,240 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Comment Management Panel
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** Load WordPress Bootstrap */
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
$parent_file = 'edit-comments.php';
|
||||||
|
$submenu_file = 'edit-comments.php';
|
||||||
|
|
||||||
|
wp_reset_vars( array('action') );
|
||||||
|
|
||||||
|
if ( isset( $_POST['deletecomment'] ) )
|
||||||
|
$action = 'deletecomment';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display error message at bottom of comments.
|
||||||
|
*
|
||||||
|
* @param string $msg Error Message. Assumed to contain HTML and be sanitized.
|
||||||
|
*/
|
||||||
|
function comment_footer_die( $msg ) {
|
||||||
|
echo "<div class='wrap'><p>$msg</p></div>";
|
||||||
|
include('admin-footer.php');
|
||||||
|
die;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch( $action ) {
|
||||||
|
|
||||||
|
case 'editcomment' :
|
||||||
|
$title = __('Edit Comment');
|
||||||
|
|
||||||
|
wp_enqueue_script('comment');
|
||||||
|
require_once('admin-header.php');
|
||||||
|
|
||||||
|
$comment_id = absint( $_GET['c'] );
|
||||||
|
|
||||||
|
if ( !$comment = get_comment( $comment_id ) )
|
||||||
|
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)') );
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
|
||||||
|
comment_footer_die( __('You are not allowed to edit comments on this post.') );
|
||||||
|
|
||||||
|
$comment = get_comment_to_edit( $comment_id );
|
||||||
|
|
||||||
|
include('edit-form-comment.php');
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'cdc' :
|
||||||
|
case 'mac' :
|
||||||
|
|
||||||
|
require_once('admin-header.php');
|
||||||
|
|
||||||
|
$comment_id = absint( $_GET['c'] );
|
||||||
|
$formaction = 'cdc' == $action ? 'deletecomment' : 'approvecomment';
|
||||||
|
$nonce_action = 'cdc' == $action ? 'delete-comment_' : 'approve-comment_';
|
||||||
|
$nonce_action .= $comment_id;
|
||||||
|
|
||||||
|
if ( !$comment = get_comment_to_edit( $comment_id ) )
|
||||||
|
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php') );
|
||||||
|
|
||||||
|
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
|
||||||
|
comment_footer_die( 'cdc' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
|
||||||
|
?>
|
||||||
|
<div class='wrap'>
|
||||||
|
|
||||||
|
<div class="narrow">
|
||||||
|
<?php
|
||||||
|
if ( 'spam' == $_GET['dt'] ) {
|
||||||
|
$caution_msg = __('You are about to mark the following comment as spam:');
|
||||||
|
$button = __('Spam Comment');
|
||||||
|
} elseif ( 'cdc' == $action ) {
|
||||||
|
$caution_msg = __('You are about to delete the following comment:');
|
||||||
|
$button = __('Delete Comment');
|
||||||
|
} else {
|
||||||
|
$caution_msg = __('You are about to approve the following comment:');
|
||||||
|
$button = __('Approve Comment');
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p>
|
||||||
|
|
||||||
|
<p><?php _e('Are you sure you want to do that?'); ?></p>
|
||||||
|
|
||||||
|
<form action='comment.php' method='get'>
|
||||||
|
|
||||||
|
<table width="100%">
|
||||||
|
<tr>
|
||||||
|
<td><input type='button' class="button" value='<?php esc_attr_e('No'); ?>' onclick="self.location='<?php echo admin_url('edit-comments.php'); ?>" /></td>
|
||||||
|
<td class="textright"><input type='submit' class="button" value='<?php echo esc_attr($button); ?>' /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<?php wp_nonce_field( $nonce_action ); ?>
|
||||||
|
<input type='hidden' name='action' value='<?php echo esc_attr($formaction); ?>' />
|
||||||
|
<?php if ( 'spam' == $_GET['dt'] ) { ?>
|
||||||
|
<input type='hidden' name='dt' value='spam' />
|
||||||
|
<?php } ?>
|
||||||
|
<input type='hidden' name='p' value='<?php echo esc_attr($comment->comment_post_ID); ?>' />
|
||||||
|
<input type='hidden' name='c' value='<?php echo esc_attr($comment->comment_ID); ?>' />
|
||||||
|
<input type='hidden' name='noredir' value='1' />
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<table class="form-table" cellpadding="5">
|
||||||
|
<tr class="alt">
|
||||||
|
<th scope="row"><?php _e('Author'); ?></th>
|
||||||
|
<td><?php echo $comment->comment_author; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php if ( $comment->comment_author_email ) { ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><?php _e('E-mail'); ?></th>
|
||||||
|
<td><?php echo $comment->comment_author_email; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
<?php if ( $comment->comment_author_url ) { ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><?php _e('URL'); ?></th>
|
||||||
|
<td><a href="<?php echo $comment->comment_author_url; ?>"><?php echo $comment->comment_author_url; ?></a></td>
|
||||||
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" valign="top"><?php /* translators: field name in comment form */ echo _x('Comment', 'noun'); ?></th>
|
||||||
|
<td><?php echo $comment->comment_content; ?></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'deletecomment' :
|
||||||
|
$comment_id = absint( $_REQUEST['c'] );
|
||||||
|
check_admin_referer( 'delete-comment_' . $comment_id );
|
||||||
|
|
||||||
|
if ( isset( $_REQUEST['noredir'] ) )
|
||||||
|
$noredir = true;
|
||||||
|
else
|
||||||
|
$noredir = false;
|
||||||
|
|
||||||
|
if ( !$comment = get_comment( $comment_id ) )
|
||||||
|
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit-comments.php') );
|
||||||
|
|
||||||
|
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
|
||||||
|
comment_footer_die( __('You are not allowed to edit comments on this post.') );
|
||||||
|
|
||||||
|
if ( 'spam' == $_REQUEST['dt'] )
|
||||||
|
wp_set_comment_status( $comment->comment_ID, 'spam' );
|
||||||
|
else
|
||||||
|
wp_delete_comment( $comment->comment_ID );
|
||||||
|
|
||||||
|
if ( '' != wp_get_referer() && false == $noredir && false === strpos(wp_get_referer(), 'comment.php' ) )
|
||||||
|
wp_redirect( wp_get_referer() );
|
||||||
|
else if ( '' != wp_get_original_referer() && false == $noredir )
|
||||||
|
wp_redirect( wp_get_original_referer() );
|
||||||
|
else
|
||||||
|
wp_redirect( admin_url('edit-comments.php') );
|
||||||
|
|
||||||
|
die;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'unapprovecomment' :
|
||||||
|
$comment_id = absint( $_GET['c'] );
|
||||||
|
check_admin_referer( 'unapprove-comment_' . $comment_id );
|
||||||
|
|
||||||
|
if ( isset( $_GET['noredir'] ) )
|
||||||
|
$noredir = true;
|
||||||
|
else
|
||||||
|
$noredir = false;
|
||||||
|
|
||||||
|
if ( !$comment = get_comment( $comment_id ) )
|
||||||
|
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php') );
|
||||||
|
|
||||||
|
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
|
||||||
|
comment_footer_die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') );
|
||||||
|
|
||||||
|
wp_set_comment_status( $comment->comment_ID, 'hold' );
|
||||||
|
|
||||||
|
if ( '' != wp_get_referer() && false == $noredir )
|
||||||
|
wp_redirect( wp_get_referer() );
|
||||||
|
else
|
||||||
|
wp_redirect( admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
|
||||||
|
|
||||||
|
exit();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'approvecomment' :
|
||||||
|
$comment_id = absint( $_GET['c'] );
|
||||||
|
check_admin_referer( 'approve-comment_' . $comment_id );
|
||||||
|
|
||||||
|
if ( isset( $_GET['noredir'] ) )
|
||||||
|
$noredir = true;
|
||||||
|
else
|
||||||
|
$noredir = false;
|
||||||
|
|
||||||
|
if ( !$comment = get_comment( $comment_id ) )
|
||||||
|
comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php') );
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_post', $comment->comment_post_ID) )
|
||||||
|
comment_footer_die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
|
||||||
|
|
||||||
|
wp_set_comment_status( $comment->comment_ID, 'approve' );
|
||||||
|
|
||||||
|
if ( '' != wp_get_referer() && false == $noredir )
|
||||||
|
wp_redirect( wp_get_referer() );
|
||||||
|
else
|
||||||
|
wp_redirect( admin_url('edit-comments.php?p=' . absint( $comment->comment_post_ID ) . '#comments') );
|
||||||
|
|
||||||
|
exit();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'editedcomment' :
|
||||||
|
|
||||||
|
$comment_id = absint( $_POST['comment_ID'] );
|
||||||
|
$comment_post_id = absint( $_POST['comment_post_ID'] );
|
||||||
|
|
||||||
|
check_admin_referer( 'update-comment_' . $comment_id );
|
||||||
|
|
||||||
|
edit_comment();
|
||||||
|
|
||||||
|
$location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
|
||||||
|
$location = apply_filters( 'comment_edit_redirect', $location, $comment_id );
|
||||||
|
wp_redirect( $location );
|
||||||
|
|
||||||
|
exit();
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
wp_die( __('Unknown action.') );
|
||||||
|
break;
|
||||||
|
|
||||||
|
} // end switch
|
||||||
|
|
||||||
|
include('admin-footer.php');
|
||||||
|
|
||||||
|
?>
|
80
wp-admin/css/colors-classic-rtl.css
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
.bar {
|
||||||
|
border-right-color: transparent;
|
||||||
|
border-left-color: #99d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugins .togl {
|
||||||
|
border-right-color: transparent;
|
||||||
|
border-left-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-com-count {
|
||||||
|
background-image: url(../images/bubble_bg-rtl.gif);
|
||||||
|
}
|
||||||
|
.tablenav .tablenav-pages a {
|
||||||
|
background: #eee url('../images/menu-bits-rtl-vs.gif') repeat-x scroll right -379px;
|
||||||
|
}
|
||||||
|
#upload-menu li.current {
|
||||||
|
border-right-color: transparent;
|
||||||
|
border-left-color: #448abd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu .current a.current {
|
||||||
|
background: transparent url(../images/menu-bits-rtl-vs.gif) no-repeat scroll right -289px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-menu-separator {
|
||||||
|
background: transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu li.wp-menu-separator {
|
||||||
|
background: transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu .wp-menu-toggle,
|
||||||
|
#adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle {
|
||||||
|
background: transparent url(../images/menu-bits-rtl-vs.gif) repeat-x scroll right -207px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-has-current-submenu ul li a.current {
|
||||||
|
background: url(../images/menu-dark-rtl.gif) top right no-repeat !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
|
||||||
|
#adminmenu .menu-top .current {
|
||||||
|
background: url(../images/menu-bits-rtl-vs.gif) top right repeat-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu ul li a {
|
||||||
|
background: url(../images/menu-dark-rtl.gif) bottom right no-repeat !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle, #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle {
|
||||||
|
background: transparent url(../images/menu-bits-rtl-vs.gif) no-repeat right -207px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-has-submenu:hover .wp-menu-toggle,
|
||||||
|
#adminmenu .wp-menu-open .wp-menu-toggle {
|
||||||
|
background: transparent url(../images/menu-bits-rtl-vs.gif) repeat-x scroll right -109px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu a.wp-has-submenu {
|
||||||
|
background: #f1f1f1 url(../images/menu-bits-rtl-vs.gif) repeat-x scroll right -379px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu a {
|
||||||
|
background: #FFFFFF url(../images/menu-bits-rtl-vs.gif) no-repeat scroll right -310px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.current a,
|
||||||
|
#adminmenu .wp-submenu a:hover {
|
||||||
|
background: transparent url(../images/menu-bits-rtl-vs.gif) no-repeat scroll right -289px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu a.wp-has-submenu {
|
||||||
|
background: #b5b5b5 url(../images/menu-bits-rtl-vs.gif) repeat-x scroll right top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta-box-sortables .postbox:hover .handlediv {
|
||||||
|
background: transparent url(../images/menu-bits-rtl-vs.gif) no-repeat scroll right -111px;
|
||||||
|
}
|
1671
wp-admin/css/colors-classic.css
Normal file
83
wp-admin/css/colors-fresh-rtl.css
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
.bar {
|
||||||
|
border-right-color: transparent;
|
||||||
|
border-left-color: #99d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugins .togl {
|
||||||
|
border-right-color: transparent;
|
||||||
|
border-left-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-com-count {
|
||||||
|
background-image: url(../images/bubble_bg-rtl.gif);
|
||||||
|
}
|
||||||
|
.tablenav .tablenav-pages a {
|
||||||
|
background: #eee url('../images/menu-bits-rtl.gif') repeat-x scroll right -379px;
|
||||||
|
}
|
||||||
|
#upload-menu li.current {
|
||||||
|
border-right-color: transparent;
|
||||||
|
border-left-color: #448abd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu .current a.current {
|
||||||
|
background: transparent url(../images/menu-bits-rtl.gif) no-repeat scroll right -289px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-menu-separator {
|
||||||
|
background: transparent url(../images/menu-arrows.gif) no-repeat scroll right -34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu li.wp-menu-separator {
|
||||||
|
background: transparent url(../images/menu-arrows.gif) no-repeat scroll left 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu .wp-menu-toggle,
|
||||||
|
#adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle {
|
||||||
|
background: transparent url(../images/menu-bits-rtl.gif) repeat-x scroll right -207px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-has-current-submenu ul li a.current {
|
||||||
|
background: url(../images/menu-dark-rtl.gif) top right no-repeat !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
|
||||||
|
#adminmenu .menu-top .current {
|
||||||
|
background: url(../images/menu-bits-rtl.gif) top right repeat-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu ul li a {
|
||||||
|
background: url(../images/menu-dark-rtl.gif) bottom right no-repeat !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle, #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle {
|
||||||
|
background: transparent url(../images/menu-bits-rtl.gif) no-repeat right -207px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-has-submenu:hover .wp-menu-toggle,
|
||||||
|
#adminmenu .wp-menu-open .wp-menu-toggle {
|
||||||
|
background: transparent url(../images/menu-bits-rtl.gif) repeat-x scroll right -109px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu a.wp-has-submenu {
|
||||||
|
background: #f1f1f1 url(../images/menu-bits-rtl.gif) repeat-x scroll right -379px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu .wp-submenu a {
|
||||||
|
background: #FFFFFF url(../images/menu-bits-rtl.gif) no-repeat scroll right -310px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.current a,
|
||||||
|
#adminmenu .wp-submenu a:hover {
|
||||||
|
background: transparent url(../images/menu-bits-rtl.gif) no-repeat scroll right -289px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.wp-has-current-submenu a.wp-has-submenu {
|
||||||
|
background: #b5b5b5 url(../images/menu-bits-rtl.gif) repeat-x scroll right top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta-box-sortables .postbox:hover .handlediv {
|
||||||
|
background: transparent url(../images/menu-bits-rtl.gif) no-repeat scroll right -111px;
|
||||||
|
}
|
||||||
|
#favorite-toggle {
|
||||||
|
background: transparent url(../images/fav-arrow-rtl.gif) no-repeat right -4px;
|
||||||
|
}
|
1660
wp-admin/css/colors-fresh.css
Normal file
93
wp-admin/css/dashboard-rtl.css
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
#dashboard-widgets-wrap .has-sidebar {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: -51%;
|
||||||
|
}
|
||||||
|
#dashboard-widgets-wrap .has-sidebar .has-sidebar-content {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 51%;
|
||||||
|
}
|
||||||
|
.view-all {
|
||||||
|
right: auto;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
#dashboard_right_now p.sub, #dashboard-widgets h4, #dashboard_quick_press h4, a.rsswidget, #dashboard_plugins h4, #dashboard_plugins h5, #dashboard_recent_comments .comment-meta .approve {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
}
|
||||||
|
#dashboard_right_now td.b {
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 6px;
|
||||||
|
text-align: left;
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
}
|
||||||
|
#dashboard_right_now .t {
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 12px;
|
||||||
|
}
|
||||||
|
#dashboard_right_now .versions a {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
}
|
||||||
|
#dashboard_right_now a.button {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
#dashboard-widgets h3 .postbox-title-action {
|
||||||
|
right: auto;
|
||||||
|
left: 30px;
|
||||||
|
}
|
||||||
|
#the-comment-list .pingback {
|
||||||
|
padding-left: 0 !important;
|
||||||
|
padding-right: 9px !important;
|
||||||
|
}
|
||||||
|
/* Recent Comments */
|
||||||
|
#the-comment-list .comment-item {
|
||||||
|
padding: 1em 70px 1em 10px;
|
||||||
|
}
|
||||||
|
#the-comment-list .comment-item .avatar {
|
||||||
|
float: right;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: -60px;
|
||||||
|
}
|
||||||
|
/* Feeds */
|
||||||
|
.rss-widget cite {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.rss-widget span.rss-date {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
/* QuickPress */
|
||||||
|
#dashboard_quick_press h4 {
|
||||||
|
float: right;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
#dashboard_quick_press h4 label {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
#dashboard_quick_press .input-text-wrap, #dashboard_quick_press .textarea-wrap {
|
||||||
|
margin: 0 5em 1em 0;
|
||||||
|
}
|
||||||
|
#dashboard_quick_press #media-buttons {
|
||||||
|
margin: 0 5em .5em 0;
|
||||||
|
padding: 0 10px 0 0;
|
||||||
|
}
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 4.6em;
|
||||||
|
}
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit input {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
|
||||||
|
margin: 0 10px 0 1em;
|
||||||
|
}
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit #publish {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
/* Recent Drafts */
|
||||||
|
#dashboard_recent_drafts h4 abbr {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
margin-left:0;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
390
wp-admin/css/dashboard.css
Normal file
|
@ -0,0 +1,390 @@
|
||||||
|
.postbox p, .postbox ul, .postbox ol, .postbox blockquote, #wp-version-message { font-size: 11px; }
|
||||||
|
|
||||||
|
.edit-box {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3:hover .edit-box {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
form .input-text-wrap {
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
padding: 2px 3px;
|
||||||
|
border-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets form .input-text-wrap input {
|
||||||
|
border: 0 none;
|
||||||
|
outline: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
width: 99%;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
form .textarea-wrap {
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
padding: 2px;
|
||||||
|
border-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets form .textarea-wrap textarea {
|
||||||
|
border: 0 none;
|
||||||
|
padding: 0;
|
||||||
|
outline: none;
|
||||||
|
width: 99%;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets .postbox form .submit {
|
||||||
|
float: none;
|
||||||
|
margin: .5em 0 0;
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit input {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.postbox div.inside {
|
||||||
|
margin: 10px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets h3 a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets h3 .postbox-title-action {
|
||||||
|
position: absolute;
|
||||||
|
right: 30px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets h4 {
|
||||||
|
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 0 0 .2em;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Right Now */
|
||||||
|
|
||||||
|
#dashboard_right_now p.sub,
|
||||||
|
#dashboard_right_now .table, #dashboard_right_now .versions {
|
||||||
|
margin: -12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .inside {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now p.sub {
|
||||||
|
font-style: italic;
|
||||||
|
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
|
padding: 5px 10px 15px;
|
||||||
|
color: #777;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .table {
|
||||||
|
background: #f9f9f9;
|
||||||
|
border-top: #ececec 1px solid;
|
||||||
|
border-bottom: #ececec 1px solid;
|
||||||
|
margin: 0 -9px 10px;
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now table {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now table td {
|
||||||
|
border-top: #ececec 1px solid;
|
||||||
|
padding: 3px 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now table tr.first td {
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now td.b {
|
||||||
|
padding-right: 6px;
|
||||||
|
text-align: right;
|
||||||
|
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now td.b a {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now td.b a:hover {
|
||||||
|
color: #d54e21;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .t {
|
||||||
|
font-size: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
|
padding-top: 6px;
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now td.first,
|
||||||
|
#dashboard_right_now td.last {
|
||||||
|
width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .spam {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .waiting {
|
||||||
|
color: #e66f00;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .approved {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .versions {
|
||||||
|
padding: 6px 10px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now .versions .b {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_right_now a.button {
|
||||||
|
float: right;
|
||||||
|
clear: right;
|
||||||
|
position: relative;
|
||||||
|
top: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Recent Comments */
|
||||||
|
|
||||||
|
#dashboard_recent_comments h3 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_recent_comments .inside {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_recent_comments .comment-meta .approve {
|
||||||
|
font-style: italic;
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item {
|
||||||
|
padding: 1em 10px;
|
||||||
|
border-top: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .pingback {
|
||||||
|
padding-left: 9px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item,
|
||||||
|
#the-comment-list #replyrow {
|
||||||
|
margin: 0 -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item:first-child {
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item .avatar {
|
||||||
|
float: left;
|
||||||
|
margin: 0 10px 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item h4 {
|
||||||
|
line-height: 1.4;
|
||||||
|
margin-top: -.2em;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item h4 cite {
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item blockquote,
|
||||||
|
#the-comment-list .comment-item blockquote p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_recent_comments #the-comment-list .trackback blockquote,
|
||||||
|
#dashboard_recent_comments #the-comment-list .pingback blockquote {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item p.row-actions {
|
||||||
|
margin: 3px 0 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* QuickPress */
|
||||||
|
|
||||||
|
#dashboard_quick_press h4 {
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
float: left;
|
||||||
|
width: 5.5em;
|
||||||
|
clear: both;
|
||||||
|
font-weight: normal;
|
||||||
|
text-align: right;
|
||||||
|
padding-top: 5px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_quick_press h4 label {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_quick_press .input-text-wrap,
|
||||||
|
#dashboard_quick_press .textarea-wrap {
|
||||||
|
margin: 0 0 1em 5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_quick_press #media-buttons {
|
||||||
|
margin: 0 0 .5em 5em;
|
||||||
|
padding: 0 0 0 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_quick_press #media-buttons a {
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit {
|
||||||
|
margin-left: 4.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit input {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
|
||||||
|
margin: 0 1em 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets #dashboard_quick_press form p.submit #publish {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Recent Drafts */
|
||||||
|
#dashboard_recent_drafts ul {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_recent_drafts ul li {
|
||||||
|
margin-bottom: 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_recent_drafts h4 {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_recent_drafts h4 abbr {
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #999;
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_recent_drafts p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Feeds */
|
||||||
|
|
||||||
|
.rss-widget ul {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.rsswidget {
|
||||||
|
font-size: 13px;
|
||||||
|
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
|
line-height: 1.7em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rss-widget ul li {
|
||||||
|
line-height: 1.5em;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rss-widget span.rss-date {
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rss-widget cite {
|
||||||
|
display: block;
|
||||||
|
text-align: right;
|
||||||
|
margin: 0 0 1em;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rss-widget cite:before {
|
||||||
|
content: '\2014';
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Plugins */
|
||||||
|
|
||||||
|
#dashboard_plugins h4 {
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_plugins h5 {
|
||||||
|
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
|
font-size: 13px !important;
|
||||||
|
margin: 0;
|
||||||
|
display: inline;
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_plugins h5 a {
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1.7em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard_plugins p {
|
||||||
|
margin: 0 0 1.4em;
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-comment-wrap {
|
||||||
|
overflow: hidden;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
7
wp-admin/css/farbtastic-rtl.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
.farbtastic .color, .farbtastic .overlay {
|
||||||
|
left: 0;
|
||||||
|
right: 47px;
|
||||||
|
}
|
||||||
|
.farbtastic .marker {
|
||||||
|
margin: -8px -8px 0 0;
|
||||||
|
}
|
32
wp-admin/css/farbtastic.css
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
.farbtastic {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.farbtastic * {
|
||||||
|
position: absolute;
|
||||||
|
cursor: crosshair;
|
||||||
|
}
|
||||||
|
.farbtastic, .farbtastic .wheel {
|
||||||
|
width: 195px;
|
||||||
|
height: 195px;
|
||||||
|
}
|
||||||
|
.farbtastic .color, .farbtastic .overlay {
|
||||||
|
top: 47px;
|
||||||
|
left: 47px;
|
||||||
|
width: 101px;
|
||||||
|
height: 101px;
|
||||||
|
}
|
||||||
|
.farbtastic .wheel {
|
||||||
|
background: url(../images/wheel.png) no-repeat;
|
||||||
|
width: 195px;
|
||||||
|
height: 195px;
|
||||||
|
}
|
||||||
|
.farbtastic .overlay {
|
||||||
|
background: url(../images/mask.png) no-repeat;
|
||||||
|
}
|
||||||
|
.farbtastic .marker {
|
||||||
|
width: 17px;
|
||||||
|
height: 17px;
|
||||||
|
margin: -8px 0 0 -8px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: url(../images/marker.png) no-repeat;
|
||||||
|
}
|
83
wp-admin/css/global-rtl.css
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
/* 2 column liquid layout */
|
||||||
|
#adminmenu {
|
||||||
|
float: right;
|
||||||
|
clear: right;
|
||||||
|
margin-right:-160px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
body.folded #adminmenu {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: -45px;
|
||||||
|
}
|
||||||
|
/* inner 2 column liquid layout */
|
||||||
|
.inner-sidebar {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-right-sidebar #post-body {
|
||||||
|
clear:right;
|
||||||
|
float:right;
|
||||||
|
margin-right:0;
|
||||||
|
margin-left:-340px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-right-sidebar #post-body-content {
|
||||||
|
margin-left: 300px;
|
||||||
|
margin-right:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody {
|
||||||
|
margin-left:0;
|
||||||
|
margin-right: 175px;
|
||||||
|
}
|
||||||
|
.folded #wpbody {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 60px;
|
||||||
|
}
|
||||||
|
#wpbody-content {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
/* 2 columns main area */
|
||||||
|
#col-right {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
.wrap {
|
||||||
|
margin: 0 5px 0 15px;
|
||||||
|
}
|
||||||
|
/* styles for use by people extending the WordPress interface */
|
||||||
|
body, td, textarea, input, select {
|
||||||
|
font-family: Tahoma, arial;
|
||||||
|
}
|
||||||
|
.alignleft {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.alignright {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.subsubsub {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.widefat th {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.widefat th input {
|
||||||
|
margin: 0 8px 0 0;
|
||||||
|
}
|
||||||
|
.wrap h2 {
|
||||||
|
font-family: arial;
|
||||||
|
padding: 14px 0 3px 15px;
|
||||||
|
}
|
||||||
|
.wrap h2.long-header {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.updated, .error {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screen-reader-text, .screen-reader-text span {
|
||||||
|
left:auto;
|
||||||
|
right:-1000em;
|
||||||
|
}
|
||||||
|
}
|
487
wp-admin/css/global.css
Normal file
|
@ -0,0 +1,487 @@
|
||||||
|
/* http://meyerweb.com/eric/tools/css/reset/ */
|
||||||
|
/* v1.0 | 20080212 */
|
||||||
|
|
||||||
|
html, body, div, span, applet, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
a, abbr, acronym, address, big, cite, code,
|
||||||
|
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
||||||
|
small, strike, strong, sub, sup, tt, var,
|
||||||
|
b, u, i, center,
|
||||||
|
dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
outline: 0;
|
||||||
|
/* font-size: 100%;
|
||||||
|
vertical-align: baseline; */
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
ol, ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remember to define focus styles! */
|
||||||
|
/*
|
||||||
|
:focus {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
/* remember to highlight inserts somehow! */
|
||||||
|
ins {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
del {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* tables still need 'cellspacing="0"' in the markup */
|
||||||
|
/*
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
/* end reset css */
|
||||||
|
|
||||||
|
|
||||||
|
/* 2 column liquid layout */
|
||||||
|
#wpwrap {
|
||||||
|
height: auto;
|
||||||
|
min-height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpcontent {
|
||||||
|
height: 100%;
|
||||||
|
padding-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody {
|
||||||
|
clear: both;
|
||||||
|
margin-left: 175px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #wpbody {
|
||||||
|
margin-left: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content {
|
||||||
|
float: left;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
width: 145px;
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-right: 5px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
margin-left: -160px;
|
||||||
|
position: relative;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu {
|
||||||
|
margin-left: -45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu,
|
||||||
|
.folded #adminmenu li.menu-top {
|
||||||
|
width: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
clear: both;
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* inner 2 column liquid layout */
|
||||||
|
.inner-sidebar {
|
||||||
|
float: right;
|
||||||
|
clear: right;
|
||||||
|
display: none;
|
||||||
|
width: 281px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inner-sidebar #side-sortables {
|
||||||
|
width: 280px;
|
||||||
|
min-height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-right-sidebar .inner-sidebar {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-right-sidebar #post-body {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
width: 100%;
|
||||||
|
margin-right: -340px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.has-right-sidebar #post-body-content {
|
||||||
|
margin-right: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 2 columns main area */
|
||||||
|
|
||||||
|
#col-container {
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#col-left {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 39%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#col-right {
|
||||||
|
float: right;
|
||||||
|
clear: right;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
width: 59%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* utility classes */
|
||||||
|
.alignleft {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alignright {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textleft {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textright {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clear {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide visually but not from screen readers */
|
||||||
|
.screen-reader-text,
|
||||||
|
.screen-reader-text span {
|
||||||
|
position: absolute;
|
||||||
|
left: -1000em;
|
||||||
|
height: 1px;
|
||||||
|
width: 1px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden,
|
||||||
|
.js .closed .inside,
|
||||||
|
.js .hide-if-js,
|
||||||
|
.no-js .hide-if-no-js {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* include margin and padding in the width calculation of input and textarea */
|
||||||
|
input[type="text"],
|
||||||
|
input[type="password"],
|
||||||
|
textarea {
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-ms-box-sizing: border-box; /* ie8 only */
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* styles for use by people extending the WordPress interface */
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body,
|
||||||
|
td,
|
||||||
|
textarea,
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body,
|
||||||
|
textarea {
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
line-height: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
li,
|
||||||
|
dd {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p,
|
||||||
|
li,
|
||||||
|
dl,
|
||||||
|
dd,
|
||||||
|
dt {
|
||||||
|
line-height: 140%;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea,
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
margin: 1px;
|
||||||
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
display: block;
|
||||||
|
font-size: 2em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: .67em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
display: block;
|
||||||
|
font-size: 1.5em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: .83em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
display: block;
|
||||||
|
font-size: 1.17em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
display: block;
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 1.33em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
display: block;
|
||||||
|
font-size: 0.83em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 1.67em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
display: block;
|
||||||
|
font-size: 0.67em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 2.33em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.ul-disc {
|
||||||
|
list-style: disc outside;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.ul-square {
|
||||||
|
list-style: square outside;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol.ol-decimal {
|
||||||
|
list-style: decimal outside;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.ul-disc,
|
||||||
|
ul.ul-square,
|
||||||
|
ol.ol-decimal {
|
||||||
|
margin-left: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.ul-disc > li,
|
||||||
|
ul.ul-square > li,
|
||||||
|
ol.ol-decimal > li {
|
||||||
|
margin: 0 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subsubsub {
|
||||||
|
list-style: none;
|
||||||
|
margin: 8px 0 5px;
|
||||||
|
padding: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 11px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subsubsub a {
|
||||||
|
line-height: 2;
|
||||||
|
padding: .2em;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subsubsub a .count, .subsubsub a.current .count {
|
||||||
|
color: #999;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subsubsub a.current {
|
||||||
|
font-weight: bold;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subsubsub li {
|
||||||
|
display: inline;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-spacing: 0;
|
||||||
|
width: 100%;
|
||||||
|
clear: both;
|
||||||
|
margin: 0;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
-khtml-border-radius: 4px;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat * {
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat td,
|
||||||
|
.widefat th {
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
font-size: 11px;
|
||||||
|
vertical-align: text-top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat td {
|
||||||
|
padding: 3px 7px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat td p,
|
||||||
|
.widefat td ol,
|
||||||
|
.widefat td ul {
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat th {
|
||||||
|
padding: 7px 7px 8px;
|
||||||
|
text-align: left;
|
||||||
|
line-height: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat th input {
|
||||||
|
margin: 0 0 0 8px;
|
||||||
|
padding: 0;
|
||||||
|
vertical-align: text-top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat .check-column {
|
||||||
|
width: 2.2em;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat tbody th.check-column {
|
||||||
|
padding: 7px 0 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat .num,
|
||||||
|
.column-comments,
|
||||||
|
.column-links,
|
||||||
|
.column-posts,
|
||||||
|
.column-parent {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat th#comments {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrap {
|
||||||
|
margin: 0 15px 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.updated,
|
||||||
|
.error {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
margin: 5px 15px 2px;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
-khtml-border-radius: 3px;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.updated p,
|
||||||
|
.error p {
|
||||||
|
margin: 0.5em 0;
|
||||||
|
line-height: 1;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrap .updated,
|
||||||
|
.wrap .error {
|
||||||
|
margin: 5px 0 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrap h2 {
|
||||||
|
font: italic normal normal 24px/29px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
||||||
|
margin: 0;
|
||||||
|
padding: 14px 15px 3px 0;
|
||||||
|
line-height: 35px;
|
||||||
|
text-shadow: rgba(255,255,255,1) 0px 1px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrap h2.long-header {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
91
wp-admin/css/ie-rtl.css
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
* html #wpcontent #adminmenu .wp-has-submenu .wp-menu-toggle {
|
||||||
|
background: url(../images/menu-bits-rtl.gif) no-repeat scroll right -109px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #wpcontent #adminmenu li.wp-has-current-submenu .wp-menu-toggle {
|
||||||
|
background: url(../images/menu-bits-rtl.gif) no-repeat scroll right -206px;
|
||||||
|
}
|
||||||
|
* html #adminmenu {
|
||||||
|
margin-left:0;
|
||||||
|
margin-right: -80px;
|
||||||
|
}
|
||||||
|
* html div.folded #adminmenu {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: -22px;
|
||||||
|
}
|
||||||
|
#wpcontent #adminmenu .wp-submenu li.wp-submenu-head {
|
||||||
|
padding: 3px 10px 4px 4px;
|
||||||
|
}
|
||||||
|
.inline-edit-row fieldset label span.title {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.inline-edit-row fieldset label span.input-text-wrap {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
p.search-box {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
* html #poststuff h2 {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
#bh {
|
||||||
|
margin: 7px 10px 0 0;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
#user_info + div#favorite-actions {
|
||||||
|
right: auto;
|
||||||
|
left: 15px;
|
||||||
|
}
|
||||||
|
#wphead-info {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
/* without this dashboard widgets appear in one column for some screen widths */
|
||||||
|
div#dashboard-widgets {
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 1px;
|
||||||
|
}
|
||||||
|
.tagchecklist span a {
|
||||||
|
margin: 4px -9px 0 0;
|
||||||
|
}
|
||||||
|
.widefat th input {
|
||||||
|
margin: 0 5px 0 0;
|
||||||
|
}
|
||||||
|
/* ---------- add by navid */
|
||||||
|
#TB_window {
|
||||||
|
width: 670px;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
margin-right: 335px !important;
|
||||||
|
}
|
||||||
|
#dashboard_plugins {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
#dashboard_plugins h3.hndle {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
#dashboard_incoming_links ul li,
|
||||||
|
#dashboard_secondary ul li,
|
||||||
|
#dashboard_primary ul li,
|
||||||
|
p.row-actions {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#favorite-inside {
|
||||||
|
position: absolute;
|
||||||
|
right:0;
|
||||||
|
}
|
||||||
|
#post-status-info {
|
||||||
|
height: 25px;
|
||||||
|
}
|
||||||
|
#screen-meta {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
p.submit { /* quick edit and reply in edit-comments.php */
|
||||||
|
height:22px;
|
||||||
|
}
|
||||||
|
.inner-sidebar { /* fix edit single comment */
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
form#widgets-filter { /* fix widget page */
|
||||||
|
position: static;
|
||||||
|
}
|
401
wp-admin/css/ie.css
Normal file
|
@ -0,0 +1,401 @@
|
||||||
|
/* Fixes for IE bugs */
|
||||||
|
|
||||||
|
input.button,
|
||||||
|
input.button-secondary,
|
||||||
|
input.button-highlighted {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#minor-publishing-actions input,
|
||||||
|
#major-publishing-actions input {
|
||||||
|
min-width: auto;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .postbox {
|
||||||
|
border: 1px solid #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .postbox h3 {
|
||||||
|
margin-bottom: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .inner-sidebar #side-sortables,
|
||||||
|
* html .postbox-container .meta-box-sortables {
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #wpbody-content #screen-options-link-wrap {
|
||||||
|
display: inline-block;
|
||||||
|
width: 150px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #wpbody-content #contextual-help-link-wrap {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #adminmenu {
|
||||||
|
margin-left: -80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .folded #adminmenu {
|
||||||
|
margin-left: -22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #wpcontent #adminmenu li.menu-top {
|
||||||
|
display: inline;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #footer {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu li.menu-top {
|
||||||
|
display: block;
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#adminmenu {
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu li.menu-top a.menu-top {
|
||||||
|
min-width: auto;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpcontent #adminmenu li.wp-has-current-submenu a.wp-has-submenu {
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #wpcontent #adminmenu .wp-menu-open .wp-menu-toggle {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #wpcontent #adminmenu .wp-has-submenu .wp-menu-toggle {
|
||||||
|
background: url(../images/menu-bits.gif) no-repeat scroll left -109px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #wpcontent #adminmenu li.wp-has-current-submenu .wp-menu-toggle {
|
||||||
|
background: url(../images/menu-bits.gif) no-repeat scroll left -206px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #adminmenu div.wp-menu-image {
|
||||||
|
height: 29px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpcontent #adminmenu .wp-submenu li {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#adminmenu,
|
||||||
|
.wp-submenu,
|
||||||
|
.wp-submenu li,
|
||||||
|
.wp-menu-toggle {
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu li.wp-menu-separator {
|
||||||
|
width: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpcontent #adminmenu .wp-submenu li.wp-submenu-head {
|
||||||
|
padding: 3px 4px 4px 10px;
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu .menu-top {
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folded #adminmenu .wp-submenu {
|
||||||
|
margin: -1px 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#template,
|
||||||
|
#template div,
|
||||||
|
#editcat,
|
||||||
|
#addcat,
|
||||||
|
* html .stuffbox h3 {
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submitbox {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Inline Editor */
|
||||||
|
#wpbody-content .quick-edit-row-post .inline-edit-col-left {
|
||||||
|
width: 39%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .inline-edit-row-post .inline-edit-col-center {
|
||||||
|
width: 19%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .quick-edit-row-page .inline-edit-col-left {
|
||||||
|
width: 49%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .bulk-edit-row .inline-edit-col-left {
|
||||||
|
width: 29%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inline-edit-row p.submit {
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inline-edit-row fieldset label span.title {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
width: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inline-edit-row fieldset label span.input-text-wrap {
|
||||||
|
margin-left: 0;
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input {
|
||||||
|
line-height: 130%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .inline-edit-row .input-text-wrap input {
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input {
|
||||||
|
width: 8em;
|
||||||
|
}
|
||||||
|
/* end Inline Editor */
|
||||||
|
|
||||||
|
input {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .row-actions {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
#dashboard-widgets h3 a {
|
||||||
|
height: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wphead-info {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#titlediv #title {
|
||||||
|
width: 98%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.button {
|
||||||
|
line-height: 1.4em;
|
||||||
|
margin: 1px;
|
||||||
|
padding: 4px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html div.widget-liquid-left,
|
||||||
|
* html div.widget-liquid-right {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#screen-options-wrap {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#favorite-actions {
|
||||||
|
z-index: 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
#favorite-inside,
|
||||||
|
#favorite-inside a,
|
||||||
|
.favorite-action {
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-comment-list .comment-item,
|
||||||
|
#post-status-info,
|
||||||
|
#wpwrap,
|
||||||
|
#wpcontent,
|
||||||
|
#wrap,
|
||||||
|
#postdivrich,
|
||||||
|
#postdiv,
|
||||||
|
#poststuff,
|
||||||
|
.metabox-holder,
|
||||||
|
#titlediv,
|
||||||
|
#post-body,
|
||||||
|
#editorcontainer,
|
||||||
|
.tablenav,
|
||||||
|
.widget-liquid-left,
|
||||||
|
.widget-liquid-right,
|
||||||
|
#widgets-left,
|
||||||
|
.widgets-sortables,
|
||||||
|
#dragHelper,
|
||||||
|
.widget .widget-top,
|
||||||
|
.widget,
|
||||||
|
.widget-control-actions,
|
||||||
|
.tagchecklist,
|
||||||
|
#col-container,
|
||||||
|
#col-left,
|
||||||
|
#col-right,
|
||||||
|
.fileedit-sub {
|
||||||
|
display: block;
|
||||||
|
zoom: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.search-box {
|
||||||
|
position: static;
|
||||||
|
float: right;
|
||||||
|
margin: -3px 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #editorcontainer {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#editorcontainer #content {
|
||||||
|
overflow: auto;
|
||||||
|
margin: auto;
|
||||||
|
width: 98%;
|
||||||
|
}
|
||||||
|
|
||||||
|
form#template div {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ed_toolbar input,
|
||||||
|
#ed_reply_toolbar input {
|
||||||
|
overflow: visible;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#poststuff h2 {
|
||||||
|
font-size: 1.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #poststuff h2 {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bh {
|
||||||
|
margin: 7px 10px 0 0;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* without this dashboard widgets appear in one column for some screen widths */
|
||||||
|
div#dashboard-widgets {
|
||||||
|
padding-right: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagchecklist span, .tagchecklist span a {
|
||||||
|
display: inline-block;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagchecklist span a {
|
||||||
|
margin: 4px 0 0 -9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablenav .button-secondary, .nav .button-secondary {
|
||||||
|
padding: 0 1px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablenav select {
|
||||||
|
font-size: 13px;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.ie-fixed {
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat tr, .widefat th {
|
||||||
|
margin-bottom: 0;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat th input {
|
||||||
|
margin: 0 0 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat .check-column {
|
||||||
|
padding: 6px 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat tbody th.check-column {
|
||||||
|
padding: 4px 0 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widefat {
|
||||||
|
empty-cells: show;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablenav a.button-secondary {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 2px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .stuffbox,
|
||||||
|
* html .stuffbox input,
|
||||||
|
* html .stuffbox textarea {
|
||||||
|
border: 1px solid #DFDFDF;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .feature-filter .feature-group li {
|
||||||
|
width: 145px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .widget-top .widget-title-action a {
|
||||||
|
background: url("../images/menu-bits.gif") no-repeat scroll 0 -110px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html div.widget-liquid-left {
|
||||||
|
width: 99%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wp_inactive_widgets {
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .widgets-sortables {
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html a#content_resize {
|
||||||
|
right: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html .widget-title h4 {
|
||||||
|
width: 205px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html #removing-widget .in-widget-title {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#available-widgets .widget-holder {
|
||||||
|
padding-bottom: 65px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#widgets-left .inactive {
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-liquid-right .widget,
|
||||||
|
#wp_inactive_widgets .widget {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
16
wp-admin/css/install-rtl.css
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
body {
|
||||||
|
font-family: Tahoma, arial;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-family: arial;
|
||||||
|
margin: 5px -4px 0 0;
|
||||||
|
}
|
||||||
|
ul, ol { padding: 5px 22px 5px 5px; }
|
||||||
|
.step, th { text-align: right; }
|
||||||
|
.submit input, .button, .button-secondary {
|
||||||
|
font-family: Tahoma, arial;
|
||||||
|
margin-right:0;
|
||||||
|
}
|
||||||
|
.form-table th {
|
||||||
|
text-align: right;
|
||||||
|
}
|
133
wp-admin/css/install.css
Normal file
|
@ -0,0 +1,133 @@
|
||||||
|
html { background: #f7f7f7; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #fff;
|
||||||
|
color: #333;
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
margin: 2em auto 0 auto;
|
||||||
|
width: 700px;
|
||||||
|
padding: 1em 2em;
|
||||||
|
-moz-border-radius: 11px;
|
||||||
|
-khtml-border-radius: 11px;
|
||||||
|
-webkit-border-radius: 11px;
|
||||||
|
border-radius: 11px;
|
||||||
|
border: 1px solid #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
a { color: #2583ad; text-decoration: none; }
|
||||||
|
|
||||||
|
a:hover { color: #d54e21; }
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
border-bottom: 1px solid #dadada;
|
||||||
|
clear: both;
|
||||||
|
color: #666;
|
||||||
|
font: 24px Georgia, "Times New Roman", Times, serif;
|
||||||
|
margin: 5px 0 0 -4px;
|
||||||
|
padding: 0;
|
||||||
|
padding-bottom: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 { font-size: 16px; }
|
||||||
|
|
||||||
|
p, li {
|
||||||
|
padding-bottom: 2px;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
code { font-size: 13px; }
|
||||||
|
|
||||||
|
ul, ol { padding: 5px 5px 5px 22px; }
|
||||||
|
|
||||||
|
#logo { margin: 6px 0 14px 0; border-bottom: none;}
|
||||||
|
|
||||||
|
.step {
|
||||||
|
margin: 20px 0 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step, th { text-align: left; padding: 0; }
|
||||||
|
|
||||||
|
.submit input, .button, .button-secondary {
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 14px !important;
|
||||||
|
line-height: 16px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
color: #464646;
|
||||||
|
-moz-border-radius: 15px;
|
||||||
|
-khtml-border-radius: 15px;
|
||||||
|
-webkit-border-radius: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
-webkit-box-sizing: content-box;
|
||||||
|
-khtml-box-sizing: content-box;
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:hover, .button-secondary:hover, .submit input:hover {
|
||||||
|
color: #000;
|
||||||
|
border-color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button, .submit input, .button-secondary {
|
||||||
|
background: #f2f2f2 url(../images/white-grad.png) repeat-x scroll left top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:active, .submit input:active, .button-secondary:active {
|
||||||
|
background: #eee url(../images/white-grad-active.png) repeat-x scroll left top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin-top: 1em;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table td {
|
||||||
|
margin-bottom: 9px;
|
||||||
|
padding: 10px;
|
||||||
|
border-bottom: 8px solid #fff;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table th {
|
||||||
|
font-size: 13px;
|
||||||
|
text-align: left;
|
||||||
|
padding: 16px 10px 10px 10px;
|
||||||
|
border-bottom: 8px solid #fff;
|
||||||
|
width: 110px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table tr {
|
||||||
|
background: #f3f3f3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table code {
|
||||||
|
line-height: 18px;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table p {
|
||||||
|
margin: 4px 0 0 0;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table input {
|
||||||
|
line-height: 20px;
|
||||||
|
font-size: 15px;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#error-page { margin-top: 50px; }
|
||||||
|
|
||||||
|
#error-page p {
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 18px;
|
||||||
|
margin: 25px 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#error-page code { font-family: Consolas, Monaco, Courier, monospace; }
|
30
wp-admin/css/login-rtl.css
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
body {
|
||||||
|
font-family: Tahoma, arial;
|
||||||
|
}
|
||||||
|
form {
|
||||||
|
margin-right: 8px;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
form .forgetmenot {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
#login form .submit input {
|
||||||
|
font-family: Tahoma, arial;
|
||||||
|
}
|
||||||
|
form .submit { float: left; }
|
||||||
|
#backtoblog a {
|
||||||
|
left: auto;
|
||||||
|
right: 15px;
|
||||||
|
}
|
||||||
|
#login_error, .message {
|
||||||
|
margin: 0 8px 16px 0;
|
||||||
|
}
|
||||||
|
#nav { margin: 0 8px 0 0; }
|
||||||
|
#user_pass, #user_login, #user_email {
|
||||||
|
margin-left: 6px;
|
||||||
|
margin-right: 0;
|
||||||
|
direction:ltr;
|
||||||
|
}
|
||||||
|
h1 a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
111
wp-admin/css/login.css
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
* { margin: 0; padding: 0; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
border-top-width: 30px;
|
||||||
|
border-top-style: solid;
|
||||||
|
font: 11px "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin-left: 8px;
|
||||||
|
padding: 16px 16px 40px 16px;
|
||||||
|
font-weight: normal;
|
||||||
|
-moz-border-radius: 11px;
|
||||||
|
-khtml-border-radius: 11px;
|
||||||
|
-webkit-border-radius: 11px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
-moz-box-shadow: rgba(200,200,200,1) 0 4px 18px;
|
||||||
|
-webkit-box-shadow: rgba(200,200,200,1) 0 4px 18px;
|
||||||
|
-khtml-box-shadow: rgba(200,200,200,1) 0 4px 18px;
|
||||||
|
box-shadow: rgba(200,200,200,1) 0 4px 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
form .forgetmenot { font-weight: normal; float: left; margin-bottom: 0; }
|
||||||
|
|
||||||
|
#login form .submit input {
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
padding: 3px 10px;
|
||||||
|
border: none;
|
||||||
|
font-size: 12px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
-moz-border-radius: 11px;
|
||||||
|
-khtml-border-radius: 11px;
|
||||||
|
-webkit-border-radius: 11px;
|
||||||
|
border-radius: 11px;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-top: -3px;
|
||||||
|
text-shadow: rgba(0,0,0,0.3) 0 -1px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#login form p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
color: #777;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
form .forgetmenot label {
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
form .submit { float: right; }
|
||||||
|
|
||||||
|
form p { margin-bottom: 24px; }
|
||||||
|
|
||||||
|
h1 a {
|
||||||
|
background: url(../images/logo-login.gif) no-repeat top center;
|
||||||
|
width: 326px;
|
||||||
|
height: 67px;
|
||||||
|
text-indent: -9999px;
|
||||||
|
overflow: hidden;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav {
|
||||||
|
text-shadow: rgba(255,255,255,1) 0 1px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#backtoblog a {
|
||||||
|
position: absolute;
|
||||||
|
top: 7px;
|
||||||
|
left: 15px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#login { width: 320px; margin: 7em auto; }
|
||||||
|
|
||||||
|
#login_error, .message {
|
||||||
|
margin: 0 0 16px 8px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
padding: 12px;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
-khtml-border-radius: 3px;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav { margin: 0 0 0 8px; padding: 16px; }
|
||||||
|
|
||||||
|
#user_pass, #user_login, #user_email {
|
||||||
|
font-size: 24px;
|
||||||
|
width: 97%;
|
||||||
|
padding: 3px;
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-right: 6px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
background: #fbfbfb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clear {
|
||||||
|
clear: both;
|
||||||
|
}
|
93
wp-admin/css/media-rtl.css
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
body#media-upload ul#sidemenu {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
#search-filter {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
/* specific to the image upload form */
|
||||||
|
.align .field label {
|
||||||
|
padding: 0 28px 0 0;
|
||||||
|
margin: 0 0 0 1em;
|
||||||
|
}
|
||||||
|
.image-align-none-label, .image-align-left-label, .image-align-center-label, .image-align-right-label {
|
||||||
|
background-position: center right;
|
||||||
|
}
|
||||||
|
tr.image-size div.image-size-item {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
tr.image-size label {
|
||||||
|
margin: 0 1em 0 0;
|
||||||
|
}
|
||||||
|
.filename.original {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.crunching {
|
||||||
|
text-align: left;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
button.dismiss {
|
||||||
|
right: auto;
|
||||||
|
left: 5px;
|
||||||
|
}
|
||||||
|
.file-error {
|
||||||
|
margin: 0 50px 5px 0;
|
||||||
|
}
|
||||||
|
.progress {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
.describe td {
|
||||||
|
padding: 0 0 0 5px;
|
||||||
|
}
|
||||||
|
.bar {
|
||||||
|
border-right-width: 0;
|
||||||
|
border-left-width: 3px;
|
||||||
|
border-right-style: none;
|
||||||
|
border-left-style: solid;
|
||||||
|
}
|
||||||
|
.media-item .pinkynail {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.describe-toggle-on,
|
||||||
|
.describe-toggle-off {
|
||||||
|
float: left;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
/* Specific to Uploader */
|
||||||
|
#media-upload .media-upload-form p {
|
||||||
|
margin: 0 0 1em 1em;
|
||||||
|
}
|
||||||
|
.filename {
|
||||||
|
float: right;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
#media-upload .describe th.label {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.menu_order {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.media-upload-form label.form-help, td.help, #media-upload p.help, #media-upload label.help {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
}
|
||||||
|
#gallery-settings #basic th.label {
|
||||||
|
padding: 5px 0 5px 5px;
|
||||||
|
}
|
||||||
|
#gallery-settings .title, h3.media-title {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
}
|
||||||
|
#gallery-settings .describe th.label {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
#gallery-settings label,
|
||||||
|
#gallery-settings legend {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
#gallery-settings .align .field label {
|
||||||
|
margin: 0 0 0 1.5em;
|
||||||
|
}
|
400
wp-admin/css/media.css
Normal file
|
@ -0,0 +1,400 @@
|
||||||
|
div#media-upload-header {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
position: relative;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
height: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#media-upload ul#sidemenu {
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0 5px;
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
bottom: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#media-upload-error {
|
||||||
|
margin: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#search-filter {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-upload-form label,
|
||||||
|
.media-upload-form legend {
|
||||||
|
display: block;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
margin: 0 0 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-upload-form label.form-help, td.help {
|
||||||
|
font-family: "Lucida Grande", "Bitstream Vera Sans", Verdana, Arial, sans-serif;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-upload-form p.help {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-upload-form fieldset {
|
||||||
|
width: 100%;
|
||||||
|
border: none;
|
||||||
|
text-align: justify;
|
||||||
|
margin: 0 0 1em 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* specific to the image upload form */
|
||||||
|
.align .field label {
|
||||||
|
display: inline;
|
||||||
|
padding: 0 0 0 28px;
|
||||||
|
margin: 0 1em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-align-none-label {
|
||||||
|
background: url(../images/align-none.png) no-repeat center left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-align-left-label {
|
||||||
|
background: url(../images/align-left.png) no-repeat center left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-align-center-label {
|
||||||
|
background: url(../images/align-center.png) no-repeat center left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-align-right-label {
|
||||||
|
background: url(../images/align-right.png) no-repeat center left;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.image-size td {
|
||||||
|
width: 460px;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.image-size div.image-size-item {
|
||||||
|
float: left;
|
||||||
|
width: 25%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.image-size label {
|
||||||
|
display: inline;
|
||||||
|
margin: 0 0 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pinkynail {
|
||||||
|
max-width: 40px;
|
||||||
|
max-height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#library-form .progress,
|
||||||
|
#gallery-form .progress,
|
||||||
|
#flash-upload-ui,
|
||||||
|
.insert-gallery,
|
||||||
|
.describe.startopen,
|
||||||
|
.describe.startclosed {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-item .thumbnail {
|
||||||
|
max-width: 128px;
|
||||||
|
max-height: 128px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.media-item .pinkynail {
|
||||||
|
float: left;
|
||||||
|
margin: 2px;
|
||||||
|
height: 32px;
|
||||||
|
max-width: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead.media-item-info tr {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead.media-item-info th,
|
||||||
|
thead.media-item-info td {
|
||||||
|
border: none;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-table thead.media-item-info {
|
||||||
|
border: 8px solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr.required {
|
||||||
|
text-decoration: none;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.describe label {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.describe td {
|
||||||
|
vertical-align: middle;
|
||||||
|
padding: 0 5px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.describe td.A1 {
|
||||||
|
width: 132px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.describe input[type="text"],
|
||||||
|
.describe textarea {
|
||||||
|
width: 460px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.describe-toggle-on,
|
||||||
|
.describe-toggle-off {
|
||||||
|
display: block;
|
||||||
|
line-height: 36px;
|
||||||
|
float: right;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.describe-toggle-off {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Specific to Uploader */
|
||||||
|
|
||||||
|
#media-upload .media-upload-form p {
|
||||||
|
margin: 0 1em 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload p.ml-submit {
|
||||||
|
padding: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload p.help,
|
||||||
|
#media-upload label.help {
|
||||||
|
font-family: "Lucida Grande", "Bitstream Vera Sans", Verdana, Arial, sans-serif;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload tr.image-size td.field {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload #media-items {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border-bottom: none;
|
||||||
|
width: 623px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload .media-item {
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
min-height: 36px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload .ui-sortable .media-item {
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filename {
|
||||||
|
line-height: 36px;
|
||||||
|
padding: 0 10px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload .describe {
|
||||||
|
padding: 5px;
|
||||||
|
width: 100%;
|
||||||
|
clear: both;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload .slidetoggle {
|
||||||
|
border-top-width: 1px;
|
||||||
|
border-top-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload .describe th.label {
|
||||||
|
padding-top: .5em;
|
||||||
|
text-align: left;
|
||||||
|
min-width: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload tr.align td.field {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload tr.image-size {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
height: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload #filter {
|
||||||
|
width: 623px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload #filter .subsubsub {
|
||||||
|
margin: 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#filter .tablenav select {
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
padding: 2px;
|
||||||
|
vertical-align: top;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload .del-attachment {
|
||||||
|
display: none;
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu_order {
|
||||||
|
float: right;
|
||||||
|
font-size: 11px;
|
||||||
|
margin: 10px 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu_order_input {
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
font-size: 10px;
|
||||||
|
padding: 1px;
|
||||||
|
width: 23px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-sortable-helper {
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
opacity: 0.6;
|
||||||
|
filter: alpha(opacity=60);
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload th.order-head {
|
||||||
|
width: 25%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#media-upload .widefat {
|
||||||
|
width: 626px;
|
||||||
|
border-style: solid solid none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sorthelper {
|
||||||
|
height: 37px;
|
||||||
|
width: 623px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings th.label {
|
||||||
|
width: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings #basic th.label {
|
||||||
|
padding: 5px 5px 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings .title {
|
||||||
|
clear: both;
|
||||||
|
padding: 0 0 3px;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
font-family: Georgia,"Times New Roman",Times,serif;
|
||||||
|
font-size: 1.6em;
|
||||||
|
border-bottom-color: #DADADA;
|
||||||
|
color: #5A5A5A;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3.media-title {
|
||||||
|
color: #5A5A5A;
|
||||||
|
font-family: Georgia,"Times New Roman",Times,serif;
|
||||||
|
font-size: 1.6em;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings .describe td {
|
||||||
|
vertical-align: middle;
|
||||||
|
height: 3.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings .describe th.label {
|
||||||
|
padding-top: .5em;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings .describe {
|
||||||
|
padding: 5px;
|
||||||
|
width: 615px;
|
||||||
|
clear: both;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings .describe select {
|
||||||
|
width: 15em;
|
||||||
|
border: 1px solid #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings label,
|
||||||
|
#gallery-settings legend {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #464646;
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings .align .field label {
|
||||||
|
margin: 0 1.5em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings p.ml-submit {
|
||||||
|
border-top: 1px solid #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gallery-settings select#columns {
|
||||||
|
width: 6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sort-buttons {
|
||||||
|
font-size: 0.8em;
|
||||||
|
margin: 3px 25px -8px 0;
|
||||||
|
text-align: right;
|
||||||
|
max-width: 625px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sort-buttons a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sort-buttons #asc,
|
||||||
|
#sort-buttons #showall {
|
||||||
|
padding-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sort-buttons span {
|
||||||
|
margin-right: 25px;
|
||||||
|
}
|
43
wp-admin/css/plugin-install-rtl.css
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
div.star {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
letter-spacing: 0;
|
||||||
|
}
|
||||||
|
.star img, div.star a, div.star a:hover, div.star a:visited {
|
||||||
|
right: auto;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
#plugin-information ul#sidemenu {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
#plugin-information h2 {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 200px;
|
||||||
|
}
|
||||||
|
#plugin-information .fyi {
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
#plugin-information .fyi h2 {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
#plugin-information .fyi ul {
|
||||||
|
padding: 10px 7px 10px 5px;
|
||||||
|
}
|
||||||
|
#plugin-information #section-screenshots li p {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
#plugin-information .updated,
|
||||||
|
#plugin-information pre {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 215px;
|
||||||
|
}
|
||||||
|
#plugin-information .updated, #plugin-information .error {
|
||||||
|
clear: none;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
#section-description {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
148
wp-admin/css/plugin-install.css
Normal file
|
@ -0,0 +1,148 @@
|
||||||
|
/* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
|
||||||
|
div.star-holder {
|
||||||
|
position: relative;
|
||||||
|
height: 19px;
|
||||||
|
width: 100px;
|
||||||
|
font-size: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.star {
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
letter-spacing: 1ex;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.star1 { width: 20%; }
|
||||||
|
.star2 { width: 40%; }
|
||||||
|
.star3 { width: 60%; }
|
||||||
|
.star4 { width: 80%; }
|
||||||
|
.star5 { width: 100%; }
|
||||||
|
|
||||||
|
.star img, div.star a, div.star a:hover, div.star a:visited {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
border: none;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.star img {
|
||||||
|
width: 19px;
|
||||||
|
height: 19px;
|
||||||
|
border-left: 1px solid #fff;
|
||||||
|
border-right: 1px solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Start custom CSS */
|
||||||
|
/* Header on thickbox */
|
||||||
|
#plugin-information-header {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
position: relative;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
height: 2.5em;
|
||||||
|
}
|
||||||
|
#plugin-information ul#sidemenu {
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0 5px;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
bottom: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Install sidemenu */
|
||||||
|
#plugin-information p.action-button {
|
||||||
|
width: 100%;
|
||||||
|
padding-bottom: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 10px;
|
||||||
|
-moz-border-radius: 3px 0 0 3px;
|
||||||
|
-webkit-border-top-left-radius: 3px;
|
||||||
|
-khtml-border-top-left-radius: 3px;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
-webkit-border-bottom-left-radius: 3px;
|
||||||
|
-khtml-border-bottom-left-radius: 3px;
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .action-button a {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
line-height: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information h2 {
|
||||||
|
clear: none !important;
|
||||||
|
margin-right: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .fyi {
|
||||||
|
margin: 0 10px 50px;
|
||||||
|
width: 210px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .fyi h2 {
|
||||||
|
font-size: 0.9em;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .fyi h2.mainheader {
|
||||||
|
padding: 5px;
|
||||||
|
-moz-border-radius-topleft: 3px;
|
||||||
|
-webkit-border-top-left-radius: 3px;
|
||||||
|
-khtml-border-top-left-radius: 3px;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .fyi ul {
|
||||||
|
padding: 10px 5px 10px 7px;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
-moz-border-radius-bottomleft: 3px;
|
||||||
|
-webkit-border-bottom-left-radius: 3px;
|
||||||
|
-khtml-border-bottom-left-radius: 3px;
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .fyi li {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information #section-holder {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .section ul,
|
||||||
|
#plugin-information .section ol {
|
||||||
|
margin-left: 16px;
|
||||||
|
list-style-type: square;
|
||||||
|
list-style-image: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information #section-screenshots li img {
|
||||||
|
vertical-align: text-top;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information #section-screenshots li p {
|
||||||
|
font-style: italic;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-bottom: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information .updated,
|
||||||
|
#plugin-information pre {
|
||||||
|
margin-right: 215px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#plugin-information pre {
|
||||||
|
padding: 7px;
|
||||||
|
}
|
128
wp-admin/css/press-this-rtl.css
Normal file
|
@ -0,0 +1,128 @@
|
||||||
|
body {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
}
|
||||||
|
|
||||||
|
#poststuff #edButtonPreview,
|
||||||
|
#poststuff #edButtonHTML {
|
||||||
|
margin: 0 0 0 5px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Editor/Main Column */
|
||||||
|
div#poststuff {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.posting {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 228px;
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-info-column {
|
||||||
|
float: left;
|
||||||
|
right: auto;
|
||||||
|
left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-info-column .sleeve {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3.tb {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#actions {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#extra_fields #actions {
|
||||||
|
right: auto;
|
||||||
|
left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#actions li {
|
||||||
|
float: right;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#extra_fields .button {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Photo Styles */
|
||||||
|
#img_container a {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#category-add input, #category-add select {
|
||||||
|
font-family: Tahoma, Arial;
|
||||||
|
}
|
||||||
|
|
||||||
|
#categorydiv ul.categorychecklist ul {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tags */
|
||||||
|
#tagsdiv #newtag {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tagadd {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tagchecklist span {
|
||||||
|
margin-left: .5em;
|
||||||
|
margin-right: 10px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
#tagchecklist span a {
|
||||||
|
margin: 6px -9px 0 0;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit input,
|
||||||
|
.button,
|
||||||
|
.button-primary,
|
||||||
|
.button-secondary,
|
||||||
|
.button-highlighted,
|
||||||
|
#postcustomstuff .submit input {
|
||||||
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ac_results li {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_ajaxContent #options {
|
||||||
|
right: auto;
|
||||||
|
left: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post_status {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
#footer {
|
||||||
|
padding: 10px 60px 0 0;
|
||||||
|
}
|
559
wp-admin/css/press-this.css
Normal file
|
@ -0,0 +1,559 @@
|
||||||
|
body {
|
||||||
|
font: 13px "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
color: #333;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header */
|
||||||
|
#wphead {
|
||||||
|
border-top: none;
|
||||||
|
padding-top: 4px;
|
||||||
|
background: #444 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagchecklist span a {
|
||||||
|
background: transparent url(../images/xit.gif) no-repeat 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#poststuff #edButtonPreview,
|
||||||
|
#poststuff #edButtonHTML {
|
||||||
|
-moz-border-radius: 3px 3px 0 0;
|
||||||
|
-webkit-border-top-right-radius: 3px;
|
||||||
|
-webkit-border-top-left-radius: 3px;
|
||||||
|
-khtml-border-top-right-radius: 3px;
|
||||||
|
-khtml-border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: block;
|
||||||
|
height: 18px;
|
||||||
|
margin: 0 5px 0 0;
|
||||||
|
padding: 0 5px 0;
|
||||||
|
font-size: 10px;
|
||||||
|
line-height: 18px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.howto {
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
font-size: 11px;
|
||||||
|
font-style: italic;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
input.text {
|
||||||
|
outline-color: -moz-use-text-color;
|
||||||
|
outline-style: none;
|
||||||
|
outline-width: medium;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#message {
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
-khtml-border-radius: 6px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Editor/Main Column */
|
||||||
|
div#poststuff {
|
||||||
|
padding-left: 10px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.zerosize {
|
||||||
|
border: 0 none;
|
||||||
|
height: 0;
|
||||||
|
margin: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0;
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#poststuff #edButtonPreview.active,
|
||||||
|
#poststuff #edButtonHTML.active {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.posting {
|
||||||
|
margin-right: 228px;
|
||||||
|
position: relative;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-info-column {
|
||||||
|
float: right;
|
||||||
|
width: 218px;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-info-column .sleeve {
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#poststuff .inside {
|
||||||
|
font-size: 11px;
|
||||||
|
margin: 0 12px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#poststuff h2, #poststuff h3 {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 1;
|
||||||
|
margin: 0 0 10px;
|
||||||
|
padding: 7px 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3.tb {
|
||||||
|
text-shadow: 0 1px 0 #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 12px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_window {
|
||||||
|
border: 1px solid #333;
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
-khtml-border-radius: 6px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.postbox,
|
||||||
|
.stuffbox {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
line-height: 1;
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
-khtml-border-radius: 6px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#title,
|
||||||
|
.tbtitle {
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
-khtml-border-radius: 6px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
font-size: 1.7em;
|
||||||
|
outline: none;
|
||||||
|
padding: 3px 4px;
|
||||||
|
border-color: #dfdfdf;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tbtitle {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#title {
|
||||||
|
width: 98%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editor-container {
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
-khtml-border-radius: 6px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #dfdfdf;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.postdivrich {
|
||||||
|
position: relative;
|
||||||
|
padding-top: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#actions {
|
||||||
|
clear: both;
|
||||||
|
float: right;
|
||||||
|
margin-top: -19px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#extra_fields #actions {
|
||||||
|
clear: both;
|
||||||
|
position: relative;
|
||||||
|
right: 0px;
|
||||||
|
margin: -24px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#actions li {
|
||||||
|
float: left;
|
||||||
|
list-style: none;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#extra_fields .button {
|
||||||
|
margin-right: 5px;
|
||||||
|
padding: 3px 6px;
|
||||||
|
border-radius: 10px;
|
||||||
|
-webkit-border-radius: 10px;
|
||||||
|
-khtml-border-radius: 10px;
|
||||||
|
-moz-border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Photo Styles */
|
||||||
|
.photolist {
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#photo_saving {
|
||||||
|
margin: 0 8px 8px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_container {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
#img_container_container {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#extra_fields {
|
||||||
|
margin-top: 10px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#extra_fields .postbox {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#extra_fields .titlewrap {
|
||||||
|
padding: 0;
|
||||||
|
overflow: auto;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_container a {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
overflow: hidden;
|
||||||
|
vertical-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_container img,
|
||||||
|
#img_container a {
|
||||||
|
width: 68px;
|
||||||
|
height: 68px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_container img {
|
||||||
|
border: none;
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_container a,
|
||||||
|
#img_container a:link,
|
||||||
|
#img_container a:visited {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#img_container a:hover,
|
||||||
|
#img_container a:active {
|
||||||
|
border-color: #000;
|
||||||
|
z-index: 1000;
|
||||||
|
border-width: 2px;
|
||||||
|
margin: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Video */
|
||||||
|
#embed-code {
|
||||||
|
width: 100%;
|
||||||
|
height: 98px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Submit Column */
|
||||||
|
#viewsite {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 0 20px 0;
|
||||||
|
font-size: 10px;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
#viewsite .button {
|
||||||
|
margin: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-hidden-children
|
||||||
|
.wp-hidden-child {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#category-adder {
|
||||||
|
padding: 4px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#category-adder h4 {
|
||||||
|
margin: 0 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#category-add input {
|
||||||
|
width: 94%;
|
||||||
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
margin: 1px;
|
||||||
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#category-add select {
|
||||||
|
width: 70%;
|
||||||
|
-x-system-font: none;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
font-family: "Lucida Grande", "Bitstream Vera Sans", Verdana, Arial, sans-serif;
|
||||||
|
font-size: 12px;
|
||||||
|
height: 2em;
|
||||||
|
line-height: 20px;
|
||||||
|
padding: 2px;
|
||||||
|
margin: 1px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
#category-add input,
|
||||||
|
#category-add-sumbit {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Categories */
|
||||||
|
#categorydiv ul,
|
||||||
|
#linkcategorydiv ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#categorydiv ul.categorychecklist ul {
|
||||||
|
margin-left: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#categorydiv div.tabs-panel {
|
||||||
|
height: 140px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.categorychecklist li {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tags */
|
||||||
|
.tagsdiv .newtag {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jaxtag {
|
||||||
|
clear: both;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagadd {
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagchecklist {
|
||||||
|
margin-top: 3px;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
font-size: 12px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagchecklist strong {
|
||||||
|
position: absolute;
|
||||||
|
font-size: .75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagchecklist span {
|
||||||
|
margin-right: .5em;
|
||||||
|
margin-left: 10px;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 1.8em;
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tagchecklist span a {
|
||||||
|
margin: 6px 0 0 -9px;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
text-indent: -9999px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
width: 96% !important;
|
||||||
|
margin-left: 1%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border: 0 none;
|
||||||
|
height: 365px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Submit */
|
||||||
|
|
||||||
|
#saving {
|
||||||
|
display: inline;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit input,
|
||||||
|
.button,
|
||||||
|
.button-primary,
|
||||||
|
.button-secondary,
|
||||||
|
.button-highlighted,
|
||||||
|
#postcustomstuff .submit input {
|
||||||
|
font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 11px !important;
|
||||||
|
line-height: 16px;
|
||||||
|
padding: 2px 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
-moz-border-radius: 11px;
|
||||||
|
-khtml-border-radius: 11px;
|
||||||
|
-webkit-border-radius: 11px;
|
||||||
|
border-radius: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-primary {
|
||||||
|
background: #21759B url(../images/button-grad.png) repeat-x scroll left top;
|
||||||
|
border-color: #21759B;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ac_results {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 10000;
|
||||||
|
display: none;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ac_results li {
|
||||||
|
padding: 2px 5px;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ac_over {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ac_match {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_ajaxContent #options {
|
||||||
|
position: absolute;
|
||||||
|
top: 20px;
|
||||||
|
right: 25px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TB_ajaxContent h3 {
|
||||||
|
margin-bottom: .25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.updated {
|
||||||
|
margin: 10px 0;
|
||||||
|
padding: 0;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
width: 99%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.updated p,
|
||||||
|
.error p {
|
||||||
|
margin: 0.6em 0;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.updated a {
|
||||||
|
text-decoration: none;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#post_status {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
#footer {
|
||||||
|
height: 65px;
|
||||||
|
display: block;
|
||||||
|
width: 640px;
|
||||||
|
padding: 10px 0 0 60px;
|
||||||
|
margin: 0;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 7px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer p a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
#footer p a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Utility Classes */
|
||||||
|
.centered {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.postbox input[type="text"],
|
||||||
|
.postbox textarea,
|
||||||
|
.stuffbox input[type="text"],
|
||||||
|
.stuffbox textarea {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
3
wp-admin/css/theme-editor-rtl.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#templateside {
|
||||||
|
float: left;
|
||||||
|
}
|
60
wp-admin/css/theme-editor.css
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
#template textarea {
|
||||||
|
font-family: Consolas, Monaco, Courier, monospace;
|
||||||
|
font-size: 12px;
|
||||||
|
width: 97%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#template p {
|
||||||
|
width: 97%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#templateside {
|
||||||
|
float: right;
|
||||||
|
width: 190px;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
#templateside h3,
|
||||||
|
#postcustomstuff p.submit {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#templateside h4 {
|
||||||
|
margin: 1em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#templateside ol,
|
||||||
|
#templateside ul {
|
||||||
|
margin: .5em;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#templateside li {
|
||||||
|
margin: 4px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nonessential {
|
||||||
|
font-size: small;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.tablenav {
|
||||||
|
margin-right: 210px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#documentation {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
#documentation label {
|
||||||
|
line-height: 22px;
|
||||||
|
vertical-align: top;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fileedit-sub {
|
||||||
|
padding: 10px 0 8px;
|
||||||
|
line-height: 180%;
|
||||||
|
}
|
142
wp-admin/css/theme-install.css
Normal file
|
@ -0,0 +1,142 @@
|
||||||
|
/* NOTE: the following CSS rules(.star*) are taken more or less straight from the bbPress rating plugin. */
|
||||||
|
div.star-holder {
|
||||||
|
position: relative;
|
||||||
|
height: 19px;
|
||||||
|
width: 100px;
|
||||||
|
font-size: 19px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.star {
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
letter-spacing: 1ex;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.star1 { width: 20%; }
|
||||||
|
.star2 { width: 40%; }
|
||||||
|
.star3 { width: 60%; }
|
||||||
|
.star4 { width: 80%; }
|
||||||
|
.star5 { width: 100%; }
|
||||||
|
|
||||||
|
.star img, div.star a, div.star a:hover, div.star a:visited {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
border: none;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.star img {
|
||||||
|
width: 19px;
|
||||||
|
height: 19px;
|
||||||
|
border-left: 1px solid #fff;
|
||||||
|
border-right: 1px solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-listing .theme-item {
|
||||||
|
display: inline-block;
|
||||||
|
width: 200px;
|
||||||
|
border: thin solid #ccc;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-listing .theme-item h3 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-listing .theme-item img {
|
||||||
|
max-width: 150px;
|
||||||
|
max-height: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-listing .theme-item-info span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.theme-listing .theme-item:hover .theme-item-info span {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.theme-listing .theme-item:hover .theme-item-info span.dots {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.theme-listing .theme-item-info span.action-links {
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-listing br.line {
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.available-theme {
|
||||||
|
padding: 20px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#theme-information .theme-preview-img {
|
||||||
|
float: left;
|
||||||
|
margin: 5px 25px 10px 15px;
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#theme-information .action-button {
|
||||||
|
border-top-width: 1px;
|
||||||
|
border-top-style: solid;
|
||||||
|
margin: 10px 5px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#theme-information .action-button #cancel {
|
||||||
|
float: left;
|
||||||
|
margin: 10px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#theme-information .action-button #install {
|
||||||
|
float: right;
|
||||||
|
margin: 10px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#theme-information .available-theme h3 {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body#theme-information {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-filter {
|
||||||
|
-moz-border-radius: 8px;
|
||||||
|
-khtml-border-radius: 8px;
|
||||||
|
-webkit-border-radius: 8px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
padding: 8px 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-filter .feature-group {
|
||||||
|
float: left;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
width: 695px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-filter .feature-name {
|
||||||
|
float: left;
|
||||||
|
text-align: right;
|
||||||
|
width: 95px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-filter .feature-group li {
|
||||||
|
display: inline;
|
||||||
|
float: left;
|
||||||
|
list-style-type: none;
|
||||||
|
padding-right: 25px;
|
||||||
|
min-width: 145px;
|
||||||
|
}
|
11
wp-admin/css/widgets-rtl.css
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
ul#widget-list li.widget-list-item div.widget-description {
|
||||||
|
margin: 0 200px 0 0;
|
||||||
|
padding: 0 4em 0 0;
|
||||||
|
}
|
||||||
|
.widget-control-save,
|
||||||
|
.widget-control-remove {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 8px;
|
||||||
|
float: right;
|
||||||
|
}
|
365
wp-admin/css/widgets.css
Normal file
|
@ -0,0 +1,365 @@
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
min-width: 950px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 2 column liquid layout */
|
||||||
|
div.widget-liquid-left {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
width: 100%;
|
||||||
|
margin-right: -325px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#widgets-left {
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 325px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#widgets-right {
|
||||||
|
width: 285px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.widget-liquid-right {
|
||||||
|
float: right;
|
||||||
|
clear: right;
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-liquid-right .widget,
|
||||||
|
#wp_inactive_widgets .widget {
|
||||||
|
width: 250px;
|
||||||
|
margin: 0 auto 20px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wp_inactive_widgets .widget {
|
||||||
|
margin: 0 10px 20px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sidebar-name h3 {
|
||||||
|
margin: 0;
|
||||||
|
padding: 5px 12px;
|
||||||
|
font-size: 13px;
|
||||||
|
height: 19px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sidebar-name {
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-position: 0 0;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 13px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
-moz-border-radius-topleft: 8px;
|
||||||
|
-moz-border-radius-topright: 8px;
|
||||||
|
-webkit-border-top-right-radius: 8px;
|
||||||
|
-webkit-border-top-left-radius: 8px;
|
||||||
|
-khtml-border-top-right-radius: 8px;
|
||||||
|
-khtml-border-top-left-radius: 8px;
|
||||||
|
border-top-right-radius: 8px;
|
||||||
|
border-top-left-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.js .closed .sidebar-name {
|
||||||
|
-moz-border-radius-bottomleft: 8px;
|
||||||
|
-moz-border-radius-bottomright: 8px;
|
||||||
|
-webkit-border-bottom-right-radius: 8px;
|
||||||
|
-webkit-border-bottom-left-radius: 8px;
|
||||||
|
-khtml-border-bottom-right-radius: 8px;
|
||||||
|
-khtml-border-bottom-left-radius: 8px;
|
||||||
|
border-bottom-right-radius: 8px;
|
||||||
|
border-bottom-left-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-liquid-right .widgets-sortables,
|
||||||
|
#widgets-left .widget-holder {
|
||||||
|
border-width: 0 1px 1px;
|
||||||
|
border-style: none solid solid;
|
||||||
|
-moz-border-radius-bottomleft: 8px;
|
||||||
|
-moz-border-radius-bottomright: 8px;
|
||||||
|
-webkit-border-bottom-right-radius: 8px;
|
||||||
|
-webkit-border-bottom-left-radius: 8px;
|
||||||
|
-khtml-border-bottom-right-radius: 8px;
|
||||||
|
-khtml-border-bottom-left-radius: 8px;
|
||||||
|
border-bottom-right-radius: 8px;
|
||||||
|
border-bottom-left-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.js .closed .widgets-sortables,
|
||||||
|
.js .closed .widget-holder {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-liquid-right .widgets-sortables {
|
||||||
|
padding: 15px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#available-widgets .widget-holder {
|
||||||
|
padding: 7px 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wp_inactive_widgets {
|
||||||
|
padding: 5px 5px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#widget-list .widget {
|
||||||
|
width: 250px;
|
||||||
|
margin: 0 10px 15px;
|
||||||
|
border: 0 none;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#widget-list .widget-description {
|
||||||
|
padding: 5px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#widget-list .widget-top {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
-khtml-border-radius: 6px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-placeholder {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: dashed;
|
||||||
|
margin: 0 auto 20px;
|
||||||
|
height: 26px;
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wp_inactive_widgets .widget-placeholder {
|
||||||
|
margin: 0 10px 20px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.widgets-holder-wrap {
|
||||||
|
padding: 0;
|
||||||
|
margin: 10px 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#widgets-left #available-widgets {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0 none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#widget-list {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
min-height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget .widget-top {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: bold;
|
||||||
|
height: 26px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-top .widget-title {
|
||||||
|
padding: 5px 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-top .widget-title-action {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.widget-action {
|
||||||
|
display: block;
|
||||||
|
width: 24px;
|
||||||
|
height: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#available-widgets a.widget-action {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-top a.widget-action {
|
||||||
|
background: url("../images/menu-bits.gif") no-repeat scroll 0 -110px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget .widget-inside,
|
||||||
|
.widget .widget-description {
|
||||||
|
padding: 12px 12px 10px;
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-inside,
|
||||||
|
.widget-description {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#available-widgets .widget-description {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget .widget-inside p {
|
||||||
|
margin: 0 0 1em;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-title h4 {
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1.3;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widgets-sortables {
|
||||||
|
min-height: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-actions {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-actions a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-actions a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-actions .ajax-feedback {
|
||||||
|
padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-actions div.alignleft {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#sidebar-info {
|
||||||
|
padding: 0 1em;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-title a,
|
||||||
|
.widget-title a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-edit {
|
||||||
|
display: block;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 26px;
|
||||||
|
padding: 0 8px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.widget-control-edit {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-edit .add,
|
||||||
|
.widget-control-edit .edit {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#available-widgets .widget-control-edit .add,
|
||||||
|
#widgets-right .widget-control-edit .edit,
|
||||||
|
#wp_inactive_widgets .widget-control-edit .edit {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editwidget {
|
||||||
|
margin: 0 auto 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editwidget .widget-inside {
|
||||||
|
display: block;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
padding: 10px;
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
-khtml-border-radius: 6px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inactive p.description {
|
||||||
|
margin: 5px 15px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#available-widgets p.description {
|
||||||
|
margin: 0 12px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-position {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inactive {
|
||||||
|
padding-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-name-arrow {
|
||||||
|
float: right;
|
||||||
|
height: 29px;
|
||||||
|
width: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-title .in-widget-title {
|
||||||
|
font-size: 11px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
#removing-widget {
|
||||||
|
display: none;
|
||||||
|
font-weight: normal;
|
||||||
|
padding-left: 15px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-control-noform,
|
||||||
|
#access-off,
|
||||||
|
.widgets_access .widget-action,
|
||||||
|
.widgets_access .sidebar-name-arrow,
|
||||||
|
.widgets_access #access-on,
|
||||||
|
.widgets_access .widget-holder .description {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widgets_access .widget-holder,
|
||||||
|
.widgets_access #widget-list {
|
||||||
|
padding-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widgets_access #access-off {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widgets_access #wpbody-content .widget-title-action,
|
||||||
|
.widgets_access #wpbody-content .widget-control-edit,
|
||||||
|
.widgets_access .closed .widgets-sortables,
|
||||||
|
.widgets_access .closed .widget-holder {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widgets_access .closed .sidebar-name {
|
||||||
|
-moz-border-radius-bottomleft: 0;
|
||||||
|
-moz-border-radius-bottomright: 0;
|
||||||
|
-webkit-border-bottom-right-radius: 0;
|
||||||
|
-webkit-border-bottom-left-radius: 0;
|
||||||
|
-khtml-border-bottom-right-radius: 0;
|
||||||
|
-khtml-border-bottom-left-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widgets_access .sidebar-name,
|
||||||
|
.widgets_access .widget .widget-top {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
478
wp-admin/custom-header.php
Normal file
|
@ -0,0 +1,478 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* The custom header image script.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The custom header image class.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
class Custom_Image_Header {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback for administration header.
|
||||||
|
*
|
||||||
|
* @var callback
|
||||||
|
* @since unknown
|
||||||
|
* @access private
|
||||||
|
*/
|
||||||
|
var $admin_header_callback;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PHP4 Constructor - Register administration header callback.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
* @param callback $admin_header_callback
|
||||||
|
* @return Custom_Image_Header
|
||||||
|
*/
|
||||||
|
function Custom_Image_Header($admin_header_callback) {
|
||||||
|
$this->admin_header_callback = $admin_header_callback;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup the hooks for the Custom Header admin page.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function init() {
|
||||||
|
$page = add_theme_page(__('Custom Header'), __('Custom Header'), 'edit_themes', 'custom-header', array(&$this, 'admin_page'));
|
||||||
|
|
||||||
|
add_action("admin_print_scripts-$page", array(&$this, 'js_includes'));
|
||||||
|
add_action("admin_print_styles-$page", array(&$this, 'css_includes'));
|
||||||
|
add_action("admin_head-$page", array(&$this, 'take_action'), 50);
|
||||||
|
add_action("admin_head-$page", array(&$this, 'js'), 50);
|
||||||
|
add_action("admin_head-$page", $this->admin_header_callback, 51);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current step.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*
|
||||||
|
* @return int Current step
|
||||||
|
*/
|
||||||
|
function step() {
|
||||||
|
if ( ! isset( $_GET['step'] ) )
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
$step = (int) $_GET['step'];
|
||||||
|
if ( $step < 1 || 3 < $step )
|
||||||
|
$step = 1;
|
||||||
|
|
||||||
|
return $step;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup the enqueue for the JavaScript files.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function js_includes() {
|
||||||
|
$step = $this->step();
|
||||||
|
|
||||||
|
if ( 1 == $step )
|
||||||
|
wp_enqueue_script('farbtastic');
|
||||||
|
elseif ( 2 == $step )
|
||||||
|
wp_enqueue_script('jcrop');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup the enqueue for the CSS files
|
||||||
|
*
|
||||||
|
* @since 2.7
|
||||||
|
*/
|
||||||
|
function css_includes() {
|
||||||
|
$step = $this->step();
|
||||||
|
|
||||||
|
if ( 1 == $step )
|
||||||
|
wp_enqueue_style('farbtastic');
|
||||||
|
elseif ( 2 == $step )
|
||||||
|
wp_enqueue_style('jcrop');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute custom header modification.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function take_action() {
|
||||||
|
if ( isset( $_POST['textcolor'] ) ) {
|
||||||
|
check_admin_referer('custom-header');
|
||||||
|
if ( 'blank' == $_POST['textcolor'] ) {
|
||||||
|
set_theme_mod('header_textcolor', 'blank');
|
||||||
|
} else {
|
||||||
|
$color = preg_replace('/[^0-9a-fA-F]/', '', $_POST['textcolor']);
|
||||||
|
if ( strlen($color) == 6 || strlen($color) == 3 )
|
||||||
|
set_theme_mod('header_textcolor', $color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( isset($_POST['resetheader']) ) {
|
||||||
|
check_admin_referer('custom-header');
|
||||||
|
remove_theme_mods();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute Javascript depending on step.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function js() {
|
||||||
|
$step = $this->step();
|
||||||
|
if ( 1 == $step )
|
||||||
|
$this->js_1();
|
||||||
|
elseif ( 2 == $step )
|
||||||
|
$this->js_2();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display Javascript based on Step 1.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function js_1() { ?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var buttons = ['#name', '#desc', '#pickcolor', '#defaultcolor'];
|
||||||
|
var farbtastic;
|
||||||
|
|
||||||
|
function pickColor(color) {
|
||||||
|
jQuery('#name').css('color', color);
|
||||||
|
jQuery('#desc').css('color', color);
|
||||||
|
jQuery('#textcolor').val(color);
|
||||||
|
farbtastic.setColor(color);
|
||||||
|
}
|
||||||
|
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
jQuery('#pickcolor').click(function() {
|
||||||
|
jQuery('#colorPickerDiv').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery('#hidetext').click(function() {
|
||||||
|
toggle_text();
|
||||||
|
});
|
||||||
|
|
||||||
|
farbtastic = jQuery.farbtastic('#colorPickerDiv', function(color) { pickColor(color); });
|
||||||
|
pickColor('#<?php echo get_theme_mod('header_textcolor', HEADER_TEXTCOLOR); ?>');
|
||||||
|
|
||||||
|
<?php if ( 'blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) ) { ?>
|
||||||
|
toggle_text();
|
||||||
|
<?php } ?>
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery(document).mousedown(function(){
|
||||||
|
// Make the picker disappear, since we're using it in an independant div
|
||||||
|
hide_picker();
|
||||||
|
});
|
||||||
|
|
||||||
|
function colorDefault() {
|
||||||
|
pickColor('#<?php echo HEADER_TEXTCOLOR; ?>');
|
||||||
|
}
|
||||||
|
|
||||||
|
function hide_picker(what) {
|
||||||
|
var update = false;
|
||||||
|
jQuery('#colorPickerDiv').each(function(){
|
||||||
|
var id = jQuery(this).attr('id');
|
||||||
|
if (id == what) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var display = jQuery(this).css('display');
|
||||||
|
if (display == 'block') {
|
||||||
|
jQuery(this).fadeOut(2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggle_text(force) {
|
||||||
|
if(jQuery('#textcolor').val() == 'blank') {
|
||||||
|
//Show text
|
||||||
|
jQuery( buttons.toString() ).show();
|
||||||
|
jQuery('#textcolor').val('<?php echo HEADER_TEXTCOLOR; ?>');
|
||||||
|
jQuery('#hidetext').val('<?php _e('Hide Text'); ?>');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//Hide text
|
||||||
|
jQuery( buttons.toString() ).hide();
|
||||||
|
jQuery('#textcolor').val('blank');
|
||||||
|
jQuery('#hidetext').val('<?php _e('Show Text'); ?>');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display Javascript based on Step 2.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function js_2() { ?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function onEndCrop( coords ) {
|
||||||
|
jQuery( '#x1' ).val(coords.x);
|
||||||
|
jQuery( '#y1' ).val(coords.y);
|
||||||
|
jQuery( '#x2' ).val(coords.x2);
|
||||||
|
jQuery( '#y2' ).val(coords.y2);
|
||||||
|
jQuery( '#width' ).val(coords.w);
|
||||||
|
jQuery( '#height' ).val(coords.h);
|
||||||
|
}
|
||||||
|
|
||||||
|
// with a supplied ratio
|
||||||
|
jQuery(document).ready(function() {
|
||||||
|
var xinit = <?php echo HEADER_IMAGE_WIDTH; ?>;
|
||||||
|
var yinit = <?php echo HEADER_IMAGE_HEIGHT; ?>;
|
||||||
|
var ratio = xinit / yinit;
|
||||||
|
var ximg = jQuery('#upload').width();
|
||||||
|
var yimg = jQuery('#upload').height();
|
||||||
|
|
||||||
|
//set up default values
|
||||||
|
jQuery( '#x1' ).val(0);
|
||||||
|
jQuery( '#y1' ).val(0);
|
||||||
|
jQuery( '#x2' ).val(xinit);
|
||||||
|
jQuery( '#y2' ).val(yinit);
|
||||||
|
jQuery( '#width' ).val(xinit);
|
||||||
|
jQuery( '#height' ).val(yinit);
|
||||||
|
|
||||||
|
if ( yimg < yinit || ximg < xinit ) {
|
||||||
|
if ( ximg / yimg > ratio ) {
|
||||||
|
yinit = yimg;
|
||||||
|
xinit = yinit * ratio;
|
||||||
|
} else {
|
||||||
|
xinit = ximg;
|
||||||
|
yinit = xinit / ratio;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
jQuery('#upload').Jcrop({
|
||||||
|
aspectRatio: ratio,
|
||||||
|
setSelect: [ 0, 0, xinit, yinit ],
|
||||||
|
onSelect: onEndCrop
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display first step of custom header image page.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function step_1() {
|
||||||
|
if ( $_GET['updated'] ) { ?>
|
||||||
|
<div id="message" class="updated fade">
|
||||||
|
<p><?php _e('Header updated.') ?></p>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php _e('Your Header Image'); ?></h2>
|
||||||
|
<p><?php _e('This is your header image. You can change the text color or upload and crop a new image.'); ?></p>
|
||||||
|
|
||||||
|
<div id="headimg" style="background-image: url(<?php esc_url(header_image()) ?>);">
|
||||||
|
<h1><a onclick="return false;" href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" id="name"><?php bloginfo('name'); ?></a></h1>
|
||||||
|
<div id="desc"><?php bloginfo('description');?></div>
|
||||||
|
</div>
|
||||||
|
<?php if ( !defined( 'NO_HEADER_TEXT' ) ) { ?>
|
||||||
|
<form method="post" action="<?php echo admin_url('themes.php?page=custom-header&updated=true') ?>">
|
||||||
|
<input type="button" class="button" value="<?php esc_attr_e('Hide Text'); ?>" onclick="hide_text()" id="hidetext" />
|
||||||
|
<input type="button" class="button" value="<?php esc_attr_e('Select a Text Color'); ?>" id="pickcolor" /><input type="button" class="button" value="<?php esc_attr_e('Use Original Color'); ?>" onclick="colorDefault()" id="defaultcolor" />
|
||||||
|
<?php wp_nonce_field('custom-header') ?>
|
||||||
|
<input type="hidden" name="textcolor" id="textcolor" value="#<?php esc_attr(header_textcolor()) ?>" /><input name="submit" type="submit" class="button" value="<?php esc_attr_e('Save Changes'); ?>" /></form>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;display:none;"> </div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap">
|
||||||
|
<h2><?php _e('Upload New Header Image'); ?></h2><p><?php _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.'); ?></p>
|
||||||
|
<p><?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
|
||||||
|
|
||||||
|
<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>" style="margin: auto; width: 50%;">
|
||||||
|
<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
|
||||||
|
<input type="hidden" name="action" value="save" />
|
||||||
|
<?php wp_nonce_field('custom-header') ?>
|
||||||
|
<p class="submit">
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Upload'); ?>" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ( get_theme_mod('header_image') || get_theme_mod('header_textcolor') ) : ?>
|
||||||
|
<div class="wrap">
|
||||||
|
<h2><?php _e('Reset Header Image and Color'); ?></h2>
|
||||||
|
<p><?php _e('This will restore the original header image and color. You will not be able to retrieve any customizations.') ?></p>
|
||||||
|
<form method="post" action="<?php echo esc_attr(add_query_arg('step', 1)) ?>">
|
||||||
|
<?php wp_nonce_field('custom-header'); ?>
|
||||||
|
<input type="submit" class="button" name="resetheader" value="<?php esc_attr_e('Restore Original Header'); ?>" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<?php endif;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display second step of custom header image page.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function step_2() {
|
||||||
|
check_admin_referer('custom-header');
|
||||||
|
$overrides = array('test_form' => false);
|
||||||
|
$file = wp_handle_upload($_FILES['import'], $overrides);
|
||||||
|
|
||||||
|
if ( isset($file['error']) )
|
||||||
|
die( $file['error'] );
|
||||||
|
|
||||||
|
$url = $file['url'];
|
||||||
|
$type = $file['type'];
|
||||||
|
$file = $file['file'];
|
||||||
|
$filename = basename($file);
|
||||||
|
|
||||||
|
// Construct the object array
|
||||||
|
$object = array(
|
||||||
|
'post_title' => $filename,
|
||||||
|
'post_content' => $url,
|
||||||
|
'post_mime_type' => $type,
|
||||||
|
'guid' => $url);
|
||||||
|
|
||||||
|
// Save the data
|
||||||
|
$id = wp_insert_attachment($object, $file);
|
||||||
|
|
||||||
|
list($width, $height, $type, $attr) = getimagesize( $file );
|
||||||
|
|
||||||
|
if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) {
|
||||||
|
// Add the meta-data
|
||||||
|
wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
|
||||||
|
|
||||||
|
set_theme_mod('header_image', esc_url($url));
|
||||||
|
do_action('wp_create_file_in_uploads', $file, $id); // For replication
|
||||||
|
return $this->finished();
|
||||||
|
} elseif ( $width > HEADER_IMAGE_WIDTH ) {
|
||||||
|
$oitar = $width / HEADER_IMAGE_WIDTH;
|
||||||
|
$image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file));
|
||||||
|
$image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication
|
||||||
|
|
||||||
|
$url = str_replace(basename($url), basename($image), $url);
|
||||||
|
$width = $width / $oitar;
|
||||||
|
$height = $height / $oitar;
|
||||||
|
} else {
|
||||||
|
$oitar = 1;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
|
||||||
|
<form method="POST" action="<?php echo esc_attr(add_query_arg('step', 3)) ?>">
|
||||||
|
|
||||||
|
<p><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
|
||||||
|
<div id="testWrap" style="position: relative">
|
||||||
|
<img src="<?php echo $url; ?>" id="upload" width="<?php echo $width; ?>" height="<?php echo $height; ?>" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="submit">
|
||||||
|
<input type="hidden" name="x1" id="x1" />
|
||||||
|
<input type="hidden" name="y1" id="y1" />
|
||||||
|
<input type="hidden" name="x2" id="x2" />
|
||||||
|
<input type="hidden" name="y2" id="y2" />
|
||||||
|
<input type="hidden" name="width" id="width" />
|
||||||
|
<input type="hidden" name="height" id="height" />
|
||||||
|
<input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr($id); ?>" />
|
||||||
|
<input type="hidden" name="oitar" id="oitar" value="<?php echo esc_attr($oitar); ?>" />
|
||||||
|
<?php wp_nonce_field('custom-header') ?>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Crop Header'); ?>" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display third step of custom header image page.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function step_3() {
|
||||||
|
check_admin_referer('custom-header');
|
||||||
|
if ( $_POST['oitar'] > 1 ) {
|
||||||
|
$_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
|
||||||
|
$_POST['y1'] = $_POST['y1'] * $_POST['oitar'];
|
||||||
|
$_POST['width'] = $_POST['width'] * $_POST['oitar'];
|
||||||
|
$_POST['height'] = $_POST['height'] * $_POST['oitar'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$original = get_attached_file( $_POST['attachment_id'] );
|
||||||
|
|
||||||
|
$cropped = wp_crop_image($_POST['attachment_id'], $_POST['x1'], $_POST['y1'], $_POST['width'], $_POST['height'], HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT);
|
||||||
|
$cropped = apply_filters('wp_create_file_in_uploads', $cropped, $_POST['attachment_id']); // For replication
|
||||||
|
|
||||||
|
$parent = get_post($_POST['attachment_id']);
|
||||||
|
$parent_url = $parent->guid;
|
||||||
|
$url = str_replace(basename($parent_url), basename($cropped), $parent_url);
|
||||||
|
|
||||||
|
// Construct the object array
|
||||||
|
$object = array(
|
||||||
|
'ID' => $_POST['attachment_id'],
|
||||||
|
'post_title' => basename($cropped),
|
||||||
|
'post_content' => $url,
|
||||||
|
'post_mime_type' => 'image/jpeg',
|
||||||
|
'guid' => $url
|
||||||
|
);
|
||||||
|
|
||||||
|
// Update the attachment
|
||||||
|
wp_insert_attachment($object, $cropped);
|
||||||
|
wp_update_attachment_metadata( $_POST['attachment_id'], wp_generate_attachment_metadata( $_POST['attachment_id'], $cropped ) );
|
||||||
|
|
||||||
|
set_theme_mod('header_image', $url);
|
||||||
|
|
||||||
|
// cleanup
|
||||||
|
$medium = str_replace(basename($original), 'midsize-'.basename($original), $original);
|
||||||
|
@unlink( apply_filters( 'wp_delete_file', $medium ) );
|
||||||
|
@unlink( apply_filters( 'wp_delete_file', $original ) );
|
||||||
|
|
||||||
|
return $this->finished();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display last step of custom header image page.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function finished() {
|
||||||
|
?>
|
||||||
|
<div class="wrap">
|
||||||
|
<h2><?php _e('Header complete!'); ?></h2>
|
||||||
|
|
||||||
|
<p><?php _e('Visit your site and you should see the new header now.'); ?></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the page based on the current step.
|
||||||
|
*
|
||||||
|
* @since unknown
|
||||||
|
*/
|
||||||
|
function admin_page() {
|
||||||
|
$step = $this->step();
|
||||||
|
if ( 1 == $step )
|
||||||
|
$this->step_1();
|
||||||
|
elseif ( 2 == $step )
|
||||||
|
$this->step_2();
|
||||||
|
elseif ( 3 == $step )
|
||||||
|
$this->step_3();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
212
wp-admin/edit-attachment-rows.php
Normal file
|
@ -0,0 +1,212 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit attachments table for inclusion in administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
if ( have_posts() ) { ?>
|
||||||
|
<table class="widefat fixed" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('upload'); ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('upload', false); ?>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<tbody id="the-list" class="list:post">
|
||||||
|
<?php
|
||||||
|
add_filter('the_title','esc_html');
|
||||||
|
$alt = '';
|
||||||
|
$posts_columns = get_column_headers('upload');
|
||||||
|
$hidden = get_hidden_columns('upload');
|
||||||
|
while (have_posts()) : the_post();
|
||||||
|
$alt = ( 'alternate' == $alt ) ? '' : 'alternate';
|
||||||
|
global $current_user;
|
||||||
|
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
|
||||||
|
$att_title = _draft_or_post_title();
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
foreach ($posts_columns as $column_name => $column_display_name ) {
|
||||||
|
$class = "class=\"$column_name column-$column_name\"";
|
||||||
|
|
||||||
|
$style = '';
|
||||||
|
if ( in_array($column_name, $hidden) )
|
||||||
|
$style = ' style="display:none;"';
|
||||||
|
|
||||||
|
$attributes = "$class$style";
|
||||||
|
|
||||||
|
switch($column_name) {
|
||||||
|
|
||||||
|
case 'cb':
|
||||||
|
?>
|
||||||
|
<th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php the_ID(); ?>" /></th>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'icon':
|
||||||
|
$attributes = 'class="column-icon media-icon"' . $style;
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><?php
|
||||||
|
if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) {
|
||||||
|
?>
|
||||||
|
|
||||||
|
<a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>">
|
||||||
|
<?php echo $thumb; ?>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
?></td>
|
||||||
|
<?php
|
||||||
|
// TODO
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'media':
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
|
||||||
|
<?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
|
||||||
|
<p>
|
||||||
|
<?php
|
||||||
|
$actions = array();
|
||||||
|
if ( current_user_can('edit_post', $post->ID) )
|
||||||
|
$actions['edit'] = '<a href="' . get_edit_post_link($post->ID, true) . '">' . __('Edit') . '</a>';
|
||||||
|
if ( current_user_can('delete_post', $post->ID) )
|
||||||
|
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . esc_js(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
|
||||||
|
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||||
|
$action_count = count($actions);
|
||||||
|
$i = 0;
|
||||||
|
echo '<div class="row-actions">';
|
||||||
|
foreach ( $actions as $action => $link ) {
|
||||||
|
++$i;
|
||||||
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
|
echo "<span class='$action'>$link$sep</span>";
|
||||||
|
}
|
||||||
|
echo '</div>';
|
||||||
|
?></p></td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'author':
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><?php the_author() ?></td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'tags':
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><?php
|
||||||
|
$tags = get_the_tags();
|
||||||
|
if ( !empty( $tags ) ) {
|
||||||
|
$out = array();
|
||||||
|
foreach ( $tags as $c )
|
||||||
|
$out[] = "<a href='edit.php?tag=$c->slug'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>";
|
||||||
|
echo join( ', ', $out );
|
||||||
|
} else {
|
||||||
|
_e('No Tags');
|
||||||
|
}
|
||||||
|
?></td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'desc':
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'date':
|
||||||
|
if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
|
||||||
|
$t_time = $h_time = __('Unpublished');
|
||||||
|
} else {
|
||||||
|
$t_time = get_the_time(__('Y/m/d g:i:s A'));
|
||||||
|
$m_time = $post->post_date;
|
||||||
|
$time = get_post_time( 'G', true, $post, false );
|
||||||
|
if ( ( abs($t_diff = time() - $time) ) < 86400 ) {
|
||||||
|
if ( $t_diff < 0 )
|
||||||
|
$h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
|
||||||
|
else
|
||||||
|
$h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
|
||||||
|
} else {
|
||||||
|
$h_time = mysql2date(__('Y/m/d'), $m_time);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><?php echo $h_time ?></td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'parent':
|
||||||
|
if ( $post->post_parent > 0 ) {
|
||||||
|
if ( get_post($post->post_parent) ) {
|
||||||
|
$title =_draft_or_post_title($post->post_parent);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong>, <?php echo get_the_time(__('Y/m/d')); ?></td>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>> </td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'comments':
|
||||||
|
$attributes = 'class="comments column-comments num"' . $style;
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><div class="post-com-count-wrapper">
|
||||||
|
<?php
|
||||||
|
$left = get_pending_comments_num( $post->ID );
|
||||||
|
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
||||||
|
if ( $left )
|
||||||
|
echo '<strong>';
|
||||||
|
comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '</span></a>');
|
||||||
|
if ( $left )
|
||||||
|
echo '</strong>';
|
||||||
|
?>
|
||||||
|
</div></td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'actions':
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>>
|
||||||
|
<a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php _e('Edit'); ?></a> |
|
||||||
|
<a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a>
|
||||||
|
</td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
?>
|
||||||
|
<td <?php echo $attributes ?>><?php do_action('manage_media_custom_column', $column_name, $id); ?></td>
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tr>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<?php } else { ?>
|
||||||
|
|
||||||
|
<p><?php _e('No media attachments found.') ?></p>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
} // end if ( have_posts() )
|
||||||
|
?>
|
||||||
|
|
84
wp-admin/edit-category-form.php
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit category form for inclusion in administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var object
|
||||||
|
*/
|
||||||
|
if ( ! isset( $category ) )
|
||||||
|
$category = (object) array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
* @since 2.7
|
||||||
|
* @internal Used to prevent errors in page when no category is being edited.
|
||||||
|
*
|
||||||
|
* @param object $category
|
||||||
|
*/
|
||||||
|
function _fill_empty_category(&$category) {
|
||||||
|
if ( ! isset( $category->name ) )
|
||||||
|
$category->name = '';
|
||||||
|
|
||||||
|
if ( ! isset( $category->slug ) )
|
||||||
|
$category->slug = '';
|
||||||
|
|
||||||
|
if ( ! isset( $category->parent ) )
|
||||||
|
$category->parent = '';
|
||||||
|
|
||||||
|
if ( ! isset( $category->description ) )
|
||||||
|
$category->description = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
do_action('edit_category_form_pre', $category);
|
||||||
|
|
||||||
|
_fill_empty_category($category);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php _e('Edit Category'); ?></h2>
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">
|
||||||
|
<input type="hidden" name="action" value="editedcat" />
|
||||||
|
<input type="hidden" name="cat_ID" value="<?php echo esc_attr($category->term_id) ?>" />
|
||||||
|
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-category_' . $cat_ID); ?>
|
||||||
|
<table class="form-table">
|
||||||
|
<tr class="form-field form-required">
|
||||||
|
<th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
|
||||||
|
<td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /><br />
|
||||||
|
<span class="description"><?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></span></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
|
||||||
|
<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
|
||||||
|
<span class="description"><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></span></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
|
||||||
|
<td>
|
||||||
|
<?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
|
||||||
|
<span class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th scope="row" valign="top"><label for="category_description"><?php _e('Description') ?></label></th>
|
||||||
|
<td><textarea name="category_description" id="category_description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($category->description); ?></textarea><br />
|
||||||
|
<span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
|
||||||
|
</tr>
|
||||||
|
<?php do_action('edit_category_form_fields', $category); ?>
|
||||||
|
</table>
|
||||||
|
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>
|
||||||
|
<?php do_action('edit_category_form', $category); ?>
|
||||||
|
</form>
|
||||||
|
</div>
|
386
wp-admin/edit-comments.php
Normal file
|
@ -0,0 +1,386 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit Comments Administration Panel.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** WordPress Administration Bootstrap */
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_posts') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
wp_enqueue_script('admin-comments');
|
||||||
|
enqueue_comment_hotkeys_js();
|
||||||
|
|
||||||
|
$post_id = isset($_REQUEST['p']) ? (int) $_REQUEST['p'] : 0;
|
||||||
|
|
||||||
|
if ( ( isset( $_REQUEST['delete_all_spam'] ) || isset( $_REQUEST['delete_all_spam2'] ) ) && !empty( $_REQUEST['pagegen_timestamp'] ) ) {
|
||||||
|
check_admin_referer('bulk-spam-delete', '_spam_nonce');
|
||||||
|
|
||||||
|
$delete_time = $wpdb->escape( $_REQUEST['pagegen_timestamp'] );
|
||||||
|
if ( current_user_can('moderate_comments')) {
|
||||||
|
$deleted_spam = $wpdb->query( "DELETE FROM $wpdb->comments WHERE comment_approved = 'spam' AND '$delete_time' > comment_date_gmt" );
|
||||||
|
} else {
|
||||||
|
$deleted_spam = 0;
|
||||||
|
}
|
||||||
|
$redirect_to = 'edit-comments.php?comment_status=spam&deleted=' . (int) $deleted_spam;
|
||||||
|
if ( $post_id )
|
||||||
|
$redirect_to = add_query_arg( 'p', absint( $post_id ), $redirect_to );
|
||||||
|
wp_redirect( $redirect_to );
|
||||||
|
} elseif ( isset($_REQUEST['delete_comments']) && isset($_REQUEST['action']) && ( -1 != $_REQUEST['action'] || -1 != $_REQUEST['action2'] ) ) {
|
||||||
|
check_admin_referer('bulk-comments');
|
||||||
|
$doaction = ( -1 != $_REQUEST['action'] ) ? $_REQUEST['action'] : $_REQUEST['action2'];
|
||||||
|
|
||||||
|
$deleted = $approved = $unapproved = $spammed = 0;
|
||||||
|
foreach ( (array) $_REQUEST['delete_comments'] as $comment_id) : // Check the permissions on each
|
||||||
|
$comment_id = (int) $comment_id;
|
||||||
|
$_post_id = (int) $wpdb->get_var( $wpdb->prepare( "SELECT comment_post_ID FROM $wpdb->comments WHERE comment_ID = %d", $comment_id) );
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_post', $_post_id) )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
switch( $doaction ) {
|
||||||
|
case 'markspam' :
|
||||||
|
wp_set_comment_status($comment_id, 'spam');
|
||||||
|
$spammed++;
|
||||||
|
break;
|
||||||
|
case 'delete' :
|
||||||
|
wp_set_comment_status($comment_id, 'delete');
|
||||||
|
$deleted++;
|
||||||
|
break;
|
||||||
|
case 'approve' :
|
||||||
|
wp_set_comment_status($comment_id, 'approve');
|
||||||
|
$approved++;
|
||||||
|
break;
|
||||||
|
case 'unapprove' :
|
||||||
|
wp_set_comment_status($comment_id, 'hold');
|
||||||
|
$unapproved++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
endforeach;
|
||||||
|
|
||||||
|
$redirect_to = 'edit-comments.php?deleted=' . $deleted . '&approved=' . $approved . '&spam=' . $spammed . '&unapproved=' . $unapproved;
|
||||||
|
if ( $post_id )
|
||||||
|
$redirect_to = add_query_arg( 'p', absint( $post_id ), $redirect_to );
|
||||||
|
if ( isset($_REQUEST['apage']) )
|
||||||
|
$redirect_to = add_query_arg( 'apage', absint($_REQUEST['apage']), $redirect_to );
|
||||||
|
if ( !empty($_REQUEST['mode']) )
|
||||||
|
$redirect_to = add_query_arg('mode', $_REQUEST['mode'], $redirect_to);
|
||||||
|
if ( !empty($_REQUEST['comment_status']) )
|
||||||
|
$redirect_to = add_query_arg('comment_status', $_REQUEST['comment_status'], $redirect_to);
|
||||||
|
if ( !empty($_REQUEST['s']) )
|
||||||
|
$redirect_to = add_query_arg('s', $_REQUEST['s'], $redirect_to);
|
||||||
|
wp_redirect( $redirect_to );
|
||||||
|
} elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
|
||||||
|
wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $post_id )
|
||||||
|
$title = sprintf(__('Edit Comments on “%s”'), wp_html_excerpt(_draft_or_post_title($post_id), 50));
|
||||||
|
else
|
||||||
|
$title = __('Edit Comments');
|
||||||
|
|
||||||
|
require_once('admin-header.php');
|
||||||
|
|
||||||
|
$mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
|
||||||
|
|
||||||
|
$comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all';
|
||||||
|
if ( !in_array($comment_status, array('all', 'moderated', 'approved', 'spam')) )
|
||||||
|
$comment_status = 'all';
|
||||||
|
|
||||||
|
$comment_type = !empty($_GET['comment_type']) ? esc_attr($_GET['comment_type']) : '';
|
||||||
|
|
||||||
|
$search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : '';
|
||||||
|
$search = esc_attr( $search_dirty ); ?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title );
|
||||||
|
if ( isset($_GET['s']) && $_GET['s'] )
|
||||||
|
printf( '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( stripslashes( $_GET['s'] ) ), 50 ) ) . '</span>' ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) {
|
||||||
|
$approved = isset( $_GET['approved'] ) ? (int) $_GET['approved'] : 0;
|
||||||
|
$deleted = isset( $_GET['deleted'] ) ? (int) $_GET['deleted'] : 0;
|
||||||
|
$spam = isset( $_GET['spam'] ) ? (int) $_GET['spam'] : 0;
|
||||||
|
|
||||||
|
if ( $approved > 0 || $deleted > 0 || $spam > 0 ) {
|
||||||
|
echo '<div id="moderated" class="updated fade"><p>';
|
||||||
|
|
||||||
|
if ( $approved > 0 ) {
|
||||||
|
printf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
|
||||||
|
echo '<br />';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $deleted > 0 ) {
|
||||||
|
printf( _n( '%s comment deleted', '%s comments deleted', $deleted ), $deleted );
|
||||||
|
echo '<br />';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $spam > 0 ) {
|
||||||
|
printf( _n( '%s comment marked as spam', '%s comments marked as spam', $spam ), $spam );
|
||||||
|
echo '<br />';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '</p></div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<form id="comments-form" action="" method="get">
|
||||||
|
<ul class="subsubsub">
|
||||||
|
<?php
|
||||||
|
$status_links = array();
|
||||||
|
$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
|
||||||
|
//, number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"),
|
||||||
|
//, number_format_i18n($num_comments->spam) ), "<span class='spam-comment-count'>" . number_format_i18n($num_comments->spam) . "</span>")
|
||||||
|
$stati = array(
|
||||||
|
'all' => _n_noop('All', 'All'), // singular not used
|
||||||
|
'moderated' => _n_noop('Pending (<span class="pending-count">%s</span>)', 'Pending (<span class="pending-count">%s</span>)'),
|
||||||
|
'approved' => _n_noop('Approved', 'Approved'), // singular not used
|
||||||
|
'spam' => _n_noop('Spam (<span class="spam-count">%s</span>)', 'Spam (<span class="spam-count">%s</span>)')
|
||||||
|
);
|
||||||
|
$link = 'edit-comments.php';
|
||||||
|
if ( !empty($comment_type) && 'all' != $comment_type )
|
||||||
|
$link = add_query_arg( 'comment_type', $comment_type, $link );
|
||||||
|
foreach ( $stati as $status => $label ) {
|
||||||
|
$class = '';
|
||||||
|
|
||||||
|
if ( $status == $comment_status )
|
||||||
|
$class = ' class="current"';
|
||||||
|
if ( !isset( $num_comments->$status ) )
|
||||||
|
$num_comments->$status = 10;
|
||||||
|
$link = add_query_arg( 'comment_status', $status, $link );
|
||||||
|
if ( $post_id )
|
||||||
|
$link = add_query_arg( 'p', absint( $post_id ), $link );
|
||||||
|
/*
|
||||||
|
// I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
|
||||||
|
if ( !empty( $_GET['s'] ) )
|
||||||
|
$link = add_query_arg( 's', esc_attr( stripslashes( $_GET['s'] ) ), $link );
|
||||||
|
*/
|
||||||
|
$status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf(
|
||||||
|
_n( $label[0], $label[1], $num_comments->$status ),
|
||||||
|
number_format_i18n( $num_comments->$status )
|
||||||
|
) . '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$status_links = apply_filters( 'comment_status_links', $status_links );
|
||||||
|
|
||||||
|
echo implode( " |</li>\n", $status_links) . '</li>';
|
||||||
|
unset($status_links);
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p class="search-box">
|
||||||
|
<label class="screen-reader-text" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
|
||||||
|
<input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" />
|
||||||
|
<input type="submit" value="<?php esc_attr_e( 'Search Comments' ); ?>" class="button" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$comments_per_page = get_user_option('edit_comments_per_page');
|
||||||
|
if ( empty($comments_per_page) )
|
||||||
|
$comments_per_page = 20;
|
||||||
|
$comments_per_page = apply_filters('comments_per_page', $comments_per_page, $comment_status);
|
||||||
|
|
||||||
|
if ( isset( $_GET['apage'] ) )
|
||||||
|
$page = abs( (int) $_GET['apage'] );
|
||||||
|
else
|
||||||
|
$page = 1;
|
||||||
|
|
||||||
|
$start = $offset = ( $page - 1 ) * $comments_per_page;
|
||||||
|
|
||||||
|
list($_comments, $total) = _wp_get_comment_list( $comment_status, $search_dirty, $start, $comments_per_page + 8, $post_id, $comment_type ); // Grab a few extra
|
||||||
|
|
||||||
|
$_comment_post_ids = array();
|
||||||
|
foreach ( $_comments as $_c ) {
|
||||||
|
$_comment_post_ids[] = $_c->comment_post_ID;
|
||||||
|
}
|
||||||
|
$_comment_pending_count_temp = (array) get_pending_comments_num($_comment_post_ids);
|
||||||
|
foreach ( (array) $_comment_post_ids as $_cpid )
|
||||||
|
$_comment_pending_count[$_cpid] = isset( $_comment_pending_count_temp[$_cpid] ) ? $_comment_pending_count_temp[$_cpid] : 0;
|
||||||
|
if ( empty($_comment_pending_count) )
|
||||||
|
$_comment_pending_count = array();
|
||||||
|
|
||||||
|
$comments = array_slice($_comments, 0, $comments_per_page);
|
||||||
|
$extra_comments = array_slice($_comments, $comments_per_page);
|
||||||
|
|
||||||
|
$page_links = paginate_links( array(
|
||||||
|
'base' => add_query_arg( 'apage', '%#%' ),
|
||||||
|
'format' => '',
|
||||||
|
'prev_text' => __('«'),
|
||||||
|
'next_text' => __('»'),
|
||||||
|
'total' => ceil($total / $comments_per_page),
|
||||||
|
'current' => $page
|
||||||
|
));
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
|
||||||
|
<?php if ( $post_id ) : ?>
|
||||||
|
<input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
<input type="hidden" name="comment_status" value="<?php echo esc_attr($comment_status); ?>" />
|
||||||
|
<input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr(current_time('mysql', 1)); ?>" />
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
|
||||||
|
<?php if ( $page_links ) : ?>
|
||||||
|
<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
||||||
|
number_format_i18n( $start + 1 ),
|
||||||
|
number_format_i18n( min( $page * $comments_per_page, $total ) ),
|
||||||
|
'<span class="total-type-count">' . number_format_i18n( $total ) . '</span>',
|
||||||
|
$page_links
|
||||||
|
); echo $page_links_text; ?></div>
|
||||||
|
<input type="hidden" name="_total" value="<?php echo esc_attr($total); ?>" />
|
||||||
|
<input type="hidden" name="_per_page" value="<?php echo esc_attr($comments_per_page); ?>" />
|
||||||
|
<input type="hidden" name="_page" value="<?php echo esc_attr($page); ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action">
|
||||||
|
<option value="-1" selected="selected"><?php _e('Bulk Actions') ?></option>
|
||||||
|
<?php if ( 'all' == $comment_status || 'approved' == $comment_status ): ?>
|
||||||
|
<option value="unapprove"><?php _e('Unapprove'); ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ( 'all' == $comment_status || 'moderated' == $comment_status || 'spam' == $comment_status ): ?>
|
||||||
|
<option value="approve"><?php _e('Approve'); ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ( 'spam' != $comment_status ): ?>
|
||||||
|
<option value="markspam"><?php _e('Mark as Spam'); ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" name="doaction" id="doaction" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" />
|
||||||
|
<?php wp_nonce_field('bulk-comments'); ?>
|
||||||
|
|
||||||
|
<select name="comment_type">
|
||||||
|
<option value="all"><?php _e('Show all comment types'); ?></option>
|
||||||
|
<?php
|
||||||
|
$comment_types = apply_filters( 'admin_comment_types_dropdown', array(
|
||||||
|
'comment' => __('Comments'),
|
||||||
|
'pings' => __('Pings'),
|
||||||
|
) );
|
||||||
|
|
||||||
|
foreach ( $comment_types as $type => $label ) {
|
||||||
|
echo " <option value='" . esc_attr($type) . "'";
|
||||||
|
selected( $comment_type, $type );
|
||||||
|
echo ">$label</option>\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" />
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['apage']) ) { ?>
|
||||||
|
<input type="hidden" name="apage" value="<?php echo esc_attr( absint( $_GET['apage'] ) ); ?>" />
|
||||||
|
<?php }
|
||||||
|
|
||||||
|
if ( 'spam' == $comment_status ) {
|
||||||
|
wp_nonce_field('bulk-spam-delete', '_spam_nonce');
|
||||||
|
if ( current_user_can ('moderate_comments')) { ?>
|
||||||
|
<input type="submit" name="delete_all_spam" value="<?php esc_attr_e('Delete All Spam'); ?>" class="button-secondary apply" />
|
||||||
|
<?php }
|
||||||
|
} ?>
|
||||||
|
<?php do_action('manage_comments_nav', $comment_status); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<?php if ( $comments ) { ?>
|
||||||
|
<table class="widefat comments fixed" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-comments'); ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-comments', false); ?>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<tbody id="the-comment-list" class="list:comment">
|
||||||
|
<?php
|
||||||
|
foreach ($comments as $comment)
|
||||||
|
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tbody id="the-extra-comment-list" class="list:comment" style="display: none;">
|
||||||
|
<?php
|
||||||
|
foreach ($extra_comments as $comment)
|
||||||
|
_wp_comment_row( $comment->comment_ID, $mode, $comment_status );
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
<?php
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links_text</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action2">
|
||||||
|
<option value="-1" selected="selected"><?php _e('Bulk Actions') ?></option>
|
||||||
|
<?php if ( 'all' == $comment_status || 'approved' == $comment_status ): ?>
|
||||||
|
<option value="unapprove"><?php _e('Unapprove'); ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ( 'all' == $comment_status || 'moderated' == $comment_status || 'spam' == $comment_status ): ?>
|
||||||
|
<option value="approve"><?php _e('Approve'); ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if ( 'spam' != $comment_status ): ?>
|
||||||
|
<option value="markspam"><?php _e('Mark as Spam'); ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" name="doaction2" id="doaction2" value="<?php esc_attr_e('Apply'); ?>" class="button-secondary apply" />
|
||||||
|
|
||||||
|
<?php if ( 'spam' == $comment_status ) { ?>
|
||||||
|
<input type="submit" name="delete_all_spam2" value="<?php esc_attr_e('Delete All Spam'); ?>" class="button-secondary apply" />
|
||||||
|
<?php } ?>
|
||||||
|
<?php do_action('manage_comments_nav', $comment_status); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form id="get-extra-comments" method="post" action="" class="add:the-extra-comment-list:" style="display: none;">
|
||||||
|
<input type="hidden" name="s" value="<?php echo esc_attr($search); ?>" />
|
||||||
|
<input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
|
||||||
|
<input type="hidden" name="comment_status" value="<?php echo esc_attr($comment_status); ?>" />
|
||||||
|
<input type="hidden" name="page" value="<?php echo esc_attr($page); ?>" />
|
||||||
|
<input type="hidden" name="per_page" value="<?php echo esc_attr($comments_per_page); ?>" />
|
||||||
|
<input type="hidden" name="p" value="<?php echo esc_attr( $post_id ); ?>" />
|
||||||
|
<input type="hidden" name="comment_type" value="<?php echo esc_attr( $comment_type ); ?>" />
|
||||||
|
<?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
|
||||||
|
<?php } elseif ( 'moderated' == $comment_status ) { ?>
|
||||||
|
<p><?php _e('No comments awaiting moderation… yet.') ?></p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?php } else { ?>
|
||||||
|
<p><?php _e('No results found.') ?></p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
wp_comment_reply('-1', true, 'detail');
|
||||||
|
include('admin-footer.php'); ?>
|
669
wp-admin/edit-form-advanced.php
Normal file
|
@ -0,0 +1,669 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Post advanced form for inclusion in the administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Post ID global
|
||||||
|
* @name $post_ID
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
$post_ID = isset($post_ID) ? (int) $post_ID : 0;
|
||||||
|
|
||||||
|
$action = isset($action) ? $action : '';
|
||||||
|
if ( isset($_GET['message']) )
|
||||||
|
$_GET['message'] = absint( $_GET['message'] );
|
||||||
|
$messages[1] = sprintf(__('Post updated. <a href="%s">View post</a>'), get_permalink($post_ID));
|
||||||
|
$messages[2] = __('Custom field updated.');
|
||||||
|
$messages[3] = __('Custom field deleted.');
|
||||||
|
$messages[4] = __('Post updated.');
|
||||||
|
$messages[6] = sprintf(__('Post published. <a href="%s">View post</a>'), get_permalink($post_ID));
|
||||||
|
$messages[7] = __('Post saved.');
|
||||||
|
$messages[8] = sprintf(__('Post submitted. <a href="%s">Preview post</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) );
|
||||||
|
|
||||||
|
if ( isset($_GET['revision']) )
|
||||||
|
$messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
|
||||||
|
|
||||||
|
$notice = false;
|
||||||
|
$notices[1] = __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>.' );
|
||||||
|
|
||||||
|
if ( 0 == $post_ID ) {
|
||||||
|
$form_action = 'post';
|
||||||
|
$temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
|
||||||
|
$form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='" . esc_attr($temp_ID) . "' />";
|
||||||
|
$autosave = false;
|
||||||
|
} else {
|
||||||
|
$form_action = 'editpost';
|
||||||
|
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr($post_ID) . "' />";
|
||||||
|
$autosave = wp_get_post_autosave( $post_ID );
|
||||||
|
|
||||||
|
// Detect if there exists an autosave newer than the post and if that autosave is different than the post
|
||||||
|
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
|
||||||
|
foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) {
|
||||||
|
if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {
|
||||||
|
$notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
unset($autosave_field, $_autosave_field);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action).
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display post submit form fields.
|
||||||
|
*
|
||||||
|
* @since 2.7.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_submit_meta_box($post) {
|
||||||
|
global $action;
|
||||||
|
|
||||||
|
$can_publish = current_user_can('publish_posts');
|
||||||
|
?>
|
||||||
|
<div class="submitbox" id="submitpost">
|
||||||
|
|
||||||
|
<div id="minor-publishing">
|
||||||
|
|
||||||
|
<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?>
|
||||||
|
<div style="display:none;">
|
||||||
|
<input type="submit" name="save" value="<?php esc_attr_e('Save'); ?>" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="minor-publishing-actions">
|
||||||
|
<div id="save-action">
|
||||||
|
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
||||||
|
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
|
<?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?>
|
||||||
|
<input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="preview-action">
|
||||||
|
<?php
|
||||||
|
if ( 'publish' == $post->post_status ) {
|
||||||
|
$preview_link = esc_url(get_permalink($post->ID));
|
||||||
|
$preview_button = __('Preview Changes');
|
||||||
|
} else {
|
||||||
|
$preview_link = esc_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID))));
|
||||||
|
$preview_button = __('Preview');
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php echo $preview_button; ?></a>
|
||||||
|
<input type="hidden" name="wp-preview" id="wp-preview" value="" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div><?php // /minor-publishing-actions ?>
|
||||||
|
|
||||||
|
<div id="misc-publishing-actions">
|
||||||
|
|
||||||
|
<div class="misc-pub-section<?php if ( !$can_publish ) { echo ' misc-pub-section-last'; } ?>"><label for="post_status"><?php _e('Status:') ?></label>
|
||||||
|
<span id="post-status-display">
|
||||||
|
<?php
|
||||||
|
switch ( $post->post_status ) {
|
||||||
|
case 'private':
|
||||||
|
_e('Privately Published');
|
||||||
|
break;
|
||||||
|
case 'publish':
|
||||||
|
_e('Published');
|
||||||
|
break;
|
||||||
|
case 'future':
|
||||||
|
_e('Scheduled');
|
||||||
|
break;
|
||||||
|
case 'pending':
|
||||||
|
_e('Pending Review');
|
||||||
|
break;
|
||||||
|
case 'draft':
|
||||||
|
_e('Draft');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
|
<?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?>
|
||||||
|
<a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
|
||||||
|
|
||||||
|
<div id="post-status-select" class="hide-if-js">
|
||||||
|
<input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr($post->post_status); ?>" />
|
||||||
|
<select name='post_status' id='post_status' tabindex='4'>
|
||||||
|
<?php if ( 'publish' == $post->post_status ) : ?>
|
||||||
|
<option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e('Published') ?></option>
|
||||||
|
<?php elseif ( 'private' == $post->post_status ) : ?>
|
||||||
|
<option<?php selected( $post->post_status, 'private' ); ?> value='publish'><?php _e('Privately Published') ?></option>
|
||||||
|
<?php elseif ( 'future' == $post->post_status ) : ?>
|
||||||
|
<option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Scheduled') ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
|
||||||
|
<option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Draft') ?></option>
|
||||||
|
</select>
|
||||||
|
<a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a>
|
||||||
|
<a href="#post_status" class="cancel-post-status hide-if-no-js"><?php _e('Cancel'); ?></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</div><?php // /misc-pub-section ?>
|
||||||
|
|
||||||
|
<div class="misc-pub-section " id="visibility">
|
||||||
|
<?php _e('Visibility:'); ?> <span id="post-visibility-display"><?php
|
||||||
|
|
||||||
|
if ( 'private' == $post->post_status ) {
|
||||||
|
$post->post_password = '';
|
||||||
|
$visibility = 'private';
|
||||||
|
$visibility_trans = __('Private');
|
||||||
|
} elseif ( !empty( $post->post_password ) ) {
|
||||||
|
$visibility = 'password';
|
||||||
|
$visibility_trans = __('Password protected');
|
||||||
|
} elseif ( is_sticky( $post->ID ) ) {
|
||||||
|
$visibility = 'public';
|
||||||
|
$visibility_trans = __('Public, Sticky');
|
||||||
|
} else {
|
||||||
|
$visibility = 'public';
|
||||||
|
$visibility_trans = __('Public');
|
||||||
|
}
|
||||||
|
|
||||||
|
?><?php echo esc_html( $visibility_trans ); ?></span> <?php if ( $can_publish ) { ?> <a href="#visibility" class="edit-visibility hide-if-no-js"><?php _e('Edit'); ?></a>
|
||||||
|
|
||||||
|
<div id="post-visibility-select" class="hide-if-js">
|
||||||
|
<input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr($post->post_password); ?>" />
|
||||||
|
<input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked(is_sticky($post->ID)); ?> />
|
||||||
|
<input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo esc_attr( $visibility ); ?>" />
|
||||||
|
|
||||||
|
|
||||||
|
<input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _e('Public'); ?></label><br />
|
||||||
|
<span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked(is_sticky($post->ID)); ?> tabindex="4" /> <label for="sticky" class="selectit"><?php _e('Stick this post to the front page') ?></label><br /></span>
|
||||||
|
<input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br />
|
||||||
|
<span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>" /><br /></span>
|
||||||
|
<input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br />
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a>
|
||||||
|
<a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</div><?php // /misc-pub-section ?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// translators: Publish box date formt, see http://php.net/date
|
||||||
|
$datef = __( 'M j, Y @ G:i' );
|
||||||
|
if ( 0 != $post->ID ) {
|
||||||
|
if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
|
||||||
|
$stamp = __('Scheduled for: <b>%1$s</b>');
|
||||||
|
} else if ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
|
||||||
|
$stamp = __('Published on: <b>%1$s</b>');
|
||||||
|
} else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
|
||||||
|
$stamp = __('Publish <b>immediately</b>');
|
||||||
|
} else if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
|
||||||
|
$stamp = __('Schedule for: <b>%1$s</b>');
|
||||||
|
} else { // draft, 1 or more saves, date specified
|
||||||
|
$stamp = __('Publish on: <b>%1$s</b>');
|
||||||
|
}
|
||||||
|
$date = date_i18n( $datef, strtotime( $post->post_date ) );
|
||||||
|
} else { // draft (no saves, and thus no date specified)
|
||||||
|
$stamp = __('Publish <b>immediately</b>');
|
||||||
|
$date = date_i18n( $datef, strtotime( current_time('mysql') ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
|
||||||
|
<div class="misc-pub-section curtime misc-pub-section-last">
|
||||||
|
<span id="timestamp">
|
||||||
|
<?php printf($stamp, $date); ?></span>
|
||||||
|
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
|
||||||
|
<div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div>
|
||||||
|
</div><?php // /misc-pub-section ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="major-publishing-actions">
|
||||||
|
<?php do_action('post_submitbox_start'); ?>
|
||||||
|
<div id="delete-action">
|
||||||
|
<?php
|
||||||
|
if ( ( 'edit' == $action ) && current_user_can('delete_post', $post->ID) ) { ?>
|
||||||
|
<a class="submitdelete deletion" href="<?php echo wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="publishing-action">
|
||||||
|
<?php
|
||||||
|
if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) {
|
||||||
|
if ( current_user_can('publish_posts') ) :
|
||||||
|
if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
|
||||||
|
<input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Schedule') ?>" />
|
||||||
|
<?php else : ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
|
||||||
|
<input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Publish') ?>" />
|
||||||
|
<?php endif;
|
||||||
|
else : ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" />
|
||||||
|
<input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Submit for Review') ?>" />
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
} else { ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update Post') ?>" />
|
||||||
|
<input name="save" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Update Post') ?>" />
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', 'post', 'side', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display post tags form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_tags_meta_box($post, $box) {
|
||||||
|
$tax_name = esc_attr(substr($box['id'], 8));
|
||||||
|
$taxonomy = get_taxonomy($tax_name);
|
||||||
|
$helps = isset($taxonomy->helps) ? esc_attr($taxonomy->helps) : __('Separate tags with commas.');
|
||||||
|
?>
|
||||||
|
<div class="tagsdiv" id="<?php echo $tax_name; ?>">
|
||||||
|
<div class="jaxtag">
|
||||||
|
<div class="nojs-tags hide-if-js">
|
||||||
|
<p><?php _e('Add or remove tags'); ?></p>
|
||||||
|
<textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]"><?php echo esc_attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
|
||||||
|
|
||||||
|
<span class="ajaxtag hide-if-no-js">
|
||||||
|
<label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
|
||||||
|
<input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php esc_attr_e('Add new tag'); ?>" />
|
||||||
|
<input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" />
|
||||||
|
</span></div>
|
||||||
|
<p class="howto"><?php echo $helps; ?></p>
|
||||||
|
<div class="tagchecklist"></div>
|
||||||
|
</div>
|
||||||
|
<p class="tagcloud-link hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-<?php echo $tax_name; ?>"><?php printf( __('Choose from the most used tags in %s'), $box['title'] ); ?></a></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
// all tag-style post taxonomies
|
||||||
|
foreach ( get_object_taxonomies('post') as $tax_name ) {
|
||||||
|
if ( !is_taxonomy_hierarchical($tax_name) ) {
|
||||||
|
$taxonomy = get_taxonomy($tax_name);
|
||||||
|
$label = isset($taxonomy->label) ? esc_attr($taxonomy->label) : $tax_name;
|
||||||
|
|
||||||
|
add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', 'post', 'side', 'core');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display post categories form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_categories_meta_box($post) {
|
||||||
|
?>
|
||||||
|
<ul id="category-tabs">
|
||||||
|
<li class="tabs"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
|
||||||
|
<li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div id="categories-pop" class="tabs-panel" style="display: none;">
|
||||||
|
<ul id="categorychecklist-pop" class="categorychecklist form-no-clear" >
|
||||||
|
<?php $popular_ids = wp_popular_terms_checklist('category'); ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="categories-all" class="tabs-panel">
|
||||||
|
<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
|
||||||
|
<?php wp_category_checklist($post->ID, false, false, $popular_ids) ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ( current_user_can('manage_categories') ) : ?>
|
||||||
|
<div id="category-adder" class="wp-hidden-children">
|
||||||
|
<h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
|
||||||
|
<p id="category-add" class="wp-hidden-child">
|
||||||
|
<label class="screen-reader-text" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/>
|
||||||
|
<label class="screen-reader-text" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
|
||||||
|
<input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" />
|
||||||
|
<?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
|
||||||
|
<span id="category-ajax-response"></span></p>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
|
||||||
|
}
|
||||||
|
add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display post password form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_password_meta_box($post) {
|
||||||
|
?>
|
||||||
|
<p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label></p>
|
||||||
|
<h4><?php _e( 'Post Password' ); ?></h4>
|
||||||
|
<p><label class="screen-reader-text" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php the_post_password(); ?>" /></p>
|
||||||
|
<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this post and its comments.'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
// add_meta_box('passworddiv', __('Privacy Options'), 'post_password_meta_box', 'post', 'side', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display post excerpt form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_excerpt_meta_box($post) {
|
||||||
|
?>
|
||||||
|
<label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea>
|
||||||
|
<p><?php _e('Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display trackback links form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_trackback_meta_box($post) {
|
||||||
|
$form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" tabindex="7" value="'. esc_attr( str_replace("\n", ' ', $post->to_ping) ) .'" />';
|
||||||
|
if ('' != $post->pinged) {
|
||||||
|
$pings = '<p>'. __('Already pinged:') . '</p><ul>';
|
||||||
|
$already_pinged = explode("\n", trim($post->pinged));
|
||||||
|
foreach ($already_pinged as $pinged_url) {
|
||||||
|
$pings .= "\n\t<li>" . esc_html($pinged_url) . "</li>";
|
||||||
|
}
|
||||||
|
$pings .= '</ul>';
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<p><label for="trackback_url"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p>
|
||||||
|
<p><?php _e('Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress blogs they’ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>
|
||||||
|
<?php
|
||||||
|
if ( ! empty($pings) )
|
||||||
|
echo $pings;
|
||||||
|
}
|
||||||
|
add_meta_box('trackbacksdiv', __('Send Trackbacks'), 'post_trackback_meta_box', 'post', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display custom fields for the post form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_custom_meta_box($post) {
|
||||||
|
?>
|
||||||
|
<div id="postcustomstuff">
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
<?php
|
||||||
|
$metadata = has_meta($post->ID);
|
||||||
|
list_meta($metadata);
|
||||||
|
meta_form(); ?>
|
||||||
|
</div>
|
||||||
|
<p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'post', 'normal', 'core');
|
||||||
|
|
||||||
|
do_action('dbx_post_advanced');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display comment status for post form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_comment_status_meta_box($post) {
|
||||||
|
?>
|
||||||
|
<input name="advanced_view" type="hidden" value="1" />
|
||||||
|
<p class="meta-options">
|
||||||
|
<label for="comment_status" class="selectit"> <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> <?php _e('Allow comments on this post') ?></label><br />
|
||||||
|
<label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a> on this post') ?></label></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', 'post', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display comments for post.
|
||||||
|
*
|
||||||
|
* @since 2.8.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_comment_meta_box($post) {
|
||||||
|
global $wpdb, $post_ID;
|
||||||
|
|
||||||
|
$total = $wpdb->get_var($wpdb->prepare("SELECT count(1) FROM $wpdb->comments WHERE comment_post_ID = '%d' AND ( comment_approved = '0' OR comment_approved = '1')", $post_ID));
|
||||||
|
|
||||||
|
if ( 1 > $total ) {
|
||||||
|
echo '<p>' . __('No comments yet.') . '</p>';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
|
||||||
|
?>
|
||||||
|
|
||||||
|
<table class="widefat comments-box fixed" cellspacing="0" style="display:none;">
|
||||||
|
<thead><tr>
|
||||||
|
<th scope="col" class="column-author"><?php _e('Author') ?></th>
|
||||||
|
<th scope="col" class="column-comment">
|
||||||
|
<?php /* translators: field name in comment form */ echo _x('Comment', 'noun'); ?></th>
|
||||||
|
</tr></thead>
|
||||||
|
<tbody id="the-comment-list" class="list:comment"></tbody>
|
||||||
|
</table>
|
||||||
|
<p class="hide-if-no-js"><a href="#commentstatusdiv" id="show-comments" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="images/wpspin_light.gif" alt="" /></p>
|
||||||
|
<?php
|
||||||
|
$hidden = get_hidden_meta_boxes('post');
|
||||||
|
if ( ! in_array('commentsdiv', $hidden) ) { ?>
|
||||||
|
<script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( 'publish' == $post->post_status || 'private' == $post->post_status )
|
||||||
|
add_meta_box('commentsdiv', __('Comments'), 'post_comment_meta_box', 'post', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display post slug form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_slug_meta_box($post) {
|
||||||
|
?>
|
||||||
|
<label class="screen-reader-text" for="post_name"><?php _e('Post Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $post->post_name ); ?>" />
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
if ( !( 'pending' == $post->post_status && !current_user_can( 'publish_posts' ) ) )
|
||||||
|
add_meta_box('slugdiv', __('Post Slug'), 'post_slug_meta_box', 'post', 'normal', 'core');
|
||||||
|
|
||||||
|
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
|
||||||
|
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
||||||
|
$authors[] = $post->post_author;
|
||||||
|
if ( $authors && count( $authors ) > 1 ) :
|
||||||
|
/**
|
||||||
|
* Display form field with list of authors.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_author_meta_box($post) {
|
||||||
|
global $current_user, $user_ID;
|
||||||
|
$authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
|
||||||
|
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
||||||
|
$authors[] = $post->post_author;
|
||||||
|
?>
|
||||||
|
<label class="screen-reader-text" for="post_author_override"><?php _e('Post Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('authordiv', __('Post Author'), 'post_author_meta_box', 'post', 'normal', 'core');
|
||||||
|
endif;
|
||||||
|
|
||||||
|
if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) :
|
||||||
|
/**
|
||||||
|
* Display list of post revisions.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function post_revisions_meta_box($post) {
|
||||||
|
wp_list_post_revisions();
|
||||||
|
}
|
||||||
|
add_meta_box('revisionsdiv', __('Post Revisions'), 'post_revisions_meta_box', 'post', 'normal', 'core');
|
||||||
|
endif;
|
||||||
|
|
||||||
|
do_action('do_meta_boxes', 'post', 'normal', $post);
|
||||||
|
do_action('do_meta_boxes', 'post', 'advanced', $post);
|
||||||
|
do_action('do_meta_boxes', 'post', 'side', $post);
|
||||||
|
|
||||||
|
require_once('admin-header.php');
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?>
|
||||||
|
<input type="hidden" name="mode" value="bookmarklet" />
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title ); ?></h2>
|
||||||
|
<?php if ( $notice ) : ?>
|
||||||
|
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (isset($_GET['message'])) : ?>
|
||||||
|
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<form name="post" action="post.php" method="post" id="post">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if ( 0 == $post_ID)
|
||||||
|
wp_nonce_field('add-post');
|
||||||
|
else
|
||||||
|
wp_nonce_field('update-post_' . $post_ID);
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
|
||||||
|
<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr($form_action) ?>" />
|
||||||
|
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr($form_action) ?>" />
|
||||||
|
<input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
|
||||||
|
<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post->post_type) ?>" />
|
||||||
|
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" />
|
||||||
|
<input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
|
||||||
|
<?php
|
||||||
|
if ( 'draft' != $post->post_status )
|
||||||
|
wp_original_referer_field(true, 'previous');
|
||||||
|
|
||||||
|
echo $form_extra ?>
|
||||||
|
|
||||||
|
<div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
|
||||||
|
<div id="side-info-column" class="inner-sidebar">
|
||||||
|
|
||||||
|
<?php do_action('submitpost_box'); ?>
|
||||||
|
|
||||||
|
<?php $side_meta_boxes = do_meta_boxes('post', 'side', $post); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="post-body">
|
||||||
|
<div id="post-body-content">
|
||||||
|
<div id="titlediv">
|
||||||
|
<div id="titlewrap">
|
||||||
|
<label class="screen-reader-text" for="title"><?php _e('Title') ?></label>
|
||||||
|
<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
|
||||||
|
</div>
|
||||||
|
<div class="inside">
|
||||||
|
<?php
|
||||||
|
$sample_permalink_html = get_sample_permalink_html($post->ID);
|
||||||
|
if ( !( 'pending' == $post->post_status && !current_user_can( 'publish_posts' ) ) ) { ?>
|
||||||
|
<div id="edit-slug-box">
|
||||||
|
<?php
|
||||||
|
if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
|
||||||
|
echo $sample_permalink_html;
|
||||||
|
endif; ?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
|
||||||
|
|
||||||
|
<?php the_editor($post->post_content); ?>
|
||||||
|
|
||||||
|
<table id="post-status-info" cellspacing="0"><tbody><tr>
|
||||||
|
<td id="wp-word-count"></td>
|
||||||
|
<td class="autosave-info">
|
||||||
|
<span id="autosave"> </span>
|
||||||
|
<?php
|
||||||
|
if ( $post_ID ) {
|
||||||
|
echo '<span id="last-edit">';
|
||||||
|
if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
|
||||||
|
$last_user = get_userdata($last_id);
|
||||||
|
printf(__('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
|
||||||
|
} else {
|
||||||
|
printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
|
||||||
|
}
|
||||||
|
echo '</span>';
|
||||||
|
} ?>
|
||||||
|
</td>
|
||||||
|
</tr></tbody></table>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
wp_nonce_field( 'autosave', 'autosavenonce', false );
|
||||||
|
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
||||||
|
wp_nonce_field( 'getpermalink', 'getpermalinknonce', false );
|
||||||
|
wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
|
||||||
|
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
do_meta_boxes('post', 'normal', $post);
|
||||||
|
|
||||||
|
do_action('edit_form_advanced');
|
||||||
|
|
||||||
|
do_meta_boxes('post', 'advanced', $post);
|
||||||
|
|
||||||
|
do_action('dbx_post_sidebar'); ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br class="clear" />
|
||||||
|
</div><!-- /poststuff -->
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php wp_comment_reply(); ?>
|
||||||
|
|
||||||
|
<?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try{document.post.title.focus();}catch(e){}
|
||||||
|
</script>
|
||||||
|
<?php endif; ?>
|
143
wp-admin/edit-form-comment.php
Normal file
|
@ -0,0 +1,143 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit comment form for inclusion in another file.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
$submitbutton_text = __('Edit Comment');
|
||||||
|
$toprow_title = sprintf(__('Editing Comment # %s'), $comment->comment_ID);
|
||||||
|
$form_action = 'editedcomment';
|
||||||
|
$form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . esc_attr($comment->comment_ID) . "' />\n<input type='hidden' name='comment_post_ID' value='" . esc_attr($comment->comment_post_ID);
|
||||||
|
$comment->comment_author_email = esc_attr($comment->comment_author_email);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<form name="post" action="comment.php" method="post" id="post">
|
||||||
|
<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php _e('Edit Comment'); ?></h2>
|
||||||
|
|
||||||
|
<div id="poststuff" class="metabox-holder has-right-sidebar">
|
||||||
|
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
|
||||||
|
<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
|
||||||
|
|
||||||
|
<div id="side-info-column" class="inner-sidebar">
|
||||||
|
<div id="submitdiv" class="stuffbox" >
|
||||||
|
<h3><span class='hndle'><?php _e('Status') ?></span></h3>
|
||||||
|
<div class="inside">
|
||||||
|
<div class="submitbox" id="submitcomment">
|
||||||
|
<div id="minor-publishing">
|
||||||
|
|
||||||
|
<div id="minor-publishing-actions">
|
||||||
|
<div id="preview-action">
|
||||||
|
<a class="preview button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View Comment'); ?></a>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="misc-publishing-actions">
|
||||||
|
|
||||||
|
<div class="misc-pub-section" id="comment-status-radio">
|
||||||
|
<label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php /* translators: comment type radio button */ echo _x('Approved', 'adjective') ?></label><br />
|
||||||
|
<label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php /* translators: comment type radio button */ echo _x('Pending', 'adjective') ?></label><br />
|
||||||
|
<label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ echo _x('Spam', 'adjective'); ?></label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="misc-pub-section curtime misc-pub-section-last">
|
||||||
|
<?php
|
||||||
|
// translators: Publish box date formt, see http://php.net/date
|
||||||
|
$datef = __( 'M j, Y @ G:i' );
|
||||||
|
$stamp = __('Submitted on: <b>%1$s</b>');
|
||||||
|
$date = date_i18n( $datef, strtotime( $comment->comment_date ) );
|
||||||
|
?>
|
||||||
|
<span id="timestamp"><?php printf($stamp, $date); ?></span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
|
||||||
|
<div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- misc actions -->
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="major-publishing-actions">
|
||||||
|
<div id="delete-action">
|
||||||
|
<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . esc_js(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ){return true;}return false;\">" . __('Delete') . "</a>\n"; ?>
|
||||||
|
</div>
|
||||||
|
<div id="publishing-action">
|
||||||
|
<input type="submit" name="save" value="<?php esc_attr_e('Update Comment'); ?>" tabindex="4" class="button-primary" />
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="post-body">
|
||||||
|
<div id="post-body-content">
|
||||||
|
<div id="namediv" class="stuffbox">
|
||||||
|
<h3><label for="name"><?php _e( 'Author' ) ?></label></h3>
|
||||||
|
<div class="inside">
|
||||||
|
<table class="form-table editcomment">
|
||||||
|
<tbody>
|
||||||
|
<tr valign="top">
|
||||||
|
<td class="first"><?php _e( 'Name:' ); ?></td>
|
||||||
|
<td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1" id="name" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr valign="top">
|
||||||
|
<td class="first">
|
||||||
|
<?php
|
||||||
|
if ( $comment->comment_author_email ) {
|
||||||
|
printf( __( 'E-mail (%s):' ), get_comment_author_email_link( __( 'send e-mail' ), '', '' ) );
|
||||||
|
} else {
|
||||||
|
_e( 'E-mail:' );
|
||||||
|
}
|
||||||
|
?></td>
|
||||||
|
<td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr valign="top">
|
||||||
|
<td class="first">
|
||||||
|
<?php
|
||||||
|
if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) {
|
||||||
|
$link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>';
|
||||||
|
printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) );
|
||||||
|
} else {
|
||||||
|
_e( 'URL:' );
|
||||||
|
} ?></td>
|
||||||
|
<td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3" /></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="postdiv" class="postarea">
|
||||||
|
<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
|
||||||
|
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php do_meta_boxes('comment', 'normal', $comment); ?>
|
||||||
|
|
||||||
|
<input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" />
|
||||||
|
<input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" />
|
||||||
|
<input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
|
||||||
|
<?php wp_original_referer_field(true, 'previous'); ?>
|
||||||
|
<input type="hidden" name="noredir" value="1" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
try{document.post.name.focus();}catch(e){}
|
||||||
|
</script>
|
228
wp-admin/edit-link-categories.php
Normal file
|
@ -0,0 +1,228 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit Link Categories Administration Panel.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** WordPress Administration Bootstrap */
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
// Handle bulk actions
|
||||||
|
if ( isset($_GET['action']) && isset($_GET['delete']) ) {
|
||||||
|
check_admin_referer('bulk-link-categories');
|
||||||
|
$doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
if ( 'delete' == $doaction ) {
|
||||||
|
foreach( (array) $_GET['delete'] as $cat_ID ) {
|
||||||
|
$cat_name = get_term_field('name', $cat_ID, 'link_category');
|
||||||
|
$default_cat_id = get_option('default_link_category');
|
||||||
|
|
||||||
|
// Don't delete the default cats.
|
||||||
|
if ( $cat_ID == $default_cat_id )
|
||||||
|
wp_die(sprintf(__("Can’t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
|
||||||
|
|
||||||
|
wp_delete_term($cat_ID, 'link_category', array('default' => $default_cat_id));
|
||||||
|
}
|
||||||
|
|
||||||
|
$location = 'edit-link-categories.php';
|
||||||
|
if ( $referer = wp_get_referer() ) {
|
||||||
|
if ( false !== strpos($referer, 'edit-link-categories.php') )
|
||||||
|
$location = $referer;
|
||||||
|
}
|
||||||
|
|
||||||
|
$location = add_query_arg('message', 6, $location);
|
||||||
|
wp_redirect($location);
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
} elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
|
||||||
|
wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$title = __('Link Categories');
|
||||||
|
|
||||||
|
wp_enqueue_script('admin-categories');
|
||||||
|
if ( current_user_can('manage_categories') )
|
||||||
|
wp_enqueue_script('inline-edit-tax');
|
||||||
|
|
||||||
|
require_once ('admin-header.php');
|
||||||
|
|
||||||
|
$messages[1] = __('Category added.');
|
||||||
|
$messages[2] = __('Category deleted.');
|
||||||
|
$messages[3] = __('Category updated.');
|
||||||
|
$messages[4] = __('Category not added.');
|
||||||
|
$messages[5] = __('Category not updated.');
|
||||||
|
$messages[6] = __('Categories deleted.'); ?>
|
||||||
|
|
||||||
|
<div class="wrap nosubsub">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title );
|
||||||
|
if ( isset($_GET['s']) && $_GET['s'] )
|
||||||
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( stripslashes($_GET['s']) ) ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
|
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||||
|
endif; ?>
|
||||||
|
|
||||||
|
<form class="search-form" action="" method="get">
|
||||||
|
<p class="search-box">
|
||||||
|
<label class="screen-reader-text" for="link-category-search-input"><?php _e( 'Search Categories' ); ?>:</label>
|
||||||
|
<input type="text" id="link-category-search-input" name="s" value="<?php _admin_search_query(); ?>" />
|
||||||
|
<input type="submit" value="<?php esc_attr_e( 'Search Categories' ); ?>" class="button" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
<br class="clear" />
|
||||||
|
|
||||||
|
<div id="col-container">
|
||||||
|
|
||||||
|
<div id="col-right">
|
||||||
|
<div class="col-wrap">
|
||||||
|
<form id="posts-filter" action="" method="get">
|
||||||
|
<div class="tablenav">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
|
||||||
|
if ( empty($pagenum) )
|
||||||
|
$pagenum = 1;
|
||||||
|
if( ! isset( $catsperpage ) || $catsperpage < 0 )
|
||||||
|
$catsperpage = 20;
|
||||||
|
|
||||||
|
$page_links = paginate_links( array(
|
||||||
|
'base' => add_query_arg( 'pagenum', '%#%' ),
|
||||||
|
'format' => '',
|
||||||
|
'prev_text' => __('«'),
|
||||||
|
'next_text' => __('»'),
|
||||||
|
'total' => ceil(wp_count_terms('link_category') / $catsperpage),
|
||||||
|
'current' => $pagenum
|
||||||
|
));
|
||||||
|
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action">
|
||||||
|
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
||||||
|
<?php wp_nonce_field('bulk-link-categories'); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<table class="widefat fixed" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-link-categories'); ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-link-categories', false); ?>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<tbody id="the-list" class="list:link-cat">
|
||||||
|
<?php
|
||||||
|
$start = ($pagenum - 1) * $catsperpage;
|
||||||
|
$args = array('offset' => $start, 'number' => $catsperpage, 'hide_empty' => 0);
|
||||||
|
if ( !empty( $_GET['s'] ) )
|
||||||
|
$args['search'] = $_GET['s'];
|
||||||
|
|
||||||
|
$categories = get_terms( 'link_category', $args );
|
||||||
|
if ( $categories ) {
|
||||||
|
$output = '';
|
||||||
|
foreach ( $categories as $category ) {
|
||||||
|
$output .= link_cat_row($category);
|
||||||
|
}
|
||||||
|
echo $output;
|
||||||
|
unset($category);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
<?php
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action2">
|
||||||
|
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
<br class="clear" />
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="form-wrap">
|
||||||
|
<p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the links in that category. Instead, links that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), get_term_field('name', get_option('default_link_category'), 'link_category')) ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div><!-- /col-right -->
|
||||||
|
|
||||||
|
<div id="col-left">
|
||||||
|
<div class="col-wrap">
|
||||||
|
|
||||||
|
<?php if ( current_user_can('manage_categories') ) {
|
||||||
|
$category = (object) array(); $category->parent = 0; do_action('add_link_category_form_pre', $category); ?>
|
||||||
|
|
||||||
|
<div class="form-wrap">
|
||||||
|
<h3><?php _e('Add Link Category'); ?></h3>
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
<form name="addcat" id="addcat" class="add:the-list: validate" method="post" action="link-category.php">
|
||||||
|
<input type="hidden" name="action" value="addcat" />
|
||||||
|
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-link-category'); ?>
|
||||||
|
|
||||||
|
<div class="form-field form-required">
|
||||||
|
<label for="name"><?php _e('Link Category name') ?></label>
|
||||||
|
<input name="name" id="name" type="text" value="" size="40" aria-required="true" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-field">
|
||||||
|
<label for="slug"><?php _e('Link Category slug') ?></label>
|
||||||
|
<input name="slug" id="slug" type="text" value="" size="40" />
|
||||||
|
<p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-field">
|
||||||
|
<label for="description"><?php _e('Description (optional)') ?></label>
|
||||||
|
<textarea name="description" id="description" rows="5" cols="40"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="submit"><input type="submit" class="button" name="submit" value="<?php esc_attr_e('Add Category'); ?>" /></p>
|
||||||
|
<?php do_action('edit_link_category_form', $category); ?>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div><!-- /col-left -->
|
||||||
|
|
||||||
|
</div><!-- /col-container -->
|
||||||
|
</div><!-- /wrap -->
|
||||||
|
|
||||||
|
<?php inline_edit_term_row('edit-link-categories'); ?>
|
||||||
|
<?php include('admin-footer.php'); ?>
|
89
wp-admin/edit-link-category-form.php
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit link category form for inclusion in administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var object
|
||||||
|
*/
|
||||||
|
if ( ! isset( $category ) )
|
||||||
|
$category = (object) array();
|
||||||
|
|
||||||
|
if ( ! empty($cat_ID) ) {
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
$heading = '<h2>' . __('Edit Link Category') . '</h2>';
|
||||||
|
$submit_text = __('Update Category');
|
||||||
|
$form = '<form name="editcat" id="editcat" method="post" action="link-category.php" class="validate">';
|
||||||
|
$action = 'editedcat';
|
||||||
|
$nonce_action = 'update-link-category_' . $cat_ID;
|
||||||
|
do_action('edit_link_category_form_pre', $category);
|
||||||
|
} else {
|
||||||
|
$heading = '<h2>' . __('Add Link Category') . '</h2>';
|
||||||
|
$submit_text = __('Add Category');
|
||||||
|
$form = '<form name="addcat" id="addcat" class="add:the-list: validate" method="post" action="link-category.php">';
|
||||||
|
$action = 'addcat';
|
||||||
|
$nonce_action = 'add-link-category';
|
||||||
|
do_action('add_link_category_form_pre', $category);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
* @since 2.7
|
||||||
|
* @internal Used to prevent errors in page when no category is being edited.
|
||||||
|
*
|
||||||
|
* @param object $category
|
||||||
|
*/
|
||||||
|
function _fill_empty_link_category(&$category) {
|
||||||
|
if ( ! isset( $category->name ) )
|
||||||
|
$category->name = '';
|
||||||
|
|
||||||
|
if ( ! isset( $category->slug ) )
|
||||||
|
$category->slug = '';
|
||||||
|
|
||||||
|
if ( ! isset( $category->description ) )
|
||||||
|
$category->description = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
_fill_empty_link_category($category);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<?php echo $heading ?>
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
<?php echo $form ?>
|
||||||
|
<input type="hidden" name="action" value="<?php echo esc_attr($action) ?>" />
|
||||||
|
<input type="hidden" name="cat_ID" value="<?php echo esc_attr($category->term_id) ?>" />
|
||||||
|
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?>
|
||||||
|
<table class="form-table">
|
||||||
|
<tr class="form-field form-required">
|
||||||
|
<th scope="row" valign="top"><label for="name"><?php _e('Link Category name') ?></label></th>
|
||||||
|
<td><input name="name" id="name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th scope="row" valign="top"><label for="slug"><?php _e('Link Category slug') ?></label></th>
|
||||||
|
<td><input name="slug" id="slug" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
|
||||||
|
<?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th scope="row" valign="top"><label for="description"><?php _e('Description (optional)') ?></label></th>
|
||||||
|
<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
|
||||||
|
</tr>
|
||||||
|
<?php do_action('edit_link_category_form_fields', $category); ?>
|
||||||
|
</table>
|
||||||
|
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr($submit_text) ?>" /></p>
|
||||||
|
<?php do_action('edit_link_category_form', $category); ?>
|
||||||
|
</form>
|
||||||
|
</div>
|
422
wp-admin/edit-link-form.php
Normal file
|
@ -0,0 +1,422 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit links form for inclusion in administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
if ( ! empty($link_id) ) {
|
||||||
|
$heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
|
||||||
|
$submit_text = __('Update Link');
|
||||||
|
$form = '<form name="editlink" id="editlink" method="post" action="link.php">';
|
||||||
|
$nonce_action = 'update-bookmark_' . $link_id;
|
||||||
|
} else {
|
||||||
|
$heading = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
|
||||||
|
$submit_text = __('Add Link');
|
||||||
|
$form = '<form name="addlink" id="addlink" method="post" action="link.php">';
|
||||||
|
$nonce_action = 'add-bookmark';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display checked checkboxes attribute for xfn microformat options.
|
||||||
|
*
|
||||||
|
* @since 1.0.1
|
||||||
|
*
|
||||||
|
* @param string $class
|
||||||
|
* @param string $value
|
||||||
|
* @param mixed $deprecated Not used.
|
||||||
|
*/
|
||||||
|
function xfn_check($class, $value = '', $deprecated = '') {
|
||||||
|
global $link;
|
||||||
|
|
||||||
|
$link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
|
||||||
|
$rels = preg_split('/\s+/', $link_rel);
|
||||||
|
|
||||||
|
if ('' != $value && in_array($value, $rels) ) {
|
||||||
|
echo ' checked="checked"';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ('' == $value) {
|
||||||
|
if ('family' == $class && strpos($link_rel, 'child') === false && strpos($link_rel, 'parent') === false && strpos($link_rel, 'sibling') === false && strpos($link_rel, 'spouse') === false && strpos($link_rel, 'kin') === false) echo ' checked="checked"';
|
||||||
|
if ('friendship' == $class && strpos($link_rel, 'friend') === false && strpos($link_rel, 'acquaintance') === false && strpos($link_rel, 'contact') === false) echo ' checked="checked"';
|
||||||
|
if ('geographical' == $class && strpos($link_rel, 'co-resident') === false && strpos($link_rel, 'neighbor') === false) echo ' checked="checked"';
|
||||||
|
if ('identity' == $class && in_array('me', $rels) ) echo ' checked="checked"';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display link create form fields.
|
||||||
|
*
|
||||||
|
* @since 2.7.0
|
||||||
|
*
|
||||||
|
* @param object $link
|
||||||
|
*/
|
||||||
|
function link_submit_meta_box($link) {
|
||||||
|
?>
|
||||||
|
<div class="submitbox" id="submitlink">
|
||||||
|
|
||||||
|
<div id="minor-publishing">
|
||||||
|
|
||||||
|
<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?>
|
||||||
|
<div style="display:none;">
|
||||||
|
<input type="submit" name="save" value="<?php esc_attr_e('Save'); ?>" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="minor-publishing-actions">
|
||||||
|
<div id="preview-action">
|
||||||
|
<?php if ( !empty($link->link_id) ) { ?>
|
||||||
|
<a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank" tabindex="4"><?php _e('Visit Link'); ?></a>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="misc-publishing-actions">
|
||||||
|
<div class="misc-pub-section misc-pub-section-last">
|
||||||
|
<label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="major-publishing-actions">
|
||||||
|
<?php do_action('post_submitbox_start'); ?>
|
||||||
|
<div id="delete-action">
|
||||||
|
<?php
|
||||||
|
if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?>
|
||||||
|
<a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="publishing-action">
|
||||||
|
<?php if ( !empty($link->link_id) ) { ?>
|
||||||
|
<input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" />
|
||||||
|
<?php } else { ?>
|
||||||
|
<input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" />
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php do_action('submitlink_box'); ?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display link categories form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $link
|
||||||
|
*/
|
||||||
|
function link_categories_meta_box($link) { ?>
|
||||||
|
<ul id="category-tabs">
|
||||||
|
<li class="tabs"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
|
||||||
|
<li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div id="categories-all" class="tabs-panel">
|
||||||
|
<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
|
||||||
|
<?php
|
||||||
|
if ( isset($link->link_id) )
|
||||||
|
wp_link_category_checklist($link->link_id);
|
||||||
|
else
|
||||||
|
wp_link_category_checklist();
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="categories-pop" class="tabs-panel" style="display: none;">
|
||||||
|
<ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
|
||||||
|
<?php wp_popular_terms_checklist('link_category'); ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="category-adder" class="wp-hidden-children">
|
||||||
|
<h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
|
||||||
|
<p id="link-category-add" class="wp-hidden-child">
|
||||||
|
<label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
|
||||||
|
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
|
||||||
|
<input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php esc_attr_e( 'Add' ); ?>" />
|
||||||
|
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
|
||||||
|
<span id="category-ajax-response"></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display form fields for changing link target.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $link
|
||||||
|
*/
|
||||||
|
function link_target_meta_box($link) { ?>
|
||||||
|
<fieldset><legend class="screen-reader-text"><span><?php _e('Target') ?></span></legend>
|
||||||
|
<p><label for="link_target_blank" class="selectit">
|
||||||
|
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> />
|
||||||
|
<?php _e('<code>_blank</code> - new window or tab.'); ?></label></p>
|
||||||
|
<p><label for="link_target_top" class="selectit">
|
||||||
|
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo ( isset( $link->link_target ) && ($link->link_target == '_top') ? 'checked="checked"' : ''); ?> />
|
||||||
|
<?php _e('<code>_top</code> - current window or tab, with no frames.'); ?></label></p>
|
||||||
|
<p><label for="link_target_none" class="selectit">
|
||||||
|
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo ( isset( $link->link_target ) && ($link->link_target == '') ? 'checked="checked"' : ''); ?> />
|
||||||
|
<?php _e('<code>_none</code> - same window or tab.'); ?></label></p>
|
||||||
|
</fieldset>
|
||||||
|
<p><?php _e('Choose the target frame for your link.'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', 'link', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display xfn form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $link
|
||||||
|
*/
|
||||||
|
function link_xfn_meta_box($link) {
|
||||||
|
?>
|
||||||
|
<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 20%;" scope="row"><label for="link_rel"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('rel:') ?></label></th>
|
||||||
|
<td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo ( isset( $link->link_rel ) ? esc_attr($link->link_rel) : ''); ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<table cellpadding="3" cellspacing="5" class="form-table">
|
||||||
|
<tr>
|
||||||
|
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </th>
|
||||||
|
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </span></legend>
|
||||||
|
<label for="me">
|
||||||
|
<input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> />
|
||||||
|
<?php _e('another web address of mine') ?></label>
|
||||||
|
</fieldset></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </th>
|
||||||
|
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend>
|
||||||
|
<label for="contact">
|
||||||
|
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?></label>
|
||||||
|
<label for="acquaintance">
|
||||||
|
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label>
|
||||||
|
<label for="friend">
|
||||||
|
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friend') ?></label>
|
||||||
|
<label for="friendship">
|
||||||
|
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship', '', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label>
|
||||||
|
</fieldset></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </th>
|
||||||
|
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </span></legend>
|
||||||
|
<label for="met">
|
||||||
|
<input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('met') ?></label>
|
||||||
|
</fieldset></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </th>
|
||||||
|
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </span></legend>
|
||||||
|
<label for="co-worker">
|
||||||
|
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-worker') ?></label>
|
||||||
|
<label for="colleague">
|
||||||
|
<input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('colleague') ?></label>
|
||||||
|
</fieldset></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </th>
|
||||||
|
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend>
|
||||||
|
<label for="co-resident">
|
||||||
|
<input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-resident') ?></label>
|
||||||
|
<label for="neighbor">
|
||||||
|
<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check('geographical', 'neighbor', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('neighbor') ?></label>
|
||||||
|
<label for="geographical">
|
||||||
|
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical', '', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label>
|
||||||
|
</fieldset></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </th>
|
||||||
|
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend>
|
||||||
|
<label for="child">
|
||||||
|
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?></label>
|
||||||
|
<label for="kin">
|
||||||
|
<input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('kin') ?></label>
|
||||||
|
<label for="parent">
|
||||||
|
<input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('parent') ?></label>
|
||||||
|
<label for="sibling">
|
||||||
|
<input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check('family', 'sibling', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sibling') ?></label>
|
||||||
|
<label for="spouse">
|
||||||
|
<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check('family', 'spouse', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('spouse') ?></label>
|
||||||
|
<label for="family">
|
||||||
|
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family', '', 'radio'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label>
|
||||||
|
</fieldset></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </th>
|
||||||
|
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend>
|
||||||
|
<label for="muse">
|
||||||
|
<input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('muse') ?></label>
|
||||||
|
<label for="crush">
|
||||||
|
<input class="valinp" type="checkbox" name="romantic" value="crush" id="crush" <?php xfn_check('romantic', 'crush'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('crush') ?></label>
|
||||||
|
<label for="date">
|
||||||
|
<input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check('romantic', 'date'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('date') ?></label>
|
||||||
|
<label for="romantic">
|
||||||
|
<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> />
|
||||||
|
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sweetheart') ?></label>
|
||||||
|
</fieldset></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<p><?php _e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', 'link', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display advanced link options form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $link
|
||||||
|
*/
|
||||||
|
function link_advanced_meta_box($link) {
|
||||||
|
?>
|
||||||
|
<table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
|
||||||
|
<tr class="form-field">
|
||||||
|
<th valign="top" scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
|
||||||
|
<td><input type="text" name="link_image" class="code" id="link_image" size="50" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" style="width: 95%" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th valign="top" scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>
|
||||||
|
<td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th valign="top" scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>
|
||||||
|
<td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo ( isset( $link->link_notes ) ? $link->link_notes : ''); ?></textarea></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th valign="top" scope="row"><label for="link_rating"><?php _e('Rating') ?></label></th>
|
||||||
|
<td><select name="link_rating" id="link_rating" size="1">
|
||||||
|
<?php
|
||||||
|
for ($r = 0; $r < 10; $r++) {
|
||||||
|
echo(' <option value="'. esc_attr($r) .'" ');
|
||||||
|
if ( isset($link->link_rating) && $link->link_rating == $r)
|
||||||
|
echo 'selected="selected"';
|
||||||
|
echo('>'.$r.'</option>');
|
||||||
|
}
|
||||||
|
?></select> <?php _e('(Leave at 0 for no rating.)') ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core');
|
||||||
|
|
||||||
|
do_action('do_meta_boxes', 'link', 'normal', $link);
|
||||||
|
do_action('do_meta_boxes', 'link', 'advanced', $link);
|
||||||
|
do_action('do_meta_boxes', 'link', 'side', $link);
|
||||||
|
|
||||||
|
require_once ('admin-header.php');
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title ); ?></h2>
|
||||||
|
|
||||||
|
<?php if ( isset( $_GET['added'] ) ) : ?>
|
||||||
|
<div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( !empty($form) )
|
||||||
|
echo $form;
|
||||||
|
if ( !empty($link_added) )
|
||||||
|
echo $link_added;
|
||||||
|
|
||||||
|
wp_nonce_field( $nonce_action );
|
||||||
|
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
||||||
|
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
||||||
|
|
||||||
|
<div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
|
||||||
|
|
||||||
|
<div id="side-info-column" class="inner-sidebar">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
do_action('submitlink_box');
|
||||||
|
$side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
|
||||||
|
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="post-body">
|
||||||
|
<div id="post-body-content">
|
||||||
|
<div id="namediv" class="stuffbox">
|
||||||
|
<h3><label for="link_name"><?php _e('Name') ?></label></h3>
|
||||||
|
<div class="inside">
|
||||||
|
<input type="text" name="link_name" size="30" tabindex="1" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" />
|
||||||
|
<p><?php _e('Example: Nifty blogging software'); ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="addressdiv" class="stuffbox">
|
||||||
|
<h3><label for="link_url"><?php _e('Web Address') ?></label></h3>
|
||||||
|
<div class="inside">
|
||||||
|
<input type="text" name="link_url" size="30" class="code" tabindex="1" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" />
|
||||||
|
<p><?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="descriptiondiv" class="stuffbox">
|
||||||
|
<h3><label for="link_description"><?php _e('Description') ?></label></h3>
|
||||||
|
<div class="inside">
|
||||||
|
<input type="text" name="link_description" size="30" tabindex="1" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" />
|
||||||
|
<p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
do_meta_boxes('link', 'normal', $link);
|
||||||
|
|
||||||
|
do_meta_boxes('link', 'advanced', $link);
|
||||||
|
|
||||||
|
if ( $link_id ) : ?>
|
||||||
|
<input type="hidden" name="action" value="save" />
|
||||||
|
<input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" />
|
||||||
|
<input type="hidden" name="order_by" value="<?php echo esc_attr($order_by); ?>" />
|
||||||
|
<input type="hidden" name="cat_id" value="<?php echo (int) $cat_id ?>" />
|
||||||
|
<?php else: ?>
|
||||||
|
<input type="hidden" name="action" value="add" />
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
499
wp-admin/edit-page-form.php
Normal file
|
@ -0,0 +1,499 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit page form for inclusion in the administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Post ID global.
|
||||||
|
* @name $post_ID
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
if ( ! isset( $post_ID ) )
|
||||||
|
$post_ID = 0;
|
||||||
|
if ( ! isset( $temp_ID ) )
|
||||||
|
$temp_ID = 0;
|
||||||
|
|
||||||
|
if ( isset($_GET['message']) )
|
||||||
|
$_GET['message'] = absint( $_GET['message'] );
|
||||||
|
$messages[1] = sprintf(__('Page updated. <a href="%s">View page</a>'), get_permalink($post_ID));
|
||||||
|
$messages[2] = __('Custom field updated.');
|
||||||
|
$messages[3] = __('Custom field deleted.');
|
||||||
|
$messages[5] = sprintf(__('Page published. <a href="%s">View page</a>'), get_permalink($post_ID));
|
||||||
|
$messages[6] = sprintf(__('Page submitted. <a href="%s">Preview page</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) );
|
||||||
|
|
||||||
|
if ( isset($_GET['revision']) )
|
||||||
|
$messages[5] = sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
|
||||||
|
|
||||||
|
$notice = false;
|
||||||
|
$notices[1] = __( 'There is an autosave of this page that is more recent than the version below. <a href="%s">View the autosave</a>.' );
|
||||||
|
|
||||||
|
if ( 0 == $post_ID) {
|
||||||
|
$form_action = 'post';
|
||||||
|
$nonce_action = 'add-page';
|
||||||
|
$temp_ID = -1 * time(); // don't change this formula without looking at wp_write_post()
|
||||||
|
$form_extra = "<input type='hidden' id='post_ID' name='temp_ID' value='$temp_ID' />";
|
||||||
|
} else {
|
||||||
|
$post_ID = (int) $post_ID;
|
||||||
|
$form_action = 'editpost';
|
||||||
|
$nonce_action = 'update-page_' . $post_ID;
|
||||||
|
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
|
||||||
|
$autosave = wp_get_post_autosave( $post_ID );
|
||||||
|
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) )
|
||||||
|
$notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
$temp_ID = (int) $temp_ID;
|
||||||
|
$user_ID = (int) $user_ID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display submit form fields.
|
||||||
|
*
|
||||||
|
* @since 2.7.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_submit_meta_box($post) {
|
||||||
|
global $action;
|
||||||
|
|
||||||
|
$can_publish = current_user_can('publish_pages');
|
||||||
|
?>
|
||||||
|
<div class="submitbox" id="submitpage">
|
||||||
|
|
||||||
|
<div id="minor-publishing">
|
||||||
|
|
||||||
|
<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?>
|
||||||
|
<div style="display:none;">
|
||||||
|
<input type="submit" name="save" value="<?php esc_attr_e('Save'); ?>" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="minor-publishing-actions">
|
||||||
|
<div id="save-action">
|
||||||
|
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
||||||
|
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
|
<?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?>
|
||||||
|
<input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="preview-action">
|
||||||
|
<?php
|
||||||
|
if ( 'publish' == $post->post_status ) {
|
||||||
|
$preview_link = esc_url(get_permalink($post->ID));
|
||||||
|
$preview_button = __('Preview Changes');
|
||||||
|
} else {
|
||||||
|
$preview_link = esc_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID))));
|
||||||
|
$preview_button = __('Preview');
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php echo $preview_button; ?></a>
|
||||||
|
<input type="hidden" name="wp-preview" id="wp-preview" value="" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div><?php // /minor-publishing-actions ?>
|
||||||
|
|
||||||
|
<div id="misc-publishing-actions">
|
||||||
|
|
||||||
|
<div class="misc-pub-section<?php if ( !$can_publish ) { echo ' misc-pub-section-last'; } ?>"><label for="post_status"><?php _e('Status:') ?></label>
|
||||||
|
<span id="post-status-display">
|
||||||
|
<?php
|
||||||
|
switch ( $post->post_status ) {
|
||||||
|
case 'private':
|
||||||
|
_e('Privately Published');
|
||||||
|
break;
|
||||||
|
case 'publish':
|
||||||
|
_e('Published');
|
||||||
|
break;
|
||||||
|
case 'future':
|
||||||
|
_e('Scheduled');
|
||||||
|
break;
|
||||||
|
case 'pending':
|
||||||
|
_e('Pending Review');
|
||||||
|
break;
|
||||||
|
case 'draft':
|
||||||
|
_e('Draft');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
|
<?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?>
|
||||||
|
<a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
|
||||||
|
|
||||||
|
<div id="post-status-select" class="hide-if-js">
|
||||||
|
<input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr($post->post_status); ?>" />
|
||||||
|
<select name='post_status' id='post_status' tabindex='4'>
|
||||||
|
<?php if ( 'publish' == $post->post_status ) : ?>
|
||||||
|
<option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e('Published') ?></option>
|
||||||
|
<?php elseif ( 'private' == $post->post_status ) : ?>
|
||||||
|
<option<?php selected( $post->post_status, 'private' ); ?> value='publish'><?php _e('Privately Published') ?></option>
|
||||||
|
<?php elseif ( 'future' == $post->post_status ) : ?>
|
||||||
|
<option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Scheduled') ?></option>
|
||||||
|
<?php endif; ?>
|
||||||
|
<option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
|
||||||
|
<option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Draft') ?></option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a>
|
||||||
|
<a href="#post_status" class="cancel-post-status hide-if-no-js"><?php _e('Cancel'); ?></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</div><?php // /misc-pub-section ?>
|
||||||
|
|
||||||
|
<div class="misc-pub-section " id="visibility">
|
||||||
|
<?php _e('Visibility:'); ?> <span id="post-visibility-display"><?php
|
||||||
|
|
||||||
|
if ( 'private' == $post->post_status ) {
|
||||||
|
$post->post_password = '';
|
||||||
|
$visibility = 'private';
|
||||||
|
$visibility_trans = __('Private');
|
||||||
|
} elseif ( !empty( $post->post_password ) ) {
|
||||||
|
$visibility = 'password';
|
||||||
|
$visibility_trans = __('Password protected');
|
||||||
|
} else {
|
||||||
|
$visibility = 'public';
|
||||||
|
$visibility_trans = __('Public');
|
||||||
|
}
|
||||||
|
|
||||||
|
echo esc_html( $visibility_trans ); ?></span>
|
||||||
|
<?php if ( $can_publish ) { ?>
|
||||||
|
<a href="#visibility" class="edit-visibility hide-if-no-js"><?php _e('Edit'); ?></a>
|
||||||
|
|
||||||
|
<div id="post-visibility-select" class="hide-if-js">
|
||||||
|
<input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr($post->post_password); ?>" />
|
||||||
|
<input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo esc_attr( $visibility ); ?>" />
|
||||||
|
|
||||||
|
<input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _e('Public'); ?></label><br />
|
||||||
|
<input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br />
|
||||||
|
<span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>" /><br /></span>
|
||||||
|
<input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br />
|
||||||
|
|
||||||
|
<p><a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a>
|
||||||
|
<a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a></p>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</div><?php // /misc-pub-section ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// translators: Publish box date formt, see http://php.net/date
|
||||||
|
$datef = __( 'M j, Y @ G:i' );
|
||||||
|
if ( 0 != $post->ID ) {
|
||||||
|
if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date
|
||||||
|
$stamp = __('Scheduled for: <b>%1$s</b>');
|
||||||
|
} else if ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
|
||||||
|
$stamp = __('Published on: <b>%1$s</b>');
|
||||||
|
} else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified
|
||||||
|
$stamp = __('Publish <b>immediately</b>');
|
||||||
|
} else if ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // draft, 1 or more saves, future date specified
|
||||||
|
$stamp = __('Schedule for: <b>%1$s</b>');
|
||||||
|
} else { // draft, 1 or more saves, date specified
|
||||||
|
$stamp = __('Publish on: <b>%1$s</b>');
|
||||||
|
}
|
||||||
|
$date = date_i18n( $datef, strtotime( $post->post_date ) );
|
||||||
|
} else { // draft (no saves, and thus no date specified)
|
||||||
|
$stamp = __('Publish <b>immediately</b>');
|
||||||
|
$date = date_i18n( $datef, strtotime( current_time('mysql') ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
|
||||||
|
<div class="misc-pub-section curtime misc-pub-section-last">
|
||||||
|
<span id="timestamp"><?php printf($stamp, $date); ?></span>
|
||||||
|
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
|
||||||
|
<div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div>
|
||||||
|
</div><?php // /misc-pub-section
|
||||||
|
endif; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="major-publishing-actions">
|
||||||
|
<?php do_action('post_submitbox_start'); ?>
|
||||||
|
<div id="delete-action">
|
||||||
|
<?php
|
||||||
|
if ( ( 'edit' == $action ) && current_user_can('delete_page', $post->ID) ) { ?>
|
||||||
|
<a class="submitdelete deletion" href="<?php echo wp_nonce_url("page.php?action=delete&post=$post->ID", 'delete-page_' . $post->ID); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="publishing-action">
|
||||||
|
<?php
|
||||||
|
if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) { ?>
|
||||||
|
<?php
|
||||||
|
if ( $can_publish ) :
|
||||||
|
if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
|
||||||
|
<input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Schedule') ?>" />
|
||||||
|
<?php else : ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
|
||||||
|
<input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Publish') ?>" />
|
||||||
|
<?php endif;
|
||||||
|
else : ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" />
|
||||||
|
<input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Submit for Review') ?>" />
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
} else { ?>
|
||||||
|
<input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update Page') ?>" />
|
||||||
|
<input name="save" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="<?php esc_attr_e('Update Page') ?>" />
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('pagesubmitdiv', __('Publish'), 'page_submit_meta_box', 'page', 'side', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display page password form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_password_meta_box($post){
|
||||||
|
?>
|
||||||
|
<p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p>
|
||||||
|
<h4><?php _e( 'Page Password' ); ?></h4>
|
||||||
|
<p><label class="screen-reader-text" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php the_post_password(); ?>" /></p>
|
||||||
|
<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
// add_meta_box('pagepassworddiv', __('Privacy Options'), 'page_password_meta_box', 'page', 'side', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display page attributes form fields.
|
||||||
|
*
|
||||||
|
* @since 2.7.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_attributes_meta_box($post){
|
||||||
|
?>
|
||||||
|
<h5><?php _e('Parent') ?></h5>
|
||||||
|
<label class="screen-reader-text" for="parent_id"><?php _e('Page Parent') ?></label>
|
||||||
|
<?php wp_dropdown_pages(array('exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title')); ?>
|
||||||
|
<p><?php _e('You can arrange your pages in hierarchies, for example you could have an “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how deeply nested you can make pages.'); ?></p>
|
||||||
|
<?php
|
||||||
|
if ( 0 != count( get_page_templates() ) ) { ?>
|
||||||
|
<h5><?php _e('Template') ?></h5>
|
||||||
|
<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
|
||||||
|
<option value='default'><?php _e('Default Template'); ?></option>
|
||||||
|
<?php page_template_dropdown($post->page_template); ?>
|
||||||
|
</select>
|
||||||
|
<p><?php _e('Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them above.'); ?></p>
|
||||||
|
<?php
|
||||||
|
} ?>
|
||||||
|
<h5><?php _e('Order') ?></h5>
|
||||||
|
<p><label class="screen-reader-text" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p>
|
||||||
|
<p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it’ll be better in future releases.)'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', 'page', 'side', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display custom field for page form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_custom_meta_box($post){
|
||||||
|
?>
|
||||||
|
<div id="postcustomstuff">
|
||||||
|
<?php
|
||||||
|
$metadata = has_meta($post->ID);
|
||||||
|
list_meta($metadata);
|
||||||
|
meta_form(); ?>
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
</div>
|
||||||
|
<p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('pagecustomdiv', __('Custom Fields'), 'page_custom_meta_box', 'page', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display comments status form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_comments_status_meta_box($post){
|
||||||
|
?>
|
||||||
|
<input name="advanced_view" type="hidden" value="1" />
|
||||||
|
<p><label for="comment_status" class="selectit">
|
||||||
|
<input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
|
||||||
|
<?php _e('Allow Comments') ?></label></p>
|
||||||
|
<p><label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label></p>
|
||||||
|
<p><?php _e('These settings apply to this page only. “Pings” are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('pagecommentstatusdiv', __('Discussion'), 'page_comments_status_meta_box', 'page', 'normal', 'core');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display page slug form fields.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_slug_meta_box($post){
|
||||||
|
?>
|
||||||
|
<label class="screen-reader-text" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $post->post_name ); ?>" />
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'normal', 'core');
|
||||||
|
|
||||||
|
$authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
|
||||||
|
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
||||||
|
$authors[] = $post->post_author;
|
||||||
|
if ( $authors && count( $authors ) > 1 ) {
|
||||||
|
/**
|
||||||
|
* Display page author form fields, when more than one author exists.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_author_meta_box($post){
|
||||||
|
global $current_user, $user_ID;
|
||||||
|
$authors = get_editable_user_ids( $current_user->id, true, 'page' ); // TODO: ROLE SYSTEM
|
||||||
|
if ( $post->post_author && !in_array($post->post_author, $authors) )
|
||||||
|
$authors[] = $post->post_author;
|
||||||
|
?>
|
||||||
|
<label class="screen-reader-text" for="post_author_override"><?php _e('Page Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_meta_box('pageauthordiv', __('Page Author'), 'page_author_meta_box', 'page', 'normal', 'core');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) :
|
||||||
|
/**
|
||||||
|
* Display list of page revisions.
|
||||||
|
*
|
||||||
|
* @since 2.6.0
|
||||||
|
*
|
||||||
|
* @param object $post
|
||||||
|
*/
|
||||||
|
function page_revisions_meta_box($post) {
|
||||||
|
wp_list_post_revisions();
|
||||||
|
}
|
||||||
|
add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', 'normal', 'core');
|
||||||
|
endif;
|
||||||
|
|
||||||
|
do_action('do_meta_boxes', 'page', 'normal', $post);
|
||||||
|
do_action('do_meta_boxes', 'page', 'advanced', $post);
|
||||||
|
do_action('do_meta_boxes', 'page', 'side', $post);
|
||||||
|
|
||||||
|
require_once('admin-header.php');
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title ); ?></h2>
|
||||||
|
|
||||||
|
<form name="post" action="page.php" method="post" id="post">
|
||||||
|
<?php if ( $notice ) : ?>
|
||||||
|
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (isset($_GET['message'])) : ?>
|
||||||
|
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
wp_nonce_field($nonce_action);
|
||||||
|
|
||||||
|
if (isset($mode) && 'bookmarklet' == $mode)
|
||||||
|
echo '<input type="hidden" name="mode" value="bookmarklet" />';
|
||||||
|
?>
|
||||||
|
<input type="hidden" id="user-id" name="user_ID" value="<?php echo $user_ID ?>" />
|
||||||
|
<input type="hidden" id="hiddenaction" name="action" value='<?php echo esc_attr($form_action) ?>' />
|
||||||
|
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr($form_action) ?>" />
|
||||||
|
<input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
|
||||||
|
<?php echo $form_extra ?>
|
||||||
|
<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr($post->post_type) ?>" />
|
||||||
|
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr($post->post_status) ?>" />
|
||||||
|
<input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
|
||||||
|
<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
|
||||||
|
|
||||||
|
<div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
|
||||||
|
|
||||||
|
<div id="side-info-column" class="inner-sidebar">
|
||||||
|
<?php
|
||||||
|
do_action('submitpage_box');
|
||||||
|
$side_meta_boxes = do_meta_boxes('page', 'side', $post); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="post-body">
|
||||||
|
<div id="post-body-content">
|
||||||
|
<div id="titlediv">
|
||||||
|
<div id="titlewrap">
|
||||||
|
<label class="screen-reader-text" for="title"><?php _e('Title') ?></label>
|
||||||
|
<input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
|
||||||
|
</div>
|
||||||
|
<div class="inside">
|
||||||
|
<?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>
|
||||||
|
<div id="edit-slug-box">
|
||||||
|
<?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :
|
||||||
|
echo $sample_permalink_html;
|
||||||
|
endif; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
|
||||||
|
|
||||||
|
<?php the_editor($post->post_content); ?>
|
||||||
|
<table id="post-status-info" cellspacing="0"><tbody><tr>
|
||||||
|
<td id="wp-word-count"></td>
|
||||||
|
<td class="autosave-info">
|
||||||
|
<span id="autosave"> </span>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ($post_ID) {
|
||||||
|
if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {
|
||||||
|
$last_user = get_userdata($last_id);
|
||||||
|
printf(__('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
|
||||||
|
} else {
|
||||||
|
printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
|
</tr></tbody></table>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
wp_nonce_field( 'autosave', 'autosavenonce', false );
|
||||||
|
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
|
||||||
|
wp_nonce_field( 'getpermalink', 'getpermalinknonce', false );
|
||||||
|
wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
|
||||||
|
wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
do_meta_boxes('page', 'normal', $post);
|
||||||
|
do_action('edit_page_form');
|
||||||
|
do_meta_boxes('page', 'advanced', $post);
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
try{document.post.title.focus();}catch(e){}
|
||||||
|
</script>
|
324
wp-admin/edit-pages.php
Normal file
|
@ -0,0 +1,324 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit Pages Administration Panel.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** WordPress Administration Bootstrap */
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_pages') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
// Handle bulk actions
|
||||||
|
if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2'] ) ) {
|
||||||
|
$doaction = ( -1 != $_GET['action'] ) ? $_GET['action'] : $_GET['action2'];
|
||||||
|
|
||||||
|
switch ( $doaction ) {
|
||||||
|
case 'delete':
|
||||||
|
if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && (isset($_GET['doaction']) || isset($_GET['doaction2'])) ) {
|
||||||
|
check_admin_referer('bulk-pages');
|
||||||
|
$deleted = 0;
|
||||||
|
foreach( (array) $_GET['post'] as $post_id_del ) {
|
||||||
|
$post_del = & get_post($post_id_del);
|
||||||
|
|
||||||
|
if ( !current_user_can('delete_page', $post_id_del) )
|
||||||
|
wp_die( __('You are not allowed to delete this page.') );
|
||||||
|
|
||||||
|
if ( $post_del->post_type == 'attachment' ) {
|
||||||
|
if ( ! wp_delete_attachment($post_id_del) )
|
||||||
|
wp_die( __('Error in deleting...') );
|
||||||
|
} else {
|
||||||
|
if ( !wp_delete_post($post_id_del) )
|
||||||
|
wp_die( __('Error in deleting...') );
|
||||||
|
}
|
||||||
|
$deleted++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'edit':
|
||||||
|
if ( isset($_GET['post']) && isset($_GET['bulk_edit']) ) {
|
||||||
|
check_admin_referer('bulk-pages');
|
||||||
|
|
||||||
|
if ( -1 == $_GET['_status'] ) {
|
||||||
|
$_GET['post_status'] = null;
|
||||||
|
unset($_GET['_status'], $_GET['post_status']);
|
||||||
|
} else {
|
||||||
|
$_GET['post_status'] = $_GET['_status'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$done = bulk_edit_posts($_GET);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sendback = wp_get_referer();
|
||||||
|
if (strpos($sendback, 'page.php') !== false) $sendback = admin_url('page-new.php');
|
||||||
|
elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
|
||||||
|
if ( isset($done) ) {
|
||||||
|
$done['updated'] = count( $done['updated'] );
|
||||||
|
$done['skipped'] = count( $done['skipped'] );
|
||||||
|
$done['locked'] = count( $done['locked'] );
|
||||||
|
$sendback = add_query_arg( $done, $sendback );
|
||||||
|
}
|
||||||
|
if ( isset($deleted) )
|
||||||
|
$sendback = add_query_arg('deleted', $deleted, $sendback);
|
||||||
|
wp_redirect($sendback);
|
||||||
|
exit();
|
||||||
|
} elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
|
||||||
|
wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( empty($title) )
|
||||||
|
$title = __('Edit Pages');
|
||||||
|
$parent_file = 'edit-pages.php';
|
||||||
|
wp_enqueue_script('inline-edit-post');
|
||||||
|
|
||||||
|
$post_stati = array( // array( adj, noun )
|
||||||
|
'publish' => array(_x('Published', 'page'), __('Published pages'), _nx_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>', 'page')),
|
||||||
|
'future' => array(_x('Scheduled', 'page'), __('Scheduled pages'), _nx_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>', 'page')),
|
||||||
|
'pending' => array(_x('Pending Review', 'page'), __('Pending pages'), _nx_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>', 'page')),
|
||||||
|
'draft' => array(_x('Draft', 'page'), _x('Drafts', 'manage posts header'), _nx_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>', 'page')),
|
||||||
|
'private' => array(_x('Private', 'page'), __('Private pages'), _nx_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', 'page'))
|
||||||
|
);
|
||||||
|
|
||||||
|
$post_stati = apply_filters('page_stati', $post_stati);
|
||||||
|
|
||||||
|
$query = array('post_type' => 'page', 'orderby' => 'menu_order title',
|
||||||
|
'posts_per_page' => -1, 'posts_per_archive_page' => -1, 'order' => 'asc');
|
||||||
|
|
||||||
|
$post_status_label = __('Pages');
|
||||||
|
if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) {
|
||||||
|
$post_status_label = $post_stati[$_GET['post_status']][1];
|
||||||
|
$query['post_status'] = $_GET['post_status'];
|
||||||
|
$query['perm'] = 'readable';
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = apply_filters('manage_pages_query', $query);
|
||||||
|
wp($query);
|
||||||
|
|
||||||
|
if ( is_singular() ) {
|
||||||
|
wp_enqueue_script( 'admin-comments' );
|
||||||
|
enqueue_comment_hotkeys_js();
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once('admin-header.php'); ?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title );
|
||||||
|
if ( isset($_GET['s']) && $_GET['s'] )
|
||||||
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( get_search_query() ) ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) ) { ?>
|
||||||
|
<div id="message" class="updated fade"><p>
|
||||||
|
<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
|
||||||
|
printf( _n( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
|
||||||
|
unset($_GET['updated']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset($_GET['skipped']) && (int) $_GET['skipped'] ) {
|
||||||
|
printf( _n( '%s page not updated, invalid parent page specified.', '%s pages not updated, invalid parent page specified.', $_GET['skipped'] ), number_format_i18n( $_GET['skipped'] ) );
|
||||||
|
unset($_GET['skipped']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset($_GET['locked']) && (int) $_GET['locked'] ) {
|
||||||
|
printf( _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['skipped'] ) );
|
||||||
|
unset($_GET['locked']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) {
|
||||||
|
printf( _n( 'Page deleted.', '%s pages deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) );
|
||||||
|
unset($_GET['deleted']);
|
||||||
|
}
|
||||||
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated', 'deleted'), $_SERVER['REQUEST_URI'] );
|
||||||
|
?>
|
||||||
|
</p></div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
||||||
|
<div id="message" class="updated fade"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit page'); ?></a></p></div>
|
||||||
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
|
||||||
|
endif; ?>
|
||||||
|
|
||||||
|
<form id="posts-filter" action="" method="get">
|
||||||
|
<ul class="subsubsub">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$avail_post_stati = get_available_post_statuses('page');
|
||||||
|
if ( empty($locked_post_status) ) :
|
||||||
|
$status_links = array();
|
||||||
|
$num_posts = wp_count_posts('page', 'readable');
|
||||||
|
$total_posts = array_sum( (array) $num_posts );
|
||||||
|
$class = empty($_GET['post_status']) ? ' class="current"' : '';
|
||||||
|
$status_links[] = "<li><a href='edit-pages.php'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'pages' ), number_format_i18n( $total_posts ) ) . '</a>';
|
||||||
|
foreach ( $post_stati as $status => $label ) {
|
||||||
|
$class = '';
|
||||||
|
|
||||||
|
if ( !in_array($status, $avail_post_stati) )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )
|
||||||
|
$class = ' class="current"';
|
||||||
|
|
||||||
|
$status_links[] = "<li><a href='edit-pages.php?post_status=$status'$class>" . sprintf( _nx( $label[2][0], $label[2][1], $num_posts->$status, $label[2][2] ), number_format_i18n( $num_posts->$status ) ) . '</a>';
|
||||||
|
}
|
||||||
|
echo implode( " |</li>\n", $status_links ) . '</li>';
|
||||||
|
unset($status_links);
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p class="search-box">
|
||||||
|
<label class="screen-reader-text" for="page-search-input"><?php _e( 'Search Pages' ); ?>:</label>
|
||||||
|
<input type="text" id="page-search-input" name="s" value="<?php _admin_search_query(); ?>" />
|
||||||
|
<input type="submit" value="<?php esc_attr_e( 'Search Pages' ); ?>" class="button" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['post_status'] ) ) : ?>
|
||||||
|
<input type="hidden" name="post_status" value="<?php echo esc_attr($_GET['post_status']) ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($posts) { ?>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
|
||||||
|
if ( empty($pagenum) )
|
||||||
|
$pagenum = 1;
|
||||||
|
$per_page = get_user_option('edit_pages_per_page');
|
||||||
|
if ( empty( $per_page ) || $per_page < 0 )
|
||||||
|
$per_page = 20;
|
||||||
|
|
||||||
|
$num_pages = ceil($wp_query->post_count / $per_page);
|
||||||
|
$page_links = paginate_links( array(
|
||||||
|
'base' => add_query_arg( 'pagenum', '%#%' ),
|
||||||
|
'format' => '',
|
||||||
|
'prev_text' => __('«'),
|
||||||
|
'next_text' => __('»'),
|
||||||
|
'total' => $num_pages,
|
||||||
|
'current' => $pagenum
|
||||||
|
));
|
||||||
|
|
||||||
|
if ( $page_links ) : ?>
|
||||||
|
<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
||||||
|
number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
|
||||||
|
number_format_i18n( min( $pagenum * $per_page, $wp_query->post_count ) ),
|
||||||
|
number_format_i18n( $wp_query->post_count ),
|
||||||
|
$page_links
|
||||||
|
); echo $page_links_text; ?></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action">
|
||||||
|
<option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="edit"><?php _e('Edit'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
||||||
|
<?php wp_nonce_field('bulk-pages'); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<table class="widefat page fixed" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-pages'); ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-pages', false); ?>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<?php page_rows($posts, $pagenum, $per_page); ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
<?php
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links_text</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action2">
|
||||||
|
<option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="edit"><?php _e('Edit'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php } else { ?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<p><?php _e('No pages found.') ?></p>
|
||||||
|
<?php
|
||||||
|
} // end if ($posts)
|
||||||
|
?>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?php inline_edit_row( 'page' ) ?>
|
||||||
|
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if ( 1 == count($posts) && is_singular() ) :
|
||||||
|
|
||||||
|
$comments = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $id) );
|
||||||
|
if ( $comments ) :
|
||||||
|
// Make sure comments, post, and post_author are cached
|
||||||
|
update_comment_cache($comments);
|
||||||
|
$post = get_post($id);
|
||||||
|
$authordata = get_userdata($post->post_author);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
|
||||||
|
<table class="widefat" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col" class="column-comment">
|
||||||
|
<?php /* translators: column name */ echo _x('Comment', 'column name') ?>
|
||||||
|
</th>
|
||||||
|
<th scope="col" class="column-author"><?php _e('Author') ?></th>
|
||||||
|
<th scope="col" class="column-date"><?php _e('Submitted') ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="the-comment-list" class="list:comment">
|
||||||
|
<?php
|
||||||
|
foreach ($comments as $comment)
|
||||||
|
_wp_comment_row( $comment->comment_ID, 'single', false, false );
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
wp_comment_reply();
|
||||||
|
endif; // comments
|
||||||
|
endif; // posts;
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
include('admin-footer.php');
|
29
wp-admin/edit-post-rows.php
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit posts rows table for inclusion in administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
?>
|
||||||
|
<table class="widefat post fixed" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit'); ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit', false); ?>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<?php post_rows(); ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
54
wp-admin/edit-tag-form.php
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit tag form for inclusion in administration panels.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
// don't load directly
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
|
||||||
|
|
||||||
|
if ( empty($tag_ID) ) { ?>
|
||||||
|
<div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
|
||||||
|
<?php
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
do_action('edit_tag_form_pre', $tag); ?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php _e('Edit Tag'); ?></h2>
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">
|
||||||
|
<input type="hidden" name="action" value="editedtag" />
|
||||||
|
<input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" />
|
||||||
|
<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" />
|
||||||
|
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
|
||||||
|
<table class="form-table">
|
||||||
|
<tr class="form-field form-required">
|
||||||
|
<th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th>
|
||||||
|
<td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />
|
||||||
|
<p class="description"><?php _e('The name is how the tag appears on your site.'); ?></p></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
|
||||||
|
<td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
|
||||||
|
<p class="description"><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
|
||||||
|
</tr>
|
||||||
|
<tr class="form-field">
|
||||||
|
<th scope="row" valign="top"><label for="description"><?php _e('Description') ?></label></th>
|
||||||
|
<td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo esc_html($tag->description); ?></textarea><br />
|
||||||
|
<span class="description"><?php _e('The description is not prominent by default, however some themes may show it.'); ?></span></td>
|
||||||
|
</tr>
|
||||||
|
<?php do_action('edit_tag_form_fields', $tag); ?>
|
||||||
|
</table>
|
||||||
|
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p>
|
||||||
|
<?php do_action('edit_tag_form', $tag); ?>
|
||||||
|
</form>
|
||||||
|
</div>
|
320
wp-admin/edit-tags.php
Normal file
|
@ -0,0 +1,320 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit Tags Administration Panel.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** WordPress Administration Bootstrap */
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
$title = __('Tags');
|
||||||
|
|
||||||
|
wp_reset_vars( array('action', 'tag', 'taxonomy') );
|
||||||
|
|
||||||
|
if ( empty($taxonomy) )
|
||||||
|
$taxonomy = 'post_tag';
|
||||||
|
|
||||||
|
if ( !is_taxonomy($taxonomy) )
|
||||||
|
wp_die(__('Invalid taxonomy'));
|
||||||
|
|
||||||
|
$parent_file = 'edit.php';
|
||||||
|
$submenu_file = "edit-tags.php?taxonomy=$taxonomy";
|
||||||
|
|
||||||
|
if ( isset( $_GET['action'] ) && isset($_GET['delete_tags']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
|
||||||
|
$action = 'bulk-delete';
|
||||||
|
|
||||||
|
switch($action) {
|
||||||
|
|
||||||
|
case 'addtag':
|
||||||
|
|
||||||
|
check_admin_referer('add-tag');
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
$ret = wp_insert_term($_POST['name'], $taxonomy, $_POST);
|
||||||
|
if ( $ret && !is_wp_error( $ret ) ) {
|
||||||
|
wp_redirect('edit-tags.php?message=1#addtag');
|
||||||
|
} else {
|
||||||
|
wp_redirect('edit-tags.php?message=4#addtag');
|
||||||
|
}
|
||||||
|
exit;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'delete':
|
||||||
|
$tag_ID = (int) $_GET['tag_ID'];
|
||||||
|
check_admin_referer('delete-tag_' . $tag_ID);
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
wp_delete_term( $tag_ID, $taxonomy);
|
||||||
|
|
||||||
|
$location = 'edit-tags.php';
|
||||||
|
if ( $referer = wp_get_referer() ) {
|
||||||
|
if ( false !== strpos($referer, 'edit-tags.php') )
|
||||||
|
$location = $referer;
|
||||||
|
}
|
||||||
|
|
||||||
|
$location = add_query_arg('message', 2, $location);
|
||||||
|
wp_redirect($location);
|
||||||
|
exit;
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'bulk-delete':
|
||||||
|
check_admin_referer('bulk-tags');
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
$tags = $_GET['delete_tags'];
|
||||||
|
foreach( (array) $tags as $tag_ID ) {
|
||||||
|
wp_delete_term( $tag_ID, $taxonomy);
|
||||||
|
}
|
||||||
|
|
||||||
|
$location = 'edit-tags.php';
|
||||||
|
if ( $referer = wp_get_referer() ) {
|
||||||
|
if ( false !== strpos($referer, 'edit-tags.php') )
|
||||||
|
$location = $referer;
|
||||||
|
}
|
||||||
|
|
||||||
|
$location = add_query_arg('message', 6, $location);
|
||||||
|
wp_redirect($location);
|
||||||
|
exit;
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'edit':
|
||||||
|
$title = __('Edit Tag');
|
||||||
|
|
||||||
|
require_once ('admin-header.php');
|
||||||
|
$tag_ID = (int) $_GET['tag_ID'];
|
||||||
|
|
||||||
|
$tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
|
||||||
|
include('edit-tag-form.php');
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'editedtag':
|
||||||
|
$tag_ID = (int) $_POST['tag_ID'];
|
||||||
|
check_admin_referer('update-tag_' . $tag_ID);
|
||||||
|
|
||||||
|
if ( !current_user_can('manage_categories') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
$ret = wp_update_term($tag_ID, $taxonomy, $_POST);
|
||||||
|
|
||||||
|
$location = 'edit-tags.php';
|
||||||
|
if ( $referer = wp_get_original_referer() ) {
|
||||||
|
if ( false !== strpos($referer, 'edit-tags.php') )
|
||||||
|
$location = $referer;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $ret && !is_wp_error( $ret ) )
|
||||||
|
$location = add_query_arg('message', 3, $location);
|
||||||
|
else
|
||||||
|
$location = add_query_arg('message', 5, $location);
|
||||||
|
|
||||||
|
wp_redirect($location);
|
||||||
|
exit;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
|
||||||
|
if ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
|
||||||
|
wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$can_manage = current_user_can('manage_categories');
|
||||||
|
|
||||||
|
wp_enqueue_script('admin-tags');
|
||||||
|
if ( $can_manage )
|
||||||
|
wp_enqueue_script('inline-edit-tax');
|
||||||
|
|
||||||
|
require_once ('admin-header.php');
|
||||||
|
|
||||||
|
$messages[1] = __('Tag added.');
|
||||||
|
$messages[2] = __('Tag deleted.');
|
||||||
|
$messages[3] = __('Tag updated.');
|
||||||
|
$messages[4] = __('Tag not added.');
|
||||||
|
$messages[5] = __('Tag not updated.');
|
||||||
|
$messages[6] = __('Tags deleted.'); ?>
|
||||||
|
|
||||||
|
<div class="wrap nosubsub">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title );
|
||||||
|
if ( isset($_GET['s']) && $_GET['s'] )
|
||||||
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( stripslashes($_GET['s']) ) ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
|
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||||
|
endif; ?>
|
||||||
|
|
||||||
|
<form class="search-form" action="" method="get">
|
||||||
|
<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
|
||||||
|
<p class="search-box">
|
||||||
|
<label class="screen-reader-text" for="tag-search-input"><?php _e( 'Search Tags' ); ?>:</label>
|
||||||
|
<input type="text" id="tag-search-input" name="s" value="<?php _admin_search_query(); ?>" />
|
||||||
|
<input type="submit" value="<?php esc_attr_e( 'Search Tags' ); ?>" class="button" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
<br class="clear" />
|
||||||
|
|
||||||
|
<div id="col-container">
|
||||||
|
|
||||||
|
<div id="col-right">
|
||||||
|
<div class="col-wrap">
|
||||||
|
<form id="posts-filter" action="" method="get">
|
||||||
|
<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
|
||||||
|
<div class="tablenav">
|
||||||
|
<?php
|
||||||
|
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
|
||||||
|
if ( empty($pagenum) )
|
||||||
|
$pagenum = 1;
|
||||||
|
|
||||||
|
$tags_per_page = get_user_option('edit_tags_per_page');
|
||||||
|
if ( empty($tags_per_page) )
|
||||||
|
$tags_per_page = 20;
|
||||||
|
$tags_per_page = apply_filters('edit_tags_per_page', $tags_per_page);
|
||||||
|
$tags_per_page = apply_filters('tagsperpage', $tags_per_page); // Old filter
|
||||||
|
|
||||||
|
$page_links = paginate_links( array(
|
||||||
|
'base' => add_query_arg( 'pagenum', '%#%' ),
|
||||||
|
'format' => '',
|
||||||
|
'prev_text' => __('«'),
|
||||||
|
'next_text' => __('»'),
|
||||||
|
'total' => ceil(wp_count_terms($taxonomy) / $tags_per_page),
|
||||||
|
'current' => $pagenum
|
||||||
|
));
|
||||||
|
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action">
|
||||||
|
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
||||||
|
<?php wp_nonce_field('bulk-tags'); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<table class="widefat tag fixed" cellspacing="0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-tags'); ?>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<?php print_column_headers('edit-tags', false); ?>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<tbody id="the-list" class="list:tag">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$searchterms = isset( $_GET['s'] ) ? trim( $_GET['s'] ) : '';
|
||||||
|
|
||||||
|
$count = tag_rows( $pagenum, $tags_per_page, $searchterms, $taxonomy );
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
<?php
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action2">
|
||||||
|
<option value="" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div><!-- /col-right -->
|
||||||
|
|
||||||
|
<div id="col-left">
|
||||||
|
<div class="col-wrap">
|
||||||
|
|
||||||
|
<div class="tagcloud">
|
||||||
|
<h3><?php _e('Popular Tags'); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ( $can_manage )
|
||||||
|
wp_tag_cloud(array('taxonomy' => $taxonomy, 'link' => 'edit'));
|
||||||
|
else
|
||||||
|
wp_tag_cloud(array('taxonomy' => $taxonomy));
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ( $can_manage ) {
|
||||||
|
do_action('add_tag_form_pre'); ?>
|
||||||
|
|
||||||
|
<div class="form-wrap">
|
||||||
|
<h3><?php _e('Add a New Tag'); ?></h3>
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">
|
||||||
|
<input type="hidden" name="action" value="addtag" />
|
||||||
|
<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
|
||||||
|
<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?>
|
||||||
|
|
||||||
|
<div class="form-field form-required">
|
||||||
|
<label for="name"><?php _e('Tag name') ?></label>
|
||||||
|
<input name="name" id="name" type="text" value="" size="40" aria-required="true" />
|
||||||
|
<p><?php _e('The name is how the tag appears on your site.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-field">
|
||||||
|
<label for="slug"><?php _e('Tag slug') ?></label>
|
||||||
|
<input name="slug" id="slug" type="text" value="" size="40" />
|
||||||
|
<p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-field">
|
||||||
|
<label for="description"><?php _e('Description') ?></label>
|
||||||
|
<textarea name="description" id="description" rows="5" cols="40"></textarea>
|
||||||
|
<p><?php _e('The description is not prominent by default, however some themes may show it.'); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="submit"><input type="submit" class="button" name="submit" value="<?php esc_attr_e('Add Tag'); ?>" /></p>
|
||||||
|
<?php do_action('add_tag_form'); ?>
|
||||||
|
</form></div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div><!-- /col-left -->
|
||||||
|
|
||||||
|
</div><!-- /col-container -->
|
||||||
|
</div><!-- /wrap -->
|
||||||
|
|
||||||
|
<?php inline_edit_term_row('edit-tags'); ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
include('admin-footer.php');
|
||||||
|
|
||||||
|
?>
|
303
wp-admin/edit.php
Normal file
|
@ -0,0 +1,303 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Edit Posts Administration Panel.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** WordPress Administration Bootstrap */
|
||||||
|
require_once('admin.php');
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_posts') )
|
||||||
|
wp_die(__('Cheatin’ uh?'));
|
||||||
|
|
||||||
|
// Back-compat for viewing comments of an entry
|
||||||
|
if ( $_redirect = intval( max( @$_GET['p'], @$_GET['attachment_id'], @$_GET['page_id'] ) ) ) {
|
||||||
|
wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) );
|
||||||
|
exit;
|
||||||
|
} else {
|
||||||
|
unset( $_redirect );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Handle bulk actions
|
||||||
|
if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2'] ) ) {
|
||||||
|
$doaction = ( -1 != $_GET['action'] ) ? $_GET['action'] : $_GET['action2'];
|
||||||
|
|
||||||
|
switch ( $doaction ) {
|
||||||
|
case 'delete':
|
||||||
|
if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && (isset($_GET['doaction']) || isset($_GET['doaction2'])) ) {
|
||||||
|
check_admin_referer('bulk-posts');
|
||||||
|
$deleted = 0;
|
||||||
|
foreach( (array) $_GET['post'] as $post_id_del ) {
|
||||||
|
$post_del = & get_post($post_id_del);
|
||||||
|
|
||||||
|
if ( !current_user_can('delete_post', $post_id_del) )
|
||||||
|
wp_die( __('You are not allowed to delete this post.') );
|
||||||
|
|
||||||
|
if ( $post_del->post_type == 'attachment' ) {
|
||||||
|
if ( ! wp_delete_attachment($post_id_del) )
|
||||||
|
wp_die( __('Error in deleting...') );
|
||||||
|
} else {
|
||||||
|
if ( !wp_delete_post($post_id_del) )
|
||||||
|
wp_die( __('Error in deleting...') );
|
||||||
|
}
|
||||||
|
$deleted++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'edit':
|
||||||
|
if ( isset($_GET['post']) && isset($_GET['bulk_edit']) ) {
|
||||||
|
check_admin_referer('bulk-posts');
|
||||||
|
|
||||||
|
if ( -1 == $_GET['_status'] ) {
|
||||||
|
$_GET['post_status'] = null;
|
||||||
|
unset($_GET['_status'], $_GET['post_status']);
|
||||||
|
} else {
|
||||||
|
$_GET['post_status'] = $_GET['_status'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$done = bulk_edit_posts($_GET);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sendback = wp_get_referer();
|
||||||
|
if ( strpos($sendback, 'post.php') !== false ) $sendback = admin_url('post-new.php');
|
||||||
|
elseif ( strpos($sendback, 'attachments.php') !== false ) $sendback = admin_url('attachments.php');
|
||||||
|
if ( isset($done) ) {
|
||||||
|
$done['updated'] = count( $done['updated'] );
|
||||||
|
$done['skipped'] = count( $done['skipped'] );
|
||||||
|
$done['locked'] = count( $done['locked'] );
|
||||||
|
$sendback = add_query_arg( $done, $sendback );
|
||||||
|
}
|
||||||
|
if ( isset($deleted) )
|
||||||
|
$sendback = add_query_arg('deleted', $deleted, $sendback);
|
||||||
|
wp_redirect($sendback);
|
||||||
|
exit();
|
||||||
|
} elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
|
||||||
|
wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( empty($title) )
|
||||||
|
$title = __('Edit Posts');
|
||||||
|
$parent_file = 'edit.php';
|
||||||
|
wp_enqueue_script('inline-edit-post');
|
||||||
|
|
||||||
|
list($post_stati, $avail_post_stati) = wp_edit_posts_query();
|
||||||
|
|
||||||
|
require_once('admin-header.php');
|
||||||
|
|
||||||
|
if ( !isset( $_GET['paged'] ) )
|
||||||
|
$_GET['paged'] = 1;
|
||||||
|
|
||||||
|
if ( empty($_GET['mode']) )
|
||||||
|
$mode = 'list';
|
||||||
|
else
|
||||||
|
$mode = esc_attr($_GET['mode']); ?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title );
|
||||||
|
if ( isset($_GET['s']) && $_GET['s'] )
|
||||||
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( get_search_query() ) ); ?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
||||||
|
<div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div>
|
||||||
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
|
||||||
|
endif; ?>
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) ) { ?>
|
||||||
|
<div id="message" class="updated fade"><p>
|
||||||
|
<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
|
||||||
|
printf( _n( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
|
||||||
|
unset($_GET['updated']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset($_GET['skipped']) && (int) $_GET['skipped'] )
|
||||||
|
unset($_GET['skipped']);
|
||||||
|
|
||||||
|
if ( isset($_GET['locked']) && (int) $_GET['locked'] ) {
|
||||||
|
printf( _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['locked'] ) );
|
||||||
|
unset($_GET['locked']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) {
|
||||||
|
printf( _n( 'Post deleted.', '%s posts deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) );
|
||||||
|
unset($_GET['deleted']);
|
||||||
|
}
|
||||||
|
|
||||||
|
$_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated', 'deleted'), $_SERVER['REQUEST_URI'] );
|
||||||
|
?>
|
||||||
|
</p></div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<form id="posts-filter" action="" method="get">
|
||||||
|
|
||||||
|
<ul class="subsubsub">
|
||||||
|
<?php
|
||||||
|
if ( empty($locked_post_status) ) :
|
||||||
|
$status_links = array();
|
||||||
|
$num_posts = wp_count_posts( 'post', 'readable' );
|
||||||
|
$total_posts = array_sum( (array) $num_posts );
|
||||||
|
$class = empty( $_GET['post_status'] ) ? ' class="current"' : '';
|
||||||
|
$status_links[] = "<li><a href='edit.php' $class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ) . '</a>';
|
||||||
|
|
||||||
|
|
||||||
|
foreach ( $post_stati as $status => $label ) {
|
||||||
|
$class = '';
|
||||||
|
|
||||||
|
if ( !in_array( $status, $avail_post_stati ) )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if ( empty( $num_posts->$status ) )
|
||||||
|
continue;
|
||||||
|
if ( isset($_GET['post_status']) && $status == $_GET['post_status'] )
|
||||||
|
$class = ' class="current"';
|
||||||
|
|
||||||
|
$status_links[] = "<li><a href='edit.php?post_status=$status' $class>" . sprintf( _n( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>';
|
||||||
|
}
|
||||||
|
echo implode( " |</li>\n", $status_links ) . '</li>';
|
||||||
|
unset( $status_links );
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p class="search-box">
|
||||||
|
<label class="screen-reader-text" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>
|
||||||
|
<input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" />
|
||||||
|
<input type="submit" value="<?php esc_attr_e( 'Search Posts' ); ?>" class="button" />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<?php if ( isset($_GET['post_status'] ) ) : ?>
|
||||||
|
<input type="hidden" name="post_status" value="<?php echo esc_attr($_GET['post_status']) ?>" />
|
||||||
|
<?php endif; ?>
|
||||||
|
<input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
|
||||||
|
|
||||||
|
<?php if ( have_posts() ) { ?>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
<?php
|
||||||
|
$page_links = paginate_links( array(
|
||||||
|
'base' => add_query_arg( 'paged', '%#%' ),
|
||||||
|
'format' => '',
|
||||||
|
'prev_text' => __('«'),
|
||||||
|
'next_text' => __('»'),
|
||||||
|
'total' => $wp_query->max_num_pages,
|
||||||
|
'current' => $_GET['paged']
|
||||||
|
));
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action">
|
||||||
|
<option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="edit"><?php _e('Edit'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
|
||||||
|
<?php wp_nonce_field('bulk-posts'); ?>
|
||||||
|
|
||||||
|
<?php // view filters
|
||||||
|
if ( !is_singular() ) {
|
||||||
|
$arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC";
|
||||||
|
|
||||||
|
$arc_result = $wpdb->get_results( $arc_query );
|
||||||
|
|
||||||
|
$month_count = count($arc_result);
|
||||||
|
|
||||||
|
if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) {
|
||||||
|
$m = isset($_GET['m']) ? (int)$_GET['m'] : 0;
|
||||||
|
?>
|
||||||
|
<select name='m'>
|
||||||
|
<option<?php selected( $m, 0 ); ?> value='0'><?php _e('Show all dates'); ?></option>
|
||||||
|
<?php
|
||||||
|
foreach ($arc_result as $arc_row) {
|
||||||
|
if ( $arc_row->yyear == 0 )
|
||||||
|
continue;
|
||||||
|
$arc_row->mmonth = zeroise( $arc_row->mmonth, 2 );
|
||||||
|
|
||||||
|
if ( $arc_row->yyear . $arc_row->mmonth == $m )
|
||||||
|
$default = ' selected="selected"';
|
||||||
|
else
|
||||||
|
$default = '';
|
||||||
|
|
||||||
|
echo "<option$default value='" . esc_attr("$arc_row->yyear$arc_row->mmonth") . "'>";
|
||||||
|
echo $wp_locale->get_month($arc_row->mmonth) . " $arc_row->yyear";
|
||||||
|
echo "</option>\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1,
|
||||||
|
'show_count' => 0, 'orderby' => 'name', 'selected' => $cat);
|
||||||
|
wp_dropdown_categories($dropdown_options);
|
||||||
|
do_action('restrict_manage_posts');
|
||||||
|
?>
|
||||||
|
<input type="submit" id="post-query-submit" value="<?php esc_attr_e('Filter'); ?>" class="button-secondary" />
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php if ( $page_links ) { ?>
|
||||||
|
<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
||||||
|
number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ),
|
||||||
|
number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ),
|
||||||
|
number_format_i18n( $wp_query->found_posts ),
|
||||||
|
$page_links
|
||||||
|
); echo $page_links_text; ?></div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<div class="view-switch">
|
||||||
|
<a href="<?php echo esc_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> id="view-switch-list" src="../wp-includes/images/blank.gif" width="20" height="20" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a>
|
||||||
|
<a href="<?php echo esc_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> id="view-switch-excerpt" src="../wp-includes/images/blank.gif" width="20" height="20" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
<?php include( 'edit-post-rows.php' ); ?>
|
||||||
|
|
||||||
|
<div class="tablenav">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( $page_links )
|
||||||
|
echo "<div class='tablenav-pages'>$page_links_text</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="alignleft actions">
|
||||||
|
<select name="action2">
|
||||||
|
<option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
|
||||||
|
<option value="edit"><?php _e('Edit'); ?></option>
|
||||||
|
<option value="delete"><?php _e('Delete'); ?></option>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
<br class="clear" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php } else { // have_posts() ?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<p><?php _e('No posts found') ?></p>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?php inline_edit_row( 'post' ); ?>
|
||||||
|
|
||||||
|
<div id="ajax-response"></div>
|
||||||
|
|
||||||
|
<br class="clear" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
include('admin-footer.php');
|
65
wp-admin/export.php
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* WordPress Export Administration Panel
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** Load WordPress Bootstrap */
|
||||||
|
require_once ('admin.php');
|
||||||
|
|
||||||
|
if ( !current_user_can('edit_files') )
|
||||||
|
wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
|
||||||
|
|
||||||
|
/** Load WordPress export API */
|
||||||
|
require_once('includes/export.php');
|
||||||
|
$title = __('Export');
|
||||||
|
|
||||||
|
if ( isset( $_GET['download'] ) ) {
|
||||||
|
$author = isset($_GET['author']) ? $_GET['author'] : 'all';
|
||||||
|
export_wp( $author );
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once ('admin-header.php');
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="wrap">
|
||||||
|
<?php screen_icon(); ?>
|
||||||
|
<h2><?php echo esc_html( $title ); ?></h2>
|
||||||
|
|
||||||
|
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
|
||||||
|
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>
|
||||||
|
<p><?php _e('Once you’ve saved the download file, you can use the Import function on another WordPress blog to import this blog.'); ?></p>
|
||||||
|
<form action="" method="get">
|
||||||
|
<h3><?php _e('Options'); ?></h3>
|
||||||
|
|
||||||
|
<table class="form-table">
|
||||||
|
<tr>
|
||||||
|
<th><label for="author"><?php _e('Restrict Author'); ?></label></th>
|
||||||
|
<td>
|
||||||
|
<select name="author" id="author">
|
||||||
|
<option value="all" selected="selected"><?php _e('All Authors'); ?></option>
|
||||||
|
<?php
|
||||||
|
$authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" );
|
||||||
|
foreach ( $authors as $id ) {
|
||||||
|
$o = get_userdata( $id );
|
||||||
|
echo "<option value='" . esc_attr($o->ID) . "'>$o->display_name</option>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<p class="submit"><input type="submit" name="submit" class="button" value="<?php esc_attr_e('Download Export File'); ?>" />
|
||||||
|
<input type="hidden" name="download" value="true" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
include ('admin-footer.php');
|
||||||
|
?>
|
51
wp-admin/gears-manifest.php
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Defines the Gears manifest file for Google Gears offline storage.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Administration
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable error reporting
|
||||||
|
*
|
||||||
|
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
|
||||||
|
*/
|
||||||
|
error_reporting(0);
|
||||||
|
|
||||||
|
/** Set ABSPATH for execution */
|
||||||
|
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
|
||||||
|
|
||||||
|
require(ABSPATH . '/wp-admin/includes/manifest.php');
|
||||||
|
|
||||||
|
$files = get_manifest();
|
||||||
|
|
||||||
|
header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
|
||||||
|
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
|
||||||
|
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
|
||||||
|
header( 'Pragma: no-cache' );
|
||||||
|
header( 'Content-Type: application/x-javascript; charset=UTF-8' );
|
||||||
|
?>
|
||||||
|
{
|
||||||
|
"betaManifestVersion" : 1,
|
||||||
|
"version" : "<?php echo $man_version; ?>",
|
||||||
|
"entries" : [
|
||||||
|
<?php
|
||||||
|
$entries = '';
|
||||||
|
|
||||||
|
foreach ( $files as $file ) {
|
||||||
|
// If version is not set, just output the file
|
||||||
|
if ( !isset($file[1]) )
|
||||||
|
$entries .= '{ "url" : "' . $file[0] . '" },' . "\n";
|
||||||
|
// If ver is set but ignoreQuery is not, output file with ver tacked on
|
||||||
|
elseif ( !isset($file[2]) )
|
||||||
|
$entries .= '{ "url" : "' . $file[0] . '?' . $file[1] . '" },' . "\n";
|
||||||
|
// Output url, src, and ignoreQuery
|
||||||
|
else
|
||||||
|
$entries .= '{ "url" : "' . $file[0] . '", "src" : "' . $file[0] . '?' . $file[1] . '", "ignoreQuery" : true },' . "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo trim( trim($entries), ',' );
|
||||||
|
?>
|
||||||
|
|
||||||
|
]}
|
BIN
wp-admin/images/align-center.png
Normal file
After Width: | Height: | Size: 571 B |
BIN
wp-admin/images/align-left.png
Normal file
After Width: | Height: | Size: 587 B |
BIN
wp-admin/images/align-none.png
Normal file
After Width: | Height: | Size: 453 B |
BIN
wp-admin/images/align-right.png
Normal file
After Width: | Height: | Size: 556 B |
BIN
wp-admin/images/archive-link.png
Normal file
After Width: | Height: | Size: 133 B |
BIN
wp-admin/images/blue-grad.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
wp-admin/images/browse-happy.gif
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
wp-admin/images/bubble_bg-rtl.gif
Normal file
After Width: | Height: | Size: 400 B |
BIN
wp-admin/images/bubble_bg.gif
Normal file
After Width: | Height: | Size: 395 B |
BIN
wp-admin/images/button-grad-active-vs.png
Normal file
After Width: | Height: | Size: 152 B |
BIN
wp-admin/images/button-grad-active.png
Normal file
After Width: | Height: | Size: 284 B |
BIN
wp-admin/images/button-grad-vs.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
wp-admin/images/button-grad.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
wp-admin/images/comment-grey-bubble.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
wp-admin/images/date-button.gif
Normal file
After Width: | Height: | Size: 111 B |
BIN
wp-admin/images/ed-bg-vs.gif
Normal file
After Width: | Height: | Size: 291 B |
BIN
wp-admin/images/ed-bg.gif
Normal file
After Width: | Height: | Size: 190 B |
BIN
wp-admin/images/fade-butt.png
Normal file
After Width: | Height: | Size: 785 B |
BIN
wp-admin/images/fav-arrow-rtl.gif
Normal file
After Width: | Height: | Size: 422 B |
BIN
wp-admin/images/fav-arrow-vs.gif
Normal file
After Width: | Height: | Size: 338 B |
BIN
wp-admin/images/fav-arrow.gif
Normal file
After Width: | Height: | Size: 334 B |
BIN
wp-admin/images/fav-top-vs.gif
Normal file
After Width: | Height: | Size: 101 B |
BIN
wp-admin/images/fav-top.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
wp-admin/images/fav-vs.png
Normal file
After Width: | Height: | Size: 142 B |
BIN
wp-admin/images/fav.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
wp-admin/images/generic.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
wp-admin/images/gray-grad.png
Normal file
After Width: | Height: | Size: 213 B |
BIN
wp-admin/images/icons32-vs.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
wp-admin/images/icons32.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
wp-admin/images/list-vs.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-admin/images/list.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
wp-admin/images/loading-publish.gif
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
wp-admin/images/loading.gif
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
wp-admin/images/logo-ghost.png
Normal file
After Width: | Height: | Size: 559 B |
BIN
wp-admin/images/logo-login.gif
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
wp-admin/images/logo.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
wp-admin/images/marker.png
Normal file
After Width: | Height: | Size: 652 B |
BIN
wp-admin/images/mask.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
wp-admin/images/media-button-image.gif
Normal file
After Width: | Height: | Size: 69 B |
BIN
wp-admin/images/media-button-music.gif
Normal file
After Width: | Height: | Size: 188 B |
BIN
wp-admin/images/media-button-other.gif
Normal file
After Width: | Height: | Size: 141 B |
BIN
wp-admin/images/media-button-video.gif
Normal file
After Width: | Height: | Size: 68 B |
BIN
wp-admin/images/menu-arrows.gif
Normal file
After Width: | Height: | Size: 330 B |
BIN
wp-admin/images/menu-bits-rtl-vs.gif
Normal file
After Width: | Height: | Size: 2.1 KiB |