| Server IP : 213.132.222.41 / Your IP : 216.73.216.254 Web Server : Apache System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : thecovenant ( 10927) PHP Version : 8.3.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/thecovenant.nl/httpdocs/new/wp-content/plugins/salient-demo-importer/ |
Upload File : |
<?php
/**
* Plugin Name: Salient Demo Importer
* Plugin URI: https://themenectar.com
* Description: Easily import the live demos of Salient into your own setup. Adds a "Demo Importer" tab into the Salient theme options panel.
* Author: ThemeNectar
* Author URI: https://themenectar.com
* Version: 1.7
* Text Domain: salient-demo-importer
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'SALIENT_DEMO_IMPORTER_ROOT_DIR_PATH', plugin_dir_path( __FILE__ ) );
define( 'SALIENT_DEMO_IMPORTER_PLUGIN_PATH', plugins_url( 'salient-demo-importer' ) );
if ( ! defined( 'SALIENT_DEMO_IMPORTER_VERSION' ) ) {
define( 'SALIENT_DEMO_IMPORTER_VERSION', '1.7' );
}
class Salient_Demo_Importer {
static $instance = false;
public $plugin_version = SALIENT_DEMO_IMPORTER_VERSION;
private function __construct() {
// Text domain.
add_action( 'init', array( $this, 'salient_demo_importer_load_textdomain' ) );
// Start it up.
add_action( 'redux/extensions/before', array( $this, 'init' ), 10 );
}
public static function getInstance() {
if ( !self::$instance ) {
self::$instance = new self;
}
return self::$instance;
}
public function salient_demo_importer_load_textdomain() {
load_plugin_textdomain( 'salient-demo-importer', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
}
public function init() {
// Before init.
do_action( 'before_salient_demo_importer_init' );
// Load Demo Importer.
require_once( SALIENT_DEMO_IMPORTER_ROOT_DIR_PATH. 'includes/admin/demo-importer-init.php');
// After init.
do_action( 'salient_demo_importer_init' );
}
}
// Plugin init.
$Salient_Demo_Importer = Salient_Demo_Importer::getInstance();