Yuzu Theme

from meowapps.com
This commit is contained in:
2022-05-03 09:37:05 +02:00
commit 523ccac38e
75 changed files with 15482 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
/* =============================================== */
// # STYLE SECTION
/* =============================================== */
$wp_customize->add_section( 'style_section', array(
'priority' => 10,
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => __( 'Style', 'yuzu' ),
'description' => '',
'panel' => 'theme_settings',
) );
/* =============================================== */
// ## Headers
/* =============================================== */
$wp_customize->add_control(
new yuzu_Customizer_Accordion(
$wp_customize,
'yuzu-headers-style-sheme-accordion',
array(
'section' => 'style_section',
'label' => __( 'Headers', 'yuzu' ),
'type' => 'accordion'
)
)
);
$wp_customize->add_setting( 'header_background_opacity', array(
'default' => 'normal-opaque',
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(
'header_background_opacity',
array(
'type' => 'radio',
'label' => __('Header Background Opacity', 'yuzu'),
'section' => 'style_section',
'choices' => array(
'less-opaque' => __('Less opaque', 'yuzu'),
'normal-opaque' => __('Normal', 'yuzu'),
'very-opaque' => __('Very opaque', 'yuzu'),
)
)
);