Version Description
Download this release
Release Info
Developer | averta |
Plugin | Shortcodes and extra features for Phlox theme |
Version | 2.10.8 |
Comparing to | |
See all releases |
Code changes from version 2.10.7 to 2.10.8
- README.txt +3 -7
- admin/assets/js/plugins.js +1 -1
- admin/includes/admin-ajax.php +2 -1
- admin/includes/admin-hooks.php +2 -2
- admin/includes/classes/class-auxin-upgrader-http-api.php +0 -126
- admin/includes/classes/class-auxin-upgrader-prepare.php +0 -221
- auxin-elements.php +2 -2
- includes/classes/class-auxels-search-post-type.php +11 -9
- includes/define.php +1 -1
- includes/general-hooks.php +5 -2
- languages/auxin-elements-fa_IR.po +5 -23
- languages/auxin-elements.pot +6 -24
- public/assets/js/plugins.js +1 -1
README.txt
CHANGED
@@ -6,8 +6,8 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
6 |
Tags: phlox, gallery, elementor, auxin, averta, auxin-elements, framework, widget, fullwidth, masonry, timeline, parallax
|
7 |
Requires PHP: 5.4
|
8 |
Requires at least: 4.6
|
9 |
-
Tested up to: 6.
|
10 |
-
Stable tag: 2.10.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
@@ -154,7 +154,7 @@ Bugs can be reported in our [support forums](https://docs.phlox.pro).
|
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
-
= Version 2.10.
|
158 |
- [Improvement]: Improvements applied to customizer options importer.
|
159 |
|
160 |
= Version 2.10.5 / (11.10.2022) =
|
@@ -465,7 +465,3 @@ Bugs can be reported in our [support forums](https://docs.phlox.pro).
|
|
465 |
|
466 |
|
467 |
== Upgrade Notice ==
|
468 |
-
|
469 |
-
= 2.9.5 =
|
470 |
-
- [New]: Copy animation button added to Elementor context menu to copy and paste animations across elements.
|
471 |
-
- [Fix]: Deprecated notices of new version of Elementor fixed.
|
6 |
Tags: phlox, gallery, elementor, auxin, averta, auxin-elements, framework, widget, fullwidth, masonry, timeline, parallax
|
7 |
Requires PHP: 5.4
|
8 |
Requires at least: 4.6
|
9 |
+
Tested up to: 6.1.1
|
10 |
+
Stable tag: 2.10.8
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl.html
|
13 |
|
154 |
|
155 |
== Changelog ==
|
156 |
|
157 |
+
= Version 2.10.8 / (01.12.2022) =
|
158 |
- [Improvement]: Improvements applied to customizer options importer.
|
159 |
|
160 |
= Version 2.10.5 / (11.10.2022) =
|
465 |
|
466 |
|
467 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
admin/assets/js/plugins.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Phlox Core Plugin - v2.10.
|
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.10.8 (2022-12)
|
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
@@ -407,7 +407,8 @@ function auxin_customizer_import(){
|
|
407 |
}
|
408 |
$json_content = $wp_filesystem->get_contents( $_FILES['file']['tmp_name'] );
|
409 |
$array_content = json_decode( base64_decode( $json_content ), true );
|
410 |
-
|
|
|
411 |
// Check array empty
|
412 |
if ( empty( $array_content ) || ! is_array( $array_content ) ) {
|
413 |
wp_send_json_error( __( 'Invalid or Empty Data.', 'auxin-elements' ) );
|
407 |
}
|
408 |
$json_content = $wp_filesystem->get_contents( $_FILES['file']['tmp_name'] );
|
409 |
$array_content = json_decode( base64_decode( $json_content ), true );
|
410 |
+
$array_content = auxin_sanitize_input( $array_content );
|
411 |
+
|
412 |
// Check array empty
|
413 |
if ( empty( $array_content ) || ! is_array( $array_content ) ) {
|
414 |
wp_send_json_error( __( 'Invalid or Empty Data.', 'auxin-elements' ) );
|
admin/includes/admin-hooks.php
CHANGED
@@ -828,8 +828,8 @@ function auxin_check_license_terms(){
|
|
828 |
|
829 |
echo '<pre style="border:1px solid #ddd;padding:10px 20px;background:#fff;">';
|
830 |
echo 'Is Active: ';
|
831 |
-
print_r( $license2 ); echo '<br/><br/>info: <br/>';
|
832 |
-
print_r( $license3 );
|
833 |
echo '</pre>';
|
834 |
}
|
835 |
}
|
828 |
|
829 |
echo '<pre style="border:1px solid #ddd;padding:10px 20px;background:#fff;">';
|
830 |
echo 'Is Active: ';
|
831 |
+
print_r( esc_html( $license2 ) ); echo '<br/><br/>info: <br/>';
|
832 |
+
print_r( esc_html( $license3 ) );
|
833 |
echo '</pre>';
|
834 |
}
|
835 |
}
|
admin/includes/classes/class-auxin-upgrader-http-api.php
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Auxin_Upgrader_Http_Api {
|
4 |
-
|
5 |
-
protected $api = 'http://api.averta.net/envato/items/';
|
6 |
-
|
7 |
-
public function __construct(){}
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Get single setting value
|
11 |
-
*
|
12 |
-
* @param string $option
|
13 |
-
* @param string $section
|
14 |
-
* @param string $default
|
15 |
-
* @return string
|
16 |
-
*/
|
17 |
-
private function get_setting( $option, $section, $default = '' ) {
|
18 |
-
$options = get_site_option( $section );
|
19 |
-
|
20 |
-
if ( isset( $options[$option] ) ) {
|
21 |
-
return $options[$option];
|
22 |
-
}
|
23 |
-
return $default;
|
24 |
-
}
|
25 |
-
|
26 |
-
/**
|
27 |
-
* Make a wordpress remote post request on averta API
|
28 |
-
*
|
29 |
-
* @param array $args
|
30 |
-
* @return void
|
31 |
-
*/
|
32 |
-
private function remote_post( $args ){
|
33 |
-
global $wp_version;
|
34 |
-
|
35 |
-
$request_string = array(
|
36 |
-
'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url'),
|
37 |
-
'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30: 3),
|
38 |
-
'body' => $args
|
39 |
-
);
|
40 |
-
|
41 |
-
// Start checking for an update
|
42 |
-
$request = wp_remote_post( $this->api, $request_string );
|
43 |
-
|
44 |
-
if ( is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) !== 200 ) {
|
45 |
-
return false;
|
46 |
-
}
|
47 |
-
|
48 |
-
return $request;
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Get our non official items list
|
53 |
-
*
|
54 |
-
* @return array
|
55 |
-
*/
|
56 |
-
private function get_non_official_items(){
|
57 |
-
return apply_filters( 'auxin_set_non_official_items', array(
|
58 |
-
'3909293' => 'phlox-pro',
|
59 |
-
'3909293-03' => 'auxin-shop',
|
60 |
-
'3909293-04' => 'auxin-the-news',
|
61 |
-
'3909293-05' => 'auxin-pro-tools',
|
62 |
-
'3909293-06' => 'masterslider-wp',
|
63 |
-
'3909293-07' => 'js_composer',
|
64 |
-
'3909293-08' => 'bdthemes-element-pack',
|
65 |
-
'3909293-09' => 'Ultimate_VC_Addons',
|
66 |
-
'3909293-10' => 'waspthemes-yellow-pencil',
|
67 |
-
'3909293-11' => 'LayerSlider',
|
68 |
-
'3909293-12' => 'revslider',
|
69 |
-
'3909293-13' => 'go_pricing',
|
70 |
-
'3909293-14' => 'convertplug'
|
71 |
-
) );
|
72 |
-
}
|
73 |
-
|
74 |
-
/**
|
75 |
-
* Get download link from averta API
|
76 |
-
*
|
77 |
-
* @return void
|
78 |
-
*/
|
79 |
-
public function get_download_link( $key ){
|
80 |
-
|
81 |
-
$token = $this->get_setting( 'token' , AUXELS_PURCHASE_KEY );
|
82 |
-
$token = empty( $token ) ? $this->get_setting( 'token' , THEME_ID . '_license' ) : $token;
|
83 |
-
|
84 |
-
if( empty( $token ) ) {
|
85 |
-
return new WP_Error( 'no_credentials',
|
86 |
-
__( 'Envato username, API key and your item purchase code are required for downloading updates from Envato marketplace.', 'auxin-elements' )
|
87 |
-
);
|
88 |
-
}
|
89 |
-
|
90 |
-
$items = $this->get_non_official_items();
|
91 |
-
|
92 |
-
if( ! in_array( $key, $items ) ) {
|
93 |
-
return new WP_Error( 'no_credentials',
|
94 |
-
'"' . $key . '" ' . __( 'Is not exist in our non official list. ', 'auxin-elements' )
|
95 |
-
);
|
96 |
-
}
|
97 |
-
$item_ID = array_search( $key, $items );
|
98 |
-
|
99 |
-
$request = $this->remote_post( array(
|
100 |
-
'cat' => 'download-purchase',
|
101 |
-
'action' => 'token',
|
102 |
-
'item-id' => $item_ID,
|
103 |
-
'token' => $token,
|
104 |
-
'url' => get_site_url()
|
105 |
-
) );
|
106 |
-
|
107 |
-
if( $request === false ){
|
108 |
-
return new WP_Error( 'process_faild',
|
109 |
-
__( 'Error in getting download link.', 'auxin-elements' )
|
110 |
-
);
|
111 |
-
}
|
112 |
-
|
113 |
-
$response = wp_remote_retrieve_body( $request );
|
114 |
-
$response = json_decode( $response, true );
|
115 |
-
|
116 |
-
if( ! isset( $response['download_url'] ) || empty( $response['download_url'] ) ) {
|
117 |
-
// Envato API error ..
|
118 |
-
return new WP_Error( 'no_credentials',
|
119 |
-
__( 'Error on connecting to download API...', 'auxin-elements' )
|
120 |
-
);
|
121 |
-
}
|
122 |
-
|
123 |
-
return $response['download_url'];
|
124 |
-
}
|
125 |
-
|
126 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/includes/classes/class-auxin-upgrader-prepare.php
CHANGED
@@ -13,9 +13,6 @@ class Auxin_Upgrader_Prepare {
|
|
13 |
'themes' => 'update_themes'
|
14 |
);
|
15 |
|
16 |
-
// todo: remove this line after a while
|
17 |
-
protected $api = 'http://api.averta.net/envato/items/';
|
18 |
-
|
19 |
public function __construct(){
|
20 |
|
21 |
add_action( 'load-plugins.php', array( $this, 'update_plugins' ) );
|
@@ -29,9 +26,6 @@ class Auxin_Upgrader_Prepare {
|
|
29 |
add_action( 'wp_update_themes', array( $this, 'update_themes' ) );
|
30 |
|
31 |
add_action( 'admin_init', array( $this, 'maybe_update_list' ) );
|
32 |
-
|
33 |
-
// todo: remove this hooks after a while
|
34 |
-
add_action( 'plugins_loaded', [ $this, 'updater' ] );
|
35 |
}
|
36 |
|
37 |
/**
|
@@ -377,219 +371,4 @@ class Auxin_Upgrader_Prepare {
|
|
377 |
return self::$instance;
|
378 |
}
|
379 |
|
380 |
-
// todo: remove code from this line to the end of file after a while - remove class-auxin-upgrader-http-api.php file too
|
381 |
-
/**
|
382 |
-
* auto updater hooks
|
383 |
-
*
|
384 |
-
* @return void
|
385 |
-
*/
|
386 |
-
public function updater() {
|
387 |
-
if ( class_exists( 'AUXPRO_Upgrader_Prepare' ) ) {
|
388 |
-
return;
|
389 |
-
}
|
390 |
-
|
391 |
-
add_filter( 'site_transient_update_plugins', array( $this, 'disable_update_plugins' ) );
|
392 |
-
add_filter( 'site_transient_update_themes', array( $this, 'disable_update_themes' ) );
|
393 |
-
|
394 |
-
add_action( 'admin_init', [ $this, 'init_api_request_instance' ] );
|
395 |
-
add_filter ( 'pre_set_site_transient_update_themes', [ $this, 'pre_set_transient_update_theme' ] );
|
396 |
-
add_filter( 'auxin_before_setting_update_themes_transient', [ $this, 'update_themes_transient' ], 10, 2 );
|
397 |
-
add_filter( 'auxin_before_setting_update_plugins_transient', [ $this, 'update_plugins_transient' ], 10, 2 );
|
398 |
-
|
399 |
-
add_filter( 'auxin_modify_package_before_upgrade', [ $this, 'modify_package' ] );
|
400 |
-
}
|
401 |
-
|
402 |
-
/**
|
403 |
-
* Remove auxin plugins from wp auto update
|
404 |
-
*
|
405 |
-
* @return object
|
406 |
-
*/
|
407 |
-
public function disable_update_plugins( $transient ) {
|
408 |
-
// Pass plugins list with their slug e.g. array( 'auxin-elements' )
|
409 |
-
$plugins = apply_filters( 'auxin_disable_plugins_updates', array() );
|
410 |
-
if ( isset($transient) && is_object($transient) && ! empty( $plugins ) ) {
|
411 |
-
foreach ( $plugins as $key => $plugin ) {
|
412 |
-
$plugin_path = $plugin . '/' . $plugin . '.php';
|
413 |
-
if ( isset( $transient->response[$plugin_path] ) ) {
|
414 |
-
unset( $transient->response[$plugin_path] );
|
415 |
-
}
|
416 |
-
}
|
417 |
-
}
|
418 |
-
return $transient;
|
419 |
-
}
|
420 |
-
|
421 |
-
/**
|
422 |
-
* Remove auxin themes from wp auto update
|
423 |
-
*
|
424 |
-
* @return object
|
425 |
-
*/
|
426 |
-
public function disable_update_themes( $transient ) {
|
427 |
-
// Pass themes list with their slug e.g. array( 'phlox' )
|
428 |
-
$themes = apply_filters( 'auxin_disable_themes_updates', array() );
|
429 |
-
if ( isset($transient) && is_object($transient) && ! empty( $themes ) ) {
|
430 |
-
foreach ( $themes as $theme ) {
|
431 |
-
if ( isset( $transient->response[ $theme ] ) ) {
|
432 |
-
unset( $transient->response[ $theme ] );
|
433 |
-
}
|
434 |
-
}
|
435 |
-
}
|
436 |
-
return $transient;
|
437 |
-
}
|
438 |
-
|
439 |
-
/**
|
440 |
-
* Initialize api request upgrader
|
441 |
-
*
|
442 |
-
* @return void
|
443 |
-
*/
|
444 |
-
public function init_api_request_instance() {
|
445 |
-
$this->api_request = new Auxin_Upgrader_Http_Api();
|
446 |
-
}
|
447 |
-
|
448 |
-
/**
|
449 |
-
* General remote get function
|
450 |
-
*
|
451 |
-
* @param array $request_args
|
452 |
-
* @return void
|
453 |
-
*/
|
454 |
-
public function remote_get( $request_args ){
|
455 |
-
$url = add_query_arg(
|
456 |
-
$request_args,
|
457 |
-
$this->api
|
458 |
-
);
|
459 |
-
|
460 |
-
$request = wp_remote_get( $url );
|
461 |
-
|
462 |
-
if ( is_wp_error( $request ) ) {
|
463 |
-
return false;
|
464 |
-
}
|
465 |
-
|
466 |
-
return wp_remote_retrieve_body( $request );
|
467 |
-
}
|
468 |
-
|
469 |
-
/**
|
470 |
-
* Check theme versions against the latest versions hosted on Averta API
|
471 |
-
*
|
472 |
-
* @return object $new_option
|
473 |
-
*/
|
474 |
-
public function update_themes_transient( $new_option, $themes ) {
|
475 |
-
foreach ( $themes as $slug => $data ) {
|
476 |
-
|
477 |
-
if( !$data->isOfficial ) {
|
478 |
-
// Get version number of our api
|
479 |
-
$new_version = $this->remote_get( array(
|
480 |
-
'cat' => 'version-check',
|
481 |
-
'action' => 'final',
|
482 |
-
'item-name' => sanitize_key( $slug )
|
483 |
-
) );
|
484 |
-
|
485 |
-
if( ! empty( $new_version ) && version_compare( $new_version, $data->get( 'Version' ), '>' ) ){
|
486 |
-
$new_option->response[ $data->get_stylesheet() ] = array(
|
487 |
-
'slug' => esc_sql($slug),
|
488 |
-
'version' => esc_sql($new_version),
|
489 |
-
'package' => 'AUXIN_GET_DOWNLOAD_URL'
|
490 |
-
);
|
491 |
-
}
|
492 |
-
}
|
493 |
-
|
494 |
-
}
|
495 |
-
|
496 |
-
return $new_option;
|
497 |
-
}
|
498 |
-
|
499 |
-
/**
|
500 |
-
* Check plugin versions against the latest versions hosted on Averta API
|
501 |
-
*
|
502 |
-
* @return object $new_option
|
503 |
-
*/
|
504 |
-
public function update_plugins_transient( $new_option, $plugins ) {
|
505 |
-
|
506 |
-
foreach ( $plugins as $path => $data ) {
|
507 |
-
$slug = dirname( $path );
|
508 |
-
|
509 |
-
if( !$data['isOfficial'] ) {
|
510 |
-
|
511 |
-
// Get version number of our api
|
512 |
-
$new_version = $this->remote_get( array(
|
513 |
-
'cat' => 'version-check',
|
514 |
-
'action' => 'final',
|
515 |
-
'item-name' => sanitize_key( $slug )
|
516 |
-
) );
|
517 |
-
|
518 |
-
if( ! empty( $new_version ) && version_compare( $new_version, $data['Version'], '>' ) ){
|
519 |
-
$new_option->response[ $path ] = array(
|
520 |
-
'slug' => esc_sql($slug),
|
521 |
-
'version' => esc_sql($new_version),
|
522 |
-
'package' => 'AUXIN_GET_DOWNLOAD_URL'
|
523 |
-
);
|
524 |
-
}
|
525 |
-
}
|
526 |
-
}
|
527 |
-
|
528 |
-
return $new_option;
|
529 |
-
}
|
530 |
-
|
531 |
-
/**
|
532 |
-
* Upgrade theme through wordpress built in upgrader system
|
533 |
-
*
|
534 |
-
* @param object $transient
|
535 |
-
* @return object $transient
|
536 |
-
*/
|
537 |
-
public function pre_set_transient_update_theme( $transient ) {
|
538 |
-
|
539 |
-
if( empty( $transient->checked ) ) {
|
540 |
-
return $transient;
|
541 |
-
}
|
542 |
-
|
543 |
-
$get_themes = $this->get_themes();
|
544 |
-
$api_request = new Auxin_Upgrader_Http_Api;
|
545 |
-
foreach ( $get_themes as $slug => $data ) {
|
546 |
-
|
547 |
-
if( !$data->isOfficial ) {
|
548 |
-
|
549 |
-
// Get version number of our api
|
550 |
-
$new_version = $this->remote_get( array(
|
551 |
-
'cat' => 'version-check',
|
552 |
-
'action' => 'final',
|
553 |
-
'item-name' => sanitize_key( $slug )
|
554 |
-
) );
|
555 |
-
|
556 |
-
if( ! empty( $new_version ) && version_compare( $new_version, $data->get( 'Version' ), '>' ) ){
|
557 |
-
$downlaod_link = $api_request->get_download_link( $slug );
|
558 |
-
if( is_wp_error( $downlaod_link ) ){
|
559 |
-
continue;
|
560 |
-
}
|
561 |
-
$transient->response[ $data->get_stylesheet() ] = array(
|
562 |
-
'slug' => esc_sql($slug),
|
563 |
-
'version' => $data->get( 'Version' ),
|
564 |
-
'new_version' => esc_sql($new_version),
|
565 |
-
'package' => $downlaod_link
|
566 |
-
);
|
567 |
-
}
|
568 |
-
}
|
569 |
-
|
570 |
-
}
|
571 |
-
|
572 |
-
return $transient;
|
573 |
-
}
|
574 |
-
|
575 |
-
|
576 |
-
/**
|
577 |
-
* Modify package url of premium plugins
|
578 |
-
*
|
579 |
-
* @param array $r
|
580 |
-
* @return array $r
|
581 |
-
*/
|
582 |
-
public function modify_package( $r ) {
|
583 |
-
|
584 |
-
if( ! wp_http_validate_url( $r['package'] ) && $r['package'] == 'AUXIN_GET_DOWNLOAD_URL' ){
|
585 |
-
$r['slug'] = ( $r['slug'] == 'masterslider' ) ? 'masterslider-wp' : $r['slug'];
|
586 |
-
$downlaod_link = $this->api_request->get_download_link( $r['slug'] );
|
587 |
-
if( ! is_wp_error( $downlaod_link ) ){
|
588 |
-
$r['package'] = $downlaod_link;
|
589 |
-
}
|
590 |
-
}
|
591 |
-
|
592 |
-
return $r;
|
593 |
-
}
|
594 |
-
|
595 |
}
|
13 |
'themes' => 'update_themes'
|
14 |
);
|
15 |
|
|
|
|
|
|
|
16 |
public function __construct(){
|
17 |
|
18 |
add_action( 'load-plugins.php', array( $this, 'update_plugins' ) );
|
26 |
add_action( 'wp_update_themes', array( $this, 'update_themes' ) );
|
27 |
|
28 |
add_action( 'admin_init', array( $this, 'maybe_update_list' ) );
|
|
|
|
|
|
|
29 |
}
|
30 |
|
31 |
/**
|
371 |
return self::$instance;
|
372 |
}
|
373 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
}
|
auxin-elements.php
CHANGED
@@ -12,14 +12,14 @@
|
|
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.10.
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* Text Domain: auxin-elements
|
19 |
* License: GPL2
|
20 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
21 |
* Domain Path: /languages
|
22 |
-
* Tested up to: 6.
|
23 |
*/
|
24 |
|
25 |
// If this file is called directly, abort.
|
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.10.8
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* Text Domain: auxin-elements
|
19 |
* License: GPL2
|
20 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
21 |
* Domain Path: /languages
|
22 |
+
* Tested up to: 6.1.1
|
23 |
*/
|
24 |
|
25 |
// If this file is called directly, abort.
|
includes/classes/class-auxels-search-post-type.php
CHANGED
@@ -86,15 +86,17 @@ class Auxels_Search_Post_Type {
|
|
86 |
|
87 |
// Get category slug for each post type
|
88 |
|
89 |
-
$
|
90 |
-
|
91 |
-
$
|
92 |
-
array(
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
|
|
98 |
}
|
99 |
$this->set_query_args($query_args);
|
100 |
}
|
86 |
|
87 |
// Get category slug for each post type
|
88 |
|
89 |
+
if ( !empty( $this->cat ) && function_exists( 'auxin_get_categories_slug_by_post_type' ) ) {
|
90 |
+
$category_slug = auxin_get_categories_slug_by_post_type( $this->post_type );
|
91 |
+
if ( !empty( $category_slug ) ) {
|
92 |
+
$query_args['tax_query'] = array(
|
93 |
+
array(
|
94 |
+
'taxonomy' => $category_slug,
|
95 |
+
'field' => 'slug',
|
96 |
+
'terms' => array( $this->cat )
|
97 |
+
)
|
98 |
+
);
|
99 |
+
}
|
100 |
}
|
101 |
$this->set_query_args($query_args);
|
102 |
}
|
includes/define.php
CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
|
|
12 |
}
|
13 |
|
14 |
|
15 |
-
define( 'AUXELS_VERSION' , '2.10.
|
16 |
|
17 |
define( 'AUXELS_SLUG' , 'auxin-elements' );
|
18 |
|
12 |
}
|
13 |
|
14 |
|
15 |
+
define( 'AUXELS_VERSION' , '2.10.8' );
|
16 |
|
17 |
define( 'AUXELS_SLUG' , 'auxin-elements' );
|
18 |
|
includes/general-hooks.php
CHANGED
@@ -2841,14 +2841,17 @@ function auxin_custom_maintenance_page() {
|
|
2841 |
|
2842 |
if( auxin_is_maintenance() && !current_user_can('manage_options') ){
|
2843 |
|
|
|
|
|
2844 |
$page = auxin_get_option( 'auxin_maintenance_page', 'default');
|
2845 |
$url = get_permalink( $page );
|
2846 |
$url_protocols = array( 'http://', 'https://' );
|
2847 |
$url_str = str_replace( $url_protocols, '', $url );
|
2848 |
-
$current_url =
|
|
|
2849 |
|
2850 |
/* Tell search engines that the site is temporarily unavailable */
|
2851 |
-
$protocol =
|
2852 |
|
2853 |
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) {
|
2854 |
$protocol = 'HTTP/1.0';
|
2841 |
|
2842 |
if( auxin_is_maintenance() && !current_user_can('manage_options') ){
|
2843 |
|
2844 |
+
global $wp;
|
2845 |
+
|
2846 |
$page = auxin_get_option( 'auxin_maintenance_page', 'default');
|
2847 |
$url = get_permalink( $page );
|
2848 |
$url_protocols = array( 'http://', 'https://' );
|
2849 |
$url_str = str_replace( $url_protocols, '', $url );
|
2850 |
+
$current_url = trailingslashit( add_query_arg( [], home_url( $wp->request ) ) );
|
2851 |
+
$current_url = str_replace( $url_protocols, '', $current_url );
|
2852 |
|
2853 |
/* Tell search engines that the site is temporarily unavailable */
|
2854 |
+
$protocol = wp_get_server_protocol();
|
2855 |
|
2856 |
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) {
|
2857 |
$protocol = 'HTTP/1.0';
|
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-
|
6 |
"PO-Revision-Date: 2016-11-09 12:50+0330\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
@@ -111,11 +111,11 @@ msgstr ""
|
|
111 |
msgid "Please upload a valid file."
|
112 |
msgstr "لطفا فایل ویدیو را بارگذاری کنید."
|
113 |
|
114 |
-
#: admin/includes/admin-ajax.php:
|
115 |
msgid "Invalid or Empty Data."
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: admin/includes/admin-ajax.php:
|
119 |
msgid "Successfully Imported."
|
120 |
msgstr ""
|
121 |
|
@@ -408,24 +408,6 @@ msgstr ""
|
|
408 |
msgid "Update failed."
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:86
|
412 |
-
msgid ""
|
413 |
-
"Envato username, API key and your item purchase code are required for "
|
414 |
-
"downloading updates from Envato marketplace."
|
415 |
-
msgstr ""
|
416 |
-
|
417 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:94
|
418 |
-
msgid "Is not exist in our non official list. "
|
419 |
-
msgstr ""
|
420 |
-
|
421 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:109
|
422 |
-
msgid "Error in getting download link."
|
423 |
-
msgstr ""
|
424 |
-
|
425 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:119
|
426 |
-
msgid "Error on connecting to download API..."
|
427 |
-
msgstr ""
|
428 |
-
|
429 |
#: admin/includes/metaboxes/metabox-fields-general-advanced.php:21
|
430 |
#, fuzzy
|
431 |
msgid "Advanced Setting"
|
@@ -12742,12 +12724,12 @@ msgstr "تنظیمات نوشته صوتی"
|
|
12742 |
msgid "Page %s"
|
12743 |
msgstr "برگه ها"
|
12744 |
|
12745 |
-
#: includes/general-hooks.php:
|
12746 |
#, fuzzy
|
12747 |
msgid "current "
|
12748 |
msgstr "صفحه جاری"
|
12749 |
|
12750 |
-
#: includes/general-hooks.php:
|
12751 |
msgid "Edit Header & Footer"
|
12752 |
msgstr ""
|
12753 |
|
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-12-01 08:17:51+00:00\n"
|
6 |
"PO-Revision-Date: 2016-11-09 12:50+0330\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
111 |
msgid "Please upload a valid file."
|
112 |
msgstr "لطفا فایل ویدیو را بارگذاری کنید."
|
113 |
|
114 |
+
#: admin/includes/admin-ajax.php:414
|
115 |
msgid "Invalid or Empty Data."
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: admin/includes/admin-ajax.php:451
|
119 |
msgid "Successfully Imported."
|
120 |
msgstr ""
|
121 |
|
408 |
msgid "Update failed."
|
409 |
msgstr ""
|
410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
#: admin/includes/metaboxes/metabox-fields-general-advanced.php:21
|
412 |
#, fuzzy
|
413 |
msgid "Advanced Setting"
|
12724 |
msgid "Page %s"
|
12725 |
msgstr "برگه ها"
|
12726 |
|
12727 |
+
#: includes/general-hooks.php:3187
|
12728 |
#, fuzzy
|
12729 |
msgid "current "
|
12730 |
msgstr "صفحه جاری"
|
12731 |
|
12732 |
+
#: includes/general-hooks.php:3217
|
12733 |
msgid "Edit Header & Footer"
|
12734 |
msgstr ""
|
12735 |
|
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.10.
|
5 |
"Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
|
6 |
-
"POT-Creation-Date: 2022-
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -112,11 +112,11 @@ msgstr ""
|
|
112 |
msgid "Please upload a valid file."
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: admin/includes/admin-ajax.php:
|
116 |
msgid "Invalid or Empty Data."
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: admin/includes/admin-ajax.php:
|
120 |
msgid "Successfully Imported."
|
121 |
msgstr ""
|
122 |
|
@@ -389,24 +389,6 @@ msgstr ""
|
|
389 |
msgid "Update failed."
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:86
|
393 |
-
msgid ""
|
394 |
-
"Envato username, API key and your item purchase code are required for "
|
395 |
-
"downloading updates from Envato marketplace."
|
396 |
-
msgstr ""
|
397 |
-
|
398 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:94
|
399 |
-
msgid "Is not exist in our non official list. "
|
400 |
-
msgstr ""
|
401 |
-
|
402 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:109
|
403 |
-
msgid "Error in getting download link."
|
404 |
-
msgstr ""
|
405 |
-
|
406 |
-
#: admin/includes/classes/class-auxin-upgrader-http-api.php:119
|
407 |
-
msgid "Error on connecting to download API..."
|
408 |
-
msgstr ""
|
409 |
-
|
410 |
#: admin/includes/metaboxes/metabox-fields-general-advanced.php:21
|
411 |
msgid "Advanced Setting"
|
412 |
msgstr ""
|
@@ -11924,11 +11906,11 @@ msgstr ""
|
|
11924 |
msgid "Page %s"
|
11925 |
msgstr ""
|
11926 |
|
11927 |
-
#: includes/general-hooks.php:
|
11928 |
msgid "current "
|
11929 |
msgstr ""
|
11930 |
|
11931 |
-
#: includes/general-hooks.php:
|
11932 |
msgid "Edit Header & Footer"
|
11933 |
msgstr ""
|
11934 |
|
1 |
# Averta Copyright (c) {2022}
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
+
"Project-Id-Version: Phlox Core Elements 2.10.8\n"
|
5 |
"Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
|
6 |
+
"POT-Creation-Date: 2022-12-01 08:17:51+00:00\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
112 |
msgid "Please upload a valid file."
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: admin/includes/admin-ajax.php:414
|
116 |
msgid "Invalid or Empty Data."
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: admin/includes/admin-ajax.php:451
|
120 |
msgid "Successfully Imported."
|
121 |
msgstr ""
|
122 |
|
389 |
msgid "Update failed."
|
390 |
msgstr ""
|
391 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
#: admin/includes/metaboxes/metabox-fields-general-advanced.php:21
|
393 |
msgid "Advanced Setting"
|
394 |
msgstr ""
|
11906 |
msgid "Page %s"
|
11907 |
msgstr ""
|
11908 |
|
11909 |
+
#: includes/general-hooks.php:3187
|
11910 |
msgid "current "
|
11911 |
msgstr ""
|
11912 |
|
11913 |
+
#: includes/general-hooks.php:3217
|
11914 |
msgid "Edit Header & Footer"
|
11915 |
msgstr ""
|
11916 |
|
public/assets/js/plugins.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! Phlox Core Plugin - v2.10.
|
2 |
* All required plugins
|
3 |
* http://phlox.pro/
|
4 |
*/
|
1 |
+
/*! Phlox Core Plugin - v2.10.8 (2022-12)
|
2 |
* All required plugins
|
3 |
* http://phlox.pro/
|
4 |
*/
|