Elementor Addons & Templates – Sizzify Lite - Version 1.2.9

Version Description

  • 2018-12-12
Download this release

Release Info

Developer themeisle
Plugin Icon wp plugin Elementor Addons & Templates – Sizzify Lite
Version 1.2.9
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.9

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v1.2.8 - 2018-12-10
3
  **Changes:**
4
  * Tested with WP 5.0
1
 
2
+ ### v1.2.9 - 2018-12-12
3
+ **Changes:**
4
+ * fix templates directory importing
5
+
6
  ### v1.2.8 - 2018-12-10
7
  **Changes:**
8
  * Tested with WP 5.0
elementor-addon-widgets.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Elementor Addons & Templates - Sizzify Lite
4
  * Plugin URI: https://themeisle.com/
5
  * Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
6
- * Version: 1.2.8
7
  * Author: ThemeIsle
8
  * Author URI: https://themeisle.com/
9
  * Requires at least: 4.4
@@ -23,7 +23,7 @@ Constants
23
  ------------------------------------------ */
24
 
25
  /* Set plugin version constant. */
26
- define( 'EA_VERSION', '1.2.8' );
27
 
28
  /* Set constant path to the plugin directory. */
29
  define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
3
  * Plugin Name: Elementor Addons & Templates - Sizzify Lite
4
  * Plugin URI: https://themeisle.com/
5
  * Description: Adds new Addons & Widgets that are specifically designed to be used in conjunction with the Elementor Page Builder.
6
+ * Version: 1.2.9
7
  * Author: ThemeIsle
8
  * Author URI: https://themeisle.com/
9
  * Requires at least: 4.4
23
  ------------------------------------------ */
24
 
25
  /* Set plugin version constant. */
26
+ define( 'EA_VERSION', '1.2.9' );
27
 
28
  /* Set constant path to the plugin directory. */
29
  define( 'EA_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
readme.md CHANGED
@@ -61,6 +61,11 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
61
  4. Frontend view posts with custom title.
62
 
63
  ## Changelog ##
 
 
 
 
 
64
  ### 1.2.8 - 2018-12-10 ###
65
 
66
  * Tested with WP 5.0
61
  4. Frontend view posts with custom title.
62
 
63
  ## Changelog ##
64
+ ### 1.2.9 - 2018-12-12 ###
65
+
66
+ * fix templates directory importing
67
+
68
+
69
  ### 1.2.8 - 2018-12-10 ###
70
 
71
  * Tested with WP 5.0
readme.txt CHANGED
@@ -61,6 +61,11 @@ See this [issue #495](https://github.com/pojome/elementor/issues/495) for curren
61
  4. Frontend view posts with custom title.
62
 
63
  == Changelog ==
 
 
 
 
 
64
  = 1.2.8 - 2018-12-10 =
65
 
66
  * Tested with WP 5.0
61
  4. Frontend view posts with custom title.
62
 
63
  == Changelog ==
64
+ = 1.2.9 - 2018-12-12 =
65
+
66
+ * fix templates directory importing
67
+
68
+
69
  = 1.2.8 - 2018-12-10 =
70
 
71
  * Tested with WP 5.0
themeisle-hash.json CHANGED
@@ -1 +1 @@
1
- {"eaw-class.php":"8cfd2eba7189aa727c9ad5ce1581432f","elementor-addon-widgets.php":"4185c32beee8200732bff065e2d871af"}
1
+ {"eaw-class.php":"8cfd2eba7189aa727c9ad5ce1581432f","elementor-addon-widgets.php":"650056d773837eb0491236a577367db8"}
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit90442579b3b63aa2dd5a57b75c080f80::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitd67a8571892509a7a621debcca8600f6::getLoader();
vendor/codeinwp/templates-directory/class-page-templates-directory.php CHANGED
@@ -15,7 +15,7 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
15
  * The version of this library
16
  * @var string
17
  */
18
- public static $version = '1.0.8';
19
 
20
  /**
21
  * Holds the module slug.
@@ -259,12 +259,12 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
259
  'screenshot' => esc_url( $this->get_source_url() . 'rik-elementor/screenshot.jpg' ),
260
  'import_file' => esc_url( $this->get_source_url() . 'rik-elementor/template.json' ),
261
  ),
262
- 'zerif-lite' => array(
263
- 'title' => __( 'Zerif Lite - One Page Template', 'elementor-addon-widgets' ),
264
- 'description' => __( 'A friendly one-page WordPress multipurpose theme, with a full-width image in the background and a simple white menu bar at the top. It comes with an elegant and modern design, which could fit very well any kind of business. Zerif Lite has an interactive and colorful interface, with classy parallax effect and lively animations. You can use it for your online shop as well.', 'elementor-addon-widgets' ),
265
- 'demo_url' => 'https://demo.themeisle.com/hestia-pro-demo-content/zerif-lite/',
266
- 'screenshot' => esc_url( $this->get_source_url() . 'zerif-elementor/screenshot.jpg' ),
267
- 'import_file' => esc_url( $this->get_source_url() . 'zerif-elementor/template.json' ),
268
  ),
269
  'notify' => array(
270
  'title' => __( 'Notify - Landing Page', 'elementor-addon-widgets' ),
@@ -336,19 +336,27 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
336
 
337
  /**
338
  * Utility method to call Elementor import routine.
 
 
 
 
339
  */
340
- public function import_elementor(\WP_REST_Request $request ) {
341
  if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
342
  return 'no-elementor';
343
  }
344
 
345
- $params = $request->get_params();
346
  $template_name = $params['template_name'];
347
- $template_url = $params['template_url'];
348
 
349
  require_once( ABSPATH . 'wp-admin' . '/includes/file.php' );
350
  require_once( ABSPATH . 'wp-admin' . '/includes/image.php' );
351
 
 
 
 
 
352
  $template = download_url( esc_url( $template_url ) );
353
  $name = $template_name;
354
  $_FILES['file']['tmp_name'] = $template;
@@ -420,8 +428,6 @@ if ( ! class_exists( '\ThemeIsle\PageTemplatesDirectory' ) ) {
420
  ), admin_url( 'post.php' ) );
421
 
422
  return ( $redirect_url );
423
-
424
- die();
425
  }
426
 
427
  /**
15
  * The version of this library
16
  * @var string
17
  */
18
+ public static $version = '1.0.9';
19
 
20
  /**
21
  * Holds the module slug.
259
  'screenshot' => esc_url( $this->get_source_url() . 'rik-elementor/screenshot.jpg' ),
260
  'import_file' => esc_url( $this->get_source_url() . 'rik-elementor/template.json' ),
261
  ),
262
+ 'zelle-lite' => array(
263
+ 'title' => __( 'Zelle Lite - One Page Template', 'elementor-addon-widgets' ),
264
+ 'description' => __( 'A friendly one-page multipurpose page, with a full-width image in the background. It comes with an elegant and modern design, which could fit very well any kind of business. Zelle Lite has an interactive and colorful interface, with classy parallax effect and lively animations. You can use it for your online shop as well.', 'elementor-addon-widgets' ),
265
+ 'demo_url' => 'https://demo.themeisle.com/hestia-pro-demo-content/zelle-lite/',
266
+ 'screenshot' => esc_url( $this->get_source_url() . 'zelle-lite/screenshot.jpg' ),
267
+ 'import_file' => esc_url( $this->get_source_url() . 'zelle-lite/template.json' ),
268
  ),
269
  'notify' => array(
270
  'title' => __( 'Notify - Landing Page', 'elementor-addon-widgets' ),
336
 
337
  /**
338
  * Utility method to call Elementor import routine.
339
+ *
340
+ * @param \WP_REST_Request $request the async request.
341
+ *
342
+ * @return string
343
  */
344
+ public function import_elementor( \WP_REST_Request $request ) {
345
  if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
346
  return 'no-elementor';
347
  }
348
 
349
+ $params = $request->get_params();
350
  $template_name = $params['template_name'];
351
+ $template_url = $params['template_url'];
352
 
353
  require_once( ABSPATH . 'wp-admin' . '/includes/file.php' );
354
  require_once( ABSPATH . 'wp-admin' . '/includes/image.php' );
355
 
356
+ // Mime a supported document type.
357
+ $elementor_plugin = \Elementor\Plugin::$instance;
358
+ $elementor_plugin->documents->register_document_type( 'not-supported', \Elementor\Modules\Library\Documents\Page::get_class_full_name() );
359
+
360
  $template = download_url( esc_url( $template_url ) );
361
  $name = $template_name;
362
  $_FILES['file']['tmp_name'] = $template;
428
  ), admin_url( 'post.php' ) );
429
 
430
  return ( $redirect_url );
 
 
431
  }
432
 
433
  /**
vendor/codeinwp/templates-directory/composer.json CHANGED
@@ -2,7 +2,7 @@
2
  "name": "codeinwp/templates-directory",
3
  "description": "A WordPress library to manage page templates.",
4
  "type": "library",
5
- "version": "1.0.8",
6
  "license": "GPL-2.0-or-later",
7
  "homepage": "https://github.com/Codeinwp/templates-directory",
8
  "authors": [
2
  "name": "codeinwp/templates-directory",
3
  "description": "A WordPress library to manage page templates.",
4
  "type": "library",
5
+ "version": "1.0.9",
6
  "license": "GPL-2.0-or-later",
7
  "homepage": "https://github.com/Codeinwp/templates-directory",
8
  "authors": [
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit90442579b3b63aa2dd5a57b75c080f80
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit90442579b3b63aa2dd5a57b75c080f80
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit90442579b3b63aa2dd5a57b75c080f80', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit90442579b3b63aa2dd5a57b75c080f80', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit90442579b3b63aa2dd5a57b75c080f80
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequire90442579b3b63aa2dd5a57b75c080f80($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequire90442579b3b63aa2dd5a57b75c080f80($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitd67a8571892509a7a621debcca8600f6
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitd67a8571892509a7a621debcca8600f6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitd67a8571892509a7a621debcca8600f6', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequired67a8571892509a7a621debcca8600f6($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequired67a8571892509a7a621debcca8600f6($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
vendor/composer/installed.json CHANGED
@@ -159,18 +159,18 @@
159
  "source": {
160
  "type": "git",
161
  "url": "https://github.com/Codeinwp/templates-directory.git",
162
- "reference": "be218b189f9dc60e32463161567ca1b567f79019"
163
  },
164
  "dist": {
165
  "type": "zip",
166
- "url": "https://api.github.com/repos/Codeinwp/templates-directory/zipball/be218b189f9dc60e32463161567ca1b567f79019",
167
- "reference": "be218b189f9dc60e32463161567ca1b567f79019",
168
  "shasum": ""
169
  },
170
  "require": {
171
  "codeinwp/full-width-page-templates": "master"
172
  },
173
- "time": "2018-11-12 09:48:53",
174
  "type": "library",
175
  "installation-source": "dist",
176
  "autoload": {
159
  "source": {
160
  "type": "git",
161
  "url": "https://github.com/Codeinwp/templates-directory.git",
162
+ "reference": "18e8b64784457e3851bc79203e1306b6057d4d69"
163
  },
164
  "dist": {
165
  "type": "zip",
166
+ "url": "https://api.github.com/repos/Codeinwp/templates-directory/zipball/18e8b64784457e3851bc79203e1306b6057d4d69",
167
+ "reference": "18e8b64784457e3851bc79203e1306b6057d4d69",
168
  "shasum": ""
169
  },
170
  "require": {
171
  "codeinwp/full-width-page-templates": "master"
172
  },
173
+ "time": "2018-12-12 21:50:20",
174
  "type": "library",
175
  "installation-source": "dist",
176
  "autoload": {