Shortcodes and extra features for Phlox theme - Version 2.5.12

Version Description

Download this release

Release Info

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

Code changes from version 2.5.11 to 2.5.12

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.0
10
- Stable tag: 2.5.11
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.0
10
+ Stable tag: 2.5.12
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.5.11 (2020-04-29)
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.5.12 (2020-05-03)
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.5.11
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.5.12
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-demo-importer.php CHANGED
@@ -1785,30 +1785,24 @@ class Auxin_Demo_Importer {
1785
  }
1786
 
1787
  // Change structure of urls included in custom css
 
1788
  preg_match_all( '/"custom_css":".+?(?<!\\ )"/', $meta, $custom_css, PREG_SET_ORDER );
1789
  if ( ! empty( $custom_css ) ) {
1790
  foreach ( $custom_css as $key => $css ) {
1791
- $new_css = preg_replace( "#[\\\/|\w|:]*\\\/wp-content#", '\/wp-content', $css[0] );
1792
- $new_css = preg_replace( "#sites\\\/\d*\\\/#", '', $new_css );
1793
- $meta = str_replace( $css[0], $new_css, $meta );
1794
- }
1795
- }
1796
-
1797
- // Change absolute and relative urls to Site Url
1798
- $site_url = str_replace( '/', '\/', trailingslashit( get_site_url() ) );
1799
- preg_match_all( '#https:\\\\\/\\\\\/demo\.phlox\.pro\\\\.+?(?=(wp-content|\/))#', $meta, $phlox_urls, PREG_SET_ORDER );
1800
- if ( ! empty( $phlox_urls ) ) {
1801
- foreach( $phlox_urls as $key => $url ){
1802
- $meta = str_replace( $url[0], $site_url, $meta);
1803
  }
1804
  }
1805
 
1806
- preg_match_all( '#\\"url\\":\\"\\\\\/.[a-z,0-9]*\\\\\/#', $meta, $relative_urls, PREG_SET_ORDER );
1807
- if ( ! empty( $relative_urls ) ) {
1808
- foreach($relative_urls as $key => $url) {
1809
- $meta = str_replace( $url[0], '"url":"'.$site_url, $meta );
1810
- }
1811
- }
1812
  return $meta;
1813
  }
1814
 
1785
  }
1786
 
1787
  // Change structure of urls included in custom css
1788
+ $site_url = str_replace( '/', '\/', trailingslashit( get_site_url() ) );
1789
  preg_match_all( '/"custom_css":".+?(?<!\\ )"/', $meta, $custom_css, PREG_SET_ORDER );
1790
  if ( ! empty( $custom_css ) ) {
1791
  foreach ( $custom_css as $key => $css ) {
1792
+ preg_match_all( '/[\w\\\/\-\.\:]+?([\w\-]+?)\\\/wp-content/', $css[0], $matches, PREG_SET_ORDER );
1793
+ if ( ! empty( $matches ) ) {
1794
+ $new_css = $css[0];
1795
+ foreach( $matches[0] as $key => $url ) {
1796
+ $new_url = str_replace( '\/' . $matches[1][$key], '', $url );
1797
+ $new_url = str_replace( "https:\/\/demo.phlox.pro\/", $site_url, $new_url );
1798
+ $new_css = str_replace( $url, $new_url, $new_css );
1799
+ }
1800
+ $new_css = preg_replace( "#sites\\\/\d*\\\/#", '', $new_css );
1801
+ $meta = str_replace( $css[0], $new_css, $meta );
1802
+ }
 
1803
  }
1804
  }
1805
 
 
 
 
 
 
 
1806
  return $meta;
1807
  }
1808
 
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.5.11' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.5.12' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
includes/elementor/class-auxin-elementor-core-elements.php CHANGED
@@ -614,6 +614,11 @@ final class Elements {
614
  $css_file = new \Elementor\Core\Files\CSS\Post( $header_template_style );
615
  $css_file->enqueue();
616
  }
 
 
 
 
 
617
  }
618
 
619
  /**
614
  $css_file = new \Elementor\Core\Files\CSS\Post( $header_template_style );
615
  $css_file->enqueue();
616
  }
617
+
618
+ if( $footer_template_style = auxin_get_option( 'site_elementor_footer_template' ) ){
619
+ $css_file = new \Elementor\Core\Files\CSS\Post( $footer_template_style );
620
+ $css_file->enqueue();
621
+ }
622
  }
623
 
624
  /**
includes/elementor/widgets/modern-button.php CHANGED
@@ -336,8 +336,8 @@ class ModernButton extends Widget_Base {
336
  'allowed_dimensions' => 'all',
337
  'separator' => 'before',
338
  'selectors' => [
339
- '{{WRAPPER}} .aux-modern-button' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
340
- ],
341
  ]
342
  );
343
 
@@ -389,8 +389,8 @@ class ModernButton extends Widget_Base {
389
  'allowed_dimensions' => 'all',
390
  'separator' => 'before',
391
  'selectors' => [
392
- '{{WRAPPER}} .aux-modern-button:hover' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
393
- ],
394
  ]
395
  );
396
 
@@ -759,9 +759,9 @@ class ModernButton extends Widget_Base {
759
 
760
  ?>
761
  <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?> >
762
- <?php
763
- if ( auxin_is_true( $settings['open_video_in_lightbox'] ) ) {
764
-
765
  $this->add_render_attribute( 'button', 'class', 'aux-open-video' );
766
  $this->add_render_attribute( 'button', 'data-type', 'video' );
767
 
@@ -777,8 +777,8 @@ class ModernButton extends Widget_Base {
777
  <?php };?>
778
  <div class="aux-text"><?php echo esc_html( $settings['label'] ); ?></div>
779
  </a>
780
- <?php
781
- if ( auxin_is_true( $settings['open_video_in_lightbox'] ) ) {
782
  echo '</span>';
783
  }
784
  ?>
336
  'allowed_dimensions' => 'all',
337
  'separator' => 'before',
338
  'selectors' => [
339
+ '{{WRAPPER}} .aux-overlay:before, {{WRAPPER}} .aux-overlay:after' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
340
+ ]
341
  ]
342
  );
343
 
389
  'allowed_dimensions' => 'all',
390
  'separator' => 'before',
391
  'selectors' => [
392
+ '{{WRAPPER}} .aux-modern-button:hover .aux-overlay:before, {{WRAPPER}} .aux-modern-button:hover .aux-overlay:after' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
393
+ ]
394
  ]
395
  );
396
 
759
 
760
  ?>
761
  <div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?> >
762
+ <?php
763
+ if ( auxin_is_true( $settings['open_video_in_lightbox'] ) ) {
764
+
765
  $this->add_render_attribute( 'button', 'class', 'aux-open-video' );
766
  $this->add_render_attribute( 'button', 'data-type', 'video' );
767
 
777
  <?php };?>
778
  <div class="aux-text"><?php echo esc_html( $settings['label'] ); ?></div>
779
  </a>
780
+ <?php
781
+ if ( auxin_is_true( $settings['open_video_in_lightbox'] ) ) {
782
  echo '</span>';
783
  }
784
  ?>
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.5.11\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
- "POT-Creation-Date: 2020-04-29 05:31:55+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
@@ -2678,26 +2678,26 @@ msgstr ""
2678
  msgid "%s - Portfolio"
2679
  msgstr ""
2680
 
2681
- #: includes/elementor/class-auxin-elementor-core-elements.php:670
2682
- #: includes/elementor/class-auxin-elementor-core-elements.php:694
2683
  #. translators: 1: Plugin name 2: PHP 3: Required PHP version
2684
  msgid "\"%1$s\" requires \"%2$s\" version %3$s or greater."
2685
  msgstr ""
2686
 
2687
- #: includes/elementor/class-auxin-elementor-core-elements.php:672
2688
  msgid "Elementor"
2689
  msgstr ""
2690
 
2691
- #: includes/elementor/class-auxin-elementor-core-elements.php:696
2692
  #: includes/elements/code.php:82
2693
  msgid "PHP"
2694
  msgstr ""
2695
 
2696
- #: includes/elementor/class-auxin-elementor-core-elements.php:750
2697
  msgid "Phlox Icons - Set 1"
2698
  msgstr ""
2699
 
2700
- #: includes/elementor/class-auxin-elementor-core-elements.php:769
2701
  msgid "Phlox Icons - Set 2"
2702
  msgstr ""
2703
 
1
  # Averta Copyright (c) {2020}
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: Phlox Core Elements 2.5.12\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
+ "POT-Creation-Date: 2020-05-03 12:28:38+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
2678
  msgid "%s - Portfolio"
2679
  msgstr ""
2680
 
2681
+ #: includes/elementor/class-auxin-elementor-core-elements.php:675
2682
+ #: includes/elementor/class-auxin-elementor-core-elements.php:699
2683
  #. translators: 1: Plugin name 2: PHP 3: Required PHP version
2684
  msgid "\"%1$s\" requires \"%2$s\" version %3$s or greater."
2685
  msgstr ""
2686
 
2687
+ #: includes/elementor/class-auxin-elementor-core-elements.php:677
2688
  msgid "Elementor"
2689
  msgstr ""
2690
 
2691
+ #: includes/elementor/class-auxin-elementor-core-elements.php:701
2692
  #: includes/elements/code.php:82
2693
  msgid "PHP"
2694
  msgstr ""
2695
 
2696
+ #: includes/elementor/class-auxin-elementor-core-elements.php:755
2697
  msgid "Phlox Icons - Set 1"
2698
  msgstr ""
2699
 
2700
+ #: includes/elementor/class-auxin-elementor-core-elements.php:774
2701
  msgid "Phlox Icons - Set 2"
2702
  msgstr ""
2703
 
public/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.5.11 (2020-04-29)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
1
+ /*! Phlox Core Plugin - v2.5.12 (2020-05-03)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
public/assets/js/scripts.js CHANGED
@@ -1,5 +1,5 @@
1
  ;(function($, window, document, undefined){
2
- const AuxinRemoveCartContent = function() {
3
  // Remove cart content
4
  $(document).on( 'click', '.aux-remove-cart-content', function(e) {
5
  e.preventDefault();
@@ -48,7 +48,7 @@
48
  });
49
  };
50
 
51
- const AuxinAjaxAddToCart = function() {
52
  // Add Content to Cart
53
  $(document).on( 'click', '.aux-ajax-add-to-cart', function(e) {
54
  var productType = $(this).data("product-type");
@@ -91,11 +91,11 @@
91
 
92
  setTimeout( function(){
93
  if ( hasAnimation ) {
94
- $cartBoxEl.on('AuxCartProgressAnimationDone', function(e) {
95
  $cartBoxEl.find('.aux-card-dropdown').html( response.data.items );
96
  $cartBoxEl.find('.aux-shopping-basket').html( response.data.total );
97
  $cartBoxEl.trigger('AuxCartUpdated');
98
- });
99
  } else {
100
  $cartBoxEl.find('.aux-card-dropdown').html( response.data.items );
101
  $cartBoxEl.find('.aux-shopping-basket').html( response.data.total );
@@ -119,4 +119,31 @@
119
  AuxinRemoveCartContent();
120
  AuxinAjaxAddToCart();
121
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  })(jQuery,window,document);
1
  ;(function($, window, document, undefined){
2
+ var AuxinRemoveCartContent = function() {
3
  // Remove cart content
4
  $(document).on( 'click', '.aux-remove-cart-content', function(e) {
5
  e.preventDefault();
48
  });
49
  };
50
 
51
+ var AuxinAjaxAddToCart = function() {
52
  // Add Content to Cart
53
  $(document).on( 'click', '.aux-ajax-add-to-cart', function(e) {
54
  var productType = $(this).data("product-type");
91
 
92
  setTimeout( function(){
93
  if ( hasAnimation ) {
94
+ // $cartBoxEl.on('AuxCartProgressAnimationDone', function(e) {
95
  $cartBoxEl.find('.aux-card-dropdown').html( response.data.items );
96
  $cartBoxEl.find('.aux-shopping-basket').html( response.data.total );
97
  $cartBoxEl.trigger('AuxCartUpdated');
98
+ // });
99
  } else {
100
  $cartBoxEl.find('.aux-card-dropdown').html( response.data.items );
101
  $cartBoxEl.find('.aux-shopping-basket').html( response.data.total );
119
  AuxinRemoveCartContent();
120
  AuxinAjaxAddToCart();
121
  });
122
+
123
+ $.fn.AuxinCartAnimationHandler = function() {
124
+ $headerCartWrapper = $(this).find('.aux-cart-wrapper');
125
+ $headerCartWrapper.trigger('AuxCartProgressAnimationDone');
126
+
127
+ if ( ! $headerCartWrapper.hasClass('aux-basket-animation') ) {
128
+ return
129
+ }
130
+
131
+ $headerCartWrapper.on('AuxCartInProgress', function(e) {
132
+ $headerCartWrapper.addClass('aux-cart-in-progress');
133
+ });
134
+
135
+ $headerCartWrapper.on('animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd', function(e) {
136
+ if ( e.originalEvent.animationName === 'FillBasket') {
137
+ $headerCartWrapper.removeClass('aux-cart-in-progress');
138
+ $headerCartWrapper.trigger('AuxCartProgressAnimationDone');
139
+ }
140
+ });
141
+
142
+ $headerCartWrapper.on('AuxCartUpdated', function(e) {
143
+ $headerCartWrapper.addClass('aux-cart-updated-animation');
144
+ });
145
+ }
146
+
147
+ $('body').AuxinCartAnimationHandler();
148
+
149
  })(jQuery,window,document);