PHP CODE for how to First, download the ZIP from server and unzip the folder to the /demo-files directory

hey there just need to know how can i upload zip file of theme demo to server and make my theme demo importer to download those theme zip file from my server

HI

If you elaborate your query will be easy to assist you. You told about php code and also about theme not clear which php code and which theme are your concern.

Thanks

please check here is the code im building my own theme i got code from github
// Don’t duplicate me!
if ( !class_exists( ‘Radium_Theme_Demo_Data_Importer’ ) )
{
require_once( dirname( FILE ) . ‘/radium-importer.php’ );

class Radium_Theme_Demo_Data_Importer extends Radium_Theme_Importer
{
private static $instance;

public $download_content_attachments    = true;
public $contents_file_name        = 'content.xml';
public $theme_options_file_name     = 'theme-settings.txt';
public $theme_option_name         = 'theme_mods_creativo';
public $widgets_file_name         = 'widgets.json';
public $revsliders_file_name        = 'revolution_slider.zip';
public $revsliders_file_name2       = 'revolution_slider2.zip';
public $layersliders_file_name      = 'layer_sliders.zip';

// Base demo files folder to download from
public $demo_zips_url_base = 'https://bit.ly/2QexhH';

public $widget_import_results;


public function __construct()
{
  self::$instance = $this;


  add_filter( 'add_post_metadata',      array( $this, 'check_previous_meta' ), 10, 5 );

  add_action( 'radium_after_content_import',  array( $this, 'setup_default_pages' ) );
  //self::setup_default_pages();

  add_action( 'admin_menu',           array( $this, 'add_admin_menu') );
  add_action( 'wp_ajax_radium_demo_import',   array( $this, 'demo_import_ajax') );
  add_action( 'wp_ajax_radium_demo_menu',   array( $this, 'setup_menus_locations') );
}

in this line // Base demo files folder to download from
public $demo_zips_url_base = ‘https://bit.ly/2QexhH’;
i want to know who can i upload my files by creating server