Cloud Templates & Patterns collection - Version 1.0.10

Version Description

Download this release

Release Info

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

Code changes from version 1.0.9 to 1.0.10

CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
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
1
+ ##### [Version 1.0.10](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.9...v1.0.10) (2020-09-21)
2
+
3
+ * Define plugin constants and remove no longer needed ones.
4
+
5
  ##### [Version 1.0.9](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.8...v1.0.9) (2020-08-26)
6
 
7
  * Improve ordering
README.md CHANGED
@@ -27,6 +27,13 @@ No account is required to access the service template collection and the privacy
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
27
 
28
  ## Changelog ##
29
 
30
+ ##### [Version 1.0.10](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.9...v1.0.10) (2020-09-21)
31
+
32
+ * Define plugin constants and remove no longer needed ones.
33
+
34
+
35
+
36
+
37
  ##### [Version 1.0.9](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.8...v1.0.9) (2020-08-26)
38
 
39
  * Improve ordering
includes/Admin.php CHANGED
@@ -150,8 +150,8 @@ class Admin {
150
 
151
  $options = array(
152
  'theme_name' => ! empty( $data[ $old_theme ]['theme_name'] ) ? esc_html( $data[ $old_theme ]['theme_name'] ) : '',
153
- 'screenshot' => get_template_directory_uri() . Main::OBOARDING_PATH . '/migration/' . $folder_name . '/' . $data[ $old_theme ]['template'] . '.png',
154
- 'template' => get_template_directory() . Main::OBOARDING_PATH . '/migration/' . $folder_name . '/' . $data[ $old_theme ]['template'] . '.json',
155
  'template_name' => $data[ $old_theme ]['template'],
156
  'heading' => $data[ $old_theme ]['heading'],
157
  'description' => $data[ $old_theme ]['description'],
150
 
151
  $options = array(
152
  'theme_name' => ! empty( $data[ $old_theme ]['theme_name'] ) ? esc_html( $data[ $old_theme ]['theme_name'] ) : '',
153
+ 'screenshot' => TIOB_URL . '/migration/' . $folder_name . '/' . $data[ $old_theme ]['template'] . '.png',
154
+ 'template' => TIOB_PATH . '/migration/' . $folder_name . '/' . $data[ $old_theme ]['template'] . '.json',
155
  'template_name' => $data[ $old_theme ]['template'],
156
  'heading' => $data[ $old_theme ]['heading'],
157
  'description' => $data[ $old_theme ]['description'],
includes/Main.php CHANGED
@@ -16,7 +16,7 @@ class Main {
16
  *
17
  * @var string Version string.
18
  */
19
- const VERSION = '1.0.9';
20
  /**
21
  * Sites Library API URL.
22
  *
@@ -29,12 +29,6 @@ class Main {
29
  * @var string Transient slug.
30
  */
31
  const STORAGE_TRANSIENT = 'themeisle_sites_library_data';
32
- /**
33
- * Onboarding Path Relative to theme dir.
34
- *
35
- * @var string Onboarding root path.
36
- */
37
- const OBOARDING_PATH = '/vendor/codeinwp/themeisle-onboarding';
38
  /**
39
  * Main
40
  *
@@ -55,17 +49,6 @@ class Main {
55
  */
56
  private $sites_listing = null;
57
 
58
- /**
59
- * Method to return path to child class in a Reflective Way.
60
- *
61
- * @return string
62
- * @since 1.0.0
63
- * @access public
64
- */
65
- static public function get_dir() {
66
- return apply_filters( 'themeisle_site_import_uri', trailingslashit( get_template_directory_uri() ) . self::OBOARDING_PATH );
67
- }
68
-
69
  /**
70
  * Instantiate the class.
71
  *
16
  *
17
  * @var string Version string.
18
  */
19
+ const VERSION = '1.0.10';
20
  /**
21
  * Sites Library API URL.
22
  *
29
  * @var string Transient slug.
30
  */
31
  const STORAGE_TRANSIENT = 'themeisle_sites_library_data';
 
 
 
 
 
 
32
  /**
33
  * Main
34
  *
49
  */
50
  private $sites_listing = null;
51
 
 
 
 
 
 
 
 
 
 
 
 
52
  /**
53
  * Instantiate the class.
54
  *
readme.txt CHANGED
@@ -27,6 +27,13 @@ No account is required to access the service template collection and the privacy
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
27
 
28
  == Changelog ==
29
 
30
+ ##### [Version 1.0.10](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.9...v1.0.10) (2020-09-21)
31
+
32
+ * Define plugin constants and remove no longer needed ones.
33
+
34
+
35
+
36
+
37
  ##### [Version 1.0.9](https://github.com/Codeinwp/templates-patterns-collection/compare/v1.0.8...v1.0.9) (2020-08-26)
38
 
39
  * Improve ordering
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.9
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
@@ -71,6 +71,9 @@ function ti_tpc_run() {
71
  define( 'TI_ONBOARDING_DISABLED', false );
72
  }
73
 
 
 
 
74
  $autoload_path = __DIR__ . '/vendor/autoload.php';
75
  if ( is_file( $autoload_path ) ) {
76
  require_once $autoload_path;
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.10
6
  * Author: ThemeIsle
7
  * Author URI: https://themeisle.com
8
  * License: GPLv3
71
  define( 'TI_ONBOARDING_DISABLED', false );
72
  }
73
 
74
+ define( 'TIOB_URL', plugin_dir_url( __FILE__ ) );
75
+ define( 'TIOB_PATH', dirname( __FILE__ ) . '/' );
76
+
77
  $autoload_path = __DIR__ . '/vendor/autoload.php';
78
  if ( is_file( $autoload_path ) ) {
79
  require_once $autoload_path;
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita9e8298d2fb3057074c17fb686d2d0e8::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitdc93ff53573968600276385dbe58b2b7::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -60,7 +60,7 @@ class ClassLoader
60
  public function getPrefixes()
61
  {
62
  if (!empty($this->prefixesPsr0)) {
63
- return call_user_func_array('array_merge', $this->prefixesPsr0);
64
  }
65
 
66
  return array();
60
  public function getPrefixes()
61
  {
62
  if (!empty($this->prefixesPsr0)) {
63
+ return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
64
  }
65
 
66
  return array();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita9e8298d2fb3057074c17fb686d2d0e8
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInita9e8298d2fb3057074c17fb686d2d0e8
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) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitdc93ff53573968600276385dbe58b2b7
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitdc93ff53573968600276385dbe58b2b7', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitdc93ff53573968600276385dbe58b2b7', '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\ComposerStaticInitdc93ff53573968600276385dbe58b2b7::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 ComposerStaticInita9e8298d2fb3057074c17fb686d2d0e8
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'T' =>
@@ -48,9 +48,9 @@ class ComposerStaticInita9e8298d2fb3057074c17fb686d2d0e8
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
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitdc93ff53573968600276385dbe58b2b7
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 = ComposerStaticInitdc93ff53573968600276385dbe58b2b7::$prefixLengthsPsr4;
52
+ $loader->prefixDirsPsr4 = ComposerStaticInitdc93ff53573968600276385dbe58b2b7::$prefixDirsPsr4;
53
+ $loader->classMap = ComposerStaticInitdc93ff53573968600276385dbe58b2b7::$classMap;
54
 
55
  }, null, ClassLoader::class);
56
  }