Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/matrix-financials.com/wp-content/plugins/envo-extra/options/extra.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Reset some theme mod from url in admin area - administrators only
 */
add_action( 'admin_init', 'envo_extra_reset_mod' );

function envo_extra_reset_mod() {
	// This will help you reset some theme mods from URL. Perfect if you put something wrong into custom code and it will break your page
	// Code example:
	// Reset code added to the HEAD: wp-admin/?reset-theme-mods=1&option=header-code
	// Reset code added to the footer: wp-admin/?reset-theme-mods=1&option=footer-code
	// You can use it if you are site administrator and your are in admin area. The reset has to be confirmed in the admin notice.
	if ( !isset( $_GET[ 'reset-theme-mods' ], $_GET[ 'option' ] ) || '1' !== $_GET[ 'reset-theme-mods' ] || !current_user_can( 'edit_theme_options' ) ) {
		return;
	}
	$option = sanitize_key( wp_unslash( $_GET[ 'option' ] ) );
	if ( '' === $option ) {
		return;
	}
	if ( isset( $_GET[ '_wpnonce' ] ) && wp_verify_nonce( sanitize_key( wp_unslash( $_GET[ '_wpnonce' ] ) ), 'envo_extra_reset_mod_' . $option ) ) {
		remove_theme_mod( $option );
		add_action( 'admin_notices', function() use ( $option ) {
			/* translators: %s: theme option name */
			echo '<div class="notice notice-success"><p>' . esc_html( sprintf( __( 'Theme option "%s" has been reset.', 'envo-extra' ), $option ) ) . '</p></div>';
		} );
		return;
	}
	add_action( 'admin_notices', function() use ( $option ) {
		$url = wp_nonce_url( add_query_arg( array( 'reset-theme-mods' => '1', 'option' => $option ), admin_url() ), 'envo_extra_reset_mod_' . $option );
		/* translators: %s: theme option name */
		echo '<div class="notice notice-warning"><p>' . esc_html( sprintf( __( 'Do you really want to reset the theme option "%s"?', 'envo-extra' ), $option ) ) . ' <a class="button button-primary" href="' . esc_url( $url ) . '">' . esc_html__( 'Reset', 'envo-extra' ) . '</a></p></div>';
	} );
}

function envo_extra_envo_pro_is_activated() {
	require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
	return is_plugin_active( 'envo-pro/envo-pro.php' );
}

function envo_extra_envo_royal_pro_is_activated() {
	require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
	return is_plugin_active( 'envo-royal-pro/envo-royal-pro.php' );
}

function envo_extra_col() {
    if (envo_extra_envo_royal_pro_is_activated()) {
        return 'color';
    } else {
        return;
    }
}

$theme = wp_get_theme();
if ( 'Entr' == $theme->name || 'entr' == $theme->template || 'Envo One' == $theme->name || 'envo-one' == $theme->template ) {
		
	if (!envo_extra_envo_pro_is_activated()) {	
		Kirki::add_section( 'envo-pro', array(
			'title'       => esc_html__( 'Unlock More Options', 'envo-extra' ),
			'type'        => 'link',
			'button_text' => esc_html__( 'Envo PRO', 'envo-extra' ),
			'button_url'  => 'https://envothemes.com/product/envo-pro/',
			'priority'	 => 1,
		) );
	}
	$url = ($theme->template == 'envo-one') ? 'envo-one-woocommerce' :  strtolower($theme) .'-free-wp-theme/' ;
	$docs = ($theme->template == 'envo-one') ? 'envo-one' :  'entr' ;
	
	Kirki::add_section( 'envo_documentation', array(
		'title'		 => esc_attr__( 'Documentation and Demo', 'envo-extra' ),
		'priority'	 => 7,
	) );
	Kirki::add_field( 'envo_extra', array(
		'type'		 => 'custom',
		'settings'	 => 'envo_documentation_demo',
		'section'	 => 'envo_documentation',
		'priority'	 => 9,
		'default'	 => 'You can use this theme to create a website like this <a href="https://envothemes.com/'. $url .'" target="_blank">demo</a><br/>For step-by-step tutorials, see <a href="https://envothemes.com/docs/docs/'.$docs.'/" target="_blank">Documentation</a>',
	) );
	
	Kirki::add_section( 'envo_demo_import', array(
		'title'		 => esc_attr__( 'One Click Demo Import', 'envo-extra' ),
		'priority'	 => 7,
	) );
	
	Kirki::add_field( 'envo_extra', array(
		'type'		 => 'custom',
		'settings'	 => 'envo_demo_import_demo',
		'section'	 => 'envo_demo_import',
		'priority'	 => 9,
		/* translators: %1$s: link to the documentation */
		'default'	 => sprintf( __( 'You can import the demo content with just one click. For step-by-step tutorial, see %1$s', 'envo-extra' ), '<a class="documentation" href="' . esc_url( 'https://envothemes.com/docs/docs/'.$docs.'/one-click-demo-import/' ) . '" target="_blank">' . esc_html__( 'documentation', 'envo-extra' ) . '</a>' ),
	) );
	Kirki::add_field( 'envo_extra', array(
		'type'		 => 'custom',
		'settings'	 => 'envo_demo_import_button',
		'section'	 => 'envo_demo_import',
		'priority'	 => 9,
		'default'	 => '<p><a class="button button-primary" href="' . esc_url( admin_url( 'themes.php?page=envothemes-panel-install-demos' ) ) . '" title="">' . esc_html__( 'Import demo data', 'envo-extra' ) . '</a></p>',
	) );
}