Shortcodes and extra features for Phlox theme - Version 2.10.1

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Shortcodes and extra features for Phlox theme
Version 2.10.1
Comparing to
See all releases

Code changes from version 2.10.0 to 2.10.1

README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: phlox, gallery, elementor, auxin, averta, auxin-elements, framework, widge
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 6.0.1
10
- Stable tag: 2.10.0
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
@@ -154,6 +154,10 @@ Bugs can be reported in our [support forums](https://docs.phlox.pro).
154
 
155
  == Changelog ==
156
 
 
 
 
 
157
  = Version 2.9.5 / (24.04.2022) =
158
  - [New]: Copy animation button added to Elementor context menu to copy and paste animations across elements.
159
  - [Fix]: Deprecated notices of new version of Elementor fixed.
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 6.0.1
10
+ Stable tag: 2.10.1
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
154
 
155
  == Changelog ==
156
 
157
+ = Version 2.10.1 / (22.08.2022) =
158
+ - [Fix]: An issue with import of background image for Depicter slider fixed.
159
+ - [Fix]: An issue with some notices while saving a page with Elementor fixed.
160
+
161
  = Version 2.9.5 / (24.04.2022) =
162
  - [New]: Copy animation button added to Elementor context menu to copy and paste animations across elements.
163
  - [Fix]: Deprecated notices of new version of Elementor fixed.
admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.10.0 (2022-08)
2
  * All required javascript plugins for admin
3
  * http://phlox.pro/
4
  * Place any jQuery/helper plugins in here, instead of separate, slower script files!
1
+ /*! Phlox Core Plugin - v2.10.1 (2022-08)
2
  * All required javascript plugins for admin
3
  * http://phlox.pro/
4
  * Place any jQuery/helper plugins in here, instead of separate, slower script files!
auxin-elements.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Phlox Core Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Exclusive and comprehensive plugin that extends the functionality of Phlox theme by adding new Elements, widgets and options.
15
- * Version: 2.10.0
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
12
  * Plugin Name: Phlox Core Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Exclusive and comprehensive plugin that extends the functionality of Phlox theme by adding new Elements, widgets and options.
15
+ * Version: 2.10.1
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-demo-importer.php CHANGED
@@ -171,7 +171,7 @@ class Auxin_Demo_Importer {
171
  }
172
 
173
  public function fetch_template_data( $template_ID ){
174
- $data = $this->parse( 'http://library.phlox.pro/templates/?id='. $template_ID, 'data' );
175
  return $this->update_elementor_data( $data, 'upload' );
176
  }
177
 
@@ -1035,11 +1035,11 @@ class Auxin_Demo_Importer {
1035
  }
1036
 
1037
  /**
1038
- * Update Custom css
1039
- *
1040
  * @param string $custom_css
1041
- *
1042
- * @return string
1043
  */
1044
  public function update_custom_css_content( $custom_css ) {
1045
  preg_match_all( '#[\w\/\-\.\:]+?([\w\-]+?)\/wp-content#', $custom_css, $matches, PREG_SET_ORDER );
@@ -1056,7 +1056,7 @@ class Auxin_Demo_Importer {
1056
  $site_url_without_path = str_replace( $site_url_path, '', $site_url );
1057
  $new_url = str_replace( "https://demo.phlox.pro/", $site_url_without_path, $new_url );
1058
  }
1059
-
1060
  $custom_css = str_replace( $match[0], $new_url, $custom_css );
1061
  }
1062
  }
@@ -1382,9 +1382,9 @@ class Auxin_Demo_Importer {
1382
 
1383
  /**
1384
  * Update id of imported assets
1385
- *
1386
  * @param string $data
1387
- *
1388
  * @return string $data
1389
  */
1390
  public function update_slider_assets_id( $data ) {
171
  }
172
 
173
  public function fetch_template_data( $template_ID ){
174
+ $data = $this->parse( 'https://library.phlox.pro/templates/?id='. $template_ID, 'data' );
175
  return $this->update_elementor_data( $data, 'upload' );
176
  }
177
 
1035
  }
1036
 
1037
  /**
1038
+ * Update Custom css
1039
+ *
1040
  * @param string $custom_css
1041
+ *
1042
+ * @return string
1043
  */
1044
  public function update_custom_css_content( $custom_css ) {
1045
  preg_match_all( '#[\w\/\-\.\:]+?([\w\-]+?)\/wp-content#', $custom_css, $matches, PREG_SET_ORDER );
1056
  $site_url_without_path = str_replace( $site_url_path, '', $site_url );
1057
  $new_url = str_replace( "https://demo.phlox.pro/", $site_url_without_path, $new_url );
1058
  }
1059
+
1060
  $custom_css = str_replace( $match[0], $new_url, $custom_css );
1061
  }
1062
  }
1382
 
1383
  /**
1384
  * Update id of imported assets
1385
+ *
1386
  * @param string $data
1387
+ *
1388
  * @return string $data
1389
  */
1390
  public function update_slider_assets_id( $data ) {
includes/classes/class-auxin-welcome.php CHANGED
@@ -905,7 +905,7 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
905
  <?php
906
  $categories_list = [];
907
  foreach ( $demo_list['items'] as $key => $args ) {
908
-
909
  if ( !empty( $args['category'] ) && $args['category'] != "[]" ) {
910
  $categories = str_replace( '"', '', substr( $args['category'], 1, -1 ) );
911
  } else {
@@ -921,11 +921,11 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
921
  <ul class="aux-group-filter">
922
  <li data-filter="all"><a href="#" class="aux-selected"><span data-select="<?php esc_attr_e('All Templates', 'auxin-elements'); ?>"><?php esc_html_e('All Templates', 'auxin-elements'); ?><span>(<?php echo count( $demo_list['items']);?>)</span></span></a></li>
923
  <?php
924
-
925
  // move shop category to second position
926
  $categories_list = auxin_array_insert_after( $categories_list, key( $categories_list ), [ "Shop" => $categories_list['Shop'] ] );
927
  $categories_list = array_map( "unserialize", array_unique( array_map( "serialize", $categories_list ) ) );
928
-
929
  foreach ( $categories_list as $category => $demos_count ) {
930
  $filter = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', wp_specialchars_decode( $category ) ) );
931
  if ( empty( $filter ) ) {
@@ -950,7 +950,7 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
950
 
951
  // Check demo license
952
  $is_demo_allowed = auxin_is_activated() || !$args['is_pro'];
953
-
954
  if ( !empty( $args['category'] ) && $args['category'] != "[]" ) {
955
  $categories = str_replace( '"', '', substr( $args['category'], 1, -1 ) );
956
  } else {
@@ -1033,7 +1033,7 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
1033
  public function get_demo_list( $type = 'demos', $url = 'http://demo.phlox.pro/api/v2/info/', $sanitize_key = 'auxin_cache_demo_library_items' ) {
1034
 
1035
  if( $type === 'templates' ){
1036
- $url = 'http://library.phlox.pro/info-api/';
1037
  $sanitize_key = 'auxin_cache_template_library_items';
1038
  }
1039
 
@@ -1249,7 +1249,7 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
1249
  }
1250
  }
1251
 
1252
- // Remove imported templates
1253
  $posts = get_posts( array(
1254
  'post_type' => 'elementor_library',
1255
  'posts_per_page' => -1,
@@ -1301,7 +1301,7 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
1301
  $uninstall_demo = $item;
1302
  break;
1303
  }
1304
- }
1305
  $demo_plugins = isset( $uninstall_demo['plugins'] ) ? $uninstall_demo['plugins'] : '';
1306
  if( ! empty( $demo_plugins ) ) {
1307
  $demo_plugins = str_replace( '"', '', $demo_plugins );
@@ -1380,7 +1380,7 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
1380
  ob_start();
1381
 
1382
  if( $type == 'progress' ) {
1383
- echo sprintf( '<div class="aux-template-lightbox"><div class="aux-modal-item aux-default-modal clearfix aux-steps-col">%s</div></div>', $this->progress_step( array(), '' ) );
1384
  wp_die( ob_get_clean() );
1385
  }
1386
 
@@ -1398,7 +1398,7 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
1398
  'plugins' => $args['plugins'],
1399
  'next_action' => 'template_manager'
1400
  );
1401
- echo sprintf( '<div class="aux-template-lightbox"><div class="aux-modal-item aux-default-modal clearfix aux-has-required-plugins aux-steps-col">%s</div></div>', $this->second_step( $args, '5' ) );
1402
  wp_die( ob_get_clean() );
1403
  }
1404
 
@@ -1678,12 +1678,12 @@ class Auxin_Welcome extends Auxin_Welcome_Base {
1678
  </div>
1679
  <div class="aux-setup-demo-actions">
1680
  <div class="aux-return-back">
1681
- <a href="#"
1682
- class="aux-button aux-next-step aux-red aux-medium"
1683
- data-next-step="11"
1684
  data-args="<?php echo htmlspecialchars( wp_json_encode($args), ENT_QUOTES, 'UTF-8' ); ?>"
1685
- data-demo-plugins="<?php echo htmlspecialchars( wp_json_encode( $args['plugins'] ), ENT_QUOTES, 'UTF-8' ); ?>"
1686
- data-demo-id="<?php echo esc_attr( $demo_id ); ?>"
1687
  data-step-nonce="<?php echo wp_create_nonce( 'aux-step-manager' ); ?>">
1688
  <?php esc_html_e( 'Unistall Template', 'auxin-elements' ); ?>
1689
  </a>
905
  <?php
906
  $categories_list = [];
907
  foreach ( $demo_list['items'] as $key => $args ) {
908
+
909
  if ( !empty( $args['category'] ) && $args['category'] != "[]" ) {
910
  $categories = str_replace( '"', '', substr( $args['category'], 1, -1 ) );
911
  } else {
921
  <ul class="aux-group-filter">
922
  <li data-filter="all"><a href="#" class="aux-selected"><span data-select="<?php esc_attr_e('All Templates', 'auxin-elements'); ?>"><?php esc_html_e('All Templates', 'auxin-elements'); ?><span>(<?php echo count( $demo_list['items']);?>)</span></span></a></li>
923
  <?php
924
+
925
  // move shop category to second position
926
  $categories_list = auxin_array_insert_after( $categories_list, key( $categories_list ), [ "Shop" => $categories_list['Shop'] ] );
927
  $categories_list = array_map( "unserialize", array_unique( array_map( "serialize", $categories_list ) ) );
928
+
929
  foreach ( $categories_list as $category => $demos_count ) {
930
  $filter = strtolower( preg_replace( '/[^A-Za-z0-9\-]/', '', wp_specialchars_decode( $category ) ) );
931
  if ( empty( $filter ) ) {
950
 
951
  // Check demo license
952
  $is_demo_allowed = auxin_is_activated() || !$args['is_pro'];
953
+
954
  if ( !empty( $args['category'] ) && $args['category'] != "[]" ) {
955
  $categories = str_replace( '"', '', substr( $args['category'], 1, -1 ) );
956
  } else {
1033
  public function get_demo_list( $type = 'demos', $url = 'http://demo.phlox.pro/api/v2/info/', $sanitize_key = 'auxin_cache_demo_library_items' ) {
1034
 
1035
  if( $type === 'templates' ){
1036
+ $url = 'https://library.phlox.pro/info-api/';
1037
  $sanitize_key = 'auxin_cache_template_library_items';
1038
  }
1039
 
1249
  }
1250
  }
1251
 
1252
+ // Remove imported templates
1253
  $posts = get_posts( array(
1254
  'post_type' => 'elementor_library',
1255
  'posts_per_page' => -1,
1301
  $uninstall_demo = $item;
1302
  break;
1303
  }
1304
+ }
1305
  $demo_plugins = isset( $uninstall_demo['plugins'] ) ? $uninstall_demo['plugins'] : '';
1306
  if( ! empty( $demo_plugins ) ) {
1307
  $demo_plugins = str_replace( '"', '', $demo_plugins );
1380
  ob_start();
1381
 
1382
  if( $type == 'progress' ) {
1383
+ echo sprintf( '<div class="aux-template-lightbox"><div class="aux-modal-item aux-default-modal clearfix aux-steps-col">%s</div></div>', $this->progress_step( array(), '' ) );
1384
  wp_die( ob_get_clean() );
1385
  }
1386
 
1398
  'plugins' => $args['plugins'],
1399
  'next_action' => 'template_manager'
1400
  );
1401
+ echo sprintf( '<div class="aux-template-lightbox"><div class="aux-modal-item aux-default-modal clearfix aux-has-required-plugins aux-steps-col">%s</div></div>', $this->second_step( $args, '5' ) );
1402
  wp_die( ob_get_clean() );
1403
  }
1404
 
1678
  </div>
1679
  <div class="aux-setup-demo-actions">
1680
  <div class="aux-return-back">
1681
+ <a href="#"
1682
+ class="aux-button aux-next-step aux-red aux-medium"
1683
+ data-next-step="11"
1684
  data-args="<?php echo htmlspecialchars( wp_json_encode($args), ENT_QUOTES, 'UTF-8' ); ?>"
1685
+ data-demo-plugins="<?php echo htmlspecialchars( wp_json_encode( $args['plugins'] ), ENT_QUOTES, 'UTF-8' ); ?>"
1686
+ data-demo-id="<?php echo esc_attr( $demo_id ); ?>"
1687
  data-step-nonce="<?php echo wp_create_nonce( 'aux-step-manager' ); ?>">
1688
  <?php esc_html_e( 'Unistall Template', 'auxin-elements' ); ?>
1689
  </a>
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.10.0' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.10.1' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
languages/auxin-elements-fa_IR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Auxin Essential Elements\n"
4
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
5
- "POT-Creation-Date: 2022-08-22 09:27:10+00:00\n"
6
  "PO-Revision-Date: 2016-11-09 12:50+0330\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2
  msgstr ""
3
  "Project-Id-Version: Auxin Essential Elements\n"
4
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
5
+ "POT-Creation-Date: 2022-08-22 10:05:18+00:00\n"
6
  "PO-Revision-Date: 2016-11-09 12:50+0330\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
languages/auxin-elements.pot CHANGED
@@ -1,9 +1,9 @@
1
  # Averta Copyright (c) {2022}
2
  msgid ""
3
  msgstr ""
4
- "Project-Id-Version: Phlox Core Elements 2.10.0\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
- "POT-Creation-Date: 2022-08-22 09:27:10+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
1
  # Averta Copyright (c) {2022}
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: Phlox Core Elements 2.10.1\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
+ "POT-Creation-Date: 2022-08-22 10:05:18+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
public/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.10.0 (2022-08)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
1
+ /*! Phlox Core Plugin - v2.10.1 (2022-08)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */