Shortcodes and extra features for Phlox theme - Version 2.6.5

Version Description

Download this release

Release Info

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

Code changes from version 2.6.4 to 2.6.5

README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: phlox, gallery, elementor, siteorigin, auxin, averta, auxin-elements, fram
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.4.3
10
- Stable tag: 2.6.4
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.4.3
10
+ Stable tag: 2.6.5
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.6.4 (2020-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.6.5 (2020-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.6.4
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.6.5
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-demo-importer.php CHANGED
@@ -773,13 +773,6 @@ class Auxin_Demo_Importer {
773
  continue;
774
  }
775
 
776
- // If post type is product_vaiation check that if parent product imported or not
777
- // If imported then change parent product id to the imported product id
778
- if ( $post['post_type'] == 'product_variation' ) {
779
- $stored_products_id = maybe_unserialize( auxin_get_transient( 'aux-old-products-id-transformation' ) );
780
- $post['post_parent'] = ( ! $stored_products_id || ! array_key_exists( $post['post_parent'], $stored_products_id ) ) ? $post['post_parent'] : $stored_products_id[$post['post_parent']];
781
- }
782
-
783
  $post_id = wp_insert_post(
784
  array(
785
  'post_title' => sanitize_text_field( $post['post_title'] ),
@@ -1037,7 +1030,8 @@ class Auxin_Demo_Importer {
1037
  'post',
1038
  'page',
1039
  'portfolio',
1040
- 'product'
 
1041
  ),
1042
  'posts_per_page' => -1
1043
  );
@@ -1047,7 +1041,23 @@ class Auxin_Demo_Importer {
1047
  if ( $query->have_posts() ) {
1048
  while( $query->have_posts() ) {
1049
  $query->the_post();
1050
- $elementor_data = get_post_meta( get_the_ID() , '_elementor_data', true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1051
 
1052
  // Change slide's id in flexible carousel element
1053
  preg_match_all( '/template":"\d*/', $elementor_data, $templates, PREG_SET_ORDER );
773
  continue;
774
  }
775
 
 
 
 
 
 
 
 
776
  $post_id = wp_insert_post(
777
  array(
778
  'post_title' => sanitize_text_field( $post['post_title'] ),
1030
  'post',
1031
  'page',
1032
  'portfolio',
1033
+ 'product',
1034
+ 'product_variation'
1035
  ),
1036
  'posts_per_page' => -1
1037
  );
1041
  if ( $query->have_posts() ) {
1042
  while( $query->have_posts() ) {
1043
  $query->the_post();
1044
+ $post_ID = get_the_ID();
1045
+
1046
+ if ( get_post_type( $post_ID ) == 'product_variation' ) {
1047
+ $old_products_id = maybe_unserialize( auxin_get_transient( 'aux-old-products-id-transformation' ) );
1048
+ $parent_product = wp_get_post_parent_id( $post_ID );
1049
+ if ( ! empty( $old_products_id[ $parent_product ] ) ) {
1050
+ wp_update_post(
1051
+ array(
1052
+ 'ID' => $post_ID,
1053
+ 'post_parent' => $old_products_id[ $parent_product ]
1054
+ )
1055
+ );
1056
+ }
1057
+ continue;
1058
+ }
1059
+
1060
+ $elementor_data = get_post_meta( $post_ID , '_elementor_data', true );
1061
 
1062
  // Change slide's id in flexible carousel element
1063
  preg_match_all( '/template":"\d*/', $elementor_data, $templates, PREG_SET_ORDER );
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.6.4' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.6.5' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
languages/auxin-elements.pot CHANGED
@@ -1,9 +1,9 @@
1
  # Averta Copyright (c) {2020}
2
  msgid ""
3
  msgstr ""
4
- "Project-Id-Version: Phlox Core Elements 2.6.4\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
- "POT-Creation-Date: 2020-08-03 09:57:56+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
@@ -1939,7 +1939,7 @@ msgid "Importing Media"
1939
  msgstr ""
1940
 
1941
  #: includes/classes/class-auxin-demo-importer.php:293
1942
- #: includes/classes/class-auxin-demo-importer.php:1214
1943
  msgid "Importing Users"
1944
  msgstr ""
1945
 
@@ -1969,11 +1969,11 @@ msgstr ""
1969
  msgid "Importing Sliders"
1970
  msgstr ""
1971
 
1972
- #: includes/classes/class-auxin-demo-importer.php:1277
1973
  msgid "Preparing Site ..."
1974
  msgstr ""
1975
 
1976
- #: includes/classes/class-auxin-demo-importer.php:1292
1977
  msgid "All steps are successful"
1978
  msgstr ""
1979
 
1
  # Averta Copyright (c) {2020}
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: Phlox Core Elements 2.6.5\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
+ "POT-Creation-Date: 2020-08-04 07:22:48+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
1939
  msgstr ""
1940
 
1941
  #: includes/classes/class-auxin-demo-importer.php:293
1942
+ #: includes/classes/class-auxin-demo-importer.php:1224
1943
  msgid "Importing Users"
1944
  msgstr ""
1945
 
1969
  msgid "Importing Sliders"
1970
  msgstr ""
1971
 
1972
+ #: includes/classes/class-auxin-demo-importer.php:1287
1973
  msgid "Preparing Site ..."
1974
  msgstr ""
1975
 
1976
+ #: includes/classes/class-auxin-demo-importer.php:1302
1977
  msgid "All steps are successful"
1978
  msgstr ""
1979
 
public/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.6.4 (2020-08)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
1
+ /*! Phlox Core Plugin - v2.6.5 (2020-08)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */