Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/code4rest-pro/dist/conditional-headers/conditional-header-options.php
Ðазад
<?php /** * Header Account Options. * * @package Code4rest_Pro */ namespace Code4rest_Pro; use Code4rest\Theme_Customizer; use function Code4rest\code4rest; $preview_options = array( '' => array( 'name' => __( 'Default', 'code4rest-pro' ), ), ); $headers = code4rest()->option( 'conditional_headers' ); if ( ! empty( $headers['items'] ) && is_array( $headers['items'] ) ) { foreach ( $headers['items'] as $header ) { $preview_options[ $header['id'] ] = array( 'name' => $header['label'], ); } } $settings = array( 'header_conditional_heading' => array( 'control_type' => 'code4rest_conditional_heading_control', 'section' => 'header_layout', 'settings' => false, 'priority' => 5, 'label' => esc_html__( 'Previewing Header:', 'code4rest-pro' ), ), 'header_conditional_link' => array( 'control_type' => 'code4rest_focus_button_control', 'section' => 'header_layout', 'settings' => false, 'priority' => 21, 'label' => esc_html__( 'Conditional Header', 'code4rest-pro' ), 'input_attrs' => array( 'section' => 'code4rest_customizer_conditional_header', ), ), 'current_header_preview' => array( 'control_type' => 'code4rest_conditional_select_control', 'section' => 'conditional_header', 'transport' => 'refresh', 'default' => code4rest()->default( 'current_header_preview' ), 'label' => esc_html__( 'Current Previewing Header', 'code4rest-pro' ), 'input_attrs' => array( 'options' => $preview_options, ), ), 'conditional_headers' => array( 'control_type' => 'code4rest_conditional_control', 'section' => 'conditional_header', 'default' => code4rest()->default( 'conditional_headers' ), 'label' => esc_html__( 'Conditional Headers', 'code4rest-pro' ), ), ); Theme_Customizer::add_settings( $settings );
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка