/var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes
NameSizeModeActions
abilities-api/-0755rm
assets/-0755rm
block-bindings/-0755rm
block-patterns/-0755rm
block-supports/-0755rm
blocks/-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-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
abilities-api.php243690644editdlrm
abilities.php79830644editdlrm
admin-bar.php369660644editdlrm
atomlib.php121810644editdlrm
author-template.php193910644editdlrm
block-bindings.php75260644editdlrm
block-editor.php292820644editdlrm
block-i18n.json3160644editdlrm
block-patterns.php132130644editdlrm
block-template-utils.php624840644editdlrm
block-template.php153590644editdlrm
blocks.php1147390644editdlrm
bookmark-template.php127680644editdlrm
bookmark.php154270644editdlrm
cache-compat.php100780644editdlrm
cache.php134860644editdlrm
canonical.php346280644editdlrm
capabilities.php436520644editdlrm
category-template.php570450644editdlrm
category.php128290644editdlrm
class-avif-info.php296150644editdlrm
class-feed.php5390644editdlrm
class-http.php3670644editdlrm
class-IXR.php26160644editdlrm
class-json.php436760644editdlrm
class-oembed.php4010644editdlrm
class-phpass.php67710644editdlrm
class-phpmailer.php6640644editdlrm
class-pop3.php211210644editdlrm
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.php178740644editdlrm
class-wp-ajax-response.php52660644editdlrm
class-wp-application-passwords.php170990644editdlrm
class-wp-block-bindings-registry.php84820644editdlrm
class-wp-block-bindings-source.php29920644editdlrm
class-wp-block-editor-context.php13500644editdlrm
class-wp-block-list.php47130644editdlrm
class-wp-block-metadata-registry.php118950644editdlrm
class-wp-block-parser-block.php25550644editdlrm
class-wp-block-parser-frame.php20170644editdlrm
class-wp-block-parser.php115160644editdlrm
class-wp-block-pattern-categories-registry.php54500644editdlrm
class-wp-block-patterns-registry.php112530644editdlrm
class-wp-block-processor.php699590644editdlrm
class-wp-block-styles-registry.php64970644editdlrm
class-wp-block-supports.php56260644editdlrm
class-wp-block-template.php20330644editdlrm
class-wp-block-templates-registry.php71930644editdlrm
class-wp-block-type-registry.php50300644editdlrm
class-wp-block-type.php172650644editdlrm
class-wp-block.php248120644editdlrm
class-wp-classic-to-block-menu-converter.php40700644editdlrm
class-wp-comment-query.php488040644editdlrm
class-wp-comment.php94370644editdlrm
class-wp-customize-control.php261190644editdlrm
class-wp-customize-manager.php2031390644editdlrm
class-wp-customize-nav-menus.php580130644editdlrm
class-wp-customize-panel.php107100644editdlrm
class-wp-customize-section.php112090644editdlrm
class-wp-customize-setting.php299620644editdlrm
class-wp-customize-widgets.php726070644editdlrm
class-wp-date-query.php361470644editdlrm
class-wp-dependencies.php170040644editdlrm
class-wp-dependency.php26330644editdlrm
class-wp-duotone.php407830644editdlrm
class-wp-editor.php723350644editdlrm
class-wp-embed.php159310644editdlrm
class-wp-error.php75020644editdlrm
class-wp-exception.php2530644editdlrm
class-wp-fatal-error-handler.php81500644editdlrm
class-wp-feed-cache-transient.php33040644editdlrm
class-wp-feed-cache.php9690644editdlrm
class-wp-hook.php166740644editdlrm
class-wp-http-cookie.php73890644editdlrm
class-wp-http-curl.php132610644editdlrm
class-wp-http-encoding.php66890644editdlrm
class-wp-http-ixr-client.php35060644editdlrm
class-wp-http-proxy.php59800644editdlrm
class-wp-http-requests-hooks.php20220644editdlrm
class-wp-http-requests-response.php44000644editdlrm
class-wp-http-response.php29770644editdlrm
class-wp-http-streams.php168590644editdlrm
class-wp-http.php415700644editdlrm
class-wp-image-editor-gd.php207050644editdlrm
class-wp-image-editor-imagick.php434150644editdlrm
class-wp-image-editor.php174150644editdlrm
class-wp-list-util.php74430644editdlrm
class-wp-locale-switcher.php67760644editdlrm
class-wp-locale.php168830644editdlrm
class-wp-matchesmapregex.php18280644editdlrm
class-wp-meta-query.php305330644editdlrm
class-wp-metadata-lazyloader.php68330644editdlrm
class-wp-navigation-fallback.php91930644editdlrm
class-wp-network-query.php198870644editdlrm
class-wp-network.php122960644editdlrm
class-wp-object-cache.php175240644editdlrm
class-wp-oembed-controller.php69050644editdlrm
class-wp-oembed.php316700644editdlrm
class-wp-paused-extensions-storage.php51110644editdlrm
class-wp-phpmailer.php43480644editdlrm
class-wp-plugin-dependencies.php253150644editdlrm
class-wp-post-type.php306800644editdlrm
class-wp-post.php64910644editdlrm
class-wp-query.php1639750644editdlrm
class-wp-recovery-mode-cookie-service.php68770644editdlrm
class-wp-recovery-mode-email-service.php111830644editdlrm
class-wp-recovery-mode-key-service.php48840644editdlrm
class-wp-recovery-mode-link-service.php34630644editdlrm
class-wp-recovery-mode.php114530644editdlrm
class-wp-rewrite.php636870644editdlrm
class-wp-role.php25230644editdlrm
class-wp-roles.php93940644editdlrm
class-wp-script-modules.php329510644editdlrm
class-wp-scripts.php348640644editdlrm
class-wp-session-tokens.php73190644editdlrm
class-wp-simplepie-file.php35520644editdlrm
class-wp-simplepie-sanitize-kses.php19100644editdlrm
class-wp-site-query.php316550644editdlrm
class-wp-site.php74670644editdlrm
class-wp-speculation-rules.php75270644editdlrm
class-wp-styles.php128430644editdlrm
class-wp-tax-query.php195770644editdlrm
class-wp-taxonomy.php185590644editdlrm
class-wp-term-query.php409530644editdlrm
class-wp-term.php52980644editdlrm
class-wp-text-diff-renderer-inline.php9790644editdlrm
class-wp-text-diff-renderer-table.php188800644editdlrm
class-wp-textdomain-registry.php104810644editdlrm
class-wp-theme-json-data.php18090644editdlrm
class-wp-theme-json-resolver.php357380644editdlrm
class-wp-theme-json-schema.php73670644editdlrm
class-wp-theme-json.php1643470644editdlrm
class-wp-theme.php658100644editdlrm
class-wp-token-map.php286180644editdlrm
class-wp-url-pattern-prefixer.php48020644editdlrm
class-wp-user-meta-session-tokens.php30110644editdlrm
class-wp-user-query.php441660644editdlrm
class-wp-user-request.php23050644editdlrm
class-wp-user.php230440644editdlrm
class-wp-walker.php133220644editdlrm
class-wp-widget-factory.php33470644editdlrm
class-wp-widget.php184290644editdlrm
class-wp-xmlrpc-server.php2154470644editdlrm
class-wp.php264810644editdlrm
class-wpdb.php1186270644editdlrm
class.wp-dependencies.php3730644editdlrm
class.wp-scripts.php3430644editdlrm
class.wp-styles.php3380644editdlrm
comment-template.php1031450644editdlrm
comment.php1340690644editdlrm
compat-utf8.php195540644editdlrm
compat.php178300644editdlrm
cron.php429880644editdlrm
date.php4000644editdlrm
default-constants.php113650644editdlrm
default-filters.php379100644editdlrm
default-widgets.php22950644editdlrm
deprecated.php1926440644editdlrm
embed-template.php3380644editdlrm
embed.php389110644editdlrm
error-protection.php41210644editdlrm
feed-atom-comments.php55040644editdlrm
feed-atom.php31210644editdlrm
feed-rdf.php26680644editdlrm
feed-rss.php11890644editdlrm
feed-rss2-comments.php41360644editdlrm
feed-rss2.php37990644editdlrm
feed.php251890644editdlrm
fonts.php97900644editdlrm
formatting.php3547410644editdlrm
functions.php2886000644editdlrm
functions.wp-scripts.php153110644editdlrm
functions.wp-styles.php86410644editdlrm
general-template.php1730040644editdlrm
global-styles-and-settings.php212040644editdlrm
http.php276500644editdlrm
https-detection.php58570644editdlrm
https-migration.php47410644editdlrm
kses.php838490644editdlrm
l10n.php687970644editdlrm
link-template.php1601170644editdlrm
load.php565100644editdlrm
locale.php1620644editdlrm
media-template.php631970644editdlrm
media.php2212470644editdlrm
meta.php665560644editdlrm
ms-blogs.php258450644editdlrm
ms-default-constants.php49210644editdlrm
ms-default-filters.php66360644editdlrm
ms-deprecated.php217590644editdlrm
ms-files.php28570644editdlrm
ms-functions.php918420644editdlrm
ms-load.php198870644editdlrm
ms-network.php37820644editdlrm
ms-settings.php42040644editdlrm
ms-site.php417170644editdlrm
nav-menu-template.php259900644editdlrm
nav-menu.php443470644editdlrm
option.php1050350644editdlrm
pluggable-deprecated.php63240644editdlrm
pluggable.php1274570644editdlrm
plugin.php365010644editdlrm
post-formats.php71020644editdlrm
post-template.php686480644editdlrm
post-thumbnail-template.php108790644editdlrm
post.php2960720644editdlrm
query.php370950644editdlrm
registration-functions.php2000644editdlrm
registration.php2000644editdlrm
rest-api.php1009840644editdlrm
revision.php307410644editdlrm
rewrite.php194900644editdlrm
robots-template.php51850644editdlrm
rss-functions.php2550644editdlrm
rss.php232030644editdlrm
script-loader.php1583440644editdlrm
script-modules.php99110644editdlrm
session.php2580644editdlrm
shortcodes.php240500644editdlrm
sitemaps.php32380644editdlrm
speculative-loading.php86000644editdlrm
spl-autoload-compat.php4410644editdlrm
style-engine.php75630644editdlrm
taxonomy.php1770580644editdlrm
template-canvas.php5440644editdlrm
template-loader.php42670644editdlrm
template.php368340644editdlrm
theme-i18n.json17300644editdlrm
theme-previews.php29100644editdlrm
theme-templates.php62380644editdlrm
theme.json89210644editdlrm
theme.php1350080644editdlrm
update.php383530644editdlrm
user.php1787100644editdlrm
utf8.php72600644editdlrm
vars.php65620644editdlrm
version.php11060644editdlrm
widgets.php711290644editdlrm
wp-db.php4450644editdlrm
wp-diff.php7990644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes/class-wp-customize-control.php (26119B)
$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(); ?> />