Warning: chmod(): Operation not permitted in /data/html/improve/wp-content/plugins/wordfence/wordfence.php on line 8
403WebShell
403Webshell
Server IP : 52.9.100.119  /  Your IP : 216.73.216.171
Web Server : Apache/2.4.61 (Amazon) OpenSSL/1.0.2k-fips PHP/7.3.30 Phusion_Passenger/5.1.5
System : Linux ip-172-31-9-35 4.14.355-196.618.amzn1.x86_64 #1 SMP Mon Apr 7 17:09:50 UTC 2025 x86_64
User : root ( 0)
PHP Version : 7.3.30
Disable Function : exec,passthru,shell_exec,system,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /data/html/AvivaKende/wp-content/plugins/qode-framework/inc/fonts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /data/html/AvivaKende/wp-content/plugins/qode-framework/inc/fonts/helper.php
<?php

if ( ! function_exists( 'qode_framework_get_formatted_font_family' ) ) {
	/**
	 * Function that returns formatted font family name
	 *
	 * @param string $value
	 * @param bool $reverse
	 *
	 * @return string
	 */
	function qode_framework_get_formatted_font_family( $value, $reverse = false ) {
		return $reverse ? str_replace( ' ', '+', $value ) : str_replace( '+', ' ', $value );
	}
}

if ( ! function_exists( 'qode_framework_get_web_safe_fonts_list' ) ) {
	/**
	 * Function that returns array of web safe fonts
	 *
	 * @return array
	 */
	function qode_framework_get_web_safe_fonts_list() {

		return apply_filters(
			'qode_framework_filter_web_safe_fonts_list',
			array(
				'Arial',
				'Arial Black',
				'Comic Sans MS',
				'Courier New',
				'Georgia',
				'Impact',
				'Lucida Console',
				'Lucida Sans Unicode',
				'Palatino Linotype',
				'Tahoma',
				'Times New Roman',
				'Trebuchet MS',
				'Verdana',
			)
		);
	}
}

if ( ! function_exists( 'qode_framework_is_web_safe_font' ) ) {
	/**
	 * Function that checks if given font is native font
	 *
	 * @param string $font_family
	 *
	 * @return bool
	 */
	function qode_framework_is_web_safe_font( $font_family ) {
		return in_array( qode_framework_get_formatted_font_family( $font_family ), qode_framework_get_web_safe_fonts_list(), true );
	}
}

if ( ! function_exists( 'qode_framework_get_web_safe_fonts' ) ) {
	/**
	 * Function that returns array of web safe fonts
	 *
	 * @return array
	 */
	function qode_framework_get_web_safe_fonts() {
		$fonts_array    = array();
		$web_safe_fonts = qode_framework_get_web_safe_fonts_list();

		if ( ! empty( $web_safe_fonts ) ) {
			foreach ( $web_safe_fonts as $web_safe_font ) {
				$font_key                 = qode_framework_get_formatted_font_family( $web_safe_font, true );
				$fonts_array[ $font_key ] = $web_safe_font;
			}
		}

		return $fonts_array;
	}
}

if ( ! function_exists( 'qode_framework_get_google_fonts' ) ) {
	/**
	 * Function that returns array of google fonts
	 *
	 * @return array
	 */
	function qode_framework_get_google_fonts() {
		$google_fonts_array = array();

		$google_fonts_json         = qode_framework_get_google_fonts_json();
		$google_fonts_json_decoded = json_decode( $google_fonts_json, true );
		$google_fonts_json_decoded = $google_fonts_json_decoded['items'];

		foreach ( $google_fonts_json_decoded as $font ) {
			$font_key                        = qode_framework_get_formatted_font_family( $font['family'], true );
			$google_fonts_array[ $font_key ] = $font['family'];
		}

		return apply_filters( 'qode_framework_filter_google_fonts', $google_fonts_array );
	}
}

if ( ! function_exists( 'qode_framework_get_complete_fonts_array' ) ) {
	/**
	 * Function that returns array of fonts
	 *
	 * @return array
	 */
	function qode_framework_get_complete_fonts_array() {
		$web_safe_fonts = qode_framework_get_web_safe_fonts();

		$complete_fonts_array = array_merge( array( '' => esc_attr__( 'Default', 'qode-framework' ) ), $web_safe_fonts );

		return apply_filters( 'qode_framework_filter_complete_fonts_list', $complete_fonts_array );
	}
}

if ( ! function_exists( 'qode_framework_add_custom_upload_mimes' ) ) {
	/**
	 * Function that extend default upload mimes types
	 *
	 * @return array
	 */
	function qode_framework_add_custom_upload_mimes( $existing_mimes ) {
		$existing_mimes['ttf']   = 'font/ttf';
		$existing_mimes['otf']   = 'font/otf';
		$existing_mimes['woff']  = 'font/woff';
		$existing_mimes['woff2'] = 'font/woff2';

		return $existing_mimes;
	}

	add_filter( 'upload_mimes', 'qode_framework_add_custom_upload_mimes' );
}

Youez - 2016 - github.com/yon3zu
LinuXploit