Shortcodes and extra features for Phlox theme - Version 2.5.9

Version Description

Download this release

Release Info

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

Code changes from version 2.5.8 to 2.5.9

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.8
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.9
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.8 (2020-04-11)
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.9 (2020-04-26)
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.8
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.9
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-demo-importer.php CHANGED
@@ -1690,6 +1690,22 @@ class Auxin_Demo_Importer {
1690
  }
1691
  }
1692
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1693
  // remove empties
1694
  $matches = array_filter( $matches );
1695
 
1690
  }
1691
  }
1692
 
1693
+ preg_match_all('/"icon_list":(\[.*?\])/', $meta, $icon_lists, PREG_SET_ORDER );
1694
+ if ( !empty( $icon_lists ) ) {
1695
+ foreach ( $icon_lists as $list_key => $icon_list ) {
1696
+ preg_match_all( '/\{\"url":.*?\}/' , $icon_list[0], $list );
1697
+ $matches = !empty( $list ) ? array_merge( $matches, $list ) : $matches;
1698
+ }
1699
+ }
1700
+
1701
+ preg_match_all('/"carousel":(\[.*?\])/', $meta, $icon_lists, PREG_SET_ORDER );
1702
+ if ( !empty( $icon_lists ) ) {
1703
+ foreach ( $icon_lists as $list_key => $icon_list ) {
1704
+ preg_match_all( '/\{\"id":.*?\}/' , $icon_list[0], $list );
1705
+ $matches = !empty( $list ) ? array_merge( $matches, $list ) : $matches;
1706
+ }
1707
+ }
1708
+
1709
  // remove empties
1710
  $matches = array_filter( $matches );
1711
 
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.5.8' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.5.9' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
includes/elementor/widgets/contact-form.php CHANGED
@@ -1464,7 +1464,7 @@ class ContactForm extends Widget_Base {
1464
  'label' => __( 'Color', 'auxin-elements' ),
1465
  'type' => Controls_Manager::COLOR,
1466
  'selectors' => [
1467
- '{{WRAPPER}} textarea:placeholder' => 'color: {{VALUE}};',
1468
  ]
1469
  ]
1470
  );
1464
  'label' => __( 'Color', 'auxin-elements' ),
1465
  'type' => Controls_Manager::COLOR,
1466
  'selectors' => [
1467
+ '{{WRAPPER}} textarea::placeholder' => 'color: {{VALUE}};',
1468
  ]
1469
  ]
1470
  );
includes/elementor/widgets/text.php CHANGED
@@ -1405,7 +1405,7 @@ class Text extends Widget_Base {
1405
  'default' => 'center',
1406
  'toggle' => true,
1407
  'selectors' => array(
1408
- '{{WRAPPER}} .aux-widget-advanced-text' => 'text-align: {{VALUE}}',
1409
  )
1410
  )
1411
  );
1405
  'default' => 'center',
1406
  'toggle' => true,
1407
  'selectors' => array(
1408
+ '{{WRAPPER}} .aux-widget-advanced-text' => 'text-align: {{VALUE}} !important;'
1409
  )
1410
  )
1411
  );
includes/elementor/widgets/theme-elements/modern-search.php CHANGED
@@ -157,7 +157,7 @@ class ModernSearch extends Widget_Base {
157
  'label_on' => __( 'On', 'auxin-elements' ),
158
  'label_off' => __( 'Off', 'auxin-elements' ),
159
  'return_value' => 'yes',
160
- 'default' => 'no',
161
  'separator' => 'before'
162
  ]
163
  );
@@ -899,13 +899,13 @@ class ModernSearch extends Widget_Base {
899
  <div <?php echo $this->get_render_attribute_string( 'form_wrapper' );?>>
900
  <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get" >
901
  <div class="aux-search-input-form">
902
- <input type="text" class="aux-search-field" placeholder="<?php esc_attr_e('Search...', 'auxin-elements' ); ?>" name="s" autocomplete="off" />
903
  <?php if ( $args['display_cats'] ) { ;?>
904
  <?php $this->render_category( ['post_types' => $args['post_types'] ] );?>
905
  <?php };?>
906
  <?php if ( $args['display_submit'] ) { ;?>
907
  <?php if ( $args['display_fill'] ) { ;?>
908
- <input type="submit" class="aux-fill-search-submit" value="<?php esc_attr_e( 'Search', THEME_DOMAIN ); ?>" >
909
  <?php } else { ;?>
910
  <div class="aux-submit-icon-container auxicon-search-4">
911
  <input type="submit" class="aux-iconic-search-submit" value="<?php esc_attr_e( 'Search', 'auxin-elements' ); ?>" >
@@ -959,7 +959,7 @@ class ModernSearch extends Widget_Base {
959
  * @access protected
960
  */
961
  protected function get_post_types() {
962
- return auxin_general_post_types_category_slug();
963
  }
964
 
965
  /**
157
  'label_on' => __( 'On', 'auxin-elements' ),
158
  'label_off' => __( 'Off', 'auxin-elements' ),
159
  'return_value' => 'yes',
160
+ 'default' => 'yes',
161
  'separator' => 'before'
162
  ]
163
  );
899
  <div <?php echo $this->get_render_attribute_string( 'form_wrapper' );?>>
900
  <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get" >
901
  <div class="aux-search-input-form">
902
+ <input type="text" class="aux-search-field" placeholder="<?php esc_attr_e('Search...', 'auxin-elements' ); ?>" name="s" autocomplete="off" data-post-types="<?php echo esc_attr ( wp_json_encode( $args['post_types'] ) ) ;?>" />
903
  <?php if ( $args['display_cats'] ) { ;?>
904
  <?php $this->render_category( ['post_types' => $args['post_types'] ] );?>
905
  <?php };?>
906
  <?php if ( $args['display_submit'] ) { ;?>
907
  <?php if ( $args['display_fill'] ) { ;?>
908
+ <input type="submit" class="aux-fill-search-submit" value="<?php esc_attr_e( 'Search', THEME_DOMAIN ); ?> " >
909
  <?php } else { ;?>
910
  <div class="aux-submit-icon-container auxicon-search-4">
911
  <input type="submit" class="aux-iconic-search-submit" value="<?php esc_attr_e( 'Search', 'auxin-elements' ); ?>" >
959
  * @access protected
960
  */
961
  protected function get_post_types() {
962
+ return auxin_get_available_post_types_for_search();
963
  }
964
 
965
  /**
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.8\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
- "POT-Creation-Date: 2020-04-11 12:15:01+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) {2020}
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: Phlox Core Elements 2.5.9\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
+ "POT-Creation-Date: 2020-04-26 07:24:49+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.5.8 (2020-04-11)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
1
+ /*! Phlox Core Plugin - v2.5.9 (2020-04-26)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
public/includes/frontend-ajax.php CHANGED
@@ -231,7 +231,7 @@ function auxels_ajax_search() {
231
  $available_search_post_types = auxin_get_available_post_types_for_search();
232
 
233
  if ( ! empty( $_GET['post_types'] ) ) {
234
- $post_types = explode( ',', sanitize_text_field( $_GET['post_types'] ) );
235
  } else {
236
  $post_types = array_keys( $available_search_post_types );
237
  }
231
  $available_search_post_types = auxin_get_available_post_types_for_search();
232
 
233
  if ( ! empty( $_GET['post_types'] ) ) {
234
+ $post_types = $_GET['post_types'];
235
  } else {
236
  $post_types = array_keys( $available_search_post_types );
237
  }