-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_wp-admin_custom-background.html
341 lines (325 loc) · 13.2 KB
/
db_wp-admin_custom-background.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>WordPress Trunk</title><link rel="stylesheet" href="css/black-tie/jquery-ui-1.8.2.custom.css" type="text/css"></link><link rel="stylesheet" href="css/jquery.treeview.css" type="text/css"></link><link rel="stylesheet" href="css/theme.css" type="text/css"></link><script type="text/javascript" src="js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script><script type="text/javascript" src="js/jquery.cookie.js"></script><script type="text/javascript" src="js/jquery.treeview.js"></script><script type="text/javascript">
$(document).ready(function() {
$(".filetree").treeview({
collapsed: true,
persist: "cookie"
});
$("#accordion").accordion({
collapsible: true,
autoHeight: false,
fillSpace: true
});
$(".tabs").tabs();
});
</script></head><body><div xmlns="" id="content">
<script type="text/javascript" src="js/menu.js"></script><script>
function filterElements()
{
inherited = !$('a#show-inherited').hasClass('deselected');
public = !$('a#show-public').hasClass('deselected');
protected = !$('a#show-protected').hasClass('deselected');
private = !$('a#show-private').hasClass('deselected');
$('div.public').each(function(index, val) {
$(val).toggle(public && !($(val).hasClass('inherited_from') && !inherited));
});
$('div.protected').each(function(index, val) {
$(val).toggle(protected && !($(val).hasClass('inherited_from') && !inherited));
});
$('div.private').each(function(index, val) {
$(val).toggle(private && !($(val).hasClass('inherited_from') && !inherited));
});
}
$(document).ready(function() {
$('a.gripper').click(function() {
$(this).nextAll('div.code-tabs').slideToggle();
$(this).children('img').toggle();
return false;
});
$('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').css('cursor', 'pointer');
$('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').click(function() {
$(this).parent().nextAll('div.code-tabs').slideToggle();
$(this).parent().prevAll('a.gripper').children('img').toggle();
return false;
});
$('div.code-tabs').hide();
$('a.gripper').show();
$('div.code-tabs:empty').prevAll('a.gripper').html('');
$('div.file-nav').show();
$('a#show-public, a#show-protected, a#show-private, a#show-inherited').click(function(){
$(this).toggleClass('deselected');
if ($(this).hasClass('deselected')) {
$(this).fadeTo('fast', '0.4');
} else {
$(this).fadeTo('fast', '1.0');
}
filterElements();
return false;
});
$('a#show-protected, a#show-private').click();
});
</script><h1 class="file">wp-admin/custom-background.php</h1>
<div class="file-nav">
<ul id="file-nav">
<li><a href="#top">Global</a></li>
<li>
<a href="#classes"><img src="images/icons/class.png" height="14">
Classes
</a><ul><li><a href="#%5CCustom_Background">\Custom_Background</a></li></ul>
</li>
</ul>
<div style="float: right;padding-right: 20px;">
Show:
<a href="#" id="show-public"><img src="images/icons/visibility_public.png"></a><a href="#" id="show-protected"><img src="images/icons/visibility_protected.png"></a><a href="#" id="show-private"><img src="images/icons/visibility_private.png"></a><a href="#" id="show-inherited"><span class="attribute">inherited</span></a>
</div>
</div>
<a name="top" class="anchor"></a><div id="file-description">
<p class="short-description">The custom background script.</p>
<div class="long-description">
</div>
</div>
<dl class="file-info">
<dt>Package</dt>
<dd>WordPress
</dd>
<dt>Subpackage</dt>
<dd>Administration
</dd>
</dl>
<a name="classes" class="anchor"></a><a id="\Custom_Background" class="anchor"></a><h2 class="class">\Custom_Background<div class="to-top"><a href="#top">jump to top</a></div>
</h2>
<div class="class">
<small class="package"><b>Package: </b>WordPress\Administration</small><p class="short-description">The custom background class.</p>
<div class="long-description">
</div>
<dl class="class-info">
<dt>Since</dt>
<dd>3.0.0
</dd>
<dt>Used_by</dt>
<dd>add_custom_background()
</dd>
</dl>
<h3>Properties</h3>
<div>
<a id="\Custom_Background::$admin_header_callback" class="anchor"></a><div class="property public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/property.png" alt="Property"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public">callback
<span class="highlight">$admin_header_callback</span>= ''
</code><div class="description">
<p class="short-description">Callback for administration header.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Details</strong><dl class="property-info">
<dt>Type</dt>
<dd>callback</dd>
<dt>Access</dt>
<dd>private
</dd>
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
<a id="\Custom_Background::$admin_image_div_callback" class="anchor"></a><div class="property public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/property.png" alt="Property"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public">callback
<span class="highlight">$admin_image_div_callback</span>= ''
</code><div class="description">
<p class="short-description">Callback for header div.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Details</strong><dl class="property-info">
<dt>Type</dt>
<dd>callback</dd>
<dt>Access</dt>
<dd>private
</dd>
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
<a id="\Custom_Background::$page" class="anchor"></a><div class="property public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/property.png" alt="Property"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public">string
<span class="highlight">$page</span>= ''''
</code><div class="description">
<p class="short-description">Holds the page menu hook.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info">
<dt>Type</dt>
<dd>string</dd>
<dt>Access</dt>
<dd>private
</dd>
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
</div>
<h3>Methods</h3>
<div>
<a id="\Custom_Background::__construct()" class="anchor"></a><div class="method public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">__construct</span><span class="nb-faded-text">(
callback $admin_header_callback
=
'', callback $admin_image_div_callback
=
''
)
</span>
:
<a href="db_wp-admin_custom-background.html#%5CCustom_Background">\Custom_Background</a></code><div class="description"><p class="short_description">Constructor - Register administration header callback.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Parameters</strong><table class="argument-info">
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tr>
<th>$admin_header_callback</th>
<td>callback</td>
<td><em></em></td>
</tr>
<tr>
<th>$admin_image_div_callback</th>
<td>callback</td>
<td><em><p>Optional custom image div output callback.</p></em></td>
</tr>
</table>
<strong>Returns</strong><table class="argument-info">
<thead><tr>
<th>Type</th>
<th>Description</th>
</tr></thead>
<tr>
<td><a href="db_wp-admin_custom-background.html#%5CCustom_Background">\Custom_Background</a></td>
<td></td>
</tr>
</table>
<strong>Details</strong><dl class="function-info">
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
<a id="\Custom_Background::admin_load()" class="anchor"></a><div class="method public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">admin_load</span><span class="nb-faded-text">(
)
</span>
:
void</code><div class="description"><p class="short_description">Set up the enqueue for the CSS & JavaScript files.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Details</strong><dl class="function-info">
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
<a id="\Custom_Background::admin_page()" class="anchor"></a><div class="method public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">admin_page</span><span class="nb-faded-text">(
)
</span>
:
void</code><div class="description"><p class="short_description">Display the custom background page.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Details</strong><dl class="function-info">
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
<a id="\Custom_Background::handle_upload()" class="anchor"></a><div class="method public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">handle_upload</span><span class="nb-faded-text">(
)
</span>
:
void</code><div class="description"><p class="short_description">Handle an Image upload for the background image.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Details</strong><dl class="function-info">
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
<a id="\Custom_Background::init()" class="anchor"></a><div class="method public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">init</span><span class="nb-faded-text">(
)
</span>
:
void</code><div class="description"><p class="short_description">Set up the hooks for the Custom Background admin page.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Details</strong><dl class="function-info">
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
<a id="\Custom_Background::take_action()" class="anchor"></a><div class="method public">
<a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">take_action</span><span class="nb-faded-text">(
)
</span>
:
void</code><div class="description"><p class="short_description">Execute custom background modification.</p></div>
<div class="code-tabs">
<div class="long-description">
</div>
<strong>Details</strong><dl class="function-info">
<dt>Since</dt>
<dd>3.0.0
</dd>
</dl>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
<small xmlns="" class="footer">Documentation was generated by <a href="http://docblox-project.org">DocBlox 0.14.1</a>.
</small></body></html>