Version Description
Download this release
Release Info
Developer | averta |
Plugin | Shortcodes and extra features for Phlox theme |
Version | 2.9.8 |
Comparing to | |
See all releases |
Code changes from version 2.9.7 to 2.9.8
- README.txt +1 -1
- admin/assets/js/plugins.js +1 -1
- admin/includes/admin-ajax.php +10 -10
- auxin-elements.php +1 -1
- includes/define.php +1 -1
- includes/elementor/modules/dynamic-tags/login-url.php +2 -2
- includes/elementor/modules/query-control/classes/elementor-post-query.php +2 -1
- includes/elementor/modules/query-control/controls/group-control-posts.php +2 -2
- includes/elementor/widgets/accordion.php +1 -1
- includes/elementor/widgets/before-after.php +1 -1
- includes/elementor/widgets/icon.php +4 -4
- includes/elementor/widgets/responsive-table.php +1 -1
- includes/elementor/widgets/svg.php +1 -1
- includes/elementor/widgets/tabs.php +2 -2
- includes/elements/recent-products.php +10 -0
- languages/auxin-elements-fa_IR.po +13 -13
- languages/auxin-elements.pot +14 -14
- public/assets/js/plugins.js +1 -1
- public/assets/js/scripts.js +2 -1
- public/includes/frontend-ajax.php +21 -3
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: 6.0.0
|
10 |
-
Stable tag: 2.9.
|
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.8
|
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.
|
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.8 (2022-06)
|
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
@@ -10,9 +10,9 @@ function auxin_ajax_send_feedback(){
|
|
10 |
$form_data = $_POST['form'];
|
11 |
|
12 |
// extract the form data
|
13 |
-
$rate = ( ! empty( $form_data['theme_rate'] ) || $form_data['theme_rate'] === '0' ) ? $form_data['theme_rate'] : '';
|
14 |
-
$feedback = ! empty( $form_data['feedback'] ) ? $form_data['feedback'] : '';
|
15 |
-
$email = ! empty( $form_data['email'] ) ? $form_data['email']
|
16 |
$nonce = ! empty( $form_data['_wpnonce'] ) ? $form_data['_wpnonce'] : '';
|
17 |
|
18 |
if( ! wp_verify_nonce( $nonce, 'phlox_feedback' ) ){
|
@@ -141,15 +141,15 @@ function auxin_ajax_filter_get_content() {
|
|
141 |
wp_send_json_error( 'Nonce check failed!', 403 );
|
142 |
}
|
143 |
|
144 |
-
$num = $_POST['num'];
|
145 |
$post_type = 'product';
|
146 |
-
$tax = $_POST['taxonomy'];
|
147 |
-
$term = $_POST['term'];
|
148 |
$image_class = 'aux-img-dynamic-dropshadow';
|
149 |
-
$width = $_POST['width'];
|
150 |
-
$height = $_POST['height'];
|
151 |
-
$order = $_POST['order'];
|
152 |
-
$orderby = $_POST['orderby'];
|
153 |
$size = array( 'width' => $width, 'height' => $height );
|
154 |
|
155 |
/*
|
10 |
$form_data = $_POST['form'];
|
11 |
|
12 |
// extract the form data
|
13 |
+
$rate = ( ! empty( $form_data['theme_rate'] ) || $form_data['theme_rate'] === '0' ) ? sanitize_text_field( $form_data['theme_rate'] ) : '';
|
14 |
+
$feedback = ! empty( $form_data['feedback'] ) ? sanitize_text_field( $form_data['feedback'] ) : '';
|
15 |
+
$email = ! empty( $form_data['email'] ) ? sanitize_email( $form_data['email'] ) : '';
|
16 |
$nonce = ! empty( $form_data['_wpnonce'] ) ? $form_data['_wpnonce'] : '';
|
17 |
|
18 |
if( ! wp_verify_nonce( $nonce, 'phlox_feedback' ) ){
|
141 |
wp_send_json_error( 'Nonce check failed!', 403 );
|
142 |
}
|
143 |
|
144 |
+
$num = sanitize_text_field( $_POST['num'] );
|
145 |
$post_type = 'product';
|
146 |
+
$tax = sanitize_text_field( $_POST['taxonomy'] );
|
147 |
+
$term = sanitize_text_field( $_POST['term'] );
|
148 |
$image_class = 'aux-img-dynamic-dropshadow';
|
149 |
+
$width = sanitize_text_field( $_POST['width'] );
|
150 |
+
$height = sanitize_text_field( $_POST['height'] );
|
151 |
+
$order = sanitize_text_field( $_POST['order'] );
|
152 |
+
$orderby = sanitize_text_field( $_POST['orderby'] );
|
153 |
$size = array( 'width' => $width, 'height' => $height );
|
154 |
|
155 |
/*
|
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 |
* 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.8
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* Text Domain: auxin-elements
|
includes/define.php
CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
|
|
12 |
}
|
13 |
|
14 |
|
15 |
-
define( 'AUXELS_VERSION' , '2.9.
|
16 |
|
17 |
define( 'AUXELS_SLUG' , 'auxin-elements' );
|
18 |
|
12 |
}
|
13 |
|
14 |
|
15 |
+
define( 'AUXELS_VERSION' , '2.9.8' );
|
16 |
|
17 |
define( 'AUXELS_SLUG' , 'auxin-elements' );
|
18 |
|
includes/elementor/modules/dynamic-tags/login-url.php
CHANGED
@@ -50,8 +50,8 @@ class Auxin_Login_Url extends Tag {
|
|
50 |
}
|
51 |
|
52 |
protected function get_page_url() {
|
53 |
-
|
54 |
-
$current_url = home_url( add_query_arg( [], $
|
55 |
if( $this->get_settings( 'key' ) == 'login' ){
|
56 |
return wp_login_url( $current_url );
|
57 |
} else if ( get_option( 'users_can_register' ) ) {
|
50 |
}
|
51 |
|
52 |
protected function get_page_url() {
|
53 |
+
global $wp;
|
54 |
+
$current_url = home_url( add_query_arg( [], $wp->request ) );
|
55 |
if( $this->get_settings( 'key' ) == 'login' ){
|
56 |
return wp_login_url( $current_url );
|
57 |
} else if ( get_option( 'users_can_register' ) ) {
|
includes/elementor/modules/query-control/classes/elementor-post-query.php
CHANGED
@@ -77,10 +77,11 @@ class Elementor_Post_Query {
|
|
77 |
}
|
78 |
|
79 |
public function get_query_args() {
|
|
|
80 |
$post_type = $this->get_widget_settings( 'post_type' );
|
81 |
|
82 |
if ( 'current_query' === $post_type ) {
|
83 |
-
$current_query_vars = $
|
84 |
|
85 |
$current_query_vars = apply_filters( 'elementor/query/get_query_args/current_query', $current_query_vars );
|
86 |
$this->query_args = $current_query_vars;
|
77 |
}
|
78 |
|
79 |
public function get_query_args() {
|
80 |
+
global $wp_query;
|
81 |
$post_type = $this->get_widget_settings( 'post_type' );
|
82 |
|
83 |
if ( 'current_query' === $post_type ) {
|
84 |
+
$current_query_vars = $wp_query->query_vars;
|
85 |
|
86 |
$current_query_vars = apply_filters( 'elementor/query/get_query_args/current_query', $current_query_vars );
|
87 |
$this->query_args = $current_query_vars;
|
includes/elementor/modules/query-control/controls/group-control-posts.php
CHANGED
@@ -263,7 +263,7 @@ class Group_Control_Posts extends Group_Control_Base {
|
|
263 |
}
|
264 |
|
265 |
public function get_query_args( $control_id_prefix, $settings ) {
|
266 |
-
|
267 |
$defaults = [
|
268 |
$control_id_prefix . '_post_type' => 'post',
|
269 |
$control_id_prefix . '_posts_ids' => [],
|
@@ -278,7 +278,7 @@ class Group_Control_Posts extends Group_Control_Base {
|
|
278 |
$post_type = $settings[ $control_id_prefix . '_post_type' ];
|
279 |
|
280 |
if ( 'current_query' === $post_type ) {
|
281 |
-
$current_query_vars = $
|
282 |
|
283 |
/**
|
284 |
* Current query variables.
|
263 |
}
|
264 |
|
265 |
public function get_query_args( $control_id_prefix, $settings ) {
|
266 |
+
global $wp_query;
|
267 |
$defaults = [
|
268 |
$control_id_prefix . '_post_type' => 'post',
|
269 |
$control_id_prefix . '_posts_ids' => [],
|
278 |
$post_type = $settings[ $control_id_prefix . '_post_type' ];
|
279 |
|
280 |
if ( 'current_query' === $post_type ) {
|
281 |
+
$current_query_vars = $wp_query->query_vars;
|
282 |
|
283 |
/**
|
284 |
* Current query variables.
|
includes/elementor/widgets/accordion.php
CHANGED
@@ -738,7 +738,7 @@ class Accordion extends Widget_Base {
|
|
738 |
*
|
739 |
* @access protected
|
740 |
*/
|
741 |
-
protected function
|
742 |
?>
|
743 |
<# var typeClass = settings.type == 'true' ? 'aux-type-toggle' : 'aux-type-accordion'; #>
|
744 |
<section class="widget-container aux-widget-accordion widget-toggle">
|
738 |
*
|
739 |
* @access protected
|
740 |
*/
|
741 |
+
protected function content_template() {
|
742 |
?>
|
743 |
<# var typeClass = settings.type == 'true' ? 'aux-type-toggle' : 'aux-type-accordion'; #>
|
744 |
<section class="widget-container aux-widget-accordion widget-toggle">
|
includes/elementor/widgets/before-after.php
CHANGED
@@ -269,7 +269,7 @@ class BeforeAfter extends Widget_Base {
|
|
269 |
* @since 1.0.0
|
270 |
* @access protected
|
271 |
*/
|
272 |
-
protected function
|
273 |
?>
|
274 |
<#
|
275 |
|
269 |
* @since 1.0.0
|
270 |
* @access protected
|
271 |
*/
|
272 |
+
protected function content_template() {
|
273 |
?>
|
274 |
<#
|
275 |
|
includes/elementor/widgets/icon.php
CHANGED
@@ -409,8 +409,8 @@ class Icon extends Widget_Base {
|
|
409 |
?>
|
410 |
<div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
|
411 |
<<?php echo $icon_tag . ' ' . $this->get_render_attribute_string( 'icon-wrapper' ); ?>>
|
412 |
-
<?php
|
413 |
-
if ( ! empty( $settings['aux_new_icon']['value'] ) ) {
|
414 |
\Elementor\Icons_Manager::render_icon( $settings['aux_new_icon'], [ 'aria-hidden' => 'true' ] );
|
415 |
} else {
|
416 |
if ( ! empty( $settings['icon'] ) ) {
|
@@ -420,7 +420,7 @@ class Icon extends Widget_Base {
|
|
420 |
<i <?php echo $this->get_render_attribute_string( 'icon' ); ?>></i>
|
421 |
<?php
|
422 |
}
|
423 |
-
}
|
424 |
?>
|
425 |
</<?php echo $icon_tag; ?>>
|
426 |
</div>
|
@@ -435,7 +435,7 @@ class Icon extends Widget_Base {
|
|
435 |
* @since 1.0.0
|
436 |
* @access protected
|
437 |
*/
|
438 |
-
protected function
|
439 |
?>
|
440 |
<# var link = settings.link.url ? 'href="' + settings.link.url + '"' : '',
|
441 |
iconHTML = elementor.helpers.renderIcon( view, settings.aux_new_icon, { 'aria-hidden': true }, 'i' , 'object' ),
|
409 |
?>
|
410 |
<div <?php echo $this->get_render_attribute_string( 'wrapper' ); ?>>
|
411 |
<<?php echo $icon_tag . ' ' . $this->get_render_attribute_string( 'icon-wrapper' ); ?>>
|
412 |
+
<?php
|
413 |
+
if ( ! empty( $settings['aux_new_icon']['value'] ) ) {
|
414 |
\Elementor\Icons_Manager::render_icon( $settings['aux_new_icon'], [ 'aria-hidden' => 'true' ] );
|
415 |
} else {
|
416 |
if ( ! empty( $settings['icon'] ) ) {
|
420 |
<i <?php echo $this->get_render_attribute_string( 'icon' ); ?>></i>
|
421 |
<?php
|
422 |
}
|
423 |
+
}
|
424 |
?>
|
425 |
</<?php echo $icon_tag; ?>>
|
426 |
</div>
|
435 |
* @since 1.0.0
|
436 |
* @access protected
|
437 |
*/
|
438 |
+
protected function content_template() {
|
439 |
?>
|
440 |
<# var link = settings.link.url ? 'href="' + settings.link.url + '"' : '',
|
441 |
iconHTML = elementor.helpers.renderIcon( view, settings.aux_new_icon, { 'aria-hidden': true }, 'i' , 'object' ),
|
includes/elementor/widgets/responsive-table.php
CHANGED
@@ -344,7 +344,7 @@ class ResponsiveTable extends Widget_Base {
|
|
344 |
*
|
345 |
* @access protected
|
346 |
*/
|
347 |
-
protected function
|
348 |
?>
|
349 |
<div class="widget-container widget-responsive-table">
|
350 |
<div class="widget-inner">
|
344 |
*
|
345 |
* @access protected
|
346 |
*/
|
347 |
+
protected function content_template() {
|
348 |
?>
|
349 |
<div class="widget-container widget-responsive-table">
|
350 |
<div class="widget-inner">
|
includes/elementor/widgets/svg.php
CHANGED
@@ -424,7 +424,7 @@ class Simple__SVG extends Widget_Base {
|
|
424 |
* Written as a Backbone JavaScript template and used to generate the live preview.
|
425 |
*
|
426 |
*/
|
427 |
-
protected function
|
428 |
?>
|
429 |
<div class="aux-widget-container aux-simple-svg-container">
|
430 |
<div class="aux-widget-container-inner">
|
424 |
* Written as a Backbone JavaScript template and used to generate the live preview.
|
425 |
*
|
426 |
*/
|
427 |
+
protected function content_template() {
|
428 |
?>
|
429 |
<div class="aux-widget-container aux-simple-svg-container">
|
430 |
<div class="aux-widget-container-inner">
|
includes/elementor/widgets/tabs.php
CHANGED
@@ -554,7 +554,7 @@ class Tabs extends Widget_Base {
|
|
554 |
|
555 |
// pass the args through the corresponding shortcode callback
|
556 |
echo auxin_widget_tabs_callback( $args );
|
557 |
-
|
558 |
add_filter( 'auxin/core_elements/dynamic_tags/shortcode/should_escape', '__return_true' );
|
559 |
}
|
560 |
|
@@ -564,7 +564,7 @@ class Tabs extends Widget_Base {
|
|
564 |
*
|
565 |
* @access protected
|
566 |
*/
|
567 |
-
protected function
|
568 |
?>
|
569 |
<section class="widget-container aux-widget-tabs">
|
570 |
<div class="widget-container widget-tabs {{{ settings.style }}}">
|
554 |
|
555 |
// pass the args through the corresponding shortcode callback
|
556 |
echo auxin_widget_tabs_callback( $args );
|
557 |
+
|
558 |
add_filter( 'auxin/core_elements/dynamic_tags/shortcode/should_escape', '__return_true' );
|
559 |
}
|
560 |
|
564 |
*
|
565 |
* @access protected
|
566 |
*/
|
567 |
+
protected function content_template() {
|
568 |
?>
|
569 |
<section class="widget-container aux-widget-tabs">
|
570 |
<div class="widget-container widget-tabs {{{ settings.style }}}">
|
includes/elements/recent-products.php
CHANGED
@@ -626,7 +626,17 @@ function auxin_widget_the_recent_products_callback( $atts, $shortcode_content =
|
|
626 |
|
627 |
function auxin_ajax_widget_the_recent_products(){
|
628 |
|
|
|
|
|
|
|
|
|
629 |
$args = !empty($_GET['data']) ? $_GET['data'] : [];
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
$args['paged'] = !empty($_GET['paged']) ? sanitize_text_field( $_GET['paged'] ) : $args['paged'];
|
631 |
|
632 |
echo auxin_widget_the_recent_products_callback( $args );
|
626 |
|
627 |
function auxin_ajax_widget_the_recent_products(){
|
628 |
|
629 |
+
if ( !isset( $_GET['auxinNonce'] ) || !wp_verify_nonce( $_GET['auxinNonce'], 'auxin-security-nonce' ) ) {
|
630 |
+
die();
|
631 |
+
}
|
632 |
+
|
633 |
$args = !empty($_GET['data']) ? $_GET['data'] : [];
|
634 |
+
if ( !empty( $args ) ) {
|
635 |
+
foreach( $args as $key => $value ) {
|
636 |
+
$args[ $key ] = sanitize_text_field( $value );
|
637 |
+
}
|
638 |
+
}
|
639 |
+
|
640 |
$args['paged'] = !empty($_GET['paged']) ? sanitize_text_field( $_GET['paged'] ) : $args['paged'];
|
641 |
|
642 |
echo auxin_widget_the_recent_products_callback( $args );
|
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-06-
|
6 |
"PO-Revision-Date: 2016-11-09 12:50+0330\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
@@ -2622,7 +2622,7 @@ msgid "Demo has been successfully uninstalled."
|
|
2622 |
msgstr ""
|
2623 |
|
2624 |
#: includes/classes/class-auxin-welcome.php:1408
|
2625 |
-
#: public/includes/frontend-ajax.php:
|
2626 |
msgid "An Error Occurred!"
|
2627 |
msgstr ""
|
2628 |
|
@@ -13068,49 +13068,49 @@ msgstr ""
|
|
13068 |
msgid "Authorization failed."
|
13069 |
msgstr "احراز هویت با خطا مواجه شد."
|
13070 |
|
13071 |
-
#: public/includes/frontend-ajax.php:
|
13072 |
#, fuzzy
|
13073 |
msgid "Not a valid handler."
|
13074 |
msgstr "اصلا"
|
13075 |
|
13076 |
-
#: public/includes/frontend-ajax.php:
|
13077 |
msgid "No data received."
|
13078 |
msgstr ""
|
13079 |
|
13080 |
-
#: public/includes/frontend-ajax.php:
|
13081 |
#, fuzzy
|
13082 |
msgid "Verification failed!"
|
13083 |
msgstr "احراز هویت با خطا مواجه شد!"
|
13084 |
|
13085 |
-
#: public/includes/frontend-ajax.php:
|
13086 |
msgid "Cart is empty"
|
13087 |
msgstr ""
|
13088 |
|
13089 |
-
#: public/includes/frontend-ajax.php:
|
13090 |
msgid "Your cart is currently empty."
|
13091 |
msgstr ""
|
13092 |
|
13093 |
-
#: public/includes/frontend-ajax.php:
|
13094 |
msgid "Item has been removed from your shopping cart."
|
13095 |
msgstr ""
|
13096 |
|
13097 |
-
#: public/includes/frontend-ajax.php:
|
13098 |
msgid "View cart"
|
13099 |
msgstr ""
|
13100 |
|
13101 |
-
#: public/includes/frontend-ajax.php:
|
13102 |
msgid "has been added to your cart."
|
13103 |
msgstr ""
|
13104 |
|
13105 |
-
#: public/includes/frontend-ajax.php:
|
13106 |
msgid "Sorry, this product cannot be purchased."
|
13107 |
msgstr ""
|
13108 |
|
13109 |
-
#: public/includes/frontend-ajax.php:
|
13110 |
msgid "From %s"
|
13111 |
msgstr ""
|
13112 |
|
13113 |
-
#: public/includes/frontend-ajax.php:
|
13114 |
msgid "Nothing found in %s"
|
13115 |
msgstr ""
|
13116 |
|
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-06-12 11:29:50+00:00\n"
|
6 |
"PO-Revision-Date: 2016-11-09 12:50+0330\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
2622 |
msgstr ""
|
2623 |
|
2624 |
#: includes/classes/class-auxin-welcome.php:1408
|
2625 |
+
#: public/includes/frontend-ajax.php:187 public/includes/frontend-ajax.php:250
|
2626 |
msgid "An Error Occurred!"
|
2627 |
msgstr ""
|
2628 |
|
13068 |
msgid "Authorization failed."
|
13069 |
msgstr "احراز هویت با خطا مواجه شد."
|
13070 |
|
13071 |
+
#: public/includes/frontend-ajax.php:109
|
13072 |
#, fuzzy
|
13073 |
msgid "Not a valid handler."
|
13074 |
msgstr "اصلا"
|
13075 |
|
13076 |
+
#: public/includes/frontend-ajax.php:115
|
13077 |
msgid "No data received."
|
13078 |
msgstr ""
|
13079 |
|
13080 |
+
#: public/includes/frontend-ajax.php:143 public/includes/frontend-ajax.php:212
|
13081 |
#, fuzzy
|
13082 |
msgid "Verification failed!"
|
13083 |
msgstr "احراز هویت با خطا مواجه شد!"
|
13084 |
|
13085 |
+
#: public/includes/frontend-ajax.php:165 public/includes/frontend-ajax.php:281
|
13086 |
msgid "Cart is empty"
|
13087 |
msgstr ""
|
13088 |
|
13089 |
+
#: public/includes/frontend-ajax.php:180
|
13090 |
msgid "Your cart is currently empty."
|
13091 |
msgstr ""
|
13092 |
|
13093 |
+
#: public/includes/frontend-ajax.php:181
|
13094 |
msgid "Item has been removed from your shopping cart."
|
13095 |
msgstr ""
|
13096 |
|
13097 |
+
#: public/includes/frontend-ajax.php:239
|
13098 |
msgid "View cart"
|
13099 |
msgstr ""
|
13100 |
|
13101 |
+
#: public/includes/frontend-ajax.php:239
|
13102 |
msgid "has been added to your cart."
|
13103 |
msgstr ""
|
13104 |
|
13105 |
+
#: public/includes/frontend-ajax.php:244
|
13106 |
msgid "Sorry, this product cannot be purchased."
|
13107 |
msgstr ""
|
13108 |
|
13109 |
+
#: public/includes/frontend-ajax.php:346
|
13110 |
msgid "From %s"
|
13111 |
msgstr ""
|
13112 |
|
13113 |
+
#: public/includes/frontend-ajax.php:347
|
13114 |
msgid "Nothing found in %s"
|
13115 |
msgstr ""
|
13116 |
|
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.
|
5 |
"Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
|
6 |
-
"POT-Creation-Date: 2022-06-
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -2470,7 +2470,7 @@ msgid "Demo has been successfully uninstalled."
|
|
2470 |
msgstr ""
|
2471 |
|
2472 |
#: includes/classes/class-auxin-welcome.php:1408
|
2473 |
-
#: public/includes/frontend-ajax.php:
|
2474 |
msgid "An Error Occurred!"
|
2475 |
msgstr ""
|
2476 |
|
@@ -12244,47 +12244,47 @@ msgstr ""
|
|
12244 |
msgid "Authorization failed."
|
12245 |
msgstr ""
|
12246 |
|
12247 |
-
#: public/includes/frontend-ajax.php:
|
12248 |
msgid "Not a valid handler."
|
12249 |
msgstr ""
|
12250 |
|
12251 |
-
#: public/includes/frontend-ajax.php:
|
12252 |
msgid "No data received."
|
12253 |
msgstr ""
|
12254 |
|
12255 |
-
#: public/includes/frontend-ajax.php:
|
12256 |
msgid "Verification failed!"
|
12257 |
msgstr ""
|
12258 |
|
12259 |
-
#: public/includes/frontend-ajax.php:
|
12260 |
msgid "Cart is empty"
|
12261 |
msgstr ""
|
12262 |
|
12263 |
-
#: public/includes/frontend-ajax.php:
|
12264 |
msgid "Your cart is currently empty."
|
12265 |
msgstr ""
|
12266 |
|
12267 |
-
#: public/includes/frontend-ajax.php:
|
12268 |
msgid "Item has been removed from your shopping cart."
|
12269 |
msgstr ""
|
12270 |
|
12271 |
-
#: public/includes/frontend-ajax.php:
|
12272 |
msgid "View cart"
|
12273 |
msgstr ""
|
12274 |
|
12275 |
-
#: public/includes/frontend-ajax.php:
|
12276 |
msgid "has been added to your cart."
|
12277 |
msgstr ""
|
12278 |
|
12279 |
-
#: public/includes/frontend-ajax.php:
|
12280 |
msgid "Sorry, this product cannot be purchased."
|
12281 |
msgstr ""
|
12282 |
|
12283 |
-
#: public/includes/frontend-ajax.php:
|
12284 |
msgid "From %s"
|
12285 |
msgstr ""
|
12286 |
|
12287 |
-
#: public/includes/frontend-ajax.php:
|
12288 |
msgid "Nothing found in %s"
|
12289 |
msgstr ""
|
12290 |
|
1 |
# Averta Copyright (c) {2022}
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
+
"Project-Id-Version: Phlox Core Elements 2.9.8\n"
|
5 |
"Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
|
6 |
+
"POT-Creation-Date: 2022-06-12 11:29:50+00:00\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
2470 |
msgstr ""
|
2471 |
|
2472 |
#: includes/classes/class-auxin-welcome.php:1408
|
2473 |
+
#: public/includes/frontend-ajax.php:187 public/includes/frontend-ajax.php:250
|
2474 |
msgid "An Error Occurred!"
|
2475 |
msgstr ""
|
2476 |
|
12244 |
msgid "Authorization failed."
|
12245 |
msgstr ""
|
12246 |
|
12247 |
+
#: public/includes/frontend-ajax.php:109
|
12248 |
msgid "Not a valid handler."
|
12249 |
msgstr ""
|
12250 |
|
12251 |
+
#: public/includes/frontend-ajax.php:115
|
12252 |
msgid "No data received."
|
12253 |
msgstr ""
|
12254 |
|
12255 |
+
#: public/includes/frontend-ajax.php:143 public/includes/frontend-ajax.php:212
|
12256 |
msgid "Verification failed!"
|
12257 |
msgstr ""
|
12258 |
|
12259 |
+
#: public/includes/frontend-ajax.php:165 public/includes/frontend-ajax.php:281
|
12260 |
msgid "Cart is empty"
|
12261 |
msgstr ""
|
12262 |
|
12263 |
+
#: public/includes/frontend-ajax.php:180
|
12264 |
msgid "Your cart is currently empty."
|
12265 |
msgstr ""
|
12266 |
|
12267 |
+
#: public/includes/frontend-ajax.php:181
|
12268 |
msgid "Item has been removed from your shopping cart."
|
12269 |
msgstr ""
|
12270 |
|
12271 |
+
#: public/includes/frontend-ajax.php:239
|
12272 |
msgid "View cart"
|
12273 |
msgstr ""
|
12274 |
|
12275 |
+
#: public/includes/frontend-ajax.php:239
|
12276 |
msgid "has been added to your cart."
|
12277 |
msgstr ""
|
12278 |
|
12279 |
+
#: public/includes/frontend-ajax.php:244
|
12280 |
msgid "Sorry, this product cannot be purchased."
|
12281 |
msgstr ""
|
12282 |
|
12283 |
+
#: public/includes/frontend-ajax.php:346
|
12284 |
msgid "From %s"
|
12285 |
msgstr ""
|
12286 |
|
12287 |
+
#: public/includes/frontend-ajax.php:347
|
12288 |
msgid "Nothing found in %s"
|
12289 |
msgstr ""
|
12290 |
|
public/assets/js/plugins.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Phlox Core Plugin - v2.9.
|
2 |
* All required plugins
|
3 |
* http://phlox.pro/
|
4 |
*/
|
1 |
+
/*! Phlox Core Plugin - v2.9.8 (2022-06)
|
2 |
* All required plugins
|
3 |
* http://phlox.pro/
|
4 |
*/
|
public/assets/js/scripts.js
CHANGED
@@ -213,7 +213,8 @@
|
|
213 |
data: {
|
214 |
action: 'aux_the_recent_products',
|
215 |
data: widgetData,
|
216 |
-
paged: paged
|
|
|
217 |
}
|
218 |
}).done(function (response) {
|
219 |
if (response) {
|
213 |
data: {
|
214 |
action: 'aux_the_recent_products',
|
215 |
data: widgetData,
|
216 |
+
paged: paged,
|
217 |
+
auxinNonce: auxin.nonce
|
218 |
}
|
219 |
}).done(function (response) {
|
220 |
if (response) {
|
public/includes/frontend-ajax.php
CHANGED
@@ -25,6 +25,13 @@ function auxels_ajax_handler_element_load_more(){
|
|
25 |
}
|
26 |
|
27 |
$ajax_args = $_POST['args'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
$element_markup = '';
|
29 |
|
30 |
// include the required resources
|
@@ -129,8 +136,8 @@ function auxels_remove_product_from_cart() {
|
|
129 |
try {
|
130 |
|
131 |
$nonce = $_POST['verify_nonce'];
|
132 |
-
$id = $_POST['product_id'];
|
133 |
-
$cart_item_key = $_POST['cart_item_key'];
|
134 |
|
135 |
if( ! isset( $_POST['product_id'] ) || ! wp_verify_nonce( $nonce, 'remove_cart-' . $id ) ){
|
136 |
wp_send_json_error( sprintf( '<div class="aux-woocommerce-ajax-notification woocommerce-error">%s</div>', __('Verification failed!', 'auxin-elements') ) );
|
@@ -262,6 +269,10 @@ function auxels_get_refreshed_fragments() {
|
|
262 |
'cart_url' => '#',
|
263 |
'dropdown_skin' => '',
|
264 |
);
|
|
|
|
|
|
|
|
|
265 |
|
266 |
$count = (int) $woocommerce->cart->cart_contents_count;
|
267 |
if ( $count > 0 ) {
|
@@ -294,7 +305,14 @@ function auxels_ajax_search() {
|
|
294 |
$available_search_post_types = auxin_get_available_post_types_for_search();
|
295 |
|
296 |
if ( ! empty( $_GET['post_types'] ) ) {
|
297 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
} else {
|
299 |
$post_types = array_keys( $available_search_post_types );
|
300 |
}
|
25 |
}
|
26 |
|
27 |
$ajax_args = $_POST['args'];
|
28 |
+
if ( is_array( $ajax_args ) && !empty( $ajax_args ) ) {
|
29 |
+
foreach ( $ajax_args as $key => $value ) {
|
30 |
+
$ajax_args[ $key ] = sanitize_text_field( $value );
|
31 |
+
}
|
32 |
+
} else {
|
33 |
+
$ajax_args = sanitize_text_field( $ajax_args );
|
34 |
+
}
|
35 |
$element_markup = '';
|
36 |
|
37 |
// include the required resources
|
136 |
try {
|
137 |
|
138 |
$nonce = $_POST['verify_nonce'];
|
139 |
+
$id = absint( $_POST['product_id'] );
|
140 |
+
$cart_item_key = sanitize_text_field( $_POST['cart_item_key'] );
|
141 |
|
142 |
if( ! isset( $_POST['product_id'] ) || ! wp_verify_nonce( $nonce, 'remove_cart-' . $id ) ){
|
143 |
wp_send_json_error( sprintf( '<div class="aux-woocommerce-ajax-notification woocommerce-error">%s</div>', __('Verification failed!', 'auxin-elements') ) );
|
269 |
'cart_url' => '#',
|
270 |
'dropdown_skin' => '',
|
271 |
);
|
272 |
+
|
273 |
+
foreach ( $args as $key => $value ) {
|
274 |
+
$args[ $key ] = sanitize_text_field( $value );
|
275 |
+
}
|
276 |
|
277 |
$count = (int) $woocommerce->cart->cart_contents_count;
|
278 |
if ( $count > 0 ) {
|
305 |
$available_search_post_types = auxin_get_available_post_types_for_search();
|
306 |
|
307 |
if ( ! empty( $_GET['post_types'] ) ) {
|
308 |
+
if ( is_array( $_GET['post_types'] ) ) {
|
309 |
+
$post_types = [];
|
310 |
+
foreach( $_GET['post_types'] as $key => $value ) {
|
311 |
+
$post_types[ $key ] = sanitize_text_field( $value );
|
312 |
+
}
|
313 |
+
} else {
|
314 |
+
$post_types = sanitize_text_field( $_GET['post_types'] );
|
315 |
+
}
|
316 |
} else {
|
317 |
$post_types = array_keys( $available_search_post_types );
|
318 |
}
|