Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.143.237.54
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/themes/origami/inc/settings/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/themes/origami/inc/settings/inc/css_functions.php
<?php

class SiteOrigin_Settings_CSS_Functions {
	public function __construct() {
	}

	public static function single() {
		static $single;

		if ( empty( $single ) ) {
			$single = new self();
		}

		return $single;
	}

	public function font( $match ) {
		if ( empty( $match[2] ) ) {
			return '';
		}

		$return = '';
		$args = json_decode( trim( $match[2] ), true );

		if ( empty( $args['font'] ) ) {
			return '';
		}

		$return .= 'font-family: "' . esc_attr( $args['font'] ) . '"' . ( ! empty( $args['category'] ) ? ', ' . $args['category'] : '' ) . '; ';

		if ( ! empty( $args['variant'] ) && strpos( $args['variant'], 'italic' ) !== false ) {
			$weight = str_replace( 'italic', '', $args['variant'] );
			$return .= 'font-style: italic; ';
		} else {
			$weight = $args['variant'];
		}

		if ( empty( $weight ) ) {
			$weight = 'normal';
		}

		if ( $weight == 'regular' ) {
			$weight = 'normal';
		}
		$return .= 'font-weight: ' . esc_attr( $weight ) . '; ';

		return $return;
	}

	public function rgba( $match ) {
		if ( empty( $match[2] ) ) {
			return '';
		}
		$args = explode( ',', $match[2] );

		$rgb = trim( $args[0] );
		// If no color is set, $rgb will be empty
		if ( empty( $rgb ) ) {
			return 'transparent';
		}

		$rgb = SiteOrigin_Settings_Color::hex2rgb( trim( $args[0] ) );

		return 'rgba(' . implode( ',', array_merge( $rgb, array( floatval( $args[1] ) ) ) ) . ');';
	}

	public function lighten( $match ) {
		$args = explode( ',', $match[2] );
		$rgb = SiteOrigin_Settings_Color::hex2rgb( trim( $args[0] ) );
		$hsv = SiteOrigin_Settings_Color::rgb2hsv( $rgb );

		if ( strpos( $args[1], '%' ) !== false ) {
			$percent = intval( trim( $args[1] ) ) / 100;
		} else {
			$percent = floatval( trim( $args[1] ) );
		}

		$hsv[2] += $percent;

		return SiteOrigin_Settings_Color::rgb2hex( SiteOrigin_Settings_Color::hsv2rgb( $hsv ) );
	}

	public function darken( $match ) {
		$args = explode( ',', $match[2] );
		$rgb = SiteOrigin_Settings_Color::hex2rgb( trim( $args[0] ) );
		$hsv = SiteOrigin_Settings_Color::rgb2hsv( $rgb );

		if ( strpos( $args[1], '%' ) !== false ) {
			$percent = intval( trim( $args[1] ) ) / 100;
		} else {
			$percent = floatval( trim( $args[1] ) );
		}

		$hsv[2] -= $percent;

		return SiteOrigin_Settings_Color::rgb2hex( SiteOrigin_Settings_Color::hsv2rgb( $hsv ) );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit