$73 GRAYBYTE WORDPRESS FILE MANAGER $36

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/hpgt.org/wp-content/plugins/elementskit-lite/libs/framework/classes/

HOME
Current File : /home/bravrvjk/hpgt.org/wp-content/plugins/elementskit-lite/libs/framework/classes//utils.php
<?php 
namespace ElementsKit_Lite\Libs\Framework\Classes;

defined( 'ABSPATH' ) || exit;

class Utils {

	public static $instance = null;
	private static $key     = 'elementskit_options';

	public static function get_dir() {
		return \ElementsKit_Lite::lib_dir() . 'framework/';
	}

	public static function get_url() {
		return \ElementsKit_Lite::lib_url() . 'framework/';
	}

	public function get_option( $key, $default = '' ) {
		$data_all = get_option( self::$key );
		return ( isset( $data_all[ $key ] ) && $data_all[ $key ] != '' ) ? $data_all[ $key ] : $default;
	}

	public function save_option( $key, $value = '' ) {
		$data_all         = get_option( self::$key, array() );
		$data_all[ $key ] = $value;
		update_option( 'elementskit_options', $data_all );
	}

	public function get_settings( $key, $default = '' ) {
		$data_all = $this->get_option( 'settings', array() );
		return ( isset( $data_all[ $key ] ) && $data_all[ $key ] != '' ) ? $data_all[ $key ] : $default;
	}

	public function save_settings( $new_data = '' ) {
		$data_old = $this->get_option( 'settings', array() );
		$data     = array_merge( $data_old, $new_data );
		$this->save_option( 'settings', $data );
	}

	/*
		-> this method used to check weather the widget active/deactive
		-> this method takes two paramitter 1. widget name 2. Active/deactive hook
	 */ 
	public function is_widget_active_class( $widget_name, $pro_active ) {
		if ( $pro_active ) {
			return 'label-' . $widget_name . ' attr-panel-heading';
		} else {
			return 'label-' . $widget_name . ' attr-panel-heading pro-disabled';
		}
	}

	public function input( $input_options ) {
		$defaults      = array(
			'type'     => null,
			'name'     => '',
			'value'    => '',
			'class'    => '',
			'label'    => '',
			'info'     => '',
			'disabled' => '',
			'options'  => array(),
		);
		$input_options = array_merge( $defaults, $input_options );

		if ( file_exists( self::get_dir() . 'controls/settings/' . $input_options['type'] . '.php' ) ) {
			extract( $input_options );
			include self::get_dir() . 'controls/settings/' . $input_options['type'] . '.php';
		}
	}

	public static function strify( $str ) {
		return strtolower( preg_replace( '/[^A-Za-z0-9]/', '__', $str ) );
	}




	public static function instance() {
		if ( is_null( self::$instance ) ) {

			// Fire the class instance
			self::$instance = new self();
		}

		return self::$instance;
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Mar 2026 1.56 AM
bravrvjk / bravrvjk
0755
ajax.php
5.706 KB
15 Mar 2026 8.35 AM
bravrvjk / bravrvjk
0644
onboard-status.php
2.847 KB
14 Jul 2025 12.01 PM
bravrvjk / bravrvjk
0644
plugin-data-sender.php
0.619 KB
14 Jul 2025 12.01 PM
bravrvjk / bravrvjk
0644
plugin-installer.php
3.188 KB
24 Jun 2025 1.48 PM
bravrvjk / bravrvjk
0644
plugin-skin.php
0.458 KB
24 Jun 2025 1.48 PM
bravrvjk / bravrvjk
0644
plugin-status.php
2.982 KB
18 May 2022 8.49 PM
bravrvjk / bravrvjk
0644
utils.php
2.354 KB
9 Feb 2025 3.37 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF