File: /home/bristolfilton.co.uk/public_html/wp-content/themes/advance/inc/kirki/includes/deprecated.php
<?php
/**
* This file contains all the deprecated functions.
* We could easily delete all these but they are kept for backwards-compatibility purposes.
*
* @package Kirki
* @category Core
* @author Aristeides Stathopoulos
* @copyright Copyright (c) 2016, Aristeides Stathopoulos
* @license http://opensource.org/licenses/https://opensource.org/licenses/MIT
* @since 1.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! function_exists( 'kirki_get_option' ) ) {
/**
* Get the value of a field.
* This is a deprecated function that we in use when there was no API.
* Please use the Kirki::get_option() method instead.
* Documentation is available for the new method on https://github.com/aristath/kirki/wiki/Getting-the-values
*
* @return mixed
*/
function kirki_get_option( $option = '' ) {
return Kirki::get_option( '', $option );
}
}
if ( ! function_exists( 'kirki_sanitize_hex' ) ) {
function kirki_sanitize_hex( $color ) {
return Kirki_Color::sanitize_hex( $color );
}
}
if ( ! function_exists( 'kirki_get_rgb' ) ) {
function kirki_get_rgb( $hex, $implode = false ) {
return Kirki_Color::get_rgb( $hex, $implode );
}
}
if ( ! function_exists( 'kirki_get_rgba' ) ) {
function kirki_get_rgba( $hex = '#fff', $opacity = 100 ) {
return Kirki_Color::get_rgba( $hex, $opacity );
}
}
if ( ! function_exists( 'kirki_get_brightness' ) ) {
function kirki_get_brightness( $hex ) {
return Kirki_Color::get_brightness( $hex );
}
}
/**
* Class was deprecated in 2.2.7
*
* @see https://github.com/aristath/kirki/commit/101805fd689fa8828920b789347f13efc378b4a7
*/
if ( ! class_exists( 'Kirki_Colourlovers' ) ) {
/**
* Deprecated.
*/
class Kirki_Colourlovers {
public static function get_palettes( $palettes_nr = 5 ) {
return array();
}
}
}