<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$wp_customize->add_section( 'graylc_logo_section', array(
        'title' => 'Upload Logo',
        'panel' => 'glc-panels',
) );

$wp_customize->add_setting('graylc_login_logo', array(
    'default'    => '',
    'capability' => 'edit_theme_options',
    'type'       => 'option', // or use 'theme_mod' if preferred
));

$wp_customize->add_control(new WP_Customize_Image_Control(
    $wp_customize,
    'graylc_logo_control',
    array(
        'label'    => __('Upload Logo', 'gray-login-customizer'),
        'section'  => 'graylc_logo_section',
        'settings' => 'graylc_login_logo',
    )
));