__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
namespace ElementsKit_Lite\Core;

defined( 'ABSPATH' ) || exit;

/**
 * Inline script registrar.
 * 
 * Returns all necessary inline js & css.
 * 
 * @since 1.0.0
 * @access public
 */
class Build_Inline_Scripts {

	use \ElementsKit_Lite\Traits\Singleton;

	function __construct() {
		add_action( 'wp_enqueue_scripts', array( $this, 'frontend_js' ) );
		add_action( 'admin_print_scripts', array( $this, 'admin_js' ) );
	}


	// scripts for common end, admin & frontend
	public function common_js() {
		ob_start(); ?>

		var elementskit = {
			resturl: '<?php echo defined( 'ICL_SITEPRESS_VERSION' ) ? esc_url(home_url('/wp-json/elementskit/v1/')) : esc_url(get_rest_url() . 'elementskit/v1/'); ?>',
		}

		<?php
		$output = ob_get_contents();
		ob_end_clean();
		return $output;
	}



	// scripts for frontend
	public function frontend_js() {
		$js = $this->common_js();
		wp_add_inline_script( 'elementskit-framework-js-frontend', $js );
	}


	// scripts for admin
	public function admin_js() {
		echo "<script type='text/javascript'>\n";
		echo \ElementsKit_Lite\Utils::render( $this->common_js() );  // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Content already escaped in common_js() method
		echo "\n</script>";
	}
}

Filemanager

Name Type Size Permission Actions
activation-actions.php File 926 B 0775
build-inline-scripts.php File 1.22 KB 0775
build-modules.php File 993 B 0775
build-widgets.php File 2.62 KB 0775
config-list.php File 1.54 KB 0775
handler-api.php File 993 B 0775
handler-widget.php File 723 B 0775
Filemanager