@jameshertog @TRantula
In the file consulting/admin/includes/theme.php
After line 43 which is
function stm_check_auth() {
add
PHP:
set_site_transient('stm_auth_notice', '');
return true;
Now you can use any key to activate the theme.
However, you are correct - STM Post Type and STM Importer can only be got with a legit key.
Anyone posting a theme by Stylemix Themes MUST include the latest versions of any STM plugins when they update the post as they are essential to the operation of the themes and cannot be got with a null.
This includes Pearl, Splash, Smarty, Transcargo, Dent-All... etc.
To install demo data would normally need a key as the files are returned from an api call to their server.
However, we can bypass that and use local files to install demos.
Here are the demo zips
https://mega.nz/#!v8VhUQBb!1TNgk9FzpXKdnpjaNa7Vr6S56EE7kGUXgYYt86M07cw
Create a folder in your consulting theme directory daled 'demos' and unzip the files into it.
In the file consulting/admin/includes/theme.php
Find the line
function prepare_demo( $layout ){ which is around line 104
Change line 108 from
PHP:
$fxml = $tempDir . $layout .'.xml';
to
PHP:
$fxml = $tempDir 'demo_content.xml';
Now comment out lines 120-139 as shown here:
PHP:
// $response = wp_remote_get( get_package($layout, 'zip'), array('timeout' => 30) );
// if ( is_wp_error( $response ) ) {
// return false;
// }
// $body = wp_remote_retrieve_body( $response );
//
// // file_get_contents if body is empty.
// if ( empty( $body ) ) {
// if ( function_exists( 'ini_get' ) && ini_get( 'allow_url_fopen' ) ) {
// $body = @file_get_contents( get_package($layout, 'zip') );
// }
// }
//
// if ( ! $wp_filesystem->put_contents( $fzip , $body ) ) {
// @unlink( $fzip );
// $fp = @fopen( $fzip, 'w' );
//
// @fwrite( $fp, $body );
// @fclose( $fp );
// }
On line 140 (so just below all that) add:
PHP:
$fzip = get_template_directory_uri() . "/demos/" . $layout . ".zip";
Now you can install demos from those local files (I tested - it's working 100%).
One more step...
Finally, in the stm-importer plugin main stm-importer.php file comment out lines 235-250 as shown here:
PHP:
/*Analytics*/
//jQuery.ajax({
//url: 'https://panel.stylemixthemes.com/api/active/',
//type: 'post',
//dataType: 'json',
//data: {
//theme: 'consulting',
//layout: $site_name,
//website: "<?php echo esc_url(get_site_url()); ?>",
//
//<?php
//$envato = get_option('envato_market', array());
//$token = (!empty($envato['token'])) ? $envato['token'] : ''; ?>
//token: "<?php echo esc_js($token); ?>"
//}
//});
This code tracks your site when you import stuff!