<?php
if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * Plugin Schemes Settings.
 */

function youzify_schemes_settings() {

    global $Youzify_Settings;

    $Youzify_Settings->get_field(
        array(
            'title'     => __( 'Info', 'youzify' ),
            'msg_type'  => 'info',
            'type'      => 'msgBox',
            'id'        => 'youzify_msgbox_profile_schemes',
            'msg'       => __( 'If you want to use the <strong>Custom Profile Scheme Color</strong>, make sure that you <strong>enabled</strong> the custom scheme button.', 'youzify' )
        )
    );

    $Youzify_Settings->get_field(
        array(
            'title' => __( 'General Settings', 'youzify' ),
            'class' => 'ukai-box-3cols',
            'type'  => 'openBox'
        )
    );

    $Youzify_Settings->get_field(
        array(
            'title' => __( 'Enable Custom Scheme?', 'youzify' ),
            'desc'  => __( 'Wanna use custom scheme color?', 'youzify' ),
            'id'    => 'youzify_enable_profile_custom_scheme',
            'type'  => 'checkbox'
        )
    );

    $Youzify_Settings->get_field(
        array(
            'title' => __( 'Scheme Backgorund Color', 'youzify' ),
            'desc'  => __( 'Profile custom scheme background color', 'youzify' ),
            'id'    => 'youzify_profile_custom_scheme_color',
            'type'  => 'color'
        )
    );

    $Youzify_Settings->get_field(
        array(
            'title' => __( 'Scheme Text Color', 'youzify' ),
            'desc'  => __( 'Profile custom scheme text color', 'youzify' ),
            'id'    => 'youzify_profile_custom_scheme_text_color',
            'type'  => 'color'
        )
    );

    $Youzify_Settings->get_field( array( 'type' => 'closeBox' ) );

    $Youzify_Settings->get_field(
        array(
            'title' => __( 'Profile Schemes', 'youzify' ),
            'class' => 'uk-img-radius youzify-plugin-schemes uk-center-elements',
            'type'  => 'openBox'
        )
    );

    $Youzify_Settings->get_field(
        array(
            'id'        =>  'youzify_profile_scheme',
            'use_class' => true,
            'type'      => 'imgSelect',
            'opts'      => array(
                'youzify-blue-scheme', 'youzify-orange-scheme', 'youzify-red-scheme', 'youzify-green-scheme',
                'youzify-crimson-scheme', 'youzify-aqua-scheme', 'youzify-purple-scheme', 'youzify-brown-scheme',
                'youzify-yellow-scheme', 'youzify-pink-scheme', 'youzify-darkblue-scheme', 'youzify-darkgreen-scheme',
                'youzify-darkorange-scheme', 'youzify-gray-scheme', 'youzify-lightblue-scheme', 'youzify-darkgray-scheme'
            )
        )
    );

    $Youzify_Settings->get_field( array( 'type' => 'closeBox' ) );


    $Youzify_Settings->get_field(
        array(
            'title' => __( 'Appearance Settings', 'youzify' ),
            'type'  => 'openBox'
        )
    );


    $Youzify_Settings->get_field(
        array(
            'title' => __( 'Default Appearance Mode', 'youzify' ),
            'desc' => __( 'Select default apperance mode', 'youzify' ),
            'id'    => 'youzify_default_lighting_mode',
            'type'  => 'select',
            'opts'  => array(
                'light' => __( 'Light', 'youzify' ),
                'dark' => __( 'Dark', 'youzify' )
            ),
        )
    );

    $Youzify_Settings->get_field(
        array(
            'title' => __( 'Make Apperance Editable by Members', 'youzify' ),
            'desc' => __( 'Allow users to select their own appearance mode', 'youzify' ),
            'id'    => 'youzify_allow_lighting_edition',
            'type'  => 'checkbox',
        )
    );

    $Youzify_Settings->get_field( array( 'type' => 'closeBox' ) );
}