Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/code4rest-pro/dist/header-addons/header-mobile-contact-options.php
Ðазад
<?php /** * Header Builder Options * * @package Code4rest */ namespace Code4rest; use Code4rest\Theme_Customizer; use function Code4rest\code4rest; $settings = array( 'header_mobile_contact_tabs' => array( 'control_type' => 'code4rest_tab_control', 'section' => 'header_mobile_contact', 'settings' => false, 'priority' => 1, 'input_attrs' => array( 'general' => array( 'label' => __( 'General', 'code4rest-pro' ), 'target' => 'header_mobile_contact', ), 'design' => array( 'label' => __( 'Design', 'code4rest-pro' ), 'target' => 'header_mobile_contact_design', ), 'active' => 'general', ), ), 'header_mobile_contact_tabs_design' => array( 'control_type' => 'code4rest_tab_control', 'section' => 'header_mobile_contact_design', 'settings' => false, 'priority' => 1, 'input_attrs' => array( 'general' => array( 'label' => __( 'General', 'code4rest-pro' ), 'target' => 'header_mobile_contact', ), 'design' => array( 'label' => __( 'Design', 'code4rest-pro' ), 'target' => 'header_mobile_contact_design', ), 'active' => 'design', ), ), 'header_mobile_contact_items' => array( 'control_type' => 'code4rest_contact_control', 'section' => 'header_mobile_contact', 'priority' => 6, 'default' => code4rest()->default( 'header_mobile_contact_items' ), 'label' => esc_html__( 'Contact Items', 'code4rest-pro' ), 'partial' => array( 'selector' => '.header-mobile-contact-wrap', 'container_inclusive' => true, 'render_callback' => 'Code4rest_Pro\header_mobile_contact', ), ), 'header_mobile_contact_item_spacing' => array( 'control_type' => 'code4rest_range_control', 'section' => 'header_mobile_contact_design', 'label' => esc_html__( 'Item Horizontal Spacing', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_mobile_contact_item_spacing' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.header-mobile-contact-wrap .element-contact-inner-wrap .header-contact-item', 'property' => 'margin-left', 'pattern' => 'calc($ / 2)', 'key' => 'size', ), array( 'type' => 'css', 'selector' => '.header-mobile-contact-wrap .element-contact-inner-wrap .header-contact-item', 'property' => 'margin-right', 'pattern' => 'calc($ / 2)', 'key' => 'size', ), array( 'type' => 'css', 'selector' => '.header-mobile-contact-wrap .element-contact-inner-wrap', 'property' => 'margin-left', 'pattern' => 'calc(-$ / 2)', 'key' => 'size', ), array( 'type' => 'css', 'selector' => '.header-mobile-contact-wrap .element-contact-inner-wrap', 'property' => 'margin-right', 'pattern' => 'calc(-$ / 2)', 'key' => 'size', ), ), 'input_attrs' => array( 'min' => array( 'px' => 0, 'em' => 0, 'rem' => 0, ), 'max' => array( 'px' => 50, 'em' => 3, 'rem' => 3, ), 'step' => array( 'px' => 1, 'em' => 0.01, 'rem' => 0.01, ), 'units' => array( 'px', 'em', 'rem' ), 'responsive' => false, ), ), 'header_mobile_contact_item_vspacing' => array( 'control_type' => 'code4rest_range_control', 'section' => 'header_mobile_contact_design', 'label' => esc_html__( 'Item Vertical Spacing', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_mobile_contact_item_vspacing' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.header-mobile-contact-wrap .element-contact-inner-wrap .header-contact-item', 'property' => 'margin-top', 'pattern' => '$', 'key' => 'size', ), array( 'type' => 'css', 'selector' => '.header-mobile-contact-wrap .element-contact-inner-wrap', 'property' => 'margin-top', 'pattern' => '-$', 'key' => 'size', ), ), 'input_attrs' => array( 'min' => array( 'px' => 0, 'em' => 0, 'rem' => 0, ), 'max' => array( 'px' => 50, 'em' => 3, 'rem' => 3, ), 'step' => array( 'px' => 1, 'em' => 0.01, 'rem' => 0.01, ), 'units' => array( 'px', 'em', 'rem' ), 'responsive' => false, ), ), 'header_mobile_contact_icon_size' => array( 'control_type' => 'code4rest_range_control', 'section' => 'header_mobile_contact_design', 'label' => esc_html__( 'Icon Size', 'code4rest-pro' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#mobile-header .element-contact-inner-wrap .header-contact-item .code4rest-svg-iconset', 'property' => 'font-size', 'pattern' => '$', 'key' => 'size', ), ), 'default' => code4rest()->default( 'header_mobile_contact_icon_size' ), 'input_attrs' => array( 'min' => array( 'px' => 0, 'em' => 0, 'rem' => 0, ), 'max' => array( 'px' => 100, 'em' => 12, 'rem' => 12, ), 'step' => array( 'px' => 1, 'em' => 0.01, 'rem' => 0.01, ), 'units' => array( 'px', 'em', 'rem' ), 'responsive' => false, ), ), 'header_mobile_contact_color' => array( 'control_type' => 'code4rest_color_control', 'section' => 'header_mobile_contact_design', 'label' => esc_html__( 'Colors', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_mobile_contact_color' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#mobile-header .header-mobile-contact-wrap .header-contact-item', 'property' => 'color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '#mobile-header .header-mobile-contact-wrap a.header-contact-item:hover', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Hover Color', 'code4rest-pro' ), 'palette' => true, ), ), ), ), 'header_mobile_contact_link_style' => array( 'control_type' => 'code4rest_select_control', 'section' => 'header_mobile_contact_design', 'default' => code4rest()->default( 'header_mobile_contact_link_style' ), 'label' => esc_html__( 'Link Style', 'code4rest-pro' ), 'input_attrs' => array( 'options' => array( 'normal' => array( 'name' => __( 'Underline', 'code4rest-pro' ), ), 'plain' => array( 'name' => __( 'No Underline', 'code4rest-pro' ), ), ), ), 'live_method' => array( array( 'type' => 'class', 'selector' => '#mobile-header .header-mobile-contact-wrap', 'pattern' => 'inner-link-style-$', 'key' => '', ), ), ), 'header_mobile_contact_typography' => array( 'control_type' => 'code4rest_typography_control', 'section' => 'header_mobile_contact_design', 'label' => esc_html__( 'Font', 'code4rest-pro' ), 'default' => code4rest()->default( 'header_mobile_contact_typography' ), 'live_method' => array( array( 'type' => 'css_typography', 'selector' => '#mobile-header .header-mobile-contact-wrap .header-contact-item', 'pattern' => array( 'desktop' => '$', 'tablet' => '$', 'mobile' => '$', ), 'property' => 'font', 'key' => 'typography', ), ), 'input_attrs' => array( 'id' => 'header_mobile_contact_typography', 'options' => 'no-color', ), ), 'header_mobile_contact_margin' => array( 'control_type' => 'code4rest_measure_control', 'section' => 'header_mobile_contact_design', 'priority' => 10, 'default' => code4rest()->default( 'header_mobile_contact_margin' ), 'label' => esc_html__( 'Margin', 'code4rest-pro' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#mobile-header .header-mobile-contact-wrap', 'property' => 'margin', 'pattern' => '$', 'key' => 'measure', ), ), 'input_attrs' => array( 'responsive' => false, ), ), 'transparent_header_mobile_contact_color' => array( 'control_type' => 'code4rest_color_control', 'section' => 'transparent_header_design', 'label' => esc_html__( 'Contact Colors', 'code4rest-pro' ), 'default' => code4rest()->default( 'transparent_header_mobile_contact_color' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.transparent-header #mobile-header .header-mobile-contact-wrap .header-contact-item', 'property' => 'color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.transparent-header #mobile-header .header-mobile-contact-wrap a.header-contact-item:hover', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Color', 'code4rest-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Hover', 'code4rest-pro' ), 'palette' => true, ), ), ), ), ); Theme_Customizer::add_settings( $settings );
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка