Version Description
Download this release
Release Info
Developer | averta |
Plugin | Shortcodes and extra features for Phlox theme |
Version | 2.9.6 |
Comparing to | |
See all releases |
Code changes from version 2.9.5 to 2.9.6
- README.txt +1 -1
- admin/assets/js/plugins.js +1 -1
- admin/assets/json/footer.json +1 -0
- admin/assets/json/header.json +1 -0
- admin/includes/admin-hooks.php +2 -2
- admin/includes/admin-the-functions.php +67 -53
- auxin-elements.php +1 -1
- includes/classes/class-auxin-demo-importer.php +20 -12
- includes/define.php +1 -1
- includes/elementor/widgets/theme-elements/logo.php +2 -2
- languages/auxin-elements-fa_IR.po +16 -11
- languages/auxin-elements.pot +17 -12
- public/assets/js/plugins.js +1 -1
- public/assets/js/scripts.js +5 -0
- public/includes/frontend-ajax.php +1 -1
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.9.3
|
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: 5.9.3
|
10 |
+
Stable tag: 2.9.6
|
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.6 (2022-05)
|
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/assets/json/footer.json
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"content":[{"id":"333a101","settings":{"structure":22,"gap":"no","content_position":"middle","border_border":"solid","border_width":{"unit":"px","top":1,"right":0,"bottom":0,"left":0,"isLinked":false},"border_color":"#EAEAEA","padding":{"unit":"px","top":15,"right":35,"bottom":15,"left":35,"isLinked":false}},"elements":[{"id":"1f2d8af4","settings":{"_column_size":66,"_inline_size":90,"_inline_size_tablet":96,"padding_mobile":{"unit":"px","top":15,"right":0,"bottom":15,"left":0,"isLinked":false}},"elements":[{"id":"5f40f80f","settings":{"_element_width":"auto","hide_mobile":"hidden-phone","aux_max_width_tablet":{"unit":"%","size":29,"sizes":[]}},"elements":[],"isInner":false,"widgetType":"aux_logo","elType":"widget"},{"id":"3d79eb07","settings":{"editor":"<p>\u00a9 2019 Company. All rights reserved.\u00a0 Powered by\u00a0 Phlox Theme<\/p>","text_color":"rgba(198, 198, 198, 0.9)","typography_typography":"custom","typography_font_family":"Raleway","typography_font_size":{"unit":"px","size":15,"sizes":[]},"_margin":{"unit":"px","top":0,"right":0,"bottom":-13,"left":20,"isLinked":false},"_margin_mobile":{"unit":"px","top":0,"right":0,"bottom":0,"left":0,"isLinked":false},"_element_width":"auto"},"elements":[],"isInner":false,"widgetType":"text-editor","elType":"widget"}],"isInner":false,"elType":"column"},{"id":"698f8207","settings":{"_column_size":33,"_inline_size":9.619,"_inline_size_tablet":2,"align":"flex-end","hide_mobile":"hidden-phone"},"elements":[{"id":"fe24b66","settings":{"list":[{"text_primary":"","icon":"auxicon-facebook","_id":"694bfa8","text_secondary":"","link":{"url":"","is_external":"","nofollow":"","custom_attributes":""},"display_advanced":"no","icon_color":"","icon_color_tablet":"","icon_color_mobile":"","icon_item_margin":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"icon_item_margin_tablet":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"icon_item_margin_mobile":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"text_primary_color":"","text_primary_color_tablet":"","text_primary_color_mobile":"","text_primary_typography_typography":"","text_primary_typography_font_family":"","text_primary_typography_font_size":{"unit":"px","size":"","sizes":[]},"text_primary_typography_font_size_tablet":{"unit":"px","size":"","sizes":[]},"text_primary_typography_font_size_mobile":{"unit":"px","size":"","sizes":[]},"text_primary_typography_font_weight":"","text_primary_typography_text_transform":"","text_primary_typography_font_style":"","text_primary_typography_text_decoration":"","text_primary_typography_line_height":{"unit":"em","size":"","sizes":[]},"text_primary_typography_line_height_tablet":{"unit":"em","size":"","sizes":[]},"text_primary_typography_line_height_mobile":{"unit":"em","size":"","sizes":[]},"text_primary_typography_letter_spacing":{"unit":"px","size":"","sizes":[]},"text_primary_typography_letter_spacing_tablet":{"unit":"px","size":"","sizes":[]},"text_primary_typography_letter_spacing_mobile":{"unit":"px","size":"","sizes":[]},"text_primary_margin":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"text_primary_margin_tablet":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"text_primary_margin_mobile":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"text_tag":"span","text_secondary_color":"","text_secondary_color_tablet":"","text_secondary_color_mobile":"","text_secondary_typography_typography":"","text_secondary_typography_font_family":"","text_secondary_typography_font_size":{"unit":"px","size":"","sizes":[]},"text_secondary_typography_font_size_tablet":{"unit":"px","size":"","sizes":[]},"text_secondary_typography_font_size_mobile":{"unit":"px","size":"","sizes":[]},"text_secondary_typography_font_weight":"","text_secondary_typography_text_transform":"","text_secondary_typography_font_style":"","text_secondary_typography_text_decoration":"","text_secondary_typography_line_height":{"unit":"em","size":"","sizes":[]},"text_secondary_typography_line_height_tablet":{"unit":"em","size":"","sizes":[]},"text_secondary_typography_line_height_mobile":{"unit":"em","size":"","sizes":[]},"text_secondary_typography_letter_spacing":{"unit":"px","size":"","sizes":[]},"text_secondary_typography_letter_spacing_tablet":{"unit":"px","size":"","sizes":[]},"text_secondary_typography_letter_spacing_mobile":{"unit":"px","size":"","sizes":[]},"text_secondary_margin":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"text_secondary_margin_tablet":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true},"text_secondary_margin_mobile":{"unit":"px","top":"","right":"","bottom":"","left":"","isLinked":true}}],"connector":"","icon_color":"#C6C6C6","_element_width":"auto"},"elements":[],"isInner":false,"widgetType":"aux_icon_list","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"}],"page_settings":[],"version":"0.4","title":"Footer-Journey","type":"footer"}
|
admin/assets/json/header.json
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"content":[{"id":"54a26d6","elType":"section","settings":{"content_width":{"unit":"px","size":1600,"sizes":[]},"gap":"no","content_position":"middle","margin":{"unit":"px","top":15,"right":0,"bottom":15,"left":0,"isLinked":false},"margin_tablet":{"unit":"px","top":"","right":0,"bottom":"","left":0,"isLinked":true},"padding":{"unit":"px","top":0,"right":35,"bottom":0,"left":35,"isLinked":false}},"elements":[{"id":"99ffd65","elType":"column","settings":{"_column_size":100,"_inline_size":null,"content_position_mobile":"center","align":"space-between","align_tablet":"center","align_mobile":"space-between"},"elements":[{"id":"c49eb21","elType":"widget","settings":{"align":"left","align_tablet":"center","align_mobile":"left","_element_width":"auto","_element_width_tablet":"inherit","_element_width_mobile":"auto"},"elements":[],"widgetType":"aux_logo"},{"id":"d052931","elType":"widget","settings":{"menu_slug":"header-menu","splitter":"","burger_menu_location":"overlay","align":"right","align_mobile":"left","item_color":"#000000","menu_item_typo_typography":"custom","menu_item_typo_font_family":"Poppins","menu_item_typo_font_weight":600,"menu_item_typo_text_transform":"uppercase","menu_item_typo_line_height":{"unit":"em","size":1.5,"sizes":[]},"item_hover_color":"#AAAAAA","item_padding":{"unit":"px","top":0,"right":0,"bottom":0,"left":40,"isLinked":false},"_margin_tablet":{"unit":"px","top":55,"right":0,"bottom":0,"left":0,"isLinked":false},"_margin_mobile":{"unit":"px","top":0,"right":0,"bottom":0,"left":0,"isLinked":false},"_element_width":"auto","_element_width_tablet":"auto","_element_width_mobile":"auto"},"elements":[],"widgetType":"aux_menu_box"}],"isInner":false}],"isInner":false}],"page_settings":[]}
|
admin/includes/admin-hooks.php
CHANGED
@@ -930,7 +930,7 @@ function auxin_maybe_set_default_header_template() {
|
|
930 |
return;
|
931 |
}
|
932 |
|
933 |
-
$template_data = auxin_template_importer( '
|
934 |
|
935 |
if ( $template_data['success'] == true ) {
|
936 |
auxin_update_option( 'site_elementor_header_edit_template', $template_data['data']['postId'] );
|
@@ -966,7 +966,7 @@ function auxin_maybe_set_default_footer_template() {
|
|
966 |
return;
|
967 |
}
|
968 |
|
969 |
-
$template_data = auxin_template_importer( '
|
970 |
|
971 |
if ( $template_data['success'] == true ) {
|
972 |
auxin_update_option( 'site_elementor_footer_edit_template', $template_data['data']['postId'] );
|
930 |
return;
|
931 |
}
|
932 |
|
933 |
+
$template_data = auxin_template_importer( AUXELS_ADMIN_DIR . '/assets/json/header.json', 'header', 'update_menu' );
|
934 |
|
935 |
if ( $template_data['success'] == true ) {
|
936 |
auxin_update_option( 'site_elementor_header_edit_template', $template_data['data']['postId'] );
|
966 |
return;
|
967 |
}
|
968 |
|
969 |
+
$template_data = auxin_template_importer( AUXELS_ADMIN_DIR . '/assets/json/footer.json', 'footer', 'update_menu' ); // 7183 is the ID of agency footer template
|
970 |
|
971 |
if ( $template_data['success'] == true ) {
|
972 |
auxin_update_option( 'site_elementor_footer_edit_template', $template_data['data']['postId'] );
|
admin/includes/admin-the-functions.php
CHANGED
@@ -183,71 +183,85 @@ if ( ! function_exists('auxin_template_importer') ) {
|
|
183 |
]
|
184 |
];
|
185 |
|
186 |
-
|
187 |
-
|
|
|
188 |
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
}
|
197 |
-
|
198 |
-
// Find data of selected template
|
199 |
-
$has_template = false;
|
200 |
-
foreach ( $templates_data['templates'] as $key => $template_info ) {
|
201 |
-
if ( $template_info['id'] == $template_ID && $template_info['type'] == $template_type ) {
|
202 |
-
$has_template = true;
|
203 |
-
$template = $template_info;
|
204 |
-
break;
|
205 |
}
|
206 |
-
}
|
207 |
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
'
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
// Import Template
|
218 |
-
$template_data_key = sanitize_key( "auxin_template_kit_{$template_type}_data_for_origin_id_{$template_ID}" );
|
219 |
-
$template_imported_id_key = sanitize_key( "auxin_template_kit_new_id_for_origin_{$template_ID}" );
|
220 |
-
|
221 |
-
$template_imported_new_id = auxin_get_transient( $template_imported_id_key );
|
222 |
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
]
|
232 |
-
];
|
233 |
-
}
|
234 |
|
235 |
-
|
|
|
|
|
236 |
|
237 |
-
|
238 |
-
$template_data = Auxin_Demo_Importer::get_instance()->fetch_template_data( $template_ID );
|
239 |
|
240 |
-
if
|
|
|
241 |
return [
|
242 |
-
'success'
|
243 |
-
'data'
|
244 |
-
'message'
|
|
|
|
|
245 |
]
|
246 |
];
|
247 |
}
|
248 |
|
249 |
-
|
250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
}
|
252 |
|
253 |
|
183 |
]
|
184 |
];
|
185 |
|
186 |
+
if ( is_numeric( $template_ID ) ) {
|
187 |
+
// Get All Templates data
|
188 |
+
$templates_data = Auxin_Welcome::get_instance()->get_demo_list('templates');
|
189 |
|
190 |
+
if ( empty( $templates_data ) ) {
|
191 |
+
return [
|
192 |
+
'success' => false,
|
193 |
+
'data' => [
|
194 |
+
'message' => __( "An error occurred while updating templates library.", 'auxin-elements' )
|
195 |
+
]
|
196 |
+
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
}
|
|
|
198 |
|
199 |
+
// Find data of selected template
|
200 |
+
$has_template = false;
|
201 |
+
foreach ( $templates_data['templates'] as $key => $template_info ) {
|
202 |
+
if ( $template_info['id'] == $template_ID && $template_info['type'] == $template_type ) {
|
203 |
+
$has_template = true;
|
204 |
+
$template = $template_info;
|
205 |
+
break;
|
206 |
+
}
|
207 |
+
}
|
|
|
|
|
|
|
|
|
|
|
208 |
|
209 |
+
if ( ! $has_template ){
|
210 |
+
return [
|
211 |
+
'success' => false,
|
212 |
+
'data' => [
|
213 |
+
'message' => __( 'Template Not Found.', 'auxin-elements' )
|
214 |
+
]
|
215 |
+
];
|
216 |
+
}
|
|
|
|
|
|
|
217 |
|
218 |
+
// Import Template
|
219 |
+
$template_data_key = sanitize_key( "auxin_template_kit_{$template_type}_data_for_origin_id_{$template_ID}" );
|
220 |
+
$template_imported_id_key = sanitize_key( "auxin_template_kit_new_id_for_origin_{$template_ID}" );
|
221 |
|
222 |
+
$template_imported_new_id = auxin_get_transient( $template_imported_id_key );
|
|
|
223 |
|
224 |
+
// Check if the template is already imported and was not deleted
|
225 |
+
if ( false !== $template_imported_new_id && ! in_array( get_post_status( $template_imported_new_id ), [ false, 'trash' ] ) ) {
|
226 |
return [
|
227 |
+
'success' => true,
|
228 |
+
'data' => [
|
229 |
+
'message' => __( 'Template is already imported.', 'auxin-elements' ),
|
230 |
+
'data' => false,
|
231 |
+
'isImported' => true,
|
232 |
]
|
233 |
];
|
234 |
}
|
235 |
|
236 |
+
if( false === $template_data = auxin_get_transient( $template_data_key ) ){
|
237 |
+
|
238 |
+
// Retrieve the template data
|
239 |
+
$template_data = Auxin_Demo_Importer::get_instance()->fetch_template_data( $template_ID );
|
240 |
+
|
241 |
+
if( ! $template_data ){
|
242 |
+
return [
|
243 |
+
'success' => false,
|
244 |
+
'data' => [
|
245 |
+
'message' => __( 'Connection error, please check your connection.', 'auxin-elements' )
|
246 |
+
]
|
247 |
+
];
|
248 |
+
}
|
249 |
+
|
250 |
+
// Set transient for 48h
|
251 |
+
auxin_set_transient( $template_data_key, $template_data, WEEK_IN_SECONDS );
|
252 |
+
}
|
253 |
+
} elseif ( file_exists( $template_ID ) ) {
|
254 |
+
$template_data = file_get_contents( $template_ID );
|
255 |
+
$template = [
|
256 |
+
'title' => basename( $template_ID, '.json' )
|
257 |
+
];
|
258 |
+
} else {
|
259 |
+
return [
|
260 |
+
'success' => false,
|
261 |
+
'data' => [
|
262 |
+
'message' => __( 'Template ID must be numeric or valid filepath.', 'auxin-elements')
|
263 |
+
]
|
264 |
+
];
|
265 |
}
|
266 |
|
267 |
|
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.6
|
16 |
* Author: averta
|
17 |
* Author URI: http://averta.net
|
18 |
* Text Domain: auxin-elements
|
includes/classes/class-auxin-demo-importer.php
CHANGED
@@ -361,11 +361,11 @@ class Auxin_Demo_Importer {
|
|
361 |
if ( 'complete' === $options['import']
|
362 |
|| ( 'custom' === $options['import'] && ( isset( $options['masterslider'] ) && 'on' === $options['masterslider'] ) )
|
363 |
&& ( isset( $data['sliders'] ) || isset( $data['depicter_sliders'] ) ) ) {
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
|
370 |
}
|
371 |
|
@@ -1055,10 +1055,18 @@ class Auxin_Demo_Importer {
|
|
1055 |
preg_match_all( '#[\w\/\-\.\:]+?([\w\-]+?)\/wp-content#', $custom_css, $matches, PREG_SET_ORDER );
|
1056 |
if ( ! empty( $matches ) ) {
|
1057 |
$site_url = trailingslashit( get_site_url() );
|
|
|
|
|
1058 |
foreach( $matches as $key => $match ) {
|
1059 |
if ( !empty( $match[1] ) ) {
|
1060 |
-
$new_url = str_replace( '/' . $match[1],
|
1061 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1062 |
$custom_css = str_replace( $match[0], $new_url, $custom_css );
|
1063 |
}
|
1064 |
}
|
@@ -1342,13 +1350,13 @@ class Auxin_Demo_Importer {
|
|
1342 |
*
|
1343 |
* @return String
|
1344 |
*/
|
1345 |
-
public function import_sliders( $sliders
|
1346 |
|
1347 |
-
if ( class_exists( 'MSP_DB' ) && ! empty( $sliders )
|
1348 |
|
1349 |
$ms_db = new MSP_DB;
|
1350 |
|
1351 |
-
foreach ( $sliders as $slider ) {
|
1352 |
|
1353 |
if ( isset( $slider['ID'] ) ) {
|
1354 |
unset( $slider['ID'] );
|
@@ -1364,8 +1372,8 @@ class Auxin_Demo_Importer {
|
|
1364 |
|
1365 |
}
|
1366 |
|
1367 |
-
if ( class_exists( 'Depicter' ) && ! empty( $sliders )
|
1368 |
-
foreach ( $sliders as $slider ) {
|
1369 |
$document = Depicter::documentRepository()->create();
|
1370 |
set_transient( 'auxin_depicter_' . $slider['id'] . '_to', $document->getID() );
|
1371 |
unset( $slider['id'] );
|
361 |
if ( 'complete' === $options['import']
|
362 |
|| ( 'custom' === $options['import'] && ( isset( $options['masterslider'] ) && 'on' === $options['masterslider'] ) )
|
363 |
&& ( isset( $data['sliders'] ) || isset( $data['depicter_sliders'] ) ) ) {
|
364 |
+
$sliders = [
|
365 |
+
'master' => !empty( $data['sliders'] ) ? $data['sliders'] : '',
|
366 |
+
'depicter' => !empty( $data['depicter_sliders'] ) ? $data['depicter_sliders'] : '',
|
367 |
+
];
|
368 |
+
return $this->import_sliders( $sliders );
|
369 |
|
370 |
}
|
371 |
|
1055 |
preg_match_all( '#[\w\/\-\.\:]+?([\w\-]+?)\/wp-content#', $custom_css, $matches, PREG_SET_ORDER );
|
1056 |
if ( ! empty( $matches ) ) {
|
1057 |
$site_url = trailingslashit( get_site_url() );
|
1058 |
+
$site_url_path = parse_url( $site_url, PHP_URL_PATH );
|
1059 |
+
$site_url_path = $site_url_path ? rtrim( $site_url_path, '/' ) : '';
|
1060 |
foreach( $matches as $key => $match ) {
|
1061 |
if ( !empty( $match[1] ) ) {
|
1062 |
+
$new_url = str_replace( '/' . $match[1], $site_url_path, $match[0] );
|
1063 |
+
if ( empty( $site_url_path ) ) {
|
1064 |
+
$new_url = str_replace( "https://demo.phlox.pro/", $site_url, $new_url );
|
1065 |
+
} else {
|
1066 |
+
$site_url_without_path = str_replace( $site_url_path, '', $site_url );
|
1067 |
+
$new_url = str_replace( "https://demo.phlox.pro/", $site_url_without_path, $new_url );
|
1068 |
+
}
|
1069 |
+
|
1070 |
$custom_css = str_replace( $match[0], $new_url, $custom_css );
|
1071 |
}
|
1072 |
}
|
1350 |
*
|
1351 |
* @return String
|
1352 |
*/
|
1353 |
+
public function import_sliders( $sliders ) {
|
1354 |
|
1355 |
+
if ( class_exists( 'MSP_DB' ) && ! empty( $sliders['master'] ) ) {
|
1356 |
|
1357 |
$ms_db = new MSP_DB;
|
1358 |
|
1359 |
+
foreach ( $sliders['master'] as $slider ) {
|
1360 |
|
1361 |
if ( isset( $slider['ID'] ) ) {
|
1362 |
unset( $slider['ID'] );
|
1372 |
|
1373 |
}
|
1374 |
|
1375 |
+
if ( class_exists( 'Depicter' ) && ! empty( $sliders['depicter'] ) ) {
|
1376 |
+
foreach ( $sliders['depicter_slider'] as $slider ) {
|
1377 |
$document = Depicter::documentRepository()->create();
|
1378 |
set_transient( 'auxin_depicter_' . $slider['id'] . '_to', $document->getID() );
|
1379 |
unset( $slider['id'] );
|
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.6' );
|
16 |
|
17 |
define( 'AUXELS_SLUG' , 'auxin-elements' );
|
18 |
|
includes/elementor/widgets/theme-elements/logo.php
CHANGED
@@ -111,7 +111,7 @@ class Logo extends Widget_Base {
|
|
111 |
'custom_logo_page',
|
112 |
array(
|
113 |
'type' => Controls_Manager::RAW_HTML,
|
114 |
-
'raw' => sprintf( __( '<strong>There are no logo in your site.</strong><br>Go to the <a href="%s" target="_blank">Customizer</a> to add one.', 'auxin-elements' ), admin_url( 'customize.php' ) ),
|
115 |
'separator' => 'after',
|
116 |
'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
|
117 |
)
|
@@ -122,7 +122,7 @@ class Logo extends Widget_Base {
|
|
122 |
array(
|
123 |
'type'=> Controls_Manager::RAW_HTML,
|
124 |
'raw' => '<strong>'. __( 'Your site logo is set in customizer.', 'auxin-elements' ). '</strong><br>'.
|
125 |
-
sprintf( __( 'Go to %s Customizer %s to change it.', 'auxin-elements' ), '<a href="'. admin_url( 'customize.php' ) .' target="_blank">', "</a>" ),
|
126 |
'separator' => 'after',
|
127 |
'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
|
128 |
)
|
111 |
'custom_logo_page',
|
112 |
array(
|
113 |
'type' => Controls_Manager::RAW_HTML,
|
114 |
+
'raw' => sprintf( __( '<strong>There are no logo in your site.</strong><br>Go to the <a href="%s" target="_blank" style="color: #2271b1;text-decoration: underline;font-style: normal;">Customizer</a> to add one.', 'auxin-elements' ), add_query_arg( "autofocus[section]", "title_tagline", admin_url( 'customize.php' ) ) ),
|
115 |
'separator' => 'after',
|
116 |
'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
|
117 |
)
|
122 |
array(
|
123 |
'type'=> Controls_Manager::RAW_HTML,
|
124 |
'raw' => '<strong>'. __( 'Your site logo is set in customizer.', 'auxin-elements' ). '</strong><br>'.
|
125 |
+
sprintf( __( 'Go to %s Customizer %s to change it.', 'auxin-elements' ), '<a href="'. add_query_arg( "autofocus[section]", "title_tagline", admin_url( 'customize.php' ) ) .'" target="_blank" style="color: #2271b1;text-decoration: underline;font-style: normal;">', "</a>" ),
|
126 |
'separator' => 'after',
|
127 |
'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
|
128 |
)
|
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"
|
@@ -255,27 +255,31 @@ msgstr ""
|
|
255 |
msgid "Template ID or type is required."
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: admin/includes/admin-the-functions.php:
|
259 |
msgid "An error occurred while updating templates library."
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: admin/includes/admin-the-functions.php:
|
263 |
msgid "Template Not Found."
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: admin/includes/admin-the-functions.php:
|
267 |
msgid "Template is already imported."
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: admin/includes/admin-the-functions.php:
|
271 |
msgid "Connection error, please check your connection."
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: admin/includes/admin-the-functions.php:
|
|
|
|
|
|
|
|
|
275 |
msgid "Template Imported Successfully"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: admin/includes/admin-the-functions.php:
|
279 |
msgid "Error while saving the template."
|
280 |
msgstr ""
|
281 |
|
@@ -1998,7 +2002,7 @@ msgid "Importing Media"
|
|
1998 |
msgstr ""
|
1999 |
|
2000 |
#: includes/classes/class-auxin-demo-importer.php:294
|
2001 |
-
#: includes/classes/class-auxin-demo-importer.php:
|
2002 |
msgid "Importing Users"
|
2003 |
msgstr ""
|
2004 |
|
@@ -2029,11 +2033,11 @@ msgstr ""
|
|
2029 |
msgid "Importing Sliders"
|
2030 |
msgstr ""
|
2031 |
|
2032 |
-
#: includes/classes/class-auxin-demo-importer.php:
|
2033 |
msgid "Preparing Site ..."
|
2034 |
msgstr ""
|
2035 |
|
2036 |
-
#: includes/classes/class-auxin-demo-importer.php:
|
2037 |
msgid "All steps are successful"
|
2038 |
msgstr ""
|
2039 |
|
@@ -9315,7 +9319,8 @@ msgstr ""
|
|
9315 |
#: includes/elementor/widgets/theme-elements/logo.php:114
|
9316 |
msgid ""
|
9317 |
"<strong>There are no logo in your site.</strong><br>Go to the <a href=\"%s\" "
|
9318 |
-
"target=\"_blank\"
|
|
|
9319 |
msgstr ""
|
9320 |
|
9321 |
#: includes/elementor/widgets/theme-elements/logo.php:124
|
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-05-22 06:59:59+00:00\n"
|
6 |
"PO-Revision-Date: 2016-11-09 12:50+0330\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
255 |
msgid "Template ID or type is required."
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: admin/includes/admin-the-functions.php:194
|
259 |
msgid "An error occurred while updating templates library."
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: admin/includes/admin-the-functions.php:213
|
263 |
msgid "Template Not Found."
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: admin/includes/admin-the-functions.php:229
|
267 |
msgid "Template is already imported."
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: admin/includes/admin-the-functions.php:245
|
271 |
msgid "Connection error, please check your connection."
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: admin/includes/admin-the-functions.php:262
|
275 |
+
msgid "Template ID must be numeric or valid filepath."
|
276 |
+
msgstr ""
|
277 |
+
|
278 |
+
#: admin/includes/admin-the-functions.php:320
|
279 |
msgid "Template Imported Successfully"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: admin/includes/admin-the-functions.php:332
|
283 |
msgid "Error while saving the template."
|
284 |
msgstr ""
|
285 |
|
2002 |
msgstr ""
|
2003 |
|
2004 |
#: includes/classes/class-auxin-demo-importer.php:294
|
2005 |
+
#: includes/classes/class-auxin-demo-importer.php:1312
|
2006 |
msgid "Importing Users"
|
2007 |
msgstr ""
|
2008 |
|
2033 |
msgid "Importing Sliders"
|
2034 |
msgstr ""
|
2035 |
|
2036 |
+
#: includes/classes/class-auxin-demo-importer.php:1389
|
2037 |
msgid "Preparing Site ..."
|
2038 |
msgstr ""
|
2039 |
|
2040 |
+
#: includes/classes/class-auxin-demo-importer.php:1431
|
2041 |
msgid "All steps are successful"
|
2042 |
msgstr ""
|
2043 |
|
9319 |
#: includes/elementor/widgets/theme-elements/logo.php:114
|
9320 |
msgid ""
|
9321 |
"<strong>There are no logo in your site.</strong><br>Go to the <a href=\"%s\" "
|
9322 |
+
"target=\"_blank\" style=\"color: #2271b1;text-decoration: underline;font-"
|
9323 |
+
"style: normal;\">Customizer</a> to add one."
|
9324 |
msgstr ""
|
9325 |
|
9326 |
#: includes/elementor/widgets/theme-elements/logo.php:124
|
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-
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -242,27 +242,31 @@ msgstr ""
|
|
242 |
msgid "Template ID or type is required."
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: admin/includes/admin-the-functions.php:
|
246 |
msgid "An error occurred while updating templates library."
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: admin/includes/admin-the-functions.php:
|
250 |
msgid "Template Not Found."
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: admin/includes/admin-the-functions.php:
|
254 |
msgid "Template is already imported."
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: admin/includes/admin-the-functions.php:
|
258 |
msgid "Connection error, please check your connection."
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: admin/includes/admin-the-functions.php:
|
|
|
|
|
|
|
|
|
262 |
msgid "Template Imported Successfully"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: admin/includes/admin-the-functions.php:
|
266 |
msgid "Error while saving the template."
|
267 |
msgstr ""
|
268 |
|
@@ -1874,7 +1878,7 @@ msgid "Importing Media"
|
|
1874 |
msgstr ""
|
1875 |
|
1876 |
#: includes/classes/class-auxin-demo-importer.php:294
|
1877 |
-
#: includes/classes/class-auxin-demo-importer.php:
|
1878 |
msgid "Importing Users"
|
1879 |
msgstr ""
|
1880 |
|
@@ -1904,11 +1908,11 @@ msgstr ""
|
|
1904 |
msgid "Importing Sliders"
|
1905 |
msgstr ""
|
1906 |
|
1907 |
-
#: includes/classes/class-auxin-demo-importer.php:
|
1908 |
msgid "Preparing Site ..."
|
1909 |
msgstr ""
|
1910 |
|
1911 |
-
#: includes/classes/class-auxin-demo-importer.php:
|
1912 |
msgid "All steps are successful"
|
1913 |
msgstr ""
|
1914 |
|
@@ -8772,7 +8776,8 @@ msgstr ""
|
|
8772 |
#: includes/elementor/widgets/theme-elements/logo.php:114
|
8773 |
msgid ""
|
8774 |
"<strong>There are no logo in your site.</strong><br>Go to the <a "
|
8775 |
-
"href=\"%s\" target=\"_blank\"
|
|
|
8776 |
msgstr ""
|
8777 |
|
8778 |
#: includes/elementor/widgets/theme-elements/logo.php:124
|
1 |
# Averta Copyright (c) {2022}
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
+
"Project-Id-Version: Phlox Core Elements 2.9.6\n"
|
5 |
"Report-Msgid-Bugs-To: http://averta.net/phlox/wordpress-theme/\n"
|
6 |
+
"POT-Creation-Date: 2022-05-22 06:59:59+00:00\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=utf-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
242 |
msgid "Template ID or type is required."
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: admin/includes/admin-the-functions.php:194
|
246 |
msgid "An error occurred while updating templates library."
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: admin/includes/admin-the-functions.php:213
|
250 |
msgid "Template Not Found."
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: admin/includes/admin-the-functions.php:229
|
254 |
msgid "Template is already imported."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: admin/includes/admin-the-functions.php:245
|
258 |
msgid "Connection error, please check your connection."
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: admin/includes/admin-the-functions.php:262
|
262 |
+
msgid "Template ID must be numeric or valid filepath."
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: admin/includes/admin-the-functions.php:320
|
266 |
msgid "Template Imported Successfully"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: admin/includes/admin-the-functions.php:332
|
270 |
msgid "Error while saving the template."
|
271 |
msgstr ""
|
272 |
|
1878 |
msgstr ""
|
1879 |
|
1880 |
#: includes/classes/class-auxin-demo-importer.php:294
|
1881 |
+
#: includes/classes/class-auxin-demo-importer.php:1312
|
1882 |
msgid "Importing Users"
|
1883 |
msgstr ""
|
1884 |
|
1908 |
msgid "Importing Sliders"
|
1909 |
msgstr ""
|
1910 |
|
1911 |
+
#: includes/classes/class-auxin-demo-importer.php:1389
|
1912 |
msgid "Preparing Site ..."
|
1913 |
msgstr ""
|
1914 |
|
1915 |
+
#: includes/classes/class-auxin-demo-importer.php:1431
|
1916 |
msgid "All steps are successful"
|
1917 |
msgstr ""
|
1918 |
|
8776 |
#: includes/elementor/widgets/theme-elements/logo.php:114
|
8777 |
msgid ""
|
8778 |
"<strong>There are no logo in your site.</strong><br>Go to the <a "
|
8779 |
+
"href=\"%s\" target=\"_blank\" style=\"color: #2271b1;text-decoration: "
|
8780 |
+
"underline;font-style: normal;\">Customizer</a> to add one."
|
8781 |
msgstr ""
|
8782 |
|
8783 |
#: includes/elementor/widgets/theme-elements/logo.php:124
|
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.6 (2022-05)
|
2 |
* All required plugins
|
3 |
* http://phlox.pro/
|
4 |
*/
|
public/assets/js/scripts.js
CHANGED
@@ -10,6 +10,10 @@
|
|
10 |
var verify_nonce = $(this).data("verify_nonce");
|
11 |
var $cartBoxEl = $(this).closest('.aux-cart-wrapper').addClass('aux-cart-remove-in-progress');
|
12 |
|
|
|
|
|
|
|
|
|
13 |
$.ajax({
|
14 |
type: 'POST',
|
15 |
dataType: 'json',
|
@@ -19,6 +23,7 @@
|
|
19 |
product_id: product_id,
|
20 |
cart_item_key: cart_item_key,
|
21 |
verify_nonce: verify_nonce,
|
|
|
22 |
},
|
23 |
success: function( response ){
|
24 |
// Remove old notification
|
10 |
var verify_nonce = $(this).data("verify_nonce");
|
11 |
var $cartBoxEl = $(this).closest('.aux-cart-wrapper').addClass('aux-cart-remove-in-progress');
|
12 |
|
13 |
+
if ( typeof auxin_cart_options === 'undefined' ) {
|
14 |
+
auxin_cart_options = '';
|
15 |
+
}
|
16 |
+
|
17 |
$.ajax({
|
18 |
type: 'POST',
|
19 |
dataType: 'json',
|
23 |
product_id: product_id,
|
24 |
cart_item_key: cart_item_key,
|
25 |
verify_nonce: verify_nonce,
|
26 |
+
args : auxin_cart_options,
|
27 |
},
|
28 |
success: function( response ){
|
29 |
// Remove old notification
|
public/includes/frontend-ajax.php
CHANGED
@@ -141,7 +141,7 @@ function auxels_remove_product_from_cart() {
|
|
141 |
|
142 |
$cart->calculate_totals();
|
143 |
|
144 |
-
$args =
|
145 |
'title' => '',
|
146 |
'css_class' => '',
|
147 |
'dropdown_class' => '',
|
141 |
|
142 |
$cart->calculate_totals();
|
143 |
|
144 |
+
$args = !empty( $_POST['args'] ) ? $_POST['args'] : array(
|
145 |
'title' => '',
|
146 |
'css_class' => '',
|
147 |
'dropdown_class' => '',
|