File: /home/jairicem/basalehglobal.ng/wp-content/themes/mitech/framework/class-import.php
<?php
defined( 'ABSPATH' ) || exit;
/**
* Initial OneClick import for this theme
*/
if ( ! class_exists( 'Mitech_Import' ) ) {
class Mitech_Import {
public function __construct() {
add_filter( 'insight_core_import_demos', array( $this, 'import_demos' ) );
add_filter( 'insight_core_import_generate_thumb', '__return_false' );
add_filter( 'insight_core_import_delete_exist_posts', '__return_true' );
}
public function import_demos() {
return array(
'main' => array(
'screenshot' => MITECH_THEME_URI . '/screenshot.jpg',
'name' => esc_html__( 'Main', 'mitech' ),
'url' => 'https://www.dropbox.com/s/dh3x6qkw6o4vz4r/mitech-insightcore01-main-1.6.11.0.zip?dl=1',
),
'rtl' => array(
'screenshot' => MITECH_THEME_URI . '/assets/import/rtl/screenshot.jpg',
'name' => esc_html__( 'RTL', 'mitech' ),
'url' => 'https://www.dropbox.com/s/ytilt3bh5kuivdo/mitech-insightcore01-rtl-1.5.0.zip?dl=1',
),
);
}
}
new Mitech_Import();
}