Shortcodes and extra features for Phlox theme - Version 2.9.17

Version Description

Download this release

Release Info

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

Code changes from version 2.9.16 to 2.9.17

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.0
10
- Stable tag: 2.9.16
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: 6.0.0
10
+ Stable tag: 2.9.17
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.9.16 (2022-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.9.17 (2022-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!
admin/includes/admin-ajax.php CHANGED
@@ -240,7 +240,7 @@ function auxin_dismissed_notice(){
240
  if ( ! isset( $_POST['id'] ) || ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], '_notice_nonce' ) ) {
241
  wp_send_json_error( __( 'Token Error.', 'auxin-elements' ) );
242
  } else {
243
- auxin_set_transient( 'auxin-notice-' . $_POST['id'], 1, $_POST['expiration'] );
244
  wp_send_json_success( __( 'It\'s OK.', 'auxin-elements' ) );
245
  }
246
  }
240
  if ( ! isset( $_POST['id'] ) || ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], '_notice_nonce' ) ) {
241
  wp_send_json_error( __( 'Token Error.', 'auxin-elements' ) );
242
  } else {
243
+ auxin_set_transient( sanitize_text_field( 'auxin-notice-' . $_POST['id'] ), 1, sanitize_text_field( $_POST['expiration'] ) );
244
  wp_send_json_success( __( 'It\'s OK.', 'auxin-elements' ) );
245
  }
246
  }
admin/includes/admin-hooks.php CHANGED
@@ -437,7 +437,7 @@ function auxin_add_2_rightnow_bottom() {
437
  }
438
 
439
  $link = 'https://docs.phlox.pro/?utm_source=wp-dashboard-widget&utm_medium=phlox-free&utm_content=wp-glance-widget&utm_term=documentation&utm_campaign=docs';
440
- echo '<a class="aux-dashboard-widget-footer-link" href="'.$link.'" target="_blank">Help<span class="screen-reader-text">(opens in a new window)</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>';
441
 
442
  echo '</div>';
443
  }
@@ -871,7 +871,7 @@ function auxin_maybe_set_default_header_template() {
871
  return;
872
  }
873
 
874
- $template_data = auxin_template_importer( AUXELS_ADMIN_DIR . '/assets/json/header.json', 'header', 'update_menu' );
875
 
876
  if ( $template_data['success'] == true ) {
877
  auxin_update_option( 'site_elementor_header_edit_template', $template_data['data']['postId'] );
437
  }
438
 
439
  $link = 'https://docs.phlox.pro/?utm_source=wp-dashboard-widget&utm_medium=phlox-free&utm_content=wp-glance-widget&utm_term=documentation&utm_campaign=docs';
440
+ echo '<a class="aux-dashboard-widget-footer-link" href="'. esc_url( $link ) .'" target="_blank">Help<span class="screen-reader-text">(opens in a new window)</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>';
441
 
442
  echo '</div>';
443
  }
871
  return;
872
  }
873
 
874
+ $template_data = auxin_template_importer( AUXELS_ADMIN_DIR . '/assets/json/header.json', 'header', 'update_menu' );
875
 
876
  if ( $template_data['success'] == true ) {
877
  auxin_update_option( 'site_elementor_header_edit_template', $template_data['data']['postId'] );
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.9.16
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.9.17
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxin-widget.php CHANGED
@@ -278,13 +278,17 @@ class Auxin_Widget extends WP_Widget {
278
 
279
  $tmp_instance_id = $instance[$id];
280
  foreach ( $field['choices'] as $id => $option_info ) {
281
- $active_attr = ( $tmp_instance_id == $id ) ? ' selected ' : "";
282
- $data_class = isset( $option_info['css_class'] ) && ! empty( $option_info['css_class'] ) ? 'data-class="'. $option_info['css_class'].'"' : '';
283
- $data_symbol = empty( $data_class ) && isset( $option_info['image'] ) && ! empty( $option_info['image'] ) ? 'data-symbol="'. $option_info['image'].'"' : '';
284
- $data_video = ! empty( $option_info['video_src'] ) ? 'data-video-src="'. esc_attr( $option_info['video_src'] ).'"' : '';
285
 
286
- echo sprintf( '<option value="%s" %s %s %s %s>%s</option>', esc_attr( $id ), $active_attr, $data_symbol,$data_video, $data_class, esc_html( $option_info['label'] ) );
 
 
 
 
 
 
 
287
  }
 
288
  echo '</select>';
289
  if ( $field["description"] ) {
290
  echo '<p class="option-description visual-selector-desc">' . esc_html( $field["description"] ) . '</p>';
@@ -495,7 +499,7 @@ class Auxin_Widget extends WP_Widget {
495
  if( ! isset( $new_instance[ $id ] ) ) {
496
  continue;
497
  }
498
-
499
  if( $field["type"] == "aux_switch" ) {
500
  $instance[ $id ] = !empty($new_instance[$id ] ) ? 1 : 0;
501
  }
278
 
279
  $tmp_instance_id = $instance[$id];
280
  foreach ( $field['choices'] as $id => $option_info ) {
 
 
 
 
281
 
282
+ echo sprintf( '<option value="%s" %s %s %s %s>%s</option>',
283
+ esc_attr( $id ),
284
+ ( $tmp_instance_id == $id ? ' selected ' : "" ),
285
+ ( empty( $option_info['css_class'] ) && ! empty( $option_info['image'] ) ? 'data-symbol="'. esc_attr( $option_info['image'] ) .'"' : '' )
286
+ ( ! empty( $option_info['video_src'] ) ? 'data-video-src="'. esc_attr( $option_info['video_src'] ).'"' : '' ),
287
+ ( ! empty( $option_info['css_class'] ) ? 'data-class="'. esc_attr( $option_info['css_class'] ) .'"' : '' ),
288
+ esc_html( $option_info['label'] )
289
+ );
290
  }
291
+
292
  echo '</select>';
293
  if ( $field["description"] ) {
294
  echo '<p class="option-description visual-selector-desc">' . esc_html( $field["description"] ) . '</p>';
499
  if( ! isset( $new_instance[ $id ] ) ) {
500
  continue;
501
  }
502
+
503
  if( $field["type"] == "aux_switch" ) {
504
  $instance[ $id ] = !empty($new_instance[$id ] ) ? 1 : 0;
505
  }
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.9.16' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.9.17' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
includes/elementor/widgets/theme-elements/modern-search.php CHANGED
@@ -1069,7 +1069,7 @@ class ModernSearch extends Widget_Base {
1069
  $options_output = '<option value="all" data-taxonomy="' . esc_attr ( wp_json_encode( $taxonomies ) ) . '" data-post-type="' . esc_attr ( wp_json_encode( $post_types ) ) . '">' . __('All Categories', THEME_DOMAIN) . '</option>' . $options_output ;
1070
 
1071
  echo '<div class="aux-search-cats">';
1072
- echo '<select class="aux-modern-search-cats" name="cat">' . $options_output . '</select>';
1073
  echo '</div>';
1074
  }
1075
 
1069
  $options_output = '<option value="all" data-taxonomy="' . esc_attr ( wp_json_encode( $taxonomies ) ) . '" data-post-type="' . esc_attr ( wp_json_encode( $post_types ) ) . '">' . __('All Categories', THEME_DOMAIN) . '</option>' . $options_output ;
1070
 
1071
  echo '<div class="aux-search-cats">';
1072
+ echo '<select class="aux-modern-search-cats" name="cat">' . wp_kses_post( $options_output ) . '</select>';
1073
  echo '</div>';
1074
  }
1075
 
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-07-21 15:59:37+00:00\n"
6
  "PO-Revision-Date: 2016-11-09 12:50+0330\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -2860,40 +2860,40 @@ msgstr "همه دسته ها"
2860
  msgid "Choose .."
2861
  msgstr "انتخاب .."
2862
 
2863
- #: includes/classes/class-auxin-widget.php:336
2864
- #: includes/classes/class-auxin-widget.php:337
2865
- #: includes/classes/class-auxin-widget.php:359
2866
- #: includes/classes/class-auxin-widget.php:360
2867
  #, fuzzy
2868
  msgid "Add Image"
2869
  msgstr "تصویر"
2870
 
2871
- #: includes/classes/class-auxin-widget.php:338
2872
- #: includes/classes/class-auxin-widget.php:361
2873
  #, fuzzy
2874
  msgid "Select Image"
2875
  msgstr "انتخاب اظهار نظر"
2876
 
2877
- #: includes/classes/class-auxin-widget.php:383
2878
- #: includes/classes/class-auxin-widget.php:384 includes/general-hooks.php:130
2879
  #: includes/general-hooks.php:131
2880
  #, fuzzy
2881
  msgid "Add Video"
2882
  msgstr "افزودن بخش"
2883
 
2884
- #: includes/classes/class-auxin-widget.php:385 includes/general-hooks.php:132
2885
  #, fuzzy
2886
  msgid "Select Video"
2887
  msgstr "تکرار ویدیو"
2888
 
2889
- #: includes/classes/class-auxin-widget.php:407
2890
- #: includes/classes/class-auxin-widget.php:408 includes/general-hooks.php:106
2891
  #: includes/general-hooks.php:107
2892
  #, fuzzy
2893
  msgid "Add Audio"
2894
  msgstr "افزودن بخش"
2895
 
2896
- #: includes/classes/class-auxin-widget.php:409 includes/general-hooks.php:108
2897
  #, fuzzy
2898
  msgid "Select Audio"
2899
  msgstr "انتخاب شکاف آکاردئون"
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-07-22 11:05:29+00:00\n"
6
  "PO-Revision-Date: 2016-11-09 12:50+0330\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
2860
  msgid "Choose .."
2861
  msgstr "انتخاب .."
2862
 
2863
+ #: includes/classes/class-auxin-widget.php:340
2864
+ #: includes/classes/class-auxin-widget.php:341
2865
+ #: includes/classes/class-auxin-widget.php:363
2866
+ #: includes/classes/class-auxin-widget.php:364
2867
  #, fuzzy
2868
  msgid "Add Image"
2869
  msgstr "تصویر"
2870
 
2871
+ #: includes/classes/class-auxin-widget.php:342
2872
+ #: includes/classes/class-auxin-widget.php:365
2873
  #, fuzzy
2874
  msgid "Select Image"
2875
  msgstr "انتخاب اظهار نظر"
2876
 
2877
+ #: includes/classes/class-auxin-widget.php:387
2878
+ #: includes/classes/class-auxin-widget.php:388 includes/general-hooks.php:130
2879
  #: includes/general-hooks.php:131
2880
  #, fuzzy
2881
  msgid "Add Video"
2882
  msgstr "افزودن بخش"
2883
 
2884
+ #: includes/classes/class-auxin-widget.php:389 includes/general-hooks.php:132
2885
  #, fuzzy
2886
  msgid "Select Video"
2887
  msgstr "تکرار ویدیو"
2888
 
2889
+ #: includes/classes/class-auxin-widget.php:411
2890
+ #: includes/classes/class-auxin-widget.php:412 includes/general-hooks.php:106
2891
  #: includes/general-hooks.php:107
2892
  #, fuzzy
2893
  msgid "Add Audio"
2894
  msgstr "افزودن بخش"
2895
 
2896
+ #: includes/classes/class-auxin-widget.php:413 includes/general-hooks.php:108
2897
  #, fuzzy
2898
  msgid "Select Audio"
2899
  msgstr "انتخاب شکاف آکاردئون"
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.9.16\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
- "POT-Creation-Date: 2022-07-21 15:59:37+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
@@ -2694,35 +2694,35 @@ msgstr ""
2694
  msgid "Choose .."
2695
  msgstr ""
2696
 
2697
- #: includes/classes/class-auxin-widget.php:336
2698
- #: includes/classes/class-auxin-widget.php:337
2699
- #: includes/classes/class-auxin-widget.php:359
2700
- #: includes/classes/class-auxin-widget.php:360
2701
  msgid "Add Image"
2702
  msgstr ""
2703
 
2704
- #: includes/classes/class-auxin-widget.php:338
2705
- #: includes/classes/class-auxin-widget.php:361
2706
  msgid "Select Image"
2707
  msgstr ""
2708
 
2709
- #: includes/classes/class-auxin-widget.php:383
2710
- #: includes/classes/class-auxin-widget.php:384 includes/general-hooks.php:130
2711
  #: includes/general-hooks.php:131
2712
  msgid "Add Video"
2713
  msgstr ""
2714
 
2715
- #: includes/classes/class-auxin-widget.php:385 includes/general-hooks.php:132
2716
  msgid "Select Video"
2717
  msgstr ""
2718
 
2719
- #: includes/classes/class-auxin-widget.php:407
2720
- #: includes/classes/class-auxin-widget.php:408 includes/general-hooks.php:106
2721
  #: includes/general-hooks.php:107
2722
  msgid "Add Audio"
2723
  msgstr ""
2724
 
2725
- #: includes/classes/class-auxin-widget.php:409 includes/general-hooks.php:108
2726
  msgid "Select Audio"
2727
  msgstr ""
2728
 
1
  # Averta Copyright (c) {2022}
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: Phlox Core Elements 2.9.17\n"
5
  "Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
6
+ "POT-Creation-Date: 2022-07-22 11:05:29+00:00\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=utf-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
2694
  msgid "Choose .."
2695
  msgstr ""
2696
 
2697
+ #: includes/classes/class-auxin-widget.php:340
2698
+ #: includes/classes/class-auxin-widget.php:341
2699
+ #: includes/classes/class-auxin-widget.php:363
2700
+ #: includes/classes/class-auxin-widget.php:364
2701
  msgid "Add Image"
2702
  msgstr ""
2703
 
2704
+ #: includes/classes/class-auxin-widget.php:342
2705
+ #: includes/classes/class-auxin-widget.php:365
2706
  msgid "Select Image"
2707
  msgstr ""
2708
 
2709
+ #: includes/classes/class-auxin-widget.php:387
2710
+ #: includes/classes/class-auxin-widget.php:388 includes/general-hooks.php:130
2711
  #: includes/general-hooks.php:131
2712
  msgid "Add Video"
2713
  msgstr ""
2714
 
2715
+ #: includes/classes/class-auxin-widget.php:389 includes/general-hooks.php:132
2716
  msgid "Select Video"
2717
  msgstr ""
2718
 
2719
+ #: includes/classes/class-auxin-widget.php:411
2720
+ #: includes/classes/class-auxin-widget.php:412 includes/general-hooks.php:106
2721
  #: includes/general-hooks.php:107
2722
  msgid "Add Audio"
2723
  msgstr ""
2724
 
2725
+ #: includes/classes/class-auxin-widget.php:413 includes/general-hooks.php:108
2726
  msgid "Select Audio"
2727
  msgstr ""
2728
 
public/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.9.16 (2022-07)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
1
+ /*! Phlox Core Plugin - v2.9.17 (2022-07)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */