ThemeGrill Demo Importer - Version 1.7.6

Version Description

  • 30-12-2021 =
  • Tweak - Updates resources URL.
Download this release

Release Info

Developer themegrilldev
Plugin Icon 128x128 ThemeGrill Demo Importer
Version 1.7.6
Comparing to
See all releases

Code changes from version 1.7.5 to 1.7.6

includes/admin/class-demo-importer-status.php CHANGED
@@ -53,7 +53,7 @@ class TG_Demo_Importer_Status {
53
  */
54
  public static function get_demo_server_connection_status() {
55
  $output = '';
56
- $package_file_server = wp_remote_get( 'https://github.com/' );
57
  $http_response_code = wp_remote_retrieve_response_code( $package_file_server );
58
 
59
  if ( is_wp_error( $package_file_server ) || 200 !== (int) $http_response_code ) {
53
  */
54
  public static function get_demo_server_connection_status() {
55
  $output = '';
56
+ $package_file_server = wp_remote_get( 'https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/README.md' );
57
  $http_response_code = wp_remote_retrieve_response_code( $package_file_server );
58
 
59
  if ( is_wp_error( $package_file_server ) || 200 !== (int) $http_response_code ) {
includes/class-demo-importer.php CHANGED
@@ -89,7 +89,7 @@ class TG_Demo_Importer {
89
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
90
 
91
  if ( false === $packages || ( isset( $packages->slug ) && $template !== $packages->slug ) ) {
92
- $raw_packages = wp_safe_remote_get( "https://raw.githubusercontent.com/themegrill/themegrill-demo-pack/master/configs/{$template}.json" );
93
 
94
  if ( ! is_wp_error( $raw_packages ) ) {
95
  $packages = json_decode( wp_remote_retrieve_body( $raw_packages ) );
@@ -417,7 +417,7 @@ class TG_Demo_Importer {
417
  if ( isset( $available_packages->demos ) ) {
418
  foreach ( $available_packages->demos as $package_slug => $package_data ) {
419
  $plugins_list = isset( $package_data->plugins_list ) ? $package_data->plugins_list : array();
420
- $screenshot_url = "https://raw.githubusercontent.com/themegrill/themegrill-demo-pack/master/resources/{$available_packages->slug}/{$package_slug}/screenshot.jpg";
421
 
422
  if ( isset( $request['browse'], $package_data->category ) && ! in_array( $request['browse'], $package_data->category, true ) ) {
423
  continue;
@@ -684,7 +684,7 @@ class TG_Demo_Importer {
684
  $upgrader = new TG_Demo_Pack_Upgrader( $skin );
685
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
686
  $packages = isset( $this->demo_packages->demos ) ? json_decode( wp_json_encode( $this->demo_packages->demos ), true ) : array();
687
- $result = $upgrader->install( "https://github.com/themegrill/themegrill-demo-pack/raw/master/packages/{$template}/{$slug}.zip" );
688
 
689
  if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
690
  $status['debug'] = $skin->get_upgrade_messages();
89
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
90
 
91
  if ( false === $packages || ( isset( $packages->slug ) && $template !== $packages->slug ) ) {
92
+ $raw_packages = wp_safe_remote_get( "https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/configs/{$template}.json" );
93
 
94
  if ( ! is_wp_error( $raw_packages ) ) {
95
  $packages = json_decode( wp_remote_retrieve_body( $raw_packages ) );
417
  if ( isset( $available_packages->demos ) ) {
418
  foreach ( $available_packages->demos as $package_slug => $package_data ) {
419
  $plugins_list = isset( $package_data->plugins_list ) ? $package_data->plugins_list : array();
420
+ $screenshot_url = "https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/resources/{$available_packages->slug}/{$package_slug}/screenshot.jpg";
421
 
422
  if ( isset( $request['browse'], $package_data->category ) && ! in_array( $request['browse'], $package_data->category, true ) ) {
423
  continue;
684
  $upgrader = new TG_Demo_Pack_Upgrader( $skin );
685
  $template = strtolower( str_replace( '-pro', '', get_option( 'template' ) ) );
686
  $packages = isset( $this->demo_packages->demos ) ? json_decode( wp_json_encode( $this->demo_packages->demos ), true ) : array();
687
+ $result = $upgrader->install( "https://themegrill-demo-pack.s3.us-east-2.amazonaws.com/packages/{$template}/{$slug}.zip" );
688
 
689
  if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
690
  $status['debug'] = $skin->get_upgrade_messages();
readme.txt CHANGED
@@ -1,5 +1,5 @@
1
  === ThemeGrill Demo Importer ===
2
- Contributors: ThemeGrill, shivapoudel
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
  Tested up to: 5.8
@@ -15,6 +15,10 @@ Import <a href="https://themegrill.com/themes/" target="_blank" rel="nofollow">T
15
 
16
  Get [free support](https://themegrill.com/support-forum/)
17
 
 
 
 
 
18
  = Demo Importer in action: =
19
 
20
  [youtube https://youtu.be/cXxmpNIui9Y]
@@ -72,6 +76,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/themegrill/th
72
  3. Finally, Import the Demo with just one click.
73
 
74
  == Changelog ==
 
 
 
75
  = 1.7.5 - 25-10-2021 =
76
  * Tweak - Use of escaping and sanitization functions.
77
 
1
  === ThemeGrill Demo Importer ===
2
+ Contributors: ThemeGrill
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
  Tested up to: 5.8
15
 
16
  Get [free support](https://themegrill.com/support-forum/)
17
 
18
+ == Notes ==
19
+
20
+ * The plugin makes a call to our S3 server remotely to import static demo content.
21
+
22
  = Demo Importer in action: =
23
 
24
  [youtube https://youtu.be/cXxmpNIui9Y]
76
  3. Finally, Import the Demo with just one click.
77
 
78
  == Changelog ==
79
+ = 1.7.6 - 30-12-2021 =
80
+ * Tweak - Updates resources URL.
81
+
82
  = 1.7.5 - 25-10-2021 =
83
  * Tweak - Use of escaping and sanitization functions.
84