%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom495844/wp-content/plugins/coblocks/includes/admin/
Upload File :
Create Path :
Current File : //dom495844/wp-content/plugins/coblocks/includes/admin/class-coblocks-plugin-deactivation.php

<?php
/**
 * Register plugin deactivation class.
 *
 * @package CoBlocks
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * CoBlocks_Plugin_Deactivation Class
 *
 * @since 2.22.1
 */
class CoBlocks_Plugin_Deactivation {

	const CONTAINER_CLASS = 'coblocks-plugin-deactivate-modal';

	/**
	 * Constructor
	 */
	public function __construct() {

		add_action( 'admin_footer-plugins.php', array( $this, 'admin_coblocks_deactivation_modal' ) );

		add_filter( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );

	}

	/**
	 * Loads the asset file for the given script or style.
	 * Returns a default if the asset file is not found.
	 *
	 * @param string $filepath The name of the file without the extension.
	 *
	 * @return array The asset file contents.
	 */
	public function get_asset_file( $filepath ) {

		$asset_path = COBLOCKS_PLUGIN_DIR . $filepath . '.asset.php';

		return file_exists( $asset_path )
			? include $asset_path
			: array(
				'dependencies' => array(),
				'version'      => COBLOCKS_VERSION,
			);

	}

	/**
	 * Register meta.
	 *
	 * @param string $hook_suffix The current admin page.
	 */
	public function enqueue_scripts( $hook_suffix ) {

		if ( 'plugins.php' !== $hook_suffix ) {

			return;

		}

		$name       = 'coblocks-plugin-deactivation';
		$filepath   = 'dist/' . $name;
		$asset_file = $this->get_asset_file( $filepath );

		// Enqueue modal script.
		wp_enqueue_script(
			'coblocks-plugin-deactivation',
			COBLOCKS_PLUGIN_URL . $filepath . '.js',
			$asset_file['dependencies'],
			$asset_file['version'],
			true
		);

		$wpnux_export_data = json_decode( get_option( 'wpnux_export_data', '[]' ), true );

		// Pass data.
		wp_localize_script(
			'coblocks-plugin-deactivation',
			'coblocksDeactivateData',
			array(
				'containerClass'  => self::CONTAINER_CLASS,
				'hostname'        => gethostname(),
				'domain'          => site_url(),
				'coblocksVersion' => COBLOCKS_VERSION,
				'wpVersion'       => $GLOBALS['wp_version'],
				'wpOptions'       => array(
					'persona' => isset( $wpnux_export_data['_meta']['persona'] ) ? $wpnux_export_data['_meta']['persona'] : null,
					'skill'   => isset( $wpnux_export_data['_meta']['skill'] ) ? $wpnux_export_data['_meta']['skill'] : null,
				),
			)
		);

		// Styles.
		$name     = 'style-coblocks-plugin-deactivation';
		$filepath = 'dist/' . $name;
		$rtl      = ! is_rtl() ? '' : '-rtl';

		wp_enqueue_style(
			'coblocks-plugin-deactivation',
			COBLOCKS_PLUGIN_URL . $filepath . $rtl . '.css',
			array( 'wp-components' ),
			$asset_file['version']
		);

	}

	/**
	 * Add CoBlocks Deactivation Modal backdrop to the DOM.
	 */
	public function admin_coblocks_deactivation_modal() {

		?>

		<div id="<?php echo esc_attr( self::CONTAINER_CLASS ); ?>"></div>

		<?php

	}

}

return new CoBlocks_Plugin_Deactivation();

Zerion Mini Shell 1.0
Page not found - Broad Street Financial
[et_pb_section fb_built=”1″ theme_builder_area=”post_content” _builder_version=”4.20.0″ _module_preset=”default”][et_pb_row _builder_version=”4.20.0″ _module_preset=”default” theme_builder_area=”post_content”][et_pb_column _builder_version=”4.20.0″ _module_preset=”default” type=”4_4″ theme_builder_area=”post_content”][et_pb_text _builder_version=”4.20.0″ _module_preset=”default” theme_builder_area=”post_content” hover_enabled=”0″ sticky_enabled=”0″]

Page Not Found

Sorry the requested page you are looking for is missing or has been moved.

Please check out our site and see if you can find what you are looking for.

[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]