/home/altere25/berryglowbeauty.com/wp-includes
NameSizeModeActions
blocks/-0755rm
certificates/-0755rm
css/-0755rm
customize/-0755rm
fonts/-0755rm
ID3/-0755rm
images/-0755rm
IXR/-0755rm
js/-0755rm
pomo/-0755rm
random_compat/-0755rm
Requests/-0755rm
rest-api/-0755rm
SimplePie/-0755rm
sodium_compat/-0755rm
Text/-0755rm
theme-compat/-0755rm
widgets/-0755rm
.htaccess1780644editdlrm
admin-bar.php309520644editdlrm
atomlib.php118400644editdlrm
author-template.php169950644editdlrm
blocks.php192420644editdlrm
bookmark-template.php124970644editdlrm
bookmark.php150140644editdlrm
cache.php218740644editdlrm
canonical.php294740644editdlrm
capabilities.php340890644editdlrm
category-template.php526380644editdlrm
category.php123780644editdlrm
class-feed.php5440644editdlrm
class-http.php387630644editdlrm
class-IXR.php25730644editdlrm
class-json.php433900644editdlrm
class-oembed.php4100644editdlrm
class-phpass.php73170644editdlrm
class-phpmailer.php1485920644editdlrm
class-pop3.php209190644editdlrm
class-requests.php297980644editdlrm
class-simplepie.php892640644editdlrm
class-smtp.php409190644editdlrm
class-snoopy.php377850644editdlrm
class-walker-category-dropdown.php21270644editdlrm
class-walker-category.php78740644editdlrm
class-walker-comment.php136850644editdlrm
class-walker-nav-menu.php86690644editdlrm
class-walker-page-dropdown.php22990644editdlrm
class-walker-page.php70330644editdlrm
class-wp-admin-bar.php169510644editdlrm
class-wp-ajax-response.php52350644editdlrm
class-wp-block-parser.php152150644editdlrm
class-wp-block-styles-registry.php46630644editdlrm
class-wp-block-type-registry.php50910644editdlrm
class-wp-block-type.php48150644editdlrm
class-wp-comment-query.php445140644editdlrm
class-wp-comment.php89610644editdlrm
class-wp-customize-control.php250540644editdlrm
class-wp-customize-manager.php2032520644editdlrm
class-wp-customize-nav-menus.php549630644editdlrm
class-wp-customize-panel.php95960644editdlrm
class-wp-customize-section.php101680644editdlrm
class-wp-customize-setting.php281910644editdlrm
class-wp-customize-widgets.php669780644editdlrm
class-wp-date-query.php352760644editdlrm
class-wp-dependency.php25010644editdlrm
class-wp-editor.php682190644editdlrm
class-wp-embed.php147460644editdlrm
class-wp-error.php49230644editdlrm
class-wp-fatal-error-handler.php74290644editdlrm
class-wp-feed-cache-transient.php25600644editdlrm
class-wp-feed-cache.php7490644editdlrm
class-wp-hook.php142940644editdlrm
class-wp-http-cookie.php71460644editdlrm
class-wp-http-curl.php123270644editdlrm
class-wp-http-encoding.php65420644editdlrm
class-wp-http-ixr-client.php33310644editdlrm
class-wp-http-proxy.php60770644editdlrm
class-wp-http-requests-hooks.php19490644editdlrm
class-wp-http-requests-response.php43430644editdlrm
class-wp-http-response.php29510644editdlrm
class-wp-http-streams.php160700644editdlrm
class-wp-image-editor-gd.php138860644editdlrm
class-wp-image-editor-imagick.php288280644editdlrm
class-wp-image-editor.php139110644editdlrm
class-wp-list-util.php64070644editdlrm
class-wp-locale-switcher.php50220644editdlrm
class-wp-locale.php138930644editdlrm
class-wp-matchesmapregex.php18040644editdlrm
class-wp-meta-query.php278470644editdlrm
class-wp-metadata-lazyloader.php53840644editdlrm
class-wp-network-query.php183680644editdlrm
class-wp-network.php122840644editdlrm
class-wp-oembed-controller.php60270644editdlrm
class-wp-oembed.php301740644editdlrm
class-wp-paused-extensions-storage.php49330644editdlrm
class-wp-post-type.php195270644editdlrm
class-wp-post.php64410644editdlrm
class-wp-query.php1310830644editdlrm
class-wp-recovery-mode-cookie-service.php64590644editdlrm
class-wp-recovery-mode-email-service.php101220644editdlrm
class-wp-recovery-mode-key-service.php42840644editdlrm
class-wp-recovery-mode-link-service.php33700644editdlrm
class-wp-recovery-mode.php113580644editdlrm
class-wp-rewrite.php598930644editdlrm
class-wp-role.php26610644editdlrm
class-wp-roles.php83000644editdlrm
class-wp-session-tokens.php74300644editdlrm
class-wp-simplepie-file.php23260644editdlrm
class-wp-simplepie-sanitize-kses.php17750644editdlrm
class-wp-site-query.php285310644editdlrm
class-wp-site.php73670644editdlrm
class-wp-tax-query.php194400644editdlrm
class-wp-taxonomy.php106880644editdlrm
class-wp-term-query.php354230644editdlrm
class-wp-term.php52650644editdlrm
class-wp-text-diff-renderer-inline.php7160644editdlrm
class-wp-text-diff-renderer-table.php167960644editdlrm
class-wp-theme.php509730644editdlrm
class-wp-user-meta-session-tokens.php29900644editdlrm
class-wp-user-query.php312980644editdlrm
class-wp-user-request.php19960644editdlrm
class-wp-user.php217660644editdlrm
class-wp-walker.php127180644editdlrm
class-wp-widget-factory.php28530644editdlrm
class-wp-widget.php178420644editdlrm
class-wp-xmlrpc-server.php2100720644editdlrm
class-wp.php245510644editdlrm
class.wp-dependencies.php115240644editdlrm
class.wp-scripts.php177560644editdlrm
class.wp-styles.php105320644editdlrm
comment-template.php916400644editdlrm
comment.php1172330644editdlrm
compat.php129820644editdlrm
cron.php324510644editdlrm
date.php4090644editdlrm
default-constants.php101220644editdlrm
default-filters.php258940644editdlrm
default-widgets.php21800644editdlrm
deprecated.php1146440644editdlrm
embed-template.php3440644editdlrm
embed.php473670644editdlrm
error-protection.php33870644editdlrm
error_log17640644editdlrm
feed-atom-comments.php54050644editdlrm
feed-atom.php30810644editdlrm
feed-rdf.php26600644editdlrm
feed-rss.php11900644editdlrm
feed-rss2-comments.php41500644editdlrm
feed-rss2.php37820644editdlrm
feed.php220220644editdlrm
formatting.php2984280644editdlrm
functions.php2281550644editdlrm
functions.wp-scripts.php128240644editdlrm
functions.wp-styles.php82190644editdlrm
general-template.php1524650644editdlrm
http.php243240644editdlrm
kses.php587230644editdlrm
l10n.php531020644editdlrm
link-template.php1435240644editdlrm
load.php432910644editdlrm
locale.php1620644editdlrm
media-template.php577100644editdlrm
media.php1497170644editdlrm
meta.php477490644editdlrm
ms-blogs.php244130644editdlrm
ms-default-constants.php47850644editdlrm
ms-default-filters.php64140644editdlrm
ms-deprecated.php213440644editdlrm
ms-files.php26490644editdlrm
ms-functions.php876380644editdlrm
ms-load.php196240644editdlrm
ms-network.php36580644editdlrm
ms-settings.php41340644editdlrm
ms-site.php430730644editdlrm
nav-menu-template.php220530644editdlrm
nav-menu.php413170644editdlrm
option.php701450644editdlrm
pluggable-deprecated.php62620644editdlrm
pluggable.php998330644editdlrm
plugin.php323170644editdlrm
post-formats.php70530644editdlrm
post-template.php629150644editdlrm
post-thumbnail-template.php89880644editdlrm
post.php2446110644editdlrm
query.php329290644editdlrm
registration-functions.php2020644editdlrm
registration.php2020644editdlrm
rest-api.php466300644editdlrm
revision.php216860644editdlrm
rewrite.php180300644editdlrm
rss-functions.php2140644editdlrm
rss.php232080644editdlrm
script-loader.php1135510644editdlrm
session.php2640644editdlrm
shortcodes.php217040644editdlrm
spl-autoload-compat.php4430644editdlrm
taxonomy.php1579610644editdlrm
template-loader.php31900644editdlrm
template.php210460644editdlrm
theme.php1048760644editdlrm
update.php255730644editdlrm
user.php1245320644editdlrm
vars.php58150644editdlrm
version.php7620644editdlrm
widgets.php587500644editdlrm
wlwmanifest.xml10450644editdlrm
wp-db.php1038290644editdlrm
wp-diff.php6620644editdlrm
Edit: /home/altere25/berryglowbeauty.com/wp-includes/class-wp-customize-control.php (25054B)
$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; } /** * 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( '
  • ', esc_attr( $id ), esc_attr( $class ) ); $this->render_content(); echo '
  • '; } /** * 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': ?> 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; ?> 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 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 . $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(); ?> />