Yuzu Theme
from meowapps.com
This commit is contained in:
46
inc/customizer-sections/style-section.php
Normal file
46
inc/customizer-sections/style-section.php
Normal 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'),
|
||||
)
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user