| Server IP : 104.21.21.239 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/domains/siparent/lib/ |
Upload File : |
<?php
/**
* JSMT Genesis - Customizer is based on Parallax Pro Theme
*
* This file adds the customizer additions to the JSMT Media Theme
*
* @package JSMT Media Theme
* @author JSMT Media 2017
* @license GPL-2.0+
* @link http://jsmtmedia.com
*/
/**
* Get the default accent color.
*
* @since 1.3.0
*
* @return string Hex value of the default color.
*/
function jsmt_get_default_accent_color() {
return '#00a0af';
}
function jsmt_get_default_link_color() {
return '#c3251d';
}
/**
* Generate a hex value that has appropriate contrast
* against the inputted value.
*
* @since 1.3.0
*
* @return string Hex color code for contrasting color.
*/
function jsmt_color_contrast( $color ) {
$hexcolor = str_replace( '#', '', $color );
$red = hexdec( substr( $hexcolor, 0, 2 ) );
$green = hexdec( substr( $hexcolor, 2, 2 ) );
$blue = hexdec( substr( $hexcolor, 4, 2 ) );
$luminosity = ( ( $red * 0.2126 ) + ( $green * 0.7152 ) + ( $blue * 0.0722 ) );
return ( $luminosity > 128 ) ? '#000000' : '#ffffff';
}