| Server IP : 104.26.5.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/buzzbitesv3/public_html/wp-content/themes/bite/skins/default/ |
Upload File : |
<?php
/**
* Skin Demo importer
*
* @package BITE
* @since BITE 1.76.0
*/
// Theme storage
//-------------------------------------------------------------------------
bite_storage_set( 'theme_demo_url', '//bite.themerex.net' );
//------------------------------------------------------------------------
// One-click import support
//------------------------------------------------------------------------
// Set theme specific importer options
if ( ! function_exists( 'bite_skin_importer_set_options' ) ) {
add_filter( 'trx_addons_filter_importer_options', 'bite_skin_importer_set_options', 9 );
function bite_skin_importer_set_options( $options = array() ) {
if ( is_array( $options ) ) {
$demo_type = function_exists( 'bite_skins_get_current_skin_name' ) ? bite_skins_get_current_skin_name() : 'default';
if ( 'default' != $demo_type ) {
$options['demo_type'] = $demo_type;
$options['files'][ $demo_type ] = $options['files']['default']; // Copy all settings from 'default' to the new demo type
unset($options['files']['default']);
}
// Override some settings in the new demo type
$theme_slug = get_template();
$theme_name = wp_get_theme( $theme_slug )->get( 'Name' );
$options['files'][ $demo_type ]['title'] = sprintf( esc_html__( '%s Demo', 'bite' ), $theme_name )
. ( $demo_type != 'default'
? '. ' . sprintf( esc_html__( 'Skin %s', 'bite' ), ucfirst( str_replace( array( '-', '_' ), ' ', $demo_type ) ) )
: ''
);
$options['files'][ $demo_type ]['domain_dev'] = ''; // Developers domain, example: bite_add_protocol( '//bite.dev.themerex.net' );
$options['files'][ $demo_type ]['domain_demo'] = bite_add_protocol( bite_storage_get( 'theme_demo_url' ) ); // Demo-site domain
}
return $options;
}
}