Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/themes/code4rest/inc/customizer/options/header-logo-options.php
Ðазад
<?php /** * Header Builder Options * * @package Code4rest */ namespace Code4rest; use Code4rest\Theme_Customizer; use function Code4rest\code4rest; ob_start(); ?> <div class="code4rest-compontent-tabs nav-tab-wrapper wp-clearfix"> <a href="#" class="nav-tab code4rest-general-tab code4rest-compontent-tabs-button nav-tab-active" data-tab="general"> <span><?php esc_html_e( 'General', 'code4rest' ); ?></span> </a> <a href="#" class="nav-tab code4rest-design-tab code4rest-compontent-tabs-button" data-tab="design"> <span><?php esc_html_e( 'Design', 'code4rest' ); ?></span> </a> </div> <?php $compontent_tabs = ob_get_clean(); $settings = array( 'logo_settings' => array( 'control_type' => 'code4rest_blank_control', 'section' => 'title_tagline', 'settings' => false, 'priority' => 1, 'description' => $compontent_tabs, ), 'logo_width' => array( 'control_type' => 'code4rest_range_control', 'section' => 'title_tagline', 'priority' => 5, 'label' => esc_html__( 'Logo Max Width', 'code4rest' ), 'description' => esc_html__( 'Define the maxium width for the logo', 'code4rest' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), array( 'setting' => 'custom_logo', 'operator' => '!empty', 'value' => '', ), ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#masthead .custom-logo', 'property' => 'max-width', 'pattern' => '$', 'key' => 'size', ), array( 'type' => 'css', 'selector' => '#masthead .site-branding a.brand img.svg-logo-image', 'property' => 'width', 'pattern' => '$', 'key' => 'size', ), ), 'default' => code4rest()->default( 'logo_width' ), 'input_attrs' => array( 'min' => array( 'px' => 10, 'em' => 1, 'rem' => 1, 'vw' => 2, '%' => 2, ), 'max' => array( 'px' => 800, 'em' => 50, 'rem' => 50, 'vw' => 80, '%' => 80, ), 'step' => array( 'px' => 1, 'em' => 0.01, 'rem' => 0.01, 'vw' => 1, '%' => 1, ), 'units' => array( 'px', 'em', 'rem', 'vw' ), ), ), 'info_transparent_logo_in_use' => array( 'control_type' => 'code4rest_title_control', 'section' => 'title_tagline', 'priority' => 5, 'description' => esc_html__( '*NOTICE Custom transparent logo will show on pages that have the transparent header enabled. Change that in your transparent header settings.', 'code4rest' ), 'settings' => false, 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), array( 'setting' => 'logo_layout', 'operator' => 'sub_object_contains', 'sub_key' => 'include', 'responsive' => true, 'value' => 'logo', ), array( 'setting' => 'transparent_header_enable', 'operator' => '=', 'value' => true, ), array( 'setting' => 'transparent_header_custom_logo', 'operator' => '=', 'value' => true, ), ), ), 'use_mobile_logo' => array( 'control_type' => 'code4rest_switch_control', 'sanitize' => 'code4rest_sanitize_toggle', 'section' => 'title_tagline', 'transport' => 'refresh', 'priority' => 6, 'default' => code4rest()->default( 'use_mobile_logo' ), 'label' => esc_html__( 'Different Logo for Mobile?', 'code4rest' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), array( 'setting' => '__device', 'operator' => 'in', 'value' => array( 'tablet', 'mobile' ), ), ), ), 'mobile_logo' => array( 'control_type' => 'media', 'section' => 'title_tagline', 'transport' => 'refresh', 'priority' => 6, 'mime_type' => 'image', 'default' => '', 'label' => esc_html__( 'Mobile Logo', 'code4rest' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), array( 'setting' => 'use_mobile_logo', 'operator' => '=', 'value' => true, ), array( 'setting' => '__device', 'operator' => 'in', 'value' => array( 'tablet', 'mobile' ), ), ), ), 'logo_layout' => array( 'control_type' => 'code4rest_multi_radio_icon_control', 'section' => 'title_tagline', 'priority' => 6, 'default' => code4rest()->default( 'logo_layout' ), 'label' => esc_html__( 'Logo Layout', 'code4rest' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'partial' => array( 'selector' => '#masthead', 'container_inclusive' => true, 'render_callback' => 'Code4rest\header_markup', ), ), 'brand_typography' => array( 'control_type' => 'code4rest_typography_control', 'section' => 'title_tagline', 'label' => esc_html__( 'Site Title Font', 'code4rest' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'design', ), array( 'setting' => 'logo_layout', 'operator' => 'sub_object_contains', 'sub_key' => 'include', 'responsive' => true, 'value' => 'title', ), ), 'default' => code4rest()->default( 'brand_typography' ), 'live_method' => array( array( 'type' => 'css_typography', 'selector' => array( 'desktop' => '#main-header .site-branding .site-title', 'tablet' => '#mobile-header .site-branding .site-title', 'mobile' => '#mobile-header .site-branding .site-title', ), 'pattern' => array( 'desktop' => '$', 'tablet' => '$', 'mobile' => '$', ), 'property' => 'font', 'key' => 'typography', ), ), 'input_attrs' => array( 'id' => 'brand_typography', ), ), 'brand_typography_color' => array( 'control_type' => 'code4rest_color_control', 'section' => 'title_tagline', 'label' => esc_html__( 'Site Title Hover and Active Colors', 'code4rest' ), 'default' => code4rest()->default( 'brand_typography_color' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#masthead .site-branding .site-title:hover', 'pattern' => '$', 'property' => 'color', 'key' => 'hover', ), array( 'type' => 'css', 'selector' => '#main-header .header-html a:hover', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), array( 'type' => 'css', 'selector' => 'body.home #masthead .site-branding .site-title', 'pattern' => '$', 'property' => 'color', 'key' => 'active', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'design', ), array( 'setting' => 'logo_layout', 'operator' => 'sub_object_contains', 'sub_key' => 'include', 'responsive' => true, 'value' => 'title', ), ), 'input_attrs' => array( 'colors' => array( 'hover' => array( 'tooltip' => __( 'Hover Color', 'code4rest' ), 'palette' => true, ), 'active' => array( 'tooltip' => __( 'Active Color', 'code4rest' ), 'palette' => true, ), ), ), ), // Logo Tagline Typography. 'brand_tag_typography' => array( 'control_type' => 'code4rest_typography_control', 'section' => 'title_tagline', 'label' => esc_html__( 'Site Tagline Font', 'code4rest' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'design', ), array( 'setting' => 'logo_layout', 'operator' => 'sub_object_contains', 'sub_key' => 'include', 'responsive' => true, 'value' => 'tagline', ), ), 'default' => code4rest()->default( 'brand_tag_typography' ), 'live_method' => array( array( 'type' => 'css_typography', 'selector' => array( 'desktop' => '#masthead .site-branding .site-description', 'tablet' => '#masthead .site-branding .site-description', 'mobile' => '#masthead .site-branding .site-description', ), 'pattern' => array( 'desktop' => '$', 'tablet' => '$', 'mobile' => '$', ), 'property' => 'font', 'key' => 'typography', ), ), 'input_attrs' => array( 'id' => 'brand_tag_typography', ), ), 'header_logo_padding' => array( 'control_type' => 'code4rest_measure_control', 'section' => 'title_tagline', 'priority' => 15, 'default' => code4rest()->default( 'header_logo_padding' ), 'label' => esc_html__( 'Padding', 'code4rest' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'design', ), ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.site-branding', 'property' => 'padding', 'pattern' => '$', 'key' => 'measure', ), ), 'input_attrs' => array( 'min' => array( 'px' => 0, 'em' => 0, 'rem' => 0, ), 'max' => array( 'px' => 100, 'em' => 6, 'rem' => 6, ), 'step' => array( 'px' => 1, 'em' => 0.01, 'rem' => 0.01, ), 'units' => array( 'px', 'em', 'rem' ), 'responsive' => true, ), ), 'logo_link_to_site_icon' => array( 'control_type' => 'code4rest_focus_button_control', 'section' => 'title_tagline', 'settings' => false, 'priority' => 25, 'label' => esc_html__( 'Site Icon', 'code4rest' ), 'input_attrs' => array( 'section' => 'code4rest_customizer_site_identity', ), ), 'site_logo_link' => array( 'control_type' => 'code4rest_focus_button_control', 'section' => 'site_identity', 'settings' => false, 'priority' => 5, 'label' => esc_html__( 'Site Title and Logo Control', 'code4rest' ), 'input_attrs' => array( 'section' => 'title_tagline', ), ), 'post_archive_home_title' => array( 'control_type' => 'code4rest_switch_control', 'sanitize' => 'code4rest_sanitize_toggle', 'section' => 'static_front_page', 'transport' => 'refresh', 'default' => code4rest()->default( 'post_archive_home_title' ), 'label' => esc_html__( 'Show site name for page title', 'code4rest' ), 'context' => array( array( 'setting' => 'show_on_front', 'operator' => '==', 'value' => 'posts', ), ), ), ); Theme_Customizer::add_settings( $settings );
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка