| Server IP : 38.190.208.107 / Your IP : 216.73.217.13 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.12/wp-content/themes/dt-the7/inc/admin/ |
Upload File : |
<?php /** * Mega menu options. * * @since 7.5.0 * * @package The7\Admin */ defined( 'ABSPATH' ) || exit; return array( array( 'name' => _x( 'Graphic element', 'admin', 'the7mk2' ), 'id' => 'menu-item-icon-type', 'type' => 'select', 'std' => 'none', 'options' => array( 'none' => _x( 'No Icon', 'admin', 'the7mk2' ), 'html' => _x( 'HTML', 'admin', 'the7mk2' ), 'image' => _x( 'Image or SVG Icon', 'admin', 'the7mk2' ), 'icon' => _x( 'Icon', 'admin', 'the7mk2' ), ), ), array( 'name' => _x( 'Image', 'admin', 'the7mk2' ), 'id' => 'menu-item-image', 'type' => 'upload', 'mode' => 'full', 'std' => '', 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => '==', 'value' => 'image', ), ), array( 'name' => _x( 'Icon', 'admin', 'the7mk2' ), 'id' => 'menu-item-icon', 'type' => 'icons_picker', 'std' => '', 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => '==', 'value' => 'icon', ), ), array( 'name' => _x( 'Position', 'theme-options', 'the7mk2' ), 'id' => 'menu-item-image-position', 'type' => 'select', 'std' => 'left', 'options' => array( 'top' => _x( 'Top centered', 'theme-options', 'the7mk2' ), 'top_align_left'=> _x( 'Top aligned left', 'theme-options', 'the7mk2' ), 'right' => _x( 'Right', 'theme-options', 'the7mk2' ), 'right_top' => _x( 'Right with menu item only', 'theme-options', 'the7mk2' ), 'left' => _x( 'Left', 'theme-options', 'the7mk2' ), 'left_top' => _x( 'Left with menu item only', 'theme-options', 'the7mk2' ), ), 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => 'IN', 'value' => array( 'image', 'icon' ), ), ), array( 'name' => _x( 'Size', 'theme-options', 'the7mk2' ), 'id' => 'menu-item-image-size', 'type' => 'spacing', 'std' => '50px 50px', 'fields' => array( __( 'Width', 'the7mk2' ), __( 'Height', 'the7mk2' ), ), 'units' => 'px', 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => '==', 'value' => 'image', ), ), array( 'name' => _x( 'Border radius', 'theme-options', 'the7mk2' ), 'id' => 'menu-item-image-border-radius', 'type' => 'number', 'std' => '0px', 'units' => 'px', 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => '==', 'value' => 'image', ), ), array( 'name' => _x( 'Margin', 'theme-options', 'the7mk2' ), 'id' => 'menu-item-image-padding', 'type' => 'spacing', 'std' => '0px 6px 0px 0px', 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => 'IN', 'value' => array( 'image', 'icon' ), ), ), array( 'name' => _x( 'Hide graphic element on mobile', 'admin', 'the7mk2' ), 'desc' => _x( 'This setting hides graphic element in mobile menu.', 'admin', 'the7mk2' ), 'id' => 'menu-item-hide-icon-on-mobile', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => 'IN', 'value' => array( 'image', 'icon' ), ), ), array( 'name' => _x( 'HTML', 'admin', 'the7mk2' ), 'id' => 'menu-item-icon-html', 'type' => 'textarea', 'std' => false, 'dependency' => array( 'field' => 'menu-item-icon-type', 'operator' => '==', 'value' => 'html', ), ), array( 'name' => _x( 'Enable Mega Menu', 'admin', 'the7mk2' ), 'id' => 'mega-menu', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( 'field' => 'item-depth', 'operator' => '==', 'value' => '0', ), 'divider' => 'top', ), array( 'name' => _x( 'Fullwidth', 'admin', 'the7mk2' ), 'id' => 'mega-menu-fullwidth', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( array( 'field' => 'mega-menu', 'operator' => '==', 'value' => 'on', ), array( 'field' => 'item-depth', 'operator' => '==', 'value' => '0', ), ), ), array( 'name' => _x( 'Number of columns', 'admin', 'the7mk2' ), 'id' => 'mega-menu-columns', 'type' => 'select', 'std' => '3', 'options' => array( '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', ), 'class' => 'mini', 'dependency' => array( array( 'field' => 'mega-menu', 'operator' => '==', 'value' => 'on', ), array( 'field' => 'item-depth', 'operator' => '==', 'value' => '0', ), ), ), array( 'name' => _x( 'Hide title in mega menu', 'admin', 'the7mk2' ), 'desc' => _x( "Doesn't apply to menu on mobile or in side header.", 'mega menu settings', 'the7mk2' ), 'id' => 'mega-menu-hide-title', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( array( 'field' => 'parent-mega-menu', 'operator' => '==', 'value' => 'on', ), array( 'field' => 'item-depth', 'operator' => '==', 'value' => '1', ), ), 'divider' => 'top', ), array( 'name' => _x( 'Remove link', 'admin', 'the7mk2' ), 'id' => 'mega-menu-remove-link', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( array( 'field' => 'parent-mega-menu', 'operator' => '==', 'value' => 'on', ), array( 'field' => 'item-depth', 'operator' => '==', 'value' => '1', ), ), ), array( 'name' => _x( 'This item should start a new row', 'admin', 'the7mk2' ), 'desc' => _x( "Doesn't apply to menu on mobile or in side header.", 'mega menu settings', 'the7mk2' ), 'id' => 'mega-menu-start-new-row', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( array( 'field' => 'parent-mega-menu', 'operator' => '==', 'value' => 'on', ), array( 'field' => 'item-depth', 'operator' => '==', 'value' => '1', ), ), ), array( 'name' => _x( 'This item should start a new column', 'admin', 'the7mk2' ), 'id' => 'mega-menu-start-new-column', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( array( 'field' => 'parent-mega-menu', 'operator' => '==', 'value' => 'on', ), array( 'field' => 'item-depth', 'operator' => '==', 'value' => '2', ), ), 'divider' => 'top', ), array( 'name' => _x( 'Widget area to display', 'admin', 'the7mk2' ), 'desc' => _x( 'Select a widget area to be used as the content for the column.', 'admin', 'the7mk2' ), 'id' => 'mega-menu-widgets', 'type' => 'select', 'std' => 'none', 'options' => array_merge( presscore_get_widgetareas_options(), array( 'none' => _x( 'None', 'admin', 'the7mk2' ) ) ), 'dependency' => array( array( 'field' => 'parent-mega-menu', 'operator' => '==', 'value' => 'on', ), array( 'field' => 'item-depth', 'operator' => '!=', 'value' => '0', ), ), 'divider' => 'top', ), array( 'name' => _x( 'Widget area padding', 'theme-options', 'the7mk2' ), 'id' => 'mega-menu-widgets-padding', 'type' => 'spacing', 'std' => '0px 6px 0px 0px', 'dependency' => array( 'field' => 'mega-menu-widgets', 'operator' => '!=', 'value' => 'none' ), ), array( 'name' => _x( 'Hide menu item on mobile', 'admin', 'the7mk2' ), 'desc' => _x( 'This setting hide menu item and its child items in mobile menu.', 'admin', 'the7mk2' ), 'id' => 'mega-menu-hide-on-mobile', 'type' => 'switch', 'std' => 'off', 'options' => array( 'on' => _x( 'Yes', 'admin', 'the7mk2' ), 'off' => _x( 'No', 'admin', 'the7mk2' ), ), 'dependency' => array( array( array( 'field' => 'mega-menu', 'operator' => '==', 'value' => 'on', ), ), array( array( 'field' => 'parent-mega-menu', 'operator' => '==', 'value' => 'on', ), ), ), 'divider' => 'top', ), );