Shortcodes and extra features for Phlox theme - Version 2.4.16

Version Description

Download this release

Release Info

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

Code changes from version 2.4.14 to 2.4.16

Files changed (84) hide show
  1. README.txt +5 -2
  2. admin/assets/js/plugins.js +1 -1
  3. admin/includes/metaboxes/metabox-fields-general-advanced.php +1 -1
  4. admin/includes/metaboxes/metabox-fields-general-footer.php +1 -1
  5. admin/includes/metaboxes/metabox-fields-general-header.php +1 -1
  6. admin/includes/metaboxes/metabox-fields-general-top-header.php +1 -1
  7. admin/includes/metaboxes/metabox-fields-page-template.php +1 -1
  8. admin/includes/metaboxes/metabox-fields-post-audio.php +1 -1
  9. admin/includes/metaboxes/metabox-fields-post-gallery.php +1 -1
  10. admin/includes/metaboxes/metabox-fields-post-quote.php +1 -1
  11. admin/includes/metaboxes/metabox-fields-post-video.php +1 -1
  12. auxin-elements.php +2 -2
  13. includes/classes/class-auxels-admin-assets.php +1 -1
  14. includes/classes/class-auxels-archive-menu-links.php +1 -1
  15. includes/classes/class-auxin-admin-dashboard.php +1 -1
  16. includes/classes/class-auxin-demo-importer.php +1 -1
  17. includes/classes/class-auxin-import.php +1 -1
  18. includes/classes/class-auxin-install.php +1 -1
  19. includes/classes/class-auxin-master-nav-menu-admin.php +1 -1
  20. includes/classes/class-auxin-page-template.php +1 -1
  21. includes/classes/class-auxin-permalink.php +1 -1
  22. includes/classes/class-auxin-post-type-base.php +1 -1
  23. includes/classes/class-auxin-siteorigin-widget.php +1 -1
  24. includes/classes/class-auxin-walker-nav-menu-back.php +1 -1
  25. includes/classes/class-auxin-widget-indie.php +1 -1
  26. includes/classes/class-auxin-widget-shortcode-map.php +1 -1
  27. includes/classes/class-auxin-widget.php +1 -1
  28. includes/define.php +1 -1
  29. includes/elementor/class-auxin-elementor-core-elements.php +21 -1
  30. includes/elementor/modules/documents/header.php +1 -1
  31. includes/elementor/modules/settings/base/manager.php +95 -0
  32. includes/elementor/modules/settings/general/manager.php +72 -0
  33. includes/elementor/modules/settings/page/manager.php +35 -0
  34. includes/elementor/widgets/testimonial.php +225 -55
  35. includes/elementor/widgets/theme-elements/logo.php +664 -0
  36. includes/elementor/widgets/theme-elements/menu.php +371 -131
  37. includes/elements/about-widget.php +1 -1
  38. includes/elements/accordion-widget.php +1 -1
  39. includes/elements/accordion.php +1 -1
  40. includes/elements/attachment-url.php +1 -1
  41. includes/elements/audio.php +1 -1
  42. includes/elements/before-after.php +1 -1
  43. includes/elements/button.php +1 -1
  44. includes/elements/code.php +1 -1
  45. includes/elements/contact-box.php +1 -1
  46. includes/elements/contact-form.php +1 -1
  47. includes/elements/custom-list.php +1 -1
  48. includes/elements/divider.php +1 -1
  49. includes/elements/dropcap.php +1 -1
  50. includes/elements/facebook.php +1 -1
  51. includes/elements/flickr.php +1 -1
  52. includes/elements/gallery.php +1 -1
  53. includes/elements/general-element-fields.php +1 -1
  54. includes/elements/gmap.php +1 -1
  55. includes/elements/highlight.php +1 -1
  56. includes/elements/image.php +1 -1
  57. includes/elements/instagram-feed.php +1 -1
  58. includes/elements/latest-posts-slider.php +1 -1
  59. includes/elements/popular-posts-widget.php +1 -1
  60. includes/elements/quote.php +1 -1
  61. includes/elements/recent-posts-grid-carousel.php +1 -1
  62. includes/elements/recent-posts-land-style.php +1 -1
  63. includes/elements/recent-posts-masonry.php +1 -1
  64. includes/elements/recent-posts-tiles-carousel.php +1 -1
  65. includes/elements/recent-posts-tiles.php +1 -1
  66. includes/elements/recent-posts-timeline.php +1 -1
  67. includes/elements/recent-posts-widget.php +1 -1
  68. includes/elements/recent-products.php +1 -1
  69. includes/elements/sample-element.php +1 -1
  70. includes/elements/search.php +1 -1
  71. includes/elements/socials-list.php +1 -1
  72. includes/elements/staff.php +1 -1
  73. includes/elements/tab-widget.php +1 -1
  74. includes/elements/tabs.php +1 -1
  75. includes/elements/testimonial.php +1 -1
  76. includes/elements/text.php +1 -1
  77. includes/elements/touch-slider.php +1 -1
  78. includes/elements/video.php +1 -1
  79. includes/general-functions.php +9 -4
  80. includes/general-hooks.php +1 -1
  81. public/assets/js/plugins.js +1 -1
  82. public/includes/class-auxels-frontend-assets.php +1 -1
  83. public/templates/vcomposer/auxin_shortcode_mapper.php +1 -1
  84. uninstall.php +1 -1
README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: phlox, gallery, elementor, siteorigin, auxin, averta, auxin-elements, fram
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.3.0
10
- Stable tag: 2.4.14
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
@@ -155,6 +155,9 @@ Bugs can be reported in our [support forums](http://support.averta.net/en/item/p
155
 
156
  == Changelog ==
157
 
 
 
 
158
  = Version 2.4.12 / 01.11.2019) =
159
  - [Improvement]: Some improvements for button element applied.
160
 
@@ -418,4 +421,4 @@ Bugs can be reported in our [support forums](http://support.averta.net/en/item/p
418
 
419
  == Upgrade Notice ==
420
 
421
- = 2.4.4 =
7
  Requires PHP: 5.4
8
  Requires at least: 4.6
9
  Tested up to: 5.3.0
10
+ Stable tag: 2.4.16
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl.html
13
 
155
 
156
  == Changelog ==
157
 
158
+ = Version 2.4.16 / 15.01.2020) =
159
+ - [Improvement]: Some improvements for testimonial element applied.
160
+
161
  = Version 2.4.12 / 01.11.2019) =
162
  - [Improvement]: Some improvements for button element applied.
163
 
421
 
422
  == Upgrade Notice ==
423
 
424
+ = 2.4.16 =
admin/assets/js/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Phlox Core Plugin - v2.4.14 (2019-12-07)
2
  * All required javascript plugins for admin
3
  * http://phlox.pro/
4
  * Place any jQuery/helper plugins in here, instead of separate, slower script files!
1
+ /*! Phlox Core Plugin - v2.4.16 (2020-01-15)
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-advanced.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
admin/includes/metaboxes/metabox-fields-general-footer.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
admin/includes/metaboxes/metabox-fields-general-header.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
admin/includes/metaboxes/metabox-fields-general-top-header.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
admin/includes/metaboxes/metabox-fields-page-template.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  function auxin_metabox_fields_page_template(){
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  function auxin_metabox_fields_page_template(){
admin/includes/metaboxes/metabox-fields-post-audio.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
admin/includes/metaboxes/metabox-fields-post-gallery.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
admin/includes/metaboxes/metabox-fields-post-quote.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
admin/includes/metaboxes/metabox-fields-post-video.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
auxin-elements.php CHANGED
@@ -7,12 +7,12 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  *
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.4.14
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  *
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.4.16
16
  * Author: averta
17
  * Author URI: http://averta.net
18
  * Text Domain: auxin-elements
includes/classes/class-auxels-admin-assets.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxels-archive-menu-links.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
  class Auxels_Archive_Menu_Links{
13
 
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
  class Auxels_Archive_Menu_Links{
13
 
includes/classes/class-auxin-admin-dashboard.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-demo-importer.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-import.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-install.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-master-nav-menu-admin.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
  class Auxin_Master_Nav_Menu_Admin {
13
 
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
  class Auxin_Master_Nav_Menu_Admin {
13
 
includes/classes/class-auxin-page-template.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
  class Auxin_Page_Template {
13
 
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
  class Auxin_Page_Template {
13
 
includes/classes/class-auxin-permalink.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-post-type-base.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-siteorigin-widget.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-walker-nav-menu-back.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
  class Auxin_Walker_Nav_Menu_Back extends Walker_Nav_Menu {
13
 
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
  class Auxin_Walker_Nav_Menu_Back extends Walker_Nav_Menu {
13
 
includes/classes/class-auxin-widget-indie.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/classes/class-auxin-widget-shortcode-map.php CHANGED
@@ -8,7 +8,7 @@
8
  * @license LICENSE.txt
9
  * @author averta
10
  * @link http://phlox.pro/
11
- * @copyright (c) 2010-2019 averta
12
  */
13
 
14
  // no direct access allowed
8
  * @license LICENSE.txt
9
  * @author averta
10
  * @link http://phlox.pro/
11
+ * @copyright (c) 2010-2020 averta
12
  */
13
 
14
  // no direct access allowed
includes/classes/class-auxin-widget.php CHANGED
@@ -7,7 +7,7 @@
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
- * @copyright (c) 2010-2019 averta
11
  */
12
 
13
  // no direct access allowed
7
  * @license LICENSE.txt
8
  * @author averta
9
  * @link http://phlox.pro/
10
+ * @copyright (c) 2010-2020 averta
11
  */
12
 
13
  // no direct access allowed
includes/define.php CHANGED
@@ -12,7 +12,7 @@ if( ! defined( 'THEME_NAME' ) ){
12
  }
13
 
14
 
15
- define( 'AUXELS_VERSION' , '2.4.14' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
12
  }
13
 
14
 
15
+ define( 'AUXELS_VERSION' , '2.4.16' );
16
 
17
  define( 'AUXELS_SLUG' , 'auxin-elements' );
18
 
includes/elementor/class-auxin-elementor-core-elements.php CHANGED
@@ -12,7 +12,7 @@ namespace Auxin\Plugin\CoreElements\Elementor;
12
  * @license LICENSE.txt
13
  * @author averta
14
  * @link http://phlox.pro/
15
- * @copyright (c) 2010-2019 averta
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
@@ -342,6 +342,10 @@ final class Elements {
342
  '215' => array(
343
  'file' => $this->dir_path . '/widgets/theme-elements/menu.php',
344
  'class' => 'Elements\Theme_Elements\MenuBox'
 
 
 
 
345
  )
346
 
347
  );
@@ -429,6 +433,22 @@ final class Elements {
429
  )
430
  );
431
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
432
  foreach ( $modules as $module ) {
433
  if( ! empty( $module['file'] ) && ! empty( $module['class'] ) ){
434
  include_once( $module['file'] );
12
  * @license LICENSE.txt
13
  * @author averta
14
  * @link http://phlox.pro/
15
+ * @copyright (c) 2010-2020 averta
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
342
  '215' => array(
343
  'file' => $this->dir_path . '/widgets/theme-elements/menu.php',
344
  'class' => 'Elements\Theme_Elements\MenuBox'
345
+ ),
346
+ '220' => array(
347
+ 'file' => $this->dir_path . '/widgets/theme-elements/logo.php',
348
+ 'class' => 'Elements\Theme_Elements\Logo'
349
  )
350
 
351
  );
433
  )
434
  );
435
 
436
+ if( is_admin() ){
437
+ $modules[] = [
438
+ 'file' => $this->dir_path . '/modules/settings/base/manager.php',
439
+ 'class' => 'Settings\Base\Manager',
440
+ 'instance' => false
441
+ ];
442
+ $modules[] = [
443
+ 'file' => $this->dir_path . '/modules/settings/general/manager.php',
444
+ 'class' => 'Settings\General\Manager'
445
+ ];
446
+ $modules[] = [
447
+ 'file' => $this->dir_path . '/modules/settings/page/manager.php',
448
+ 'class' => 'Settings\Page\Manager'
449
+ ];
450
+ }
451
+
452
  foreach ( $modules as $module ) {
453
  if( ! empty( $module['file'] ) && ! empty( $module['class'] ) ){
454
  include_once( $module['file'] );
includes/elementor/modules/documents/header.php CHANGED
@@ -42,7 +42,7 @@ class Header extends Library_Document {
42
  // Move to top as active.
43
  $categories = [
44
  'auxin-theme-elements' => [
45
- 'title' => __( 'Site', 'auxin-elements' ),
46
  'active' => true,
47
  ],
48
  ];
42
  // Move to top as active.
43
  $categories = [
44
  'auxin-theme-elements' => [
45
+ 'title' => __( 'Site Header', 'auxin-elements' ),
46
  'active' => true,
47
  ],
48
  ];
includes/elementor/modules/settings/base/manager.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Auxin\Plugin\CoreElements\Elementor\Settings\Base;
3
+
4
+ use Elementor\Core\Base\Document;
5
+ use Elementor\Widget_Base;
6
+ use Elementor\Controls_Manager;
7
+ use Elementor\Group_Control_Image_Size;
8
+ use Elementor\Group_Control_Typography;
9
+ use Elementor\Scheme_Color;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Control_Media;
12
+ use Elementor\Group_Control_Border;
13
+ use Elementor\Group_Control_Box_Shadow;
14
+ use Elementor\Group_Control_Background;
15
+
16
+
17
+ abstract class Manager {
18
+
19
+ function __construct(){
20
+ $this->register_hooks();
21
+ }
22
+
23
+ protected function register_hooks(){
24
+ add_action( 'elementor/documents/register_controls', [ $this, 'register_controls' ] );
25
+ add_action( 'elementor/document/after_save', [ $this, 'on_save_settings' ], 10, 2 );
26
+ }
27
+
28
+ /**
29
+ * Register Document Controls
30
+ *
31
+ * Add New Controls to Elementor Page Options
32
+ * @param $document
33
+ */
34
+ abstract public function register_controls ( $document );
35
+
36
+ /**
37
+ * Stores the changed controllers
38
+ *
39
+ * @param array $settings list of settings for changes controllers
40
+ * @param Document $document Elementor base Document class
41
+ * @param array|null $data All document info passed for saving
42
+ * @return mixed
43
+ */
44
+ abstract protected function save_settings( array $settings, $document, $data = null );
45
+
46
+ /**
47
+ * Parsing custom control settings
48
+ *
49
+ * @param $document
50
+ * @param $data
51
+ */
52
+ public function on_save_settings( $document, $data ){
53
+ if( empty( $data['settings'] ) ){
54
+ return;
55
+ }
56
+ $settings_to_save = $this->get_settings_to_save( $data['settings'] );
57
+ $this->save_settings( $settings_to_save, $document, $data );
58
+ }
59
+
60
+ /**
61
+ * Default special page settings in Elementor document
62
+ *
63
+ * @return array
64
+ */
65
+ protected function get_special_settings_names(){
66
+ return [
67
+ 'id',
68
+ 'post_title',
69
+ 'post_status',
70
+ 'template',
71
+ 'post_excerpt',
72
+ 'post_featured_image',
73
+ ];
74
+ }
75
+
76
+ /**
77
+ * Get custom control settings which are changed
78
+ *
79
+ * @param array $settings
80
+ * @return array
81
+ */
82
+ private function get_settings_to_save( array $settings ){
83
+ $special_settings = $this->get_special_settings_names();
84
+
85
+ $settings_to_save = $settings;
86
+
87
+ foreach ( $special_settings as $special_setting ) {
88
+ if ( isset( $settings_to_save[ $special_setting ] ) ) {
89
+ unset( $settings_to_save[ $special_setting ] );
90
+ }
91
+ }
92
+
93
+ return $settings_to_save;
94
+ }
95
+ }
includes/elementor/modules/settings/general/manager.php ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Auxin\Plugin\CoreElements\Elementor\Settings\General;
3
+
4
+ use Elementor\Controls_Manager;
5
+ use Elementor\Core\Base\Document;
6
+ use Elementor\Plugin;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Group_Control_Image_Size;
9
+ use Elementor\Group_Control_Typography;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Control_Media;
13
+ use Elementor\Group_Control_Border;
14
+ use Elementor\Group_Control_Box_Shadow;
15
+ use Elementor\Group_Control_Background;
16
+ use Auxin\Plugin\CoreElements\Elementor\Settings\Base\Manager as baseManager;
17
+
18
+
19
+ class Manager extends baseManager
20
+ {
21
+
22
+ /**
23
+ * Register Document Controls
24
+ *
25
+ * Add New Controls to Elementor Page Options
26
+ * @param $document
27
+ */
28
+ public function register_controls ( $document ) {
29
+
30
+ $document->start_controls_section(
31
+ 'page_logo_section', [
32
+ 'label' => __('Logo', 'auxin-elements' ),
33
+ 'tab' => Controls_Manager::TAB_SETTINGS,
34
+ ]
35
+ );
36
+
37
+ $document->add_control(
38
+ 'aux_custom_logo', [
39
+ 'label' => __('Page Logo', 'auxin-elements' ),
40
+ 'type' => Controls_Manager::MEDIA,
41
+ 'show_label' => false,
42
+ ]
43
+ );
44
+
45
+ $document->add_control(
46
+ 'page_secondary_logo_max_height', [
47
+ 'label' => __( 'Footer Brand Height', 'auxin-elements' ),
48
+ 'type' => Controls_Manager::SLIDER,
49
+ 'size_units' => array('px'),
50
+ 'default' => [
51
+ 'size' => $document->get_main_meta( 'page_secondary_logo_max_height' ), // get default value,
52
+ ],
53
+ 'range' => [
54
+ 'px' => [
55
+ 'min' => 0,
56
+ 'max' => 500,
57
+ 'step' => 1
58
+ ]
59
+ ]
60
+ ]
61
+ );
62
+
63
+ $document->end_controls_section();
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
+ }
includes/elementor/modules/settings/page/manager.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Auxin\Plugin\CoreElements\Elementor\Settings\Page;
3
+
4
+ use Elementor\Controls_Manager;
5
+ use Elementor\Core\Base\Document;
6
+ use Elementor\Plugin;
7
+ use Elementor\Widget_Base;
8
+ use Elementor\Group_Control_Image_Size;
9
+ use Elementor\Group_Control_Typography;
10
+ use Elementor\Scheme_Color;
11
+ use Elementor\Scheme_Typography;
12
+ use Elementor\Control_Media;
13
+ use Elementor\Group_Control_Border;
14
+ use Elementor\Group_Control_Box_Shadow;
15
+ use Elementor\Group_Control_Background;
16
+ use Auxin\Plugin\CoreElements\Elementor\Settings\Base\Manager as baseManager;
17
+
18
+
19
+ class Manager extends baseManager
20
+ {
21
+ /**
22
+ * Register Document Controls
23
+ *
24
+ * Add New Controls to Elementor Page Options
25
+ * @param $document
26
+ */
27
+ public function register_controls ( $document ) {
28
+ // TODO Add controls here
29
+ }
30
+
31
+ protected function save_settings( array $settings, $document, $data = null ){
32
+ // TODO save the control values as page meta fields by looping through $settings array
33
+ // $document->update_main_meta( $meta_key, $value );
34
+ }
35
+ }
includes/elementor/widgets/testimonial.php CHANGED
@@ -376,6 +376,18 @@ class Testimonial extends Widget_Base {
376
  )
377
  );
378
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  $this->end_controls_tab();
380
 
381
  $this->start_controls_tab(
@@ -394,7 +406,8 @@ class Testimonial extends Widget_Base {
394
  'label' => __( 'Color', 'auxin-elements' ),
395
  'type' => Controls_Manager::COLOR,
396
  'selectors' => array(
397
- '{{WRAPPER}} .col-title a:hover' => 'color: {{VALUE}} !important;',
 
398
  ),
399
  'condition' => array(
400
  'title!' => '',
@@ -402,22 +415,22 @@ class Testimonial extends Widget_Base {
402
  )
403
  );
404
 
405
- $this->end_controls_tab();
406
-
407
- $this->end_controls_tabs();
408
-
409
  $this->add_group_control(
410
  Group_Control_Typography::get_type(),
411
  array(
412
- 'name' => 'title_typography',
413
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
414
- 'selector' => '{{WRAPPER}} .col-title, {{WRAPPER}} .col-title a',
415
  'condition' => array(
416
  'title!' => ''
417
  )
418
  )
419
  );
420
 
 
 
 
 
421
  $this->add_responsive_control(
422
  'title_margin',
423
  array(
@@ -451,6 +464,18 @@ class Testimonial extends Widget_Base {
451
  )
452
  );
453
 
 
 
 
 
 
 
 
 
 
 
 
 
454
  $this->add_control(
455
  'subtitle_color',
456
  array(
@@ -477,6 +502,50 @@ class Testimonial extends Widget_Base {
477
  )
478
  );
479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
480
  $this->add_responsive_control(
481
  'subtitle_margin_bottom',
482
  array(
@@ -499,11 +568,11 @@ class Testimonial extends Widget_Base {
499
  $this->end_controls_section();
500
 
501
  /*-----------------------------------------------------------------------------------*/
502
- /* Content style section
503
  /*-----------------------------------------------------------------------------------*/
504
 
505
  $this->start_controls_section(
506
- 'content_style_section',
507
  array(
508
  'label' => __( 'Review', 'auxin-elements' ),
509
  'tab' => Controls_Manager::TAB_STYLE,
@@ -513,6 +582,18 @@ class Testimonial extends Widget_Base {
513
  )
514
  );
515
 
 
 
 
 
 
 
 
 
 
 
 
 
516
  $this->add_control(
517
  'content_color',
518
  array(
@@ -539,6 +620,48 @@ class Testimonial extends Widget_Base {
539
  )
540
  );
541
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
542
  $this->add_responsive_control(
543
  'content_margin',
544
  array(
@@ -548,16 +671,8 @@ class Testimonial extends Widget_Base {
548
  'allowed_dimensions' => 'vertical',
549
  'selectors' => array(
550
  '{{WRAPPER}} .aux-testimonial-content .entry-content' => 'margin-top:{{TOP}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}};'
551
- )
552
- )
553
- );
554
-
555
- $this->add_group_control(
556
- Group_Control_Border::get_type(),
557
- array(
558
- 'name' => 'content_border',
559
- 'selector' => '{{WRAPPER}} .aux-testimonial-content',
560
- 'separator' => 'none'
561
  )
562
  );
563
 
@@ -585,6 +700,15 @@ class Testimonial extends Widget_Base {
585
  )
586
  );
587
 
 
 
 
 
 
 
 
 
 
588
  $this->end_controls_section();
589
 
590
  /*-----------------------------------------------------------------------------------*/
@@ -700,15 +824,6 @@ class Testimonial extends Widget_Base {
700
  )
701
  );
702
 
703
- $this->add_group_control(
704
- Group_Control_Border::get_type(),
705
- array(
706
- 'name' => 'box_border',
707
- 'selector' => '{{WRAPPER}} .aux-widget-testimonial',
708
- 'separator' => 'before'
709
- )
710
- );
711
-
712
  $this->add_responsive_control(
713
  'box_border_radius',
714
  array(
@@ -717,27 +832,19 @@ class Testimonial extends Widget_Base {
717
  'size_units' => array( 'px' ),
718
  'selectors' => array(
719
  '{{WRAPPER}} .aux-widget-testimonial' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
720
- ),
721
- 'separator' => 'before'
722
- )
723
- );
724
-
725
- $this->add_group_control(
726
- Group_Control_Background::get_type(),
727
- array(
728
- 'name' => 'box_backgound',
729
- 'label' => __( 'Background', 'auxin-elements' ),
730
- 'selector' => '{{WRAPPER}} .aux-widget-testimonial',
731
- 'separator' => 'before'
732
  )
733
  );
734
 
735
- $this->add_group_control(
736
- Group_Control_Box_Shadow::get_type(),
737
  array(
738
- 'name' => 'box_shadow',
739
- 'selector' => '{{WRAPPER}} .aux-widget-testimonial',
740
- 'separator' => 'both'
 
 
 
741
  )
742
  );
743
 
@@ -767,23 +874,86 @@ class Testimonial extends Widget_Base {
767
  'selectors' => array(
768
  '{{WRAPPER}} .aux-widget-testimonial' => 'max-width:{{SIZE}}{{UNIT}}; margin-left:auto; margin-right:auto;'
769
  ),
770
- 'separator' => 'before'
771
  )
772
  );
773
 
774
- $this->add_responsive_control(
775
- 'box_padding',
 
 
776
  array(
777
- 'label' => __( 'Padding', 'auxin-elements' ),
778
- 'type' => Controls_Manager::DIMENSIONS,
779
- 'size_units' => array( 'px', '%' ),
780
- 'selectors' => array(
781
- '{{WRAPPER}} .aux-widget-testimonial' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
782
- ),
783
- 'separator' => 'before'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
784
  )
785
  );
786
 
 
 
 
 
 
 
 
 
 
 
 
 
 
787
  $this->end_controls_section();
788
  }
789
 
376
  )
377
  );
378
 
379
+ $this->add_group_control(
380
+ Group_Control_Typography::get_type(),
381
+ array(
382
+ 'name' => 'title_typography',
383
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
384
+ 'selector' => '{{WRAPPER}} .col-title, {{WRAPPER}} .col-title a',
385
+ 'condition' => array(
386
+ 'title!' => ''
387
+ )
388
+ )
389
+ );
390
+
391
  $this->end_controls_tab();
392
 
393
  $this->start_controls_tab(
406
  'label' => __( 'Color', 'auxin-elements' ),
407
  'type' => Controls_Manager::COLOR,
408
  'selectors' => array(
409
+ '{{WRAPPER}} .aux-widget-testimonial:hover .col-title' => 'color: {{VALUE}} !important;',
410
+ '{{WRAPPER}} .aux-widget-testimonial:hover .col-title a' => 'color: {{VALUE}} !important;',
411
  ),
412
  'condition' => array(
413
  'title!' => '',
415
  )
416
  );
417
 
 
 
 
 
418
  $this->add_group_control(
419
  Group_Control_Typography::get_type(),
420
  array(
421
+ 'name' => 'title_hover_typography',
422
  'scheme' => Scheme_Typography::TYPOGRAPHY_1,
423
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial:hover .col-title, {{WRAPPER}} .aux-widget-testimonial:hover .col-title a',
424
  'condition' => array(
425
  'title!' => ''
426
  )
427
  )
428
  );
429
 
430
+ $this->end_controls_tab();
431
+
432
+ $this->end_controls_tabs();
433
+
434
  $this->add_responsive_control(
435
  'title_margin',
436
  array(
464
  )
465
  );
466
 
467
+ $this->start_controls_tabs( 'subtitle_styles_tabs' );
468
+
469
+ $this->start_controls_tab(
470
+ 'subtitle_color_normal',
471
+ array(
472
+ 'label' => __( 'Normal' , 'auxin-elements' ),
473
+ 'condition' => array(
474
+ 'title!' => '',
475
+ ),
476
+ )
477
+ );
478
+
479
  $this->add_control(
480
  'subtitle_color',
481
  array(
502
  )
503
  );
504
 
505
+ $this->end_controls_tab();
506
+
507
+ $this->start_controls_tab(
508
+ 'subtitle_color_hover',
509
+ array(
510
+ 'label' => __( 'Hover' , 'auxin-elements' ),
511
+ 'condition' => array(
512
+ 'title!' => '',
513
+ ),
514
+ )
515
+ );
516
+
517
+ $this->add_control(
518
+ 'subtitle_hover_color',
519
+ array(
520
+ 'label' => __( 'Color', 'auxin-elements' ),
521
+ 'type' => Controls_Manager::COLOR,
522
+ 'selectors' => array(
523
+ '{{WRAPPER}} .aux-widget-testimonial:hover .col-subtitle' => 'color: {{VALUE}} !important;',
524
+ ),
525
+ 'condition' => array(
526
+ 'subtitle!' => '',
527
+ ),
528
+ )
529
+ );
530
+
531
+ $this->add_group_control(
532
+ Group_Control_Typography::get_type(),
533
+ array(
534
+ 'name' => 'subtitle_hover_typography',
535
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
536
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial:hover .col-subtitle',
537
+ 'condition' => array(
538
+ 'subtitle!' => ''
539
+ )
540
+ )
541
+ );
542
+
543
+
544
+
545
+ $this->end_controls_tab();
546
+
547
+ $this->end_controls_tabs();
548
+
549
  $this->add_responsive_control(
550
  'subtitle_margin_bottom',
551
  array(
568
  $this->end_controls_section();
569
 
570
  /*-----------------------------------------------------------------------------------*/
571
+ /* Review style section
572
  /*-----------------------------------------------------------------------------------*/
573
 
574
  $this->start_controls_section(
575
+ 'review_style_section',
576
  array(
577
  'label' => __( 'Review', 'auxin-elements' ),
578
  'tab' => Controls_Manager::TAB_STYLE,
582
  )
583
  );
584
 
585
+ $this->start_controls_tabs( 'review_style_tabs' );
586
+
587
+ $this->start_controls_tab(
588
+ 'review_style_normal',
589
+ array(
590
+ 'label' => __( 'Normal' , 'auxin-elements' ),
591
+ 'condition' => array(
592
+ 'content!' => '',
593
+ )
594
+ )
595
+ );
596
+
597
  $this->add_control(
598
  'content_color',
599
  array(
620
  )
621
  );
622
 
623
+ $this->end_controls_tab();
624
+
625
+ $this->start_controls_tab(
626
+ 'review_style_hover',
627
+ array(
628
+ 'label' => __( 'Hover' , 'auxin-elements' ),
629
+ 'condition' => array(
630
+ 'content!' => '',
631
+ )
632
+ )
633
+ );
634
+
635
+ $this->add_control(
636
+ 'content_color_hover',
637
+ array(
638
+ 'label' => __( 'Color', 'auxin-elements' ),
639
+ 'type' => Controls_Manager::COLOR,
640
+ 'selectors' => array(
641
+ '{{WRAPPER}} .aux-widget-testimonial:hover .aux-testimonial-content' => 'color: {{VALUE}} !important;'
642
+ ),
643
+ 'condition' => array(
644
+ 'content!' => ''
645
+ )
646
+ )
647
+ );
648
+
649
+ $this->add_group_control(
650
+ Group_Control_Typography::get_type(),
651
+ array(
652
+ 'name' => 'content_typography_hover',
653
+ 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
654
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial:hover .aux-testimonial-content',
655
+ 'condition' => array(
656
+ 'content!' => ''
657
+ )
658
+ )
659
+ );
660
+
661
+ $this->end_controls_tab();
662
+
663
+ $this->end_controls_tabs();
664
+
665
  $this->add_responsive_control(
666
  'content_margin',
667
  array(
671
  'allowed_dimensions' => 'vertical',
672
  'selectors' => array(
673
  '{{WRAPPER}} .aux-testimonial-content .entry-content' => 'margin-top:{{TOP}}{{UNIT}}; margin-bottom:{{BOTTOM}}{{UNIT}};'
674
+ ),
675
+ 'separator' => 'before'
 
 
 
 
 
 
 
 
676
  )
677
  );
678
 
700
  )
701
  );
702
 
703
+ $this->add_group_control(
704
+ Group_Control_Border::get_type(),
705
+ array(
706
+ 'name' => 'content_border',
707
+ 'selector' => '{{WRAPPER}} .aux-testimonial-content',
708
+ 'separator' => 'both'
709
+ )
710
+ );
711
+
712
  $this->end_controls_section();
713
 
714
  /*-----------------------------------------------------------------------------------*/
824
  )
825
  );
826
 
 
 
 
 
 
 
 
 
 
827
  $this->add_responsive_control(
828
  'box_border_radius',
829
  array(
832
  'size_units' => array( 'px' ),
833
  'selectors' => array(
834
  '{{WRAPPER}} .aux-widget-testimonial' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
835
+ )
 
 
 
 
 
 
 
 
 
 
 
836
  )
837
  );
838
 
839
+ $this->add_responsive_control(
840
+ 'box_padding',
841
  array(
842
+ 'label' => __( 'Padding', 'auxin-elements' ),
843
+ 'type' => Controls_Manager::DIMENSIONS,
844
+ 'size_units' => array( 'px', '%' ),
845
+ 'selectors' => array(
846
+ '{{WRAPPER}} .aux-widget-testimonial' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
847
+ )
848
  )
849
  );
850
 
874
  'selectors' => array(
875
  '{{WRAPPER}} .aux-widget-testimonial' => 'max-width:{{SIZE}}{{UNIT}}; margin-left:auto; margin-right:auto;'
876
  ),
877
+ 'separator' => 'after'
878
  )
879
  );
880
 
881
+ $this->start_controls_tabs( 'box_tabs' );
882
+
883
+ $this->start_controls_tab(
884
+ 'box_normal',
885
  array(
886
+ 'label' => __( 'Normal' , 'auxin-elements' )
887
+ )
888
+ );
889
+
890
+ $this->add_group_control(
891
+ Group_Control_Background::get_type(),
892
+ array(
893
+ 'name' => 'box_backgound',
894
+ 'label' => __( 'Background', 'auxin-elements' ),
895
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial'
896
+ )
897
+ );
898
+
899
+ $this->add_group_control(
900
+ Group_Control_Box_Shadow::get_type(),
901
+ array(
902
+ 'name' => 'box_shadow',
903
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial',
904
+ 'separator' => 'both'
905
+ )
906
+ );
907
+
908
+ $this->add_group_control(
909
+ Group_Control_Border::get_type(),
910
+ array(
911
+ 'name' => 'box_border',
912
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial',
913
+ 'separator' => 'none'
914
+ )
915
+ );
916
+
917
+ $this->end_controls_tab();
918
+
919
+ $this->start_controls_tab(
920
+ 'box_hover',
921
+ array(
922
+ 'label' => __( 'Hover' , 'auxin-elements' )
923
+ )
924
+ );
925
+
926
+ $this->add_group_control(
927
+ Group_Control_Background::get_type(),
928
+ array(
929
+ 'name' => 'box_backgound_hover',
930
+ 'label' => __( 'Background', 'auxin-elements' ),
931
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial:hover'
932
+ )
933
+ );
934
+
935
+ $this->add_group_control(
936
+ Group_Control_Box_Shadow::get_type(),
937
+ array(
938
+ 'name' => 'box_shadow_hover',
939
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial:hover',
940
+ 'separator' => 'both'
941
  )
942
  );
943
 
944
+ $this->add_group_control(
945
+ Group_Control_Border::get_type(),
946
+ array(
947
+ 'name' => 'box_border_hover',
948
+ 'selector' => '{{WRAPPER}} .aux-widget-testimonial:hover',
949
+ 'separator' => 'none'
950
+ )
951
+ );
952
+
953
+ $this->end_controls_tab();
954
+
955
+ $this->end_controls_tabs();
956
+
957
  $this->end_controls_section();
958
  }
959
 
includes/elementor/widgets/theme-elements/logo.php ADDED
@@ -0,0 +1,664 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace Auxin\Plugin\CoreElements\Elementor\Elements\Theme_Elements;
3
+
4
+ use Elementor\Plugin;
5
+ use Elementor\Widget_Base;
6
+ use Elementor\Controls_Manager;
7
+ use Elementor\Group_Control_Image_Size;
8
+ use Elementor\Group_Control_Typography;
9
+ use Elementor\Scheme_Color;
10
+ use Elementor\Scheme_Typography;
11
+ use Elementor\Utils;
12
+ use Elementor\Control_Media;
13
+ use Elementor\Group_Control_Border;
14
+ use Elementor\Group_Control_Background;
15
+ use Elementor\Group_Control_Box_Shadow;
16
+ use Elementor\Group_Control_Text_Shadow;
17
+ use Elementor\Group_Control_Css_Filter;
18
+
19
+
20
+ if ( ! defined( 'ABSPATH' ) ) {
21
+ exit; // Exit if accessed directly.
22
+ }
23
+
24
+ /**
25
+ * Elementor 'Logo' widget.
26
+ *
27
+ * Elementor widget that displays an 'Logo'.
28
+ *
29
+ * @since 1.0.0
30
+ */
31
+ class Logo extends Widget_Base {
32
+
33
+ /**
34
+ * Get widget name.
35
+ *
36
+ * Retrieve 'Logo' widget name.
37
+ *
38
+ * @since 1.0.0
39
+ * @access public
40
+ *
41
+ * @return string Widget name.
42
+ */
43
+ public function get_name() {
44
+ return 'aux_logo';
45
+ }
46
+
47
+ /**
48
+ * Get widget title.
49
+ *
50
+ * Retrieve 'Logo' widget title.
51
+ *
52
+ * @since 1.0.0
53
+ * @access public
54
+ *
55
+ * @return string Widget title.
56
+ */
57
+ public function get_title() {
58
+ return __('Logo', 'auxin-elements' );
59
+ }
60
+
61
+ /**
62
+ * Get widget icon.
63
+ *
64
+ * Retrieve 'Logo' widget icon.
65
+ *
66
+ * @since 1.0.0
67
+ * @access public
68
+ *
69
+ * @return string Widget icon.
70
+ */
71
+ public function get_icon() {
72
+ return 'eicon-date auxin-badge';
73
+ }
74
+
75
+ /**
76
+ * Get widget categories.
77
+ *
78
+ * Retrieve 'Logo' widget icon.
79
+ *
80
+ * @since 1.0.0
81
+ * @access public
82
+ *
83
+ * @return string Widget icon.
84
+ */
85
+ public function get_categories() {
86
+ return array( 'auxin-core', 'auxin-theme-elements' );
87
+ }
88
+
89
+ /**
90
+ * Register 'Logo' widget controls.
91
+ *
92
+ * Adds different input fields to allow the user to change and customize the widget settings.
93
+ *
94
+ * @since 1.0.0
95
+ * @access protected
96
+ */
97
+ protected function _register_controls() {
98
+
99
+ /*-----------------------------------------------------------------------------------*/
100
+ /* button_section
101
+ /*-----------------------------------------------------------------------------------*/
102
+
103
+ $this->start_controls_section(
104
+ 'general',
105
+ array(
106
+ 'label' => __('General', 'auxin-elements' ),
107
+ )
108
+ );
109
+
110
+ $custom_logo_id = get_theme_mod( 'custom_logo' );
111
+
112
+
113
+ if ( empty( $custom_logo_id ) ) {
114
+ $this->add_control(
115
+ 'custom_logo_page',
116
+ array(
117
+ 'type' => Controls_Manager::RAW_HTML,
118
+ 'raw' => sprintf( __( '<strong>There are no logo in your site.</strong><br>Go to the <a href="%s" target="_blank">Customizer</a> to add one.', 'auxin-elements' ), admin_url( 'customize.php' ) ),
119
+ 'separator' => 'after',
120
+ 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
121
+ )
122
+ );
123
+ } else {
124
+ $this->add_control(
125
+ 'custom_logo_page',
126
+ array(
127
+ 'type' => Controls_Manager::RAW_HTML,
128
+ 'raw' => sprintf( __( '<strong>Your site logo 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' ) ),
129
+ 'separator' => 'after',
130
+ 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
131
+ )
132
+ );
133
+ }
134
+
135
+ $this->add_group_control(
136
+ Group_Control_Image_Size::get_type(),
137
+ array(
138
+ 'name' => 'image', // Usage: `{name}_size` and `{name}_custom_dimension`, in this case `image_size` and `image_custom_dimension`.
139
+ 'default' => 'full',
140
+ 'separator' => 'none',
141
+ )
142
+ );
143
+
144
+ $this->add_responsive_control(
145
+ 'align',
146
+ array(
147
+ 'label' => __( 'Alignment', 'auxin-elements' ),
148
+ 'type' => Controls_Manager::CHOOSE,
149
+ 'options' => array(
150
+ 'left' => array(
151
+ 'title' => __( 'Left', 'auxin-elements' ),
152
+ 'icon' => 'eicon-text-align-left',
153
+ ),
154
+ 'center' => array(
155
+ 'title' => __( 'Center', 'auxin-elements' ),
156
+ 'icon' => 'eicon-text-align-center',
157
+ ),
158
+ 'right' => array(
159
+ 'title' => __( 'Right', 'auxin-elements' ),
160
+ 'icon' => 'eicon-text-align-right',
161
+ ),
162
+ ),
163
+ 'selectors' => array(
164
+ '{{WRAPPER}}' => 'text-align: {{VALUE}};',
165
+ ),
166
+ )
167
+ );
168
+
169
+ $this->add_control(
170
+ 'link_to',
171
+ array(
172
+ 'label' => __( 'Link', 'auxin-elements' ),
173