<?php
/**
 * Custom Colour Scheme Class
 *
 * @package errigal
 * @since 1.0.0
 */

namespace Errigal\Customiser;

defined( 'ABSPATH' ) || exit;

/**
 * This class is in charge of providing colour scheme settings and functions.
 *
 * @since 1.0.0
 */
class Errigal_Custom_Colour_Scheme extends Errigal_Custom_Base {
	/**
	 * Setting ID: Colour scheme.
	 *
	 * @since 1.0.0
	 *
	 * @var string
	 */
	public const ID_COLOUR_SCHEME = 'colour_scheme';

	/**
	 * Colour scheme: Sky blue.
	 *
	 * @since 1.1.0
	 *
	 * @var string
	 */
	public const COLOUR_SCHEME_SKY_BLUE = '';

	/**
	 * Colour scheme: Mono.
	 *
	 * @since 1.1.0
	 *
	 * @var string
	 */
	public const COLOUR_SCHEME_MONO = 'mono';

	/**
	 * Default setting value: Colour scheme.
	 *
	 * @since 1.0.0
	 *
	 * @var string
	 */
	public const DEFAULT_COLOUR_SCHEME = self::COLOUR_SCHEME_SKY_BLUE;

	/**
	 * Gets colour scheme.
	 *
	 * @since 1.1.0
	 *
	 * @return string
	 */
	public static function get_colour_scheme() {
		return sanitize_key(
			self::get_theme_mod_string(
				self::ID_COLOUR_SCHEME,
				self::DEFAULT_COLOUR_SCHEME
			)
		);
	}
}
