| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.4/wp-content/themes/woodmart/inc/configs/ |
Upload File : |
<?php if ( ! defined("WOODMART_THEME_DIR")) exit("No direct script access allowed");
/**
* ------------------------------------------------------------------------------------------------
* Default header builder settings
* ------------------------------------------------------------------------------------------------
*/
$header_settings = array(
'overlap' => array(
'id' => 'overlap',
'title' => esc_html__( 'Make it overlap', 'woodmart' ),
'hint' => '<img src="' . WOODMART_TOOLTIP_URL . 'hb_settings_overlap.jpg" alt="">',
'type' => 'switcher',
'tab' => esc_html__( 'General', 'woodmart' ),
'value' => false,
'description' => esc_html__( 'Make the header overlap the content.', 'woodmart' ),
'extra_class' => 'xts-col-6',
),
'boxed' => array(
'id' => 'boxed',
'title' => esc_html__( 'Make it boxed', 'woodmart' ),
'hint' => '<img src="' . WOODMART_TOOLTIP_URL . 'hb_settings_boxed.jpg" alt="">',
'type' => 'switcher',
'tab' => esc_html__( 'General', 'woodmart' ),
'value' => false,
'description' => esc_html__( 'The header will be boxed instead of full width', 'woodmart' ),
'requires' => array(
'overlap' => array(
'comparison' => 'equal',
'value' => true,
),
),
'extra_class' => 'xts-col-6',
),
'full_width' => array(
'id' => 'full_width',
'title' => esc_html__( 'Full width header', 'woodmart' ),
'hint' => '<video src="' . WOODMART_TOOLTIP_URL . 'hb_settings_full_width.mp4" autoplay loop muted></video>',
'type' => 'switcher',
'tab' => esc_html__( 'General', 'woodmart' ),
'value' => false,
'description' => esc_html__( 'Full width layout for the header container.', 'woodmart' ),
),
'dropdowns_dark' => array(
'id' => 'dropdowns_dark',
'title' => esc_html__( 'Header dropdowns dark', 'woodmart' ),
'hint' => '<video src="' . WOODMART_TOOLTIP_URL . 'hb_settings_dropdowns_dark.mp4" autoplay loop muted></video>',
'type' => 'switcher',
'tab' => esc_html__( 'General', 'woodmart' ),
'value' => false,
'description' => esc_html__( 'Make all menu, shopping cart, search, mobile menu dropdowns in dark color scheme.', 'woodmart' ),
),
'sticky_shadow' => array(
'id' => 'sticky_shadow',
'title' => esc_html__( 'Sticky header shadow', 'woodmart' ),
'type' => 'switcher',
'tab' => esc_html__( 'Sticky header', 'woodmart' ),
'value' => true,
'description' => esc_html__( 'Add a shadow for the header when it is sticked.', 'woodmart' ),
),
'hide_on_scroll' => array(
'id' => 'hide_on_scroll',
'title' => esc_html__( 'Hide when scrolling down', 'woodmart' ),
'hint' => '<video src="' . WOODMART_TOOLTIP_URL . 'hb_settings_hide_on_scroll.mp4" autoplay loop muted></video>',
'type' => 'switcher',
'tab' => esc_html__( 'Sticky header', 'woodmart' ),
'value' => false,
'description' => esc_html__( 'Hides the sticky header when you scroll the page down. And shows only when you scroll top.', 'woodmart' ),
),
'sticky_effect' => array(
'id' => 'sticky_effect',
'title' => esc_html__( 'Sticky effect', 'woodmart' ),
'type' => 'selector',
'tab' => esc_html__( 'Sticky header', 'woodmart' ),
'value' => 'stick',
'options' => array(
'stick' => array(
'value' => 'stick',
'hint' => '<video src="' . WOODMART_TOOLTIP_URL . 'hb_settings_scroll_stick.mp4" autoplay loop muted></video>',
'label' => esc_html__( 'Stick on scroll', 'woodmart' ),
),
'slide' => array(
'value' => 'slide',
'hint' => '<video src="' . WOODMART_TOOLTIP_URL . 'hb_settings_scroll_slide.mp4" autoplay loop muted></video>',
'label' => esc_html__( 'Slide after scrolled down', 'woodmart' ),
),
),
'description' => esc_html__( 'You can choose between two types of sticky header effects.', 'woodmart' ),
),
'sticky_clone' => array(
'id' => 'sticky_clone',
'title' => esc_html__( 'Sticky header clone', 'woodmart' ),
'hint' => '<video src="' . WOODMART_TOOLTIP_URL . 'hb_settings_sticky_clone.mp4" autoplay loop muted></video>',
'type' => 'switcher',
'tab' => esc_html__( 'Sticky header', 'woodmart' ),
'value' => false,
'requires' => array(
'sticky_effect' => array(
'comparison' => 'equal',
'value' => 'slide',
),
),
'description' => esc_html__( 'Sticky header will clone elements from the header (logo, menu, search and shopping cart widget) and show them in one line.', 'woodmart' ),
),
'sticky_height' => array(
'id' => 'sticky_height',
'title' => esc_html__( 'Sticky header height', 'woodmart' ),
'type' => 'slider',
'tab' => esc_html__( 'Sticky header', 'woodmart' ),
'from' => 0,
'to' => 200,
'value' => 50,
'units' => 'px',
'description' => esc_html__( 'Determine header height for sticky header value in pixels.', 'woodmart' ),
'requires' => array(
'sticky_clone' => array(
'comparison' => 'equal',
'value' => true,
),
'sticky_effect' => array(
'comparison' => 'equal',
'value' => 'slide',
),
),
),
);
return apply_filters( 'woodmart_default_header_settings', $header_settings );