/home/fortodpl/forcutestyles.com/wp-includes
NameSizeModeActions
abilities-api/-0755rm
ai-client/-0755rm
assets/-0755rm
block-bindings/-0755rm
block-patterns/-0755rm
block-supports/-0755rm
blocks/-0755rm
build/-0755rm
certificates/-0755rm
css/-0755rm
customize/-0755rm
fonts/-0755rm
html-api/-0755rm
ID3/-0755rm
images/-0755rm
interactivity-api/-0755rm
IXR/-0755rm
js/-0755rm
l10n/-0755rm
php-ai-client/-0755rm
php-compat/-0755rm
PHPMailer/-0755rm
pomo/-0755rm
Requests/-0755rm
rest-api/-0755rm
SimplePie/-0755rm
sitemaps/-0755rm
sodium_compat/-0755rm
style-engine/-0755rm
Text/-0755rm
theme-compat/-0755rm
widgets/-0755rm
.htaccess1780644editdlrm
abilities-api.php328000644editdlrm
abilities.php117970644editdlrm
admin-bar.php400670644editdlrm
ai-client.php25490644editdlrm
atomlib.php121810644editdlrm
author-template.php198440644editdlrm
block-bindings.php76320644editdlrm
block-editor.php287240644editdlrm
block-i18n.json3160644editdlrm
block-patterns.php156060644editdlrm
block-template-utils.php631680644editdlrm
block-template.php182570644editdlrm
blocks.php1242050644editdlrm
bookmark-template.php127680644editdlrm
bookmark.php154270644editdlrm
cache-compat.php110210644editdlrm
cache.php134860644editdlrm
canonical.php347860644editdlrm
capabilities.php435840644editdlrm
category-template.php569900644editdlrm
category.php128340644editdlrm
class-avif-info.php300080644editdlrm
class-feed.php5390644editdlrm
class-http.php3670644editdlrm
class-IXR.php26090644editdlrm
class-json.php436760644editdlrm
class-oembed.php4010644editdlrm
class-phpass.php67710644editdlrm
class-phpmailer.php6640644editdlrm
class-pop3.php211000644editdlrm
class-requests.php22370644editdlrm
class-simplepie.php4530644editdlrm
class-smtp.php4570644editdlrm
class-snoopy.php377150644editdlrm
class-walker-category-dropdown.php24690644editdlrm
class-walker-category.php84770644editdlrm
class-walker-comment.php142210644editdlrm
class-walker-nav-menu.php120440644editdlrm
class-walker-page-dropdown.php27100644editdlrm
class-walker-page.php76120644editdlrm
class-wp-admin-bar.php180020644editdlrm
class-wp-ajax-response.php52880644editdlrm
class-wp-application-passwords.php170990644editdlrm
class-wp-block-bindings-registry.php82630644editdlrm
class-wp-block-bindings-source.php29920644editdlrm
class-wp-block-editor-context.php13500644editdlrm
class-wp-block-list.php47130644editdlrm
class-wp-block-metadata-registry.php118460644editdlrm
class-wp-block-parser-block.php25550644editdlrm
class-wp-block-parser-frame.php19940644editdlrm
class-wp-block-parser.php115250644editdlrm
class-wp-block-pattern-categories-registry.php43830644editdlrm
class-wp-block-patterns-registry.php102650644editdlrm
class-wp-block-processor.php699140644editdlrm
class-wp-block-styles-registry.php64190644editdlrm
class-wp-block-supports.php75780644editdlrm
class-wp-block-template.php21110644editdlrm
class-wp-block-templates-registry.php70800644editdlrm
class-wp-block-type-registry.php53050644editdlrm
class-wp-block-type.php172220644editdlrm
class-wp-block.php282360644editdlrm
class-wp-classic-to-block-menu-converter.php40260644editdlrm
class-wp-comment-query.php490400644editdlrm
class-wp-comment.php172490644editdlrm
class-wp-connector-registry.php151810644editdlrm
class-wp-customize-control.php261120644editdlrm
class-wp-customize-manager.php2029080644editdlrm
class-wp-customize-nav-menus.php580340644editdlrm
class-wp-customize-panel.php107030644editdlrm
class-wp-customize-section.php112090644editdlrm
class-wp-customize-setting.php299560644editdlrm
class-wp-customize-widgets.php725960644editdlrm
class-wp-date-query.php359700644editdlrm
class-wp-dependencies.php170890644editdlrm
class-wp-dependency.php26530644editdlrm
class-wp-duotone.php408360644editdlrm
class-wp-editor.php722280644editdlrm
class-wp-embed.php159080644editdlrm
class-wp-error.php75140644editdlrm
class-wp-exception.php2530644editdlrm
class-wp-fatal-error-handler.php81500644editdlrm
class-wp-feed-cache-transient.php33040644editdlrm
class-wp-feed-cache.php9690644editdlrm
class-wp-filter-sentinel.php7600644editdlrm
class-wp-hook.php174720644editdlrm
class-wp-http-cookie.php72690644editdlrm
class-wp-http-curl.php132610644editdlrm
class-wp-http-encoding.php66890644editdlrm
class-wp-http-ixr-client.php35160644editdlrm
class-wp-http-proxy.php59800644editdlrm
class-wp-http-requests-hooks.php20220644editdlrm
class-wp-http-requests-response.php42430644editdlrm
class-wp-http-response.php29770644editdlrm
class-wp-http-streams.php167640644editdlrm
class-wp-http.php416410644editdlrm
class-wp-icon-collections-registry.php58050644editdlrm
class-wp-icons-registry.php99030644editdlrm
class-wp-image-editor-gd.php207410644editdlrm
class-wp-image-editor-imagick.php434540644editdlrm
class-wp-image-editor.php174560644editdlrm
class-wp-list-util.php74430644editdlrm
class-wp-locale-switcher.php67760644editdlrm
class-wp-locale.php168480644editdlrm
class-wp-matchesmapregex.php18280644editdlrm
class-wp-meta-query.php305070644editdlrm
class-wp-metadata-lazyloader.php68330644editdlrm
class-wp-navigation-fallback.php91930644editdlrm
class-wp-network-query.php199890644editdlrm
class-wp-network.php124110644editdlrm
class-wp-object-cache.php175240644editdlrm
class-wp-oembed-controller.php69050644editdlrm
class-wp-oembed.php343720644editdlrm
class-wp-paused-extensions-storage.php50670644editdlrm
class-wp-phpmailer.php43480644editdlrm
class-wp-plugin-dependencies.php252090644editdlrm
class-wp-post-type.php306720644editdlrm
class-wp-post.php88060644editdlrm
class-wp-query.php1641480644editdlrm
class-wp-recovery-mode-cookie-service.php68770644editdlrm
class-wp-recovery-mode-email-service.php111620644editdlrm
class-wp-recovery-mode-key-service.php49140644editdlrm
class-wp-recovery-mode-link-service.php35230644editdlrm
class-wp-recovery-mode.php114600644editdlrm
class-wp-rewrite.php636930644editdlrm
class-wp-role.php25230644editdlrm
class-wp-roles.php93260644editdlrm
class-wp-script-modules.php407430644editdlrm
class-wp-scripts.php367540644editdlrm
class-wp-session-tokens.php73190644editdlrm
class-wp-simplepie-file.php35520644editdlrm
class-wp-simplepie-sanitize-kses.php19030644editdlrm
class-wp-site-query.php314820644editdlrm
class-wp-site.php78360644editdlrm
class-wp-speculation-rules.php78840644editdlrm
class-wp-styles.php133160644editdlrm
class-wp-tax-query.php195770644editdlrm
class-wp-taxonomy.php185590644editdlrm
class-wp-term-query.php407510644editdlrm
class-wp-term.php52630644editdlrm
class-wp-text-diff-renderer-inline.php9790644editdlrm
class-wp-text-diff-renderer-table.php189250644editdlrm
class-wp-textdomain-registry.php104810644editdlrm
class-wp-theme-json-data.php18050644editdlrm
class-wp-theme-json-resolver.php356920644editdlrm
class-wp-theme-json-schema.php73670644editdlrm
class-wp-theme-json.php2215060644editdlrm
class-wp-theme.php658110644editdlrm
class-wp-token-map.php290320644editdlrm
class-wp-url-pattern-prefixer.php48020644editdlrm
class-wp-user-meta-session-tokens.php29540644editdlrm
class-wp-user-query.php441020644editdlrm
class-wp-user-request.php23420644editdlrm
class-wp-user.php231890644editdlrm
class-wp-view-config-data.php294270644editdlrm
class-wp-walker.php132920644editdlrm
class-wp-widget-factory.php33430644editdlrm
class-wp-widget.php184520644editdlrm
class-wp-xmlrpc-server.php2162720644editdlrm
class-wp.php263710644editdlrm
class-wpdb.php1214370644editdlrm
class.wp-dependencies.php3730644editdlrm
class.wp-scripts.php3430644editdlrm
class.wp-styles.php3380644editdlrm
comment-template.php1032110644editdlrm
comment.php1506300644editdlrm
compat-utf8.php193860644editdlrm
compat.php224790644editdlrm
connectors.php329220644editdlrm
cron.php462660644editdlrm
date.php4000644editdlrm
default-constants.php113650644editdlrm
default-filters.php395000644editdlrm
default-widgets.php22880644editdlrm
deprecated.php1939770644editdlrm
embed-template.php3380644editdlrm
embed.php392150644editdlrm
error-protection.php40920644editdlrm
feed-atom-comments.php55040644editdlrm
feed-atom.php31140644editdlrm
feed-rdf.php26680644editdlrm
feed-rss.php11890644editdlrm
feed-rss2-comments.php41360644editdlrm
feed-rss2.php37990644editdlrm
feed.php251890644editdlrm
fonts.php97890644editdlrm
formatting.php3576520644editdlrm
functions.php2954810644editdlrm
functions.wp-scripts.php204920644editdlrm
functions.wp-styles.php86540644editdlrm
general-template.php1834720644editdlrm
global-styles-and-settings.php207800644editdlrm
http.php289610644editdlrm
https-detection.php58570644editdlrm
https-migration.php47410644editdlrm
icons.php63340644editdlrm
json-schema.php78020644editdlrm
kses.php884970644editdlrm
l10n.php714150644editdlrm
link-template.php1601430644editdlrm
load.php564750644editdlrm
locale.php1620644editdlrm
media-template.php657590644editdlrm
media.php2368040644editdlrm
meta.php667390644editdlrm
ms-blogs.php263240644editdlrm
ms-default-constants.php49210644editdlrm
ms-default-filters.php66360644editdlrm
ms-deprecated.php217870644editdlrm
ms-files.php28570644editdlrm
ms-functions.php925300644editdlrm
ms-load.php200550644editdlrm
ms-network.php37820644editdlrm
ms-settings.php41970644editdlrm
ms-site.php417290644editdlrm
nav-menu-template.php259830644editdlrm
nav-menu.php442690644editdlrm
option.php1052460644editdlrm
pluggable-deprecated.php63240644editdlrm
pluggable.php1279190644editdlrm
plugin.php366690644editdlrm
post-formats.php70700644editdlrm
post-template.php691290644editdlrm
post-thumbnail-template.php108790644editdlrm
post.php3052150644editdlrm
query.php375540644editdlrm
registration-functions.php2000644editdlrm
registration.php2000644editdlrm
rest-api.php1029510644editdlrm
revision.php312410644editdlrm
rewrite.php195670644editdlrm
robots-template.php51850644editdlrm
rss-functions.php2770644editdlrm
rss.php232030644editdlrm
script-loader.php1635500644editdlrm
script-modules.php123110644editdlrm
session.php2580644editdlrm
shortcodes.php240340644editdlrm
sitemaps.php32380644editdlrm
speculative-loading.php118800644editdlrm
spl-autoload-compat.php4410644editdlrm
style-engine.php80450644editdlrm
taxonomy.php1783070644editdlrm
template-canvas.php5440644editdlrm
template-loader.php42670644editdlrm
template.php368240644editdlrm
theme-i18n.json18920644editdlrm
theme-previews.php28870644editdlrm
theme-templates.php40600644editdlrm
theme.json94800644editdlrm
theme.php1346410644editdlrm
update.php382690644editdlrm
user.php1803010644editdlrm
utf8.php69770644editdlrm
vars.php66000644editdlrm
version.php11010644editdlrm
view-config.php190870644editdlrm
view-transitions.php6020644editdlrm
widgets.php708660644editdlrm
wp-db.php4450644editdlrm
wp-diff.php7920644editdlrm
Edit: /home/fortodpl/forcutestyles.com/wp-includes/class-wp-customize-control.php (26112B)
$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 ); } } elseif ( is_string( $this->settings ) ) { $this->setting = $this->manager->get_setting( $this->settings ); $settings['default'] = $this->setting; } $this->settings = $settings; } /** * Enqueues control related scripts/styles. * * @since 3.4.0 */ public function enqueue() {} /** * Checks 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; } /** * Fetches 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(); } } /** * Refreshes 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; } } /** * Gets 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; } /** * Gets 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() ); } /** * Checks 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 $control 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 $control 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( '
  • ', esc_attr( $id ), esc_attr( $class ) ); $this->render_content(); echo '
  • '; } /** * Gets 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 ) . '"'; } } /** * Renders the data link attribute for the control's input element. * * @since 3.4.0 * @uses WP_Customize_Control::get_link() * * @param string $setting_key Default 'default'. */ public function link( $setting_key = 'default' ) { echo $this->get_link( $setting_key ); } /** * Renders 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 ) . '" '; } } /** * Renders 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': ?> type="checkbox" value="value() ); ?>" link(); ?> value() ); ?> /> description ) ) : ?> description; ?> choices ) ) { return; } $name = '_customize-radio-' . $this->id; ?> label ) ) : ?> label ); ?> description ) ) : ?> description; ?> choices as $value => $label ) : ?> value="" name="" link(); ?> value(), $value ); ?> /> choices ) ) { return; } ?> label ) ) : ?> description ) ) : ?> description; ?> input_attrs ) ) { $this->input_attrs['rows'] = 5; } ?> label ) ) : ?> description ) ) : ?> description; ?> label ) ) : ?> description ) ) : ?> description; ?> 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( ''; } // Hackily add in the data link parameter. $dropdown = str_replace( 'get_link() . ' id="' . esc_attr( $input_id ) . '" ' . $describedby_attr, $dropdown ); /* * Even more hackily 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 . */ $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( '', esc_attr( $post->ID ), esc_html( $post->post_title ) ); } } if ( $auto_draft_page_options ) { $dropdown = str_replace( '', $auto_draft_page_options . '', $dropdown ); } } echo $dropdown; ?> allow_addition && current_user_can( 'publish_pages' ) && current_user_can( 'edit_theme_options' ) ) : // Currently tied to menus functionality. ?>
    label ) ) : ?> description ) ) : ?> description; ?> input_attrs(); ?> input_attrs['value'] ) ) : ?> value="value() ); ?>" link(); ?> />