Cloud Templates & Patterns collection - Version 1.0.9

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 Cloud Templates & Patterns collection
Version 1.0.9
Comparing to
See all releases

Code changes from version 1.0.8 to 1.0.9

CHANGELOG.md CHANGED
@@ -1,35 +1,8 @@
1
- ##### [Version 1.0.8](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.7...v1.0.8) (2020-07-29)
2
-
3
- > Things are getting better every day. 🚀
4
-
5
- ##### [Version 1.0.7](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.6...v1.0.7) (2020-07-29)
6
-
7
- chore: adds SVN deployment workflow
8
-
9
- ##### [Version 1.0.6](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.5...v1.0.6) (2020-07-27)
10
-
11
- > Things are getting better every day. 🚀
12
-
13
- ##### [Version 1.0.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.4...v1.0.5) (2020-07-27)
14
-
15
- > Things are getting better every day. 🚀
16
 
17
- ##### [Version 1.0.4](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.3...v1.0.4) (2020-07-24)
 
18
 
19
- Fetch starter sites remotely
20
-
21
- ##### [Version 1.0.3](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.2...v1.0.3) (2020-07-23)
22
-
23
- > Things are getting better every day. 🚀
24
-
25
- ##### [Version 1.0.2](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.1...v1.0.2) (2020-07-23)
26
-
27
- > Things are getting better every day. 🚀
28
-
29
- ##### [Version 1.0.1](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.0...v1.0.1) (2020-07-21)
30
-
31
- - adds plugin code
32
-
33
- #### Version1.0.0 (2020-07-21)
34
 
35
- Initial Release
1
+ ##### [Version 1.0.9](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.8...v1.0.9) (2020-08-26)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ * Improve ordering
4
+ * Fix notices on import
5
 
6
+ ##### [Version 1.0.8](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.7...v1.0.8) (2020-07-29)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ * Initial Release
README.md CHANGED
@@ -2,7 +2,7 @@
2
  **Contributors:** [themeisle](https://profiles.wordpress.org/themeisle)
3
  **Tags:** neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  **Requires at least:** 4.7
5
- **Tested up to:** 5.4
6
  **Requires PHP:** 5.6
7
  **Stable tag:** trunk
8
  **License:** GPLv3
@@ -27,54 +27,21 @@ No account is required to access the service template collection and the privacy
27
 
28
  ## Changelog ##
29
 
30
- ##### [Version 1.0.8](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.7...v1.0.8) (2020-07-29)
31
 
32
- > Things are getting better every day. 🚀
 
33
 
34
 
35
 
36
 
37
- ##### [Version 1.0.7](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.6...v1.0.7) (2020-07-29)
38
 
39
- chore: adds SVN deployment workflow
40
 
41
 
42
 
43
 
44
- ##### [Version 1.0.6](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.5...v1.0.6) (2020-07-27)
45
-
46
- > Things are getting better every day. 🚀
47
-
48
-
49
-
50
-
51
- ##### [Version 1.0.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.4...v1.0.5) (2020-07-27)
52
-
53
- > Things are getting better every day. 🚀
54
-
55
-
56
-
57
-
58
- ##### [Version 1.0.4](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.3...v1.0.4) (2020-07-24)
59
-
60
- Fetch starter sites remotely
61
-
62
-
63
-
64
-
65
- ##### [Version 1.0.3](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.2...v1.0.3) (2020-07-23)
66
-
67
- > Things are getting better every day. 🚀
68
-
69
-
70
-
71
-
72
- ##### [Version 1.0.2](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.1...v1.0.2) (2020-07-23)
73
-
74
- > Things are getting better every day. 🚀
75
-
76
-
77
-
78
 
79
 
80
 
2
  **Contributors:** [themeisle](https://profiles.wordpress.org/themeisle)
3
  **Tags:** neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  **Requires at least:** 4.7
5
+ **Tested up to:** 5.5
6
  **Requires PHP:** 5.6
7
  **Stable tag:** trunk
8
  **License:** GPLv3
27
 
28
  ## Changelog ##
29
 
30
+ ##### [Version 1.0.9](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.8...v1.0.9) (2020-08-26)
31
 
32
+ * Improve ordering
33
+ * Fix notices on import
34
 
35
 
36
 
37
 
38
+ ##### Version 1.0.8
39
 
40
+ * Initial production ready release
41
 
42
 
43
 
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
 
47
 
includes/Admin.php CHANGED
@@ -87,6 +87,7 @@ class Admin {
87
 
88
  foreach ( $sites as $builder => $sites_for_builder ) {
89
  foreach ( $sites_for_builder as $slug => $data ) {
 
90
  if ( ! isset( $data['upsell'] ) || $data['upsell'] !== true ) {
91
  continue;
92
  }
87
 
88
  foreach ( $sites as $builder => $sites_for_builder ) {
89
  foreach ( $sites_for_builder as $slug => $data ) {
90
+ $sites[ $builder ][ $slug ]['slug'] = $slug;
91
  if ( ! isset( $data['upsell'] ) || $data['upsell'] !== true ) {
92
  continue;
93
  }
includes/Importers/Content_Importer.php CHANGED
@@ -81,6 +81,10 @@ class Content_Importer {
81
  );
82
  }
83
 
 
 
 
 
84
  set_time_limit( 0 );
85
  require_once( ABSPATH . 'wp-admin/includes/file.php' );
86
  require_once( ABSPATH . 'wp-admin/includes/image.php' );
81
  );
82
  }
83
 
84
+ if ( ! isset( $body['demoSlug'] ) ) {
85
+ $body['demoSlug'] = 'neve';
86
+ }
87
+
88
  set_time_limit( 0 );
89
  require_once( ABSPATH . 'wp-admin/includes/file.php' );
90
  require_once( ABSPATH . 'wp-admin/includes/image.php' );
includes/Main.php CHANGED
@@ -16,7 +16,7 @@ class Main {
16
  *
17
  * @var string Version string.
18
  */
19
- const VERSION = '1.0.8';
20
  /**
21
  * Sites Library API URL.
22
  *
16
  *
17
  * @var string Version string.
18
  */
19
+ const VERSION = '1.0.9';
20
  /**
21
  * Sites Library API URL.
22
  *
includes/Sites_Listing.php CHANGED
@@ -125,8 +125,6 @@ class Sites_Listing {
125
  }
126
  }
127
 
128
- $response = $this->shuffle_sites_array( $response );
129
-
130
  set_transient( $this->transient_key, $response, 12 * HOUR_IN_SECONDS );
131
 
132
  return $response;
@@ -142,64 +140,6 @@ class Sites_Listing {
142
  return apply_filters( 'neve_filter_onboarding_sites', $this->onboarding_config );
143
  }
144
 
145
- /**
146
- * Shuffle available sites to change display order.
147
- *
148
- * @param array $sites sites array.
149
- *
150
- * @return array
151
- */
152
- private function shuffle_sites_array( $sites ) {
153
- $fixed = array(
154
- 'elementor' => array(
155
- 'neve-web-agency' => true,
156
- 'neve-main' => true,
157
- ),
158
- 'beaver builder' => array(
159
- 'neve-beaver-web-agency' => true,
160
- 'neve-beaver-onboarding' => true,
161
- ),
162
- 'gutenberg' => array(
163
- 'neve-web-agency-gutenberg' => true,
164
- 'neve-main-gutenberg' => true,
165
- ),
166
- 'brizy' => array( 'neve-brizy-main' => true ),
167
- );
168
- $normalized = array();
169
- foreach ( $sites as $editor => $sites_for_editor ) {
170
- $normalized[ $editor ] = isset( $fixed[ $editor ] ) ? $fixed[ $editor ] : array();
171
- $sites_for_editor = $this->shuffle_associative_array( $sites_for_editor );
172
- foreach ( $sites_for_editor as $site_slug => $site_data ) {
173
- if ( isset( $normalized[ $editor ][ $site_slug ] ) ) {
174
- $normalized[ $editor ][ $site_slug ] = $site_data;
175
- unset( $sites_for_editor[ $site_slug ] );
176
- }
177
- }
178
- $normalized[ $editor ] = array_merge( $normalized[ $editor ], $sites_for_editor );
179
- }
180
-
181
- return $normalized;
182
- }
183
-
184
- /**
185
- * Shuffle associative array.
186
- *
187
- * @param array $array associative array.
188
- *
189
- * @return array
190
- */
191
- private function shuffle_associative_array( $array ) {
192
- $keys = array_keys( $array );
193
- $shuffled = array();
194
-
195
- shuffle( $keys );
196
- foreach ( $keys as $key ) {
197
- $shuffled[ $key ] = $array[ $key ];
198
- }
199
-
200
- return $shuffled;
201
- }
202
-
203
  /**
204
  * Reorder starter sites based on previous theme
205
  *
@@ -258,5 +198,4 @@ class Sites_Listing {
258
  );
259
  return ! isset( $category_mapping[ $category ] ) || $category_mapping[ $category ] < 2;
260
  }
261
-
262
  }
125
  }
126
  }
127
 
 
 
128
  set_transient( $this->transient_key, $response, 12 * HOUR_IN_SECONDS );
129
 
130
  return $response;
140
  return apply_filters( 'neve_filter_onboarding_sites', $this->onboarding_config );
141
  }
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  /**
144
  * Reorder starter sites based on previous theme
145
  *
198
  );
199
  return ! isset( $category_mapping[ $category ] ) || $category_mapping[ $category ] < 2;
200
  }
 
201
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: themeisle
3
  Tags: neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  Requires at least: 4.7
5
- Tested up to: 5.4
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPLv3
@@ -27,54 +27,21 @@ No account is required to access the service template collection and the privacy
27
 
28
  == Changelog ==
29
 
30
- ##### [Version 1.0.8](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.7...v1.0.8) (2020-07-29)
31
 
32
- > Things are getting better every day. 🚀
 
33
 
34
 
35
 
36
 
37
- ##### [Version 1.0.7](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.6...v1.0.7) (2020-07-29)
38
 
39
- chore: adds SVN deployment workflow
40
 
41
 
42
 
43
 
44
- ##### [Version 1.0.6](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.5...v1.0.6) (2020-07-27)
45
-
46
- > Things are getting better every day. 🚀
47
-
48
-
49
-
50
-
51
- ##### [Version 1.0.5](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.4...v1.0.5) (2020-07-27)
52
-
53
- > Things are getting better every day. 🚀
54
-
55
-
56
-
57
-
58
- ##### [Version 1.0.4](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.3...v1.0.4) (2020-07-24)
59
-
60
- Fetch starter sites remotely
61
-
62
-
63
-
64
-
65
- ##### [Version 1.0.3](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.2...v1.0.3) (2020-07-23)
66
-
67
- > Things are getting better every day. 🚀
68
-
69
-
70
-
71
-
72
- ##### [Version 1.0.2](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.1...v1.0.2) (2020-07-23)
73
-
74
- > Things are getting better every day. 🚀
75
-
76
-
77
-
78
 
79
 
80
 
2
  Contributors: themeisle
3
  Tags: neve, templates, patterns, blocks, starter, sites, demo, content, import
4
  Requires at least: 4.7
5
+ Tested up to: 5.5
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPLv3
27
 
28
  == Changelog ==
29
 
30
+ ##### [Version 1.0.9](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.8...v1.0.9) (2020-08-26)
31
 
32
+ * Improve ordering
33
+ * Fix notices on import
34
 
35
 
36
 
37
 
38
+ ##### Version 1.0.8
39
 
40
+ * Initial production ready release
41
 
42
 
43
 
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
 
47
 
templates-patterns-collection.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Templates Patterns Collection
4
  * Description: This plugin is an add-on to Neve WordPress theme which offers access to Templates and Block Patterns library service to be used with the theme.
5
- * Version: 1.0.8
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
2
  /**
3
  * Plugin Name: Templates Patterns Collection
4
  * Description: This plugin is an add-on to Neve WordPress theme which offers access to Templates and Block Patterns library service to be used with the theme.
5
+ * Version: 1.0.9
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit066b08d004841aa5eabf11db299ba83d::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInita9e8298d2fb3057074c17fb686d2d0e8::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit066b08d004841aa5eabf11db299ba83d
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit066b08d004841aa5eabf11db299ba83d
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit066b08d004841aa5eabf11db299ba83d', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit066b08d004841aa5eabf11db299ba83d', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit066b08d004841aa5eabf11db299ba83d::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita9e8298d2fb3057074c17fb686d2d0e8
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInita9e8298d2fb3057074c17fb686d2d0e8', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInita9e8298d2fb3057074c17fb686d2d0e8', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInita9e8298d2fb3057074c17fb686d2d0e8::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit066b08d004841aa5eabf11db299ba83d
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
@@ -48,9 +48,9 @@ class ComposerStaticInit066b08d004841aa5eabf11db299ba83d
48
  public static function getInitializer(ClassLoader $loader)
49
  {
50
  return \Closure::bind(function () use ($loader) {
51
- $loader->prefixLengthsPsr4 = ComposerStaticInit066b08d004841aa5eabf11db299ba83d::$prefixLengthsPsr4;
52
- $loader->prefixDirsPsr4 = ComposerStaticInit066b08d004841aa5eabf11db299ba83d::$prefixDirsPsr4;
53
- $loader->classMap = ComposerStaticInit066b08d004841aa5eabf11db299ba83d::$classMap;
54
 
55
  }, null, ClassLoader::class);
56
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita9e8298d2fb3057074c17fb686d2d0e8
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
48
  public static function getInitializer(ClassLoader $loader)
49
  {
50
  return \Closure::bind(function () use ($loader) {
51
+ $loader->prefixLengthsPsr4 = ComposerStaticInita9e8298d2fb3057074c17fb686d2d0e8::$prefixLengthsPsr4;
52
+ $loader->prefixDirsPsr4 = ComposerStaticInita9e8298d2fb3057074c17fb686d2d0e8::$prefixDirsPsr4;
53
+ $loader->classMap = ComposerStaticInita9e8298d2fb3057074c17fb686d2d0e8::$classMap;
54
 
55
  }, null, ClassLoader::class);
56
  }