Elementor Addons & Templates – Sizzify Lite - Version 1.2.7

Version Description

  • 2018-11-27
Download this release

Release Info

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

Code changes from version 1.2.6 to 1.2.7

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v1.2.6 - 2018-11-12
3
  **Changes:**
4
  * Fix issue with elementor content forms php notice
1
 
2
+ ### v1.2.7 - 2018-11-27
3
+ **Changes:**
4
+ * Update recommended theme link
5
+
6
  ### v1.2.6 - 2018-11-12
7
  **Changes:**
8
  * Fix issue with elementor content forms php notice
admin/partials/main.php CHANGED
@@ -16,17 +16,29 @@
16
  <div class="pro-feature">
17
  <div class="pro-feature-features">
18
  <h2>Extend your experience</h2>
19
- <p>Sizzify - Elementor Addons & Templates was made to extend your page builder experience. It adds new widgets to your favourite page builder. It also comes with a bunch of One-Click Import page templates that you can customize to your liking with just a few clicks.</p>
 
 
20
  </div>
21
  <div class="pro-feature-image">
22
  <img src="<?php echo esc_url( EA_URI . '/assets/img/templates.jpg' ); ?>"
23
- alt="Premium Templates"></div>
24
  </div>
25
 
26
- <div class="theme-promotions">
27
- <?php
28
- Elementor_Addon_Widgets::get_instance()->show_theme_promotion();
 
 
29
  ?>
30
- </div>
31
-
32
- </div>
 
 
 
 
 
 
 
 
16
  <div class="pro-feature">
17
  <div class="pro-feature-features">
18
  <h2>Extend your experience</h2>
19
+ <p>Sizzify - Elementor Addons & Templates was made to extend your page builder experience. It adds new
20
+ widgets to your favourite page builder. It also comes with a bunch of One-Click Import page
21
+ templates that you can customize to your liking with just a few clicks.</p>
22
  </div>
23
  <div class="pro-feature-image">
24
  <img src="<?php echo esc_url( EA_URI . '/assets/img/templates.jpg' ); ?>"
25
+ alt="Premium Templates"></div>
26
  </div>
27
 
28
+ <?php
29
+ $current_theme = wp_get_theme();
30
+ $theme_name = $current_theme->get( 'TextDomain' );
31
+ $template = $current_theme->get( 'Template' );
32
+ if ( $theme_name !== 'neve' && $template !== 'neve' ) {
33
  ?>
34
+ <div class="theme-promotions">
35
+ <?php
36
+ Elementor_Addon_Widgets::get_instance()->show_theme_promotion();
37
+ ?>
38
+ </div>
39
+ <?php
40
+ }
41
+ ?>
42
+
43
+
44
+ </div>
eaw-class.php CHANGED
@@ -7,22 +7,6 @@ class Elementor_Addon_Widgets {
7
  */
8
  private static $instance;
9
 
10
- /**
11
- * Returns an instance of this class.
12
- */
13
- public static function get_instance() {
14
-
15
- if ( null == self::$instance ) {
16
- self::$instance = new Elementor_Addon_Widgets();
17
- }
18
-
19
- return self::$instance;
20
- }
21
-
22
- public function load_plugin_textdomain() {
23
- load_plugin_textdomain( 'elementor-addon-widgets' );
24
- }
25
-
26
  /**
27
  * Initializes the plugin by setting filters and administration functions.
28
  */
@@ -33,7 +17,12 @@ class Elementor_Addon_Widgets {
33
 
34
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
35
 
36
- add_action( 'admin_init', array( $this, 'eaw_update_dismissed' ) );
 
 
 
 
 
37
 
38
  add_filter( 'admin_menu', array( $this, 'admin_pages' ) );
39
 
@@ -50,6 +39,31 @@ class Elementor_Addon_Widgets {
50
  $this->load_composer_library();
51
  }
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  public function enqueue_scripts() {
54
  $current_screen = get_current_screen();
55
  if ( $current_screen->id === 'sizzify_page_sizzify_more_features' || $current_screen->id === 'toplevel_page_sizzify-admin' ) {
@@ -58,7 +72,7 @@ class Elementor_Addon_Widgets {
58
  }
59
 
60
  /**
61
- * Shows theme promotion box for Neve after 3rd of December only if the box is not dismissed yet
62
  */
63
  public function show_theme_promotion() {
64
 
@@ -71,11 +85,11 @@ class Elementor_Addon_Widgets {
71
  }
72
 
73
  echo '<div class="pro-feature theme-promote">
74
- <div class="pro-feature-dismiss"><a href="' . admin_url( 'admin.php?page=sizzify-admin&sizzify_ignore_notice=0' ) . '"><span class="dashicons dashicons-dismiss"></span></a></div>
75
  <div class="pro-feature-features">
76
  <h2>Suggested theme</h2>
77
  <p>Do you enjoy working with Elementor? Check out Neve, our new FREE multipurpose theme. It\' s simple, fast and fully compatible with both Elementor and Gutenberg. We recommend to try it out together with Sizzify Lite.</p>
78
- <a target="_blank" href="https://themeisle.com/demo/?theme=Neve" class="install-now">
79
  <span class="dashicons dashicons-admin-appearance"></span> Install Neve</a>
80
  </div>
81
  <div class="pro-feature-image">
@@ -100,6 +114,7 @@ class Elementor_Addon_Widgets {
100
  'page_slug' => 'sizzify_template_dir',
101
  ),
102
  );
 
103
  return array_merge( $products, $sizzify );
104
  }
105
 
@@ -234,16 +249,6 @@ class Elementor_Addon_Widgets {
234
  return $filtered_templates;
235
  }
236
 
237
-
238
- /**
239
- * Load the Composer library with the base feature
240
- */
241
- public function load_composer_library() {
242
- if ( defined( 'ELEMENTOR_PATH' ) && class_exists( '\ThemeIsle\ElementorExtraWidgets' ) ) {
243
- \ThemeIsle\ElementorExtraWidgets::instance();
244
- }
245
- }
246
-
247
  /**
248
  * Call the Templates Directory library
249
  */
7
  */
8
  private static $instance;
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  /**
11
  * Initializes the plugin by setting filters and administration functions.
12
  */
17
 
18
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
19
 
20
+ $current_theme = wp_get_theme();
21
+ $theme_name = $current_theme->get( 'TextDomain' );
22
+ $template = $current_theme->get( 'Template' );
23
+ if ( $theme_name !== 'neve' && $template !== 'neve' ) {
24
+ add_action( 'admin_init', array( $this, 'eaw_update_dismissed' ) );
25
+ }
26
 
27
  add_filter( 'admin_menu', array( $this, 'admin_pages' ) );
28
 
39
  $this->load_composer_library();
40
  }
41
 
42
+ /**
43
+ * Load the Composer library with the base feature
44
+ */
45
+ public function load_composer_library() {
46
+ if ( defined( 'ELEMENTOR_PATH' ) && class_exists( '\ThemeIsle\ElementorExtraWidgets' ) ) {
47
+ \ThemeIsle\ElementorExtraWidgets::instance();
48
+ }
49
+ }
50
+
51
+ /**
52
+ * Returns an instance of this class.
53
+ */
54
+ public static function get_instance() {
55
+
56
+ if ( null == self::$instance ) {
57
+ self::$instance = new Elementor_Addon_Widgets();
58
+ }
59
+
60
+ return self::$instance;
61
+ }
62
+
63
+ public function load_plugin_textdomain() {
64
+ load_plugin_textdomain( 'elementor-addon-widgets' );
65
+ }
66
+
67
  public function enqueue_scripts() {
68
  $current_screen = get_current_screen();
69
  if ( $current_screen->id === 'sizzify_page_sizzify_more_features' || $current_screen->id === 'toplevel_page_sizzify-admin' ) {
72
  }
73
 
74
  /**
75
+ * Shows theme promotion box for Neve.
76
  */
77
  public function show_theme_promotion() {
78
 
85
  }
86
 
87
  echo '<div class="pro-feature theme-promote">
88
+ <div class="pro-feature-dismiss"><a href="' . esc_url( admin_url( 'admin.php?page=sizzify-admin&sizzify_ignore_notice=0' ) ) . '"><span class="dashicons dashicons-dismiss"></span></a></div>
89
  <div class="pro-feature-features">
90
  <h2>Suggested theme</h2>
91
  <p>Do you enjoy working with Elementor? Check out Neve, our new FREE multipurpose theme. It\' s simple, fast and fully compatible with both Elementor and Gutenberg. We recommend to try it out together with Sizzify Lite.</p>
92
+ <a target="_blank" href="' . esc_url( admin_url( 'theme-install.php?theme=neve' ) ) . '" class="install-now">
93
  <span class="dashicons dashicons-admin-appearance"></span> Install Neve</a>
94
  </div>
95
  <div class="pro-feature-image">
114
  'page_slug' => 'sizzify_template_dir',
115
  ),
116
  );
117
+
118
  return array_merge( $products, $sizzify );
119
  }
120
 
249
  return $filtered_templates;
250
  }
251
 
 
 
 
 
 
 
 
 
 
 
252
  /**
253
  * Call the Templates Directory library
254
  */
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.6
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.6' );
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.7
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.7' );
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.6 - 2018-11-12 ###
65
 
66
  * Fix issue with elementor content forms php notice
61
  4. Frontend view posts with custom title.
62
 
63
  ## Changelog ##
64
+ ### 1.2.7 - 2018-11-27 ###
65
+
66
+ * Update recommended theme link
67
+
68
+
69
  ### 1.2.6 - 2018-11-12 ###
70
 
71
  * Fix issue with elementor content forms php notice
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.6 - 2018-11-12 =
65
 
66
  * Fix issue with elementor content forms php notice
61
  4. Frontend view posts with custom title.
62
 
63
  == Changelog ==
64
+ = 1.2.7 - 2018-11-27 =
65
+
66
+ * Update recommended theme link
67
+
68
+
69
  = 1.2.6 - 2018-11-12 =
70
 
71
  * Fix issue with elementor content forms php notice
themeisle-hash.json CHANGED
@@ -1 +1 @@
1
- {"eaw-class.php":"416d75815ec303a0f4c4e5702798edfc","elementor-addon-widgets.php":"94806c3da2028e7d267ec7749f43150c"}
1
+ {"eaw-class.php":"8cfd2eba7189aa727c9ad5ce1581432f","elementor-addon-widgets.php":"a923ade991b385716e735eb18612d8d3"}
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita10863c4414c1bebacd7767f12101133::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInite0dbe2102f5f4cfc151311fd910c8258::getLoader();
vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-product.php CHANGED
@@ -397,8 +397,8 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
397
  private function get_api_versions() {
398
 
399
  $cache_key = $this->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->version ) . 'versions';
400
- $cache_versions = get_transient( $this->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->version ) . 'versions' );
401
- if ( false == $cache_versions ) {
402
  $versions = array();
403
  if ( ! $this->is_wordpress_available() ) {
404
  $versions = $this->get_pro_versions();
@@ -410,7 +410,7 @@ if ( ! class_exists( 'ThemeIsle_SDK_Product' ) ) :
410
  $versions = $this->get_theme_versions();
411
  }
412
  }
413
- set_transient( $cache_key, $versions, MONTH_IN_SECONDS );
414
  } else {
415
  $versions = is_array( $cache_versions ) ? $cache_versions : array();
416
  }
397
  private function get_api_versions() {
398
 
399
  $cache_key = $this->get_key() . '_' . preg_replace( '/[^0-9a-zA-Z ]/m', '', $this->version ) . 'versions';
400
+ $cache_versions = get_transient( $cache_key );
401
+ if ( false === $cache_versions ) {
402
  $versions = array();
403
  if ( ! $this->is_wordpress_available() ) {
404
  $versions = $this->get_pro_versions();
410
  $versions = $this->get_theme_versions();
411
  }
412
  }
413
+ set_transient( $cache_key, $versions, 5 * DAY_IN_SECONDS );
414
  } else {
415
  $versions = is_array( $cache_versions ) ? $cache_versions : array();
416
  }
vendor/codeinwp/themeisle-sdk/load.php CHANGED
@@ -11,7 +11,7 @@
11
  */
12
 
13
  // Current SDK version and path.
14
- $themeisle_sdk_version = '2.2.7';
15
  $themeisle_sdk_path = dirname( __FILE__ );
16
 
17
  global $themeisle_sdk_max_version;
11
  */
12
 
13
  // Current SDK version and path.
14
+ $themeisle_sdk_version = '2.2.8';
15
  $themeisle_sdk_path = dirname( __FILE__ );
16
 
17
  global $themeisle_sdk_max_version;
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita10863c4414c1bebacd7767f12101133
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInita10863c4414c1bebacd7767f12101133
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInita10863c4414c1bebacd7767f12101133', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInita10863c4414c1bebacd7767f12101133', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInita10863c4414c1bebacd7767f12101133
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequirea10863c4414c1bebacd7767f12101133($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequirea10863c4414c1bebacd7767f12101133($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 ComposerAutoloaderInite0dbe2102f5f4cfc151311fd910c8258
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInite0dbe2102f5f4cfc151311fd910c8258', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInite0dbe2102f5f4cfc151311fd910c8258', '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
+ composerRequiree0dbe2102f5f4cfc151311fd910c8258($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequiree0dbe2102f5f4cfc151311fd910c8258($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
vendor/composer/installed.json CHANGED
@@ -82,15 +82,15 @@
82
  "source": {
83
  "type": "git",
84
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
85
- "reference": "caa9bf2b2c48c12a0ac745b6e2880c94339a777d"
86
  },
87
  "dist": {
88
  "type": "zip",
89
- "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/caa9bf2b2c48c12a0ac745b6e2880c94339a777d",
90
- "reference": "caa9bf2b2c48c12a0ac745b6e2880c94339a777d",
91
  "shasum": ""
92
  },
93
- "time": "2018-07-19 07:48:21",
94
  "type": "library",
95
  "installation-source": "dist",
96
  "autoload": {
82
  "source": {
83
  "type": "git",
84
  "url": "https://github.com/Codeinwp/themeisle-sdk.git",
85
+ "reference": "951cde6e799e00d46a52416b62221fd771ddc326"
86
  },
87
  "dist": {
88
  "type": "zip",
89
+ "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/951cde6e799e00d46a52416b62221fd771ddc326",
90
+ "reference": "951cde6e799e00d46a52416b62221fd771ddc326",
91
  "shasum": ""
92
  },
93
+ "time": "2018-11-26 14:24:47",
94
  "type": "library",
95
  "installation-source": "dist",
96
  "autoload": {