HEX
Server: Apache
System: Linux uws7-179.cafe24.com 3.10.0-1160.119.1p.el7.x86_64 #1 SMP Thu Sep 11 14:15:01 KST 2025 x86_64
User: medikors (1589)
PHP: 7.3.1p1
Disabled: mysql_pconnect
Upload Files
File: /medikors/www/eng/wp-content/plugins/jupiterx-core/includes/customizer/settings/header/logo.php
<?php
/**
 * Add Jupiter settings for Header > Styles tab > Logo to the WordPress Customizer.
 *
 * @package JupiterX\Framework\Admin\Customizer
 *
 * @since   1.0.0
 */

$section = 'jupiterx_header_logo';

// Logo.
JupiterX_Customizer::add_field( [
	'type'        => 'jupiterx-select',
	'settings'    => 'jupiterx_header_logo',
	'section'     => $section,
	'column'      => '6',
	'label'       => __( 'Logo', 'jupiterx-core' ),
	'default'     => 'jupiterx_logo',
	'choices'     => [
		'jupiterx_logo'           => __( 'Primary', 'jupiterx-core' ),
		'jupiterx_logo_secondary' => __( 'Secondary', 'jupiterx-core' ),
	],
] );

// Width.
JupiterX_Customizer::add_responsive_field( [
	'type'        => 'jupiterx-input',
	'settings'    => 'jupiterx_header_logo_max_width',
	'css_var'     => 'header-logo-max-width',
	'section'     => $section,
	'label'       => __( 'Max Width', 'jupiterx-core' ),
	'column'      => '3-alt',
	'units'       => [ 'px', '%', 'vw' ],
	'transport'   => 'postMessage',
	'output'      => [
		[
			'element'  => '.jupiterx-site-navbar .jupiterx-navbar-brand-img',
			'property' => 'max-width',
		],
	],
] );

// Divider.
JupiterX_Customizer::add_field( [
	'type'     => 'jupiterx-divider',
	'settings' => 'jupiterx_header_logo_divider',
	'section'  => $section,
] );

// Spacing.
JupiterX_Customizer::add_responsive_field( [
	'type'      => 'jupiterx-box-model',
	'settings'  => 'jupiterx_header_logo_spacing',
	'css_var'   => 'header-logo',
	'section'   => $section,
	'transport' => 'postMessage',
	'exclude'   => [ 'padding' ],
	'output'    => [
		[
			'element' => '.jupiterx-site-navbar .jupiterx-navbar-brand',
		],
	],
] );