| 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.9/wp-content/themes/woodmart/inc/admin/settings/ |
Upload File : |
<?php
if ( ! defined( 'WOODMART_THEME_DIR' ) ) {
exit( 'No direct script access allowed' );
}
use XTS\Admin\Modules\Options;
Options::add_field(
array(
'id' => 'site_width',
'name' => esc_html__( 'Site width', 'woodmart' ),
'description' => esc_html__( 'You can make your content wrapper boxed, full width or set your custom width in pixels.', 'woodmart' ),
'type' => 'select',
'section' => 'general_layout_section',
'options' => array(
'full-width' => array(
'name' => esc_html__( 'Full width', 'woodmart' ),
'value' => 'full-width',
),
'boxed' => array(
'name' => esc_html__( 'Boxed (with hidden overflow)', 'woodmart' ),
'value' => 'boxed',
),
'boxed-2' => array(
'name' => esc_html__( 'Boxed', 'woodmart' ),
'value' => 'boxed-2',
),
'full-width-content' => array(
'name' => esc_html__( 'Content full width', 'woodmart' ),
'value' => 'full-width-content',
),
'wide' => array(
'name' => esc_html__( 'Wide (1600 px)', 'woodmart' ),
'value' => 'wide',
),
'custom' => array(
'name' => esc_html__( 'Custom', 'woodmart' ),
'value' => 'custom',
),
),
'default' => 'full-width',
'tags' => 'boxed full width wide',
'priority' => 20,
)
);
Options::add_field(
array(
'id' => 'site_custom_width',
'name' => esc_html__( 'Custom width in pixels', 'woodmart' ),
'description' => esc_html__( 'Specify your custom website container width in pixels.', 'woodmart' ),
'type' => 'range',
'section' => 'general_layout_section',
'default' => 1222,
'min' => 1025,
'max' => 1920,
'step' => 1,
'priority' => 30,
'requires' => array(
array(
'key' => 'site_width',
'compare' => 'equals',
'value' => 'custom',
),
),
'unit' => 'px',
)
);
Options::add_field(
array(
'id' => 'main_layout',
'name' => esc_html__( 'Sidebar position', 'woodmart' ),
'description' => esc_html__( 'Select main content and sidebar alignment.', 'woodmart' ),
'group' => esc_html__( 'Sidebar', 'woodmart' ),
'type' => 'buttons',
'section' => 'general_layout_section',
'options' => array(
'full-width' => array(
'name' => esc_html__( 'Without', 'woodmart' ),
'value' => 'full-width',
'image' => WOODMART_ASSETS_IMAGES . '/settings/sidebar-layout/none.png',
),
'sidebar-left' => array(
'name' => esc_html__( 'Left', 'woodmart' ),
'value' => 'sidebar-left',
'image' => WOODMART_ASSETS_IMAGES . '/settings/sidebar-layout/left.png',
),
'sidebar-right' => array(
'name' => esc_html__( 'Right', 'woodmart' ),
'value' => 'sidebar-right',
'image' => WOODMART_ASSETS_IMAGES . '/settings/sidebar-layout/right.png',
),
),
'default' => 'sidebar-right',
'tags' => 'sidebar left sidebar right',
'priority' => 40,
)
);
Options::add_field(
array(
'id' => 'sidebar_width',
'name' => esc_html__( 'Sidebar size', 'woodmart' ),
'description' => esc_html__( 'You can set different sizes for your pages sidebar', 'woodmart' ),
'group' => esc_html__( 'Sidebar', 'woodmart' ),
'type' => 'buttons',
'section' => 'general_layout_section',
'options' => array(
2 => array(
'name' => esc_html__( 'Small', 'woodmart' ),
'value' => 2,
),
3 => array(
'name' => esc_html__( 'Medium', 'woodmart' ),
'value' => 3,
),
4 => array(
'name' => esc_html__( 'Large', 'woodmart' ),
'value' => 4,
),
),
'default' => 3,
'tags' => 'small sidebar large sidebar',
'priority' => 50,
'class' => 'xts-tooltip-bordered',
)
);
Options::add_field(
array(
'id' => 'hide_main_sidebar',
'section' => 'general_layout_section',
'name' => esc_html__( 'Off canvas sidebar for desktop', 'woodmart' ),
'hint' => '<video data-src="' . WOODMART_TOOLTIP_URL . 'off-canvas-sidebar-for-mobile.mp4" autoplay loop muted></video>',
'description' => esc_html__( 'You can hide the sidebar on desktop and show it nicely with a button click.', 'woodmart' ),
'group' => esc_html__( 'Sidebar', 'woodmart' ),
'type' => 'switcher',
'default' => '0',
't_tab' => array(
'id' => 'hide_main_sidebar_tabs',
'tab' => esc_html__( 'Desktop', 'woodmart' ),
'icon' => 'xts-i-desktop',
'style' => 'devices',
),
'priority' => 60,
)
);
Options::add_field(
array(
'id' => 'hide_main_sidebar_tablet',
'section' => 'general_layout_section',
'name' => esc_html__( 'Off canvas sidebar for tablet', 'woodmart' ),
'description' => esc_html__( 'You can hide the sidebar on tablet and show it nicely with a button click.', 'woodmart' ),
'group' => esc_html__( 'Sidebar', 'woodmart' ),
'type' => 'switcher',
'default' => '1',
't_tab' => array(
'id' => 'hide_main_sidebar_tabs',
'tab' => esc_html__( 'Tablet', 'woodmart' ),
'icon' => 'xts-i-tablet',
),
'priority' => 61,
)
);
Options::add_field(
array(
'id' => 'hide_main_sidebar_mobile',
'section' => 'general_layout_section',
'name' => esc_html__( 'Off canvas sidebar for mobile', 'woodmart' ),
'description' => esc_html__( 'You can hide the sidebar on mobile devices and show it nicely with a button click.', 'woodmart' ),
'group' => esc_html__( 'Sidebar', 'woodmart' ),
'type' => 'switcher',
'default' => '1',
't_tab' => array(
'id' => 'hide_main_sidebar_tabs',
'tab' => esc_html__( 'Mobile', 'woodmart' ),
'icon' => 'xts-i-phone',
),
'priority' => 62,
)
);