芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/ebpt.pulsehost.co.uk/wp-content/plugins/lte-ext/redux/sections/header.php
esc_html__( 'Header', 'tofit' ), 'id' => 'header', 'icon' => 'el el-home', ] ); Redux::set_section( $opt_name, [ 'title' => esc_html__( 'Navbar', 'tofit' ), 'id' => 'header-options', 'subsection' => true, 'fields' => [ /* [ 'id' => 'navbar-default', 'type' => 'select', 'title' => __( 'Navbar Default', 'tofit' ), 'options' => [ 'default-black' => __( 'Classic Light', 'tofit'), 'default-white' => __( 'Classic Dark', 'tofit'), 'transparent-black' => __( 'Classic Semi-Transparent on Light', 'tofit'), 'transparent-white' => __( 'Classic Semi-Transparent on Dark', 'tofit'), 'transparent-full-black' => __( 'Classic Transparent on Light', 'tofit'), 'transparent-full-white' => __( 'Classic Transparent on Dark', 'tofit'), 'desktop-center-transparent-black' => __( 'Logo Center Transparent on Light', 'tofit'), 'desktop-center-transparent-white' => __( 'Logo Center Transparent on Dark', 'tofit'), ], 'select2' => ['minimumResultsForSearch' => -1], ], */ [ 'id' => 'navbar-custom', 'type' => 'select', 'title' => __( 'Navbar Custom', 'tofit' ), 'options' => [0 => __( 'Default', 'tofit')] + $tofit_sections_list['navbar'] ], /* [ 'id' => 'navbar-default-force', 'type' => 'select', 'title' => __( 'Navbar Default Override', 'tofit' ), 'options' => [ 'disabled' => __( 'Disabled. Every page uses its own settings', 'tofit'), 'force' => __( 'Enabled. Override all site pages and use Navbar Default', 'tofit'), ] ], */ [ 'id' => 'navbar-affix', 'type' => 'select', 'default' => 'static', 'title' => __( 'Navbar Sticky', 'tofit' ), 'options' => [ 'static' => __( 'Disabled', 'tofit'), 'affix' => __( 'Enabled', 'tofit'), ] ], array( 'id' => 'navbar-icons', 'type' => 'repeater', 'title' => esc_html__( 'Navbar Icons', 'tofit' ), 'subtitle' => esc_html__( '', 'tofit' ), 'desc' => esc_html__( '', 'tofit' ), 'sortable' => true, 'group_values' => true, //'group_values' => true, // Group all fields below within the repeater ID //'item_name' => '', // Add a repeater block name to the Add and Delete buttons //'bind_title' => '', // Bind the repeater block title to this field ID //'static' => 2, // Set the number of repeater blocks to be output //'limit' => 2, // Limit the number of repeater blocks a user can create //'sortable' => false, // Allow the users to sort the repeater blocks or not 'fields' => array( array( 'id' => 'type', 'type' => 'button_set', 'title' => esc_html__( 'Type', 'tofit' ), 'options' => array( 'search' => esc_html__( 'Search', 'tofit' ), 'basket' => esc_html__( 'WooCommerce Cart', 'tofit' ), 'profile' => esc_html__( 'User Profile', 'tofit' ), 'social' => esc_html__( 'Social Icon', 'tofit' ), 'button' => esc_html__( 'Button', 'tofit' ), ), 'default' => 'search', ), array( 'id' => 'title', 'type' => 'text', 'title' => esc_html__( 'Header', 'tofit' ), ), array( 'id' => 'icon', 'type' => 'icon_select', 'title' => esc_html__( 'Icon', 'tofit' ), 'stylesheet' => array( array( 'url' => get_template_directory_uri() . '/assets/fonts/lte-font.css?1.0.0', 'title' => 'Tofit Icons', 'prefix' => 'icon', ), ), ), array( 'id' => 'url', 'type' => 'text', 'title' => esc_html__( 'External URL', 'tofit' ), 'required' => ['type', '=', ['social','button']], ), array( 'id' => 'count', 'type' => 'switch', 'title' => esc_html__( 'Products Counter', 'tofit' ), 'required' => ['type', '=', 'basket'], ), array( 'id' => 'source', 'type' => 'button_set', 'title' => esc_html__( 'Search Source', 'tofit' ), 'required' => ['type', '=', ['search']], 'options' => array( 'default' => esc_html__( 'Default', 'tofit' ), 'woocommerce' => esc_html__( 'WooCommerce', 'tofit' ), ), ), ), ) /* [ 'id' => 'navbar-icons', 'type' => 'select', 'title' => __( 'Navbar Sticked', 'tofit' ), 'options' => [ 'static' => __( 'Allways Static', 'tofit'), 'affix' => __( 'Sticked', 'tofit'), ] ], */ ] ] ); Redux::set_section( $opt_name, [ 'title' => esc_html__( 'Topbar', 'tofit' ), 'id' => 'topbar-options', 'subsection' => true, 'fields' => [ [ 'id' => 'topbar-info', 'type' => 'html', 'title' => __( ' ', 'tofit' ), ], [ 'id' => 'topbar', 'type' => 'select', 'title' => __( 'Topbar visibility', 'tofit' ), 'options' => [ 'visible' => __( 'Always Visible', 'tofit'), 'desktop' => __( 'Desktop Visible', 'tofit'), 'desktop-tablet' => __( 'Desktop and Tablet Visible', 'tofit'), 'mobile' => __( 'Mobile only Visible', 'tofit'), 'hidden' => __( 'Hidden', 'tofit'), ] ], [ 'id' => 'topbar-section', 'type' => 'select', 'title' => __( 'Topbar section', 'tofit' ), 'options' => [ '' => __( 'None / Hidden', 'tofit'), ] ], ] ] ); Redux::set_section( $opt_name, [ 'title' => esc_html__( 'Pageheader', 'tofit' ), 'id' => 'pageheader-options', 'subsection' => true, 'fields' => [ [ 'id' => 'pageheader-display', 'type' => 'select', 'title' => __( 'Page Header Visibility', 'tofit' ), 'options' => [ 'default' => __( 'Default', 'tofit'), 'disabled' => __( 'Force Hidden on all Pages', 'tofit'), ] ], [ 'id' => 'pageheader-overlay', 'type' => 'select', 'title' => __( 'Page Header Overlay', 'tofit' ), 'options' => [ 'enabled' => __( 'Enabled', 'tofit'), 'disabled' => __( 'Disabled', 'tofit'), ] ], [ 'id' => 'header_fixed', 'type' => 'select', 'title' => __( 'Background parallax', 'tofit' ), 'options' => [ 'disabled' => __( 'Disabled', 'tofit'), 'fixed' => __( 'Enabled', 'tofit'), ] ], [ 'id' => 'header-social', 'type' => 'select', 'title' => __( 'Social icons in page header', 'tofit' ), 'options' => [ 'disabled' => __( 'Disabled', 'tofit'), 'enabled' => __( 'Enabled', 'tofit'), ] ], [ 'id' => 'header_bg', 'title' => esc_html__( 'Page Header Default Background', 'tofit' ), 'desc' => esc_html__( 'Default Page Header for all pages, can be overriden by the settings below', 'tofit' ), 'type' => 'media', ], [ 'id' => 'featured', 'title' => esc_html__( 'Featured Images as Background', 'tofit' ), 'type' => 'button_set', 'multi' => true, 'options' => [ 'pages' => esc_html__( 'Pages', 'tofit' ), 'posts' => esc_html__( 'Blog Posts', 'tofit' ), 'services' => esc_html__( 'Services', 'tofit' ), 'woocommerce' => esc_html__( 'WooCommerce Products', 'tofit' ), 'woocommerce-cat' => esc_html__( 'WooCommerce Categories / Tags', 'tofit' ), ], 'default' => 'pages', ], [ 'id' => 'wc-bg', 'title' => '', 'desc' => esc_html__( "To set separate default background for WooCommerce pages assign it to the Pages -> Shop as Featured Image", 'tofit' ), 'type' => 'info', ], [ 'id' => 'wc-bg-2', 'title' => '', 'desc' => esc_html__( 'Note: WooCommerce Products and Categories have additional "Page Header Background" field, which may override header background', 'tofit' ), 'type' => 'info', ], ] ] );