Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : revslider-sc-gutenberg.php
<?php
/**
 * Plugin support: Revolution Slider (Gutenberg support)
 *
 * @package ThemeREX Addons
 * @since v1.0
 */

// Don't load directly
if ( ! defined( 'TRX_ADDONS_VERSION' ) ) {
	exit;
}

if ( ! function_exists( 'trx_addons_revslider_gutenberg_sc_params' ) ) {
	add_filter( 'trx_addons_filter_gutenberg_sc_params', 'trx_addons_revslider_gutenberg_sc_params' );
	/**
	 * Add sliders created with RevSlider to the list of available sliders for the Gutenberg's shortcodes
	 *
	 * @param array $vars  An array with variables to pass to the shortcodes
	 * 
	 * @return array     Modified array
	 */
	function trx_addons_revslider_gutenberg_sc_params( $vars = array() ) {

		// If editor is active now
		$is_edit_mode = trx_addons_is_post_edit();

		$vars['list_revsliders'] = ! $is_edit_mode ? array() : trx_addons_get_list_revsliders();

		return $vars;
	}
}
© 2026 GrazzMean-Shell