Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/code4rest-pro/dist/header-addons/header-search-bar-options.php
Ðазад
<?php /** * Header HTML2 Options * * @package Code4rest_Pro */ namespace Code4rest_Pro; use Code4rest\Theme_Customizer; use function Code4rest\code4rest; $settings = array( 'header_search_bar_tabs' => array( 'control_type' => 'code4rest_tab_control', 'section' => 'header_search_bar', 'settings' => false, 'priority' => 1, 'input_attrs' => array( 'general' => array( 'label' => __( 'General', 'code4rest-pro' ), 'target' => 'header_search_bar', ), 'design' => array( 'label' => __( 'Design', 'code4rest-pro' ), 'target' => 'header_search_bar_design', ), 'active' => 'general', ), ), 'header_search_bar_tabs_design' => array( 'control_type' => 'code4rest_tab_control', 'section' => 'header_search_bar_design', 'settings' => false, 'priority' => 1, 'input_attrs' => array( 'general' => array( 'label' => __( 'General', 'code4rest-pro' ), 'target' => 'header_search_bar', ), 'design' => array( 'label' => __( 'Design', 'code4rest-pro' ), 'target' => 'header_search_bar_design', ), 'active' => 'design', ), ), 'header_search_bar_width' => array( 'control_type' => 'code4rest_range_control', 'section' => 'header_search_bar', 'label' => esc_html__( 'Search Bar Width', 'code4rest-pro' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.header-search-bar form', 'property' => 'width', 'pattern' => '$', 'key' => 'size', ), ), 'default' => code4rest()->default( 'header_search_bar_width' ), 'input_attrs' => array( 'min' => array( 'px' => 100, 'em' => 4, 'rem' => 4, ), 'max' => array( 'px' => 600, 'em' => 12, 'rem' => 12, ), 'step' => array( 'px' => 1, 'em' => 0.01, 'rem' => 0.01, ), 'units' => array( 'px', 'em', 'rem' ), 'responsive' => false, ), ), 'header_search_bar_color' => array( 'control_type' => 'code4rest_color_control', 'section' => 'header_search_bar_design', 'label' => esc_html__( 'Input Text Colors', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_search_bar_color' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.header-search-bar form input.search-field, .header-search-bar form .code4rest-search-icon-wrap', 'property' => 'color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.header-search-bar form input.search-field:focus, .header-search-bar form input.search-submit:hover ~ .code4rest-search-icon-wrap, .header-search-bar #main-header form button[type="submit"]:hover ~ .code4rest-search-icon-wrap', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Focus Color', 'code4rest-pro' ), 'palette' => true, ), ), ), ), 'header_search_bar_background' => array( 'control_type' => 'code4rest_color_control', 'section' => 'header_search_bar_design', 'label' => esc_html__( 'Input Background', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_search_bar_background' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.header-search-bar form input.search-field', 'property' => 'background', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.header-search-bar form input.search-field:focus', 'property' => 'background', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Focus Color', 'code4rest-pro' ), 'palette' => true, ), ), ), ), 'header_search_bar_border' => array( 'control_type' => 'code4rest_border_control', 'section' => 'header_search_bar_design', 'label' => esc_html__( 'Border', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_search_bar_border' ), 'live_method' => array( array( 'type' => 'css_border', 'selector' => '.header-search-bar form input.search-field', 'pattern' => '$', 'property' => 'border', 'pattern' => '$', 'key' => 'border', ), ), 'input_attrs' => array( 'responsive' => false, 'color' => false, ), ), 'header_search_bar_border_color' => array( 'control_type' => 'code4rest_color_control', 'section' => 'header_search_bar_design', 'label' => esc_html__( 'Input Border Color', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_search_bar_border_color' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.header-search-bar form input.search-field', 'property' => 'border-color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.header-search-bar form input.search-field:focus', 'property' => 'border-color', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Focus Color', 'code4rest-pro' ), 'palette' => true, ), ), ), ), 'header_search_bar_typography' => array( 'control_type' => 'code4rest_typography_control', 'section' => 'header_search_bar_design', 'label' => esc_html__( 'Font', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_search_bar_typography' ), 'live_method' => array( array( 'type' => 'css_typography', 'selector' => '.header-search-bar form input.search-field', 'pattern' => array( 'desktop' => '$', 'tablet' => '$', 'mobile' => '$', ), 'property' => 'font', 'key' => 'typography', ), ), 'input_attrs' => array( 'id' => 'header_search_bar_typography', 'options' => 'no-color', ), ), 'header_search_bar_margin' => array( 'control_type' => 'code4rest_measure_control', 'section' => 'header_search_bar_design', 'default' => code4rest()->default( 'header_search_bar_margin' ), 'label' => esc_html__( 'Margin', 'code4rest-pro' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.header-search-bar', 'property' => 'margin', 'pattern' => '$', 'key' => 'measure', ), ), 'input_attrs' => array( 'responsive' => false, ), ), 'transparent_header_search_bar_color' => array( 'control_type' => 'code4rest_color_control', 'section' => 'transparent_header_design', 'label' => esc_html__( 'Search Bar Input Colors', 'code4rest-pro' ), 'default' => code4rest()->default( 'transparent_header_search_bar_color' ), 'context' => array( array( 'setting' => '__device', 'operator' => '==', 'value' => 'desktop', ), ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.transparent-header .header-search-bar form input.search-field, .transparent-header .header-search-bar form .code4rest-search-icon-wrap', 'property' => 'color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.transparent-header .header-search-bar form input.search-field:focus, .transparent-header .header-search-bar form input.search-submit:hover ~ .code4rest-search-icon-wrap, .transparent-header #main-header .header-search-bar form button[type="submit"]:hover ~ .code4rest-search-icon-wrap', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Focus Color', 'code4rest-pro' ), 'palette' => true, ), ), ), ), 'transparent_header_search_bar_background' => array( 'control_type' => 'code4rest_color_control', 'section' => 'transparent_header_design', 'label' => esc_html__( 'Search Bar Input Background', 'code4rest-pro' ), 'default' => code4rest()->default( 'transparent_header_search_bar_background' ), 'context' => array( array( 'setting' => '__device', 'operator' => '==', 'value' => 'desktop', ), ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.transparent-header .header-search-bar form input.search-field', 'property' => 'background', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.transparent-header .header-search-bar form input.search-field:focus', 'property' => 'background', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Focus Color', 'code4rest-pro' ), 'palette' => true, ), ), ), ), 'transparent_header_search_bar_border' => array( 'control_type' => 'code4rest_color_control', 'section' => 'transparent_header_design', 'label' => esc_html__( 'Search Bar Border Color', 'code4rest-pro' ), 'default' => code4rest()->default( 'transparent_header_search_bar_border' ), 'context' => array( array( 'setting' => '__device', 'operator' => '==', 'value' => 'desktop', ), ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.transparent-header .header-search-bar form input.search-field', 'property' => 'border-color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.transparent-header .header-search-bar form input.search-field:focus', 'property' => 'border-color', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Focus Color', 'code4rest-pro' ), 'palette' => true, ), ), ), ), ); if ( class_exists( 'woocommerce' ) ) { $settings = array_merge( $settings, array( 'header_search_bar_woo' => array( 'control_type' => 'code4rest_switch_control', 'section' => 'header_search_bar', 'priority' => 10, 'default' => code4rest()->default( 'header_search_bar_woo' ), 'label' => esc_html__( 'Search only Products?', 'code4rest-pro' ), 'transport' => 'refresh', ), ) ); } Theme_Customizer::add_settings( $settings );
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка