Submit
Path:
~
/
home
/
getwphos
/
public_html
/
brueggemann
/
wp-content
/
plugins
/
wanderland-core
/
import
/
File Content:
wanderland-import-functions.php
<?php if ( ! function_exists( 'wanderland_core_import_object' ) ) { function wanderland_core_import_object() { $wanderland_core_import_object = new WanderlandCoreImport(); } add_action( 'init', 'wanderland_core_import_object' ); } if ( ! function_exists( 'wanderland_core_data_import' ) ) { function wanderland_core_data_import() { $importObject = WanderlandCoreImport::getInstance(); if ( $_POST['import_attachments'] == 1 ) { $importObject->attachments = true; } else { $importObject->attachments = false; } $folder = "wanderland/"; if ( ! empty( $_POST['example'] ) ) { $folder = $_POST['example'] . "/"; } $importObject->import_content( $folder . $_POST['xml'] ); die(); } add_action( 'wp_ajax_wanderland_core_action_import_content', 'wanderland_core_data_import' ); } if ( ! function_exists( 'wanderland_core_widgets_import' ) ) { function wanderland_core_widgets_import() { $importObject = WanderlandCoreImport::getInstance(); $folder = "wanderland/"; if ( ! empty( $_POST['example'] ) ) { $folder = $_POST['example'] . "/"; } $importObject->import_widgets( $folder . 'widgets.txt', $folder . 'custom_sidebars.txt' ); die(); } add_action( 'wp_ajax_wanderland_core_action_import_widgets', 'wanderland_core_widgets_import' ); } if ( ! function_exists( 'wanderland_core_options_import' ) ) { function wanderland_core_options_import() { $importObject = WanderlandCoreImport::getInstance(); $folder = "wanderland/"; if ( ! empty( $_POST['example'] ) ) { $folder = $_POST['example'] . "/"; } $importObject->import_options( $folder . 'options.txt' ); die(); } add_action( 'wp_ajax_wanderland_core_action_import_options', 'wanderland_core_options_import' ); } if ( ! function_exists( 'wanderland_core_other_import' ) ) { function wanderland_core_other_import() { global $wanderland_mikado_global_options; $importObject = WanderlandCoreImport::getInstance(); $folder = "wanderland/"; 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 ( wanderland_core_is_revolution_slider_installed() ) { $importObject->rev_slider_import( $folder ); } $wanderland_mikado_global_options = get_option( 'mkdf_options_wanderland' ); do_action( 'wanderland_core_action_after_import_completed' ); die(); } add_action( 'wp_ajax_wanderland_core_action_import_other_elements', 'wanderland_core_other_import' ); }
Submit
FILE
FOLDER
Name
Size
Permission
Action
class.wordpress-importer.php
44984 bytes
0644
parsers.php
24754 bytes
0644
wanderland-import-functions.php
2884 bytes
0644
wanderland-import.php
9547 bytes
0644
N4ST4R_ID | Naxtarrr