Domain: antoinekatan.com
Server Adress: 10.127.20.23
privdayz.com
<?php
if ( ! function_exists( 'quart_core_import_object' ) ) {
function quart_core_import_object() {
$quart_core_import_object = new QuartCoreImport();
}
add_action( 'init', 'quart_core_import_object' );
}
if ( ! function_exists( 'quart_core_data_import' ) ) {
function quart_core_data_import() {
$importObject = QuartCoreImport::getInstance();
if ( $_POST['import_attachments'] == 1 ) {
$importObject->attachments = true;
} else {
$importObject->attachments = false;
}
$folder = "quart/";
if ( ! empty( $_POST['example'] ) ) {
$folder = $_POST['example'] . "/";
}
$importObject->import_content( $folder . $_POST['xml'] );
die();
}
add_action( 'wp_ajax_quart_core_data_import', 'quart_core_data_import' );
}
if ( ! function_exists( 'quart_core_widgets_import' ) ) {
function quart_core_widgets_import() {
$importObject = QuartCoreImport::getInstance();
$folder = "quart/";
if ( ! empty( $_POST['example'] ) ) {
$folder = $_POST['example'] . "/";
}
$importObject->import_widgets( $folder . 'widgets.txt', $folder . 'custom_sidebars.txt' );
die();
}
add_action( 'wp_ajax_quart_core_widgets_import', 'quart_core_widgets_import' );
}
if ( ! function_exists( 'quart_core_options_import' ) ) {
function quart_core_options_import() {
$importObject = QuartCoreImport::getInstance();
$folder = "quart/";
if ( ! empty( $_POST['example'] ) ) {
$folder = $_POST['example'] . "/";
}
$importObject->import_options( $folder . 'options.txt' );
die();
}
add_action( 'wp_ajax_quart_core_options_import', 'quart_core_options_import' );
}
if ( ! function_exists( 'quart_core_other_import' ) ) {
function quart_core_other_import() {
$importObject = QuartCoreImport::getInstance();
$folder = "quart/";
if ( ! empty( $_POST['example'] ) ) {
$folder = $_POST['example'] . "/";
}
$importObject->import_options( $folder . 'options.txt' );
$importObject->import_widgets( $folder . 'widgets.txt', $folder . 'custom_sidebars.txt' );
$importObject->import_menus( $folder . 'menus.txt' );
$importObject->import_settings_pages( $folder . 'settingpages.txt' );
$importObject->mkdf_update_meta_fields_after_import($folder);
$importObject->mkdf_update_options_after_import($folder);
if ( quart_core_is_revolution_slider_installed() ) {
$importObject->rev_slider_import( $folder );
}
die();
}
add_action( 'wp_ajax_quart_core_other_import', 'quart_core_other_import' );
}
