Shortcodes and extra features for Phlox theme - Version 2.5.2

Version Description

Download this release

Release Info

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

Code changes from version 2.5.1 to 2.5.2

Files changed (29) hide show
  1. README.txt +5 -109
  2. admin/assets/js/plugins.js +1 -1
  3. admin/includes/metaboxes/metabox-fields-general-header-template.php +1 -1
  4. admin/includes/metaboxes/metabox-fields-general-header.php +4 -2
  5. admin/includes/metaboxes/metabox-fields-general-top-header.php +1 -1
  6. auxin-elements.php +12 -1
  7. includes/classes/class-auxin-demo-importer.php +17 -7
  8. includes/define.php +1 -1
  9. includes/elementor/class-auxin-elementor-core-elements.php +4 -1
  10. includes/elementor/modules/dynamic-tags/featured-colors.php +75 -0
  11. includes/elementor/modules/dynamic-tags/post-custom-field.php +1 -1
  12. includes/elementor/modules/settings/general/manager.php +2 -0
  13. includes/elementor/modules/templates-types-manager.php +6 -0
  14. includes/elementor/widgets/accordion.php +202 -26
  15. includes/elementor/widgets/carousel-navigation.php +15 -6
  16. includes/elementor/widgets/contact-form.php +1468 -11
  17. includes/elementor/widgets/recent-posts-grid-carousel.php +13 -16
  18. includes/elementor/widgets/text.php +1 -0
  19. includes/elementor/widgets/theme-elements/breadcrumbs.php +414 -0
  20. includes/elementor/widgets/theme-elements/copyright.php +235 -203
  21. includes/elementor/widgets/theme-elements/menu.php +1 -1
  22. includes/elementor/widgets/theme-elements/modern-search.php +539 -183
  23. includes/elementor/widgets/theme-elements/search.php +1 -16
  24. includes/elements/accordion.php +1 -1
  25. includes/elements/custom-list.php +7 -1
  26. includes/general-functions.php +41 -2
  27. includes/general-hooks.php +2 -2
  28. public/assets/js/plugins.js +1 -1
  29. public/includes/frontend-ajax.php +10 -8
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.3.3
10
- Stable tag: 2.5.1
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
@@ -156,114 +156,10 @@ Bugs can be reported in our [support forums](https://docs.phlox.pro).
156
  == Changelog ==
157
 
158
  = Version 2.5.0 / (09.03.2020) =
159
- - [Fix]: Merge branch '2.5.0' into develop
160
- - [Fix]: Automatically disable Elementor default colors and fonts on fresh installations
161
- - [Fix]: Moving the Elementor related codes to main Elementor class
162
- - [Fix]: Changing the default search icon for modern search element
163
- - [Fix]: Renaming the phlox icon set in Elementor font library
164
- - [Fix]: add icon to elementor icon controller
165
- - [Fix]: Renaming old search element to search form
166
- - [Fix]: Improvement in text and default values in options of shpopping cart element
167
- - [Fix]: Built-in fullscreen options removed from customizer
168
- - [Fix]: Fix not importing terms which it's name is number
169
- - [Fix]: Add New Search Widget To Theme Elements
170
- - [Fix]: Fixing a bug for hover color option of read more link in recent post element.
171
- - [Fix]: Changing the priority of page option tabs
172
- - [Fix]: Imrpvement in shopping cart options and enabling simple mode by default
173
- - [Fix]: Bug fix - header button option not importing when demo importing
174
- - [Fix]: Update Menu of imported header or footer
175
- - [Fix]: Fix font and url issue while importing demos
176
- - [Fix]: Removing redundant namespace and whitespaces
177
- - [Fix]: Adding dynamic source to all Elementor URL controls
178
- - [Fix]: Allow importing a header a footer template if imported demo is deleted.
179
- - [Fix]: Renaming the transient for caching downloaded template data
180
- - [Fix]: Renaming the temporary importer options for menu items
181
- - [Fix]: Renaming the temporary importer options for menu items
182
- - [Fix]: Changing the key of some transients
183
- - [Fix]: Set search phrase argument after search for sku
184
- - [Fix]: Making sure if the ported template is a valid template
185
- - [Fix]: Product Search Bug Fix
186
- - [Fix]: Fix an issue with unexpected generated css style
187
- - [Fix]: Fix an issue with elementor header selectors and attributes
188
- - [Fix]: Add comment for importing product attributes
189
- - [Fix]: Correct url add in custom css of an element
190
- - [Fix]: Importer Improvement
191
- - [Fix]: An issue with unit size of slider controls in mailchimp element fixed
192
- - [Fix]: Fix an issue with default search bakcground color
193
- - [Fix]: add user menu to imported default header or footer
194
- - [Fix]: Automatically import and set default header and footer template
195
- - [Fix]: Fixing the ajax fatal error.
196
- - [Fix]: Fixing a notice for undefined license tokens
197
- - [Fix]: Changing the priority of hook for importing and inserting default header template
198
- - [Fix]: template importer function load only in admin pages
199
- - [Fix]: Template Importer Improvement
200
- - [Fix]: Storing the current Elementor version while importing a template
201
- - [Fix]: Code improvement and preventing DIY
202
- - [Fix]: Fixing a conflict
203
- - [Fix]: Flush css after importing the template
204
- - [Fix]: Improve the json response of template library controller
205
- - [Fix]: Instagram link for staff Element added
206
- - [Fix]: remove dependency for fullscreen search options in customizer
207
- - [Fix]: Moving fullscreen search options to new section in custmizer
208
- - [Fix]: Typo fixed in search element
209
- - [Fix]: remove deprecated install notice for pro tools
210
- - [Fix]: A fix for retrieving header template Id
211
- - [Fix]: Turn off the Legacy options by default and fallback to built-in header and footer if Elementor is disabled
212
- - [Fix]: Removing extra packages for shopping cart Element class
213
- - [Fix]: Improving Elementor install notice
214
- - [Fix]: Change the typof use legacy header controller from switch to select
215
- - [Fix]: Fix an issue with use legacy header default value
216
- - [Fix]: Chnage Elementor Footer Template Classname
217
- - [Fix]: Shooping cart depend on activation of WooCommerce
218
- - [Fix]: Enable the ajax option for search element
219
- - [Fix]: version bumped to 2.5.0
220
- - [Fix]: Improvement in ajax messages of header footer builder importer.
221
- - [Fix]: Improve ajax template importer for auxin_template_library control
222
- - [Fix]: A quick fix for path to simple svg element
223
- - [Fix]: Override Use Legacy Header Based on Metabox
224
- - [Fix]: Override Header Tempalte based on Metabox
225
- - [Fix]: Add Use Legacy Header Dependency to Header and Topheader Bar Section
226
- - [Fix]: Add Header Template Section in Metabox
227
- - [Fix]: Add Header Template Settings Section in Metabox
228
- - [Fix]: Add New Sections and change the order of sections
229
- - [Fix]: moving simple svg element to core auxin elements
230
- - [Fix]: Make JSON Messages Translateble
231
- - [Fix]: Make JSON Massages Translateble
232
- - [Fix]: change camel case variable names
233
- - [Fix]: use get_instance instead of creating new instance of class
234
- - [Fix]: Template Controller - template ajax import
235
- - [Fix]: Fix plugin domain
236
- - [Fix]: Add some cart feature that exist in customizer to elementor cart element
237
- - [Fix]: 1. Move search global options to extras->search results panel 2. add ajax search option to elementor search element
238
- - [Fix]: Improvement in translatable description for logo element.
239
- - [Fix]: the expiration period for dismissing element pack notice increased.
240
- - [Fix]: Remove Elementor Pack Notice for License
241
- - [Fix]: Fix an issue with default background color on header
242
- - [Fix]: Add Custom Logo Section to Page Metabox
243
- - [Fix]: Fix an issue with sticky footer
244
- - [Fix]: Improve the footer render template function
245
- - [Fix]: Add Use legacy footer dependencies
246
- - [Fix]: copyright element added
247
- - [Fix]: Add Use Legacy Dependency to Header Options
248
- - [Fix]: inline svg for infobox element added; plus, copyright element added
249
- - [Fix]: fixing the conflict for
250
- - [Fix]: 1. Added : cart type to page metabox 2. Fixed: cart light or dark mode option always get from page metabox not customizer options
251
- - [Fix]: adding active fullscreen typo and colors to navigation menu element
252
- - [Fix]: Improve Ajax Search Function
253
- - [Fix]: Remove search function from general functions and add it as a class
254
- - [Fix]: Add some new options and optimize the options
255
- - [Fix]: Add an ability to use font icon in carousel navigation
256
- - [Fix]: Add Carousel Navigation Widget
257
- - [Fix]: text shadow option added to fulscreen mobile menu opttions
258
- - [Fix]: text shadow options and new active menu item option added to navigation menu element
259
- - [Fix]: adding new word to dictionary
260
- - [Fix]: rearrange and improvements in navigation menu element
261
- - [Fix]: modify description for an option in carousel elements
262
- - [Fix]: word spell ignore list added to editor settings
263
- - [Fix]: initial changes for ajax search functionality added
264
- - [Fix]: Improve the header template render function
265
- - [Fix]: improve the header template functionality
266
- - [Fix]: Add Dependency to header sections
267
 
268
  = Version 2.4.18 / (03.02.2020) =
269
  - [Improvement]: Some improvements for modern heading element applied.
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.3.3
10
+ Stable tag: 2.5.2
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
156
  == Changelog ==
157
 
158
  = Version 2.5.0 / (09.03.2020) =
159
+ - [Improvement]: Instagram link for staff Element added.
160
+ - [New]: Inline SVG option for Infobox element added.
161
+ - [Improvement]: Improvements in dark mode style of controllers for Elementor applied.
162
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
  = Version 2.4.18 / (03.02.2020) =
165
  - [Improvement]: Some improvements for modern heading element applied.
admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.5.1 (2020-03-09)
2
  * All required javascript plugins for admin
3
  * http://phlox.pro/
4
  * Place any jQuery/helper plugins in here, instead of separate, slower script files!
1
+ /*! Phlox Core Plugin - v2.5.2 (2020-03-16)
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/metaboxes/metabox-fields-general-header-template.php CHANGED
@@ -68,7 +68,7 @@ function auxin_metabox_fields_header_templates(){
68
 
69
  $model->fields[] = array(
70
  'title' => __( 'Use Legacy Header', THEME_DOMAIN ),
71
- 'description' => __( 'Enable it to replace header section with an Elementor template', THEME_DOMAIN ),
72
  'id' => 'page_header_use_legacy',
73
  'type' => 'select',
74
  'transport' => 'postMessage',
68
 
69
  $model->fields[] = array(
70
  'title' => __( 'Use Legacy Header', THEME_DOMAIN ),
71
+ 'description' => __( 'Disable it to replace header section with an Elementor template', THEME_DOMAIN ),
72
  'id' => 'page_header_use_legacy',
73
  'type' => 'select',
74
  'transport' => 'postMessage',
admin/includes/metaboxes/metabox-fields-general-header.php CHANGED
@@ -24,7 +24,7 @@ function auxin_metabox_fields_general_header(){
24
 
25
  array(
26
  'title' => __( 'Use Legacy Header', THEME_DOMAIN ),
27
- 'description' => __( 'Enable it to replace header section with an Elementor template', THEME_DOMAIN ),
28
  'id' => 'page_header_section_use_legacy',
29
  'type' => 'select',
30
  'transport' => 'postMessage',
@@ -412,7 +412,9 @@ function auxin_metabox_fields_general_header(){
412
  ),
413
  ),
414
  'style_callback' => function( $value = null ){
415
-
 
 
416
  if ( 'default' !== auxin_get_post_meta( $post, 'page_header_navigation_layout', 'default' ) ) {
417
  return $value ? ".site-header-section { background-color:$value; }" : '';
418
  } else {
24
 
25
  array(
26
  'title' => __( 'Use Legacy Header', THEME_DOMAIN ),
27
+ 'description' => __( 'Disable it to replace header section with an Elementor template', THEME_DOMAIN ),
28
  'id' => 'page_header_section_use_legacy',
29
  'type' => 'select',
30
  'transport' => 'postMessage',
412
  ),
413
  ),
414
  'style_callback' => function( $value = null ){
415
+ if( ! isset( $post ) ){
416
+ $post = get_post();
417
+ }
418
  if ( 'default' !== auxin_get_post_meta( $post, 'page_header_navigation_layout', 'default' ) ) {
419
  return $value ? ".site-header-section { background-color:$value; }" : '';
420
  } else {
admin/includes/metaboxes/metabox-fields-general-top-header.php CHANGED
@@ -24,7 +24,7 @@ function auxin_metabox_fields_general_top_header(){
24
 
25
  array(
26
  'title' => __( 'Use Legacy Header', THEME_DOMAIN ),
27
- 'description' => __( 'Enable it to replace header section with an Elementor template', THEME_DOMAIN ),
28
  'id' => 'page_top_header_section_use_legacy',
29
  'type' => 'select',
30
  'transport' => 'postMessage',
24
 
25
  array(
26
  'title' => __( 'Use Legacy Header', THEME_DOMAIN ),
27
+ 'description' => __( 'Disable it to replace header section with an Elementor template', THEME_DOMAIN ),
28
  'id' => 'page_top_header_section_use_legacy',
29
  'type' => 'select',
30
  'transport' => 'postMessage',
auxin-elements.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Phlox Core Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Exclusive and comprehensive plugin that extends the functionality of Phlox theme by adding new Elements, widgets and options.
15
- * Version: 2.5.1
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
@@ -100,6 +100,17 @@ if( is_admin() ||
100
  }
101
  }
102
 
 
 
 
 
 
 
 
 
 
 
 
103
  /**
104
  * Initialize the plugin
105
  * ===========================================================================*/
12
  * Plugin Name: Phlox Core Elements
13
  * Plugin URI: https://wordpress.org/plugins/auxin-elements/
14
  * Description: Exclusive and comprehensive plugin that extends the functionality of Phlox theme by adding new Elements, widgets and options.
15
+ * Version: 2.5.2
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
100
  }
101
  }
102
 
103
+ // Flush dependency check on absence of core element plugin
104
+ add_action( 'plugins_loaded', function(){
105
+ if( ! function_exists( 'AUXELS' ) ){
106
+ delete_transient( 'auxels_plugin_requirements_check' );
107
+ delete_transient( 'auxpfo_plugin_requirements_check' );
108
+ delete_transient( 'auxshp_plugin_requirements_check' );
109
+ delete_transient( 'auxnew_plugin_requirements_check' );
110
+ delete_transient( 'auxpro_plugin_requirements_check' );
111
+ }
112
+ });
113
+
114
  /**
115
  * Initialize the plugin
116
  * ===========================================================================*/
includes/classes/class-auxin-demo-importer.php CHANGED
@@ -429,19 +429,25 @@ class Auxin_Demo_Importer {
429
  public function import_options( array $options ) {
430
  $auxin_custom_images = $this->get_options_by_type( 'image' );
431
  extract( $options );
 
 
 
 
 
432
 
433
  foreach ( $theme_options as $auxin_key => $auxin_value ) {
434
  if ( in_array( $auxin_key, $auxin_custom_images ) && ! empty( $auxin_value ) ) {
435
  // This line is for changing the old attachment ID with new one.
436
  $auxin_value = $this->get_attachment_id( 'auxin_import_id', $auxin_value );
437
  }
438
- // set old header template value to new header template option
439
- if( $auxin_key == 'site_header_template' && ! is_numeric( $auxin_value ) ) {
440
- $template = get_page_by_path( $auxin_value, OBJECT, 'elementor_library' );
441
- if( $template instanceof WP_Post ){
442
- auxin_update_option( 'site_elementor_header_edit_template', $template->ID );
443
- auxin_update_option( 'site_elementor_header_template', $template->ID );
444
- }
 
445
  continue;
446
  }
447
  // Update exclusive auxin options
@@ -793,6 +799,10 @@ class Auxin_Demo_Importer {
793
  auxin_set_transient( 'aux-old-products-id-transformation', maybe_serialize($stored_products_id), 48 * HOUR_IN_SECONDS );
794
  }
795
 
 
 
 
 
796
  //Check post terms existence
797
  if ( ! empty( $post['post_terms'] ) ){
798
  // Start adding post terms
429
  public function import_options( array $options ) {
430
  $auxin_custom_images = $this->get_options_by_type( 'image' );
431
  extract( $options );
432
+
433
+ $elementor_header_footer_options = array(
434
+ 'site_elementor_header_template' => 'site_elementor_header_edit_template',
435
+ 'site_elementor_footer_template' => 'site_elementor_footer_edit_template',
436
+ );
437
 
438
  foreach ( $theme_options as $auxin_key => $auxin_value ) {
439
  if ( in_array( $auxin_key, $auxin_custom_images ) && ! empty( $auxin_value ) ) {
440
  // This line is for changing the old attachment ID with new one.
441
  $auxin_value = $this->get_attachment_id( 'auxin_import_id', $auxin_value );
442
  }
443
+
444
+ if ( in_array( $auxin_key, array_keys( $elementor_header_footer_options ) ) ) {
445
+ $auxin_new_value = auxin_get_transient( "aux-elementor-library-{$auxin_value}-changs-to" );
446
+
447
+ auxin_update_option( $elementor_header_footer_options[ $auxin_key ] , maybe_unserialize( $auxin_new_value ) );
448
+ auxin_update_option( $auxin_key , maybe_unserialize( $auxin_new_value ) );
449
+
450
+ auxin_delete_transient( "aux-elementor-library-{$auxin_value}-changs-to" );
451
  continue;
452
  }
453
  // Update exclusive auxin options
799
  auxin_set_transient( 'aux-old-products-id-transformation', maybe_serialize($stored_products_id), 48 * HOUR_IN_SECONDS );
800
  }
801
 
802
+ if ( $post['post_type'] == 'elementor_library' ) {
803
+ auxin_set_transient( "aux-elementor-library-{$post['ID']}-changs-to", $post_id, 48 * HOUR_IN_SECONDS );
804
+ }
805
+
806
  //Check post terms existence
807
  if ( ! empty( $post['post_terms'] ) ){
808
  // Start adding post terms
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.5.1' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.5.2' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
includes/elementor/class-auxin-elementor-core-elements.php CHANGED
@@ -360,7 +360,10 @@ final class Elements {
360
  'file' => $this->dir_path . '/widgets/theme-elements/modern-search.php',
361
  'class' => 'Elements\Theme_Elements\ModernSearch'
362
  ],
363
-
 
 
 
364
  ];
365
 
366
  if ( class_exists('WooCommerce') ) {
360
  'file' => $this->dir_path . '/widgets/theme-elements/modern-search.php',
361
  'class' => 'Elements\Theme_Elements\ModernSearch'
362
  ],
363
+ '245' => [
364
+ 'file' => $this->dir_path . '/widgets/theme-elements/breadcrumbs.php',
365
+ 'class' => 'Elements\Theme_Elements\Breadcrumbs'
366
+ ]
367
  ];
368
 
369
  if ( class_exists('WooCommerce') ) {
includes/elementor/modules/dynamic-tags/featured-colors.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Auxin\Plugin\CoreElements\Elementor\Modules\DynamicTags;
3
+
4
+ use Elementor\Controls_Manager;
5
+ use Elementor\Core\DynamicTags\Tag;
6
+ use Elementor\Modules\DynamicTags\Module as TagsModule;
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly
10
+ }
11
+
12
+ class Auxin_Featured_Colors extends Tag {
13
+
14
+ public function get_name() {
15
+ return 'aux-featured-colors';
16
+ }
17
+
18
+ public function get_title() {
19
+ return __( 'Featured Colors', 'auxin-elements' );
20
+ }
21
+
22
+ public function get_group() {
23
+ return 'colors';
24
+ }
25
+
26
+ public function get_categories() {
27
+ return [
28
+ TagsModule::COLOR_CATEGORY
29
+ ];
30
+ }
31
+
32
+ public function get_colors() {
33
+ $items = [
34
+ '' => __( 'Select...', 'auxin-elements' )
35
+ ];
36
+
37
+ for( $i = 1; $i <= 8 ; ++$i ) {
38
+ $items[$i] = sprintf( __( 'Color %s', THEME_DOMAIN ), $i );
39
+ }
40
+
41
+ return $items;
42
+ }
43
+
44
+ public function is_settings_required() {
45
+ return true;
46
+ }
47
+
48
+ protected function _register_controls() {
49
+ $this->add_control(
50
+ 'key',
51
+ [
52
+ 'label' => __( 'Colors', 'auxin-elements' ),
53
+ 'type' => Controls_Manager::SELECT,
54
+ 'options' => $this->get_colors()
55
+ ]
56
+ );
57
+ }
58
+
59
+ protected function get_color() {
60
+ if( $key = $this->get_settings( 'key' ) ){
61
+ return "var( --auxin-featured-color-{$key} )";
62
+ }
63
+
64
+ return '';
65
+ }
66
+
67
+ public function get_value( array $options = [] ) {
68
+ return $this->get_color();
69
+ }
70
+
71
+ public function render() {
72
+ echo $this->get_color();
73
+ }
74
+
75
+ }
includes/elementor/modules/dynamic-tags/post-custom-field.php CHANGED
@@ -27,7 +27,7 @@ class Post_Custom_Field extends Tag {
27
  return [
28
  TagsModule::TEXT_CATEGORY,
29
  TagsModule::URL_CATEGORY,
30
- TagsModule::POST_META_CATEGORY,
31
  ];
32
  }
33
 
27
  return [
28
  TagsModule::TEXT_CATEGORY,
29
  TagsModule::URL_CATEGORY,
30
+ TagsModule::POST_META_CATEGORY
31
  ];
32
  }
33
 
includes/elementor/modules/settings/general/manager.php CHANGED
@@ -64,9 +64,11 @@ class Manager extends baseManager
64
  }
65
 
66
  protected function save_settings( array $settings, $document, $data = null ){
 
67
  // TODO save the control values as page meta fields by looping through $settings array
68
  // $document->update_main_meta( $meta_key, $value );
69
 
70
  error_log( print_r( $settings, true ) );
 
71
  }
72
  }
64
  }
65
 
66
  protected function save_settings( array $settings, $document, $data = null ){
67
+ /**
68
  // TODO save the control values as page meta fields by looping through $settings array
69
  // $document->update_main_meta( $meta_key, $value );
70
 
71
  error_log( print_r( $settings, true ) );
72
+ */
73
  }
74
  }
includes/elementor/modules/templates-types-manager.php CHANGED
@@ -127,6 +127,12 @@ class Templates_Types_Manager {
127
  'group' => 'post',
128
  'title' => 'Post',
129
  ),
 
 
 
 
 
 
130
  // 'aux-post-date' => array(
131
  // 'file' => AUXELS_INC_DIR . '/elementor/modules/dynamic-tags/post-date.php',
132
  // 'class' => 'DynamicTags\Post_Date',
127
  'group' => 'post',
128
  'title' => 'Post',
129
  ),
130
+ 'aux-featured-colors' => array(
131
+ 'file' => AUXELS_INC_DIR . '/elementor/modules/dynamic-tags/featured-colors.php',
132
+ 'class' => 'DynamicTags\Auxin_Featured_Colors',
133
+ 'group' => 'colors',
134
+ 'title' => 'Colors',
135
+ ),
136
  // 'aux-post-date' => array(
137
  // 'file' => AUXELS_INC_DIR . '/elementor/modules/dynamic-tags/post-date.php',
138
  // 'class' => 'DynamicTags\Post_Date',
includes/elementor/widgets/accordion.php CHANGED
@@ -178,6 +178,164 @@ class Accordion extends Widget_Base {
178
  /* Style TAB
179
  /*-----------------------------------------------------------------------------------*/
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  /* Title Bar Section
182
  /*-------------------------------------*/
183
 
@@ -266,20 +424,20 @@ class Accordion extends Widget_Base {
266
  );
267
 
268
  $this->add_group_control(
269
- Group_Control_Border::get_type(),
270
  array(
271
- 'name' => 'title_bar_border_normal',
272
  'selector' => '{{WRAPPER}} .aux-toggle-header',
273
- 'separator' => 'none'
274
  )
275
  );
276
 
277
  $this->add_group_control(
278
- Group_Control_Background::get_type(),
279
  array(
280
- 'name' => 'title_bar_background_normal',
281
  'selector' => '{{WRAPPER}} .aux-toggle-header',
282
- 'separator' => 'none'
283
  )
284
  );
285
 
@@ -297,27 +455,27 @@ class Accordion extends Widget_Base {
297
  Group_Control_Box_Shadow::get_type(),
298
  array(
299
  'name' => 'title_bar_boxshadow_hover',
300
- 'label' => __( 'Box Shadow Normal', 'auxin-elements' ),
301
  'selector' => '{{WRAPPER}} .aux-toggle-header:hover',
302
  'separator' => 'none'
303
  )
304
  );
305
 
306
  $this->add_group_control(
307
- Group_Control_Border::get_type(),
308
  array(
309
- 'name' => 'title_bar_border_hover',
310
  'selector' => '{{WRAPPER}} .aux-toggle-header:hover',
311
- 'separator' => 'none'
312
  )
313
  );
314
 
315
  $this->add_group_control(
316
- Group_Control_Background::get_type(),
317
  array(
318
- 'name' => 'title_bar_background_hover',
319
  'selector' => '{{WRAPPER}} .aux-toggle-header:hover',
320
- 'separator' => 'none'
321
  )
322
  );
323
 
@@ -335,27 +493,27 @@ class Accordion extends Widget_Base {
335
  Group_Control_Box_Shadow::get_type(),
336
  array(
337
  'name' => 'title_bar_boxshadow_active',
338
- 'label' => __( 'Box Shadow Normal', 'auxin-elements' ),
339
  'selector' => '{{WRAPPER}} .active .aux-toggle-header',
340
  'separator' => 'none'
341
  )
342
  );
343
 
344
  $this->add_group_control(
345
- Group_Control_Border::get_type(),
346
  array(
347
- 'name' => 'title_bar_border_active',
348
  'selector' => '{{WRAPPER}} .active .aux-toggle-header',
349
- 'separator' => 'none'
350
  )
351
  );
352
 
353
  $this->add_group_control(
354
- Group_Control_Background::get_type(),
355
  array(
356
- 'name' => 'title_bar_background_active',
357
  'selector' => '{{WRAPPER}} .active .aux-toggle-header',
358
- 'separator' => 'none'
359
  )
360
  );
361
 
@@ -420,6 +578,24 @@ class Accordion extends Widget_Base {
420
 
421
  $this->end_controls_tab();
422
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  $this->end_controls_tabs();
424
 
425
  $this->add_group_control(
@@ -514,20 +690,20 @@ class Accordion extends Widget_Base {
514
  );
515
 
516
  $this->add_group_control(
517
- Group_Control_Border::get_type(),
518
  array(
519
- 'name' => 'content_border',
520
  'selector' => '{{WRAPPER}} .aux-toggle-content',
521
- 'separator' => 'none'
522
  )
523
  );
524
 
525
  $this->add_group_control(
526
- Group_Control_Background::get_type(),
527
  array(
528
- 'name' => 'content_background',
529
  'selector' => '{{WRAPPER}} .aux-toggle-content',
530
- 'separator' => 'none'
531
  )
532
  );
533
 
178
  /* Style TAB
179
  /*-----------------------------------------------------------------------------------*/
180
 
181
+ /* Accordion Item Section
182
+ /*-------------------------------------*/
183
+
184
+ $this->start_controls_section(
185
+ 'item_container_section',
186
+ array(
187
+ 'label' => __( 'Item Wrapper', 'auxin-elements' ),
188
+ 'tab' => Controls_Manager::TAB_STYLE
189
+ )
190
+ );
191
+
192
+ $this->add_responsive_control(
193
+ 'item_container_margin',
194
+ array(
195
+ 'label' => __( 'Margin', 'auxin-elements' ),
196
+ 'type' => Controls_Manager::DIMENSIONS,
197
+ 'size_units' => array( 'px', 'em' ),
198
+ 'allowed_dimensions' => 'all',
199
+ 'selectors' => array(
200
+ '{{WRAPPER}} .aux-toggle-item' => 'margin:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
201
+ )
202
+ )
203
+ );
204
+
205
+ $this->add_control(
206
+ 'item_container_border_radius',
207
+ array(
208
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
209
+ 'type' => Controls_Manager::DIMENSIONS,
210
+ 'size_units' => array( 'px', 'em', '%' ),
211
+ 'selectors' => array(
212
+ '{{WRAPPER}} .aux-toggle-item' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}; overflow:hidden;'
213
+ ),
214
+ 'allowed_dimensions' => 'all',
215
+ 'separator' => 'after'
216
+ )
217
+ );
218
+
219
+ $this->start_controls_tabs( 'item_container_status' );
220
+
221
+ $this->start_controls_tab(
222
+ 'item_container_status_normal',
223
+ array(
224
+ 'label' => __( 'Normal' , 'auxin-elements' )
225
+ )
226
+ );
227
+
228
+ $this->add_group_control(
229
+ Group_Control_Box_Shadow::get_type(),
230
+ array(
231
+ 'name' => 'item_container_boxshadow_normal',
232
+ 'label' => __( 'Box Shadow', 'auxin-elements' ),
233
+ 'selector' => '{{WRAPPER}} .aux-toggle-item',
234
+ 'separator' => 'none'
235
+ )
236
+ );
237
+
238
+ $this->add_group_control(
239
+ Group_Control_Background::get_type(),
240
+ array(
241
+ 'name' => 'item_container_background_normal',
242
+ 'selector' => '{{WRAPPER}} .aux-toggle-item',
243
+ 'separator' => 'before'
244
+ )
245
+ );
246
+
247
+ $this->add_group_control(
248
+ Group_Control_Border::get_type(),
249
+ array(
250
+ 'name' => 'item_container_border_normal',
251
+ 'selector' => '{{WRAPPER}} .aux-toggle-item',
252
+ 'separator' => 'before'
253
+ )
254
+ );
255
+
256
+ $this->end_controls_tab();
257
+
258
+
259
+ $this->start_controls_tab(
260
+ 'item_container_status_hover',
261
+ array(
262
+ 'label' => __( 'Hover' , 'auxin-elements' )
263
+ )
264
+ );
265
+
266
+ $this->add_group_control(
267
+ Group_Control_Box_Shadow::get_type(),
268
+ array(
269
+ 'name' => 'item_container_boxshadow_hover',
270
+ 'label' => __( 'Box Shadow', 'auxin-elements' ),
271
+ 'selector' => '{{WRAPPER}} .aux-toggle-item:hover',
272
+ 'separator' => 'none'
273
+ )
274
+ );
275
+
276
+ $this->add_group_control(
277
+ Group_Control_Background::get_type(),
278
+ array(
279
+ 'name' => 'item_container_background_hover',
280
+ 'selector' => '{{WRAPPER}} .aux-toggle-item:hover',
281
+ 'separator' => 'before'
282
+ )
283
+ );
284
+
285
+ $this->add_group_control(
286
+ Group_Control_Border::get_type(),
287
+ array(
288
+ 'name' => 'item_container_border_hover',
289
+ 'selector' => '{{WRAPPER}} .aux-toggle-item:hover',
290
+ 'separator' => 'before'
291
+ )
292
+ );
293
+
294
+ $this->end_controls_tab();
295
+
296
+
297
+ $this->start_controls_tab(
298
+ 'item_container_status_active',
299
+ array(
300
+ 'label' => __( 'Selected' , 'auxin-elements' )
301
+ )
302
+ );
303
+
304
+ $this->add_group_control(
305
+ Group_Control_Box_Shadow::get_type(),
306
+ array(
307
+ 'name' => 'item_container_boxshadow_active',
308
+ 'label' => __( 'Box Shadow', 'auxin-elements' ),
309
+ 'selector' => '{{WRAPPER}} .active.aux-toggle-item',
310
+ 'separator' => 'none'
311
+ )
312
+ );
313
+
314
+ $this->add_group_control(
315
+ Group_Control_Background::get_type(),
316
+ array(
317
+ 'name' => 'item_container_background_active',
318
+ 'selector' => '{{WRAPPER}} .active.aux-toggle-item',
319
+ 'separator' => 'before'
320
+ )
321
+ );
322
+
323
+ $this->add_group_control(
324
+ Group_Control_Border::get_type(),
325
+ array(
326
+ 'name' => 'item_container_border_active',
327
+ 'selector' => '{{WRAPPER}} .active.aux-toggle-item',
328
+ 'separator' => 'before'
329
+ )
330
+ );
331
+
332
+ $this->end_controls_tab();
333
+
334
+ $this->end_controls_tabs();
335
+
336
+
337
+ $this->end_controls_section();
338
+
339
  /* Title Bar Section
340
  /*-------------------------------------*/
341
 
424
  );
425
 
426
  $this->add_group_control(
427
+ Group_Control_Background::get_type(),
428
  array(
429
+ 'name' => 'title_bar_background_normal',
430
  'selector' => '{{WRAPPER}} .aux-toggle-header',
431
+ 'separator' => 'before'
432
  )
433
  );
434
 
435
  $this->add_group_control(
436
+ Group_Control_Border::get_type(),
437
  array(
438
+ 'name' => 'title_bar_border_normal',
439
  'selector' => '{{WRAPPER}} .aux-toggle-header',
440
+ 'separator' => 'before'
441
  )
442
  );
443
 
455
  Group_Control_Box_Shadow::get_type(),
456
  array(
457
  'name' => 'title_bar_boxshadow_hover',
458
+ 'label' => __( 'Box Shadow', 'auxin-elements' ),
459
  'selector' => '{{WRAPPER}} .aux-toggle-header:hover',
460
  'separator' => 'none'
461
  )
462
  );
463
 
464
  $this->add_group_control(
465
+ Group_Control_Background::get_type(),
466
  array(
467
+ 'name' => 'title_bar_background_hover',
468
  'selector' => '{{WRAPPER}} .aux-toggle-header:hover',
469
+ 'separator' => 'before'
470
  )
471
  );
472
 
473
  $this->add_group_control(
474
+ Group_Control_Border::get_type(),
475
  array(
476
+ 'name' => 'title_bar_border_hover',
477
  'selector' => '{{WRAPPER}} .aux-toggle-header:hover',
478
+ 'separator' => 'before'
479
  )
480
  );
481
 
493
  Group_Control_Box_Shadow::get_type(),
494
  array(
495
  'name' => 'title_bar_boxshadow_active',
496
+ 'label' => __( 'Box Shadow', 'auxin-elements' ),
497
  'selector' => '{{WRAPPER}} .active .aux-toggle-header',
498
  'separator' => 'none'
499
  )
500
  );
501
 
502
  $this->add_group_control(
503
+ Group_Control_Background::get_type(),
504
  array(
505
+ 'name' => 'title_bar_background_active',
506
  'selector' => '{{WRAPPER}} .active .aux-toggle-header',
507
+ 'separator' => 'before'
508
  )
509
  );
510
 
511
  $this->add_group_control(
512
+ Group_Control_Border::get_type(),
513
  array(
514
+ 'name' => 'title_bar_border_active',
515
  'selector' => '{{WRAPPER}} .active .aux-toggle-header',
516
+ 'separator' => 'before'
517
  )
518
  );
519
 
578
 
579
  $this->end_controls_tab();
580
 
581
+ $this->start_controls_tab(
582
+ 'title_color_selected',
583
+ array(
584
+ 'label' => __( 'Selected' , 'auxin-elements' )
585
+ )
586
+ );
587
+
588
+ $this->add_control(
589
+ 'title_selected_color',
590
+ array(
591
+ 'label' => __( 'Color', 'auxin-elements' ),
592
+ 'type' => Controls_Manager::COLOR,
593
+ 'selectors' => array(
594
+ '{{WRAPPER}} .active .aux-toggle-header' => 'color: {{VALUE}} !important;',
595
+ )
596
+ )
597
+ );
598
+
599
  $this->end_controls_tabs();
600
 
601
  $this->add_group_control(
690
  );
691
 
692
  $this->add_group_control(
693
+ Group_Control_Background::get_type(),
694
  array(
695
+ 'name' => 'content_background',
696
  'selector' => '{{WRAPPER}} .aux-toggle-content',
697
+ 'separator' => 'before'
698
  )
699
  );
700
 
701
  $this->add_group_control(
702
+ Group_Control_Border::get_type(),
703
  array(
704
+ 'name' => 'content_border',
705
  'selector' => '{{WRAPPER}} .aux-toggle-content',
706
+ 'separator' => 'before'
707
  )
708
  );
709
 
includes/elementor/widgets/carousel-navigation.php CHANGED
@@ -112,8 +112,11 @@ class CarouselNavigation extends Widget_Base {
112
  'prev_icon',
113
  [
114
  'label' => __('Previous Button','auxin-elements' ),
115
- 'type' => 'aux-icon',
116
- 'default' => 'auxicon-chevron-left-2',
 
 
 
117
  'condition' => [
118
  'nav_type' => ['custom']
119
  ]
@@ -124,8 +127,11 @@ class CarouselNavigation extends Widget_Base {
124
  'next_icon',
125
  [
126
  'label' => __('Next Button','auxin-elements' ),
127
- 'type' => 'aux-icon',
128
- 'default' => 'auxicon-chevron-right-2',
 
 
 
129
  'condition' => [
130
  'nav_type' => ['custom']
131
  ]
@@ -136,6 +142,7 @@ class CarouselNavigation extends Widget_Base {
136
  'nav_target',
137
  [
138
  'label' => __('Carousel Target','auxin-elements' ),
 
139
  'type' => Controls_Manager::TEXT,
140
  'default' => '',
141
  'placeholder' => '.carousel-classname'
@@ -486,12 +493,14 @@ class CarouselNavigation extends Widget_Base {
486
  <?php
487
  break;
488
  case 'custom':
 
 
489
  ;?>
490
  <div class="aux-prev aux-prev-custom aux-custom-nav">
491
- <span class="<?php echo $settings['prev_icon'];?>"></span>
492
  </div>
493
  <div class="aux-next aux-next-custom aux-custom-nav">
494
- <span class="<?php echo $settings['next_icon'];?>"></span>
495
  </div>
496
  <?php
497
  break;
112
  'prev_icon',
113
  [
114
  'label' => __('Previous Button','auxin-elements' ),
115
+ 'type' => Controls_Manager::ICONS,
116
+ 'default' => [
117
+ 'value' => 'auxicon-chevron-left-2',
118
+ 'library' => 'auxicon'
119
+ ],
120
  'condition' => [
121
  'nav_type' => ['custom']
122
  ]
127
  'next_icon',
128
  [
129
  'label' => __('Next Button','auxin-elements' ),
130
+ 'type' => Controls_Manager::ICONS,
131
+ 'default' => [
132
+ 'value' => 'auxicon-chevron-right-2',
133
+ 'library' => 'auxicon'
134
+ ],
135
  'condition' => [
136
  'nav_type' => ['custom']
137
  ]
142
  'nav_target',
143
  [
144
  'label' => __('Carousel Target','auxin-elements' ),
145
+ 'description' => __('CSS selector of target carousel.','auxin-elements' ),
146
  'type' => Controls_Manager::TEXT,
147
  'default' => '',
148
  'placeholder' => '.carousel-classname'
493
  <?php
494
  break;
495
  case 'custom':
496
+ $prev_icon = isset( $settings['prev_icon']['value'] ) ? $settings['prev_icon']['value'] : $settings['prev_icon'];
497
+ $next_icon = isset( $settings['next_icon']['value'] ) ? $settings['next_icon']['value'] : $settings['next_icon'];
498
  ;?>
499
  <div class="aux-prev aux-prev-custom aux-custom-nav">
500
+ <span class="<?php echo esc_attr( $prev_icon ); ?>"></span>
501
  </div>
502
  <div class="aux-next aux-next-custom aux-custom-nav">
503
+ <span class="<?php echo esc_attr( $next_icon ); ?>"></span>
504
  </div>
505
  <?php
506
  break;
includes/elementor/widgets/contact-form.php CHANGED
@@ -4,6 +4,11 @@ namespace Auxin\Plugin\CoreElements\Elementor\Elements;
4
  use Elementor\Plugin;
5
  use Elementor\Widget_Base;
6
  use Elementor\Controls_Manager;
 
 
 
 
 
7
 
8
 
9
  if ( ! defined( 'ABSPATH' ) ) {
@@ -72,7 +77,7 @@ class ContactForm extends Widget_Base {
72
  * @return string Widget icon.
73
  */
74
  public function get_categories() {
75
- return array ('auxin-core');
76
  }
77
 
78
  /**
@@ -99,14 +104,14 @@ class ContactForm extends Widget_Base {
99
  $this->add_control(
100
  'type',
101
  array(
102
- 'label' => __('Contact form type','auxin-elements' ),
103
  'description' => __('Specifies contact form element\'s type. Whether to use built-in form or Contact Form 7.', 'auxin-elements' ),
104
  'label_block' => true,
105
  'type' => Controls_Manager::SELECT,
106
  'default' => 'phlox',
107
  'options' => array(
108
  'phlox' => __('Phlox Contact Form', 'auxin-elements' ),
109
- 'cf7' => __('Contact Form 7 plugin', 'auxin-elements' ),
110
  )
111
  )
112
  );
@@ -114,12 +119,14 @@ class ContactForm extends Widget_Base {
114
  $this->add_control(
115
  'cf7_shortcode',
116
  array(
117
- 'label' => __('Contact form 7 shortcode','auxin-elements' ),
118
- 'description' => __('Put one of your Contact form 7 shortcodes that you created.','auxin-elements' ),
119
  'type' => Controls_Manager::TEXT,
120
- 'condition' => array(
121
- 'type' => array('cf7'),
122
- )
 
 
123
  )
124
  );
125
 
@@ -129,14 +136,1464 @@ class ContactForm extends Widget_Base {
129
  'label' => __('Email','auxin-elements' ),
130
  'description' => __('Email address of message\'s recipient', 'auxin-elements' ),
131
  'type' => Controls_Manager::TEXT,
 
132
  'input_type' => 'email',
133
- 'condition' => array(
134
- 'type' => array('phlox'),
135
- )
 
136
  )
137
  );
138
 
139
  $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  }
141
 
142
  /**
4
  use Elementor\Plugin;
5
  use Elementor\Widget_Base;
6
  use Elementor\Controls_Manager;
7
+ use Elementor\Group_Control_Typography;
8
+ use Elementor\Group_Control_Background;
9
+ use Elementor\Group_Control_Box_Shadow;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Group_Control_Border;
12
 
13
 
14
  if ( ! defined( 'ABSPATH' ) ) {
77
  * @return string Widget icon.
78
  */
79
  public function get_categories() {
80
+ return ['auxin-core'];
81
  }
82
 
83
  /**
104
  $this->add_control(
105
  'type',
106
  array(
107
+ 'label' => __('Contact form Type','auxin-elements' ),
108
  'description' => __('Specifies contact form element\'s type. Whether to use built-in form or Contact Form 7.', 'auxin-elements' ),
109
  'label_block' => true,
110
  'type' => Controls_Manager::SELECT,
111
  'default' => 'phlox',
112
  'options' => array(
113
  'phlox' => __('Phlox Contact Form', 'auxin-elements' ),
114
+ 'cf7' => __('Contact Form 7 Shortcode', 'auxin-elements' ),
115
  )
116
  )
117
  );
119
  $this->add_control(
120
  'cf7_shortcode',
121
  array(
122
+ 'label' => __('Shortcode','auxin-elements' ),
123
+ 'description' => __('Put a Contact Form 7 shortcode that you have already created.','auxin-elements' ),
124
  'type' => Controls_Manager::TEXT,
125
+ 'label_block' => true,
126
+ 'separator' => 'before',
127
+ 'condition' => [
128
+ 'type' => ['cf7']
129
+ ],
130
  )
131
  );
132
 
136
  'label' => __('Email','auxin-elements' ),
137
  'description' => __('Email address of message\'s recipient', 'auxin-elements' ),
138
  'type' => Controls_Manager::TEXT,
139
+ 'label_block' => true,
140
  'input_type' => 'email',
141
+ 'separator' => 'before',
142
+ 'condition' => [
143
+ 'type' => ['phlox']
144
+ ]
145
  )
146
  );
147
 
148
  $this->end_controls_section();
149
+
150
+ /*-----------------------------------------------------------------------------------*/
151
+ /* Style TAB
152
+ /*-----------------------------------------------------------------------------------*/
153
+
154
+ /* -------------------------------------------------------------------------- */
155
+ /* General Input Style */
156
+ /* -------------------------------------------------------------------------- */
157
+ $this->start_controls_section(
158
+ 'general_input_section',
159
+ [
160
+ 'label' => __('All Inputs', 'auxin-elements' ),
161
+ 'tab' => Controls_Manager::TAB_STYLE,
162
+ ]
163
+ );
164
+
165
+ $this->add_group_control(
166
+ Group_Control_Typography::get_type(),
167
+ [
168
+ 'name' => 'general_input_typography',
169
+ 'label' => __( 'Typography', 'auxin-elements' ),
170
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
171
+ 'selector' => '{{WRAPPER}} input:not([type="submit"])'
172
+ ]
173
+ );
174
+
175
+ $this->add_control(
176
+ 'general_input_color',
177
+ [
178
+ 'label' => __( 'Color', 'auxin-elements' ),
179
+ 'type' => Controls_Manager::COLOR,
180
+ 'selectors' => [
181
+ '{{WRAPPER}} input:not([type="submit"])' => 'color: {{VALUE}};'
182
+ ]
183
+ ]
184
+ );
185
+
186
+ $this->add_responsive_control(
187
+ 'general_input_width',
188
+ [
189
+ 'label' => __( 'Width', 'auxin-elements' ),
190
+ 'size_units' => [ 'px','em', '%'],
191
+ 'type' => Controls_Manager::SLIDER,
192
+ 'range' => [
193
+ 'px' => [
194
+ 'min' => 0,
195
+ 'max' => 1000,
196
+ 'step' => 5,
197
+ ],
198
+ '%' => [
199
+ 'min' => 0,
200
+ 'max' => 100,
201
+ ],
202
+ 'em' => [
203
+ 'min' => 0,
204
+ 'max' => 100,
205
+ ],
206
+ ],
207
+ 'selectors' => [
208
+ '{{WRAPPER}} input:not([type="submit"])' => 'width: {{SIZE}}{{UNIT}};'
209
+ ]
210
+ ]
211
+ );
212
+
213
+ $this->add_responsive_control(
214
+ 'general_input_max_width',
215
+ [
216
+ 'label' => __( 'Max Width', 'auxin-elements' ),
217
+ 'size_units' => [ 'px','em', '%'],
218
+ 'type' => Controls_Manager::SLIDER,
219
+ 'range' => [
220
+ 'px' => [
221
+ 'min' => 0,
222
+ 'max' => 1000,
223
+ 'step' => 5
224
+ ],
225
+ '%' => [
226
+ 'min' => 0,
227
+ 'max' => 100
228
+ ],
229
+ 'em' => [
230
+ 'min' => 0,
231
+ 'max' => 100
232
+ ]
233
+ ],
234
+ 'selectors' => [
235
+ '{{WRAPPER}} input:not([type="submit"])' => 'max-width: {{SIZE}}{{UNIT}};'
236
+ ]
237
+ ]
238
+ );
239
+
240
+ $this->add_responsive_control(
241
+ 'general_input_height',
242
+ [
243
+ 'label' => __( 'Height', 'auxin-elements' ),
244
+ 'size_units' => [ 'px', 'em'],
245
+ 'type' => Controls_Manager::SLIDER,
246
+ 'range' => [
247
+ 'px' => [
248
+ 'min' => 0,
249
+ 'max' => 1000,
250
+ 'step' => 5
251
+ ],
252
+ '%' => [
253
+ 'min' => 0,
254
+ 'max' => 100
255
+ ],
256
+ 'em' => [
257
+ 'min' => 0,
258
+ 'max' => 100
259
+ ]
260
+ ],
261
+ 'selectors' => [
262
+ '{{WRAPPER}} input:not([type="submit"])' => 'height: {{SIZE}}{{UNIT}};'
263
+ ],
264
+ 'separator' => 'after'
265
+ ]
266
+ );
267
+
268
+
269
+ $this->add_group_control(
270
+ Group_Control_Border::get_type(),
271
+ [
272
+ 'name' => 'general_input_border',
273
+ 'selector' => '{{WRAPPER}} input:not([type="submit"])'
274
+ ]
275
+ );
276
+
277
+ $this->add_responsive_control(
278
+ 'general_input_border_radius',
279
+ [
280
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
281
+ 'type' => Controls_Manager::DIMENSIONS,
282
+ 'size_units' => [ 'px', '%' ],
283
+ 'selectors' => [
284
+ '{{WRAPPER}} input:not([type="submit"])' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
285
+ ],
286
+ ]
287
+ );
288
+
289
+ $this->add_responsive_control(
290
+ 'general_input_padding',
291
+ [
292
+ 'label' => __( 'Padding', 'auxin-elements' ),
293
+ 'type' => Controls_Manager::DIMENSIONS,
294
+ 'size_units' => [ 'px', '%', 'em' ],
295
+ 'selectors' => [
296
+ '{{WRAPPER}} input:not([type="submit"])' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
297
+ ],
298
+ 'separator' => 'after'
299
+ ]
300
+ );
301
+
302
+ // Background and Box Shadow for input - START
303
+ $this->start_controls_tabs( 'general_input_tabs' );
304
+
305
+ $this->start_controls_tab(
306
+ 'general_input_tab_normal_state',
307
+ [
308
+ 'label' => __( 'Normal', 'auxin-elements' ),
309
+ ]
310
+ );
311
+
312
+ $this->add_group_control(
313
+ Group_Control_Background::get_type(),
314
+ [
315
+ 'name' => 'general_input_background',
316
+ 'selector' => '{{WRAPPER}} input:not([type="submit"])',
317
+ 'types' => [ 'classic', 'gradient']
318
+ ]
319
+ );
320
+
321
+ $this->add_group_control(
322
+ Group_Control_Box_Shadow::get_type(),
323
+ [
324
+ 'name' => 'general_input_box_shadow',
325
+ 'selector' => '{{WRAPPER}} input:not([type="submit"])'
326
+ ]
327
+ );
328
+
329
+ $this->end_controls_tab();
330
+
331
+ $this->start_controls_tab(
332
+ 'general_input_tab_hover_state',
333
+ [
334
+ 'label' => __( 'Hover', 'auxin-elements' ),
335
+ ]
336
+ );
337
+
338
+ $this->add_group_control(
339
+ Group_Control_Background::get_type(),
340
+ [
341
+ 'name' => 'general_input_background_hover',
342
+ 'selector' => '{{WRAPPER}} input:not([type="submit"]):hover',
343
+ 'types' => [ 'classic', 'gradient']
344
+ ]
345
+ );
346
+
347
+ $this->add_group_control(
348
+ Group_Control_Box_Shadow::get_type(),
349
+ [
350
+ 'name' => 'general_input_box_shadow_hover',
351
+ 'selector' => '{{WRAPPER}} input:not([type="submit"]):hover'
352
+ ]
353
+ );
354
+
355
+ $this->add_control(
356
+ 'general_input_transition',
357
+ [
358
+ 'label' => __( 'Transition Duration', 'auxin-elements' ),
359
+ 'type' => Controls_Manager::SLIDER,
360
+ 'default' => [
361
+ 'size' => 0.3,
362
+ ],
363
+ 'range' => [
364
+ 'px' => [
365
+ 'max' => 3,
366
+ 'step' => 0.1,
367
+ ],
368
+ ],
369
+ 'render_type' => 'ui',
370
+ 'selectors' => [
371
+ '{{WRAPPER}} input:not([type="submit"])' => "transition:all ease-out {{SIZE}}s;"
372
+ ]
373
+ ]
374
+ );
375
+
376
+ $this->end_controls_tab();
377
+
378
+ $this->end_controls_tabs();
379
+ // Background and Box Shadow for input - END
380
+
381
+ $this->end_controls_section();
382
+
383
+ /* -------------------------------------------------------------------------- */
384
+ /* Placeholder Style */
385
+ /* -------------------------------------------------------------------------- */
386
+ $this->start_controls_section(
387
+ 'placeholder_section',
388
+ [
389
+ 'label' => __('Input Placeholder', 'auxin-elements' ),
390
+ 'tab' => Controls_Manager::TAB_STYLE
391
+ ]
392
+ );
393
+
394
+ $this->add_group_control(
395
+ Group_Control_Typography::get_type(),
396
+ [
397
+ 'name' => 'placeholder_typography',
398
+ 'label' => __( 'Typography', 'auxin-elements' ),
399
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
400
+ 'selector' => '{{WRAPPER}} input:not([type="submit"])::placeholder'
401
+ ]
402
+ );
403
+
404
+ $this->add_control(
405
+ 'placeholder_color',
406
+ [
407
+ 'label' => __( 'Color', 'auxin-elements' ),
408
+ 'type' => Controls_Manager::COLOR,
409
+ 'selectors' => [
410
+ '{{WRAPPER}} input:not([type="submit"])::placeholder' => 'color: {{VALUE}};'
411
+ ]
412
+ ]
413
+ );
414
+
415
+ $this->end_controls_section();
416
+
417
+ /* -------------------------------------------------------------------------- */
418
+ /* Text Input Style */
419
+ /* -------------------------------------------------------------------------- */
420
+
421
+ $this->start_controls_section(
422
+ 'text_input_section',
423
+ [
424
+ 'label' => __('Text Inputs', 'auxin-elements' ),
425
+ 'tab' => Controls_Manager::TAB_STYLE,
426
+ ]
427
+ );
428
+
429
+ $this->add_group_control(
430
+ Group_Control_Typography::get_type(),
431
+ [
432
+ 'name' => 'text_input_typography',
433
+ 'label' => __( 'Typography', 'auxin-elements' ),
434
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
435
+ 'selector' => '{{WRAPPER}} input[type="text"]'
436
+ ]
437
+ );
438
+
439
+ $this->add_control(
440
+ 'text_input_color',
441
+ [
442
+ 'label' => __( 'Color', 'auxin-elements' ),
443
+ 'type' => Controls_Manager::COLOR,
444
+ 'selectors' => [
445
+ '{{WRAPPER}} input[type="text"]' => 'color: {{VALUE}};'
446
+ ]
447
+ ]
448
+ );
449
+
450
+ $this->add_responsive_control(
451
+ 'text_input_width',
452
+ [
453
+ 'label' => __( 'Width', 'auxin-elements' ),
454
+ 'size_units' => [ 'px','em', '%'],
455
+ 'type' => Controls_Manager::SLIDER,
456
+ 'range' => [
457
+ 'px' => [
458
+ 'min' => 0,
459
+ 'max' => 1000,
460
+ 'step' => 5,
461
+ ],
462
+ '%' => [
463
+ 'min' => 0,
464
+ 'max' => 100,
465
+ ],
466
+ 'em' => [
467
+ 'min' => 0,
468
+ 'max' => 100,
469
+ ],
470
+ ],
471
+ 'selectors' => [
472
+ '{{WRAPPER}} input[type="text"]' => 'width: {{SIZE}}{{UNIT}};',
473
+ ],
474
+ ]
475
+ );
476
+
477
+ $this->add_responsive_control(
478
+ 'text_input_max_width',
479
+ [
480
+ 'label' => __( 'Max Width', 'auxin-elements' ),
481
+ 'size_units' => [ 'px','em', '%'],
482
+ 'type' => Controls_Manager::SLIDER,
483
+ 'range' => [
484
+ 'px' => [
485
+ 'min' => 0,
486
+ 'max' => 1000,
487
+ 'step' => 5
488
+ ],
489
+ '%' => [
490
+ 'min' => 0,
491
+ 'max' => 100
492
+ ],
493
+ 'em' => [
494
+ 'min' => 0,
495
+ 'max' => 100
496
+ ]
497
+ ],
498
+ 'selectors' => [
499
+ '{{WRAPPER}} input[type="text"]' => 'max-width: {{SIZE}}{{UNIT}};',
500
+ ]
501
+ ]
502
+ );
503
+
504
+ $this->add_responsive_control(
505
+ 'text_input_height',
506
+ [
507
+ 'label' => __( 'Height', 'auxin-elements' ),
508
+ 'size_units' => [ 'px', 'em'],
509
+ 'type' => Controls_Manager::SLIDER,
510
+ 'range' => [
511
+ 'px' => [
512
+ 'min' => 0,
513
+ 'max' => 1000,
514
+ 'step' => 5
515
+ ],
516
+ '%' => [
517
+ 'min' => 0,
518
+ 'max' => 100
519
+ ],
520
+ 'em' => [
521
+ 'min' => 0,
522
+ 'max' => 100
523
+ ]
524
+ ],
525
+ 'selectors' => [
526
+ '{{WRAPPER}} input[type="text"]' => 'height: {{SIZE}}{{UNIT}};',
527
+ ],
528
+ 'separator' => 'after'
529
+ ]
530
+ );
531
+
532
+
533
+ $this->add_group_control(
534
+ Group_Control_Border::get_type(),
535
+ [
536
+ 'name' => 'text_input_border',
537
+ 'selector' => '{{WRAPPER}} input[type="text"]'
538
+ ]
539
+ );
540
+
541
+ $this->add_responsive_control(
542
+ 'text_input_border_radius',
543
+ [
544
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
545
+ 'type' => Controls_Manager::DIMENSIONS,
546
+ 'size_units' => [ 'px', '%' ],
547
+ 'selectors' => [
548
+ '{{WRAPPER}} input[type="text"]' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
549
+ ],
550
+ ]
551
+ );
552
+
553
+ $this->add_responsive_control(
554
+ 'text_input_padding',
555
+ [
556
+ 'label' => __( 'Padding', 'auxin-elements' ),
557
+ 'type' => Controls_Manager::DIMENSIONS,
558
+ 'size_units' => [ 'px', '%', 'em' ],
559
+ 'selectors' => [
560
+ '{{WRAPPER}} input[type="text"]' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
561
+ ],
562
+ 'separator' => 'after'
563
+ ]
564
+ );
565
+
566
+ // Background and Box Shadow for input - START
567
+ $this->start_controls_tabs( 'text_input_tabs' );
568
+
569
+ $this->start_controls_tab(
570
+ 'text_input_tab_normal_state',
571
+ [
572
+ 'label' => __( 'Normal', 'auxin-elements' ),
573
+ ]
574
+ );
575
+
576
+ $this->add_group_control(
577
+ Group_Control_Background::get_type(),
578
+ [
579
+ 'name' => 'text_input_background',
580
+ 'selector' => '{{WRAPPER}} input[type="text"]',
581
+ 'types' => [ 'classic', 'gradient']
582
+ ]
583
+ );
584
+
585
+ $this->add_group_control(
586
+ Group_Control_Box_Shadow::get_type(),
587
+ [
588
+ 'name' => 'text_input_box_shadow',
589
+ 'selector' => '{{WRAPPER}} input[type="text"]'
590
+ ]
591
+ );
592
+
593
+ $this->end_controls_tab();
594
+
595
+ $this->start_controls_tab(
596
+ 'text_input_tab_hover_state',
597
+ [
598
+ 'label' => __( 'Hover', 'auxin-elements' ),
599
+ ]
600
+ );
601
+
602
+ $this->add_group_control(
603
+ Group_Control_Background::get_type(),
604
+ [
605
+ 'name' => 'text_input_background_hover',
606
+ 'selector' => '{{WRAPPER}} input[type="text"]:hover',
607
+ 'types' => [ 'classic', 'gradient']
608
+ ]
609
+ );
610
+
611
+ $this->add_group_control(
612
+ Group_Control_Box_Shadow::get_type(),
613
+ [
614
+ 'name' => 'text_input_box_shadow_hover',
615
+ 'selector' => '{{WRAPPER}} input[type="text"]:hover'
616
+ ]
617
+ );
618
+
619
+ $this->add_control(
620
+ 'text_input_transition',
621
+ [
622
+ 'label' => __( 'Transition Duration', 'auxin-elements' ),
623
+ 'type' => Controls_Manager::SLIDER,
624
+ 'default' => [
625
+ 'size' => 0.3,
626
+ ],
627
+ 'range' => [
628
+ 'px' => [
629
+ 'max' => 3,
630
+ 'step' => 0.1,
631
+ ],
632
+ ],
633
+ 'render_type' => 'ui',
634
+ 'selectors' => [
635
+ '{{WRAPPER}} input[type="text"]' => "transition:all ease-out {{SIZE}}s;"
636
+ ]
637
+ ]
638
+ );
639
+
640
+ $this->end_controls_tab();
641
+
642
+ $this->end_controls_tabs();
643
+ // Background and Box Shadow for input - END
644
+
645
+ $this->end_controls_section();
646
+
647
+ /* -------------------------------------------------------------------------- */
648
+ /* Email Input Style */
649
+ /* -------------------------------------------------------------------------- */
650
+ $this->start_controls_section(
651
+ 'email_input_section',
652
+ [
653
+ 'label' => __('Email Inputs', 'auxin-elements' ),
654
+ 'tab' => Controls_Manager::TAB_STYLE
655
+ ]
656
+ );
657
+
658
+ $this->add_group_control(
659
+ Group_Control_Typography::get_type(),
660
+ [
661
+ 'name' => 'email_input_typography',
662
+ 'label' => __( 'Typography', 'auxin-elements' ),
663
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
664
+ 'selector' => '{{WRAPPER}} input[type="email"]'
665
+ ]
666
+ );
667
+
668
+ $this->add_control(
669
+ 'email_input_color',
670
+ [
671
+ 'label' => __( 'Color', 'auxin-elements' ),
672
+ 'type' => Controls_Manager::COLOR,
673
+ 'selectors' => [
674
+ '{{WRAPPER}} input[type="email"]' => 'color: {{VALUE}};'
675
+ ]
676
+ ]
677
+ );
678
+
679
+ $this->add_responsive_control(
680
+ 'email_input_width',
681
+ [
682
+ 'label' => __( 'Width', 'auxin-elements' ),
683
+ 'size_units' => [ 'px','em', '%'],
684
+ 'type' => Controls_Manager::SLIDER,
685
+ 'range' => [
686
+ 'px' => [
687
+ 'min' => 0,
688
+ 'max' => 1000,
689
+ 'step' => 5,
690
+ ],
691
+ '%' => [
692
+ 'min' => 0,
693
+ 'max' => 100,
694
+ ],
695
+ 'em' => [
696
+ 'min' => 0,
697
+ 'max' => 100,
698
+ ],
699
+ ],
700
+ 'selectors' => [
701
+ '{{WRAPPER}} input[type="email"]' => 'width: {{SIZE}}{{UNIT}};'
702
+ ],
703
+ ]
704
+ );
705
+
706
+ $this->add_responsive_control(
707
+ 'email_input_max_width',
708
+ [
709
+ 'label' => __( 'Max Width', 'auxin-elements' ),
710
+ 'size_units' => [ 'px','em', '%'],
711
+ 'type' => Controls_Manager::SLIDER,
712
+ 'range' => [
713
+ 'px' => [
714
+ 'min' => 0,
715
+ 'max' => 1000,
716
+ 'step' => 5
717
+ ],
718
+ '%' => [
719
+ 'min' => 0,
720
+ 'max' => 100
721
+ ],
722
+ 'em' => [
723
+ 'min' => 0,
724
+ 'max' => 100
725
+ ]
726
+ ],
727
+ 'selectors' => [
728
+ '{{WRAPPER}} input[type="email"]' => 'max-width: {{SIZE}}{{UNIT}};'
729
+ ]
730
+ ]
731
+ );
732
+
733
+ $this->add_responsive_control(
734
+ 'email_input_height',
735
+ [
736
+ 'label' => __( 'Height', 'auxin-elements' ),
737
+ 'size_units' => [ 'px', 'em'],
738
+ 'type' => Controls_Manager::SLIDER,
739
+ 'range' => [
740
+ 'px' => [
741
+ 'min' => 0,
742
+ 'max' => 1000,
743
+ 'step' => 5
744
+ ],
745
+ '%' => [
746
+ 'min' => 0,
747
+ 'max' => 100
748
+ ],
749
+ 'em' => [
750
+ 'min' => 0,
751
+ 'max' => 100
752
+ ]
753
+ ],
754
+ 'selectors' => [
755
+ '{{WRAPPER}} input[type="email"]' => 'height: {{SIZE}}{{UNIT}};'
756
+ ],
757
+ 'separator' => 'after'
758
+ ]
759
+ );
760
+
761
+
762
+ $this->add_group_control(
763
+ Group_Control_Border::get_type(),
764
+ [
765
+ 'name' => 'email_input_border',
766
+ 'selector' => '{{WRAPPER}} input[type="email"]'
767
+ ]
768
+ );
769
+
770
+ $this->add_responsive_control(
771
+ 'email_input_border_radius',
772
+ [
773
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
774
+ 'type' => Controls_Manager::DIMENSIONS,
775
+ 'size_units' => [ 'px', '%' ],
776
+ 'selectors' => [
777
+ '{{WRAPPER}} input[type="email"]' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
778
+ ],
779
+ ]
780
+ );
781
+
782
+ $this->add_responsive_control(
783
+ 'email_input_padding',
784
+ [
785
+ 'label' => __( 'Padding', 'auxin-elements' ),
786
+ 'type' => Controls_Manager::DIMENSIONS,
787
+ 'size_units' => [ 'px', '%', 'em' ],
788
+ 'selectors' => [
789
+ '{{WRAPPER}} input[type="email"]' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
790
+ ],
791
+ 'separator' => 'after'
792
+ ]
793
+ );
794
+
795
+ // Background and Box Shadow for input - START
796
+ $this->start_controls_tabs( 'email_input_tabs' );
797
+
798
+ $this->start_controls_tab(
799
+ 'email_input_tab_normal_state',
800
+ [
801
+ 'label' => __( 'Normal', 'auxin-elements' ),
802
+ ]
803
+ );
804
+
805
+ $this->add_group_control(
806
+ Group_Control_Background::get_type(),
807
+ [
808
+ 'name' => 'email_input_background',
809
+ 'selector' => '{{WRAPPER}} input[type="email"]',
810
+ 'types' => [ 'classic', 'gradient']
811
+ ]
812
+ );
813
+
814
+ $this->add_group_control(
815
+ Group_Control_Box_Shadow::get_type(),
816
+ [
817
+ 'name' => 'email_input_box_shadow',
818
+ 'selector' => '{{WRAPPER}} input[type="email"]'
819
+ ]
820
+ );
821
+
822
+ $this->end_controls_tab();
823
+
824
+ $this->start_controls_tab(
825
+ 'email_input_tab_hover_state',
826
+ [
827
+ 'label' => __( 'Hover', 'auxin-elements' ),
828
+ ]
829
+ );
830
+
831
+ $this->add_group_control(
832
+ Group_Control_Background::get_type(),
833
+ [
834
+ 'name' => 'email_input_background_hover',
835
+ 'selector' => '{{WRAPPER}} input[type="email"]:hover',
836
+ 'types' => [ 'classic', 'gradient']
837
+ ]
838
+ );
839
+
840
+ $this->add_group_control(
841
+ Group_Control_Box_Shadow::get_type(),
842
+ [
843
+ 'name' => 'email_input_box_shadow_hover',
844
+ 'selector' => '{{WRAPPER}} input[type="email"]:hover'
845
+ ]
846
+ );
847
+
848
+ $this->add_control(
849
+ 'email_input_transition',
850
+ [
851
+ 'label' => __( 'Transition Duration', 'auxin-elements' ),
852
+ 'type' => Controls_Manager::SLIDER,
853
+ 'default' => [
854
+ 'size' => 0.3,
855
+ ],
856
+ 'range' => [
857
+ 'px' => [
858
+ 'max' => 3,
859
+ 'step' => 0.1,
860
+ ],
861
+ ],
862
+ 'render_type' => 'ui',
863
+ 'selectors' => [
864
+ '{{WRAPPER}} input[type="email"]' => "transition:all ease-out {{SIZE}}s;"
865
+ ]
866
+ ]
867
+ );
868
+
869
+ $this->end_controls_tab();
870
+
871
+ $this->end_controls_tabs();
872
+ // Background and Box Shadow for input - END
873
+
874
+ $this->end_controls_section();
875
+
876
+ /* -------------------------------------------------------------------------- */
877
+ /* Dropdown Style */
878
+ /* -------------------------------------------------------------------------- */
879
+ $this->start_controls_section(
880
+ 'dropdown_section',
881
+ [
882
+ 'label' => __('Dropdown', 'auxin-elements' ),
883
+ 'tab' => Controls_Manager::TAB_STYLE,
884
+ ]
885
+ );
886
+
887
+ $this->add_group_control(
888
+ Group_Control_Typography::get_type(),
889
+ [
890
+ 'name' => 'dropdown_typography',
891
+ 'label' => __( 'Typography', 'auxin-elements' ),
892
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
893
+ 'selector' => '{{WRAPPER}} select',
894
+ ]
895
+ );
896
+
897
+ $this->add_control(
898
+ 'dropdown_color',
899
+ [
900
+ 'label' => __( 'Color', 'auxin-elements' ),
901
+ 'type' => Controls_Manager::COLOR,
902
+ 'selectors' => [
903
+ '{{WRAPPER}} select' => 'color: {{VALUE}};',
904
+ ]
905
+ ]
906
+ );
907
+
908
+ $this->add_responsive_control(
909
+ 'dropdown_width',
910
+ [
911
+ 'label' => __( 'Width', 'auxin-elements' ),
912
+ 'size_units' => [ 'px','em', '%'],
913
+ 'type' => Controls_Manager::SLIDER,
914
+ 'range' => [
915
+ 'px' => [
916
+ 'min' => 0,
917
+ 'max' => 1000,
918
+ 'step' => 5,
919
+ ],
920
+ '%' => [
921
+ 'min' => 0,
922
+ 'max' => 100,
923
+ ],
924
+ 'em' => [
925
+ 'min' => 0,
926
+ 'max' => 100,
927
+ ],
928
+ ],
929
+ 'selectors' => [
930
+ '{{WRAPPER}} select' => 'width: {{SIZE}}{{UNIT}};',
931
+ ],
932
+ ]
933
+ );
934
+
935
+ $this->add_responsive_control(
936
+ 'dropdown_max_width',
937
+ [
938
+ 'label' => __( 'Max Width', 'auxin-elements' ),
939
+ 'size_units' => [ 'px','em', '%'],
940
+ 'type' => Controls_Manager::SLIDER,
941
+ 'range' => [
942
+ 'px' => [
943
+ 'min' => 0,
944
+ 'max' => 1000,
945
+ 'step' => 5
946
+ ],
947
+ '%' => [
948
+ 'min' => 0,
949
+ 'max' => 100
950
+ ],
951
+ 'em' => [
952
+ 'min' => 0,
953
+ 'max' => 100
954
+ ]
955
+ ],
956
+ 'selectors' => [
957
+ '{{WRAPPER}} select' => 'max-width: {{SIZE}}{{UNIT}};',
958
+ ]
959
+ ]
960
+ );
961
+
962
+ $this->add_responsive_control(
963
+ 'dropdown_height',
964
+ [
965
+ 'label' => __( 'Height', 'auxin-elements' ),
966
+ 'size_units' => [ 'px', 'em'],
967
+ 'type' => Controls_Manager::SLIDER,
968
+ 'range' => [
969
+ 'px' => [
970
+ 'min' => 0,
971
+ 'max' => 1000,
972
+ 'step' => 5
973
+ ],
974
+ '%' => [
975
+ 'min' => 0,
976
+ 'max' => 100
977
+ ],
978
+ 'em' => [
979
+ 'min' => 0,
980
+ 'max' => 100
981
+ ]
982
+ ],
983
+ 'selectors' => [
984
+ '{{WRAPPER}} select' => 'height: {{SIZE}}{{UNIT}};',
985
+ ],
986
+ 'separator' => 'after'
987
+ ]
988
+ );
989
+
990
+
991
+ $this->add_group_control(
992
+ Group_Control_Border::get_type(),
993
+ [
994
+ 'name' => 'dropdown_border',
995
+ 'selector' => '{{WRAPPER}} select'
996
+ ]
997
+ );
998
+
999
+ $this->add_responsive_control(
1000
+ 'dropdown_border_radius',
1001
+ [
1002
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
1003
+ 'type' => Controls_Manager::DIMENSIONS,
1004
+ 'size_units' => [ 'px', '%' ],
1005
+ 'selectors' => [
1006
+ '{{WRAPPER}} select' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1007
+ ],
1008
+ ]
1009
+ );
1010
+
1011
+ $this->add_responsive_control(
1012
+ 'dropdown_padding',
1013
+ [
1014
+ 'label' => __( 'Padding', 'auxin-elements' ),
1015
+ 'type' => Controls_Manager::DIMENSIONS,
1016
+ 'size_units' => [ 'px', '%', 'em' ],
1017
+ 'selectors' => [
1018
+ '{{WRAPPER}} select' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1019
+ ],
1020
+ 'separator' => 'after'
1021
+ ]
1022
+ );
1023
+
1024
+ // Background and Box Shadow for input - START
1025
+ $this->start_controls_tabs( 'dropdown_input_tabs' );
1026
+
1027
+ $this->start_controls_tab(
1028
+ 'dropdown_tab_normal_state',
1029
+ [
1030
+ 'label' => __( 'Normal', 'auxin-elements' ),
1031
+ ]
1032
+ );
1033
+
1034
+ $this->add_group_control(
1035
+ Group_Control_Background::get_type(),
1036
+ [
1037
+ 'name' => 'dropdown_background',
1038
+ 'selector' => '{{WRAPPER}} select',
1039
+ 'types' => [ 'classic', 'gradient']
1040
+ ]
1041
+ );
1042
+
1043
+ $this->add_group_control(
1044
+ Group_Control_Box_Shadow::get_type(),
1045
+ [
1046
+ 'name' => 'dropdown_box_shadow',
1047
+ 'selector' => '{{WRAPPER}} select'
1048
+ ]
1049
+ );
1050
+
1051
+ $this->end_controls_tab();
1052
+
1053
+ $this->start_controls_tab(
1054
+ 'dropdown_tab_hover_state',
1055
+ [
1056
+ 'label' => __( 'Hover', 'auxin-elements' ),
1057
+ ]
1058
+ );
1059
+
1060
+ $this->add_group_control(
1061
+ Group_Control_Background::get_type(),
1062
+ [
1063
+ 'name' => 'dropdown_background_hover',
1064
+ 'selector' => '{{WRAPPER}} select:hover',
1065
+ 'types' => [ 'classic', 'gradient']
1066
+ ]
1067
+ );
1068
+
1069
+ $this->add_group_control(
1070
+ Group_Control_Box_Shadow::get_type(),
1071
+ [
1072
+ 'name' => 'dropdown_box_shadow_hover',
1073
+ 'selector' => '{{WRAPPER}} select:hover'
1074
+ ]
1075
+ );
1076
+
1077
+ $this->add_control(
1078
+ 'dropdown_transition',
1079
+ [
1080
+ 'label' => __( 'Transition Duration', 'auxin-elements' ),
1081
+ 'type' => Controls_Manager::SLIDER,
1082
+ 'default' => [
1083
+ 'size' => 0.3,
1084
+ ],
1085
+ 'range' => [
1086
+ 'px' => [
1087
+ 'max' => 3,
1088
+ 'step' => 0.1,
1089
+ ],
1090
+ ],
1091
+ 'render_type' => 'ui',
1092
+ 'selectors' => [
1093
+ '{{WRAPPER}} select' => "transition:all ease-out {{SIZE}}s;"
1094
+ ]
1095
+ ]
1096
+ );
1097
+
1098
+ $this->end_controls_tab();
1099
+
1100
+ $this->end_controls_tabs();
1101
+ // Background and Box Shadow for input - END
1102
+
1103
+ $this->end_controls_section();
1104
+
1105
+ /* -------------------------------------------------------------------------- */
1106
+ /* Textarea Style */
1107
+ /* -------------------------------------------------------------------------- */
1108
+ $this->start_controls_section(
1109
+ 'textarea_section',
1110
+ [
1111
+ 'label' => __('Textarea', 'auxin-elements' ),
1112
+ 'tab' => Controls_Manager::TAB_STYLE,
1113
+ ]
1114
+ );
1115
+
1116
+ $this->add_group_control(
1117
+ Group_Control_Typography::get_type(),
1118
+ [
1119
+ 'name' => 'textarea_typography',
1120
+ 'label' => __( 'Typography', 'auxin-elements' ),
1121
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
1122
+ 'selector' => '{{WRAPPER}} textarea',
1123
+ ]
1124
+ );
1125
+
1126
+ $this->add_control(
1127
+ 'textarea_color',
1128
+ [
1129
+ 'label' => __( 'Color', 'auxin-elements' ),
1130
+ 'type' => Controls_Manager::COLOR,
1131
+ 'selectors' => [
1132
+ '{{WRAPPER}} textarea' => 'color: {{VALUE}};',
1133
+ ]
1134
+ ]
1135
+ );
1136
+
1137
+ $this->add_responsive_control(
1138
+ 'textarea_width',
1139
+ [
1140
+ 'label' => __( 'Width', 'auxin-elements' ),
1141
+ 'size_units' => [ 'px','em', '%'],
1142
+ 'type' => Controls_Manager::SLIDER,
1143
+ 'range' => [
1144
+ 'px' => [
1145
+ 'min' => 0,
1146
+ 'max' => 1000,
1147
+ 'step' => 5,
1148
+ ],
1149
+ '%' => [
1150
+ 'min' => 0,
1151
+ 'max' => 100,
1152
+ ],
1153
+ 'em' => [
1154
+ 'min' => 0,
1155
+ 'max' => 100,
1156
+ ],
1157
+ ],
1158
+ 'selectors' => [
1159
+ '{{WRAPPER}} textarea' => 'width: {{SIZE}}{{UNIT}};',
1160
+ ],
1161
+ ]
1162
+ );
1163
+
1164
+ $this->add_responsive_control(
1165
+ 'textarea_max_width',
1166
+ [
1167
+ 'label' => __( 'Max Width', 'auxin-elements' ),
1168
+ 'size_units' => [ 'px','em', '%'],
1169
+ 'type' => Controls_Manager::SLIDER,
1170
+ 'range' => [
1171
+ 'px' => [
1172
+ 'min' => 0,
1173
+ 'max' => 1000,
1174
+ 'step' => 5
1175
+ ],
1176
+ '%' => [
1177
+ 'min' => 0,
1178
+ 'max' => 100
1179
+ ],
1180
+ 'em' => [
1181
+ 'min' => 0,
1182
+ 'max' => 100
1183
+ ]
1184
+ ],
1185
+ 'selectors' => [
1186
+ '{{WRAPPER}} textarea' => 'max-width: {{SIZE}}{{UNIT}};',
1187
+ ]
1188
+ ]
1189
+ );
1190
+
1191
+ $this->add_responsive_control(
1192
+ 'textarea_height',
1193
+ [
1194
+ 'label' => __( 'Height', 'auxin-elements' ),
1195
+ 'size_units' => [ 'px', 'em'],
1196
+ 'type' => Controls_Manager::SLIDER,
1197
+ 'range' => [
1198
+ 'px' => [
1199
+ 'min' => 0,
1200
+ 'max' => 1000,
1201
+ 'step' => 5
1202
+ ],
1203
+ '%' => [
1204
+ 'min' => 0,
1205
+ 'max' => 100
1206
+ ],
1207
+ 'em' => [
1208
+ 'min' => 0,
1209
+ 'max' => 100
1210
+ ]
1211
+ ],
1212
+ 'selectors' => [
1213
+ '{{WRAPPER}} textarea' => 'height: {{SIZE}}{{UNIT}};',
1214
+ ],
1215
+ 'separator' => 'after'
1216
+ ]
1217
+ );
1218
+
1219
+
1220
+ $this->add_group_control(
1221
+ Group_Control_Border::get_type(),
1222
+ [
1223
+ 'name' => 'textarea_border',
1224
+ 'selector' => '{{WRAPPER}} textarea'
1225
+ ]
1226
+ );
1227
+
1228
+ $this->add_responsive_control(
1229
+ 'textarea_border_radius',
1230
+ [
1231
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
1232
+ 'type' => Controls_Manager::DIMENSIONS,
1233
+ 'size_units' => [ 'px', '%' ],
1234
+ 'selectors' => [
1235
+ '{{WRAPPER}} textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1236
+ ],
1237
+ ]
1238
+ );
1239
+
1240
+ $this->add_responsive_control(
1241
+ 'textarea_padding',
1242
+ [
1243
+ 'label' => __( 'Padding', 'auxin-elements' ),
1244
+ 'type' => Controls_Manager::DIMENSIONS,
1245
+ 'size_units' => [ 'px', '%', 'em' ],
1246
+ 'selectors' => [
1247
+ '{{WRAPPER}} textarea' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1248
+ ],
1249
+ 'separator' => 'after'
1250
+ ]
1251
+ );
1252
+
1253
+ // Background and Box Shadow for input - START
1254
+ $this->start_controls_tabs( 'textarea_tabs' );
1255
+
1256
+ $this->start_controls_tab(
1257
+ 'textarea_tab_normal_state',
1258
+ [
1259
+ 'label' => __( 'Normal', 'auxin-elements' ),
1260
+ ]
1261
+ );
1262
+
1263
+ $this->add_group_control(
1264
+ Group_Control_Background::get_type(),
1265
+ [
1266
+ 'name' => 'textarea_background',
1267
+ 'selector' => '{{WRAPPER}} textarea',
1268
+ 'types' => [ 'classic', 'gradient']
1269
+ ]
1270
+ );
1271
+
1272
+ $this->add_group_control(
1273
+ Group_Control_Box_Shadow::get_type(),
1274
+ [
1275
+ 'name' => 'textarea_box_shadow',
1276
+ 'selector' => '{{WRAPPER}} textarea'
1277
+ ]
1278
+ );
1279
+
1280
+ $this->end_controls_tab();
1281
+
1282
+ $this->start_controls_tab(
1283
+ 'textarea_tab_hover_state',
1284
+ [
1285
+ 'label' => __( 'Hover', 'auxin-elements' ),
1286
+ ]
1287
+ );
1288
+
1289
+ $this->add_group_control(
1290
+ Group_Control_Background::get_type(),
1291
+ [
1292
+ 'name' => 'textarea_background_hover',
1293
+ 'selector' => '{{WRAPPER}} textarea:hover',
1294
+ 'types' => [ 'classic', 'gradient']
1295
+ ]
1296
+ );
1297
+
1298
+ $this->add_group_control(
1299
+ Group_Control_Box_Shadow::get_type(),
1300
+ [
1301
+ 'name' => 'textarea_box_shadow_hover',
1302
+ 'selector' => '{{WRAPPER}} textarea:hover'
1303
+ ]
1304
+ );
1305
+
1306
+ $this->add_control(
1307
+ 'textarea_transition',
1308
+ [
1309
+ 'label' => __( 'Transition Duration', 'auxin-elements' ),
1310
+ 'type' => Controls_Manager::SLIDER,
1311
+ 'default' => [
1312
+ 'size' => 0.3,
1313
+ ],
1314
+ 'range' => [
1315
+ 'px' => [
1316
+ 'max' => 3,
1317
+ 'step' => 0.1,
1318
+ ],
1319
+ ],
1320
+ 'render_type' => 'ui',
1321
+ 'selectors' => [
1322
+ '{{WRAPPER}} textarea' => "transition:all ease-out {{SIZE}}s;"
1323
+ ]
1324
+ ]
1325
+ );
1326
+
1327
+ $this->end_controls_tab();
1328
+
1329
+ $this->end_controls_tabs();
1330
+ // Background and Box Shadow for input - END
1331
+
1332
+ $this->end_controls_section();
1333
+
1334
+ /* -------------------------------------------------------------------------- */
1335
+ /* Textarea Placeholder Style */
1336
+ /* -------------------------------------------------------------------------- */
1337
+ $this->start_controls_section(
1338
+ 'textarea_placeholder_section',
1339
+ [
1340
+ 'label' => __('Textarea Placeholder', 'auxin-elements' ),
1341
+ 'tab' => Controls_Manager::TAB_STYLE
1342
+ ]
1343
+ );
1344
+
1345
+ $this->add_group_control(
1346
+ Group_Control_Typography::get_type(),
1347
+ [
1348
+ 'name' => 'textarea_placeholder_typography',
1349
+ 'label' => __( 'Typography', 'auxin-elements' ),
1350
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
1351
+ 'selector' => '{{WRAPPER}} textarea::placeholder'
1352
+ ]
1353
+ );
1354
+
1355
+ $this->add_control(
1356
+ 'textarea_placeholder_color',
1357
+ [
1358
+ 'label' => __( 'Color', 'auxin-elements' ),
1359
+ 'type' => Controls_Manager::COLOR,
1360
+ 'selectors' => [
1361
+ '{{WRAPPER}} textarea::placeholder' => 'color: {{VALUE}};',
1362
+ ]
1363
+ ]
1364
+ );
1365
+
1366
+ $this->end_controls_section();
1367
+
1368
+ /* -------------------------------------------------------------------------- */
1369
+ /* Submit Button Style */
1370
+ /* -------------------------------------------------------------------------- */
1371
+ $this->start_controls_section(
1372
+ 'submit_input_section',
1373
+ [
1374
+ 'label' => __('Submit Button', 'auxin-elements' ),
1375
+ 'tab' => Controls_Manager::TAB_STYLE,
1376
+ ]
1377
+ );
1378
+
1379
+ $this->add_group_control(
1380
+ Group_Control_Typography::get_type(),
1381
+ [
1382
+ 'name' => 'submit_input_typography',
1383
+ 'label' => __( 'Typography', 'auxin-elements' ),
1384
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
1385
+ 'selector' => '{{WRAPPER}} input[type="submit"]',
1386
+ ]
1387
+ );
1388
+
1389
+ $this->add_control(
1390
+ 'submit_input_color',
1391
+ [
1392
+ 'label' => __( 'Color', 'auxin-elements' ),
1393
+ 'type' => Controls_Manager::COLOR,
1394
+ 'selectors' => [
1395
+ '{{WRAPPER}} input[type="submit"]' => 'color: {{VALUE}};',
1396
+ ]
1397
+ ]
1398
+ );
1399
+
1400
+ $this->add_responsive_control(
1401
+ 'submit_input_width',
1402
+ [
1403
+ 'label' => __( 'Width', 'auxin-elements' ),
1404
+ 'size_units' => [ 'px','em', '%'],
1405
+ 'type' => Controls_Manager::SLIDER,
1406
+ 'range' => [
1407
+ 'px' => [
1408
+ 'min' => 0,
1409
+ 'max' => 1000,
1410
+ 'step' => 5,
1411
+ ],
1412
+ '%' => [
1413
+ 'min' => 0,
1414
+ 'max' => 100,
1415
+ ],
1416
+ 'em' => [
1417
+ 'min' => 0,
1418
+ 'max' => 100,
1419
+ ],
1420
+ ],
1421
+ 'selectors' => [
1422
+ '{{WRAPPER}} input[type="submit"]' => 'width: {{SIZE}}{{UNIT}};',
1423
+ ],
1424
+ ]
1425
+ );
1426
+
1427
+ $this->add_responsive_control(
1428
+ 'submit_input_max_width',
1429
+ [
1430
+ 'label' => __( 'Max Width', 'auxin-elements' ),
1431
+ 'size_units' => [ 'px','em', '%'],
1432
+ 'type' => Controls_Manager::SLIDER,
1433
+ 'range' => [
1434
+ 'px' => [
1435
+ 'min' => 0,
1436
+ 'max' => 1000,
1437
+ 'step' => 5
1438
+ ],
1439
+ '%' => [
1440
+ 'min' => 0,
1441
+ 'max' => 100
1442
+ ],
1443
+ 'em' => [
1444
+ 'min' => 0,
1445
+ 'max' => 100
1446
+ ]
1447
+ ],
1448
+ 'selectors' => [
1449
+ '{{WRAPPER}} input[type="submit"]' => 'max-width: {{SIZE}}{{UNIT}};',
1450
+ ]
1451
+ ]
1452
+ );
1453
+
1454
+ $this->add_responsive_control(
1455
+ 'submit_input_height',
1456
+ [
1457
+ 'label' => __( 'Height', 'auxin-elements' ),
1458
+ 'size_units' => [ 'px', 'em'],
1459
+ 'type' => Controls_Manager::SLIDER,
1460
+ 'range' => [
1461
+ 'px' => [
1462
+ 'min' => 0,
1463
+ 'max' => 1000,
1464
+ 'step' => 5
1465
+ ],
1466
+ '%' => [
1467
+ 'min' => 0,
1468
+ 'max' => 100
1469
+ ],
1470
+ 'em' => [
1471
+ 'min' => 0,
1472
+ 'max' => 100
1473
+ ]
1474
+ ],
1475
+ 'selectors' => [
1476
+ '{{WRAPPER}} input[type="submit"]' => 'height: {{SIZE}}{{UNIT}};',
1477
+ ],
1478
+ 'separator' => 'after'
1479
+ ]
1480
+ );
1481
+
1482
+
1483
+ $this->add_group_control(
1484
+ Group_Control_Border::get_type(),
1485
+ [
1486
+ 'name' => 'submit_input_border',
1487
+ 'selector' => '{{WRAPPER}} input[type="submit"]'
1488
+ ]
1489
+ );
1490
+
1491
+ $this->add_responsive_control(
1492
+ 'submit_input_border_radius',
1493
+ [
1494
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
1495
+ 'type' => Controls_Manager::DIMENSIONS,
1496
+ 'size_units' => [ 'px', '%' ],
1497
+ 'selectors' => [
1498
+ '{{WRAPPER}} input[type="submit"]' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1499
+ ],
1500
+ ]
1501
+ );
1502
+
1503
+ $this->add_responsive_control(
1504
+ 'submit_input_padding',
1505
+ [
1506
+ 'label' => __( 'Padding', 'auxin-elements' ),
1507
+ 'type' => Controls_Manager::DIMENSIONS,
1508
+ 'size_units' => [ 'px', '%', 'em' ],
1509
+ 'selectors' => [
1510
+ '{{WRAPPER}} input[type="submit"]' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1511
+ ],
1512
+ 'separator' => 'after'
1513
+ ]
1514
+ );
1515
+
1516
+ // Background and Box Shadow for input - START
1517
+ $this->start_controls_tabs( 'submit_input_tabs' );
1518
+
1519
+ $this->start_controls_tab(
1520
+ 'submit_input_tab_normal_state',
1521
+ [
1522
+ 'label' => __( 'Normal', 'auxin-elements' ),
1523
+ ]
1524
+ );
1525
+
1526
+ $this->add_group_control(
1527
+ Group_Control_Background::get_type(),
1528
+ [
1529
+ 'name' => 'submit_input_background',
1530
+ 'selector' => '{{WRAPPER}} input[type="submit"]',
1531
+ 'types' => [ 'classic', 'gradient']
1532
+ ]
1533
+ );
1534
+
1535
+ $this->add_group_control(
1536
+ Group_Control_Box_Shadow::get_type(),
1537
+ [
1538
+ 'name' => 'submit_input_box_shadow',
1539
+ 'selector' => '{{WRAPPER}} input[type="submit"]'
1540
+ ]
1541
+ );
1542
+
1543
+ $this->end_controls_tab();
1544
+
1545
+ $this->start_controls_tab(
1546
+ 'submit_input_tab_hover_state',
1547
+ [
1548
+ 'label' => __( 'Hover', 'auxin-elements' ),
1549
+ ]
1550
+ );
1551
+
1552
+ $this->add_group_control(
1553
+ Group_Control_Background::get_type(),
1554
+ [
1555
+ 'name' => 'submit_input_background_hover',
1556
+ 'selector' => '{{WRAPPER}} input[type="submit"]:hover',
1557
+ 'types' => [ 'classic', 'gradient']
1558
+ ]
1559
+ );
1560
+
1561
+ $this->add_group_control(
1562
+ Group_Control_Box_Shadow::get_type(),
1563
+ [
1564
+ 'name' => 'submit_input_box_shadow_hover',
1565
+ 'selector' => '{{WRAPPER}} input[type="submit"]:hover'
1566
+ ]
1567
+ );
1568
+
1569
+ $this->add_control(
1570
+ 'submit_input_transition',
1571
+ [
1572
+ 'label' => __( 'Transition Duration', 'auxin-elements' ),
1573
+ 'type' => Controls_Manager::SLIDER,
1574
+ 'default' => [
1575
+ 'size' => 0.3,
1576
+ ],
1577
+ 'range' => [
1578
+ 'px' => [
1579
+ 'max' => 3,
1580
+ 'step' => 0.1,
1581
+ ],
1582
+ ],
1583
+ 'render_type' => 'ui',
1584
+ 'selectors' => [
1585
+ '{{WRAPPER}} input[type="submit"]' => "transition:all ease-out {{SIZE}}s;"
1586
+ ]
1587
+ ]
1588
+ );
1589
+
1590
+ $this->end_controls_tab();
1591
+
1592
+ $this->end_controls_tabs();
1593
+ // Background and Box Shadow for input - END
1594
+
1595
+ $this->end_controls_section();
1596
+
1597
  }
1598
 
1599
  /**
includes/elementor/widgets/recent-posts-grid-carousel.php CHANGED
@@ -511,6 +511,19 @@ class RecentPostsGridCarousel extends Widget_Base {
511
  )
512
  );
513
 
 
 
 
 
 
 
 
 
 
 
 
 
 
514
  $this->add_control(
515
  'show_content',
516
  array(
@@ -590,22 +603,6 @@ class RecentPostsGridCarousel extends Widget_Base {
590
  )
591
  );
592
 
593
- $this->add_control(
594
- 'display_author_header',
595
- array(
596
- 'label' => __('Display Author in Header','auxin-elements' ),
597
- 'description' => __('Enable it to display author name in header','auxin-elements' ),
598
- 'type' => Controls_Manager::SWITCHER,
599
- 'label_on' => __( 'On', 'auxin-elements' ),
600
- 'label_off' => __( 'Off', 'auxin-elements' ),
601
- 'return_value' => 'yes',
602
- 'default' => 'yes',
603
- 'condition' => array(
604
- 'author_or_readmore' => 'author',
605
- )
606
- )
607
- );
608
-
609
  $this->add_control(
610
  'display_author_footer',
611
  array(
511
  )
512
  );
513
 
514
+ $this->add_control(
515
+ 'display_author_header',
516
+ array(
517
+ 'label' => __('Display Author in Header','auxin-elements' ),
518
+ 'description' => __('Enable it to display author name in header','auxin-elements' ),
519
+ 'type' => Controls_Manager::SWITCHER,
520
+ 'label_on' => __( 'On', 'auxin-elements' ),
521
+ 'label_off' => __( 'Off', 'auxin-elements' ),
522
+ 'return_value' => 'yes',
523
+ 'default' => 'yes',
524
+ )
525
+ );
526
+
527
  $this->add_control(
528
  'show_content',
529
  array(
603
  )
604
  );
605
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
  $this->add_control(
607
  'display_author_footer',
608
  array(
includes/elementor/widgets/text.php CHANGED
@@ -1342,6 +1342,7 @@ class Text extends Widget_Base {
1342
  $this->add_responsive_control(
1343
  'wrapper_content_padding',
1344
  array(
 
1345
  'type' => Controls_Manager::DIMENSIONS,
1346
  'size_units' => array( 'px', '%' ),
1347
  'selectors' => array(
1342
  $this->add_responsive_control(
1343
  'wrapper_content_padding',
1344
  array(
1345
+ 'label' => __( 'Padding', 'auxin-elements' ),
1346
  'type' => Controls_Manager::DIMENSIONS,
1347
  'size_units' => array( 'px', '%' ),
1348
  'selectors' => array(
includes/elementor/widgets/theme-elements/breadcrumbs.php ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Auxin\Plugin\CoreElements\Elementor\Elements\Theme_Elements;
3
+
4
+ use Elementor\Widget_Base;
5
+ use Elementor\Controls_Manager;
6
+ use Elementor\Group_Control_Typography;
7
+ use Elementor\Scheme_Color;
8
+ use Elementor\Scheme_Typography;
9
+ use Elementor\Group_Control_Border;
10
+ use Elementor\Group_Control_Background;
11
+ use Elementor\Group_Control_Box_Shadow;
12
+ use Elementor\Group_Control_Text_Shadow;
13
+
14
+
15
+ if ( ! defined( 'ABSPATH' ) ) {
16
+ exit; // Exit if accessed directly.
17
+ }
18
+
19
+ /**
20
+ * Elementor 'Breadcrumbs' widget.
21
+ *
22
+ * Elementor widget that displays an 'PostTitle'.
23
+ *
24
+ * @since 1.0.0
25
+ */
26
+ class Breadcrumbs extends Widget_Base {
27
+
28
+ /**
29
+ * Get widget name.
30
+ *
31
+ * Retrieve 'Breadcrumbs' widget name.
32
+ *
33
+ * @since 1.0.0
34
+ * @access public
35
+ *
36
+ * @return string Widget name.
37
+ */
38
+ public function get_name() {
39
+ return 'aux_breadcrumbs';
40
+ }
41
+
42
+ /**
43
+ * Get widget title.
44
+ *
45
+ * Retrieve 'Breadcrumbs' widget title.
46
+ *
47
+ * @since 1.0.0
48
+ * @access public
49
+ *
50
+ * @return string Widget title.
51
+ */
52
+ public function get_title() {
53
+ return __('Breadcrumbs', 'auxin-elements' );
54
+ }
55
+
56
+ /**
57
+ * Get widget icon.
58
+ *
59
+ * Retrieve 'Breadcrumbs' widget icon.
60
+ *
61
+ * @since 1.0.0
62
+ * @access public
63
+ *
64
+ * @return string Widget icon.
65
+ */
66
+ public function get_icon() {
67
+ return 'eicon-product-breadcrumbs auxin-badge';
68
+ }
69
+
70
+ /**
71
+ * Get widget categories.
72
+ *
73
+ * Retrieve 'Breadcrumbs' widget icon.
74
+ *
75
+ * @since 1.0.0
76
+ * @access public
77
+ *
78
+ * @return string Widget icon.
79
+ */
80
+ public function get_categories() {
81
+ return array( 'auxin-core', 'auxin-theme-elements-single' );
82
+ }
83
+
84
+ /**
85
+ * Register 'Breadcrumbs' widget controls.
86
+ *
87
+ * Adds different input fields to allow the user to change and customize the widget settings.
88
+ *
89
+ * @since 1.0.0
90
+ * @access protected
91
+ */
92
+ protected function _register_controls() {
93
+
94
+ /*--------------------------------------------------------------------*/
95
+ /* Content
96
+ /*--------------------------------------------------------------------*/
97
+
98
+ $this->start_controls_section(
99
+ 'section_breadcrumb',
100
+ [
101
+ 'label' => __( 'Separator', 'auxin-elements' ),
102
+ ]
103
+ );
104
+
105
+ $this->add_control(
106
+ 'separator_icon',
107
+ [
108
+ 'label' => __( 'Custom Seperator Icon', 'auxin-elements' ),
109
+ 'label_block' => true,
110
+ 'type' => Controls_Manager::ICONS
111
+ ]
112
+ );
113
+
114
+ $this->end_controls_section();
115
+
116
+ /*--------------------------------------------------------------------*/
117
+ /* Style
118
+ /*--------------------------------------------------------------------*/
119
+
120
+ $this->start_controls_section(
121
+ 'text_style_section',
122
+ [
123
+ 'label' => __( 'Text', 'auxin-elements' ),
124
+ 'tab' => Controls_Manager::TAB_STYLE,
125
+ ]
126
+ );
127
+
128
+ $this->add_control(
129
+ 'link_color',
130
+ [
131
+ 'label' => __( 'Link Color', 'auxin-elements' ),
132
+ 'type' => Controls_Manager::COLOR,
133
+ 'scheme' => [
134
+ 'type' => Scheme_Color::get_type(),
135
+ 'value' => Scheme_Color::COLOR_1,
136
+ ],
137
+ 'selectors' => [
138
+ '{{WRAPPER}} span:not(.aux-breadcrumb-sep) a' => 'color: {{VALUE}};',
139
+ ],
140
+ ]
141
+ );
142
+
143
+ $this->add_control(
144
+ 'link_hover_color',
145
+ [
146
+ 'label' => __( 'Link Hover Color', 'auxin-elements' ),
147
+ 'type' => Controls_Manager::COLOR,
148
+ 'scheme' => [
149
+ 'type' => Scheme_Color::get_type(),
150
+ 'value' => Scheme_Color::COLOR_1,
151
+ ],
152
+ 'selectors' => [
153
+ '{{WRAPPER}} span:not(.aux-breadcrumb-sep) a:hover' => 'color: {{VALUE}};',
154
+ ],
155
+ ]
156
+ );
157
+
158
+ $this->add_control(
159
+ 'text_color',
160
+ [
161
+ 'label' => __( 'Text Color', 'auxin-elements' ),
162
+ 'type' => Controls_Manager::COLOR,
163
+ 'scheme' => [
164
+ 'type' => Scheme_Color::get_type(),
165
+ 'value' => Scheme_Color::COLOR_1,
166
+ ],
167
+ 'selectors' => [
168
+ '{{WRAPPER}} span:not(.aux-breadcrumb-sep)' => 'color: {{VALUE}};',
169
+ ],
170
+ ]
171
+ );
172
+
173
+ $this->add_group_control(
174
+ Group_Control_Typography::get_type(),
175
+ [
176
+ 'name' => 'typography',
177
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
178
+ 'selector' => '{{WRAPPER}} span'
179
+ ]
180
+ );
181
+
182
+ $this->add_group_control(
183
+ Group_Control_Text_Shadow::get_type(),
184
+ [
185
+ 'name' => 'text_shadow',
186
+ 'selector' => '{{WRAPPER}} span'
187
+ ]
188
+ );
189
+
190
+ $this->end_controls_section();
191
+
192
+ /*--------------------------------------------------------------------*/
193
+ /* Separator
194
+ /*--------------------------------------------------------------------*/
195
+
196
+ $this->start_controls_section(
197
+ 'separator_style_section',
198
+ [
199
+ 'label' => __( 'Separator', 'auxin-elements' ),
200
+ 'tab' => Controls_Manager::TAB_STYLE,
201
+ ]
202
+ );
203
+
204
+ $this->add_responsive_control(
205
+ 'separator_margin',
206
+ [
207
+ 'label' => __( 'Margin', 'auxin-elements' ),
208
+ 'type' => Controls_Manager::DIMENSIONS,
209
+ 'size_units' => [ 'px', '%', 'em' ],
210
+ 'selectors' => [
211
+ '{{WRAPPER}} .aux-breadcrumb-sep' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
212
+ ]
213
+ ]
214
+ );
215
+
216
+ $this->add_control(
217
+ 'separator_icon_color',
218
+ [
219
+ 'label' => __( 'Icon Color', 'auxin-elements' ),
220
+ 'type' => Controls_Manager::COLOR,
221
+ 'scheme' => [
222
+ 'type' => Scheme_Color::get_type(),
223
+ 'value' => Scheme_Color::COLOR_1,
224
+ ],
225
+ 'selectors' => [
226
+ '{{WRAPPER}} span.aux-breadcrumb-sep' => 'color: {{VALUE}};',
227
+ ]
228
+ ]
229
+ );
230
+
231
+ $this->add_responsive_control(
232
+ 'separator_size',
233
+ [
234
+ 'label' => __( 'Size', 'auxin-elements' ),
235
+ 'type' => Controls_Manager::SLIDER,
236
+ 'size_units' => [ 'px', '%', 'em' ],
237
+ 'selectors' => [
238
+ '{{WRAPPER}} .aux-breadcrumb-sep' => 'font-size:{{SIZE}}{{UNIT}};'
239
+ ]
240
+ ]
241
+ );
242
+
243
+ $this->end_controls_section();
244
+
245
+ /*--------------------------------------------------------------------*/
246
+ /* Container
247
+ /*--------------------------------------------------------------------*/
248
+
249
+ $this->start_controls_section(
250
+ 'container_style_section',
251
+ [
252
+ 'label' => __( 'Container', 'auxin-elements' ),
253
+ 'tab' => Controls_Manager::TAB_STYLE,
254
+ ]
255
+ );
256
+
257
+ $this->add_responsive_control(
258
+ 'container_alignment',
259
+ [
260
+ 'label' => __('Alignment','auxin-elements' ),
261
+ 'type' => Controls_Manager::CHOOSE,
262
+ 'options' => [
263
+ 'left' => [
264
+ 'title' => __( 'Left', 'auxin-elements' ),
265
+ 'icon' => 'fa fa-align-left'
266
+ ],
267
+ 'center' => [
268
+ 'title' => __( 'Center', 'auxin-elements' ),
269
+ 'icon' => 'fa fa-align-center'
270
+ ],
271
+ 'right' => [
272
+ 'title' => __( 'Right', 'auxin-elements' ),
273
+ 'icon' => 'fa fa-align-right'
274
+ ]
275
+ ],
276
+ 'default' => '',
277
+ 'separator' => 'after',
278
+ 'toggle' => true,
279
+ 'selectors' => [
280
+ '{{WRAPPER}} .aux-elementor-breadcrumbs' => 'text-align:{{VALUE}};'
281
+ ]
282
+ ]
283
+ );
284
+
285
+ $this->add_group_control(
286
+ Group_Control_Border::get_type(),
287
+ [
288
+ 'name' => 'container_border',
289
+ 'selector' => '{{WRAPPER}} .aux-breadcrumbs'
290
+ ]
291
+ );
292
+
293
+ $this->add_responsive_control(
294
+ 'container_border_radius',
295
+ [
296
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
297
+ 'type' => Controls_Manager::DIMENSIONS,
298
+ 'size_units' => [ 'px', '%' ],
299
+ 'selectors' => [
300
+ '{{WRAPPER}} p.aux-breadcrumbs' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
301
+ ]
302
+ ]
303
+ );
304
+
305
+ $this->add_responsive_control(
306
+ 'container_padding',
307
+ [
308
+ 'label' => __( 'Padding', 'auxin-elements' ),
309
+ 'type' => Controls_Manager::DIMENSIONS,
310
+ 'size_units' => [ 'px', '%', 'em' ],
311
+ 'selectors' => [
312
+ '{{WRAPPER}} p.aux-breadcrumbs' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
313
+ ],
314
+ 'separator' => 'after'
315
+ ]
316
+ );
317
+
318
+ $this->start_controls_tabs( 'container_style_tabs' );
319
+
320
+ $this->start_controls_tab(
321
+ 'container_tab_normal_state',
322
+ [
323
+ 'label' => __( 'Normal', 'auxin-elements' ),
324
+ ]
325
+ );
326
+
327
+ $this->add_group_control(
328
+ Group_Control_Background::get_type(),
329
+ [
330
+ 'name' => 'container_background',
331
+ 'selector' => '{{WRAPPER}} p.aux-breadcrumbs',
332
+ 'types' => [ 'classic', 'gradient']
333
+ ]
334
+ );
335
+
336
+ $this->add_group_control(
337
+ Group_Control_Box_Shadow::get_type(),
338
+ [
339
+ 'name' => 'container_box_shadow',
340
+ 'selector' => '{{WRAPPER}} p.aux-breadcrumbs'
341
+ ]
342
+ );
343
+
344
+ $this->end_controls_tab();
345
+
346
+ $this->start_controls_tab(
347
+ 'container_tab_hover_state',
348
+ [
349
+ 'label' => __( 'Hover', 'auxin-elements' ),
350
+ ]
351
+ );
352
+
353
+ $this->add_group_control(
354
+ Group_Control_Background::get_type(),
355
+ [
356
+ 'name' => 'container_background_hover',
357
+ 'selector' => '{{WRAPPER}} p.aux-breadcrumbs:hover',
358
+ 'types' => [ 'classic', 'gradient']
359
+ ]
360
+ );
361
+
362
+ $this->add_group_control(
363
+ Group_Control_Box_Shadow::get_type(),
364
+ [
365
+ 'name' => 'container_box_shadow_hover',
366
+ 'selector' => '{{WRAPPER}} p.aux-breadcrumbs:hover'
367
+ ]
368
+ );
369
+
370
+ $this->add_control(
371
+ 'container_transition',
372
+ [
373
+ 'label' => __( 'Transition Duration', 'auxin-elements' ),
374
+ 'type' => Controls_Manager::SLIDER,
375
+ 'default' => [
376
+ 'size' => 0.3,
377
+ ],
378
+ 'range' => [
379
+ 'px' => [
380
+ 'max' => 3,
381
+ 'step' => 0.1,
382
+ ],
383
+ ],
384
+ 'render_type' => 'ui',
385
+ 'selectors' => [
386
+ '{{WRAPPER}} p.aux-breadcrumbs' => "transition:all ease-out {{SIZE}}s;"
387
+ ]
388
+ ]
389
+ );
390
+
391
+ $this->end_controls_tab();
392
+
393
+ $this->end_controls_tabs();
394
+ // Background and Box Shadow for input - END
395
+
396
+ $this->end_controls_section();
397
+ }
398
+
399
+ /**
400
+ * Render image box widget output on the frontend.
401
+ *
402
+ * Written in PHP and used to generate the final HTML.
403
+ *
404
+ * @since 1.0.0
405
+ * @access protected
406
+ */
407
+ protected function render() {
408
+ $settings = $this->get_settings_for_display();
409
+ echo '<div class="aux-elementor-breadcrumbs">';
410
+ auxin_the_breadcrumbs( $settings['separator_icon']['value'] );
411
+ echo '</div>';
412
+ }
413
+
414
+ }
includes/elementor/widgets/theme-elements/copyright.php CHANGED
@@ -10,7 +10,7 @@ use Elementor\Group_Control_Text_Shadow;
10
 
11
 
12
  if ( ! defined( 'ABSPATH' ) ) {
13
- exit; // Exit if accessed directly.
14
  }
15
 
16
  /**
@@ -22,219 +22,251 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  */
23
  class Copyright extends Widget_Base {
24
 
25
- /**
26
- * Get widget name.
27
- *
28
- * Retrieve 'Copyright' widget name.
29
- *
30
- * @since 1.0.0
31
- * @access public
32
- *
33
- * @return string Widget name.
34
- */
35
- public function get_name() {
36
- return 'aux_copyright';
37
- }
38
-
39
- /**
40
- * Get widget title.
41
- *
42
- * Retrieve 'Copyright' widget title.
43
- *
44
- * @since 1.0.0
45
- * @access public
46
- *
47
- * @return string Widget title.
48
- */
49
- public function get_title() {
50
- return __('Copyright', 'auxin-elements' );
51
- }
52
-
53
- /**
54
- * Get widget icon.
55
- *
56
- * Retrieve 'Copyright' widget icon.
57
- *
58
- * @since 1.0.0
59
- * @access public
60
- *
61
- * @return string Widget icon.
62
- */
63
- public function get_icon() {
64
- return 'eicon-t-letter auxin-badge';
65
- }
66
-
67
- /**
68
- * Get widget categories.
69
- *
70
- * Retrieve 'Copyright' widget icon.
71
- *
72
- * @since 1.0.0
73
- * @access public
74
- *
75
- * @return string Widget icon.
76
- */
77
- public function get_categories() {
78
- return array( 'auxin-core', 'auxin-theme-elements' );
79
- }
80
-
81
- /**
82
- * Register 'Copyright' widget controls.
83
- *
84
- * Adds different input fields to allow the user to change and customize the widget settings.
85
- *
86
- * @since 1.0.0
87
- * @access protected
88
- */
89
- protected function _register_controls() {
90
-
91
- $this->start_controls_section(
92
- 'general',
93
- array(
94
- 'label' => __('General', 'auxin-elements' ),
95
- )
96
- );
97
-
98
- $this->add_control(
99
- 'copyright_notice',
100
- array(
101
- 'type' => Controls_Manager::RAW_HTML,
102
- 'raw' => sprintf( __( '<strong>Your copyright text is set it from customizer</strong><br>Go to the <a href="%s" target="_blank">Customizer</a> to change it.', 'auxin-elements' ), admin_url( 'customize.php' ) ),
103
- 'separator' => 'after',
104
- 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
105
- )
106
- );
107
-
108
- $this->add_responsive_control(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  'align',
110
  array(
111
- 'label' => __( 'Alignment', 'auxin-elements' ),
112
- 'type' => Controls_Manager::CHOOSE,
113
- 'options' => array(
114
- 'left' => array(
115
  'title' => __( 'Left', 'auxin-elements' ),
116
- 'icon' => 'eicon-text-align-left',
117
- ),
118
  'center' => array(
119
  'title' => __( 'Center', 'auxin-elements' ),
120
- 'icon' => 'eicon-text-align-center',
121
- ),
122
- 'right' => array(
123
  'title' => __( 'Right', 'auxin-elements' ),
124
- 'icon' => 'eicon-text-align-right',
125
- ),
126
- ),
127
  'selectors' => array(
128
  '{{WRAPPER}}' => 'text-align: {{VALUE}};',
129
- ),
130
- )
131
- );
132
 
133
- $this->end_controls_section();
134
 
135
- $this->start_controls_section(
136
  'section_style_copyright',
137
  array(
138
  'label' => __( 'Copyright', 'auxin-elements' ),
139
  'tab' => Controls_Manager::TAB_STYLE,
140
- )
141
- );
142
-
143
- $this->start_controls_tabs( 'copyright_colors' );
144
-
145
- $this->start_controls_tab(
146
- 'copyright_color_normal',
147
- array(
148
- 'label' => __( 'Normal' , 'auxin-elements' )
149
- )
150
- );
151
-
152
- $this->add_control(
153
- 'copyright_color',
154
- array(
155
- 'label' => __( 'Color', 'auxin-elements' ),
156
- 'type' => Controls_Manager::COLOR,
157
- 'selectors' => array(
158
- '{{WRAPPER}} small' => 'color: {{VALUE}};'
159
- )
160
- )
161
- );
162
-
163
- $this->add_group_control(
164
- Group_Control_Typography::get_type(),
165
- array(
166
- 'name' => 'copyright_typo',
167
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
168
- 'selector' => '{{WRAPPER}} small'
169
- )
170
- );
171
-
172
- $this->add_group_control(
173
- Group_Control_Text_Shadow::get_type(),
174
- [
175
- 'name' => 'copyright_text_shadow',
176
- 'selector' => '{{WRAPPER}} small'
177
- ]
178
- );
179
-
180
- $this->end_controls_tab();
181
-
182
- $this->start_controls_tab(
183
- 'copyright_color_hover',
184
- array(
185
- 'label' => __( 'Hover' , 'auxin-elements' )
186
- )
187
- );
188
-
189
- $this->add_control(
190
- 'copyright_hover_color',
191
- array(
192
- 'label' => __( 'Color', 'auxin-elements' ),
193
- 'type' => Controls_Manager::COLOR,
194
- 'selectors' => array(
195
- '{{WRAPPER}} small:hover' => 'color: {{VALUE}} !important;'
196
- )
197
- )
198
- );
199
-
200
- $this->add_group_control(
201
- Group_Control_Typography::get_type(),
202
- array(
203
- 'name' => 'copyright_typo_hover',
204
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
205
- 'selector' => '{{WRAPPER}} small:hover',
206
- )
207
- );
208
-
209
- $this->add_group_control(
210
- Group_Control_Text_Shadow::get_type(),
211
- [
212
- 'name' => 'copyright_text_shadow_hover',
213
- 'selector' => '{{WRAPPER}} small:hover'
214
- ]
215
- );
216
-
217
- $this->end_controls_tab();
218
-
219
- $this->end_controls_tabs();
220
-
221
- $this->end_controls_section();
222
-
223
-
224
- }
225
-
226
- /**
227
- * Render image box widget output on the frontend.
228
- *
229
- * Written in PHP and used to generate the final HTML.
230
- *
231
- * @since 1.0.0
232
- * @access protected
233
- */
234
- protected function render() {
235
- $settings = $this->get_settings_for_display();
236
-
237
- auxin_footer_copyright_markup( true );
238
- }
239
-
240
- }
 
 
 
 
 
10
 
11
 
12
  if ( ! defined( 'ABSPATH' ) ) {
13
+ exit; // Exit if accessed directly.
14
  }
15
 
16
  /**
22
  */
23
  class Copyright extends Widget_Base {
24
 
25
+ /**
26
+ * Get widget name.
27
+ *
28
+ * Retrieve 'Copyright' widget name.
29
+ *
30
+ * @since 1.0.0
31
+ * @access public
32
+ *
33
+ * @return string Widget name.
34
+ */
35
+ public function get_name() {
36
+ return 'aux_copyright';
37
+ }
38
+
39
+ /**
40
+ * Get widget title.
41
+ *
42
+ * Retrieve 'Copyright' widget title.
43
+ *
44
+ * @since 1.0.0
45
+ * @access public
46
+ *
47
+ * @return string Widget title.
48
+ */
49
+ public function get_title() {
50
+ return __( 'Copyright', 'auxin-elements' );
51
+ }
52
+
53
+ /**
54
+ * Get widget icon.
55
+ *
56
+ * Retrieve 'Copyright' widget icon.
57
+ *
58
+ * @since 1.0.0
59
+ * @access public
60
+ *
61
+ * @return string Widget icon.
62
+ */
63
+ public function get_icon() {
64
+ return 'eicon-t-letter auxin-badge';
65
+ }
66
+
67
+ /**
68
+ * Get widget categories.
69
+ *
70
+ * Retrieve 'Copyright' widget icon.
71
+ *
72
+ * @since 1.0.0
73
+ * @access public
74
+ *
75
+ * @return string Widget icon.
76
+ */
77
+ public function get_categories() {
78
+ return array( 'auxin-core', 'auxin-theme-elements' );
79
+ }
80
+
81
+ /**
82
+ * Register 'Copyright' widget controls.
83
+ *
84
+ * Adds different input fields to allow the user to change and customize the widget settings.
85
+ *
86
+ * @since 1.0.0
87
+ * @access protected
88
+ */
89
+ protected function _register_controls() {
90
+
91
+ $this->start_controls_section(
92
+ 'general',
93
+ array(
94
+ 'label' => __( 'General', 'auxin-elements' ),
95
+ )
96
+ );
97
+
98
+ $this->add_control(
99
+ 'copyright_text',
100
+ array(
101
+ 'type' => Controls_Manager::TEXT,
102
+ 'label' => __( 'Copyright Text', 'auxin-elements' ),
103
+ 'label_block' => true,
104
+ 'default' => __( '© {{Y}} {{sitename}}. All rights reserved.', 'auxin-elements' ),
105
+ 'separator' => 'after',
106
+ )
107
+ );
108
+
109
+ $this->add_control(
110
+ 'attribution',
111
+ array(
112
+ 'label' => __( 'Show Theme Attribution', 'auxin-elements' ),
113
+ 'description' => __( 'Show the "Powered By" text with link to theme homepage in footer.', 'auxin-elements' ),
114
+ 'type' => Controls_Manager::SWITCHER,
115
+ 'label_on' => __( 'On', 'auxin-elements' ),
116
+ 'label_off' => __( 'Off', 'auxin-elements' ),
117
+ 'return_value' => 'yes',
118
+ 'default' => 'no'
119
+ )
120
+ );
121
+
122
+ $this->add_control(
123
+ 'show_privacy_policy',
124
+ array(
125
+ 'label' => __( 'Show Privacy Policy', 'auxin-elements' ),
126
+ 'description' => __( 'Show a link to privacy policy page in the footer.', 'auxin-elements' ),
127
+ 'type' => Controls_Manager::SWITCHER,
128
+ 'label_on' => __( 'On', 'auxin-elements' ),
129
+ 'label_off' => __( 'Off', 'auxin-elements' ),
130
+ 'return_value' => 'yes',
131
+ 'default' => 'no'
132
+ )
133
+ );
134
+
135
+ $this->add_responsive_control(
136
  'align',
137
  array(
138
+ 'label' => __( 'Alignment', 'auxin-elements' ),
139
+ 'type' => Controls_Manager::CHOOSE,
140
+ 'options' => array(
141
+ 'left' => array(
142
  'title' => __( 'Left', 'auxin-elements' ),
143
+ 'icon' => 'eicon-text-align-left',
144
+ ),
145
  'center' => array(
146
  'title' => __( 'Center', 'auxin-elements' ),
147
+ 'icon' => 'eicon-text-align-center',
148
+ ),
149
+ 'right' => array(
150
  'title' => __( 'Right', 'auxin-elements' ),
151
+ 'icon' => 'eicon-text-align-right',
152
+ ),
153
+ ),
154
  'selectors' => array(
155
  '{{WRAPPER}}' => 'text-align: {{VALUE}};',
156
+ ),
157
+ )
158
+ );
159
 
160
+ $this->end_controls_section();
161
 
162
+ $this->start_controls_section(
163
  'section_style_copyright',
164
  array(
165
  'label' => __( 'Copyright', 'auxin-elements' ),
166
  'tab' => Controls_Manager::TAB_STYLE,
167
+ )
168
+ );
169
+
170
+ $this->start_controls_tabs( 'copyright_colors' );
171
+
172
+ $this->start_controls_tab(
173
+ 'copyright_color_normal',
174
+ array(
175
+ 'label' => __( 'Normal', 'auxin-elements' ),
176
+ )
177
+ );
178
+
179
+ $this->add_control(
180
+ 'copyright_color',
181
+ array(
182
+ 'label' => __( 'Color', 'auxin-elements' ),
183
+ 'type' => Controls_Manager::COLOR,
184
+ 'selectors' => array(
185
+ '{{WRAPPER}} small' => 'color: {{VALUE}};',
186
+ ),
187
+ )
188
+ );
189
+
190
+ $this->add_group_control(
191
+ Group_Control_Typography::get_type(),
192
+ array(
193
+ 'name' => 'copyright_typo',
194
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
195
+ 'selector' => '{{WRAPPER}} small',
196
+ )
197
+ );
198
+
199
+ $this->add_group_control(
200
+ Group_Control_Text_Shadow::get_type(),
201
+ array(
202
+ 'name' => 'copyright_text_shadow',
203
+ 'selector' => '{{WRAPPER}} small',
204
+ )
205
+ );
206
+
207
+ $this->end_controls_tab();
208
+
209
+ $this->start_controls_tab(
210
+ 'copyright_color_hover',
211
+ array(
212
+ 'label' => __( 'Hover', 'auxin-elements' ),
213
+ )
214
+ );
215
+
216
+ $this->add_control(
217
+ 'copyright_hover_color',
218
+ array(
219
+ 'label' => __( 'Color', 'auxin-elements' ),
220
+ 'type' => Controls_Manager::COLOR,
221
+ 'selectors' => array(
222
+ '{{WRAPPER}} small:hover' => 'color: {{VALUE}} !important;',
223
+ ),
224
+ )
225
+ );
226
+
227
+ $this->add_group_control(
228
+ Group_Control_Typography::get_type(),
229
+ array(
230
+ 'name' => 'copyright_typo_hover',
231
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
232
+ 'selector' => '{{WRAPPER}} small:hover',
233
+ )
234
+ );
235
+
236
+ $this->add_group_control(
237
+ Group_Control_Text_Shadow::get_type(),
238
+ array(
239
+ 'name' => 'copyright_text_shadow_hover',
240
+ 'selector' => '{{WRAPPER}} small:hover',
241
+ )
242
+ );
243
+
244
+ $this->end_controls_tab();
245
+
246
+ $this->end_controls_tabs();
247
+
248
+ $this->end_controls_section();
249
+
250
+ }
251
+
252
+ /**
253
+ * Render image box widget output on the frontend.
254
+ *
255
+ * Written in PHP and used to generate the final HTML.
256
+ *
257
+ * @since 1.0.0
258
+ * @access protected
259
+ */
260
+ protected function render() {
261
+ $settings = $this->get_settings_for_display();
262
+
263
+ $args = [
264
+ 'copyright_text' => $settings['copyright_text'],
265
+ 'attribution' => $settings['attribution'],
266
+ 'show_privacy_policy' => $settings['show_privacy_policy']
267
+ ];
268
+
269
+ auxin_footer_copyright_markup( true, $args );
270
+ }
271
+
272
+ }
includes/elementor/widgets/theme-elements/menu.php CHANGED
@@ -1235,7 +1235,7 @@ class MenuBox extends Widget_Base {
1235
  'label' => __( 'Color', 'auxin-elements' ),
1236
  'type' => Controls_Manager::COLOR,
1237
  'selectors' => array(
1238
- '{{WRAPPER}} .aux-fs-menu .aux-menu-item.aux-hover > .aux-item-content' => 'color: {{VALUE}};'
1239
  ),
1240
  'seperartor' => 'after'
1241
  )
1235
  'label' => __( 'Color', 'auxin-elements' ),
1236
  'type' => Controls_Manager::COLOR,
1237
  'selectors' => array(
1238
+ '{{WRAPPER}} .aux-fs-menu .aux-menu-item.aux-hover > .aux-item-content' => 'color: {{VALUE}} !important;'
1239
  ),
1240
  'seperartor' => 'after'
1241
  )
includes/elementor/widgets/theme-elements/modern-search.php CHANGED
@@ -127,28 +127,214 @@ class ModernSearch extends Widget_Base {
127
 
128
  $this->end_controls_section();
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  /* Icon Style Section
131
  /*-------------------------------------*/
132
 
133
  $this->start_controls_section(
134
- 'button_style_section',
135
  [
136
- 'label' => __( 'Button', 'auxin-elements' ),
137
  'tab' => Controls_Manager::TAB_STYLE
138
  ]
139
  );
140
 
141
- $this->start_controls_tabs( 'button_styles' );
142
 
143
  $this->start_controls_tab(
144
- 'button_style_normal',
145
  [
146
  'label' => __( 'Normal' , 'auxin-elements' )
147
  ]
148
  );
149
 
150
  $this->add_control(
151
- 'button_color_normal',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  [
153
  'label' => __( 'Color', 'auxin-elements' ),
154
  'type' => Controls_Manager::COLOR,
@@ -161,7 +347,7 @@ class ModernSearch extends Widget_Base {
161
  $this->add_group_control(
162
  Group_Control_Typography::get_type(),
163
  [
164
- 'name' => 'button_typo_normal',
165
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
166
  'selector' => '{{WRAPPER}} .aux-search-submit'
167
  ]
@@ -170,47 +356,81 @@ class ModernSearch extends Widget_Base {
170
  $this->add_group_control(
171
  Group_Control_Text_Shadow::get_type(),
172
  [
173
- 'name' => 'button_text_shadow_normal',
174
  'selector' => '{{WRAPPER}} .aux-search-submit'
175
  ]
176
  );
177
 
178
- $this->add_group_control(
179
- Group_Control_Box_Shadow::get_type(),
 
 
180
  [
181
- 'name' => 'button_box_shadow_normal',
182
- 'selector' => '{{WRAPPER}} .aux-search-submit'
 
 
 
 
 
 
 
 
 
 
183
  ]
184
  );
185
 
186
  $this->add_group_control(
187
- Group_Control_Background::get_type(),
188
  [
189
- 'name' => 'button_bg_normal',
190
- 'selector' => '{{WRAPPER}} .aux-search-submit',
191
- 'types' => [ 'classic', 'gradient']
192
  ]
193
  );
194
 
195
  $this->add_group_control(
196
- Group_Control_Border::get_type(),
197
  [
198
- 'name' => 'button_border_normal',
199
- 'selector' => '{{WRAPPER}} .aux-search-submit',
200
- 'separator' => 'none'
201
  ]
202
  );
203
 
204
- $this->add_responsive_control(
205
- 'button_border_radius_normal',
 
 
 
 
 
 
 
 
 
206
  [
207
- 'label' => __( 'Border Radius', 'auxin-elements' ),
208
- 'type' => Controls_Manager::DIMENSIONS,
209
- 'size_units' => [ 'px', 'em', '%' ],
210
- 'selectors' => [
211
- '{{WRAPPER}} .aux-search-submit' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
212
- ],
213
- 'allowed_dimensions' => 'all'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  ]
215
  );
216
 
@@ -227,57 +447,68 @@ class ModernSearch extends Widget_Base {
227
  ]
228
  );
229
 
230
- $this->end_controls_tab();
231
-
232
- $this->start_controls_tab(
233
- 'button_style_hover',
234
  [
235
- 'label' => __( 'Hover' , 'auxin-elements' )
 
 
 
236
  ]
237
  );
238
 
239
- $this->add_control(
240
- 'button_color_hover',
241
  [
242
- 'label' => __( 'Color', 'auxin-elements' ),
243
- 'type' => Controls_Manager::COLOR,
244
- 'selectors' => [
245
- '{{WRAPPER}} .aux-search-submit:hover' => 'color: {{VALUE}};'
246
- ]
 
 
 
247
  ]
248
  );
249
 
250
  $this->add_group_control(
251
- Group_Control_Typography::get_type(),
252
  [
253
- 'name' => 'button_typo_hover',
254
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
255
- 'selector' => '{{WRAPPER}} .aux-search-submit:hover'
256
  ]
257
  );
258
 
259
- $this->add_group_control(
260
- Group_Control_Text_Shadow::get_type(),
 
 
261
  [
262
- 'name' => 'button_text_shadow_hover',
263
- 'selector' => '{{WRAPPER}} .aux-search-submit:hover'
264
  ]
265
  );
266
 
267
  $this->add_group_control(
268
- Group_Control_Box_Shadow::get_type(),
269
  [
270
- 'name' => 'button_box_shadow_hover',
271
- 'selector' => '{{WRAPPER}} .aux-search-submit:hover'
 
 
272
  ]
273
  );
274
 
275
- $this->add_group_control(
276
- Group_Control_Background::get_type(),
277
  [
278
- 'name' => 'button_bg_hover',
279
- 'selector' => '{{WRAPPER}} .aux-search-submit:hover',
280
- 'types' => [ 'classic', 'gradient']
 
 
 
 
281
  ]
282
  );
283
 
@@ -286,7 +517,7 @@ class ModernSearch extends Widget_Base {
286
  [
287
  'name' => 'button_border_hover',
288
  'selector' => '{{WRAPPER}} .aux-search-submit:hover',
289
- 'separator' => 'none'
290
  ]
291
  );
292
 
@@ -299,112 +530,131 @@ class ModernSearch extends Widget_Base {
299
  'selectors' => [
300
  '{{WRAPPER}} .aux-search-submit:hover' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
301
  ],
302
- 'allowed_dimensions' => 'all'
 
303
  ]
304
  );
305
-
306
- $this->add_responsive_control(
307
- 'button_padding_hover',
308
  [
309
- 'label' => __( 'Padding', 'auxin-elements' ),
310
- 'type' => Controls_Manager::DIMENSIONS,
311
- 'size_units' => [ 'px', '%' ],
312
- 'selectors' => [
313
- '{{WRAPPER}} .aux-search-submit:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
314
- ],
315
- 'separator' => 'before'
316
  ]
317
  );
318
 
319
-
320
  $this->end_controls_tab();
321
 
322
  $this->end_controls_tabs();
323
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
324
  $this->end_controls_section();
325
 
326
- /* Icon Style Section
327
  /*-------------------------------------*/
328
 
329
  $this->start_controls_section(
330
- 'icon_style_section',
331
  [
332
- 'label' => __( 'Icon', 'auxin-elements' ),
333
  'tab' => Controls_Manager::TAB_STYLE
334
  ]
335
  );
336
 
337
- $this->start_controls_tabs( 'icon_styles' );
338
 
339
- $this->start_controls_tab(
340
- 'icon_style_normal',
341
  [
342
- 'label' => __( 'Normal' , 'auxin-elements' )
 
 
 
 
 
343
  ]
344
  );
345
 
346
- $this->add_control(
347
- 'icon_color_normal',
348
  [
349
- 'label' => __( 'Color', 'auxin-elements' ),
350
- 'type' => Controls_Manager::COLOR,
351
- 'selectors' => [
352
- '{{WRAPPER}} .aux-search-submit i' => 'color: {{VALUE}};'
353
- ]
354
  ]
355
  );
356
 
357
  $this->add_responsive_control(
358
- 'icon_size_normal',
359
  [
360
- 'label' => __( 'Size', 'auxin-elements' ),
361
- 'type' => Controls_Manager::SLIDER,
362
  'size_units' => [ 'px', '%' ],
 
 
 
 
 
 
 
 
 
 
 
 
 
363
  'range' => [
364
  'px' => [
365
- 'min' => 16,
366
- 'max' => 512,
367
- 'step' => 2,
368
- ],
369
- '%' => [
370
  'min' => 0,
371
- 'max' => 100,
 
372
  ],
373
  ],
374
  'default' => [
375
- 'size' => 22,
376
  'unit' => 'px'
377
  ],
378
  'selectors' => [
379
- '{{WRAPPER}} .aux-search-submit i' => 'font-size: {{SIZE}}{{UNIT}};',
380
  ],
381
- ]
382
- );
383
-
384
- $this->end_controls_tab();
385
-
386
- $this->start_controls_tab(
387
- 'icon_style_hover',
388
- [
389
- 'label' => __( 'Hover' , 'auxin-elements' )
390
  ]
391
  );
392
 
393
  $this->add_control(
394
- 'icon_color_hover',
395
  [
396
- 'label' => __( 'Color', 'auxin-elements' ),
397
- 'type' => Controls_Manager::COLOR,
398
  'selectors' => [
399
- '{{WRAPPER}} .aux-search-submit:hover i' => 'color: {{VALUE}};'
400
- ]
 
401
  ]
402
  );
403
 
404
  $this->add_responsive_control(
405
- 'icon_size_hover',
406
  [
407
- 'label' => __( 'Size', 'auxin-elements' ),
408
  'type' => Controls_Manager::SLIDER,
409
  'size_units' => [ 'px', '%' ],
410
  'range' => [
@@ -419,93 +669,111 @@ class ModernSearch extends Widget_Base {
419
  ],
420
  ],
421
  'default' => [
422
- 'size' => 22,
423
  'unit' => 'px'
424
  ],
425
  'selectors' => [
426
- '{{WRAPPER}} .aux-search-submit:hover i' => 'font-size: {{SIZE}}{{UNIT}};',
427
  ],
428
- ]
429
- );
430
-
431
- $this->end_controls_tab();
432
-
433
- $this->end_controls_tabs();
434
-
435
- $this->end_controls_section();
436
-
437
- /* Form Style Section
438
- /*-------------------------------------*/
439
-
440
- $this->start_controls_section(
441
- 'form_style_section',
442
- [
443
- 'label' => __( 'Form', 'auxin-elements' ),
444
- 'tab' => Controls_Manager::TAB_STYLE
445
- ]
446
- );
447
-
448
- $this->add_control(
449
- 'form_color',
450
- [
451
- 'label' => __( 'Color', 'auxin-elements' ),
452
- 'type' => Controls_Manager::COLOR,
453
- 'selectors' => [
454
- '{{WRAPPER}} .aux-search-popup .aux-search-field' => 'color: {{VALUE}};'
455
- ]
456
- ]
457
- );
458
-
459
- $this->add_group_control(
460
- Group_Control_Typography::get_type(),
461
- [
462
- 'name' => 'form_typo',
463
- 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
464
- 'selector' => '{{WRAPPER}} .aux-search-popup .aux-search-field'
465
  ]
466
  );
467
 
468
  $this->add_control(
469
- 'form_icon_color',
470
  [
471
- 'label' => __( 'Submit Icon Color', 'auxin-elements' ),
472
  'type' => Controls_Manager::COLOR,
473
  'selectors' => [
474
  '{{WRAPPER}} .aux-search-popup .aux-submit-icon-container:before' => 'color: {{VALUE}} !important;'
475
- ]
 
476
  ]
477
  );
478
 
479
- $this->add_control(
480
- 'form_border_color',
481
  [
482
- 'label' => __( 'Border Color', 'auxin-elements' ),
483
- 'type' => Controls_Manager::COLOR,
484
- 'selectors' => [
485
- '{{WRAPPER}} .aux-search-popup .aux-search-input-form' => 'border-color: {{VALUE}};'
486
- ]
 
 
 
 
487
  ]
488
  );
489
 
490
  $this->end_controls_section();
491
 
492
- /* Overlay Style Section
493
  /*-------------------------------------*/
494
 
495
  $this->start_controls_section(
496
- 'overlay_style_section',
497
  [
498
- 'label' => __( 'Overlay', 'auxin-elements' ),
499
  'tab' => Controls_Manager::TAB_STYLE
500
  ]
501
  );
502
 
503
- $this->add_group_control(
504
- Group_Control_Background::get_type(),
505
  [
506
- 'name' => 'overlay_bg',
507
- 'selector' => '{{WRAPPER}} .aux-search-popup',
508
- 'types' => [ 'classic', 'gradient']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  ]
510
  );
511
 
@@ -559,11 +827,21 @@ class ModernSearch extends Widget_Base {
559
  protected function render_search_overlay( $args = [] ) { ;
560
 
561
  $defaults = [
562
- 'wrapper_class' => 'aux-search-popup aux-search-popup-' . $this->get_id()
 
 
563
  ];
564
 
565
  $args = wp_parse_args( $args, $defaults );
566
 
 
 
 
 
 
 
 
 
567
  $this->add_render_attribute( 'overlay_wrapper', 'class', $args['wrapper_class'] );
568
  ?>
569
  <div <?php echo $this->get_render_attribute_string( 'overlay_wrapper' );?>>
@@ -571,13 +849,26 @@ class ModernSearch extends Widget_Base {
571
  <div class="aux-close aux-cross-symbol aux-thick-medium"></div>
572
  </div>
573
  <div class="aux-search-popup-content">
574
- <?php $this->render_search_form() ;?>
 
 
 
 
 
 
 
 
 
 
 
 
 
575
  </div>
576
  </div>
577
  <?php
578
  }
579
 
580
- /**
581
  * Render Search Overlay.
582
  *
583
  * Render button widget text.
@@ -588,34 +879,92 @@ class ModernSearch extends Widget_Base {
588
  protected function render_search_form( $args = [] ) { ;
589
 
590
  $defaults = [
591
- 'wrapper_class' => 'aux-search-form'
 
 
 
 
 
592
  ];
593
 
594
  $args = wp_parse_args( $args, $defaults );
595
 
596
  $this->add_render_attribute( 'form_wrapper', 'class', $args['wrapper_class'] );
 
 
 
 
 
597
  ?>
598
  <div <?php echo $this->get_render_attribute_string( 'form_wrapper' );?>>
599
  <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get" >
600
  <div class="aux-search-input-form">
601
  <input type="text" class="aux-search-field" placeholder="<?php esc_attr_e('Search...', 'auxin-elements' ); ?>" name="s" autocomplete="off" />
602
- <div class="aux-submit-icon-container auxicon-search-4">
603
- <input type="submit" class="aux-iconic-search-submit" value="<?php esc_attr_e( 'Search', 'auxin-elements' ); ?>" >
604
- </div>
 
 
 
 
 
 
 
 
 
605
  </div>
606
  </form>
607
  </div>
608
  <?php
609
  }
610
 
611
- /**
612
- * Render image box widget output on the frontend.
613
- *
614
- * Written in PHP and used to generate the final HTML.
615
- *
616
- * @since 1.0.0
617
- * @access protected
618
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
  protected function render() {
620
  $settings = $this->get_settings_for_display();
621
 
@@ -626,7 +975,14 @@ class ModernSearch extends Widget_Base {
626
  'icon' => $settings['icon']
627
  ] );
628
 
629
- $this->render_search_overlay();
 
 
 
 
 
 
 
630
 
631
  echo '</div>';
632
  }
127
 
128
  $this->end_controls_section();
129
 
130
+ /* Search Section
131
+ /*-------------------------------------*/
132
+
133
+ $this->start_controls_section(
134
+ 'fullscreen',
135
+ [
136
+ 'label' => __( 'Fullscreen Search Input', 'auxin-elements' ),
137
+ ]
138
+ );
139
+
140
+ $this->add_control(
141
+ 'post_types',
142
+ [
143
+ 'label' => __('Post Types', 'auxin-elements'),
144
+ 'description' => __('Specifies a post type that you want to show posts from it.', 'auxin-elements' ),
145
+ 'type' => Controls_Manager::SELECT2,
146
+ 'multiple' => true,
147
+ 'options' => $this->get_post_types(),
148
+ 'default' => [ 'post' ],
149
+ ]
150
+ );
151
+
152
+ $this->add_control(
153
+ 'use_ajax',
154
+ [
155
+ 'label' => __( 'Enable Ajax Search', 'auxin-elements' ),
156
+ 'type' => Controls_Manager::SWITCHER,
157
+ 'label_on' => __( 'On', 'auxin-elements' ),
158
+ 'label_off' => __( 'Off', 'auxin-elements' ),
159
+ 'return_value' => 'yes',
160
+ 'default' => 'no',
161
+ 'separator' => 'before'
162
+ ]
163
+ );
164
+
165
+ $this->add_control(
166
+ 'fullscreen_display_submit',
167
+ [
168
+ 'label' => __( 'Display Submit Button', 'auxin-elements' ),
169
+ 'type' => Controls_Manager::SWITCHER,
170
+ 'label_on' => __( 'On', 'auxin-elements' ),
171
+ 'label_off' => __( 'Off', 'auxin-elements' ),
172
+ 'return_value' => 'yes',
173
+ 'default' => 'yes',
174
+ 'separator' => 'before'
175
+ ]
176
+ );
177
+
178
+ $this->add_control(
179
+ 'fullscreen_display_fill_submit',
180
+ [
181
+ 'label' => __( 'Display Fill Submit Button', 'auxin-elements' ),
182
+ 'type' => Controls_Manager::SWITCHER,
183
+ 'label_on' => __( 'On', 'auxin-elements' ),
184
+ 'label_off' => __( 'Off', 'auxin-elements' ),
185
+ 'return_value' => 'yes',
186
+ 'default' => 'no',
187
+ 'separator' => 'before',
188
+ 'condition' => [
189
+ 'fullscreen_display_submit' => 'yes'
190
+ ]
191
+ ]
192
+ );
193
+
194
+ $this->add_control(
195
+ 'fullscreen_display_cats',
196
+ [
197
+ 'label' => __( 'Display Categories', 'auxin-elements' ),
198
+ 'type' => Controls_Manager::SWITCHER,
199
+ 'label_on' => __( 'On', 'auxin-elements' ),
200
+ 'label_off' => __( 'Off', 'auxin-elements' ),
201
+ 'return_value' => 'yes',
202
+ 'default' => 'no',
203
+ 'separator' => 'before'
204
+ ]
205
+ );
206
+
207
+ $this->end_controls_section();
208
+
209
  /* Icon Style Section
210
  /*-------------------------------------*/
211
 
212
  $this->start_controls_section(
213
+ 'icon_style_section',
214
  [
215
+ 'label' => __( 'Icon', 'auxin-elements' ),
216
  'tab' => Controls_Manager::TAB_STYLE
217
  ]
218
  );
219
 
220
+ $this->start_controls_tabs( 'icon_styles' );
221
 
222
  $this->start_controls_tab(
223
+ 'icon_style_normal',
224
  [
225
  'label' => __( 'Normal' , 'auxin-elements' )
226
  ]
227
  );
228
 
229
  $this->add_control(
230
+ 'icon_color_normal',
231
+ [
232
+ 'label' => __( 'Color', 'auxin-elements' ),
233
+ 'type' => Controls_Manager::COLOR,
234
+ 'selectors' => [
235
+ '{{WRAPPER}} .aux-search-submit i' => 'color: {{VALUE}};'
236
+ ]
237
+ ]
238
+ );
239
+
240
+ $this->add_responsive_control(
241
+ 'icon_size_normal',
242
+ [
243
+ 'label' => __( 'Size', 'auxin-elements' ),
244
+ 'type' => Controls_Manager::SLIDER,
245
+ 'size_units' => [ 'px', '%' ],
246
+ 'range' => [
247
+ 'px' => [
248
+ 'min' => 16,
249
+ 'max' => 512,
250
+ 'step' => 2,
251
+ ],
252
+ '%' => [
253
+ 'min' => 0,
254
+ 'max' => 100,
255
+ ],
256
+ ],
257
+ 'default' => [
258
+ 'size' => 22,
259
+ 'unit' => 'px'
260
+ ],
261
+ 'selectors' => [
262
+ '{{WRAPPER}} .aux-search-submit i' => 'font-size: {{SIZE}}{{UNIT}};',
263
+ ],
264
+ ]
265
+ );
266
+
267
+ $this->end_controls_tab();
268
+
269
+ $this->start_controls_tab(
270
+ 'icon_style_hover',
271
+ [
272
+ 'label' => __( 'Hover' , 'auxin-elements' )
273
+ ]
274
+ );
275
+
276
+ $this->add_control(
277
+ 'icon_color_hover',
278
+ [
279
+ 'label' => __( 'Color', 'auxin-elements' ),
280
+ 'type' => Controls_Manager::COLOR,
281
+ 'selectors' => [
282
+ '{{WRAPPER}} .aux-search-submit:hover i' => 'color: {{VALUE}};'
283
+ ]
284
+ ]
285
+ );
286
+
287
+ $this->add_responsive_control(
288
+ 'icon_size_hover',
289
+ [
290
+ 'label' => __( 'Size', 'auxin-elements' ),
291
+ 'type' => Controls_Manager::SLIDER,
292
+ 'size_units' => [ 'px', '%' ],
293
+ 'range' => [
294
+ 'px' => [
295
+ 'min' => 16,
296
+ 'max' => 512,
297
+ 'step' => 2,
298
+ ],
299
+ '%' => [
300
+ 'min' => 0,
301
+ 'max' => 100,
302
+ ],
303
+ ],
304
+ 'selectors' => [
305
+ '{{WRAPPER}} .aux-search-submit:hover i' => 'font-size: {{SIZE}}{{UNIT}};',
306
+ ],
307
+ ]
308
+ );
309
+
310
+ $this->end_controls_tab();
311
+
312
+ $this->end_controls_tabs();
313
+
314
+ $this->end_controls_section();
315
+
316
+ /* Text Style Section
317
+ /*-------------------------------------*/
318
+ $this->start_controls_section(
319
+ 'text_style_section',
320
+ [
321
+ 'label' => __( 'Text', 'auxin-elements' ),
322
+ 'tab' => Controls_Manager::TAB_STYLE,
323
+ 'condition' => ['text!' => '']
324
+ ]
325
+ );
326
+
327
+ $this->start_controls_tabs( 'text_styles' );
328
+
329
+ $this->start_controls_tab(
330
+ 'text_style_normal',
331
+ [
332
+ 'label' => __( 'Normal' , 'auxin-elements' )
333
+ ]
334
+ );
335
+
336
+ $this->add_control(
337
+ 'text_color_normal',
338
  [
339
  'label' => __( 'Color', 'auxin-elements' ),
340
  'type' => Controls_Manager::COLOR,
347
  $this->add_group_control(
348
  Group_Control_Typography::get_type(),
349
  [
350
+ 'name' => 'text_typo_normal',
351
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
352
  'selector' => '{{WRAPPER}} .aux-search-submit'
353
  ]
356
  $this->add_group_control(
357
  Group_Control_Text_Shadow::get_type(),
358
  [
359
+ 'name' => 'text_text_shadow_normal',
360
  'selector' => '{{WRAPPER}} .aux-search-submit'
361
  ]
362
  );
363
 
364
+ $this->end_controls_tab();
365
+
366
+ $this->start_controls_tab(
367
+ 'text_style_hover',
368
  [
369
+ 'label' => __( 'Hover' , 'auxin-elements' )
370
+ ]
371
+ );
372
+
373
+ $this->add_control(
374
+ 'text_color_hover',
375
+ [
376
+ 'label' => __( 'Color', 'auxin-elements' ),
377
+ 'type' => Controls_Manager::COLOR,
378
+ 'selectors' => [
379
+ '{{WRAPPER}} .aux-search-submit:hover' => 'color: {{VALUE}};'
380
+ ]
381
  ]
382
  );
383
 
384
  $this->add_group_control(
385
+ Group_Control_Typography::get_type(),
386
  [
387
+ 'name' => 'text_typo_hover',
388
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
389
+ 'selector' => '{{WRAPPER}} .aux-search-submit:hover'
390
  ]
391
  );
392
 
393
  $this->add_group_control(
394
+ Group_Control_Text_Shadow::get_type(),
395
  [
396
+ 'name' => 'text_text_shadow_hover',
397
+ 'selector' => '{{WRAPPER}} .aux-search-submit:hover'
 
398
  ]
399
  );
400
 
401
+ $this->end_controls_tab();
402
+
403
+ $this->end_controls_tabs();
404
+
405
+ $this->end_controls_section();
406
+
407
+ /* Button Style Section
408
+ /*-------------------------------------*/
409
+
410
+ $this->start_controls_section(
411
+ 'button_style_section',
412
  [
413
+ 'label' => __( 'Button', 'auxin-elements' ),
414
+ 'tab' => Controls_Manager::TAB_STYLE,
415
+ ]
416
+ );
417
+
418
+ $this->start_controls_tabs( 'button_styles' );
419
+
420
+ $this->start_controls_tab(
421
+ 'button_style_normal',
422
+ [
423
+ 'label' => __( 'Normal' , 'auxin-elements' )
424
+ ]
425
+ );
426
+
427
+ $this->add_group_control(
428
+ Group_Control_Background::get_type(),
429
+ [
430
+ 'name' => 'button_bg_normal',
431
+ 'selector' => '{{WRAPPER}} .aux-search-submit',
432
+ 'types' => [ 'classic', 'gradient'],
433
+ 'separator' => 'after'
434
  ]
435
  );
436
 
447
  ]
448
  );
449
 
450
+ $this->add_group_control(
451
+ Group_Control_Border::get_type(),
 
 
452
  [
453
+ 'name' => 'button_border_normal',
454
+ 'selector' => '{{WRAPPER}} .aux-search-submit',
455
+ 'separator' => 'none',
456
+ 'separator' => 'before'
457
  ]
458
  );
459
 
460
+ $this->add_responsive_control(
461
+ 'button_border_radius_normal',
462
  [
463
+ 'label' => __( 'Border Radius', 'auxin-elements' ),
464
+ 'type' => Controls_Manager::DIMENSIONS,
465
+ 'size_units' => [ 'px', 'em', '%' ],
466
+ 'allowed_dimensions' => 'all',
467
+ 'separator' => 'before',
468
+ 'selectors' => [
469
+ '{{WRAPPER}} .aux-search-submit' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
470
+ ],
471
  ]
472
  );
473
 
474
  $this->add_group_control(
475
+ Group_Control_Box_Shadow::get_type(),
476
  [
477
+ 'name' => 'button_box_shadow_normal',
478
+ 'selector' => '{{WRAPPER}} .aux-search-submit',
479
+ 'separator' => 'before'
480
  ]
481
  );
482
 
483
+ $this->end_controls_tab();
484
+
485
+ $this->start_controls_tab(
486
+ 'button_style_hover',
487
  [
488
+ 'label' => __( 'Hover' , 'auxin-elements' )
 
489
  ]
490
  );
491
 
492
  $this->add_group_control(
493
+ Group_Control_Background::get_type(),
494
  [
495
+ 'name' => 'button_bg_hover',
496
+ 'selector' => '{{WRAPPER}} .aux-search-submit: hover',
497
+ 'types' => [ 'classic', 'gradient'],
498
+ 'separator' => 'after'
499
  ]
500
  );
501
 
502
+ $this->add_responsive_control(
503
+ 'button_padding_hover',
504
  [
505
+ 'label' => __( 'Padding', 'auxin-elements' ),
506
+ 'type' => Controls_Manager::DIMENSIONS,
507
+ 'size_units' => [ 'px', '%' ],
508
+ 'selectors' => [
509
+ '{{WRAPPER}} .aux-search-submit:hover' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
510
+ ],
511
+ 'separator' => 'before'
512
  ]
513
  );
514
 
517
  [
518
  'name' => 'button_border_hover',
519
  'selector' => '{{WRAPPER}} .aux-search-submit:hover',
520
+ 'separator' => 'before'
521
  ]
522
  );
523
 
530
  'selectors' => [
531
  '{{WRAPPER}} .aux-search-submit:hover' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
532
  ],
533
+ 'allowed_dimensions' => 'all',
534
+ 'separator' => 'before'
535
  ]
536
  );
537
+ $this->add_group_control(
538
+ Group_Control_Box_Shadow::get_type(),
 
539
  [
540
+ 'name' => 'button_box_shadow_hover',
541
+ 'selector' => '{{WRAPPER}} .aux-search-submit:hover',
542
+ 'separator' => 'before'
 
 
 
 
543
  ]
544
  );
545
 
 
546
  $this->end_controls_tab();
547
 
548
  $this->end_controls_tabs();
549
 
550
+ $this->add_control(
551
+ 'button_cursor',
552
+ [
553
+ 'label' => __( 'Cursor', 'auxin-elements' ),
554
+ 'type' => Controls_Manager::SELECT,
555
+ 'options' => [
556
+ 'default' => __( 'Default', 'auxin-elements' ),
557
+ 'pointer' => __( 'Pointer', 'auxin-elements' ),
558
+ 'zoom-in' => __( 'Zoom', 'auxin-elements' ),
559
+ 'help' => __( 'Help', 'auxin-elements' )
560
+ ],
561
+ 'default' => 'pointer',
562
+ 'selectors' => [
563
+ '{{WRAPPER}} .aux-search-submit' => 'cursor: {{VALUE}};'
564
+ ],
565
+ 'separator' => 'before'
566
+ ]
567
+ );
568
+
569
  $this->end_controls_section();
570
 
571
+ /* Input Style Section
572
  /*-------------------------------------*/
573
 
574
  $this->start_controls_section(
575
+ 'input_style_section',
576
  [
577
+ 'label' => __( 'Fullscreen Search Input', 'auxin-elements' ),
578
  'tab' => Controls_Manager::TAB_STYLE
579
  ]
580
  );
581
 
 
582
 
583
+ $this->add_control(
584
+ 'input_color',
585
  [
586
+ 'label' => __( 'Text Color', 'auxin-elements' ),
587
+ 'type' => Controls_Manager::COLOR,
588
+ 'selectors' => [
589
+ '{{WRAPPER}} .aux-search-popup .aux-search-field' => 'color: {{VALUE}};'
590
+ ],
591
+ 'separator' => 'after'
592
  ]
593
  );
594
 
595
+ $this->add_group_control(
596
+ Group_Control_Typography::get_type(),
597
  [
598
+ 'name' => 'input_typo',
599
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
600
+ 'selector' => '{{WRAPPER}} .aux-search-popup .aux-search-field',
601
+ 'separator' => 'before'
 
602
  ]
603
  );
604
 
605
  $this->add_responsive_control(
606
+ 'input_padding',
607
  [
608
+ 'label' => __( 'Padding', 'auxin-elements' ),
609
+ 'type' => Controls_Manager::DIMENSIONS,
610
  'size_units' => [ 'px', '%' ],
611
+ 'selectors' => [
612
+ '{{WRAPPER}} .aux-search-popup .aux-search-field' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
613
+ ],
614
+ 'separator' => 'before'
615
+ ]
616
+ );
617
+
618
+ $this->add_responsive_control(
619
+ 'input_border_size',
620
+ [
621
+ 'label' => __( 'Border Size', 'auxin-elements' ),
622
+ 'type' => Controls_Manager::SLIDER,
623
+ 'size_units' => [ 'px' ],
624
  'range' => [
625
  'px' => [
 
 
 
 
 
626
  'min' => 0,
627
+ 'max' => 20,
628
+ 'step' => 1,
629
  ],
630
  ],
631
  'default' => [
632
+ 'size' => 2,
633
  'unit' => 'px'
634
  ],
635
  'selectors' => [
636
+ '{{WRAPPER}} .aux-search-popup .aux-search-input-form' => 'border-width: {{SIZE}}{{UNIT}};',
637
  ],
638
+ 'separator' => 'before'
 
 
 
 
 
 
 
 
639
  ]
640
  );
641
 
642
  $this->add_control(
643
+ 'input_border_color',
644
  [
645
+ 'label' => __( 'Border Color', 'auxin-elements' ),
646
+ 'type' => Controls_Manager::COLOR,
647
  'selectors' => [
648
+ '{{WRAPPER}} .aux-search-popup .aux-search-input-form' => 'border-color: {{VALUE}};'
649
+ ],
650
+ 'separator' => 'before'
651
  ]
652
  );
653
 
654
  $this->add_responsive_control(
655
+ 'input_icon_size',
656
  [
657
+ 'label' => __( 'Icon Size', 'auxin-elements' ),
658
  'type' => Controls_Manager::SLIDER,
659
  'size_units' => [ 'px', '%' ],
660
  'range' => [
669
  ],
670
  ],
671
  'default' => [
672
+ 'size' => 30,
673
  'unit' => 'px'
674
  ],
675
  'selectors' => [
676
+ '{{WRAPPER}} .aux-search-popup .aux-submit-icon-container:before' => 'font-size: {{SIZE}}{{UNIT}};',
677
  ],
678
+ 'separator' => 'before'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
679
  ]
680
  );
681
 
682
  $this->add_control(
683
+ 'input_icon_color',
684
  [
685
+ 'label' => __( 'Icon Color', 'auxin-elements' ),
686
  'type' => Controls_Manager::COLOR,
687
  'selectors' => [
688
  '{{WRAPPER}} .aux-search-popup .aux-submit-icon-container:before' => 'color: {{VALUE}} !important;'
689
+ ],
690
+ 'separator' => 'before'
691
  ]
692
  );
693
 
694
+ $this->add_group_control(
695
+ Group_Control_Background::get_type(),
696
  [
697
+ 'name' => 'input_bg',
698
+ 'selector' => '{{WRAPPER}} .aux-search-popup',
699
+ 'types' => [ 'classic', 'gradient'],
700
+ 'separator' => 'before',
701
+ 'fields_options' => [
702
+ 'background' => [
703
+ 'label' => __( 'Overlay Color', 'auxin-elements' ),
704
+ ],
705
+ ],
706
  ]
707
  );
708
 
709
  $this->end_controls_section();
710
 
711
+ /* Input Style Section
712
  /*-------------------------------------*/
713
 
714
  $this->start_controls_section(
715
+ 'close_style_section',
716
  [
717
+ 'label' => __( 'Fullscreen Close Button', 'auxin-elements' ),
718
  'tab' => Controls_Manager::TAB_STYLE
719
  ]
720
  );
721
 
722
+ $this->add_responsive_control(
723
+ 'close_position_top',
724
  [
725
+ 'label' => __('Top Position','auxin-elements' ),
726
+ 'type' => Controls_Manager::SLIDER,
727
+ 'size_units' => ['px', 'em', '%'],
728
+ 'range' => [
729
+ 'px' => [
730
+ 'min' => -2000,
731
+ 'max' => 2000,
732
+ 'step' => 1
733
+ ],
734
+ '%' => [
735
+ 'min' => -100,
736
+ 'max' => 100,
737
+ 'step' => 1
738
+ ],
739
+ 'em' => [
740
+ 'min' => -150,
741
+ 'max' => 150,
742
+ 'step' => 1
743
+ ]
744
+ ],
745
+ 'selectors' => [
746
+ '{{WRAPPER}} .aux-search-popup .aux-panel-close' => 'top:{{SIZE}}{{UNIT}};'
747
+ ],
748
+ ]
749
+ );
750
+
751
+ $this->add_responsive_control(
752
+ 'close_position_right',
753
+ [
754
+ 'label' => __('Right Position','auxin-elements' ),
755
+ 'type' => Controls_Manager::SLIDER,
756
+ 'size_units' => ['px', 'em', '%'],
757
+ 'range' => [
758
+ 'px' => [
759
+ 'min' => -2000,
760
+ 'max' => 2000,
761
+ 'step' => 1
762
+ ],
763
+ '%' => [
764
+ 'min' => -100,
765
+ 'max' => 100,
766
+ 'step' => 1
767
+ ],
768
+ 'em' => [
769
+ 'min' => -150,
770
+ 'max' => 150,
771
+ 'step' => 1
772
+ ]
773
+ ],
774
+ 'selectors' => [
775
+ '{{WRAPPER}} .aux-search-popup .aux-panel-close' => 'right:{{SIZE}}{{UNIT}};'
776
+ ],
777
  ]
778
  );
779
 
827
  protected function render_search_overlay( $args = [] ) { ;
828
 
829
  $defaults = [
830
+ 'wrapper_class' => 'aux-search-popup aux-search-popup-' . $this->get_id(),
831
+ 'use_ajax' => false,
832
+ 'post_types' => []
833
  ];
834
 
835
  $args = wp_parse_args( $args, $defaults );
836
 
837
+ $form_args = [
838
+ 'use_ajax' => $args['use_ajax'],
839
+ 'display_submit' => $args['display_submit'],
840
+ 'display_fill' => $args['display_fill'],
841
+ 'display_cats' => $args['display_cats'],
842
+ 'post_types' => $args['post_types']
843
+ ];
844
+
845
  $this->add_render_attribute( 'overlay_wrapper', 'class', $args['wrapper_class'] );
846
  ?>
847
  <div <?php echo $this->get_render_attribute_string( 'overlay_wrapper' );?>>
849
  <div class="aux-close aux-cross-symbol aux-thick-medium"></div>
850
  </div>
851
  <div class="aux-search-popup-content">
852
+ <?php $this->render_search_form( $form_args ) ;?>
853
+ <?php if ( $args['use_ajax'] ) { ;?>
854
+ <div class="aux-search-ajax-container">
855
+ <div class="aux-search-ajax-output"></div>
856
+ <div class="aux-loading-spinner aux-spinner-hide">
857
+ <div class="aux-loading-loop">
858
+ <svg class="aux-circle" width="100%" height="100%" viewBox="0 0 42 42">
859
+ <circle class="aux-stroke-bg" r="20" cx="21" cy="21" fill="none"></circle>
860
+ <circle class="aux-progress" r="20" cx="21" cy="21" fill="none" transform="rotate(-90 21 21)"></circle>
861
+ </svg>
862
+ </div>
863
+ </div>
864
+ </div>
865
+ <?php };?>
866
  </div>
867
  </div>
868
  <?php
869
  }
870
 
871
+ /**
872
  * Render Search Overlay.
873
  *
874
  * Render button widget text.
879
  protected function render_search_form( $args = [] ) { ;
880
 
881
  $defaults = [
882
+ 'wrapper_class' => 'aux-search-form',
883
+ 'use_ajax' => false,
884
+ 'display_submit' => true,
885
+ 'display_fill' => false,
886
+ 'display_cats' => false,
887
+ 'post_types' => []
888
  ];
889
 
890
  $args = wp_parse_args( $args, $defaults );
891
 
892
  $this->add_render_attribute( 'form_wrapper', 'class', $args['wrapper_class'] );
893
+
894
+ if ( $args['use_ajax'] ) {
895
+ $this->add_render_attribute( 'form_wrapper', 'class', 'aux-search-ajax' );
896
+ }
897
+
898
  ?>
899
  <div <?php echo $this->get_render_attribute_string( 'form_wrapper' );?>>
900
  <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get" >
901
  <div class="aux-search-input-form">
902
  <input type="text" class="aux-search-field" placeholder="<?php esc_attr_e('Search...', 'auxin-elements' ); ?>" name="s" autocomplete="off" />
903
+ <?php if ( $args['display_cats'] ) { ;?>
904
+ <?php $this->render_category( ['post_types' => $args['post_types'] ] );?>
905
+ <?php };?>
906
+ <?php if ( $args['display_submit'] ) { ;?>
907
+ <?php if ( $args['display_fill'] ) { ;?>
908
+ <input type="submit" class="aux-fill-search-submit" value="<?php esc_attr_e( 'Search', THEME_DOMAIN ); ?>" >
909
+ <?php } else { ;?>
910
+ <div class="aux-submit-icon-container auxicon-search-4">
911
+ <input type="submit" class="aux-iconic-search-submit" value="<?php esc_attr_e( 'Search', 'auxin-elements' ); ?>" >
912
+ </div>
913
+ <?php };?>
914
+ <?php };?>
915
  </div>
916
  </form>
917
  </div>
918
  <?php
919
  }
920
 
921
+ /**
922
+ * Render Search Overlay.
923
+ *
924
+ * Render button widget text.
925
+ *
926
+ * @since 1.5.0
927
+ * @access protected
928
+ */
929
+ protected function render_category( $args ) {
930
+ $taxonomies = $args['post_types'];
931
+ $options_output = '<option value="">' . __('All Categories', THEME_DOMAIN) . '</option>';
932
+
933
+ foreach ( $taxonomies as $taxonomy ) {
934
+
935
+ $terms = get_terms( $taxonomy );
936
+
937
+ foreach ($terms as $term => $term_args) {
938
+ $options_output .= '<option data-taxonomy="' . esc_attr( $term_args->taxonomy ) . '" value="'. esc_attr( $term_args->term_id ) .'">'. esc_html( $term_args->name ) .'</option>';
939
+ }
940
+
941
+ }
942
+
943
+ $output = '<div class="aux-search-cats">';
944
+ $output .= '<select class="aux-modern-search-cats" name="cat">' . $options_output . '</select>';
945
+ $output .= '</div>';
946
+
947
+ echo $output;
948
+ }
949
+
950
+ /**
951
+ * Get All Active Post Types.
952
+ *
953
+ * @since 1.5.0
954
+ * @access protected
955
+ */
956
+ protected function get_post_types() {
957
+ return auxin_general_post_types_category_slug();
958
+ }
959
+
960
+ /**
961
+ * Render Modern Search widget output on the frontend.
962
+ *
963
+ * Written in PHP and used to generate the final HTML.
964
+ *
965
+ * @since 1.0.0
966
+ * @access protected
967
+ */
968
  protected function render() {
969
  $settings = $this->get_settings_for_display();
970
 
975
  'icon' => $settings['icon']
976
  ] );
977
 
978
+ $this->render_search_overlay( [
979
+ 'use_ajax' => auxin_is_true( $settings['use_ajax'] ),
980
+ 'display_submit' => auxin_is_true( $settings['fullscreen_display_submit'] ),
981
+ 'display_cats' => auxin_is_true( $settings['fullscreen_display_cats']),
982
+ 'display_fill' => auxin_is_true( $settings['fullscreen_display_fill_submit'] ),
983
+ 'post_types' => $settings['post_types']
984
+ ]
985
+ );
986
 
987
  echo '</div>';
988
  }
includes/elementor/widgets/theme-elements/search.php CHANGED
@@ -150,21 +150,6 @@ class SearchBox extends Widget_Base {
150
  )
151
  );
152
 
153
- $this->add_control(
154
- 'is_ajax',
155
- array(
156
- 'label' => __('Ajax Search', 'auxin-elements'),
157
- 'type' => Controls_Manager::SWITCHER,
158
- 'label_on' => __( 'On', 'auxin-elements' ),
159
- 'label_off' => __( 'Off', 'auxin-elements' ),
160
- 'return_value' => true,
161
- 'default' => true,
162
- 'condition' => array(
163
- 'type' => 'icon'
164
- )
165
- )
166
- );
167
-
168
  $this->add_control(
169
  'has_category',
170
  array(
@@ -484,7 +469,7 @@ class SearchBox extends Widget_Base {
484
 
485
  if ( 'icon' === $settings['type'] ) {
486
  $args['has_form'] = false;
487
- $args['is_ajax'] = auxin_is_true( $settings['is_ajax'] );
488
  $args['toggle_icon_class'] = 'aux-overlay-search';
489
 
490
  } else {
150
  )
151
  );
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  $this->add_control(
154
  'has_category',
155
  array(
469
 
470
  if ( 'icon' === $settings['type'] ) {
471
  $args['has_form'] = false;
472
+ $args['is_ajax'] = false;
473
  $args['toggle_icon_class'] = 'aux-overlay-search';
474
 
475
  } else {
includes/elements/accordion.php CHANGED
@@ -167,7 +167,7 @@ function auxin_widget_accordion_callback( $atts, $shortcode_content = null ){
167
  // widget custom output -----------------------
168
  if ( is_array( $accordion ) || is_object( $accordion ) ) {
169
  foreach ( $accordion as $index => $value ) {
170
- $output .= '<section>';
171
 
172
  $id_number = esc_attr( $tab_id_prefix . ( $index + 1 ) );
173
 
167
  // widget custom output -----------------------
168
  if ( is_array( $accordion ) || is_object( $accordion ) ) {
169
  foreach ( $accordion as $index => $value ) {
170
+ $output .= '<section class="aux-toggle-item">';
171
 
172
  $id_number = esc_attr( $tab_id_prefix . ( $index + 1 ) );
173
 
includes/elements/custom-list.php CHANGED
@@ -241,6 +241,7 @@ function auxin_widget_list_callback( $atts, $shortcode_content = null ){
241
  $output .= $result['widget_title'];
242
 
243
  $output .= '<div class="widget-inner">';
 
244
 
245
  // Attrs for list wrapper
246
  $list_attrs = array(
@@ -258,11 +259,16 @@ function auxin_widget_list_callback( $atts, $shortcode_content = null ){
258
  // Class for each repeater item
259
  $item_classes = array( 'aux-icon-list-item' );
260
 
 
 
 
 
261
  if( ! empty( $list_item['custom_class_name'] ) ) {
262
  $item_classes[] = $list_item['custom_class_name'];
263
  }
264
 
265
  if( $item_unique_id = ! empty( $list_item['_id'] ) ? $list_item['_id'] : '' ){
 
266
  $item_classes[] = 'aux-icon-list-item-'. $item_unique_id;
267
  $item_classes[] = 'elementor-repeater-item-'. $item_unique_id;
268
  }
@@ -311,7 +317,7 @@ function auxin_widget_list_callback( $atts, $shortcode_content = null ){
311
  }
312
  }
313
 
314
- $output .= '</ul></div>'; // End od widget-toggle
315
  $output .= $result['widget_footer'];
316
 
317
  // widget footer ------------------------------
241
  $output .= $result['widget_title'];
242
 
243
  $output .= '<div class="widget-inner">';
244
+ $output .= '<div class="aux-widget-icon-list-inner">';
245
 
246
  // Attrs for list wrapper
247
  $list_attrs = array(
259
  // Class for each repeater item
260
  $item_classes = array( 'aux-icon-list-item' );
261
 
262
+ if( auxin_is_true( $connector ) ){
263
+ $item_classes[] = 'aux-list-item-has-connector';
264
+ }
265
+
266
  if( ! empty( $list_item['custom_class_name'] ) ) {
267
  $item_classes[] = $list_item['custom_class_name'];
268
  }
269
 
270
  if( $item_unique_id = ! empty( $list_item['_id'] ) ? $list_item['_id'] : '' ){
271
+ $item_classes[] = 'aux-list-item-has-icon';
272
  $item_classes[] = 'aux-icon-list-item-'. $item_unique_id;
273
  $item_classes[] = 'elementor-repeater-item-'. $item_unique_id;
274
  }
317
  }
318
  }
319
 
320
+ $output .= '</ul></div></div>'; // End od widget-toggle
321
  $output .= $result['widget_footer'];
322
 
323
  // widget footer ------------------------------
includes/general-functions.php CHANGED
@@ -2069,8 +2069,8 @@ function auxin_get_header_template(){
2069
  global $post;
2070
 
2071
  $template_ID = auxin_get_option( 'site_elementor_header_template', '' );
2072
- $template_ID = strpos( auxin_get_post_meta( $post, 'page_elementor_header_template' ), '-def') === false ?
2073
- $template_ID : auxin_get_post_meta( $post, 'page_elementor_header_template' );
2074
 
2075
  $attrs = [
2076
  'class' => ['aux-elementor-header'],
@@ -2431,4 +2431,43 @@ function auxin_search_page_results($post_type = 'post',$args = array()) {
2431
  break;
2432
  }
2433
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2434
  }
2069
  global $post;
2070
 
2071
  $template_ID = auxin_get_option( 'site_elementor_header_template', '' );
2072
+ $template_ID = ( ! empty( auxin_get_post_meta( $post, 'page_elementor_header_template' ) ) && auxin_get_post_meta($post , 'page_header_use_legacy' ) !== 'default' ) ?
2073
+ auxin_get_post_meta( $post, 'page_elementor_header_template' ) : $template_ID ;
2074
 
2075
  $attrs = [
2076
  'class' => ['aux-elementor-header'],
2431
  break;
2432
  }
2433
 
2434
+ }
2435
+
2436
+ /**
2437
+ * Used to create an image size if not exist
2438
+ *
2439
+ * @param int $attachment_id
2440
+ * @param string $size
2441
+ *
2442
+ * @return void
2443
+ */
2444
+
2445
+ function auxin_maybe_create_image_size( $attachment_id, $size = '' ) {
2446
+
2447
+ if ( empty( $attachment_id) || ! is_numeric( $attachment_id ) ) {
2448
+ return;
2449
+ }
2450
+ // check if image size exist or not
2451
+ if ( ! image_get_intermediate_size( $attachment_id, $size )) {
2452
+
2453
+ if ( ! function_exists( 'wp_update_image_subsizes' ) ) {
2454
+ require_once( ABSPATH . "wp-admin" . '/includes/image.php' );
2455
+ }
2456
+
2457
+ // if WP version is less than 5.3.0
2458
+ if( ! function_exists( 'wp_get_missing_image_subsizes' ) ){
2459
+ return;
2460
+ }
2461
+
2462
+ // only create the image size we need
2463
+ if ( ! isset( wp_get_missing_image_subsizes( $attachment_id )[ $size ] ) ) {
2464
+ return;
2465
+ }
2466
+
2467
+ add_filter( 'wp_get_missing_image_subsizes', function( $missing_sizes ) use ( $size ) {
2468
+ return array( $size => $missing_sizes[ $size ] );
2469
+ });
2470
+
2471
+ wp_update_image_subsizes( $attachment_id );
2472
+ }
2473
  }
includes/general-hooks.php CHANGED
@@ -578,7 +578,7 @@ function auxin_add_theme_options_in_plugin( $fields_sections_list ){
578
 
579
  $fields_sections_list['fields'][] = array(
580
  'title' => __( 'Use Legacy Header', 'auxin-elements' ),
581
- 'description' => __( 'Enable it to replace header section with an Elementor template', 'auxin-elements' ),
582
  'id' => 'site_header_btn1_section_use_legacy',
583
  'section' => 'header-section-action-button1',
584
  'type' => 'switch',
@@ -983,7 +983,7 @@ function auxin_add_theme_options_in_plugin( $fields_sections_list ){
983
 
984
  $fields_sections_list['fields'][] = array(
985
  'title' => __( 'Use Legacy Header', 'auxin-elements' ),
986
- 'description' => __( 'Enable it to replace header section with an Elementor template', 'auxin-elements' ),
987
  'id' => 'site_header_btn2_section_use_legacy',
988
  'section' => 'header-section-action-button2',
989
  'type' => 'switch',
578
 
579
  $fields_sections_list['fields'][] = array(
580
  'title' => __( 'Use Legacy Header', 'auxin-elements' ),
581
+ 'description' => __( 'Disable it to replace header section with an Elementor template', 'auxin-elements' ),
582
  'id' => 'site_header_btn1_section_use_legacy',
583
  'section' => 'header-section-action-button1',
584
  'type' => 'switch',
983
 
984
  $fields_sections_list['fields'][] = array(
985
  'title' => __( 'Use Legacy Header', 'auxin-elements' ),
986
+ 'description' => __( 'Disable it to replace header section with an Elementor template', 'auxin-elements' ),
987
  'id' => 'site_header_btn2_section_use_legacy',
988
  'section' => 'header-section-action-button2',
989
  'type' => 'switch',
public/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.5.1 (2020-03-09)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
1
+ /*! Phlox Core Plugin - v2.5.2 (2020-03-16)
2
  * All required plugins
3
  * http://phlox.pro/
4
  */
public/includes/frontend-ajax.php CHANGED
@@ -241,15 +241,16 @@ function auxels_ajax_search() {
241
  $empty_wrapper_end = "</div>";
242
 
243
  // Emtpy Result Message and Dom - when main post type is empty or both post types or empty
244
- $empty_result_message = esc_html__( "Nothing Matched %s From %s", 'auxin-elements' );
245
- $both_empty_result_message = esc_html__( "Nothing Matched %s From %s And %s", 'auxin-elements');
246
 
247
  $empty_result_dom = $empty_wrapper_start.
248
- "<span class='aux-empty-result'>".
249
  sprintf(
250
  $empty_result_message,
251
- "<span class='aux-search-phrase'>\"".$s."\"</span><br>",
252
- "<span class='aux-post-type'>\"".$search_post_type."\"</span>"
 
253
  ).
254
  "</span>".
255
  $empty_wrapper_end;
@@ -258,9 +259,10 @@ function auxels_ajax_search() {
258
  "<span class='aux-empty-result'>".
259
  sprintf(
260
  $both_empty_result_message,
261
- "<span class='aux-search-phrase'>\"".$s."\"</span><br>",
262
- "<span class='aux-post-type'>\"".$search_post_type."\"</span>",
263
- "<span class='aux-post-type'>\"".$second_post_type."\"</span>"
 
264
  ).
265
  "</span>".
266
  $empty_wrapper_end;
241
  $empty_wrapper_end = "</div>";
242
 
243
  // Emtpy Result Message and Dom - when main post type is empty or both post types or empty
244
+ $empty_result_message = esc_html__( "No Result! %s Nothing Found For: %s From %s", 'auxin-elements' );
245
+ $both_empty_result_message = esc_html__( "No Result! %s Nothing Found For: %s From %s And %s", 'auxin-elements');
246
 
247
  $empty_result_dom = $empty_wrapper_start.
248
+ '<span class="aux-empty-result">' .
249
  sprintf(
250
  $empty_result_message,
251
+ '</br>',
252
+ '<span class="aux-search-phrase">"' .$s. '"</span><br>',
253
+ '<span class="aux-post-type">' .$search_post_type. '</span>'
254
  ).
255
  "</span>".
256
  $empty_wrapper_end;
259
  "<span class='aux-empty-result'>".
260
  sprintf(
261
  $both_empty_result_message,
262
+ '</br>',
263
+ '<span class="aux-search-phrase">"' .$s. '"</span><br>',
264
+ '<span class="aux-post-type">' .$search_post_type. '</span>',
265
+ '<span class="aux-post-type">' .$second_post_type. '</span>'
266
  ).
267
  "</span>".
268
  $empty_wrapper_end;