Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 18.117.94.221
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
ilpnowa /
web /
wp-includes /
[ HOME SHELL ]
Name
Size
Permission
Action
ID3
[ DIR ]
drwxr-xr-x
IXR
[ DIR ]
drwxr-xr-x
Requests
[ DIR ]
drwxr-xr-x
SimplePie
[ DIR ]
drwxr-xr-x
Text
[ DIR ]
drwxr-xr-x
certificates
[ DIR ]
drwxr-xr-x
css
[ DIR ]
drwxr-xr-x
customize
[ DIR ]
drwxr-xr-x
fonts
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
pomo
[ DIR ]
drwxr-xr-x
random_compat
[ DIR ]
drwxr-xr-x
rest-api
[ DIR ]
drwxr-xr-x
theme-compat
[ DIR ]
drwxr-xr-x
widgets
[ DIR ]
drwxr-xr-x
admin-bar.php
27.98
KB
-rw-r--r--
atomlib.php
11.56
KB
-rw-r--r--
author-template.php
15.75
KB
-rw-r--r--
bookmark-template.php
11.42
KB
-rw-r--r--
bookmark.php
13.35
KB
-rw-r--r--
cache.php
21.09
KB
-rw-r--r--
canonical.php
26.94
KB
-rw-r--r--
capabilities.php
27.55
KB
-rw-r--r--
category-template.php
50.12
KB
-rw-r--r--
category.php
11.7
KB
-rw-r--r--
class-IXR.php
2.51
KB
-rw-r--r--
class-feed.php
522
B
-rw-r--r--
class-http.php
35.32
KB
-rw-r--r--
class-json.php
39.52
KB
-rw-r--r--
class-oembed.php
32.34
KB
-rw-r--r--
class-phpass.php
7.15
KB
-rw-r--r--
class-phpmailer.php
143.34
KB
-rw-r--r--
class-pop3.php
20.43
KB
-rw-r--r--
class-requests.php
29.09
KB
-rw-r--r--
class-simplepie.php
87.17
KB
-rw-r--r--
class-smtp.php
38.55
KB
-rw-r--r--
class-snoopy.php
36.9
KB
-rw-r--r--
class-walker-category-dropdown...
2.05
KB
-rw-r--r--
class-walker-category.php
6.49
KB
-rw-r--r--
class-walker-comment.php
10.91
KB
-rw-r--r--
class-walker-nav-menu.php
8.2
KB
-rw-r--r--
class-walker-page-dropdown.php
2.23
KB
-rw-r--r--
class-walker-page.php
6.56
KB
-rw-r--r--
class-wp-admin-bar.php
16.57
KB
-rw-r--r--
class-wp-ajax-response.php
4.91
KB
-rw-r--r--
class-wp-comment-query.php
40.76
KB
-rw-r--r--
class-wp-comment.php
8.73
KB
-rw-r--r--
class-wp-customize-control.php
24.4
KB
-rw-r--r--
class-wp-customize-manager.php
192.6
KB
-rw-r--r--
class-wp-customize-nav-menus.p...
52.31
KB
-rw-r--r--
class-wp-customize-panel.php
9.35
KB
-rw-r--r--
class-wp-customize-section.php
9.96
KB
-rw-r--r--
class-wp-customize-setting.php
27.47
KB
-rw-r--r--
class-wp-customize-widgets.php
64.2
KB
-rw-r--r--
class-wp-dependency.php
1.51
KB
-rw-r--r--
class-wp-editor.php
59.28
KB
-rw-r--r--
class-wp-embed.php
14.17
KB
-rw-r--r--
class-wp-error.php
4.48
KB
-rw-r--r--
class-wp-feed-cache-transient....
2.48
KB
-rw-r--r--
class-wp-feed-cache.php
745
B
-rw-r--r--
class-wp-hook.php
13.72
KB
-rw-r--r--
class-wp-http-cookie.php
6.3
KB
-rw-r--r--
class-wp-http-curl.php
11.41
KB
-rw-r--r--
class-wp-http-encoding.php
6.29
KB
-rw-r--r--
class-wp-http-ixr-client.php
3.17
KB
-rw-r--r--
class-wp-http-proxy.php
5.82
KB
-rw-r--r--
class-wp-http-requests-hooks.p...
1.83
KB
-rw-r--r--
class-wp-http-requests-respons...
4.17
KB
-rw-r--r--
class-wp-http-response.php
2.8
KB
-rw-r--r--
class-wp-http-streams.php
14.64
KB
-rw-r--r--
class-wp-image-editor-gd.php
12.62
KB
-rw-r--r--
class-wp-image-editor-imagick....
21.17
KB
-rw-r--r--
class-wp-image-editor.php
11.43
KB
-rw-r--r--
class-wp-list-util.php
6.22
KB
-rw-r--r--
class-wp-locale-switcher.php
4.94
KB
-rw-r--r--
class-wp-locale.php
14.21
KB
-rw-r--r--
class-wp-matchesmapregex.php
1.75
KB
-rw-r--r--
class-wp-meta-query.php
21.73
KB
-rw-r--r--
class-wp-metadata-lazyloader.p...
5.25
KB
-rw-r--r--
class-wp-network-query.php
16.72
KB
-rw-r--r--
class-wp-network.php
11.84
KB
-rw-r--r--
class-wp-oembed-controller.php
5.46
KB
-rw-r--r--
class-wp-post-type.php
17.81
KB
-rw-r--r--
class-wp-post.php
6.21
KB
-rw-r--r--
class-wp-query.php
121.06
KB
-rw-r--r--
class-wp-rewrite.php
57.53
KB
-rw-r--r--
class-wp-role.php
2.55
KB
-rw-r--r--
class-wp-roles.php
8
KB
-rw-r--r--
class-wp-session-tokens.php
7.17
KB
-rw-r--r--
class-wp-simplepie-file.php
2.22
KB
-rw-r--r--
class-wp-simplepie-sanitize-ks...
1.73
KB
-rw-r--r--
class-wp-site-query.php
22.64
KB
-rw-r--r--
class-wp-site.php
7.15
KB
-rw-r--r--
class-wp-tax-query.php
18.75
KB
-rw-r--r--
class-wp-taxonomy.php
9.76
KB
-rw-r--r--
class-wp-term-query.php
33.36
KB
-rw-r--r--
class-wp-term.php
5.15
KB
-rw-r--r--
class-wp-text-diff-renderer-in...
712
B
-rw-r--r--
class-wp-text-diff-renderer-ta...
14.84
KB
-rw-r--r--
class-wp-theme.php
46.76
KB
-rw-r--r--
class-wp-user-meta-session-tok...
2.85
KB
-rw-r--r--
class-wp-user-query.php
28.83
KB
-rw-r--r--
class-wp-user.php
20.19
KB
-rw-r--r--
class-wp-walker.php
12.09
KB
-rw-r--r--
class-wp-widget-factory.php
3.66
KB
-rw-r--r--
class-wp-widget.php
17.24
KB
-rw-r--r--
class-wp-xmlrpc-server.php
196.66
KB
-rw-r--r--
class-wp.php
23.2
KB
-rw-r--r--
class-wpglobus-plus-acf.php
1.57
KB
-rw-r--r--
class-wpglobus-plus-menu.php
2.48
KB
-rw-r--r--
class-wpglobus-plus-publish.ph...
15.03
KB
-rw-r--r--
class-wpglobus-plus-slug-acf.p...
1.14
KB
-rw-r--r--
class-wpglobus-plus-slug.php
22.27
KB
-rw-r--r--
class-wpglobus-plus-tablepress...
2.97
KB
-rw-r--r--
class-wpglobus-plus-wpglobedit...
7.36
KB
-rw-r--r--
class-wpglobus-plus-wpseo23.ph...
17.62
KB
-rw-r--r--
class-wpglobus-plus-yoastseo30...
1.25
KB
-rw-r--r--
class.wp-dependencies.php
10.92
KB
-rw-r--r--
class.wp-scripts.php
13.83
KB
-rw-r--r--
class.wp-styles.php
9.56
KB
-rw-r--r--
comment-template.php
86.15
KB
-rw-r--r--
comment.php
108.76
KB
-rw-r--r--
compat.php
15.85
KB
-rw-r--r--
cron.php
16.08
KB
-rw-r--r--
date.php
34.18
KB
-rw-r--r--
default-constants.php
9.34
KB
-rw-r--r--
default-filters.php
26.61
KB
-rw-r--r--
default-widgets.php
2.13
KB
-rw-r--r--
deprecated.php
110.57
KB
-rw-r--r--
embed-template.php
344
B
-rw-r--r--
embed.php
43.31
KB
-rw-r--r--
feed-atom-comments.php
5.23
KB
-rw-r--r--
feed-atom.php
3.02
KB
-rw-r--r--
feed-rdf.php
2.61
KB
-rw-r--r--
feed-rss.php
1.22
KB
-rw-r--r--
feed-rss2-comments.php
3.97
KB
-rw-r--r--
feed-rss2.php
3.68
KB
-rw-r--r--
feed.php
19.09
KB
-rw-r--r--
formatting.php
264.84
KB
-rw-r--r--
functions.php
183.38
KB
-rw-r--r--
functions.wp-scripts.php
11.21
KB
-rw-r--r--
functions.wp-styles.php
7.89
KB
-rw-r--r--
general-template.php
135.77
KB
-rw-r--r--
http.php
21.65
KB
-rw-r--r--
kses.php
48.93
KB
-rw-r--r--
l10n.php
42.46
KB
-rw-r--r--
link-template.php
133.25
KB
-rw-r--r--
load.php
33.11
KB
-rw-r--r--
locale.php
141
B
-rw-r--r--
media-template.php
45.03
KB
-rw-r--r--
media.php
137.07
KB
-rw-r--r--
meta.php
41.76
KB
-rw-r--r--
ms-blogs.php
38.26
KB
-rw-r--r--
ms-default-constants.php
4.6
KB
-rw-r--r--
ms-default-filters.php
4.54
KB
-rw-r--r--
ms-deprecated.php
15.32
KB
-rw-r--r--
ms-files.php
2.56
KB
-rw-r--r--
ms-functions.php
89
KB
-rw-r--r--
ms-load.php
18.8
KB
-rw-r--r--
ms-settings.php
3.99
KB
-rw-r--r--
nav-menu-template.php
20.38
KB
-rw-r--r--
nav-menu.php
38.6
KB
-rw-r--r--
option.php
66.16
KB
-rw-r--r--
pluggable-deprecated.php
6.12
KB
-rw-r--r--
pluggable.php
89.97
KB
-rw-r--r--
plugin.php
30.93
KB
-rw-r--r--
post-formats.php
6.81
KB
-rw-r--r--
post-template.php
57.35
KB
-rw-r--r--
post-thumbnail-template.php
8.02
KB
-rw-r--r--
post.php
214.7
KB
-rw-r--r--
query.php
25.02
KB
-rw-r--r--
registration-functions.php
178
B
-rw-r--r--
registration.php
178
B
-rw-r--r--
rest-api.php
37.63
KB
-rw-r--r--
revision.php
20.81
KB
-rw-r--r--
rewrite.php
17.09
KB
-rw-r--r--
rss-functions.php
191
B
-rw-r--r--
rss.php
22.66
KB
-rw-r--r--
script-loader.php
78.28
KB
-rw-r--r--
session.php
242
B
-rw-r--r--
shortcodes.php
19.96
KB
-rw-r--r--
spl-autoload-compat.php
2.51
KB
-rw-r--r--
taxonomy.php
147.09
KB
-rw-r--r--
template-loader.php
2.83
KB
-rw-r--r--
template.php
19.33
KB
-rw-r--r--
theme.php
97.44
KB
-rw-r--r--
update.php
24.11
KB
-rw-r--r--
user.php
118.2
KB
-rw-r--r--
vars.php
5.45
KB
-rw-r--r--
version.php
649
B
-rw-r--r--
widgets.php
54.14
KB
-rw-r--r--
wlwmanifest.xml
1.02
KB
-rw-r--r--
wp-db.php
97.14
KB
-rw-r--r--
wp-diff.php
661
B
-rw-r--r--
wpglobus-plus-acf.php
296
B
-rw-r--r--
wpglobus-plus-main.php
10.57
KB
-rw-r--r--
wpglobus-plus-menu.php
205
B
-rw-r--r--
wpglobus-plus-publish.php
217
B
-rw-r--r--
wpglobus-plus-slug.php
360
B
-rw-r--r--
wpglobus-plus-tablepress-funct...
1.14
KB
-rw-r--r--
wpglobus-plus-tablepress.php
226
B
-rw-r--r--
wpglobus-plus-wpglobeditor.php
2.29
KB
-rw-r--r--
wpglobus-plus-wpseo.php
884
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : class-wp-customize-control.php
<?php /** * WordPress Customize Control classes * * @package WordPress * @subpackage Customize * @since 3.4.0 */ /** * Customize Control class. * * @since 3.4.0 */ class WP_Customize_Control { /** * Incremented with each new class instantiation, then stored in $instance_number. * * Used when sorting two instances whose priorities are equal. * * @since 4.1.0 * * @static * @var int */ protected static $instance_count = 0; /** * Order in which this instance was created in relation to other instances. * * @since 4.1.0 * @var int */ public $instance_number; /** * Customizer manager. * * @since 3.4.0 * @var WP_Customize_Manager */ public $manager; /** * Control ID. * * @since 3.4.0 * @var string */ public $id; /** * All settings tied to the control. * * @since 3.4.0 * @var array */ public $settings; /** * The primary setting for the control (if there is one). * * @since 3.4.0 * @var string */ public $setting = 'default'; /** * Capability required to use this control. * * Normally this is empty and the capability is derived from the capabilities * of the associated `$settings`. * * @since 4.5.0 * @var string */ public $capability; /** * Order priority to load the control in Customizer. * * @since 3.4.0 * @var int */ public $priority = 10; /** * Section the control belongs to. * * @since 3.4.0 * @var string */ public $section = ''; /** * Label for the control. * * @since 3.4.0 * @var string */ public $label = ''; /** * Description for the control. * * @since 4.0.0 * @var string */ public $description = ''; /** * List of choices for 'radio' or 'select' type controls, where values are the keys, and labels are the values. * * @since 3.4.0 * @var array */ public $choices = array(); /** * List of custom input attributes for control output, where attribute names are the keys and values are the values. * * Not used for 'checkbox', 'radio', 'select', 'textarea', or 'dropdown-pages' control types. * * @since 4.0.0 * @var array */ public $input_attrs = array(); /** * Show UI for adding new content, currently only used for the dropdown-pages control. * * @since 4.7.0 * @var bool */ public $allow_addition = false; /** * @deprecated It is better to just call the json() method * @since 3.4.0 * @var array */ public $json = array(); /** * Control's Type. * * @since 3.4.0 * @var string */ public $type = 'text'; /** * Callback. * * @since 4.0.0 * * @see WP_Customize_Control::active() * * @var callable Callback is called with one argument, the instance of * WP_Customize_Control, and returns bool to indicate whether * the control is active (such as it relates to the URL * currently being previewed). */ public $active_callback = ''; /** * Constructor. * * Supplied `$args` override class property defaults. * * If `$args['settings']` is not defined, use the $id as the setting ID. * * @since 3.4.0 * * @param WP_Customize_Manager $manager Customizer bootstrap instance. * @param string $id Control ID. * @param array $args { * Optional. Arguments to override class property defaults. * * @type int $instance_number Order in which this instance was created in relation * to other instances. * @type WP_Customize_Manager $manager Customizer bootstrap instance. * @type string $id Control ID. * @type array $settings All settings tied to the control. If undefined, `$id` will * be used. * @type string $setting The primary setting for the control (if there is one). * Default 'default'. * @type int $priority Order priority to load the control. Default 10. * @type string $section Section the control belongs to. Default empty. * @type string $label Label for the control. Default empty. * @type string $description Description for the control. Default empty. * @type array $choices List of choices for 'radio' or 'select' type controls, where * values are the keys, and labels are the values. * Default empty array. * @type array $input_attrs List of custom input attributes for control output, where * attribute names are the keys and values are the values. Not * used for 'checkbox', 'radio', 'select', 'textarea', or * 'dropdown-pages' control types. Default empty array. * @type array $json Deprecated. Use WP_Customize_Control::json() instead. * @type string $type Control type. Core controls include 'text', 'checkbox', * 'textarea', 'radio', 'select', and 'dropdown-pages'. Additional * input types such as 'email', 'url', 'number', 'hidden', and * 'date' are supported implicitly. Default 'text'. * } */ public function __construct( $manager, $id, $args = array() ) { $keys = array_keys( get_object_vars( $this ) ); foreach ( $keys as $key ) { if ( isset( $args[ $key ] ) ) { $this->$key = $args[ $key ]; } } $this->manager = $manager; $this->id = $id; if ( empty( $this->active_callback ) ) { $this->active_callback = array( $this, 'active_callback' ); } self::$instance_count += 1; $this->instance_number = self::$instance_count; // Process settings. if ( ! isset( $this->settings ) ) { $this->settings = $id; } $settings = array(); if ( is_array( $this->settings ) ) { foreach ( $this->settings as $key => $setting ) { $settings[ $key ] = $this->manager->get_setting( $setting ); } } else if ( is_string( $this->settings ) ) { $this->setting = $this->manager->get_setting( $this->settings ); $settings['default'] = $this->setting; } $this->settings = $settings; } /** * Enqueue control related scripts/styles. * * @since 3.4.0 */ public function enqueue() {} /** * Check whether control is active to current Customizer preview. * * @since 4.0.0 * * @return bool Whether the control is active to the current preview. */ final public function active() { $control = $this; $active = call_user_func( $this->active_callback, $this ); /** * Filters response of WP_Customize_Control::active(). * * @since 4.0.0 * * @param bool $active Whether the Customizer control is active. * @param WP_Customize_Control $control WP_Customize_Control instance. */ $active = apply_filters( 'customize_control_active', $active, $control ); return $active; } /** * Default callback used when invoking WP_Customize_Control::active(). * * Subclasses can override this with their specific logic, or they may * provide an 'active_callback' argument to the constructor. * * @since 4.0.0 * * @return true Always true. */ public function active_callback() { return true; } /** * Fetch a setting's value. * Grabs the main setting by default. * * @since 3.4.0 * * @param string $setting_key * @return mixed The requested setting's value, if the setting exists. */ final public function value( $setting_key = 'default' ) { if ( isset( $this->settings[ $setting_key ] ) ) { return $this->settings[ $setting_key ]->value(); } } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 3.4.0 */ public function to_json() { $this->json['settings'] = array(); foreach ( $this->settings as $key => $setting ) { $this->json['settings'][ $key ] = $setting->id; } $this->json['type'] = $this->type; $this->json['priority'] = $this->priority; $this->json['active'] = $this->active(); $this->json['section'] = $this->section; $this->json['content'] = $this->get_content(); $this->json['label'] = $this->label; $this->json['description'] = $this->description; $this->json['instanceNumber'] = $this->instance_number; if ( 'dropdown-pages' === $this->type ) { $this->json['allow_addition'] = $this->allow_addition; } } /** * Get the data to export to the client via JSON. * * @since 4.1.0 * * @return array Array of parameters passed to the JavaScript. */ public function json() { $this->to_json(); return $this->json; } /** * Checks if the user can use this control. * * Returns false if the user cannot manipulate one of the associated settings, * or if one of the associated settings does not exist. Also returns false if * the associated section does not exist or if its capability check returns * false. * * @since 3.4.0 * * @return bool False if theme doesn't support the control or user doesn't have the required permissions, otherwise true. */ final public function check_capabilities() { if ( ! empty( $this->capability ) && ! current_user_can( $this->capability ) ) { return false; } foreach ( $this->settings as $setting ) { if ( ! $setting || ! $setting->check_capabilities() ) { return false; } } $section = $this->manager->get_section( $this->section ); if ( isset( $section ) && ! $section->check_capabilities() ) { return false; } return true; } /** * Get the control's content for insertion into the Customizer pane. * * @since 4.1.0 * * @return string Contents of the control. */ final public function get_content() { ob_start(); $this->maybe_render(); return trim( ob_get_clean() ); } /** * Check capabilities and render the control. * * @since 3.4.0 * @uses WP_Customize_Control::render() */ final public function maybe_render() { if ( ! $this->check_capabilities() ) return; /** * Fires just before the current Customizer control is rendered. * * @since 3.4.0 * * @param WP_Customize_Control $this WP_Customize_Control instance. */ do_action( 'customize_render_control', $this ); /** * Fires just before a specific Customizer control is rendered. * * The dynamic portion of the hook name, `$this->id`, refers to * the control ID. * * @since 3.4.0 * * @param WP_Customize_Control $this WP_Customize_Control instance. */ do_action( "customize_render_control_{$this->id}", $this ); $this->render(); } /** * Renders the control wrapper and calls $this->render_content() for the internals. * * @since 3.4.0 */ protected function render() { $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); $class = 'customize-control customize-control-' . $this->type; printf( '<li id="%s" class="%s">', esc_attr( $id ), esc_attr( $class ) ); $this->render_content(); echo '</li>'; } /** * Get the data link attribute for a setting. * * @since 3.4.0 * @since 4.9.0 Return a `data-customize-setting-key-link` attribute if a setting is not registered for the supplied setting key. * * @param string $setting_key * @return string Data link parameter, a `data-customize-setting-link` attribute if the `$setting_key` refers to a pre-registered setting, * and a `data-customize-setting-key-link` attribute if the setting is not yet registered. */ public function get_link( $setting_key = 'default' ) { if ( isset( $this->settings[ $setting_key ] ) && $this->settings[ $setting_key ] instanceof WP_Customize_Setting ) { return 'data-customize-setting-link="' . esc_attr( $this->settings[ $setting_key ]->id ) . '"'; } else { return 'data-customize-setting-key-link="' . esc_attr( $setting_key ) . '"'; } } /** * Render the data link attribute for the control's input element. * * @since 3.4.0 * @uses WP_Customize_Control::get_link() * * @param string $setting_key */ public function link( $setting_key = 'default' ) { echo $this->get_link( $setting_key ); } /** * Render the custom attributes for the control's input element. * * @since 4.0.0 */ public function input_attrs() { foreach ( $this->input_attrs as $attr => $value ) { echo $attr . '="' . esc_attr( $value ) . '" '; } } /** * Render the control's content. * * Allows the content to be overridden without having to rewrite the wrapper in `$this::render()`. * * Supports basic input types `text`, `checkbox`, `textarea`, `radio`, `select` and `dropdown-pages`. * Additional input types such as `email`, `url`, `number`, `hidden` and `date` are supported implicitly. * * Control content can alternately be rendered in JS. See WP_Customize_Control::print_template(). * * @since 3.4.0 */ protected function render_content() { $input_id = '_customize-input-' . $this->id; $description_id = '_customize-description-' . $this->id; $describedby_attr = ( ! empty( $this->description ) ) ? ' aria-describedby="' . esc_attr( $description_id ) . '" ' : ''; switch ( $this->type ) { case 'checkbox': ?> <span class="customize-inside-control-row"> <input id="<?php echo esc_attr( $input_id ); ?>" <?php echo $describedby_attr; ?> type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> <?php checked( $this->value() ); ?> /> <label for="<?php echo esc_attr( $input_id ); ?>"><?php echo esc_html( $this->label ); ?></label> <?php if ( ! empty( $this->description ) ) : ?> <span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span> <?php endif; ?> </span> <?php break; case 'radio': if ( empty( $this->choices ) ) { return; } $name = '_customize-radio-' . $this->id; ?> <?php if ( ! empty( $this->label ) ) : ?> <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> <?php endif; ?> <?php if ( ! empty( $this->description ) ) : ?> <span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description ; ?></span> <?php endif; ?> <?php foreach ( $this->choices as $value => $label ) : ?> <span class="customize-inside-control-row"> <input id="<?php echo esc_attr( $input_id . '-radio-' . $value ); ?>" type="radio" <?php echo $describedby_attr; ?> value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" <?php $this->link(); ?> <?php checked( $this->value(), $value ); ?> /> <label for="<?php echo esc_attr( $input_id . '-radio-' . $value ); ?>"><?php echo esc_html( $label ); ?></label> </span> <?php endforeach; ?> <?php break; case 'select': if ( empty( $this->choices ) ) { return; } ?> <?php if ( ! empty( $this->label ) ) : ?> <label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label> <?php endif; ?> <?php if ( ! empty( $this->description ) ) : ?> <span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span> <?php endif; ?> <select id="<?php echo esc_attr( $input_id ); ?>" <?php echo $describedby_attr; ?> <?php $this->link(); ?>> <?php foreach ( $this->choices as $value => $label ) { echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>'; } ?> </select> <?php break; case 'textarea': ?> <?php if ( ! empty( $this->label ) ) : ?> <label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label> <?php endif; ?> <?php if ( ! empty( $this->description ) ) : ?> <span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span> <?php endif; ?> <textarea id="<?php echo esc_attr( $input_id ); ?>" rows="5" <?php echo $describedby_attr; ?> <?php $this->input_attrs(); ?> <?php $this->link(); ?>> <?php echo esc_textarea( $this->value() ); ?> </textarea> <?php break; case 'dropdown-pages': ?> <?php if ( ! empty( $this->label ) ) : ?> <label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label> <?php endif; ?> <?php if ( ! empty( $this->description ) ) : ?> <span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span> <?php endif; ?> <?php $dropdown_name = '_customize-dropdown-pages-' . $this->id; $show_option_none = __( '— Select —' ); $option_none_value = '0'; $dropdown = wp_dropdown_pages( array( 'name' => $dropdown_name, 'echo' => 0, 'show_option_none' => $show_option_none, 'option_none_value' => $option_none_value, 'selected' => $this->value(), ) ); if ( empty( $dropdown ) ) { $dropdown = sprintf( '<select id="%1$s" name="%1$s">', esc_attr( $dropdown_name ) ); $dropdown .= sprintf( '<option value="%1$s">%2$s</option>', esc_attr( $option_none_value ), esc_html( $show_option_none ) ); $dropdown .= '</select>'; } // Hackily add in the data link parameter. $dropdown = str_replace( '<select', '<select ' . $this->get_link() . ' id="' . esc_attr( $input_id ) . '" ' . $describedby_attr, $dropdown ); // Even more hacikly add auto-draft page stubs. // @todo Eventually this should be removed in favor of the pages being injected into the underlying get_pages() call. See <https://github.com/xwp/wp-customize-posts/pull/250>. $nav_menus_created_posts_setting = $this->manager->get_setting( 'nav_menus_created_posts' ); if ( $nav_menus_created_posts_setting && current_user_can( 'publish_pages' ) ) { $auto_draft_page_options = ''; foreach ( $nav_menus_created_posts_setting->value() as $auto_draft_page_id ) { $post = get_post( $auto_draft_page_id ); if ( $post && 'page' === $post->post_type ) { $auto_draft_page_options .= sprintf( '<option value="%1$s">%2$s</option>', esc_attr( $post->ID ), esc_html( $post->post_title ) ); } } if ( $auto_draft_page_options ) { $dropdown = str_replace( '</select>', $auto_draft_page_options . '</select>', $dropdown ); } } echo $dropdown; ?> <?php if ( $this->allow_addition && current_user_can( 'publish_pages' ) && current_user_can( 'edit_theme_options' ) ) : // Currently tied to menus functionality. ?> <button type="button" class="button-link add-new-toggle"> <?php /* translators: %s: add new page label */ printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item ); ?> </button> <div class="new-content-item"> <label for="create-input-<?php echo $this->id; ?>"><span class="screen-reader-text"><?php _e( 'New page title' ); ?></span></label> <input type="text" id="create-input-<?php echo $this->id; ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title…' ); ?>"> <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> </div> <?php endif; ?> <?php break; default: ?> <?php if ( ! empty( $this->label ) ) : ?> <label for="<?php echo esc_attr( $input_id ); ?>" class="customize-control-title"><?php echo esc_html( $this->label ); ?></label> <?php endif; ?> <?php if ( ! empty( $this->description ) ) : ?> <span id="<?php echo esc_attr( $description_id ); ?>" class="description customize-control-description"><?php echo $this->description; ?></span> <?php endif; ?> <input id="<?php echo esc_attr( $input_id ); ?>" type="<?php echo esc_attr( $this->type ); ?>" <?php echo $describedby_attr; ?> <?php $this->input_attrs(); ?> <?php if ( ! isset( $this->input_attrs['value'] ) ) : ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php endif; ?> <?php $this->link(); ?> /> <?php break; } } /** * Render the control's JS template. * * This function is only run for control types that have been registered with * WP_Customize_Manager::register_control_type(). * * In the future, this will also print the template for the control's container * element and be override-able. * * @since 4.1.0 */ final public function print_template() { ?> <script type="text/html" id="tmpl-customize-control-<?php echo $this->type; ?>-content"> <?php $this->content_template(); ?> </script> <?php } /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding WP_Customize_Control::to_json(). * * @see WP_Customize_Control::print_template() * * @since 4.1.0 */ protected function content_template() {} } /** * WP_Customize_Color_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' ); /** * WP_Customize_Media_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' ); /** * WP_Customize_Upload_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' ); /** * WP_Customize_Image_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' ); /** * WP_Customize_Background_Image_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' ); /** * WP_Customize_Background_Position_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-position-control.php' ); /** * WP_Customize_Cropped_Image_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' ); /** * WP_Customize_Site_Icon_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' ); /** * WP_Customize_Header_Image_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' ); /** * WP_Customize_Theme_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' ); /** * WP_Widget_Area_Customize_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' ); /** * WP_Widget_Form_Customize_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' ); /** * WP_Customize_Nav_Menu_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' ); /** * WP_Customize_Nav_Menu_Item_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' ); /** * WP_Customize_Nav_Menu_Location_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' ); /** * WP_Customize_Nav_Menu_Name_Control class. * * As this file is deprecated, it will trigger a deprecation notice if instantiated. In a subsequent * release, the require_once() here will be removed and _deprecated_file() will be called if file is * required at all. * * @deprecated 4.9.0 This file is no longer used due to new menu creation UX. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' ); /** * WP_Customize_Nav_Menu_Locations_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-locations-control.php' ); /** * WP_Customize_Nav_Menu_Auto_Add_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' ); /** * WP_Customize_Date_Time_Control class. */ require_once( ABSPATH . WPINC . '/customize/class-wp-customize-date-time-control.php' );
Close