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_bak2/wp-content/themes/wpnull24/framework/config/elements/dropdown.php
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

$misc = us_config( 'elements_misc' );
$design_options = us_config( 'elements_design_options' );

$dropdown_source_values = array(
	'own' => us_translate( 'Custom Links' ),
	'sidebar' => __( 'Sidebar with Widgets', 'us' ),
);
if ( class_exists( 'SitePress' ) ) {
	$dropdown_source_values['wpml'] = 'WPML ' . us_translate( 'Language Switcher', 'sitepress' );
}
if ( class_exists( 'Polylang' ) ) {
	$dropdown_source_values['polylang'] = 'Polylang ' . us_translate( 'Language Switcher', 'polylang' );
}

return array(
	'title' => __( 'Dropdown', 'us' ),
	'icon' => 'fas fa-caret-square-down',
	'params' => array_merge( array(

		'source' => array(
			'title' => us_translate( 'Show' ),
			'type' => 'select',
			'options' => $dropdown_source_values,
			'std' => 'own',
		),
		'link_title' => array(
			'title' => __( 'Dropdown Title', 'us' ),
			'type' => 'text',
			'std' => __( 'Click Me', 'us' ),
			'show_if' => array( 'source', 'in', array( 'own', 'sidebar' ) ),
		),
		'link_icon' => array(
			'title' => __( 'Dropdown Icon', 'us' ),
			'type' => 'icon',
			'std' => '',
			'show_if' => array( 'source', 'in', array( 'own', 'sidebar' ) ),
		),
		'h_links' => array(
			'title' => __( 'Dropdown Links', 'us' ),
			'type' => 'heading',
			'show_if' => array( 'source', '=', 'own' ),
			'classes' => 'as_field_title',
		),
		'links' => array(
			'title' => '{{label}}',
			'type' => 'group',
			'is_sortable' => TRUE,
			'is_accordion' => TRUE,
			'show_if' => array( 'source', '=', 'own' ),
			'params' => array(
				'label' => array(
					'title' => us_translate( 'Title' ),
					'type' => 'text',
					'std' => us_translate( 'Custom Link' ),
				),
				'url' => array(
					'title' => us_translate( 'Link' ),
					'placeholder' => us_translate( 'Enter the URL' ),
					'type' => 'link',
					'std' => array(),
				),
				'icon' => array(
					'title' => __( 'Icon', 'us' ),
					'type' => 'icon',
					'std' => '',
				),
			),
		),
		'sidebar_id' => array(
			'title' => __( 'Sidebar', 'us' ),
			'description' => sprintf( __( 'Add or edit Sidebar on the %s page', 'us' ), '<a href="' . admin_url( 'widgets.php' ) . '" target="_blank">' . us_translate( 'Widgets' ) . '</a>' ),
			'type' => 'select',
			'options' => us_get_sidebars(),
			'std' => 'default_sidebar',
			'show_if' => array( 'source', '=', 'sidebar' ),
		),
		'wpml_switcher' => array(
			'type' => 'checkboxes',
			'options' => array(
				'flag' => us_translate( 'Flag', 'sitepress' ),
				'native_lang' => us_translate( 'Native language name', 'sitepress' ),
				'display_lang' => us_translate( 'Language name in current language', 'sitepress' ),
			),
			'std' => array( 'native_lang', 'display_lang' ),
			'show_if' => array( 'source', '=', 'wpml' ),
			'place_if' => class_exists( 'SitePress' ),
		),
		'size' => array(
			'title' => us_translate( 'Size' ),
			'description' => $misc['desc_font_size'],
			'type' => 'text',
			'std' => '16px',
			'cols' => 3,
			'group' => us_translate( 'Appearance' ),
		),
		'size_tablets' => array(
			'title' => __( 'Size on Tablets', 'us' ),
			'description' => $misc['desc_font_size'],
			'type' => 'text',
			'std' => '15px',
			'cols' => 3,
			'group' => us_translate( 'Appearance' ),
		),
		'size_mobiles' => array(
			'title' => __( 'Size on Mobiles', 'us' ),
			'description' => $misc['desc_font_size'],
			'type' => 'text',
			'std' => '14px',
			'cols' => 3,
			'group' => us_translate( 'Appearance' ),
		),
		'dropdown_open' => array(
			'title' => __( 'Open Dropdown', 'us' ),
			'type' => 'radio',
			'options' => array(
				'click' => __( 'On click', 'us' ),
				'hover' => __( 'On hover', 'us' ),
			),
			'std' => 'click',
			'cols' => 2,
			'group' => us_translate( 'Appearance' ),
		),
		'dropdown_dir' => array(
			'title' => __( 'Dropdown Direction', 'us' ),
			'type' => 'radio',
			'options' => array(
				'left' => us_translate( 'Left' ),
				'right' => us_translate( 'Right' ),
			),
			'std' => 'right',
			'cols' => 2,
			'group' => us_translate( 'Appearance' ),
		),
		'dropdown_effect' => array(
			'title' => __( 'Dropdown Effect', 'us' ),
			'type' => 'select',
			'options' => $misc['dropdown_effect_values'],
			'std' => 'height',
			'group' => us_translate( 'Appearance' ),
		),

	), $design_options ),
);