<?php

function customize_general_register( $wp_customize ) {

    $wp_customize->add_panel( 'theme_options_panel', array(
        'title'       => 'عمومی',
        'priority'    => 10,
        'capability'  => 'edit_theme_options',
    ) );

    $wp_customize->add_section( 'header_settings_section', array(
        'title'       => 'هدر',
        'priority'    => 10,
        'panel'       => 'theme_options_panel',
    ) );

    $wp_customize->add_setting( 'header_layout_setting', array(
        'default'           => 'layout-1',
        'sanitize_callback' => 'sanitize_text_field',
        'transport'         => 'refresh',
    ) );

    $wp_customize->add_control( 'header_layout_control', array(
        'label'       => 'قالب هدر',
        'description' => 'قالب هدر را انتخاب کنید',
        'section'     => 'header_settings_section',
        'settings'    => 'header_layout_setting',
        'type'        => 'select',
        'choices'     => array(
            'layout-1' => 'نوع 1'
        ),
    ) );

}