Shortcodes and extra features for Phlox theme - Version 2.8.4

Version Description

Download this release

Release Info

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

Code changes from version 2.8.3 to 2.8.4

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.7.2
10
- Stable tag: 2.8.3
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.7.2
10
+ Stable tag: 2.8.4
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.8.3 (2021-07)
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.8.4 (2021-07)
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.8.3
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.8.4
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-demo-importer.php CHANGED
@@ -914,7 +914,7 @@ class Auxin_Demo_Importer {
914
  $product = new $classname( $post_id );
915
  $product->save();
916
  }
917
-
918
  $add_these_terms[] = intval($term_obj['term_id']);
919
  }
920
 
@@ -1036,7 +1036,7 @@ class Auxin_Demo_Importer {
1036
  }
1037
 
1038
  public function update_imported_ids() {
1039
-
1040
  $args = array(
1041
  'post_type' => array(
1042
  'post',
@@ -1054,23 +1054,23 @@ class Auxin_Demo_Importer {
1054
  while( $query->have_posts() ) {
1055
  $query->the_post();
1056
  $post_ID = get_the_ID();
1057
-
1058
  if ( get_post_type( $post_ID ) == 'product_variation' ) {
1059
  $old_products_id = maybe_unserialize( auxin_get_transient( 'aux-old-products-id-transformation' ) );
1060
  $parent_product = wp_get_post_parent_id( $post_ID );
1061
  if ( ! empty( $old_products_id[ $parent_product ] ) ) {
1062
  wp_update_post(
1063
  array(
1064
- 'ID' => $post_ID,
1065
  'post_parent' => $old_products_id[ $parent_product ]
1066
  )
1067
  );
1068
  }
1069
  continue;
1070
  }
1071
-
1072
  $elementor_data = get_post_meta( $post_ID , '_elementor_data', true );
1073
-
1074
  // Change slide's id in flexible carousel element
1075
  preg_match_all( '/template":"\d*/', $elementor_data, $templates, PREG_SET_ORDER );
1076
  if ( ! empty( $templates ) ) {
@@ -1162,7 +1162,7 @@ class Auxin_Demo_Importer {
1162
  preg_match_all( '/\[elementor-tag.+?\]/', $elementor_data, $elementor_tags, PREG_SET_ORDER );
1163
  if ( ! empty( $elementor_tags ) ) {
1164
  foreach( $elementor_tags as $key => $tag ) {
1165
- // tag is page url
1166
  if ( strpos( $tag[0], 'aux-pages-url' ) ) {
1167
  preg_match_all( '/settings=\\\"(.+)?\\\"/', $tag[0], $key_values, PREG_SET_ORDER );
1168
  if ( ! empty( $key_values ) ) {
@@ -1170,7 +1170,7 @@ class Auxin_Demo_Importer {
1170
  $old_key_value = urldecode( $key_value[1] );
1171
  $page_id = str_replace( '{"key":"', '', $old_key_value );
1172
  $page_id = str_replace( '"}', '', $page_id );
1173
-
1174
  $new_page_id = auxin_get_transient( "aux-page-{$page_id}-changs-to" );
1175
  $new_key_value = urlencode('{"key":"' . $new_page_id . '"}');
1176
  $new_tag = str_replace( $key_value[1], $new_key_value, $tag[0] );
@@ -1800,7 +1800,7 @@ class Auxin_Demo_Importer {
1800
  $image_size = getimagesize( $file );
1801
 
1802
  if ( ! is_wp_error( $attach_id ) ) {
1803
-
1804
  $width = isset( $image_size[0] ) ? $image_size[0] : '';
1805
  $height = isset( $image_size[1] ) ? $image_size[1] : '';
1806
 
@@ -1809,7 +1809,7 @@ class Auxin_Demo_Importer {
1809
 
1810
  //Add auxin meta flag on attachment
1811
  if ( $type == 'video/mp4' ) {
1812
- auxin_set_transient( 'auxin_video_import_id', $attach_id );
1813
  }
1814
  update_post_meta( $attach_id, 'auxin_import_id', $import_id );
1815
 
@@ -1850,6 +1850,8 @@ class Auxin_Demo_Importer {
1850
  $matches = array();
1851
  $attach_keys = array( 'image', 'img', 'photo', 'poster', 'media', 'src' );
1852
 
 
 
1853
  foreach ( $attach_keys as $attach_key ) {
1854
  preg_match_all('/\s*"\b\w*'.$attach_key.'\w*\"\s*:\{.*?\}/', $meta, $image );
1855
  if( isset( $image ) && ! empty( $image ) ){
@@ -1884,9 +1886,10 @@ class Auxin_Demo_Importer {
1884
  'selected_icon',
1885
  'prev_icon',
1886
  'next_icon',
1887
- 'aux_new_icon'
 
1888
  ];
1889
-
1890
  foreach( $svg_icon_patterns as $key => $pattern ) {
1891
  preg_match_all('/"' . $pattern . '":(\{.*?\})/', $meta, $svg_urls, PREG_SET_ORDER );
1892
  if ( !empty( $svg_urls ) ) {
@@ -1989,10 +1992,10 @@ class Auxin_Demo_Importer {
1989
  $new_url = str_replace( "https:\/\/demo.phlox.pro\/", $site_url, $new_url );
1990
  $new_css = str_replace( $url, $new_url, $new_css );
1991
  }
1992
-
1993
  }
1994
  $new_css = preg_replace( "#sites\\\/\d*\\\/#", '', $new_css );
1995
- $meta = str_replace( $css[0], $new_css, $meta );
1996
  }
1997
  }
1998
  }
@@ -2005,7 +2008,7 @@ class Auxin_Demo_Importer {
2005
  }
2006
  }
2007
 
2008
- // remove network part of url from importing
2009
  // http:\/\/...\/\/wp-content\/uploads\/sites\/12\/2020\/09 => http:\/\/...\/\/wp-content\/uploads\/2020\/09
2010
  if ( ! is_array( $meta ) ) {
2011
  $meta = preg_replace( "#sites\\\/\d*\\\/#", '', $meta );
914
  $product = new $classname( $post_id );
915
  $product->save();
916
  }
917
+
918
  $add_these_terms[] = intval($term_obj['term_id']);
919
  }
920
 
1036
  }
1037
 
1038
  public function update_imported_ids() {
1039
+
1040
  $args = array(
1041
  'post_type' => array(
1042
  'post',
1054
  while( $query->have_posts() ) {
1055
  $query->the_post();
1056
  $post_ID = get_the_ID();
1057
+
1058
  if ( get_post_type( $post_ID ) == 'product_variation' ) {
1059
  $old_products_id = maybe_unserialize( auxin_get_transient( 'aux-old-products-id-transformation' ) );
1060
  $parent_product = wp_get_post_parent_id( $post_ID );
1061
  if ( ! empty( $old_products_id[ $parent_product ] ) ) {
1062
  wp_update_post(
1063
  array(
1064
+ 'ID' => $post_ID,
1065
  'post_parent' => $old_products_id[ $parent_product ]
1066
  )
1067
  );
1068
  }
1069
  continue;
1070
  }
1071
+
1072
  $elementor_data = get_post_meta( $post_ID , '_elementor_data', true );
1073
+
1074
  // Change slide's id in flexible carousel element
1075
  preg_match_all( '/template":"\d*/', $elementor_data, $templates, PREG_SET_ORDER );
1076
  if ( ! empty( $templates ) ) {
1162
  preg_match_all( '/\[elementor-tag.+?\]/', $elementor_data, $elementor_tags, PREG_SET_ORDER );
1163
  if ( ! empty( $elementor_tags ) ) {
1164
  foreach( $elementor_tags as $key => $tag ) {
1165
+ // tag is page url
1166
  if ( strpos( $tag[0], 'aux-pages-url' ) ) {
1167
  preg_match_all( '/settings=\\\"(.+)?\\\"/', $tag[0], $key_values, PREG_SET_ORDER );
1168
  if ( ! empty( $key_values ) ) {
1170
  $old_key_value = urldecode( $key_value[1] );
1171
  $page_id = str_replace( '{"key":"', '', $old_key_value );
1172
  $page_id = str_replace( '"}', '', $page_id );
1173
+
1174
  $new_page_id = auxin_get_transient( "aux-page-{$page_id}-changs-to" );
1175
  $new_key_value = urlencode('{"key":"' . $new_page_id . '"}');
1176
  $new_tag = str_replace( $key_value[1], $new_key_value, $tag[0] );
1800
  $image_size = getimagesize( $file );
1801
 
1802
  if ( ! is_wp_error( $attach_id ) ) {
1803
+
1804
  $width = isset( $image_size[0] ) ? $image_size[0] : '';
1805
  $height = isset( $image_size[1] ) ? $image_size[1] : '';
1806
 
1809
 
1810
  //Add auxin meta flag on attachment
1811
  if ( $type == 'video/mp4' ) {
1812
+ auxin_set_transient( 'auxin_video_import_id', $attach_id );
1813
  }
1814
  update_post_meta( $attach_id, 'auxin_import_id', $import_id );
1815
 
1850
  $matches = array();
1851
  $attach_keys = array( 'image', 'img', 'photo', 'poster', 'media', 'src' );
1852
 
1853
+ $meta = is_array( $meta ) ? wp_json_encode( $meta ) : $meta;
1854
+
1855
  foreach ( $attach_keys as $attach_key ) {
1856
  preg_match_all('/\s*"\b\w*'.$attach_key.'\w*\"\s*:\{.*?\}/', $meta, $image );
1857
  if( isset( $image ) && ! empty( $image ) ){
1886
  'selected_icon',
1887
  'prev_icon',
1888
  'next_icon',
1889
+ 'aux_new_icon',
1890
+ 'social_icon'
1891
  ];
1892
+
1893
  foreach( $svg_icon_patterns as $key => $pattern ) {
1894
  preg_match_all('/"' . $pattern . '":(\{.*?\})/', $meta, $svg_urls, PREG_SET_ORDER );
1895
  if ( !empty( $svg_urls ) ) {
1992
  $new_url = str_replace( "https:\/\/demo.phlox.pro\/", $site_url, $new_url );
1993
  $new_css = str_replace( $url, $new_url, $new_css );
1994
  }
1995
+
1996
  }
1997
  $new_css = preg_replace( "#sites\\\/\d*\\\/#", '', $new_css );
1998
+ $meta = str_replace( $css[0], $new_css, $meta );
1999
  }
2000
  }
2001
  }
2008
  }
2009
  }
2010
 
2011
+ // remove network part of url from importing
2012
  // http:\/\/...\/\/wp-content\/uploads\/sites\/12\/2020\/09 => http:\/\/...\/\/wp-content\/uploads\/2020\/09
2013
  if ( ! is_array( $meta ) ) {
2014
  $meta = preg_replace( "#sites\\\/\d*\\\/#", '', $meta );
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.8.3' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.8.4' );
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: 2021-07-05 09:11:57+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: 2021-07-11 12:00:30+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) {2021}
2
  msgid ""
3
  msgstr ""
4
- "Project-Id-Version: Phlox Core Elements 2.8.3\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
- "POT-Creation-Date: 2021-07-05 09:11:57+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) {2021}
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: Phlox Core Elements 2.8.4\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
+ "POT-Creation-Date: 2021-07-11 12:00:30+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.8.3 (2021-07)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
1
+ /*! Phlox Core Plugin - v2.8.4 (2021-07)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */