$84 GRAYBYTE WORDPRESS FILE MANAGER $51

SERVER : premium127.web-hosting.com #1 SMP Thu Mar 13 14:29:12 UTC 2025
SERVER IP : 162.0.232.32 | ADMIN IP 216.73.217.63
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/jennqnsj/public_html/wp-includes/customize/

HOME
Current File : /home/jennqnsj/public_html/wp-includes/customize//class-wp-customize-theme-control.php
<?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] }}" 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 doesn&#8217;t 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 doesn&#8217;t 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 doesn&#8217;t 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 doesn&#8217;t 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 doesn&#8217;t 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 doesn&#8217;t 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>
				<div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div>
			<# } else if ( 'installed' === data.theme.type ) { #>
				<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>
				<div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div>
			<# } 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 &amp; Preview' ); ?></button>
						<# } else { #>
							<button type="button" class="button button-primary disabled" aria-label="<?php echo esc_attr( $install_label ); ?>" disabled><?php _e( 'Install &amp; Preview' ); ?></button>
						<# } #>
					</div>
				</div>
			<# } #>
		</div>
		<?php
	}
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Apr 2026 8.40 AM
jennqnsj / jennqnsj
0755
wp-site
--
16 Apr 2026 5.09 AM
jennqnsj / jennqnsj
0755
class-wp-customize-background-image-control.php
1.18 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-background-image-setting.php
0.496 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-background-position-control.php
2.882 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-code-editor-control.php
2.263 KB
5 Nov 2020 8.28 PM
jennqnsj / jennqnsj
0644
class-wp-customize-color-control.php
2.994 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-cropped-image-control.php
1.426 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-custom-css-setting.php
4.785 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-date-time-control.php
8.524 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-filter-setting.php
0.574 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-header-image-control.php
7.709 KB
18 Oct 2022 7.24 AM
jennqnsj / jennqnsj
0644
class-wp-customize-header-image-setting.php
1.611 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-image-control.php
1.183 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-media-control.php
9.154 KB
5 Nov 2020 8.28 PM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-auto-add-control.php
1.096 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-control.php
2.02 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-item-control.php
6.83 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-item-setting.php
27.12 KB
30 Sep 2025 7.41 PM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-location-control.php
2.233 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-locations-control.php
2.733 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-name-control.php
1.104 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-section.php
0.699 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menu-setting.php
18.486 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-nav-menus-panel.php
3.011 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-new-menu-control.php
1.67 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-new-menu-section.php
1.653 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-partial.php
10.295 KB
5 Nov 2020 8.28 PM
jennqnsj / jennqnsj
0644
class-wp-customize-selective-refresh.php
13.384 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-sidebar-section.php
1.034 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-site-icon-control.php
3.208 KB
18 Oct 2022 7.24 AM
jennqnsj / jennqnsj
0644
class-wp-customize-theme-control.php
10.076 KB
5 Nov 2020 8.28 PM
jennqnsj / jennqnsj
0644
class-wp-customize-themes-panel.php
3.162 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644
class-wp-customize-themes-section.php
6.598 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-customize-upload-control.php
1.169 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-widget-area-customize-control.php
1.618 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
class-wp-widget-form-customize-control.php
2.584 KB
12 Jul 2020 2.54 AM
jennqnsj / jennqnsj
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF