芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/ebpt.pulsehost.co.uk/wp-content/plugins/lte-ext/redux/redux_cpt.php
'lte-sections', 'title' => esc_html__( 'Additional options', 'tofit' ), 'post_types' => array( 'sections' ), 'position' => 'normal', 'priority' => 'high', 'sections' => array( array( 'fields' => array( [ 'id' => 'theme_block', 'title' => esc_html__( 'Theme Block', 'tofit' ), 'type' => 'select', 'options' => array( 'none' => esc_html__( 'Not Assigned', 'tofit' ), 'top_bar' => esc_html__( 'Top Bar', 'tofit' ), 'navbar' => esc_html__( 'Navbar', 'tofit' ), 'before_footer' => esc_html__( 'Before Footer', 'tofit' ), 'subscribe' => esc_html__( 'Subscribe', 'tofit' ), 'footer' => esc_html__( 'Footer', 'tofit' ), ), 'default' => 'none', ] ), ) ) ) ); /** * Services */ Redux_Metaboxes::set_box( 'tofit', array( 'id' => 'lte-services', 'title' => esc_html__( 'Additional options', 'tofit' ), 'post_types' => array( 'services' ), 'position' => 'normal', 'priority' => 'high', 'sections' => array( array( 'fields' => array( array( 'id' => 'header', 'title' => __( 'Alternative Header', 'tofit' ), 'desc' => __( 'Use {{ brackets }} to highlight', 'tofit' ), 'type' => 'text', ), array( 'id' => 'price', 'title' => __( 'Price', 'tofit' ), 'desc' => __( 'Use {{ brackets }} to highlight', 'tofit' ), 'type' => 'text', ), array( 'id' => 'excerpt', 'title' => __( 'Excrept', 'tofit' ), 'type' => 'text', ), array( 'id' => 'link', 'title' => __( 'External link', 'tofit' ), 'desc' => __( 'Replaces default service link', 'tofit' ), 'type' => 'text', ), /* array( 'id' => 'icon', 'title' => __( 'Icon', 'tofit' ), 'type' => 'icon_select', 'stylesheet' => array( array( 'url' => get_template_directory_uri() . '/assets/fonts/lte-font.css?1.0.0', 'title' => 'Tofit Icons', 'prefix' => 'icon', ), ), ), */ ), ) ) ) ); /** * Schedule */ $time_array = []; for ( $x = 0; $x <= 23; $x++ ) { $time_array[$x] = sprintf("%02d", $x); } Redux_Metaboxes::set_box( 'tofit', array( 'id' => 'lte-schedule', 'title' => esc_html__( 'Additional options', 'tofit' ), 'post_types' => array( 'lte-schedule' ), 'position' => 'normal', 'priority' => 'high', 'sections' => array( array( 'fields' => array( array( 'id' => 'subheader', 'title' => __( 'Subheader', 'tofit' ), 'type' => 'text', ), [ 'id' => 'weekday', 'title' => esc_html__( 'Weekday', 'tofit' ), 'type' => 'select', 'options' => array( '1' => 'Mon', '2' => 'Tue', '3' => 'Wed', '4' => 'Thu', '5' => 'Fri', '6' => 'Sat', '7' => 'Sun', ), 'default' => '1', ], array( 'id' => 'date-start', 'title' => __( 'Start', 'tofit' ), 'type' => 'button_set', 'options' => $time_array, 'default' => '9', ), array( 'id' => 'date-end', 'title' => __( 'End', 'tofit' ), 'type' => 'button_set', 'options' => $time_array, 'default' => '10', ), /* array( 'id' => 'date-start', 'type' => 'datetime', 'title' => __( 'Start', 'tofit' ), 'split' => false, 'separator' => ' ', 'date-picker' => false, 'time-format' => 'H:00', ), array( 'id' => 'date-end', 'type' => 'datetime', 'title' => __( 'End', 'tofit' ), 'split' => false, 'separator' => ' ', 'date-picker' => false, 'time-format' => 'H:00', ), */ ), ) ) ) ); /** * Gallery */ Redux_Metaboxes::set_box( 'tofit', array( 'id' => 'lte-gallery', 'title' => esc_html__( 'Select Images', 'tofit' ), 'post_types' => array( 'gallery' ), 'position' => 'normal', 'priority' => 'high', 'sections' => array( array( 'fields' => array( array( 'id' => 'images', 'title' => __( 'Gallery', 'tofit' ), 'type' => 'multi_media', ), ), ) ) ) ); /** * Sliders */ Redux_Metaboxes::set_box( 'tofit', array( 'id' => 'lte-sliders', 'post_types' => array( 'sliders' ), 'position' => 'normal', 'priority' => 'high', 'sections' => array( array( 'fields' => array( array( 'id' => 'mobile_bg', 'title' => __( 'Mobile Backgrund image', 'tofit' ), 'type' => 'media', ), ), ) ) ) ); /** * WooCommerce Products */ Redux_Metaboxes::set_box( 'tofit', array( 'id' => 'lte-products', 'title' => esc_html__( 'Additional options', 'tofit' ), 'post_types' => array( 'product' ), 'position' => 'normal', 'priority' => 'low', 'sections' => array( array( 'fields' => array( array( 'id' => 'header-background-image', 'title' => esc_html__( 'Page Header Background', 'tofit' ), 'desc' => esc_html__( 'Will replace default header image', 'tofit' ), 'type' => 'media', ), ), ) ) ) ); /** * Team */ Redux_Metaboxes::set_box( 'tofit', array( 'id' => 'lte-team', 'title' => esc_html__( 'Additional options', 'tofit' ), 'post_types' => array( 'team' ), 'position' => 'normal', 'priority' => 'low', 'sections' => array( array( 'fields' => array( [ 'id' => 'cut', 'title' => esc_html__( 'Short Description', 'tofit' ), 'type' => 'textarea', ], [ 'id' => 'social-icons', 'type' => 'repeater', 'title' => esc_html__( 'Social Icons', 'tofit' ), 'sortable' => true, 'group_values' => true, 'fields' => array( 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' => 'href', 'type' => 'text', 'title' => esc_html__( 'External URL', 'tofit' ), ), ), ] ), ) ) ) ); } /** * Product Cat // product_cat */ Redux_Taxonomy::set_args( 'tofit', array( 'taxonomy_priority' => 55, ) ); Redux_Taxonomy::set_term( 'tofit', array( 'id' => 'lte-product-categories', 'title' => __( 'Options', 'lte-ext' ), 'taxonomy_types' => array( 'product_cat' ), 'sidebar' => false, 'sections' => array( array( 'fields' => array( array( 'id' => 'mobile_bg', 'title' => __( 'Mobile Backgrund image', 'tofit' ), 'type' => 'media', ), array( 'id' => 'lte-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', ), ), */ ), ), ) ) ) ); /* Redux_Metaboxes::set_box( 'tofit', array( 'id' => 'lte-product-categories', 'post_types' => array( 'sliders' ), 'position' => 'normal', 'priority' => 'high', 'sections' => array( array( 'fields' => array( array( 'id' => 'mobile_bg', 'title' => __( 'Mobile Backgrund image', 'tofit' ), 'type' => 'media', ), ), ) ) ) ); */