HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/mussarq_bak/wp-content/plugins/us-header-builder/config/meta-boxes.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

/**
 * Header Builder Meta Boxes changes.
 *
 * @var $config array Framework- and theme-defined metaboxes config
 *
 * @return array Changed config
 */

foreach ( $config as &$cfg ) {
	if ( $cfg['id'] === 'us_page_settings' ) {
		$cfg['fields'] = us_array_merge_insert(
			$cfg['fields'], array(
				'us_header_sticky_override' => array(
					'title' => __( 'Sticky Header', 'us' ),
					'type' => 'switch',
					'switch_text' => __( 'Override this setting', 'us' ),
					'std' => 0,
					'classes' => 'for_above',
					'show_if' => array( 'us_header_id', 'not in', array( '__defaults__', '' ) ),
				),
				'us_header_sticky' => array(
					'type' => 'checkboxes',
					'options' => array(
						'default' => __( 'On Desktops', 'us' ),
						'tablets' => __( 'On Tablets', 'us' ),
						'mobiles' => __( 'On Mobiles', 'us' ),
					),					
					'std' => array(),
					'classes' => 'for_above',
					'show_if' => array(
						array( 'us_header_id', 'not in', array( '__defaults__', '' ) ),
						'and',
						array( 'us_header_sticky_override', '=', '1' ),
					),
				),			
				'us_header_transparent_override' => array(
					'title' => __( 'Transparent Header', 'us' ),
					'type' => 'switch',
					'switch_text' => __( 'Override this setting', 'us' ),
					'std' => 0,
					'classes' => 'for_above',
					'show_if' => array( 'us_header_id', 'not in', array( '__defaults__', '' ) ),
				),
				'us_header_transparent' => array(
					'type' => 'checkboxes',
					'options' => array(
						'default' => __( 'On Desktops', 'us' ),
						'tablets' => __( 'On Tablets', 'us' ),
						'mobiles' => __( 'On Mobiles', 'us' ),
					),					
					'std' => array(),
					'classes' => 'for_above',
					'show_if' => array(
						array( 'us_header_id', 'not in', array( '__defaults__', '' ) ),
						'and',
						array( 'us_header_transparent_override', '=', '1' ),
					),
				),
				'us_header_shadow' => array(
					'title' => __( 'Header Shadow', 'us' ),
					'type' => 'switch',
					'switch_text' => __( 'Remove header shadow', 'us' ),
					'std' => 0,
					'classes' => 'for_above',
					'show_if' => array( 'us_header_id', 'not in', array( '__defaults__', '' ) ),
				),
				'us_header_sticky_pos' => array(
					'title' => __( 'Sticky Header Initial Position', 'us' ),
					'type' => 'select',
					'options' => array(
						'' => __( 'At the Top of this page', 'us' ),
						'bottom' => __( 'At the Bottom of the first content row', 'us' ),
						'above' => __( 'Above the first content row', 'us' ),
						'below' => __( 'Below the first content row', 'us' ),
					),
					'std' => '',
					'classes' => 'for_above',
					'show_if' => array( 'us_header_id', 'not in', array( '__defaults__', '' ) ),
				),
			), 'after', 'us_header_id'
		);
		break;
	}
}

return $config;