Cherry Team Members - Version 1.1.0

Version Description

  • ADD: Insert shortcode button in editor
Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Team Members
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.6 to 1.1.0

Files changed (118) hide show
  1. .gitmodules +0 -3
  2. cherry-framework/cherry-core.php +2 -2
  3. cherry-framework/config.json +9 -9
  4. cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php +3 -3
  5. cherry-framework/modules/cherry-customizer/cherry-customizer.php +17 -6
  6. cherry-framework/modules/cherry-customizer/inc/class-cherry-wp-customize-iconpicker.php +21 -8
  7. cherry-framework/modules/cherry-db-updater/cherry-db-updater.php +1 -1
  8. cherry-framework/modules/cherry-dynamic-css/cherry-dynamic-css.php +85 -19
  9. cherry-framework/modules/cherry-dynamic-css/inc/class-cherry-dynamic-css-collector.php +1 -1
  10. cherry-framework/modules/cherry-google-fonts-loader/cherry-google-fonts-loader.php +1 -1
  11. cherry-framework/modules/cherry-handler/assets/js/cherry-handler.js +2 -1
  12. cherry-framework/modules/cherry-handler/assets/js/min/cherry-handler.min.js +1 -1
  13. cherry-framework/modules/cherry-handler/cherry-handler.php +3 -12
  14. cherry-framework/modules/cherry-interface-builder/cherry-interface-builder.php +1 -1
  15. cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.scss +2 -3
  16. cherry-framework/modules/cherry-interface-builder/inc/assets/min/cherry-interface-builder.min.css +1 -1
  17. cherry-framework/modules/cherry-interface-builder/inc/views/component-accordion.php +1 -1
  18. cherry-framework/modules/cherry-interface-builder/inc/views/component-repeater.php +1 -1
  19. cherry-framework/modules/cherry-interface-builder/inc/views/component-tab-horizontal.php +1 -1
  20. cherry-framework/modules/cherry-interface-builder/inc/views/component-tab-vertical.php +1 -1
  21. cherry-framework/modules/cherry-interface-builder/inc/views/component-toggle.php +1 -1
  22. cherry-framework/modules/cherry-interface-builder/inc/views/control.php +1 -1
  23. cherry-framework/modules/cherry-interface-builder/inc/views/form.php +1 -1
  24. cherry-framework/modules/cherry-interface-builder/inc/views/html.php +1 -1
  25. cherry-framework/modules/cherry-interface-builder/inc/views/section.php +1 -1
  26. cherry-framework/modules/cherry-interface-builder/inc/views/settings-children-title.php +1 -1
  27. cherry-framework/modules/cherry-interface-builder/inc/views/settings.php +1 -1
  28. cherry-framework/modules/cherry-interface-builder/inc/views/tab-children-title.php +1 -1
  29. cherry-framework/modules/cherry-interface-builder/inc/views/toggle-children-title.php +1 -1
  30. cherry-framework/modules/cherry-js-core/cherry-js-core.php +1 -1
  31. cherry-framework/modules/cherry-post-formats-api/cherry-post-formats-api.php +1 -1
  32. cherry-framework/modules/cherry-post-formats-api/inc/class-cherry-facebook-embed.php +1 -1
  33. cherry-framework/modules/cherry-post-meta/cherry-post-meta.php +1 -1
  34. cherry-framework/modules/cherry-template-manager/cherry-template-manager.php +6 -32
  35. cherry-framework/modules/cherry-template-manager/inc/cherry-template-loader.php +6 -32
  36. cherry-framework/modules/cherry-template-manager/inc/cherry-template-parser.php +2 -28
  37. cherry-framework/modules/cherry-term-meta/cherry-term-meta.php +1 -1
  38. cherry-framework/modules/cherry-toolkit/cherry-toolkit.php +1 -1
  39. cherry-framework/modules/cherry-ui-elements/cherry-ui-elements.php +3 -3
  40. cherry-framework/modules/cherry-ui-elements/i-ui.php +1 -1
  41. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/min/ui-button.min.css +1 -1
  42. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-button.scss +56 -42
  43. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_mixins.scss +23 -163
  44. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_variables.scss +38 -17
  45. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/ui-button.php +11 -11
  46. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/view/button-view.php +11 -5
  47. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/min/ui-checkbox.min.css +1 -1
  48. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-checkbox.scss +4 -0
  49. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-kit/_mixins.scss +8 -6
  50. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/min/ui-colorpicker.min.css +1 -1
  51. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-colorpicker.scss +73 -34
  52. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-kit/_mixins.scss +8 -6
  53. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.css +1 -1
  54. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.js +1 -1
  55. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.js +1 -1
  56. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.scss +6 -1
  57. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-kit/_mixins.scss +8 -6
  58. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php +8 -5
  59. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/min/ui-media.min.css +1 -1
  60. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-kit/_mixins.scss +31 -163
  61. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-kit/_variables.scss +44 -15
  62. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.scss +27 -60
  63. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/ui-media.php +2 -2
  64. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/min/ui-radio.min.css +1 -1
  65. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/min/ui-radio.min.js +1 -1
  66. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-kit/_mixins.scss +25 -7
  67. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-radio.js +1 -1
  68. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/min/ui-repeater.min.css +1 -1
  69. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/ui-kit/_mixins.scss +21 -3
  70. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/ui-repeater.scss +6 -0
  71. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/min/ui-select.min.css +1 -1
  72. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/min/ui-select.min.js +1 -1
  73. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-kit/_mixins.scss +6 -173
  74. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-kit/_variables.scss +9 -21
  75. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.js +1 -1
  76. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.scss +9 -8
  77. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/ui-select.php +4 -5
  78. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/min/ui-slider.min.css +1 -1
  79. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/ui-kit/_mixins.scss +8 -6
  80. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/min/ui-stepper.min.css +1 -1
  81. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-kit/_mixins.scss +7 -174
  82. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-kit/_variables.scss +5 -21
  83. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-stepper.scss +1 -2
  84. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/ui-stepper.php +1 -1
  85. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/min/ui-switcher.min.css +1 -1
  86. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/min/ui-switcher.min.js +1 -1
  87. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-kit/_variables.scss +13 -21
  88. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.js +1 -1
  89. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.scss +30 -14
  90. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/min/ui-text.min.css +1 -20
  91. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-kit/_mixins.scss +5 -172
  92. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-kit/_variables.scss +5 -21
  93. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-text.scss +1 -1
  94. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/min/ui-textarea.min.css +1 -22
  95. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-kit/_mixins.scss +5 -172
  96. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-kit/_variables.scss +5 -21
  97. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-textarea.scss +1 -1
  98. cherry-framework/modules/cherry-ui-elements/ui-element.php +1 -1
  99. cherry-framework/modules/cherry-utility/cherry-utility.php +4 -4
  100. cherry-framework/modules/cherry-utility/inc/cherry-attributes-utilit.php +2 -1
  101. cherry-framework/modules/cherry-utility/inc/cherry-satellite-utilit.php +53 -6
  102. cherry-framework/modules/cherry-widget-factory/cherry-widget-factory.php +1 -1
  103. cherry-framework/modules/cherry-widget-factory/inc/class-cherry-abstract-widget.php +1 -1
  104. cherry-framework/modules/cherry5-insert-shortcode/assets/cherry-insert-shortcode.scss +17 -9
  105. cherry-framework/modules/cherry5-insert-shortcode/assets/min/cherry-insert-shortcode.min.css +1 -1
  106. cherry-framework/modules/cherry5-insert-shortcode/cherry5-insert-shortcode.php +15 -15
  107. cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-button.php +3 -3
  108. cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php +32 -8
  109. cherry-framework/modules/cherry5-insert-shortcode/inc/views/insert-shortcode-pop-up.php +1 -1
  110. cherry-framework/modules/cherry5-insert-shortcode/inc/views/shortcode-content-area.php +1 -1
  111. cherry-framework/modules/cherry5-insert-shortcode/inc/views/shortcode-has-not-option.php +1 -1
  112. cherry-framework/modules/cherry5-insert-shortcode/inc/views/shortcode-options.php +1 -1
  113. cherry-framework/setup.php +1 -1
  114. cherry-team-members.php +39 -3
  115. languages/cherry-team.mo +0 -0
  116. languages/cherry-team.pot +213 -108
  117. public/includes/class-cherry-team-shortcode.php +264 -122
  118. readme.txt +6 -2
.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "cherry-framework"]
2
- path = cherry-framework
3
- url = https://github.com/CherryFramework/cherry-framework.git
 
 
 
cherry-framework/cherry-core.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /**
3
  * Class Cherry Core
4
- * Version: 1.4.0
5
  *
6
  * @package Cherry_Framework
7
  * @subpackage Class
8
  * @author Cherry Team <cherryframework@gmail.com>
9
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
10
  * @link http://www.cherryframework.com/
11
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
12
  */
1
  <?php
2
  /**
3
  * Class Cherry Core
4
+ * Version: 1.4.2
5
  *
6
  * @package Cherry_Framework
7
  * @subpackage Class
8
  * @author Cherry Team <cherryframework@gmail.com>
9
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
10
  * @link http://www.cherryframework.com/
11
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
12
  */
cherry-framework/config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name" : "Cherry Framework",
3
- "version" : "1.4.0",
4
  "description" : "",
5
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs",
6
  "git_link" : "https://github.com/CherryFramework/cherry-framework",
@@ -8,7 +8,7 @@
8
  "cherry-breadcrumbs" : {
9
  "name" : "Breadcrumb Trail",
10
  "description" : "A breadcrumb menu script for WordPress.",
11
- "version" : "1.1.2",
12
  "doc_link" : "",
13
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-breadcrumbs",
14
  "compatible" : ["theme", "plugin"],
@@ -19,7 +19,7 @@
19
  "cherry-customizer" : {
20
  "name" : "Customizer API",
21
  "description" : "Customizer functionality.",
22
- "version" : "1.1.5",
23
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/01.%20cherry-customizer.md",
24
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-customizer",
25
  "compatible" : ["theme", "plugin"],
@@ -41,7 +41,7 @@
41
  "cherry-dynamic-css" : {
42
  "name" : "Dynamic CSS",
43
  "description" : "Generate CSS.",
44
- "version" : "1.2.2",
45
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/03.%20cherry-dynamic-css.md",
46
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-dynamic-css",
47
  "compatible" : ["theme", "plugin"],
@@ -63,7 +63,7 @@
63
  "cherry-handler" : {
64
  "name" : "Cherry handler",
65
  "description" : "Initialize handlers.",
66
- "version" : "1.1.1",
67
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/02.%20cherry-handler.md",
68
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-handler",
69
  "compatible" : ["theme", "plugin"],
@@ -118,7 +118,7 @@
118
  "cherry-template-manager" : {
119
  "name" : "Template Manager",
120
  "description" : "Module for load and parse *.tmpl files.",
121
- "version" : "1.0.1",
122
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/05.%20cherry-template-manager.md",
123
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-template-manager",
124
  "compatible" : ["theme", "plugin"],
@@ -151,7 +151,7 @@
151
  "cherry-ui-elements" : {
152
  "name" : "UI Elements",
153
  "description" : "UI Elements",
154
- "version" : "1.3.4",
155
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/09.%20cherry-ui-elements.md",
156
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-ui-elements",
157
  "compatible" : ["theme", "plugin"],
@@ -162,7 +162,7 @@
162
  "cherry-utility" : {
163
  "name" : "Utility",
164
  "description" : "Multiple utility functions.",
165
- "version" : "1.1.5",
166
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/08.%20cherry-utility.md",
167
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-utility",
168
  "compatible" : ["theme", "plugin"],
@@ -184,7 +184,7 @@
184
  "cherry5-insert-shortcode" : {
185
  "name" : "Insert Shortcode",
186
  "description" : "The module allows you to add shortcodes from editor tinyMCE.",
187
- "version" : "1.0.0",
188
  "doc_link" : "",
189
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry5-insert-shortcode",
190
  "compatible" : [ "plugin" ],
1
  {
2
  "name" : "Cherry Framework",
3
+ "version" : "1.4.2",
4
  "description" : "",
5
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs",
6
  "git_link" : "https://github.com/CherryFramework/cherry-framework",
8
  "cherry-breadcrumbs" : {
9
  "name" : "Breadcrumb Trail",
10
  "description" : "A breadcrumb menu script for WordPress.",
11
+ "version" : "1.1.3",
12
  "doc_link" : "",
13
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-breadcrumbs",
14
  "compatible" : ["theme", "plugin"],
19
  "cherry-customizer" : {
20
  "name" : "Customizer API",
21
  "description" : "Customizer functionality.",
22
+ "version" : "1.1.7",
23
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/01.%20cherry-customizer.md",
24
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-customizer",
25
  "compatible" : ["theme", "plugin"],
41
  "cherry-dynamic-css" : {
42
  "name" : "Dynamic CSS",
43
  "description" : "Generate CSS.",
44
+ "version" : "1.4.0",
45
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/03.%20cherry-dynamic-css.md",
46
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-dynamic-css",
47
  "compatible" : ["theme", "plugin"],
63
  "cherry-handler" : {
64
  "name" : "Cherry handler",
65
  "description" : "Initialize handlers.",
66
+ "version" : "1.1.2",
67
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/02.%20cherry-handler.md",
68
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-handler",
69
  "compatible" : ["theme", "plugin"],
118
  "cherry-template-manager" : {
119
  "name" : "Template Manager",
120
  "description" : "Module for load and parse *.tmpl files.",
121
+ "version" : "1.0.2",
122
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/05.%20cherry-template-manager.md",
123
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-template-manager",
124
  "compatible" : ["theme", "plugin"],
151
  "cherry-ui-elements" : {
152
  "name" : "UI Elements",
153
  "description" : "UI Elements",
154
+ "version" : "1.4.1",
155
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/09.%20cherry-ui-elements.md",
156
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-ui-elements",
157
  "compatible" : ["theme", "plugin"],
162
  "cherry-utility" : {
163
  "name" : "Utility",
164
  "description" : "Multiple utility functions.",
165
+ "version" : "1.1.6",
166
  "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/08.%20cherry-utility.md",
167
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-utility",
168
  "compatible" : ["theme", "plugin"],
184
  "cherry5-insert-shortcode" : {
185
  "name" : "Insert Shortcode",
186
  "description" : "The module allows you to add shortcodes from editor tinyMCE.",
187
+ "version" : "1.0.2",
188
  "doc_link" : "",
189
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry5-insert-shortcode",
190
  "compatible" : [ "plugin" ],
cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Breadcrumb Trail
4
  * Description: A breadcrumb menu script for WordPress
5
- * Version: 1.1.2
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -916,10 +916,10 @@ if ( ! class_exists( 'Cherry_Breadcrumbs' ) ) {
916
  /* Get the post type object. */
917
  $post_type_object = get_post_type_object( get_query_var( 'post_type' ) );
918
 
919
- if ( false !== $post_type_object->rewrite ) {
920
 
921
  /* If 'with_front' is true, add $wp_rewrite->front to the trail. */
922
- if ( $post_type_object->rewrite['with_front'] ) {
923
  $this->add_rewrite_front_items();
924
  }
925
  }
2
  /**
3
  * Module Name: Breadcrumb Trail
4
  * Description: A breadcrumb menu script for WordPress
5
+ * Version: 1.1.3
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
916
  /* Get the post type object. */
917
  $post_type_object = get_post_type_object( get_query_var( 'post_type' ) );
918
 
919
+ if ( ! empty( $post_type_object ) && false !== $post_type_object->rewrite ) {
920
 
921
  /* If 'with_front' is true, add $wp_rewrite->front to the trail. */
922
+ if ( ! empty( $post_type_object->rewrite ) && $post_type_object->rewrite['with_front'] ) {
923
  $this->add_rewrite_front_items();
924
  }
925
  }
cherry-framework/modules/cherry-customizer/cherry-customizer.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Customizer
4
  * Description: Customizer functionality.
5
- * Version: 1.1.5
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,9 +10,9 @@
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
- * @version 1.1.5
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
@@ -215,7 +215,7 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
215
  private function include_custom_controls() {
216
 
217
  if ( ! class_exists( 'Cherry_WP_Customize_Iconpicker' ) ) {
218
- require_once( trailingslashit( dirname( __FILE__ ) ) . '/inc/class-cherry-wp-customize-iconpicker.php' );
219
  }
220
 
221
  }
@@ -324,6 +324,7 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
324
  * Add a customize control.
325
  *
326
  * @since 1.0.0
 
327
  * @param numder $id Settings ID.
328
  * @param array $args Control arguments.
329
  */
@@ -374,6 +375,7 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
374
  case 'url':
375
  case 'password':
376
  case 'checkbox':
 
377
  $control_args = wp_parse_args( array( 'type' => $field_type ), $control_args );
378
  break;
379
 
@@ -413,7 +415,14 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
413
  case 'iconpicker':
414
  $control_class = 'Cherry_WP_Customize_Iconpicker';
415
  $icon_data = ( isset( $args['icon_data'] ) ) ? $args['icon_data'] : array();
416
- $control_args = wp_parse_args( array( 'icon_data' => $icon_data ), $control_args );
 
 
 
 
 
 
 
417
  break;
418
 
419
  default:
@@ -797,6 +806,8 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
797
  // Get step.
798
  $step = ( isset( $atts['step'] ) ? $atts['step'] : 1 );
799
 
 
 
800
  if ( is_float( $step ) ) {
801
 
802
  // Ensure input is a float value.
@@ -805,7 +816,7 @@ if ( ! class_exists( 'Cherry_Customizer' ) ) {
805
  } else {
806
 
807
  // Ensure input is an absolute integer.
808
- $number = absint( $number );
809
  $checker = is_int( $number / $step );
810
  }
811
 
2
  /**
3
  * Module Name: Customizer
4
  * Description: Customizer functionality.
5
+ * Version: 1.1.8
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
+ * @version 1.1.8
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
215
  private function include_custom_controls() {
216
 
217
  if ( ! class_exists( 'Cherry_WP_Customize_Iconpicker' ) ) {
218
+ require_once( trailingslashit( dirname( __FILE__ ) ) . 'inc/class-cherry-wp-customize-iconpicker.php' );
219
  }
220
 
221
  }
324
  * Add a customize control.
325
  *
326
  * @since 1.0.0
327
+ * @since 1.1.8 Added a `dropdown-pages` support.
328
  * @param numder $id Settings ID.
329
  * @param array $args Control arguments.
330
  */
375
  case 'url':
376
  case 'password':
377
  case 'checkbox':
378
+ case 'dropdown-pages':
379
  $control_args = wp_parse_args( array( 'type' => $field_type ), $control_args );
380
  break;
381
 
415
  case 'iconpicker':
416
  $control_class = 'Cherry_WP_Customize_Iconpicker';
417
  $icon_data = ( isset( $args['icon_data'] ) ) ? $args['icon_data'] : array();
418
+ $auto_parse = ( isset( $args['auto_parse'] ) ) ? $args['auto_parse'] : array();
419
+ $control_args = wp_parse_args(
420
+ array(
421
+ 'icon_data' => $icon_data,
422
+ 'auto_parse' => $auto_parse,
423
+ ),
424
+ $control_args
425
+ );
426
  break;
427
 
428
  default:
806
  // Get step.
807
  $step = ( isset( $atts['step'] ) ? $atts['step'] : 1 );
808
 
809
+ $number = ( ! isset( $atts['min'] ) && 0 > $number ) ? $setting->default : $number ;
810
+
811
  if ( is_float( $step ) ) {
812
 
813
  // Ensure input is a float value.
816
  } else {
817
 
818
  // Ensure input is an absolute integer.
819
+ $number = ( isset( $atts['min'] ) && 0 > $atts['min'] && 0 > $number ) ? intval( $number ) : absint( $number );
820
  $checker = is_int( $number / $step );
821
  }
822
 
cherry-framework/modules/cherry-customizer/inc/class-cherry-wp-customize-iconpicker.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Framework
6
  * @subpackage Modules/Customizer
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
@@ -18,12 +18,20 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
18
  class Cherry_WP_Customize_Iconpicker extends WP_Customize_Control {
19
 
20
  /**
21
- * Cherry Core instance
22
  *
 
23
  * @var array
24
  */
25
  public $icon_data = array();
26
 
 
 
 
 
 
 
 
27
  /**
28
  * UI instance
29
  *
@@ -40,7 +48,11 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
40
  <span class="customize-control-title">
41
  <?php echo esc_html( $this->label ); ?>
42
  </span>
43
-
 
 
 
 
44
  </label>
45
  <?php
46
  echo str_replace(
@@ -62,11 +74,12 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
62
  );
63
 
64
  $args = array(
65
- 'type' => 'iconpicker',
66
- 'id' => $this->id,
67
- 'name' => $this->id,
68
- 'value' => $this->value(),
69
- 'icon_data' => $this->icon_data,
 
70
  );
71
 
72
  add_action( 'customize_controls_print_styles', array( $this, 'print_sets' ) );
5
  * @package Cherry_Framework
6
  * @subpackage Modules/Customizer
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
18
  class Cherry_WP_Customize_Iconpicker extends WP_Customize_Control {
19
 
20
  /**
21
+ * Icons data array
22
  *
23
+ * @see cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php for data array format.
24
  * @var array
25
  */
26
  public $icon_data = array();
27
 
28
+ /**
29
+ * Trigger to try automatically pase icons from CSS file or not.
30
+ *
31
+ * @var boolean
32
+ */
33
+ public $auto_parse = false;
34
+
35
  /**
36
  * UI instance
37
  *
48
  <span class="customize-control-title">
49
  <?php echo esc_html( $this->label ); ?>
50
  </span>
51
+ <?php if ( isset( $this->description ) ) : ?>
52
+ <span class="description customize-control-description">
53
+ <?php echo wp_kses_post( $this->description ); ?>
54
+ </span>
55
+ <?php endif; ?>
56
  </label>
57
  <?php
58
  echo str_replace(
74
  );
75
 
76
  $args = array(
77
+ 'type' => 'iconpicker',
78
+ 'id' => $this->id,
79
+ 'name' => $this->id,
80
+ 'value' => $this->value(),
81
+ 'icon_data' => $this->icon_data,
82
+ 'auto_parse' => $this->auto_parse,
83
  );
84
 
85
  add_action( 'customize_controls_print_styles', array( $this, 'print_sets' ) );
cherry-framework/modules/cherry-db-updater/cherry-db-updater.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Modules
13
  * @version 1.0.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Modules
13
  * @version 1.0.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-dynamic-css/cherry-dynamic-css.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Dynamic CSS
4
  * Description: CSS parser which uses variables & functions for CSS code optimization
5
- * Version: 1.2.2
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,9 +10,9 @@
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
- * @version 1.2.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
@@ -72,6 +72,17 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
72
  */
73
  public static $collector = null;
74
 
 
 
 
 
 
 
 
 
 
 
 
75
  /**
76
  * Constructor for the module
77
  */
@@ -79,18 +90,46 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
79
 
80
  $this->core = $core;
81
  $this->args = wp_parse_args( $args, array(
82
- 'prefix' => 'blank',
83
- 'type' => 'theme_mod',
84
- 'single' => true,
85
- 'css_files' => null,
86
- 'options' => array(),
 
87
  ) );
88
 
89
- add_action( 'wp_head', array( $this, 'print_inline_css' ), 99 );
90
-
91
  $this->init_collector();
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  /**
95
  * Initalize CSS collector class
96
  *
@@ -296,12 +335,12 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
296
  }
297
 
298
  /**
299
- * Print inline CSS after current theme stylesheet
300
  *
301
- * @since 1.0.0
302
- * @return void|bool false
303
  */
304
- public function print_inline_css() {
305
 
306
  if ( ! $this->args['css_files'] ) {
307
  return false;
@@ -311,6 +350,14 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
311
  $this->args['css_files'] = array( $this->args['css_files'] );
312
  }
313
 
 
 
 
 
 
 
 
 
314
  ob_start();
315
 
316
  foreach ( $this->args['css_files'] as $file ) {
@@ -344,6 +391,23 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
344
  */
345
  $parsed_css = apply_filters( 'cherry_dynamic_css_parsed_styles', $parsed_css, $this->args );
346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347
  printf( '<style type="text/css">%s</style>', $parsed_css );
348
 
349
  }
@@ -409,11 +473,13 @@ if ( ! class_exists( 'Cherry_Dynamic_Css' ) ) {
409
 
410
  $functions = $this->get_css_functions();
411
 
412
- // check if function exists and is not CSS @media query
413
- if ( ! array_key_exists( $matches[2], $functions ) && 'media' !== $matches[2] ) {
414
- return $not_found;
415
- } elseif ( 'media' == $matches[2] ) {
416
- return $matches[0];
 
 
417
  }
418
 
419
  $function = $functions[ $matches[2] ];
2
  /**
3
  * Module Name: Dynamic CSS
4
  * Description: CSS parser which uses variables & functions for CSS code optimization
5
+ * Version: 1.4.0
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
+ * @version 1.4.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
72
  */
73
  public static $collector = null;
74
 
75
+ /**
76
+ * Reserved words list
77
+ *
78
+ * @since 1.4.0
79
+ * @var array
80
+ */
81
+ public $css_reserved = array(
82
+ 'media',
83
+ 'supports',
84
+ );
85
+
86
  /**
87
  * Constructor for the module
88
  */
90
 
91
  $this->core = $core;
92
  $this->args = wp_parse_args( $args, array(
93
+ 'prefix' => 'blank',
94
+ 'type' => 'theme_mod',
95
+ 'parent_handle' => false,
96
+ 'single' => true,
97
+ 'css_files' => null,
98
+ 'options' => array(),
99
  ) );
100
 
101
+ $this->init_dynamic_css();
 
102
  $this->init_collector();
103
  }
104
 
105
+ /**
106
+ * Initalize dynamic CSS with fallback compatibility.
107
+ *
108
+ * @since 1.3.0
109
+ * @return void
110
+ */
111
+ public function init_dynamic_css() {
112
+
113
+ /**
114
+ * Not actual for now, required only for fallback compatibility.
115
+ */
116
+ if ( empty( $this->args['parent_handle'] ) ) {
117
+ add_action( 'wp_head', array( $this, 'print_inline_css' ), 99 );
118
+ }
119
+
120
+ add_action( 'wp_enqueue_scripts', array( $this, 'add_inline_css' ), 99 );
121
+ }
122
+
123
+ /**
124
+ * Adds inline CSS into queue
125
+ *
126
+ * @since 1.3.0
127
+ * @return void
128
+ */
129
+ public function add_inline_css() {
130
+ wp_add_inline_style( $this->args['parent_handle'], $this->get_inline_css() );
131
+ }
132
+
133
  /**
134
  * Initalize CSS collector class
135
  *
335
  }
336
 
337
  /**
338
+ * Returns complied dynamic CSS string.
339
  *
340
+ * @since 1.3.0
341
+ * @return string|bool false
342
  */
343
+ public function get_inline_css() {
344
 
345
  if ( ! $this->args['css_files'] ) {
346
  return false;
350
  $this->args['css_files'] = array( $this->args['css_files'] );
351
  }
352
 
353
+ /**
354
+ * Filter CSS reserved words list
355
+ *
356
+ * @since 1.4.0
357
+ * @var array
358
+ */
359
+ $this->css_reserved = apply_filters( 'cherry_dynamic_css_reserved_words_list', $this->css_reserved );
360
+
361
  ob_start();
362
 
363
  foreach ( $this->args['css_files'] as $file ) {
391
  */
392
  $parsed_css = apply_filters( 'cherry_dynamic_css_parsed_styles', $parsed_css, $this->args );
393
 
394
+ return $parsed_css;
395
+ }
396
+
397
+ /**
398
+ * Print inline CSS after current theme stylesheet
399
+ *
400
+ * @since 1.0.0
401
+ * @return void|bool false
402
+ */
403
+ public function print_inline_css() {
404
+
405
+ $parsed_css = $this->get_inline_css();
406
+
407
+ if ( empty( $parsed_css ) ) {
408
+ return false;
409
+ }
410
+
411
  printf( '<style type="text/css">%s</style>', $parsed_css );
412
 
413
  }
473
 
474
  $functions = $this->get_css_functions();
475
 
476
+ // check if function exists and is not CSS-reserved word
477
+ if ( ! array_key_exists( $matches[2], $functions ) ) {
478
+ if ( is_array( $this->css_reserved ) && in_array( $matches[2], $this->css_reserved ) ) {
479
+ return $matches[0];
480
+ } else {
481
+ return $not_found;
482
+ }
483
  }
484
 
485
  $function = $functions[ $matches[2] ];
cherry-framework/modules/cherry-dynamic-css/inc/class-cherry-dynamic-css-collector.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @package Cherry_Framework
6
  * @author Cherry Team <cherryframework@gmail.com>
7
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
8
  * @link http://www.cherryframework.com/
9
  * @license http://www.gnu.org/licenses/gpl-3.0.html
10
  */
4
  *
5
  * @package Cherry_Framework
6
  * @author Cherry Team <cherryframework@gmail.com>
7
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
8
  * @link http://www.cherryframework.com/
9
  * @license http://www.gnu.org/licenses/gpl-3.0.html
10
  */
cherry-framework/modules/cherry-google-fonts-loader/cherry-google-fonts-loader.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Modules
13
  * @version 1.1.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Modules
13
  * @version 1.1.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-handler/assets/js/cherry-handler.js CHANGED
@@ -21,6 +21,7 @@
21
  'cache': false,
22
  'processData': true,
23
  'url': '',
 
24
  'beforeSendCallback': function() {},
25
  'errorCallback': function() {},
26
  'successCallback': function() {},
@@ -109,7 +110,7 @@
109
  dataType: self.handlerSettings.data_type,
110
  processData: settings.processData,
111
  beforeSend: function( jqXHR, ajaxSettings ) {
112
- if ( null !== self.ajaxRequest ) {
113
  self.ajaxRequest.abort();
114
  }
115
 
21
  'cache': false,
22
  'processData': true,
23
  'url': '',
24
+ 'async': false,
25
  'beforeSendCallback': function() {},
26
  'errorCallback': function() {},
27
  'successCallback': function() {},
110
  dataType: self.handlerSettings.data_type,
111
  processData: settings.processData,
112
  beforeSend: function( jqXHR, ajaxSettings ) {
113
+ if ( null !== self.ajaxRequest && ! settings.async ) {
114
  self.ajaxRequest.abort();
115
  }
116
 
cherry-framework/modules/cherry-handler/assets/js/min/cherry-handler.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,a){"use strict";a.utilites.namespace("CherryAjaxHandler"),a.CherryAjaxHandler=function(t){var n=this,r={handlerId:"",cache:!1,processData:!0,url:"",beforeSendCallback:function(){},errorCallback:function(){},successCallback:function(){},completeCallback:function(){}};return t&&e.extend(r,t),window[r.handlerId]?(n.handlerSettings=window[r.handlerId]||{},n.ajaxRequest=null,n.ajaxProcessing=!1,n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce},""===r.url&&("false"===n.handlerSettings.is_public?r.url=window.ajaxurl:r.url=window.cherryHandlerAjaxUrl.ajax_url),n.send=function(){n.ajaxProcessing&&a.cherryHandlerUtils.noticeCreate("error-notice",n.handlerSettings.sys_messages.wait_processing,n.handlerSettings.is_public),n.ajaxProcessing=!0,n.ajaxRequest=jQuery.ajax({type:n.handlerSettings.type,url:r.url,data:n.data,cache:r.cache,dataType:n.handlerSettings.data_type,processData:r.processData,beforeSend:function(e,a){null!==n.ajaxRequest&&n.ajaxRequest.abort(),r.beforeSendCallback&&"function"==typeof r.beforeSendCallback&&r.beforeSendCallback(e,a)},error:function(a,t,n){e(document).trigger({type:"cherry-ajax-handler-error",jqXHR:a,textStatus:t,errorThrown:n}),r.errorCallback&&"function"==typeof r.errorCallback&&r.errorCallback(a,t,n)},success:function(t,c,s){n.ajaxProcessing=!1,e(document).trigger({type:"cherry-ajax-handler-success",response:t,jqXHR:s,textStatus:c}),r.successCallback&&"function"==typeof r.successCallback&&r.successCallback(t,c,s),a.cherryHandlerUtils.noticeCreate(t.type,t.message,n.handlerSettings.is_public)},complete:function(a,t){e(document).trigger({type:"cherry-ajax-handler-complete",jqXHR:a,textStatus:t}),r.completeCallback&&"function"==typeof r.completeCallback&&r.completeCallback(a,t)}})},n.sendData=function(e){var a=e||{};n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce,data:a},n.send()},void(n.sendFormData=function(t){var r,c=e(t);r=a.cherryHandlerUtils.serializeObject(c),n.sendData(r)})):(window.console&&window.console.warn("Handler id not found"),!1)},a.utilites.namespace("cherryHandlerUtils"),a.cherryHandlerUtils={noticeCreate:function(a,t,n){function r(){var a=100;e(".cherry-handler-notice").each(function(){e(this).css({top:a}),a+=e(this).outerHeight(!0)})}var c,s,i=0,o=n||!1;return!(!t||"true"===o)&&(c=e('<div class="cherry-handler-notice '+a+'"><span class="dashicons"></span><div class="inner">'+t+"</div></div>"),e("body").prepend(c),r(),i=-1*(c.outerWidth(!0)+10),c.css({right:i}),s=setTimeout(function(){c.css({right:10}).addClass("show-state")},100),s=setTimeout(function(){i=-1*(c.outerWidth(!0)+10),c.css({right:i}).removeClass("show-state")},4e3),void(s=setTimeout(function(){c.remove(),clearTimeout(s)},4500)))},serializeObject:function(a){var t=this,n={},r={},c={validate:/^[a-zA-Z][a-zA-Z0-9_-]*(?:\[(?:\d*|[a-zA-Z0-9_-]+)\])*$/,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_-]+$/};return this.build=function(e,a,t){return e[a]=t,e},this.push_counter=function(e){return void 0===r[e]&&(r[e]=0),r[e]++},e.each(a.serializeArray(),function(){var a,r,s,i;if(c.validate.test(this.name)){for(r=this.name.match(c.key),s=this.value,i=this.name;void 0!==(a=r.pop());)i=i.replace(new RegExp("\\["+a+"\\]$"),""),a.match(c.push)?s=t.build([],t.push_counter(i),s):a.match(c.fixed)?s=t.build([],a,s):a.match(c.named)&&(s=t.build({},a,s));n=e.extend(!0,n,s)}}),n}}}(jQuery,window.CherryJsCore);
1
+ !function(e,a){"use strict";a.utilites.namespace("CherryAjaxHandler"),a.CherryAjaxHandler=function(t){var n=this,r={handlerId:"",cache:!1,processData:!0,url:"",async:!1,beforeSendCallback:function(){},errorCallback:function(){},successCallback:function(){},completeCallback:function(){}};return t&&e.extend(r,t),window[r.handlerId]?(n.handlerSettings=window[r.handlerId]||{},n.ajaxRequest=null,n.ajaxProcessing=!1,n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce},""===r.url&&(r.url="false"===n.handlerSettings.is_public?window.ajaxurl:window.cherryHandlerAjaxUrl.ajax_url),n.send=function(){n.ajaxProcessing&&a.cherryHandlerUtils.noticeCreate("error-notice",n.handlerSettings.sys_messages.wait_processing,n.handlerSettings.is_public),n.ajaxProcessing=!0,n.ajaxRequest=jQuery.ajax({type:n.handlerSettings.type,url:r.url,data:n.data,cache:r.cache,dataType:n.handlerSettings.data_type,processData:r.processData,beforeSend:function(e,a){null===n.ajaxRequest||r.async||n.ajaxRequest.abort(),r.beforeSendCallback&&"function"==typeof r.beforeSendCallback&&r.beforeSendCallback(e,a)},error:function(a,t,n){e(document).trigger({type:"cherry-ajax-handler-error",jqXHR:a,textStatus:t,errorThrown:n}),r.errorCallback&&"function"==typeof r.errorCallback&&r.errorCallback(a,t,n)},success:function(t,c,s){n.ajaxProcessing=!1,e(document).trigger({type:"cherry-ajax-handler-success",response:t,jqXHR:s,textStatus:c}),r.successCallback&&"function"==typeof r.successCallback&&r.successCallback(t,c,s),a.cherryHandlerUtils.noticeCreate(t.type,t.message,n.handlerSettings.is_public)},complete:function(a,t){e(document).trigger({type:"cherry-ajax-handler-complete",jqXHR:a,textStatus:t}),r.completeCallback&&"function"==typeof r.completeCallback&&r.completeCallback(a,t)}})},n.sendData=function(e){var a=e||{};n.data={action:n.handlerSettings.action,nonce:n.handlerSettings.nonce,data:a},n.send()},void(n.sendFormData=function(t){var r,c=e(t);r=a.cherryHandlerUtils.serializeObject(c),n.sendData(r)})):(window.console&&window.console.warn("Handler id not found"),!1)},a.utilites.namespace("cherryHandlerUtils"),a.cherryHandlerUtils={noticeCreate:function(a,t,n){function r(){var a=100;e(".cherry-handler-notice").each(function(){e(this).css({top:a}),a+=e(this).outerHeight(!0)})}var c,s,i=0,o=n||!1;return t&&"true"!==o?(c=e('<div class="cherry-handler-notice '+a+'"><span class="dashicons"></span><div class="inner">'+t+"</div></div>"),e("body").prepend(c),r(),i=-1*(c.outerWidth(!0)+10),c.css({right:i}),s=setTimeout(function(){c.css({right:10}).addClass("show-state")},100),s=setTimeout(function(){i=-1*(c.outerWidth(!0)+10),c.css({right:i}).removeClass("show-state")},4e3),void(s=setTimeout(function(){c.remove(),clearTimeout(s)},4500))):!1},serializeObject:function(a){var t=this,n={},r={},c={validate:/^[a-zA-Z][a-zA-Z0-9_-]*(?:\[(?:\d*|[a-zA-Z0-9_-]+)\])*$/,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_-]+$/};return this.build=function(e,a,t){return e[a]=t,e},this.push_counter=function(e){return void 0===r[e]&&(r[e]=0),r[e]++},e.each(a.serializeArray(),function(){var a,r,s,i;if(c.validate.test(this.name)){for(r=this.name.match(c.key),s=this.value,i=this.name;void 0!==(a=r.pop());)i=i.replace(new RegExp("\\["+a+"\\]$"),""),a.match(c.push)?s=t.build([],t.push_counter(i),s):a.match(c.fixed)?s=t.build([],a,s):a.match(c.named)&&(s=t.build({},a,s));n=e.extend(!0,n,s)}}),n}}}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-handler/cherry-handler.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Cherry handler
4
  * Description: Initializes handlers
5
- * Version: 1.1.1
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,9 +10,9 @@
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
- * @version 1.1.1
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
@@ -31,15 +31,6 @@ if ( ! class_exists( 'Cherry_Handler' ) ) {
31
  */
32
  class Cherry_Handler {
33
 
34
- /**
35
- * A reference to an instance of this class.
36
- *
37
- * @since 1.0.0
38
- * @access private
39
- * @var object
40
- */
41
- private static $handlers_list = array();
42
-
43
  /**
44
  * Default settings.
45
  *
2
  /**
3
  * Module Name: Cherry handler
4
  * Description: Initializes handlers
5
+ * Version: 1.1.2
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
+ * @version 1.1.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
31
  */
32
  class Cherry_Handler {
33
 
 
 
 
 
 
 
 
 
 
34
  /**
35
  * Default settings.
36
  *
cherry-framework/modules/cherry-interface-builder/cherry-interface-builder.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Modules
13
  * @version 1.1.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Modules
13
  * @version 1.1.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.scss CHANGED
@@ -78,7 +78,8 @@ html{
78
  color: $link-hover-color;
79
  }
80
  &:focus{
81
- outline: 1px solid $link-hover-color;
 
82
  }
83
  }
84
  &__description{
@@ -235,8 +236,6 @@ html{
235
  top: -7px;
236
  left: -9px;
237
  }
238
- //position: relative;
239
- //left: 14px;
240
  transform:scaleX(0);
241
  transition: all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
242
  }
78
  color: $link-hover-color;
79
  }
80
  &:focus{
81
+ outline: 1px solid rgba(41, 143, 252, .6);
82
+ box-shadow: 0px 0px 2px rgba(41,143,252,0.6);
83
  }
84
  }
85
  &__description{
236
  top: -7px;
237
  left: -9px;
238
  }
 
 
239
  transform:scaleX(0);
240
  transition: all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
241
  }
cherry-framework/modules/cherry-interface-builder/inc/assets/min/cherry-interface-builder.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-kit button *{pointer-events:none}.cherry-component__content .cherry-settings__content{display:none}.cherry-component__content .cherry-settings__content.show{display:inherit}html{font-size:13px}.cherry-ui-kit h1{font-weight:700;font-size:2.308rem;line-height:2.308rem}.cherry-ui-kit h1 .dashicons{font-size:3rem;line-height:inherit;width:20px;margin:0 20px 0 -5px}.cherry-ui-kit h2{font-weight:600;font-size:1.538rem;line-height:1.538rem}.cherry-ui-kit h2 .dashicons{font-size:2rem;line-height:inherit;width:20px;margin-right:20px}.cherry-ui-kit h3{font-weight:600;font-size:1.231rem;line-height:1.231rem}.cherry-ui-kit h3 .dashicons{font-size:1.7rem;line-height:inherit;margin-right:5px}.cherry-ui-kit h4{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h5{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h6{font-weight:400;font-size:1rem;line-height:1rem}.cherry-ui-kit a{color:#298ffc;text-decoration:none}.cherry-ui-kit a:hover{color:#23282d}.cherry-ui-kit a:focus{outline:1px solid #23282d}.cherry-ui-kit__description{font-size:0.9rem;color:#96989a;margin:10px 0}.cherry-ui-kit__title{margin:20px 0}.cherry-ui-kit.hide{display:none}.cherry-control+.cherry-control,.cherry-settings+.cherry-control{border-top:1px solid rgba(0,0,0,0.1)}.cherry-section{padding:10px;background-color:#fff;margin-left:-10px}.cherry-section__title,.cherry-section__description{margin:10px 0 0 0}.cherry-section+.cherry-ui-kit{border-top:1px solid rgba(0,0,0,0.1)}@media (min-width: 783px){.cherry-section{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);padding:15px;margin:15px 15px 0 0}.cherry-section__holder{background-color:#efefef;border-radius:5px;padding:15px}.cherry-section__info{background-color:#fff;border-radius:5px;padding:15px;box-shadow:0px 5px 21px rgba(0,0,0,0.1);margin-bottom:15px}.cherry-section .cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff;margin-top:15px}.cherry-section .cherry-settings:first-child{margin-top:0}}@media (min-width: 961px){.cherry-section{padding:30px;margin:20px 20px 0 0}.cherry-section__info{padding:30px;margin-bottom:30px}.cherry-section__holder{padding:30px}.cherry-section .cherry-settings{margin-top:30px}}.cherry-component{padding:20px 0}@media (min-width: 783px){.cherry-component{padding:15px}}@media (min-width: 961px){.cherry-component{padding:30px}}.cherry-component+*{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component__title{margin-top:0}.cherry-component .cherry-component__content .cherry-settings{padding:0;border-top:none}.cherry-component__button{display:block;min-height:45px;-webkit-transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19);transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19)}.cherry-component__button .cherry-ui-kit__title{color:inherit}.cherry-component__button.active,.cherry-component__button:hover{color:#298ffc;-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component__button:focus{outline:none;box-shadow:inset 0px 0px 10px rgba(41,143,252,0.5);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button,.cherry-component.cherry-toggle .cherry-component__button{width:100%;padding:15px 20px;border:0;background:none;cursor:pointer;position:relative}.cherry-component.cherry-accordion .cherry-component__button .cherry-toggle__title,.cherry-component.cherry-toggle .cherry-component__button .cherry-toggle__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"],.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"]{position:absolute;top:50%;right:5px;margin-top:-10px;font-size:25px;color:#b4b7ba;padding:5px 5px;width:10px;height:9px;text-align:left;overflow:hidden}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon:before{position:relative;top:-8px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon:before{position:relative;top:-7px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].show-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].hide-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button+.cherry-settings__content,.cherry-component.cherry-toggle .cherry-component__button+.cherry-settings__content{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings+.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings+.cherry-settings{margin-top:10px}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start;border-bottom:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto;padding:15px 20px;border:0;background:none;cursor:pointer}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button.active{-ms-box-shadow:inset 0px -3px 0px 0px #298ffc;box-shadow:inset 0px -3px 0px 0px #298ffc}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button .cherry-tab__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__body{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff}.cherry-component.cherry-tab .cherry-tab__body .cherry-settings{box-shadow:none;border-radius:0;border:none;background-color:inherit;margin:0}@media (min-width: 783px){.cherry-component.cherry-tab .cherry-tab__tabs{border:solid 1px rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:none}.cherry-component.cherry-tab .cherry-tab__body{border:none}.cherry-component.cherry-tab .cherry-tab__body .cherry-tab__content{border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab--horizontal>.cherry-tab__body{border-radius:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;border-radius:5px 5px 0 0;border-bottom:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__content{border-radius:0 0 5px 5px}.cherry-component.cherry-tab--vertical>.cherry-tab__body{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:0;-ms-flex:0 1 25%;flex:0 1 25%;border-radius:5px 0 0 5px;border-right:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{text-align:right}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button .cherry-tab__title{width:100%}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button.active{box-shadow:inset -3px 0px 0px #298ffc}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 75%;flex:0 1 75%;border-radius:0 5px 5px 0}}@media (min-width: 1200px){.cherry-component.cherry-tab--vertical .cherry-tab__tabs{-webkit-box-flex:0;-ms-flex:0 1 20%;flex:0 1 20%}.cherry-component.cherry-tab--vertical .cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 80%;flex:0 1 80%}}.cherry-settings+.cherry-settings{border-top:1px solid rgba(0,0,0,0.1)}.cherry-settings .cherry-settings__title{margin-bottom:10px}.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:10px}@media (min-width: 783px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:15px}}@media (min-width: 961px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:30px}}.cherry-control{padding:15px 20px}.cherry-control__title{margin:0 0 10px 0}.cherry-control__description{margin-top:0}.cherry-control .cherry-ui-container{margin:0}@media (min-width: 783px){.cherry-control{padding:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.cherry-control__info{-webkit-box-flex:0;-ms-flex:0 1 30%;flex:0 1 30%;padding-right:15px}.cherry-control__content{-webkit-box-flex:0;-ms-flex:0 1 70%;flex:0 1 70%}}@media (min-width: 961px){.cherry-control{padding:30px}}@media (min-width: 783px){.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner,.cherry-tab__content>.cherry-scroll,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content{max-height:700px;overflow-y:auto;position:relative}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar{width:10px;height:10px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-button,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-button,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button{width:0px;height:0px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb{background-color:#298ffc;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:hover,.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:active,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:hover,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:active,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active{background:#206ff4}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-track,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-track,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track{background-color:#fff;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-corner,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-corner,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner{background:transparent}}
1
+ .cherry-ui-kit button *{pointer-events:none}.cherry-component__content .cherry-settings__content{display:none}.cherry-component__content .cherry-settings__content.show{display:inherit}html{font-size:13px}.cherry-ui-kit h1{font-weight:700;font-size:2.308rem;line-height:2.308rem}.cherry-ui-kit h1 .dashicons{font-size:3rem;line-height:inherit;width:20px;margin:0 20px 0 -5px}.cherry-ui-kit h2{font-weight:600;font-size:1.538rem;line-height:1.538rem}.cherry-ui-kit h2 .dashicons{font-size:2rem;line-height:inherit;width:20px;margin-right:20px}.cherry-ui-kit h3{font-weight:600;font-size:1.231rem;line-height:1.231rem}.cherry-ui-kit h3 .dashicons{font-size:1.7rem;line-height:inherit;margin-right:5px}.cherry-ui-kit h4{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h5{font-weight:500;font-size:1.077rem;line-height:1.077rem}.cherry-ui-kit h6{font-weight:400;font-size:1rem;line-height:1rem}.cherry-ui-kit a{color:#298ffc;text-decoration:none}.cherry-ui-kit a:hover{color:#23282d}.cherry-ui-kit a:focus{outline:1px solid rgba(41,143,252,0.6);box-shadow:0px 0px 2px rgba(41,143,252,0.6)}.cherry-ui-kit__description{font-size:0.9rem;color:#96989a;margin:10px 0}.cherry-ui-kit__title{margin:20px 0}.cherry-ui-kit.hide{display:none}.cherry-control+.cherry-control,.cherry-settings+.cherry-control{border-top:1px solid rgba(0,0,0,0.1)}.cherry-section{padding:10px;background-color:#fff;margin-left:-10px}.cherry-section__title,.cherry-section__description{margin:10px 0 0 0}.cherry-section+.cherry-ui-kit{border-top:1px solid rgba(0,0,0,0.1)}@media (min-width: 783px){.cherry-section{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);padding:15px;margin:15px 15px 0 0}.cherry-section__holder{background-color:#efefef;border-radius:5px;padding:15px}.cherry-section__info{background-color:#fff;border-radius:5px;padding:15px;box-shadow:0px 5px 21px rgba(0,0,0,0.1);margin-bottom:15px}.cherry-section .cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff;margin-top:15px}.cherry-section .cherry-settings:first-child{margin-top:0}}@media (min-width: 961px){.cherry-section{padding:30px;margin:20px 20px 0 0}.cherry-section__info{padding:30px;margin-bottom:30px}.cherry-section__holder{padding:30px}.cherry-section .cherry-settings{margin-top:30px}}.cherry-component{padding:20px 0}@media (min-width: 783px){.cherry-component{padding:15px}}@media (min-width: 961px){.cherry-component{padding:30px}}.cherry-component+*{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component__title{margin-top:0}.cherry-component .cherry-component__content .cherry-settings{padding:0;border-top:none}.cherry-component__button{display:block;min-height:45px;-webkit-transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19);transition:all 300ms cubic-bezier(0.55, 0.055, 0.675, 0.19)}.cherry-component__button .cherry-ui-kit__title{color:inherit}.cherry-component__button.active,.cherry-component__button:hover{color:#298ffc;-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component__button:focus{outline:none;box-shadow:inset 0px 0px 10px rgba(41,143,252,0.5);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button,.cherry-component.cherry-toggle .cherry-component__button{width:100%;padding:15px 20px;border:0;background:none;cursor:pointer;position:relative}.cherry-component.cherry-accordion .cherry-component__button .cherry-toggle__title,.cherry-component.cherry-toggle .cherry-component__button .cherry-toggle__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"],.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"]{position:absolute;top:50%;right:5px;margin-top:-10px;font-size:25px;color:#b4b7ba;padding:5px 5px;width:10px;height:9px;text-align:left;overflow:hidden}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].hide-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].hide-icon:before{position:relative;top:-8px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);transition:all 300ms cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button>span[class*="icon"].show-icon:before,.cherry-component.cherry-toggle .cherry-component__button>span[class*="icon"].show-icon:before{position:relative;top:-7px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].show-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].show-icon{-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275);transition-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.275)}.cherry-component.cherry-accordion .cherry-component__button.active>span[class*="icon"].hide-icon,.cherry-component.cherry-toggle .cherry-component__button.active>span[class*="icon"].hide-icon{-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1);transition-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry-component.cherry-accordion .cherry-component__button+.cherry-settings__content,.cherry-component.cherry-toggle .cherry-component__button+.cherry-settings__content{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings+.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings+.cherry-settings{margin-top:10px}.cherry-component.cherry-accordion>.cherry-ui-kit__content>.cherry-settings,.cherry-component.cherry-toggle>.cherry-ui-kit__content>.cherry-settings{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start;border-bottom:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto;padding:15px 20px;border:0;background:none;cursor:pointer}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button.active{-ms-box-shadow:inset 0px -3px 0px 0px #298ffc;box-shadow:inset 0px -3px 0px 0px #298ffc}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button .cherry-tab__title{font-weight:700;font-size:14px;float:left;margin:0}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__body{box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1);background-color:#fff}.cherry-component.cherry-tab .cherry-tab__body .cherry-settings{box-shadow:none;border-radius:0;border:none;background-color:inherit;margin:0}@media (min-width: 783px){.cherry-component.cherry-tab .cherry-tab__tabs{border:solid 1px rgba(0,0,0,0.1)}.cherry-component.cherry-tab .cherry-tab__tabs .cherry-component__button+button{border-top:none}.cherry-component.cherry-tab .cherry-tab__body{border:none}.cherry-component.cherry-tab .cherry-tab__body .cherry-tab__content{border:1px solid rgba(0,0,0,0.1)}.cherry-component.cherry-tab--horizontal>.cherry-tab__body{border-radius:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;border-radius:5px 5px 0 0;border-bottom:none}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.cherry-component.cherry-tab--horizontal>.cherry-tab__body>.cherry-tab__content{border-radius:0 0 5px 5px}.cherry-component.cherry-tab--vertical>.cherry-tab__body{display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:0;-ms-flex:0 1 25%;flex:0 1 25%;border-radius:5px 0 0 5px;border-right:none}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button{text-align:right}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button .cherry-tab__title{width:100%}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__tabs .cherry-component__button.active{box-shadow:inset -3px 0px 0px #298ffc}.cherry-component.cherry-tab--vertical>.cherry-tab__body>.cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 75%;flex:0 1 75%;border-radius:0 5px 5px 0}}@media (min-width: 1200px){.cherry-component.cherry-tab--vertical .cherry-tab__tabs{-webkit-box-flex:0;-ms-flex:0 1 20%;flex:0 1 20%}.cherry-component.cherry-tab--vertical .cherry-tab__content{-webkit-box-flex:0;-ms-flex:0 1 80%;flex:0 1 80%}}.cherry-settings+.cherry-settings{border-top:1px solid rgba(0,0,0,0.1)}.cherry-settings .cherry-settings__title{margin-bottom:10px}.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:10px}@media (min-width: 783px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:15px}}@media (min-width: 961px){.cherry-settings__description,.cherry-settings .cherry-settings__title{margin-left:30px}}.cherry-control{padding:15px 20px}.cherry-control__title{margin:0 0 10px 0}.cherry-control__description{margin-top:0}.cherry-control .cherry-ui-container{margin:0}@media (min-width: 783px){.cherry-control{padding:15px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.cherry-control__info{-webkit-box-flex:0;-ms-flex:0 1 30%;flex:0 1 30%;padding-right:15px}.cherry-control__content{-webkit-box-flex:0;-ms-flex:0 1 70%;flex:0 1 70%}}@media (min-width: 961px){.cherry-control{padding:30px}}@media (min-width: 783px){.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner,.cherry-tab__content>.cherry-scroll,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content{max-height:700px;overflow-y:auto;position:relative}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar{width:10px;height:10px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-button,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-button,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-button{width:0px;height:0px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb{background-color:#298ffc;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:hover,.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-thumb:active,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:hover,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-thumb:active,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:hover,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-thumb:active{background:#206ff4}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-track,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-track,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-track{background-color:#fff;border:none;border-radius:5px}.cherry-section.cherry-scroll>.cherry-section__holder>.cherry-section__inner::-webkit-scrollbar-corner,.cherry-tab__content>.cherry-scroll::-webkit-scrollbar-corner,.cherry-accordion__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner,.cherry-toggle__content>.cherry-scroll>.cherry-settings__content::-webkit-scrollbar-corner{background:transparent}}
cherry-framework/modules/cherry-interface-builder/inc/views/component-accordion.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/component-repeater.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/component-tab-horizontal.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/component-tab-vertical.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/component-toggle.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/control.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/form.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/html.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/section.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/settings-children-title.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/settings.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/tab-children-title.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-interface-builder/inc/views/toggle-children-title.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package Cherry_Interface_Builder
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry-js-core/cherry-js-core.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Modules
13
  * @version 1.1.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Modules
13
  * @version 1.1.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-post-formats-api/cherry-post-formats-api.php CHANGED
@@ -13,7 +13,7 @@
13
  * @subpackage Modules
14
  * @version 1.1.2
15
  * @author Cherry Team <cherryframework@gmail.com>
16
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
17
  * @link http://www.cherryframework.com/
18
  * @license http://www.gnu.org/licenses/gpl-3.0.html
19
  */
13
  * @subpackage Modules
14
  * @version 1.1.2
15
  * @author Cherry Team <cherryframework@gmail.com>
16
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
17
  * @link http://www.cherryframework.com/
18
  * @license http://www.gnu.org/licenses/gpl-3.0.html
19
  */
cherry-framework/modules/cherry-post-formats-api/inc/class-cherry-facebook-embed.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Framework
6
  * @subpackage Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
5
  * @package Cherry_Framework
6
  * @subpackage Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
cherry-framework/modules/cherry-post-meta/cherry-post-meta.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Modules
13
  * @version 1.2.1
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Modules
13
  * @version 1.2.1
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-template-manager/cherry-template-manager.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Template Manager
4
  * Description: Module load and parse tmpl files.
5
- * Version: 1.0.1
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,9 +10,9 @@
10
  *
11
  * @package Template_Manager
12
  * @subpackage Modules
13
- * @version 1.0.1
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
@@ -31,15 +31,6 @@ if ( ! class_exists( 'Cherry_Template_Manager' ) ) {
31
  */
32
  class Cherry_Template_Manager {
33
 
34
- /**
35
- * A reference to an instance of this class.
36
- *
37
- * @since 1.0.0
38
- * @access private
39
- * @var object
40
- */
41
- private static $instance = null;
42
-
43
  /**
44
  * Module arguments.
45
  *
@@ -86,7 +77,7 @@ if ( ! class_exists( 'Cherry_Template_Manager' ) ) {
86
 
87
  $this->include_class();
88
 
89
- $this->args = array_merge_recursive(
90
  $args,
91
  $this->args
92
  );
@@ -114,25 +105,8 @@ if ( ! class_exists( 'Cherry_Template_Manager' ) ) {
114
  * @return void
115
  */
116
  public function set_class() {
117
- $this->loader = Cherry_Template_Loader::get_instance( $this->args, $this );
118
- $this->parser = Cherry_Template_Parser::get_instance( $this->args, $this );
119
- }
120
-
121
- /**
122
- * Returns the instance.
123
- *
124
- * @since 1.0.0
125
- * @access public
126
- * @return object
127
- */
128
- public static function get_instance( $core = null, $args = array() ) {
129
-
130
- // If the single instance hasn't been set, set it now.
131
- if ( null == self::$instance ) {
132
- self::$instance = new self( $core, $args );
133
- }
134
-
135
- return self::$instance;
136
  }
137
  }
138
  }
2
  /**
3
  * Module Name: Template Manager
4
  * Description: Module load and parse tmpl files.
5
+ * Version: 1.0.2
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
10
  *
11
  * @package Template_Manager
12
  * @subpackage Modules
13
+ * @version 1.0.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
31
  */
32
  class Cherry_Template_Manager {
33
 
 
 
 
 
 
 
 
 
 
34
  /**
35
  * Module arguments.
36
  *
77
 
78
  $this->include_class();
79
 
80
+ $this->args = wp_parse_args(
81
  $args,
82
  $this->args
83
  );
105
  * @return void
106
  */
107
  public function set_class() {
108
+ $this->loader = new Cherry_Template_Loader( $this->args, $this );
109
+ $this->parser = new Cherry_Template_Parser( $this->args, $this );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
  }
112
  }
cherry-framework/modules/cherry-template-manager/inc/cherry-template-loader.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @package Template_Manager
6
  * @author Cherry Team <cherryframework@gmail.com>
7
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
8
  * @link http://www.cherryframework.com/
9
  * @license http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -23,15 +23,6 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
23
  */
24
  class Cherry_Template_Loader {
25
 
26
- /**
27
- * A reference to an instance of this class.
28
- *
29
- * @since 1.0.0
30
- * @access private
31
- * @var object
32
- */
33
- private static $instance = null;
34
-
35
  /**
36
  * A reference to an instance of this Cherry_Template_Manager class.
37
  *
@@ -50,8 +41,8 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
50
  */
51
  private $args = array(
52
  'template_dir' => 'templates/%1$s/%2$s.tmpl',
53
- 'slug' => '',
54
- 'upload_dir' => '',
55
  );
56
 
57
  /**
@@ -63,7 +54,7 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
63
  */
64
  public function __construct( $args = array(), $main_class = null ) {
65
 
66
- $this->args = array_merge_recursive(
67
  $args,
68
  $this->args
69
  );
@@ -116,7 +107,7 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
116
  * @return string
117
  */
118
  private function get_slug() {
119
- $file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['base_dir'] ) );
120
  $product_dir = $this->get_project_root();
121
 
122
  $slug = str_replace( $product_dir, '', $file_dir );
@@ -135,7 +126,7 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
135
  private function get_project_root() {
136
  $themes_dir = wp_normalize_path( get_theme_root() );
137
  $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
138
- $file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['base_dir'] ) );
139
  $project_root = ( false === strpos( $file_dir, $themes_dir ) ) ? $plugin_dir : $themes_dir;
140
 
141
  return trailingslashit( $project_root );
@@ -198,22 +189,5 @@ if ( ! class_exists( 'Cherry_Template_Loader' ) ) {
198
  return;
199
  }
200
  }
201
-
202
-
203
- /**
204
- * Returns the instance.
205
- *
206
- * @since 1.0.0
207
- * @return object
208
- */
209
- public static function get_instance( $args, $main_class ) {
210
-
211
- // If the single instance hasn't been set, set it now.
212
- if ( null == self::$instance ) {
213
- self::$instance = new self( $args, $main_class );
214
- }
215
-
216
- return self::$instance;
217
- }
218
  }
219
  }
4
  *
5
  * @package Template_Manager
6
  * @author Cherry Team <cherryframework@gmail.com>
7
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
8
  * @link http://www.cherryframework.com/
9
  * @license http://www.gnu.org/licenses/gpl-3.0.html
10
  */
23
  */
24
  class Cherry_Template_Loader {
25
 
 
 
 
 
 
 
 
 
 
26
  /**
27
  * A reference to an instance of this Cherry_Template_Manager class.
28
  *
41
  */
42
  private $args = array(
43
  'template_dir' => 'templates/%1$s/%2$s.tmpl',
44
+ 'slug' => null,
45
+ 'upload_dir' => null,
46
  );
47
 
48
  /**
54
  */
55
  public function __construct( $args = array(), $main_class = null ) {
56
 
57
+ $this->args = wp_parse_args(
58
  $args,
59
  $this->args
60
  );
107
  * @return string
108
  */
109
  private function get_slug() {
110
+ $file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['extra_base_dir'] ) );
111
  $product_dir = $this->get_project_root();
112
 
113
  $slug = str_replace( $product_dir, '', $file_dir );
126
  private function get_project_root() {
127
  $themes_dir = wp_normalize_path( get_theme_root() );
128
  $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
129
+ $file_dir = wp_normalize_path( dirname( $this->cherry_template_manager_class->core->settings['extra_base_dir'] ) );
130
  $project_root = ( false === strpos( $file_dir, $themes_dir ) ) ? $plugin_dir : $themes_dir;
131
 
132
  return trailingslashit( $project_root );
189
  return;
190
  }
191
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
  }
193
  }
cherry-framework/modules/cherry-template-manager/inc/cherry-template-parser.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @package Template_Manager
6
  * @author Cherry Team <cherryframework@gmail.com>
7
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
8
  * @link http://www.cherryframework.com/
9
  * @license http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -22,16 +22,6 @@ if ( ! class_exists( 'Cherry_Template_Parser' ) ) {
22
  * @since 1.0.0
23
  */
24
  class Cherry_Template_Parser {
25
-
26
- /**
27
- * A reference to an instance of this class.
28
- *
29
- * @since 1.0.0
30
- * @access private
31
- * @var object
32
- */
33
- private static $instance = null;
34
-
35
  /**
36
  * A reference to an instance of this Cherry_Template_Manager class.
37
  *
@@ -70,7 +60,7 @@ if ( ! class_exists( 'Cherry_Template_Parser' ) ) {
70
  * @return void
71
  */
72
  public function __construct( $args = array(), $main_class = null ) {
73
- $this->args = array_merge_recursive(
74
  $args,
75
  $this->args
76
  );
@@ -202,21 +192,5 @@ if ( ! class_exists( 'Cherry_Template_Parser' ) ) {
202
  return;
203
  }
204
  }
205
-
206
- /**
207
- * Returns the instance.
208
- *
209
- * @since 1.0.0
210
- * @return object
211
- */
212
- public static function get_instance( $args, $main_class ) {
213
-
214
- // If the single instance hasn't been set, set it now.
215
- if ( null == self::$instance ) {
216
- self::$instance = new self( $args, $main_class );
217
- }
218
-
219
- return self::$instance;
220
- }
221
  }
222
  }
4
  *
5
  * @package Template_Manager
6
  * @author Cherry Team <cherryframework@gmail.com>
7
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
8
  * @link http://www.cherryframework.com/
9
  * @license http://www.gnu.org/licenses/gpl-3.0.html
10
  */
22
  * @since 1.0.0
23
  */
24
  class Cherry_Template_Parser {
 
 
 
 
 
 
 
 
 
 
25
  /**
26
  * A reference to an instance of this Cherry_Template_Manager class.
27
  *
60
  * @return void
61
  */
62
  public function __construct( $args = array(), $main_class = null ) {
63
+ $this->args = wp_parse_args(
64
  $args,
65
  $this->args
66
  );
192
  return;
193
  }
194
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  }
196
  }
cherry-framework/modules/cherry-term-meta/cherry-term-meta.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Modules
13
  * @version 1.1.4
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Modules
13
  * @version 1.1.4
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-toolkit/cherry-toolkit.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Class
13
  * @version 1.2.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Class
13
  * @version 1.2.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-ui-elements/cherry-ui-elements.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: UI Elements
4
  * Description: Class for the building ui elements
5
- * Version: 1.3.4
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,9 +10,9 @@
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
- * @version 1.3.4
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
2
  /**
3
  * Module Name: UI Elements
4
  * Description: Class for the building ui elements
5
+ * Version: 1.4.2
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
+ * @version 1.4.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-ui-elements/i-ui.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Framework
6
  * @subpackage Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
5
  * @package Cherry_Framework
6
  * @subpackage Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/min/ui-button.min.css CHANGED
@@ -1 +1 @@
1
- .ui-button{padding:16px 30px;display:inline-block;background-color:#96989a;font-weight:900;text-transform:uppercase;color:#fff;box-shadow:0px 0px 13px rgba(0,0,0,0.2);cursor:pointer;border-radius:4px;border:none;-webkit-transition:background 300ms ease-in-out;transition:background 300ms ease-in-out}.ui-button:hover{background-color:#b4b7ba}.ui-button:focus{outline:none}.ui-button.ui-button-normal-style{background-color:#495159}.ui-button.ui-button-normal-style:hover{background-color:#393f45}.ui-button.ui-button-success-style{background-color:#48c569}.ui-button.ui-button-success-style:hover{background-color:#3ba956}.ui-button.ui-button-primary-style{background-color:#298ffc}.ui-button.ui-button-primary-style:hover{background-color:#206ff4}.ui-button.ui-button-danger-style{background-color:#e54343}.ui-button.ui-button-danger-style:hover{background-color:#c73434}.ui-button.ui-button-warning-style{background-color:#faa730}.ui-button.ui-button-warning-style:hover{background-color:#ee8425}
1
+ .cherry5-ui-button{position:relative;display:inline-block;font-size:12px;line-height:18px;font-weight:900;letter-spacing:0.5px;text-decoration:none;padding:15px 20px;color:#23282d;text-transform:uppercase;border-radius:4px;border-width:1px;border-style:solid;outline:none;cursor:pointer;transition:all 200ms linear}.cherry5-ui-button:before{position:absolute;display:block;width:100%;height:100%;top:0;left:0;border-radius:4px;background-image:linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);content:''}.cherry5-ui-button:hover:before{background-image:linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%)}.cherry5-ui-button:active:before{opacity:0}.cherry5-ui-button.cherry5-ui-button-normal-style{color:#23282d;border-color:#d7d7d7 #b7b7b7 #b7b7b7 #d7d7d7;background-color:#f0f0f0}.cherry5-ui-button.cherry5-ui-button-normal-style:active{background-color:#e1e1e1;border-color:#9e9e9e #d7d7d7 #d7d7d7 #9e9e9e}.cherry5-ui-button.cherry5-ui-button-success-style{color:#fff;border-color:#49c56a #3a9e54 #3a9e54 #49c56a;background-color:#49c66a}.cherry5-ui-button.cherry5-ui-button-success-style:active{background-color:#3ba956;border-color:#2c7940 #49c56a #49c56a #2c7940}.cherry5-ui-button.cherry5-ui-button-primary-style{color:#fff;border-color:#5b9add #3e6a99 #3e6a99 #5b9add;background-color:#2a90fc}.cherry5-ui-button.cherry5-ui-button-primary-style:active{background-color:#206ff4;border-color:#2f5175 #5b9add #5b9add #2f5175}.cherry5-ui-button.cherry5-ui-button-secondary-style{color:#fff;border-color:#777879 #41464d #41464d #777879;background-color:#495159}.cherry5-ui-button.cherry5-ui-button-secondary-style:active{background-color:#495159;border-color:#2a2d31 #777879 #777879 #2a2d31}.cherry5-ui-button.cherry5-ui-button-danger-style{color:#fff;border-color:#e54444 #b83636 #b83636 #e54444;background-color:#e64545}.cherry5-ui-button.cherry5-ui-button-danger-style:active{background-color:#c73434;border-color:#912a2a #e54444 #e54444 #912a2a}.cherry5-ui-button.cherry5-ui-button-warning-style{color:#fff;border-color:#faa832 #c98627 #c98627 #faa832;background-color:#faa832}.cherry5-ui-button.cherry5-ui-button-warning-style:active{background-color:#ee8425;border-color:#9e6a1f #faa832 #faa832 #9e6a1f}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-button.scss CHANGED
@@ -1,52 +1,66 @@
1
  @import "ui-kit/variables";
2
  @import "ui-kit/mixins";
3
 
4
- .ui-button{
5
- padding: 16px 30px;
6
- display: inline-block;
7
- background-color: $grey_color_1;
8
- font-weight: 900;
9
- text-transform: uppercase;
10
- color: #fff;
11
- box-shadow: 0px 0px 13px rgba(0, 0, 0, 0.2);
12
- cursor: pointer;
13
- border-radius: 4px;
14
- border: none;
15
- transition: background 300ms ease-in-out;
16
- &:hover{
17
- background-color: $grey_color_4;
18
- }
19
- &:focus{
20
- outline: none;
21
  }
22
- &.ui-button-normal-style{
23
- background-color: $normal_color;
24
- &:hover{
25
- background-color: $normal_color_h;
26
- }
 
 
 
 
27
  }
28
- &.ui-button-success-style{
29
- background-color: $green_color;
30
- &:hover{
31
- background-color: $green_color_h;
32
- }
 
 
 
 
33
  }
34
- &.ui-button-primary-style{
35
- background-color: $blue_color;
36
- &:hover{
37
- background-color: $blue_color_h;
38
- }
 
 
 
 
39
  }
40
- &.ui-button-danger-style{
41
- background-color: $red_color;
42
- &:hover{
43
- background-color: $red_color_h;
44
- }
 
 
 
 
45
  }
46
- &.ui-button-warning-style{
47
- background-color: $orange_color;
48
- &:hover{
49
- background-color: $orange_color_h;
50
- }
 
 
 
 
51
  }
 
52
  }
1
  @import "ui-kit/variables";
2
  @import "ui-kit/mixins";
3
 
4
+ .cherry5-ui-button{
5
+ @include button_base();
6
+
7
+ &.cherry5-ui-button-normal-style {
8
+ color: $dark_color;
9
+ border-color: $normal_outset_1 $normal_outset_2 $normal_outset_2 $normal_outset_1;
10
+ background-color: $normal_gradint_2;
11
+ &:active {
12
+ background-color: $normal_bg_color;
13
+ border-color: darken( $normal_outset_2, 10%) $normal_outset_1 $normal_outset_1 darken( $normal_outset_2, 10%);
 
 
 
 
 
 
 
14
  }
15
+ }
16
+
17
+ &.cherry5-ui-button-success-style {
18
+ color: $light_color;
19
+ border-color: $success_outset_1 $success_outset_2 $success_outset_2 $success_outset_1;
20
+ background-color: $success_gradint_2;
21
+ &:active {
22
+ background-color: $success_bg_color;
23
+ border-color: darken( $success_outset_2, 10%) $success_outset_1 $success_outset_1 darken( $success_outset_2, 10%);
24
  }
25
+ }
26
+
27
+ &.cherry5-ui-button-primary-style {
28
+ color: $light_color;
29
+ border-color: $primary_outset_1 $primary_outset_2 $primary_outset_2 $primary_outset_1;
30
+ background-color: $primary_gradint_2;
31
+ &:active {
32
+ background-color: $primary_bg_color;
33
+ border-color: darken( $primary_outset_2, 10%) $primary_outset_1 $primary_outset_1 darken( $primary_outset_2, 10%);
34
  }
35
+ }
36
+
37
+ &.cherry5-ui-button-secondary-style {
38
+ color: $light_color;
39
+ border-color: $secondary_outset_1 $secondary_outset_2 $secondary_outset_2 $secondary_outset_1;
40
+ background-color: $secondary_gradint_2;
41
+ &:active {
42
+ background-color: $secondary_bg_color;
43
+ border-color: darken( $secondary_outset_2, 10%) $secondary_outset_1 $secondary_outset_1 darken( $secondary_outset_2, 10%);
44
  }
45
+ }
46
+
47
+ &.cherry5-ui-button-danger-style{
48
+ color: $light_color;
49
+ border-color: $danger_outset_1 $danger_outset_2 $danger_outset_2 $danger_outset_1;
50
+ background-color: $danger_gradint_2;
51
+ &:active {
52
+ background-color: $danger_bg_color;
53
+ border-color: darken( $danger_outset_2, 10%) $danger_outset_1 $danger_outset_1 darken( $danger_outset_2, 10%);
54
  }
55
+ }
56
+
57
+ &.cherry5-ui-button-warning-style{
58
+ color: $light_color;
59
+ border-color: $warning_outset_1 $warning_outset_2 $warning_outset_2 $warning_outset_1;
60
+ background-color: $warning_gradint_2;
61
+ &:active {
62
+ background-color: $warning_bg_color;
63
+ border-color: darken( $warning_outset_2, 10%) $warning_outset_1 $warning_outset_1 darken( $warning_outset_2, 10%);
64
  }
65
+ }
66
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_mixins.scss CHANGED
@@ -1,182 +1,42 @@
1
  @mixin button_base() {
 
2
  display: inline-block;
3
- text-decoration: none;
4
  font-size: 12px;
5
- line-height: 20px;
6
- font-weight: bold;
 
 
7
  padding: 15px 20px;
8
- color: #fff;
9
  text-transform: uppercase;
10
  border-radius: $border_radius_small;
 
 
 
 
11
  transition: all 200ms linear;
12
- box-shadow: $box_shadow;
13
- &:hover {
14
- color: #fff;
15
- box-shadow: none;
16
- }
17
- &:focus,
18
- &:active {
19
- outline: none;
20
- box-shadow: none;
21
- color: #fff;
22
- }
23
- }
24
 
25
- @mixin button_normal() {
26
- background: $dark_color_2;
27
- &:hover {
28
- background: $dark_color_2_h;
29
- }
30
- }
31
-
32
- @mixin button_primary() {
33
- background: $blue_color;
34
- &:hover {
35
- background: $blue_color_h;
36
- }
37
- }
38
-
39
- @mixin button_success() {
40
- background: $green_color;
41
- &:hover {
42
- background: $green_color_h;
43
- }
44
- }
45
-
46
- @mixin button_danger() {
47
- background: $red_color;
48
- &:hover {
49
- background: $red_color_h;
50
  }
51
- }
52
 
53
- @mixin button_warning() {
54
- background: $orange_color;
55
  &:hover {
56
- background: $orange_color_h;
57
- }
58
- }
59
-
60
- @mixin input() {
61
- font-size: 14px;
62
- line-height: 20px;
63
- color: $dark_color_1;
64
- background-color: $grey_color_3;
65
- border-radius: $border_radius_extra_small;
66
- padding: 10px 20px;
67
- min-height: 50px;
68
- border: 1px solid $grey_color_3;
69
- box-shadow: none;
70
- &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
  }
74
- }
75
-
76
- @mixin button_icon( $icon ) {
77
- content: $icon;
78
- display: inline-block;
79
- font-family: dashicons;
80
- font-size: 16px;
81
- font-style: normal;
82
- font-weight: 400;
83
- height: 18px;
84
- line-height: 18px;
85
- text-align: center;
86
- text-decoration: inherit;
87
- transition: all 200ms linear;
88
- vertical-align: middle;
89
- }
90
-
91
- @mixin button_icon_before( $icon ) {
92
- &:before {
93
- @include button_icon( $icon );
94
- padding: 0 5px 0 0;
95
- }
96
- }
97
-
98
- @mixin button_icon_after( $icon ) {
99
- &:after {
100
- @include button_icon( $icon );
101
- padding: 0 0 0 5px;
102
- }
103
- }
104
-
105
- @mixin button_icon_middle( $icon ) {
106
- &:before {
107
- @include button_icon( $icon );
108
- margin: 0 -5px;
109
  }
110
- }
111
 
112
- @mixin link() {
113
- display: inline-block;
114
- text-decoration: none;
115
- font-size: 12px;
116
- line-height: 20px;
117
- font-weight: bold;
118
- color: $blue_color;
119
- text-transform: uppercase;
120
- transition: all 200ms linear;
121
- &:hover {
122
- color: $dark_color_1;
123
- box-shadow: none;
124
- }
125
- &:focus,
126
  &:active {
127
- outline: none;
128
- box-shadow: none;
129
- color: $blue_color;
130
- }
131
- }
132
-
133
- @mixin link_icon_before( $icon ) {
134
- &:before {
135
- @include button_icon( $icon );
136
- padding: 0 5px 0 0;
137
- color: $grey_color_4;
138
- }
139
- &:hover {
140
  &:before {
141
- color: $blue_color;
142
  }
143
  }
144
  }
145
-
146
- @mixin container() {
147
- padding: 30px;
148
- border: 2px solid $grey_color_2;
149
- background: $grey_color_3;
150
- border-radius: $border_radius_large;
151
- }
152
-
153
- @mixin container_heading() {
154
- margin: -30px -30px 30px -30px;
155
- border-radius: $border_radius_large $border_radius_large 0 0;
156
- border-bottom: 1px solid $grey_color_2;
157
- padding: 20px 30px;
158
- font-weight: bold;
159
- font-size: 16px;
160
- line-height: 18px;
161
- text-align: center;
162
- background: #fff;
163
- }
164
-
165
- @mixin box() {
166
- margin: 0 0 30px;
167
- padding: 20px;
168
- background: #fff;
169
- box-shadow: $box_shadow_box;
170
- border-radius: $border_radius;
171
- }
172
-
173
- @mixin box_heading() {
174
- margin: -20px -20px 20px -20px;
175
- border-radius: $border_radius_small $border_radius_small 0 0;
176
- border-bottom: 1px solid $grey_color_2;
177
- padding: 20px 30px;
178
- font-weight: bold;
179
- font-size: 16px;
180
- line-height: 18px;
181
- background: #fff;
182
- }
1
  @mixin button_base() {
2
+ position: relative;
3
  display: inline-block;
 
4
  font-size: 12px;
5
+ line-height: 18px;
6
+ font-weight: 900;
7
+ letter-spacing: 0.5px;
8
+ text-decoration: none;
9
  padding: 15px 20px;
10
+ color: $dark_color;
11
  text-transform: uppercase;
12
  border-radius: $border_radius_small;
13
+ border-width: 1px;
14
+ border-style: solid;
15
+ outline: none;
16
+ cursor: pointer;
17
  transition: all 200ms linear;
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
+ &:before {
20
+ position: absolute;
21
+ display: block;
22
+ width: 100%;
23
+ height: 100%;
24
+ top: 0;
25
+ left: 0;
26
+ border-radius: $border_radius_small;
27
+ background-image: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
28
+ content: '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
 
30
 
 
 
31
  &:hover {
32
+ &:before {
33
+ background-image: linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
 
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  &:active {
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  &:before {
39
+ opacity: 0;
40
  }
41
  }
42
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/assets/ui-kit/_variables.scss CHANGED
@@ -1,20 +1,41 @@
1
- $dark_color_1: #23282d;
2
- $dark_color_2: #495159;
3
- $dark_color_2_h: #393f45;
4
- $grey_color_1: #96989a;
5
- $grey_color_2: #e5e5e5;
6
- $grey_color_3: #f1f1f1;
7
- $grey_color_4: #b4b7ba;
8
- $normal_color: #495159;
9
- $normal_color_h: #393f45;
10
- $blue_color: #298ffc;
11
- $blue_color_h: #206ff4;
12
- $green_color: #48c569;
13
- $green_color_h: #3ba956;
14
- $red_color: #e54343;
15
- $red_color_h: #c73434;
16
- $orange_color: #faa730;
17
- $orange_color_h: #ee8425;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  $border_radius_extra_small: 2px;
20
  $border_radius_small: 4px;
1
+ $light_color: #ffffff;
2
+ $dark_color: #23282d;
3
+
4
+ $normal_bg_color: #e1e1e1;
5
+ $normal_gradint_1: #ffffff;
6
+ $normal_gradint_2: #f0f0f0;
7
+ $normal_outset_1: #d7d7d7;
8
+ $normal_outset_2: #b7b7b7;
9
+
10
+ $primary_bg_color: #206ff4;
11
+ $primary_gradint_1: #5fadff;
12
+ $primary_gradint_2: #2a90fc;
13
+ $primary_outset_1: #5b9add;
14
+ $primary_outset_2: #3e6a99;
15
+
16
+ $secondary_bg_color: #495159;
17
+ $secondary_gradint_1: #4c5054;
18
+ $secondary_gradint_2: #495159;
19
+ $secondary_outset_1: #777879;
20
+ $secondary_outset_2: #41464d;
21
+
22
+ $success_bg_color: #3ba956;
23
+ $success_gradint_1: #71e18f;
24
+ $success_gradint_2: #49c66a;
25
+ $success_outset_1: #49c56a;
26
+ $success_outset_2: #3a9e54;
27
+
28
+ $danger_bg_color: #c73434;
29
+ $danger_gradint_1: #f98888;
30
+ $danger_gradint_2: #e64545;
31
+ $danger_outset_1: #e54444;
32
+ $danger_outset_2: #b83636;
33
+
34
+ $warning_bg_color: #ee8425;
35
+ $warning_gradint_1: #ffcb81;
36
+ $warning_gradint_2: #faa832;
37
+ $warning_outset_1: #faa832;
38
+ $warning_outset_2: #c98627;
39
 
40
  $border_radius_extra_small: 2px;
41
  $border_radius_small: 4px;
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/ui-button.php CHANGED
@@ -29,17 +29,17 @@ if ( ! class_exists( 'UI_Button' ) ) {
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-button-id',
33
- 'name' => 'cherry-ui-button-name',
34
- 'value' => 'button',
35
- 'disabled' => false,
36
- 'form' => '',
37
- 'formaction' => '',
38
- 'type' => 'button',
39
- 'style' => 'normal',
40
- 'content' => 'Button',
41
- 'class' => '',
42
- 'master' => '',
43
  );
44
 
45
  /**
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
+ 'id' => 'cherry-ui-button-id',
33
+ 'name' => 'cherry-ui-button-name',
34
+ 'value' => 'button',
35
+ 'disabled' => false,
36
+ 'form' => '',
37
+ 'formaction' => '',
38
+ 'button_type' => 'button',
39
+ 'style' => 'normal',
40
+ 'content' => 'Button',
41
+ 'class' => '',
42
+ 'master' => '',
43
  );
44
 
45
  /**
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/view/button-view.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_UI_Elements
6
  * @subpackage View
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11
  */
@@ -14,18 +14,24 @@
14
  if ( ! defined( 'WPINC' ) ) {
15
  die;
16
  }
17
- $class = trim( implode( ' ', array( 'ui-button', 'ui-button-' . $__data['style'] . '-style ', $__data['master'], $__data['class'] ) ) );
18
- $attrs = Cherry_Toolkit::join(
 
 
 
19
  array(
20
- 'type' => esc_attr( $__data['type'] ),
21
  'id' => esc_attr( $__data['id'] ),
22
  'name' => esc_attr( $__data['name'] ),
23
  'class' => esc_attr( $class ),
24
- 'disabled' => filter_var( $__data['disabled'], FILTER_VALIDATE_BOOLEAN ),
25
  'form' => esc_attr( $__data['form'] ),
26
  'formaction' => esc_attr( $__data['formaction'] ),
27
  )
28
  );
 
 
 
 
29
  ?>
30
 
31
  <button <?php echo $attrs; ?>><?php echo $__data['content']; ?></button>
5
  * @package Cherry_UI_Elements
6
  * @subpackage View
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11
  */
14
  if ( ! defined( 'WPINC' ) ) {
15
  die;
16
  }
17
+
18
+ $classes = array( 'cherry5-ui-button', 'cherry5-ui-button-' . $__data['style'] . '-style', $__data['master'], $__data['class'], 'ui-button' );
19
+ $classes = array_filter( $classes );
20
+ $class = trim( implode( ' ', $classes ) );
21
+ $attrs = Cherry_Toolkit::join(
22
  array(
23
+ 'type' => esc_attr( $__data['button_type'] ),
24
  'id' => esc_attr( $__data['id'] ),
25
  'name' => esc_attr( $__data['name'] ),
26
  'class' => esc_attr( $class ),
 
27
  'form' => esc_attr( $__data['form'] ),
28
  'formaction' => esc_attr( $__data['formaction'] ),
29
  )
30
  );
31
+
32
+ if ( filter_var( $__data['disabled'], FILTER_VALIDATE_BOOLEAN ) ) {
33
+ $attrs .= ' disabled';
34
+ }
35
  ?>
36
 
37
  <button <?php echo $attrs; ?>><?php echo $__data['content']; ?></button>
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/min/ui-checkbox.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}.cherry-checkbox-item{width:26px;height:26px;display:inline-block;border-radius:2px;margin-right:10px;margin-bottom:6px;cursor:pointer;position:relative;background-color:#f1f1f1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1)}.cherry-checkbox-item .marker{position:absolute;width:26px;height:26px;top:0px;left:0px;color:#fff;font-size:28px;-webkit-transition:inherit;transition:inherit;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.cherry-checkbox-item .marker:before{-webkit-transition:inherit;transition:inherit;position:relative;left:-2px}.cherry-checkbox-input[checked]+.cherry-checkbox-item{background-color:#48c569}.cherry-checkbox-input[checked]+.cherry-checkbox-item .marker{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.cherry-checkbox-label{display:inline-block;vertical-align:top;font-size:14px;line-height:26px;color:#23282d;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}.cherry-checkbox-item{width:26px;height:26px;display:inline-block;border-radius:2px;margin-right:10px;margin-bottom:6px;cursor:pointer;position:relative;background-color:#f1f1f1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1)}.cherry-checkbox-item .marker{position:absolute;width:26px;height:26px;top:0px;left:0px;color:#fff;font-size:28px;-webkit-transition:inherit;transition:inherit;-webkit-transform:scale(0);transform:scale(0)}.cherry-checkbox-item .marker:before{-webkit-transition:inherit;transition:inherit;position:relative;left:-2px}.cherry-checkbox-input[checked]+.cherry-checkbox-item{background-color:#48c569}.cherry-checkbox-input[checked]+.cherry-checkbox-item .marker{-webkit-transform:scale(1);transform:scale(1)}.cherry-checkbox-label{display:inline-block;vertical-align:top;font-size:14px;line-height:26px;color:#23282d;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry-checkbox-label:focus{outline:1px solid rgba(41,143,252,0.6);box-shadow:0px 0px 2px rgba(41,143,252,0.6)}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-checkbox.scss CHANGED
@@ -55,4 +55,8 @@ label.cherry-label{
55
  line-height: 26px;
56
  color: $dark_color_1;
57
  user-select: none;
 
 
 
 
58
  }
55
  line-height: 26px;
56
  color: $dark_color_1;
57
  user-select: none;
58
+ &:focus{
59
+ outline: 1px solid rgba(41, 143, 252, .6);
60
+ box-shadow: 0px 0px 2px rgba(41,143,252,0.6);
61
+ }
62
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/ui-kit/_mixins.scss CHANGED
@@ -17,7 +17,8 @@
17
  &:focus,
18
  &:active {
19
  outline: none;
20
- box-shadow: none;
 
21
  color: #fff;
22
  }
23
  }
@@ -64,12 +65,12 @@
64
  background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
  padding: 10px 20px;
67
- height: 50px;
68
  border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
  }
74
  }
75
 
@@ -125,7 +126,8 @@
125
  &:focus,
126
  &:active {
127
  outline: none;
128
- box-shadow: none;
 
129
  color: $blue_color;
130
  }
131
  }
@@ -179,4 +181,4 @@
179
  font-size: 16px;
180
  line-height: 18px;
181
  background: #fff;
182
- }
17
  &:focus,
18
  &:active {
19
  outline: none;
20
+ border-color: rgba(41, 143, 252, .6);
21
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
22
  color: #fff;
23
  }
24
  }
65
  background-color: $grey_color_3;
66
  border-radius: $border_radius_extra_small;
67
  padding: 10px 20px;
68
+ min-height: 50px;
69
  border: 1px solid $grey_color_3;
70
  box-shadow: none;
71
  &:focus{
72
+ border-color: rgba(41, 143, 252, .6);
73
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
74
  }
75
  }
76
 
126
  &:focus,
127
  &:active {
128
  outline: none;
129
+ border-color: rgba(41, 143, 252, .6);
130
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
131
  color: $blue_color;
132
  }
133
  }
181
  font-size: 16px;
182
  line-height: 18px;
183
  background: #fff;
184
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/min/ui-colorpicker.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.wp-picker-container{display:block;background-color:#f1f1f1;border-radius:2px;display:inline-block;padding:8px;max-width:380px}.wp-picker-container a.wp-color-result{border:medium none;box-shadow:none;height:35px;margin:0;border-radius:0;padding-left:36px}.wp-picker-container a.wp-color-result:after{background-color:#f1f1f1;border:medium none;border-radius:0;line-height:36px;font-size:14px;color:#23282d;padding:0 80px 0 20px}@media screen and (max-width: 782px){.wp-picker-container a.wp-color-result{height:36px}.wp-picker-container a.wp-color-result:after{line-height:36px}}.wp-picker-container .wp-picker-holder{position:absolute;z-index:1000}.wp-picker-container .wp-picker-input-wrap input[type="text"]{padding:7px 4px}.wp-picker-container .wp-picker-input-wrap input.wp-picker-clear{height:32px}
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-colorpicker-wrapper{background-color:#f1f1f1;padding:5px;max-width:230px;height:46px;box-sizing:border-box}.cherry-ui-colorpicker-wrapper .wp-picker-container,.customize-control-content .wp-picker-container{display:block;position:relative;z-index:1000}.cherry-ui-colorpicker-wrapper .wp-picker-container:active,.customize-control-content .wp-picker-container:active{display:block}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result,.customize-control-content .wp-picker-container>.wp-color-result{margin:0;border-radius:2px;display:block;border:none;box-shadow:none;height:auto;padding-left:35px}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result:after,.customize-control-content .wp-picker-container>.wp-color-result:after{padding:7px 0px;font-size:14px;border-left:none}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result:focus,.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-color-result:active,.customize-control-content .wp-picker-container>.wp-color-result:focus,.customize-control-content .wp-picker-container>.wp-color-result:active{outline:none;border:1px solid rgba(41,143,252,0.6);box-shadow:0px 0px 2px rgba(41,143,252,0.6)}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap,.customize-control-content .wp-picker-container>.wp-picker-input-wrap{display:none;display:-webkit-box;display:-ms-flexbox;display:flex;width:calc(100% - 40px);max-width:calc(100% - 40px);float:right}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap:after,.customize-control-content .wp-picker-container>.wp-picker-input-wrap:after{content:'.';clear:both;visibility:hidden;height:0}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap input[type="text"],.customize-control-content .wp-picker-container>.wp-picker-input-wrap input[type="text"]{padding:8px 10px 9px;font-size:14px;max-width:100%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.cherry-ui-colorpicker-wrapper .wp-picker-container>.wp-picker-input-wrap input[type="button"],.customize-control-content .wp-picker-container>.wp-picker-input-wrap input[type="button"]{height:auto;border:none;border-radius:2px;box-shadow:none;padding:6px 10px 7px;font-size:14px;margin-left:5px;-ms-flex-negative:0;flex-shrink:0}.cherry-ui-colorpicker-wrapper .wp-picker-container.wp-picker-active>.wp-color-result,.customize-control-content .wp-picker-container.wp-picker-active>.wp-color-result{height:35px;width:0;display:inline-block;margin-right:5px}.cherry-ui-colorpicker-wrapper .wp-picker-container.wp-picker-active>.wp-color-result:after,.customize-control-content .wp-picker-container.wp-picker-active>.wp-color-result:after{display:none}.cherry-ui-colorpicker-wrapper .wp-picker-container.wp-picker-active>.wp-picker-input-wrap,.customize-control-content .wp-picker-container.wp-picker-active>.wp-picker-input-wrap{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-colorpicker.scss CHANGED
@@ -1,6 +1,8 @@
1
  @import "ui-kit/variables";
2
  @import "ui-kit/mixins";
3
 
 
 
4
  .cherry-ui-container{
5
  margin: 10px 0 20px 0;
6
  }
@@ -8,46 +10,83 @@ label.cherry-label{
8
  margin: 0 0 5px 0;
9
  display: block;
10
  }
11
- .wp-picker-container{
12
- display: block;
13
  background-color: $grey_color_3;
14
- border-radius: $border_radius_extra_small;
15
- display: inline-block;
16
- padding: 8px;
17
- max-width: 380px;
18
- a.wp-color-result{
19
- border: medium none;
20
- box-shadow: none;
21
- height: 35px;
22
- margin: 0;
23
- border-radius: 0;
24
- padding-left: 36px;
25
- &:after{
26
- background-color: $grey_color_3;
27
- border: medium none;
28
- border-radius: 0;
29
- line-height: 36px;
30
- font-size: 14px;
31
- color: $dark_color_1;
32
- padding: 0 80px 0 20px;
33
  }
34
- @media screen and (max-width: 782px){
35
- height: 36px;
 
 
 
 
 
 
36
  &:after{
37
- line-height: 36px;
 
 
 
 
 
 
 
38
  }
39
  }
40
- }
41
- .wp-picker-holder{
42
- position: absolute;
43
- z-index: 1000;
44
- }
45
- .wp-picker-input-wrap{
46
- input[type="text"]{
47
- padding: 7px 4px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  }
49
- input.wp-picker-clear{
50
- height: 32px;
 
 
 
 
 
 
 
 
 
 
 
51
  }
52
  }
53
  }
1
  @import "ui-kit/variables";
2
  @import "ui-kit/mixins";
3
 
4
+ $font_size: 14px;
5
+
6
  .cherry-ui-container{
7
  margin: 10px 0 20px 0;
8
  }
10
  margin: 0 0 5px 0;
11
  display: block;
12
  }
13
+ .cherry-ui-colorpicker-wrapper{
 
14
  background-color: $grey_color_3;
15
+ padding: 5px;
16
+ max-width: 230px;
17
+ height: 46px;
18
+ box-sizing: border-box;
19
+ }
20
+ .cherry-ui-colorpicker-wrapper, .customize-control-content{
21
+ & .wp-picker-container{
22
+ display: block;
23
+
24
+ position: relative;
25
+ z-index: 1000;
26
+ &:active{
27
+ display: block;
 
 
 
 
 
 
28
  }
29
+ > .wp-color-result{
30
+ margin: 0;
31
+ border-radius: $border_radius_extra_small;
32
+ display: block;
33
+ border: none;
34
+ box-shadow: none;
35
+ height: auto;
36
+ padding-left: 35px;
37
  &:after{
38
+ padding:7px 0px;
39
+ font-size: $font_size;
40
+ border-left: none;
41
+ };
42
+ &:focus, &:active{
43
+ outline: none;
44
+ border: 1px solid rgba(41, 143, 252, .6);
45
+ box-shadow: 0px 0px 2px rgba(41,143,252,0.6);
46
  }
47
  }
48
+ > .wp-picker-input-wrap{
49
+ display: none;
50
+ display: flex;
51
+ width: calc(100% - 40px);
52
+ max-width: calc(100% - 40px);
53
+ float: right;
54
+ &:after{
55
+ content: '.';
56
+ clear: both;
57
+ visibility: hidden;
58
+ height: 0;
59
+ };
60
+ input[type="text"]{
61
+ padding: 8px 10px 9px;
62
+ font-size: $font_size;
63
+ max-width: 100%;
64
+ flex-grow: 1;
65
+ }
66
+ input[type="button"]{
67
+ height: auto;
68
+ border: none;
69
+ border-radius: $border_radius_extra_small;
70
+ box-shadow: none;
71
+ padding: 6px 10px 7px;
72
+ font-size: $font_size;
73
+ margin-left: 5px;
74
+ flex-shrink: 0;
75
+ }
76
  }
77
+ &.wp-picker-active{
78
+ > .wp-color-result{
79
+ height: 35px;
80
+ width: 0;
81
+ display: inline-block;
82
+ margin-right: 5px;
83
+ &:after{
84
+ display: none;
85
+ }
86
+ }
87
+ > .wp-picker-input-wrap{
88
+ display: inline-flex;
89
+ }
90
  }
91
  }
92
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/assets/ui-kit/_mixins.scss CHANGED
@@ -17,7 +17,8 @@
17
  &:focus,
18
  &:active {
19
  outline: none;
20
- box-shadow: none;
 
21
  color: #fff;
22
  }
23
  }
@@ -64,12 +65,12 @@
64
  background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
  padding: 10px 20px;
67
- height: 50px;
68
  border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
  }
74
  }
75
 
@@ -125,7 +126,8 @@
125
  &:focus,
126
  &:active {
127
  outline: none;
128
- box-shadow: none;
 
129
  color: $blue_color;
130
  }
131
  }
@@ -179,4 +181,4 @@
179
  font-size: 16px;
180
  line-height: 18px;
181
  background: #fff;
182
- }
17
  &:focus,
18
  &:active {
19
  outline: none;
20
+ border-color: rgba(41, 143, 252, .6);
21
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
22
  color: #fff;
23
  }
24
  }
65
  background-color: $grey_color_3;
66
  border-radius: $border_radius_extra_small;
67
  padding: 10px 20px;
68
+ min-height: 50px;
69
  border: 1px solid $grey_color_3;
70
  box-shadow: none;
71
  &:focus{
72
+ border-color: rgba(41, 143, 252, .6);
73
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
74
  }
75
  }
76
 
126
  &:focus,
127
  &:active {
128
  outline: none;
129
+ border-color: rgba(41, 143, 252, .6);
130
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
131
  color: $blue_color;
132
  }
133
  }
181
  font-size: 16px;
182
  line-height: 18px;
183
  background: #fff;
184
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-iconpicker-group{max-width:230px;position:relative}.cherry-ui-iconpicker-group .input-group-addon{position:absolute;width:36px;height:36px;left:0px;top:0px;background:#f1f1f1;font-size:14px;line-height:36px;text-align:center;border-radius:3px 0 0 3px;border-right:1px solid #dddcdc;margin:7px}.cherry-ui-iconpicker-group .input-group-addon .fa{line-height:36px}.cherry-ui-iconpicker-group .cherry-ui-text{font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;height:50px;border:1px solid #f1f1f1;box-shadow:none;padding-left:60px}.cherry-ui-iconpicker-group .cherry-ui-text:focus{border-color:rgba(72,197,105,0.6);box-shadow:0 0 2px rgba(72,197,105,0.6)}.iconpicker-popover.popover{position:absolute;top:0;left:0;display:none;max-width:none;padding:1px;text-align:left;width:242px;background:#f0f0f0;z-index:999}.iconpicker-popover.popover.top,.iconpicker-popover.popover.topLeftCorner,.iconpicker-popover.popover.topLeft,.iconpicker-popover.popover.topRight,.iconpicker-popover.popover.topRightCorner{margin-top:-10px}.iconpicker-popover.popover.right,.iconpicker-popover.popover.rightTop,.iconpicker-popover.popover.rightBottom{margin-left:10px}.iconpicker-popover.popover.bottom,.iconpicker-popover.popover.bottomRightCorner,.iconpicker-popover.popover.bottomRight,.iconpicker-popover.popover.bottomLeft,.iconpicker-popover.popover.bottomLeftCorner{margin-top:10px}.iconpicker-popover.popover.left,.iconpicker-popover.popover.leftBottom,.iconpicker-popover.popover.leftTop{margin-left:-10px}.iconpicker-popover.popover.inline{margin:0 0 14px 0;position:relative;display:inline-block;opacity:1;top:auto;left:auto;bottom:auto;right:auto;max-width:100%;box-shadow:none;z-index:auto;vertical-align:top}.iconpicker-popover.popover.inline>.arrow{display:none}.dropdown-menu .iconpicker-popover.inline{margin:0;border:none}.dropdown-menu.iconpicker-container{padding:0}.iconpicker-popover.popover .popover-title{padding:14px;font-size:14px;line-height:16px;border-bottom:1px solid #ebebeb;background-color:#f0f0f0}.iconpicker-popover.popover .popover-title input[type=search].iconpicker-search{margin:0 0 2px 0}.iconpicker-popover.popover .popover-title-text ~ input[type=search].iconpicker-search{margin-top:14px}.iconpicker-popover.popover .popover-content{padding:0px;text-align:center}.iconpicker-popover .popover-footer{float:none;clear:both;padding:14px;text-align:right;margin:0;border-top:1px solid #ebebeb;background-color:#f0f0f0}.iconpicker-popover .popover-footer:before,.iconpicker-popover .popover-footer:after{content:" ";display:table}.iconpicker-popover .popover-footer:after{clear:both}.iconpicker-popover .popover-footer .iconpicker-btn{margin-left:10px}.iconpicker-popover .popover-footer input[type=search].iconpicker-search{margin-bottom:14px}.iconpicker-popover.popover>.arrow,.iconpicker-popover.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.iconpicker-popover.popover>.arrow{border-width:11px}.iconpicker-popover.popover>.arrow:after{border-width:10px;content:""}.iconpicker-popover.popover.top>.arrow,.iconpicker-popover.popover.topLeft>.arrow,.iconpicker-popover.popover.topRight>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#f0f0f0;bottom:-11px}.iconpicker-popover.popover.top>.arrow:after,.iconpicker-popover.popover.topLeft>.arrow:after,.iconpicker-popover.popover.topRight>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}.iconpicker-popover.popover.topLeft>.arrow{left:14px;margin-left:0}.iconpicker-popover.popover.topRight>.arrow{left:auto;right:14px;margin-left:0}.iconpicker-popover.popover.right>.arrow,.iconpicker-popover.popover.rightTop>.arrow,.iconpicker-popover.popover.rightBottom>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#f0f0f0}.iconpicker-popover.popover.right>.arrow:after,.iconpicker-popover.popover.rightTop>.arrow:after,.iconpicker-popover.popover.rightBottom>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}.iconpicker-popover.popover.rightTop>.arrow{top:auto;bottom:14px;margin-top:0}.iconpicker-popover.popover.rightBottom>.arrow{top:14px;margin-top:0}.iconpicker-popover.popover.bottom>.arrow,.iconpicker-popover.popover.bottomRight>.arrow,.iconpicker-popover.popover.bottomLeft>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#f0f0f0;top:-11px}.iconpicker-popover.popover.bottom>.arrow:after,.iconpicker-popover.popover.bottomRight>.arrow:after,.iconpicker-popover.popover.bottomLeft>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#f0f0f0}.iconpicker-popover.popover.bottomLeft>.arrow{left:14px;margin-left:0}.iconpicker-popover.popover.bottomRight>.arrow{left:auto;right:14px;margin-left:0}.iconpicker-popover.popover.left>.arrow,.iconpicker-popover.popover.leftBottom>.arrow,.iconpicker-popover.popover.leftTop>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#f0f0f0}.iconpicker-popover.popover.left>.arrow:after,.iconpicker-popover.popover.leftBottom>.arrow:after,.iconpicker-popover.popover.leftTop>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}.iconpicker-popover.popover.leftBottom>.arrow{top:14px;margin-top:0}.iconpicker-popover.popover.leftTop>.arrow{top:auto;bottom:14px;margin-top:0}.iconpicker{position:relative;text-align:left;text-shadow:none;line-height:0;display:block;margin:0;overflow:hidden}.iconpicker *{box-sizing:content-box;position:relative}.iconpicker:before,.iconpicker:after{content:" ";display:table}.iconpicker:after{clear:both}.iconpicker .iconpicker-items{position:relative;clear:both;float:none;padding:10px 0 0 10px;background:#fff;margin:0;overflow:hidden;overflow-y:auto;min-height:55px;max-height:275px}.iconpicker .iconpicker-items:before,.iconpicker .iconpicker-items:after{content:" ";display:table}.iconpicker .iconpicker-items:after{clear:both}.iconpicker .iconpicker-item{float:left;width:28px;height:28px;line-height:28px;margin:0 7px 7px 0;text-align:center;cursor:pointer;border-radius:3px;font-size:18px;color:#444;box-shadow:0 0 0 1px #dddddd}.iconpicker .iconpicker-item .fa{line-height:28px}.iconpicker .iconpicker-item:hover:not(.iconpicker-selected){background-color:#eeeeee}.iconpicker .iconpicker-item.iconpicker-selected{box-shadow:none;background:#ddd}.iconpicker-component{cursor:pointer}
1
+ .cherry-ui-iconpicker-group{position:relative}.full .cherry-ui-iconpicker-group{max-width:100%}.fixed .cherry-ui-iconpicker-group{max-width:230px}.cherry-ui-iconpicker-group .input-group-addon{position:absolute;width:36px;height:36px;left:0px;top:0px;background:#f1f1f1;font-size:14px;line-height:36px;text-align:center;border-radius:3px 0 0 3px;border-right:1px solid #dddcdc;margin:7px}.cherry-ui-iconpicker-group .input-group-addon .fa{line-height:36px}.cherry-ui-iconpicker-group .cherry-ui-text{font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;min-height:50px;border:1px solid #f1f1f1;box-shadow:none;padding-left:60px}.cherry-ui-iconpicker-group .cherry-ui-text:focus{border-color:rgba(41,143,252,0.6);box-shadow:0 0 2px rgba(41,143,252,0.6)}.iconpicker-popover.popover{position:absolute;top:0;left:0;display:none;max-width:none;padding:1px;text-align:left;width:242px;background:#f0f0f0;z-index:999}.iconpicker-popover.popover.top,.iconpicker-popover.popover.topLeftCorner,.iconpicker-popover.popover.topLeft,.iconpicker-popover.popover.topRight,.iconpicker-popover.popover.topRightCorner{margin-top:-10px}.iconpicker-popover.popover.right,.iconpicker-popover.popover.rightTop,.iconpicker-popover.popover.rightBottom{margin-left:10px}.iconpicker-popover.popover.bottom,.iconpicker-popover.popover.bottomRightCorner,.iconpicker-popover.popover.bottomRight,.iconpicker-popover.popover.bottomLeft,.iconpicker-popover.popover.bottomLeftCorner{margin-top:10px}.iconpicker-popover.popover.left,.iconpicker-popover.popover.leftBottom,.iconpicker-popover.popover.leftTop{margin-left:-10px}.iconpicker-popover.popover.inline{margin:0 0 14px 0;position:relative;display:inline-block;opacity:1;top:auto;left:auto;bottom:auto;right:auto;max-width:100%;box-shadow:none;z-index:auto;vertical-align:top}.iconpicker-popover.popover.inline>.arrow{display:none}.dropdown-menu .iconpicker-popover.inline{margin:0;border:none}.dropdown-menu.iconpicker-container{padding:0}.iconpicker-popover.popover .popover-title{padding:14px;font-size:14px;line-height:16px;border-bottom:1px solid #ebebeb;background-color:#f0f0f0}.iconpicker-popover.popover .popover-title input[type=search].iconpicker-search{margin:0 0 2px 0}.iconpicker-popover.popover .popover-title-text ~ input[type=search].iconpicker-search{margin-top:14px}.iconpicker-popover.popover .popover-content{padding:0px;text-align:center}.iconpicker-popover .popover-footer{float:none;clear:both;padding:14px;text-align:right;margin:0;border-top:1px solid #ebebeb;background-color:#f0f0f0}.iconpicker-popover .popover-footer:before,.iconpicker-popover .popover-footer:after{content:" ";display:table}.iconpicker-popover .popover-footer:after{clear:both}.iconpicker-popover .popover-footer .iconpicker-btn{margin-left:10px}.iconpicker-popover .popover-footer input[type=search].iconpicker-search{margin-bottom:14px}.iconpicker-popover.popover>.arrow,.iconpicker-popover.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.iconpicker-popover.popover>.arrow{border-width:11px}.iconpicker-popover.popover>.arrow:after{border-width:10px;content:""}.iconpicker-popover.popover.top>.arrow,.iconpicker-popover.popover.topLeft>.arrow,.iconpicker-popover.popover.topRight>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#f0f0f0;bottom:-11px}.iconpicker-popover.popover.top>.arrow:after,.iconpicker-popover.popover.topLeft>.arrow:after,.iconpicker-popover.popover.topRight>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}.iconpicker-popover.popover.topLeft>.arrow{left:14px;margin-left:0}.iconpicker-popover.popover.topRight>.arrow{left:auto;right:14px;margin-left:0}.iconpicker-popover.popover.right>.arrow,.iconpicker-popover.popover.rightTop>.arrow,.iconpicker-popover.popover.rightBottom>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#f0f0f0}.iconpicker-popover.popover.right>.arrow:after,.iconpicker-popover.popover.rightTop>.arrow:after,.iconpicker-popover.popover.rightBottom>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}.iconpicker-popover.popover.rightTop>.arrow{top:auto;bottom:14px;margin-top:0}.iconpicker-popover.popover.rightBottom>.arrow{top:14px;margin-top:0}.iconpicker-popover.popover.bottom>.arrow,.iconpicker-popover.popover.bottomRight>.arrow,.iconpicker-popover.popover.bottomLeft>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#f0f0f0;top:-11px}.iconpicker-popover.popover.bottom>.arrow:after,.iconpicker-popover.popover.bottomRight>.arrow:after,.iconpicker-popover.popover.bottomLeft>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#f0f0f0}.iconpicker-popover.popover.bottomLeft>.arrow{left:14px;margin-left:0}.iconpicker-popover.popover.bottomRight>.arrow{left:auto;right:14px;margin-left:0}.iconpicker-popover.popover.left>.arrow,.iconpicker-popover.popover.leftBottom>.arrow,.iconpicker-popover.popover.leftTop>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#f0f0f0}.iconpicker-popover.popover.left>.arrow:after,.iconpicker-popover.popover.leftBottom>.arrow:after,.iconpicker-popover.popover.leftTop>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}.iconpicker-popover.popover.leftBottom>.arrow{top:14px;margin-top:0}.iconpicker-popover.popover.leftTop>.arrow{top:auto;bottom:14px;margin-top:0}.iconpicker{position:relative;text-align:left;text-shadow:none;line-height:0;display:block;margin:0;overflow:hidden}.iconpicker *{box-sizing:content-box;position:relative}.iconpicker:before,.iconpicker:after{content:" ";display:table}.iconpicker:after{clear:both}.iconpicker .iconpicker-items{position:relative;clear:both;float:none;padding:10px 0 0 10px;background:#fff;margin:0;overflow:hidden;overflow-y:auto;min-height:55px;max-height:275px}.iconpicker .iconpicker-items:before,.iconpicker .iconpicker-items:after{content:" ";display:table}.iconpicker .iconpicker-items:after{clear:both}.iconpicker .iconpicker-item{float:left;width:28px;height:28px;line-height:28px;margin:0 7px 7px 0;text-align:center;cursor:pointer;border-radius:3px;font-size:18px;color:#444;box-shadow:0 0 0 1px #dddddd}.iconpicker .iconpicker-item .fa{line-height:28px}.iconpicker .iconpicker-item:hover:not(.iconpicker-selected){background-color:#eeeeee}.iconpicker .iconpicker-item.iconpicker-selected{box-shadow:none;background:#ddd}.iconpicker-component{cursor:pointer}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t,n){"use strict";t.utilites.namespace("ui_elements.iconpicker"),t.ui_elements.iconpicker={iconSets:{},iconSetsKey:"cherry5-icon-sets",init:function(){e(document).on("cherry-ajax-handler-success",this.setIconsSets.bind(this)).on("ready.iconpicker",this.setIconsSets.bind(this,window.сherry5IconSets)).on("ready.iconpicker",this.render.bind(this)).on("cherry-ui-elements-init",this.render.bind(this))},setIconsSets:function(e){var t,i=this;e&&(t=e.response?e.response.cherry5IconSets:e,n.each(t,function(e,t){i.iconSets[t]=e}),i.setState(i.iconSetsKey,i.iconSets))},getIconsSets:function(){var e=this.getState(this.iconSetsKey);e&&(this.iconSets=e)},render:function(t){var n,i,s,c=t._target?t._target:e("body"),o=e('.cherry-ui-iconpicker:not([name*="__i__"])',c),r=this;o[0]&&(this.getIconsSets(),o.each(function(){n=e(this),i=n.data("set"),s=r.iconSets[i],n.length&&s.icons&&n.iconpicker({icons:s.icons,iconBaseClass:s.iconBase,iconClassPrefix:s.iconPrefix,animation:!1,fullClassFormatter:function(e){return s.iconBase+" "+s.iconPrefix+e}}).on("iconpickerUpdated",function(){e(this).trigger("change")}),s&&e("head").append('<link rel="stylesheet" type="text/css" href="'+s.iconCSS+'"">')}))},getState:function(e){try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return!1}},setState:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return!1}}},t.ui_elements.iconpicker.init()}(jQuery,window.CherryJsCore,window._);
1
+ !function(e,t,n){"use strict";t.utilites.namespace("ui_elements.iconpicker"),t.ui_elements.iconpicker={iconSets:{},iconSetsKey:"cherry5-icon-sets",init:function(){e(document).on("cherry-ajax-handler-success",this.setIconsSets.bind(this)).on("ready.iconpicker",this.setIconsSets.bind(this,window.cherry5IconSets)).on("ready.iconpicker",this.render.bind(this)).on("cherry-ui-elements-init",this.render.bind(this))},setIconsSets:function(e){var t,i=this;e&&(t=e.response?e.response.cherry5IconSets:e,n.each(t,function(e,t){i.iconSets[t]=e}),i.setState(i.iconSetsKey,i.iconSets))},getIconsSets:function(){var e=this.getState(this.iconSetsKey);e&&(this.iconSets=e)},render:function(t){var n,i,s,c=t._target?t._target:e("body"),o=e('.cherry-ui-iconpicker:not([name*="__i__"])',c),r=this;o[0]&&(this.getIconsSets(),o.each(function(){n=e(this),i=n.data("set"),s=r.iconSets[i],n.length&&s.icons&&n.iconpicker({icons:s.icons,iconBaseClass:s.iconBase,iconClassPrefix:s.iconPrefix,animation:!1,fullClassFormatter:function(e){return s.iconBase+" "+s.iconPrefix+e}}).on("iconpickerUpdated",function(){e(this).trigger("change")}),s&&e("head").append('<link rel="stylesheet" type="text/css" href="'+s.iconCSS+'"">')}))},getState:function(e){try{return JSON.parse(window.sessionStorage.getItem(e))}catch(e){return!1}},setState:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){return!1}}},t.ui_elements.iconpicker.init()}(jQuery,window.CherryJsCore,window._);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.js CHANGED
@@ -12,7 +12,7 @@
12
  init: function() {
13
  $( document )
14
  .on( 'cherry-ajax-handler-success', this.setIconsSets.bind( this ) )
15
- .on( 'ready.iconpicker', this.setIconsSets.bind( this, window.сherry5IconSets ) )
16
  .on( 'ready.iconpicker', this.render.bind( this ) )
17
  .on( 'cherry-ui-elements-init', this.render.bind( this ) );
18
  },
12
  init: function() {
13
  $( document )
14
  .on( 'cherry-ajax-handler-success', this.setIconsSets.bind( this ) )
15
+ .on( 'ready.iconpicker', this.setIconsSets.bind( this, window.cherry5IconSets ) )
16
  .on( 'ready.iconpicker', this.render.bind( this ) )
17
  .on( 'cherry-ui-elements-init', this.render.bind( this ) );
18
  },
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.scss CHANGED
@@ -2,8 +2,13 @@
2
  @import "ui-kit/mixins";
3
 
4
  .cherry-ui-iconpicker-group {
5
- max-width: 230px;
6
  position: relative;
 
 
 
 
 
 
7
  .input-group-addon {
8
  position: absolute;
9
  width: 36px;
2
  @import "ui-kit/mixins";
3
 
4
  .cherry-ui-iconpicker-group {
 
5
  position: relative;
6
+ .full &{
7
+ max-width: 100%;
8
+ }
9
+ .fixed &{
10
+ max-width: 230px;
11
+ }
12
  .input-group-addon {
13
  position: absolute;
14
  width: 36px;
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-kit/_mixins.scss CHANGED
@@ -17,7 +17,8 @@
17
  &:focus,
18
  &:active {
19
  outline: none;
20
- box-shadow: none;
 
21
  color: #fff;
22
  }
23
  }
@@ -64,12 +65,12 @@
64
  background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
  padding: 10px 20px;
67
- height: 50px;
68
  border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
  }
74
  }
75
 
@@ -125,7 +126,8 @@
125
  &:focus,
126
  &:active {
127
  outline: none;
128
- box-shadow: none;
 
129
  color: $blue_color;
130
  }
131
  }
@@ -179,4 +181,4 @@
179
  font-size: 16px;
180
  line-height: 18px;
181
  background: #fff;
182
- }
17
  &:focus,
18
  &:active {
19
  outline: none;
20
+ border-color: rgba(41, 143, 252, .6);
21
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
22
  color: #fff;
23
  }
24
  }
65
  background-color: $grey_color_3;
66
  border-radius: $border_radius_extra_small;
67
  padding: 10px 20px;
68
+ min-height: 50px;
69
  border: 1px solid $grey_color_3;
70
  box-shadow: none;
71
  &:focus{
72
+ border-color: rgba(41, 143, 252, .6);
73
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
74
  }
75
  }
76
 
126
  &:focus,
127
  &:active {
128
  outline: none;
129
+ border-color: rgba(41, 143, 252, .6);
130
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
131
  color: $blue_color;
132
  }
133
  }
181
  font-size: 16px;
182
  line-height: 18px;
183
  background: #fff;
184
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php CHANGED
@@ -39,6 +39,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
39
  'label' => '',
40
  'class' => '',
41
  'master' => '',
 
42
  'required' => false,
43
  );
44
 
@@ -110,7 +111,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
110
  */
111
  public function render() {
112
  $html = '';
113
- $class = $this->settings['class'];
114
  $class .= ' ' . $this->settings['master'];
115
 
116
  $html .= '<div class="cherry-ui-container ' . esc_attr( $class ) . '">';
@@ -123,8 +124,6 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
123
  $this->default_icon_data
124
  );
125
 
126
- $this->maybe_parse_set_from_css();
127
-
128
  $html .= '<div class="cherry-ui-iconpicker-group">';
129
 
130
  if ( $this->validate_icon_data( $this->settings['icon_data'] ) ) {
@@ -168,6 +167,10 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
168
  */
169
  public function prepare_icon_set() {
170
 
 
 
 
 
171
  if ( ! array_key_exists( $this->settings['icon_data']['icon_set'], self::$sets ) ) {
172
  self::$sets[ $this->settings['icon_data']['icon_set'] ] = array(
173
  'iconCSS' => $this->settings['icon_data']['icon_css'],
@@ -198,7 +201,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
198
 
199
  $result = ob_get_clean();
200
 
201
- preg_match_all( '/\.([-a-zA-Z0-9]+):before[, {]/', $result, $matches );
202
 
203
  if ( ! is_array( $matches ) || empty( $matches[1] ) ) {
204
  return;
@@ -277,7 +280,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
277
  self::$printed_sets[] = $set;
278
  $json = json_encode( $data );
279
 
280
- printf( '<script> if ( ! window.сherry5IconSets ) { window.сherry5IconSets = {} } window.сherry5IconSets.%1$s = %2$s</script>', $set, $json );
281
  }
282
 
283
  }
39
  'label' => '',
40
  'class' => '',
41
  'master' => '',
42
+ 'width' => 'fixed', // full, fixed
43
  'required' => false,
44
  );
45
 
111
  */
112
  public function render() {
113
  $html = '';
114
+ $class = $this->settings['class'] . $this->settings['width'] ;
115
  $class .= ' ' . $this->settings['master'];
116
 
117
  $html .= '<div class="cherry-ui-container ' . esc_attr( $class ) . '">';
124
  $this->default_icon_data
125
  );
126
 
 
 
127
  $html .= '<div class="cherry-ui-iconpicker-group">';
128
 
129
  if ( $this->validate_icon_data( $this->settings['icon_data'] ) ) {
167
  */
168
  public function prepare_icon_set() {
169
 
170
+ if ( empty( $this->settings['icon_data']['icons'] ) ) {
171
+ $this->maybe_parse_set_from_css();
172
+ }
173
+
174
  if ( ! array_key_exists( $this->settings['icon_data']['icon_set'], self::$sets ) ) {
175
  self::$sets[ $this->settings['icon_data']['icon_set'] ] = array(
176
  'iconCSS' => $this->settings['icon_data']['icon_css'],
201
 
202
  $result = ob_get_clean();
203
 
204
+ preg_match_all( '/\.([-_a-zA-Z0-9]+):before[, {]/', $result, $matches );
205
 
206
  if ( ! is_array( $matches ) || empty( $matches[1] ) ) {
207
  return;
280
  self::$printed_sets[] = $set;
281
  $json = json_encode( $data );
282
 
283
+ printf( '<script> if ( ! window.cherry5IconSets ) { window.cherry5IconSets = {} } window.cherry5IconSets.%1$s = %2$s</script>', $set, $json );
284
  }
285
 
286
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/min/ui-media.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-media-wrap .cherry-upload-preview{display:block;margin:0 0 5px 0}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap{position:relative;display:inline-block;vertical-align:top;width:120px;height:120px}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner{width:110px;height:110px;margin:3px;position:relative;border:2px solid #298ffc;border-radius:2px;overflow:hidden}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder{width:100%;height:100%;position:relative;background:#f1f1f1;box-sizing:border-box}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder .centered{position:absolute;width:100%;height:100%;top:0;left:0;-webkit-transform:translate(50%, 50%);-ms-transform:translate(50%, 50%);transform:translate(50%, 50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder img{max-width:100%;height:auto;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder span{width:auto;height:auto;font-size:60px;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .title{position:absolute;width:100%;padding:5px 0;bottom:0;left:0;color:#fff;background:rgba(41,143,252,0.8);text-align:center;font-size:11px;overflow:hidden}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap:hover .cherry-remove-image{display:block}.cherry-ui-media-wrap .cherry-upload-preview .cherry-media-thumb-sortable-placeholder{width:112px;height:112px;margin:3px;vertical-align:top;border:1px dashed #96989a;display:inline-block;background-color:#f1f1f1}.cherry-ui-media-wrap .upload-button{float:left}.cherry-ui-media-wrap .cherry-remove-image{width:30px;height:30px;color:#e54343;display:block;position:absolute;top:0;right:0;cursor:pointer;text-decoration:none;outline:0;display:none}.cherry-ui-media-wrap .cherry-remove-image i{width:30px;height:30px;font-size:30px}.cherry-ui-media-wrap .cherry-remove-image:hover{color:#c73434}.cherry-ui-media-wrap .cherry-bgsetting{float:left;width:32%;margin-right:1%}.cherry-ui-media-wrap .cherry-bgsetting:nth-child(3n+1){width:34%;margin-right:0}.cherry-ui-media-wrap .cherry-bgsetting select{margin-bottom:10px}.button-default_{display:inline-block;text-decoration:none;font-size:12px;line-height:20px;font-weight:bold;padding:15px 20px;color:#fff;text-transform:uppercase;border-radius:4px;-webkit-transition:all 200ms linear;transition:all 200ms linear;box-shadow:0 5px 13px rgba(0,0,0,0.18);border:none;cursor:pointer;background:#495159}.button-default_:hover{color:#fff;box-shadow:none}.button-default_:focus,.button-default_:active{outline:none;box-shadow:none;color:#fff}.button-default_:hover{background:#393f45}
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-media-wrap .cherry-upload-preview{display:block;margin:0 0 5px 0}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap{position:relative;display:inline-block;vertical-align:top;width:120px;height:120px}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner{width:110px;height:110px;margin:3px;position:relative;border:2px solid #298ffc;border-radius:2px;overflow:hidden}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder{width:100%;height:100%;position:relative;background:#f1f1f1;box-sizing:border-box}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder .centered{position:absolute;width:100%;height:100%;top:0;left:0;-webkit-transform:translate(50%, 50%);transform:translate(50%, 50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder img{max-width:100%;height:auto;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .preview-holder span{width:auto;height:auto;font-size:60px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap .inner .title{position:absolute;width:100%;padding:5px 0;bottom:0;left:0;color:#fff;background:rgba(41,143,252,0.8);text-align:center;font-size:11px;overflow:hidden}.cherry-ui-media-wrap .cherry-upload-preview .cherry-image-wrap:hover .cherry-remove-image{display:block}.cherry-ui-media-wrap .cherry-upload-preview .cherry-media-thumb-sortable-placeholder{width:112px;height:112px;margin:3px;vertical-align:top;border:1px dashed #dcdcdc;display:inline-block;background-color:#f1f1f1}.cherry-ui-media-wrap .upload-button{float:left}.cherry-ui-media-wrap .cherry-remove-image{width:30px;height:30px;color:#e54343;display:block;position:absolute;top:0;right:0;cursor:pointer;text-decoration:none;outline:0;display:none}.cherry-ui-media-wrap .cherry-remove-image i{width:30px;height:30px;font-size:30px}.cherry-ui-media-wrap .cherry-remove-image:hover{color:#d71e1e}.cherry-ui-media-wrap .cherry-bgsetting{float:left;width:32%;margin-right:1%}.cherry-ui-media-wrap .cherry-bgsetting:nth-child(3n+1){width:34%;margin-right:0}.cherry-ui-media-wrap .cherry-bgsetting select{margin-bottom:10px}.button-default_{position:relative;display:inline-block;font-size:12px;line-height:18px;font-weight:900;letter-spacing:0.5px;text-decoration:none;padding:15px 20px;color:#23282d;text-transform:uppercase;border-radius:4px;border-width:1px;border-style:solid;outline:none;cursor:pointer;transition:all 200ms linear;color:#fff;border-color:#777879 #2f343a #2f343a #777879;background-color:#495159}.button-default_:before{position:absolute;display:block;width:100%;height:100%;top:0;left:0;border-radius:4px;background-image:linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);content:''}.button-default_:hover:before{background-image:linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%)}.button-default_:active:before{opacity:0}.button-default_:active{background-color:#495159;border-color:#181b1e #777879 #777879 #181b1e}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-kit/_mixins.scss CHANGED
@@ -1,184 +1,52 @@
1
  @mixin button_base() {
 
2
  display: inline-block;
3
- text-decoration: none;
4
  font-size: 12px;
5
- line-height: 20px;
6
- font-weight: bold;
 
 
7
  padding: 15px 20px;
8
- color: #fff;
9
  text-transform: uppercase;
10
  border-radius: $border_radius_small;
11
- transition: all 200ms linear;
12
- box-shadow: $box_shadow;
13
- border: none;
14
  cursor: pointer;
15
- &:hover {
16
- color: #fff;
17
- box-shadow: none;
18
- }
19
- &:focus,
20
- &:active {
21
- outline: none;
22
- box-shadow: none;
23
- color: #fff;
24
- }
25
- }
26
-
27
- @mixin button_normal() {
28
- background: $dark_color_2;
29
- &:hover {
30
- background: $dark_color_2_h;
31
- }
32
- }
33
-
34
- @mixin button_primary() {
35
- background: $blue_color;
36
- &:hover {
37
- background: $blue_color_h;
38
- }
39
- }
40
-
41
- @mixin button_success() {
42
- background: $green_color;
43
- &:hover {
44
- background: $green_color_h;
45
- }
46
- }
47
-
48
- @mixin button_danger() {
49
- background: $red_color;
50
- &:hover {
51
- background: $red_color_h;
52
- }
53
- }
54
-
55
- @mixin button_warning() {
56
- background: $orange_color;
57
- &:hover {
58
- background: $orange_color_h;
59
- }
60
- }
61
-
62
- @mixin input() {
63
- font-size: 14px;
64
- line-height: 20px;
65
- color: $dark_color_1;
66
- background-color: $grey_color_3;
67
- border-radius: $border_radius_extra_small;
68
- padding: 10px 20px;
69
- height: 50px;
70
- border: 1px solid $grey_color_3;
71
- box-shadow: none;
72
- &:focus{
73
- border-color: rgba(72,197,105,.6);
74
- box-shadow: 0 0 2px rgba(72,197,105,.6);
75
- }
76
- }
77
-
78
- @mixin button_icon( $icon ) {
79
- content: $icon;
80
- display: inline-block;
81
- font-family: dashicons;
82
- font-size: 16px;
83
- font-style: normal;
84
- font-weight: 400;
85
- height: 18px;
86
- line-height: 18px;
87
- text-align: center;
88
- text-decoration: inherit;
89
  transition: all 200ms linear;
90
- vertical-align: middle;
91
- }
92
 
93
- @mixin button_icon_before( $icon ) {
94
  &:before {
95
- @include button_icon( $icon );
96
- padding: 0 5px 0 0;
 
 
 
 
 
 
 
97
  }
98
- }
99
 
100
- @mixin button_icon_after( $icon ) {
101
- &:after {
102
- @include button_icon( $icon );
103
- padding: 0 0 0 5px;
104
- }
105
- }
106
-
107
- @mixin button_icon_middle( $icon ) {
108
- &:before {
109
- @include button_icon( $icon );
110
- margin: 0 -5px;
111
- }
112
- }
113
-
114
- @mixin link() {
115
- display: inline-block;
116
- text-decoration: none;
117
- font-size: 12px;
118
- line-height: 20px;
119
- font-weight: bold;
120
- color: $blue_color;
121
- text-transform: uppercase;
122
- transition: all 200ms linear;
123
  &:hover {
124
- color: $dark_color_1;
125
- box-shadow: none;
126
- }
127
- &:focus,
128
- &:active {
129
- outline: none;
130
- box-shadow: none;
131
- color: $blue_color;
132
  }
133
- }
134
 
135
- @mixin link_icon_before( $icon ) {
136
- &:before {
137
- @include button_icon( $icon );
138
- padding: 0 5px 0 0;
139
- color: $grey_color_4;
140
- }
141
- &:hover {
142
  &:before {
143
- color: $blue_color;
144
  }
145
  }
146
  }
147
 
148
- @mixin container() {
149
- padding: 30px;
150
- border: 2px solid $grey_color_2;
151
- background: $grey_color_3;
152
- border-radius: $border_radius_large;
153
- }
154
-
155
- @mixin container_heading() {
156
- margin: -30px -30px 30px -30px;
157
- border-radius: $border_radius_large $border_radius_large 0 0;
158
- border-bottom: 1px solid $grey_color_2;
159
- padding: 20px 30px;
160
- font-weight: bold;
161
- font-size: 16px;
162
- line-height: 18px;
163
- text-align: center;
164
- background: #fff;
165
- }
166
-
167
- @mixin box() {
168
- margin: 0 0 30px;
169
- padding: 20px;
170
- background: #fff;
171
- box-shadow: $box_shadow_box;
172
- border-radius: $border_radius;
173
  }
174
-
175
- @mixin box_heading() {
176
- margin: -20px -20px 20px -20px;
177
- border-radius: $border_radius_small $border_radius_small 0 0;
178
- border-bottom: 1px solid $grey_color_2;
179
- padding: 20px 30px;
180
- font-weight: bold;
181
- font-size: 16px;
182
- line-height: 18px;
183
- background: #fff;
184
- }
1
  @mixin button_base() {
2
+ position: relative;
3
  display: inline-block;
 
4
  font-size: 12px;
5
+ line-height: 18px;
6
+ font-weight: 900;
7
+ letter-spacing: 0.5px;
8
+ text-decoration: none;
9
  padding: 15px 20px;
10
+ color: $dark_color;
11
  text-transform: uppercase;
12
  border-radius: $border_radius_small;
13
+ border-width: 1px;
14
+ border-style: solid;
15
+ outline: none;
16
  cursor: pointer;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  transition: all 200ms linear;
 
 
18
 
 
19
  &:before {
20
+ position: absolute;
21
+ display: block;
22
+ width: 100%;
23
+ height: 100%;
24
+ top: 0;
25
+ left: 0;
26
+ border-radius: $border_radius_small;
27
+ background-image: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
28
+ content: '';
29
  }
 
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  &:hover {
32
+ &:before {
33
+ background-image: linear-gradient(0deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
34
+ }
 
 
 
 
 
35
  }
 
36
 
37
+ &:active {
 
 
 
 
 
 
38
  &:before {
39
+ opacity: 0;
40
  }
41
  }
42
  }
43
 
44
+ @mixin secondary_button() {
45
+ color: $light_color;
46
+ border-color: $secondary_outset_1 $secondary_outset_2 $secondary_outset_2 $secondary_outset_1;
47
+ background-color: $secondary_gradint_2;
48
+ &:active {
49
+ background-color: $secondary_bg_color;
50
+ border-color: darken( $secondary_outset_2, 10%) $secondary_outset_1 $secondary_outset_1 darken( $secondary_outset_2, 10%);
51
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-kit/_variables.scss CHANGED
@@ -1,18 +1,47 @@
1
- $dark_color_1: #23282d;
2
- $dark_color_2: #495159;
3
- $dark_color_2_h: #393f45;
4
- $grey_color_1: #96989a;
5
- $grey_color_2: #e5e5e5;
6
- $grey_color_3: #f1f1f1;
7
- $grey_color_4: #b4b7ba;
8
  $blue_color: #298ffc;
9
- $blue_color_h: #206ff4;
10
- $green_color: #48c569;
11
- $green_color_h: #3ba956;
12
- $red_color: #e54343;
13
- $red_color_h: #c73434;
14
- $orange_color: #faa730;
15
- $orange_color_h: #ee8425;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  $border_radius_extra_small: 2px;
18
  $border_radius_small: 4px;
@@ -20,4 +49,4 @@ $border_radius_medium: 6px;
20
  $border_radius_large: 8px;
21
 
22
  $box_shadow: 0 5px 13px rgba(0,0,0,.18);
23
- $box_shadow_box: 0 8px 21px rgba(0,0,0,.1);
1
+ $bg_color: #f1f1f1;
2
+ $border_color: #dcdcdc;
3
+
 
 
 
 
4
  $blue_color: #298ffc;
5
+ $remove_color: #e54343;
6
+
7
+ $light_color: #ffffff;
8
+ $dark_color: #23282d;
9
+
10
+ $normal_bg_color: #e1e1e1;
11
+ $normal_gradint_1: #ffffff;
12
+ $normal_gradint_2: #f0f0f0;
13
+ $normal_outset_1: #d7d7d7;
14
+ $normal_outset_2: #b7b7b7;
15
+
16
+ $primary_bg_color: #206ff4;
17
+ $primary_gradint_1: #5fadff;
18
+ $primary_gradint_2: #2a90fc;
19
+ $primary_outset_1: #5b9add;
20
+ $primary_outset_2: #3e6a99;
21
+
22
+ $secondary_bg_color: #495159;
23
+ $secondary_gradint_1: #4c5054;
24
+ $secondary_gradint_2: #495159;
25
+ $secondary_outset_1: #777879;
26
+ $secondary_outset_2: #2f343a;
27
+
28
+ $success_bg_color: #3ba956;
29
+ $success_gradint_1: #71e18f;
30
+ $success_gradint_2: #49c66a;
31
+ $success_outset_1: #49c56a;
32
+ $success_outset_2: #3a9e54;
33
+
34
+ $danger_bg_color: #c73434;
35
+ $danger_gradint_1: #f98888;
36
+ $danger_gradint_2: #e64545;
37
+ $danger_outset_1: #e54444;
38
+ $danger_outset_2: #b83636;
39
+
40
+ $warning_bg_color: #ee8425;
41
+ $warning_gradint_1: #ffcb81;
42
+ $warning_gradint_2: #faa832;
43
+ $warning_outset_1: #faa832;
44
+ $warning_outset_2: #c98627;
45
 
46
  $border_radius_extra_small: 2px;
47
  $border_radius_small: 4px;
49
  $border_radius_large: 8px;
50
 
51
  $box_shadow: 0 5px 13px rgba(0,0,0,.18);
52
+ $box_shadow_box: 0 8px 21px rgba(0,0,0,.1);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.scss CHANGED
@@ -1,24 +1,24 @@
1
  @import "ui-kit/variables";
2
  @import "ui-kit/mixins";
3
 
4
- .cherry-ui-container{
5
  margin: 10px 0 20px 0;
6
  }
7
- label.cherry-label{
8
  margin: 0 0 5px 0;
9
  display: block;
10
  }
11
- .cherry-ui-media-wrap{
12
  .cherry-upload-preview{
13
  display: block;
14
  margin: 0 0 5px 0;
15
- .cherry-image-wrap{
16
  position: relative;
17
  display: inline-block;
18
  vertical-align: top;
19
  width: 120px;
20
  height: 120px;
21
- .inner{
22
  width: 110px;
23
  height: 110px;
24
  margin: 3px;
@@ -26,13 +26,13 @@ label.cherry-label{
26
  border: 2px solid $blue_color;
27
  border-radius: $border_radius_extra_small;
28
  overflow: hidden;
29
- .preview-holder{
30
  width: 100%;
31
  height: 100%;
32
  position: relative;
33
- background: $grey_color_3;
34
  box-sizing: border-box;
35
- .centered{
36
  position: absolute;
37
  width: 100%;
38
  height: 100%;
@@ -40,19 +40,19 @@ label.cherry-label{
40
  left: 0;
41
  transform: translate(50%,50%);
42
  }
43
- img{
44
  max-width: 100%;
45
  height: auto;
46
  transform: translate(-50%,-50%);
47
  }
48
- span{
49
  width: auto;
50
  height: auto;
51
  font-size: 60px;
52
  transform: translate(-50%,-50%);
53
  }
54
  }
55
- .title{
56
  position: absolute;
57
  width: 100%;
58
  padding: 5px 0;
@@ -65,29 +65,29 @@ label.cherry-label{
65
  overflow: hidden;
66
  }
67
  }
68
- &:hover{
69
- .cherry-remove-image{
70
  display: block;
71
  }
72
  }
73
  }
74
- .cherry-media-thumb-sortable-placeholder{
75
  width: 112px;
76
  height: 112px;
77
  margin: 3px;
78
  vertical-align: top;
79
- border: 1px dashed $grey_color_1;
80
  display: inline-block;
81
- background-color: $grey_color_3;
82
  }
83
  }
84
- .upload-button{
85
  float: left;
86
  }
87
- .cherry-remove-image{
88
  width: 30px;
89
  height: 30px;
90
- color: $red_color;
91
  display: block;
92
  position: absolute;
93
  top: 0;
@@ -96,63 +96,30 @@ label.cherry-label{
96
  text-decoration: none;
97
  outline: 0;
98
  display: none;
99
- i{
100
  width: 30px;
101
  height: 30px;
102
  font-size: 30px;
103
  }
104
- &:hover{
105
- color: $red_color_h;
106
  }
107
  }
108
- .cherry-bgsetting{
109
  float: left;
110
  width: 32%;
111
  margin-right: 1%;
112
- &:nth-child(3n+1){
113
  width: 34%;
114
  margin-right: 0;
115
  }
116
- select{
117
  margin-bottom: 10px;
118
  }
119
  }
120
  }
121
 
122
- .button-default_{
123
  @include button_base();
124
- @include button_normal();
125
  }
126
- /*.button_{
127
- display: inline-block;
128
- cursor: pointer;
129
- white-space: nowrap;
130
- text-decoration: none;
131
- box-sizing: border-box;
132
- backface-visibility: hidden;
133
- box-shadow: 0 0 1px rgba(0, 0, 0, 0);
134
- position: relative;
135
- transform: translateZ(0px);
136
- transition-duration: 0.5s;
137
- transition-property: color;
138
- vertical-align: middle;
139
- &:hover,
140
- &:active,
141
- &:focus {
142
- outline: none;
143
- }
144
- }
145
-
146
- .button-default_{
147
- @extend .button_;
148
- font-size: 13px;
149
- background-color: #ffffff;
150
- border: 1px solid #dddcdc;
151
- border-radius: 3px;
152
- line-height: 32px;
153
- margin: 0;
154
- padding: 0 14px;
155
- box-shadow: none;
156
- color: #464646;
157
- height: auto;
158
- }*/
1
  @import "ui-kit/variables";
2
  @import "ui-kit/mixins";
3
 
4
+ .cherry-ui-container {
5
  margin: 10px 0 20px 0;
6
  }
7
+ label.cherry-label {
8
  margin: 0 0 5px 0;
9
  display: block;
10
  }
11
+ .cherry-ui-media-wrap {
12
  .cherry-upload-preview{
13
  display: block;
14
  margin: 0 0 5px 0;
15
+ .cherry-image-wrap {
16
  position: relative;
17
  display: inline-block;
18
  vertical-align: top;
19
  width: 120px;
20
  height: 120px;
21
+ .inner {
22
  width: 110px;
23
  height: 110px;
24
  margin: 3px;
26
  border: 2px solid $blue_color;
27
  border-radius: $border_radius_extra_small;
28
  overflow: hidden;
29
+ .preview-holder {
30
  width: 100%;
31
  height: 100%;
32
  position: relative;
33
+ background: $bg_color;
34
  box-sizing: border-box;
35
+ .centered {
36
  position: absolute;
37
  width: 100%;
38
  height: 100%;
40
  left: 0;
41
  transform: translate(50%,50%);
42
  }
43
+ img {
44
  max-width: 100%;
45
  height: auto;
46
  transform: translate(-50%,-50%);
47
  }
48
+ span {
49
  width: auto;
50
  height: auto;
51
  font-size: 60px;
52
  transform: translate(-50%,-50%);
53
  }
54
  }
55
+ .title {
56
  position: absolute;
57
  width: 100%;
58
  padding: 5px 0;
65
  overflow: hidden;
66
  }
67
  }
68
+ &:hover {
69
+ .cherry-remove-image {
70
  display: block;
71
  }
72
  }
73
  }
74
+ .cherry-media-thumb-sortable-placeholder {
75
  width: 112px;
76
  height: 112px;
77
  margin: 3px;
78
  vertical-align: top;
79
+ border: 1px dashed $border_color;
80
  display: inline-block;
81
+ background-color: $bg_color;
82
  }
83
  }
84
+ .upload-button {
85
  float: left;
86
  }
87
+ .cherry-remove-image {
88
  width: 30px;
89
  height: 30px;
90
+ color: $remove_color;
91
  display: block;
92
  position: absolute;
93
  top: 0;
96
  text-decoration: none;
97
  outline: 0;
98
  display: none;
99
+ i {
100
  width: 30px;
101
  height: 30px;
102
  font-size: 30px;
103
  }
104
+ &:hover {
105
+ color: darken( $remove_color, 10% );
106
  }
107
  }
108
+ .cherry-bgsetting {
109
  float: left;
110
  width: 32%;
111
  margin-right: 1%;
112
+ &:nth-child(3n+1) {
113
  width: 34%;
114
  margin-right: 0;
115
  }
116
+ select {
117
  margin-bottom: 10px;
118
  }
119
  }
120
  }
121
 
122
+ .button-default_ {
123
  @include button_base();
124
+ @include secondary_button();
125
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/ui-media.php CHANGED
@@ -33,7 +33,7 @@ if ( ! class_exists( 'UI_Media' ) ) {
33
  'name' => 'cherry-ui-media-name',
34
  'value' => '',
35
  'multi_upload' => true,
36
- 'library_type' => '', // image, video
37
  'upload_button_text' => 'Choose Media',
38
  'label' => '',
39
  'class' => '',
@@ -137,7 +137,7 @@ if ( ! class_exists( 'UI_Media' ) ) {
137
  $html .= '</div>';
138
  $html .= '<div class="cherry-element-wrap">';
139
  $html .= '<input type="hidden" id="' . esc_attr( $this->settings['id'] ) . '" class="cherry-upload-input" name="' . esc_attr( $this->settings['name'] ) . '" value="' . esc_html( $this->settings['value'] ) . '" >';
140
- $html .= '<input type="button" class="upload-button cherry-upload-button button-default_" value="' . esc_attr( $this->settings['upload_button_text'] ) . '" data-title="' . esc_attr( $this->settings['upload_button_text'] ) . '" data-multi-upload="' . esc_attr( $this->settings['multi_upload'] ) . '" data-library-type="' . esc_attr( $this->settings['library_type'] ) . '"/>';
141
  $html .= '<div class="clear"></div>';
142
  $html .= '</div>';
143
  $html .= '</div>';
33
  'name' => 'cherry-ui-media-name',
34
  'value' => '',
35
  'multi_upload' => true,
36
+ 'library_type' => '', // image, video, sound
37
  'upload_button_text' => 'Choose Media',
38
  'label' => '',
39
  'class' => '',
137
  $html .= '</div>';
138
  $html .= '<div class="cherry-element-wrap">';
139
  $html .= '<input type="hidden" id="' . esc_attr( $this->settings['id'] ) . '" class="cherry-upload-input" name="' . esc_attr( $this->settings['name'] ) . '" value="' . esc_html( $this->settings['value'] ) . '" >';
140
+ $html .= '<button type="button" class="upload-button cherry-upload-button button-default_" value="' . esc_attr( $this->settings['upload_button_text'] ) . '" data-title="' . esc_attr( $this->settings['upload_button_text'] ) . '" data-multi-upload="' . esc_attr( $this->settings['multi_upload'] ) . '" data-library-type="' . esc_attr( $this->settings['library_type'] ) . '">' . esc_attr( $this->settings['upload_button_text'] ) . '</button>';
141
  $html .= '<div class="clear"></div>';
142
  $html .= '</div>';
143
  $html .= '</div>';
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/min/ui-radio.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}input.cherry-radio-input{display:none}.cherry-radio-item{margin-bottom:10px}.cherry-radio-item:last-child{margin-bottom:0}.cherry-radio-item label{display:inline-block;font-size:14px;line-height:22px;color:#23282d}.cherry-radio-item span{width:25px;height:25px;border-radius:25px;margin-right:10px;cursor:pointer;position:relative;background-color:#f1f1f1;display:inline-block;float:left}.cherry-radio-item span i{width:13px;height:13px;background-color:#298ffc;margin:6px;border-radius:20px;display:inline-block;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1)}.cherry-radio-item .cherry-radio-input:checked+label span i{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.cherry-radio-img{float:left;margin:10px 5px 0 5px;text-align:center;max-width:80px;position:relative}.cherry-radio-img label{display:inline-block}.cherry-radio-img img{width:100%;height:auto;margin:0 0 5px 0;pointer-events:none}.cherry-radio-img .cherry-radio-input:checked+label{font-weight:bold}.cherry-radio-img .cherry-radio-input:checked+label .check{display:block}.cherry-radio-img .cherry-radio-input:checked+label img{box-shadow:0 0 0 2px #fffeff,0 0 0 5px #298ffc}
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}input.cherry-radio-input{display:none}.cherry-radio-item{margin-bottom:10px}.cherry-radio-item:last-child{margin-bottom:0}.cherry-radio-item label{display:inline-block;font-size:14px;line-height:22px;color:#23282d}.cherry-radio-item span{width:25px;height:25px;border-radius:25px;margin-right:10px;cursor:pointer;position:relative;background-color:#f1f1f1;display:inline-block;float:left}.cherry-radio-item span i{width:13px;height:13px;background-color:#298ffc;margin:6px;border-radius:20px;display:inline-block;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1)}.cherry-radio-item .cherry-radio-input:checked+label span i{-webkit-transform:scale(1);transform:scale(1)}.cherry-radio-img{float:left;margin:10px 5px 0 5px;text-align:center;max-width:80px;position:relative}.cherry-radio-img label{display:inline-block}.cherry-radio-img img{width:100%;height:auto;margin:0 0 5px 0;pointer-events:none}.cherry-radio-img .cherry-radio-input:checked+label{font-weight:bold}.cherry-radio-img .cherry-radio-input:checked+label .check{display:block}.cherry-radio-img .cherry-radio-input:checked+label img{box-shadow:0 0 0 2px #fffeff,0 0 0 5px #298ffc}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/min/ui-radio.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"use strict";e.utilites.namespace("ui_elements.radio"),e.ui_elements.radio={inputClass:'.cherry-radio-input:not([name*="__i__"])',containerClass:".cherry-ui-container",wrapperClass:".widget, .postbox, .cherry-form",init:function(){t(document).on("ready.cherry-ui-elements-init",this.addEvent.bind(this)).on("cherry-ui-elements-init",this.setState.bind(this))},addEvent:function(){t("body").on("click.masterSlave",this.inputClass,this.switchState.bind(this)),this.setState({_target:t("body")})},setState:function(e){this.switchState({currentTarget:t(this.inputClass,e._target)})},switchState:function(e){for(var i,s,n,a=t(e.currentTarget).closest(this.containerClass),r=t(this.inputClass,a),c=r.length-1;c>=0;c--)i=t(r[c]),n=i.data(),s=i.closest(this.wrapperClass),jQuery.isEmptyObject(n)||t("."+n.slave,s)[i[0].checked?"removeClass":"addClass"]("hide")}},e.ui_elements.radio.init()}(jQuery,window.CherryJsCore);
1
+ !function(t,e){"use strict";e.utilites.namespace("ui_elements.radio"),e.ui_elements.radio={inputClass:'.cherry-radio-input:not([name*="__i__"])',containerClass:".cherry-ui-container",wrapperClass:".widget, .postbox, .cherry-form, .cherry-ui-repeater-item",init:function(){t(document).on("ready.cherry-ui-elements-init",this.addEvent.bind(this)).on("cherry-ui-elements-init",this.setState.bind(this))},addEvent:function(){t("body").on("click.masterSlave",this.inputClass,this.switchState.bind(this)),this.setState({_target:t("body")})},setState:function(e){this.switchState({currentTarget:t(this.inputClass,e._target)})},switchState:function(e){for(var i,s,n,a=t(e.currentTarget).closest(this.containerClass),r=t(this.inputClass,a),c=r.length-1;c>=0;c--)i=t(r[c]),n=i.data(),s=i.closest(this.wrapperClass),jQuery.isEmptyObject(n)||t("."+n.slave,s)[i[0].checked?"removeClass":"addClass"]("hide")}},e.ui_elements.radio.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-kit/_mixins.scss CHANGED
@@ -7,7 +7,7 @@
7
  padding: 15px 20px;
8
  color: #fff;
9
  text-transform: uppercase;
10
- border-radius: $border_radius;
11
  transition: all 200ms linear;
12
  box-shadow: $box_shadow;
13
  &:hover {
@@ -17,7 +17,8 @@
17
  &:focus,
18
  &:active {
19
  outline: none;
20
- box-shadow: none;
 
21
  color: #fff;
22
  }
23
  }
@@ -57,6 +58,22 @@
57
  }
58
  }
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  @mixin button_icon( $icon ) {
61
  content: $icon;
62
  display: inline-block;
@@ -109,7 +126,8 @@
109
  &:focus,
110
  &:active {
111
  outline: none;
112
- box-shadow: none;
 
113
  color: $blue_color;
114
  }
115
  }
@@ -131,12 +149,12 @@
131
  padding: 30px;
132
  border: 2px solid $grey_color_2;
133
  background: $grey_color_3;
134
- border-radius: $border_radius_2x;
135
  }
136
 
137
  @mixin container_heading() {
138
  margin: -30px -30px 30px -30px;
139
- border-radius: $border_radius_2x $border_radius_2x 0 0;
140
  border-bottom: 1px solid $grey_color_2;
141
  padding: 20px 30px;
142
  font-weight: bold;
@@ -156,11 +174,11 @@
156
 
157
  @mixin box_heading() {
158
  margin: -20px -20px 20px -20px;
159
- border-radius: $border_radius $border_radius 0 0;
160
  border-bottom: 1px solid $grey_color_2;
161
  padding: 20px 30px;
162
  font-weight: bold;
163
  font-size: 16px;
164
  line-height: 18px;
165
  background: #fff;
166
- }
7
  padding: 15px 20px;
8
  color: #fff;
9
  text-transform: uppercase;
10
+ border-radius: $border_radius_small;
11
  transition: all 200ms linear;
12
  box-shadow: $box_shadow;
13
  &:hover {
17
  &:focus,
18
  &:active {
19
  outline: none;
20
+ border-color: rgba(41, 143, 252, .6);
21
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
22
  color: #fff;
23
  }
24
  }
58
  }
59
  }
60
 
61
+ @mixin input() {
62
+ font-size: 14px;
63
+ line-height: 20px;
64
+ color: $dark_color_1;
65
+ background-color: $grey_color_3;
66
+ border-radius: $border_radius_extra_small;
67
+ padding: 10px 20px;
68
+ min-height: 50px;
69
+ border: 1px solid $grey_color_3;
70
+ box-shadow: none;
71
+ &:focus{
72
+ border-color: rgba(41, 143, 252, .6);
73
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
74
+ }
75
+ }
76
+
77
  @mixin button_icon( $icon ) {
78
  content: $icon;
79
  display: inline-block;
126
  &:focus,
127
  &:active {
128
  outline: none;
129
+ border-color: rgba(41, 143, 252, .6);
130
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
131
  color: $blue_color;
132
  }
133
  }
149
  padding: 30px;
150
  border: 2px solid $grey_color_2;
151
  background: $grey_color_3;
152
+ border-radius: $border_radius_large;
153
  }
154
 
155
  @mixin container_heading() {
156
  margin: -30px -30px 30px -30px;
157
+ border-radius: $border_radius_large $border_radius_large 0 0;
158
  border-bottom: 1px solid $grey_color_2;
159
  padding: 20px 30px;
160
  font-weight: bold;
174
 
175
  @mixin box_heading() {
176
  margin: -20px -20px 20px -20px;
177
+ border-radius: $border_radius_small $border_radius_small 0 0;
178
  border-bottom: 1px solid $grey_color_2;
179
  padding: 20px 30px;
180
  font-weight: bold;
181
  font-size: 16px;
182
  line-height: 18px;
183
  background: #fff;
184
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/assets/ui-radio.js CHANGED
@@ -8,7 +8,7 @@
8
  CherryJsCore.ui_elements.radio = {
9
  inputClass: '.cherry-radio-input:not([name*="__i__"])',
10
  containerClass: '.cherry-ui-container',
11
- wrapperClass: '.widget, .postbox, .cherry-form',
12
 
13
  init: function () {
14
  $( document )
8
  CherryJsCore.ui_elements.radio = {
9
  inputClass: '.cherry-radio-input:not([name*="__i__"])',
10
  containerClass: '.cherry-ui-container',
11
+ wrapperClass: '.widget, .postbox, .cherry-form, .cherry-ui-repeater-item',
12
 
13
  init: function () {
14
  $( document )
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/min/ui-repeater.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-repeater-container label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-repeater-add{display:inline-block;text-decoration:none;font-size:12px;line-height:20px;font-weight:bold;color:#298ffc;text-transform:uppercase;-webkit-transition:all 200ms linear;transition:all 200ms linear}.cherry-ui-repeater-add:hover{color:#23282d;box-shadow:none}.cherry-ui-repeater-add:focus,.cherry-ui-repeater-add:active{outline:none;box-shadow:none;color:#298ffc}.cherry-ui-repeater-add:before{content:"";display:inline-block;font-family:dashicons;font-size:16px;font-style:normal;font-weight:400;height:18px;line-height:18px;text-align:center;text-decoration:inherit;-webkit-transition:all 200ms linear;transition:all 200ms linear;vertical-align:middle;padding:0 5px 0 0;color:#b4b7ba}.cherry-ui-repeater-add:hover:before{color:#298ffc}.cherry-ui-repeater-item{padding:10px 10px 10px 30px;position:relative}.cherry-ui-repeater-remove{position:absolute;width:20px;height:20px;right:18px;top:13px;border-radius:50%;border:1px solid currentColor;color:red;font-size:18px;line-height:20px;text-align:center;cursor:pointer}.cherry-ui-repeater-remove:before{content:"\00D7"}.cherry-ui-repeater-remove:hover{color:black}.cherry-ui-kit.cherry-ui-repeater-container{padding:30px;border:2px solid #e5e5e5;background:#f1f1f1;border-radius:8px}.cherry-ui-kit>label.cherry-label{margin:-30px -30px 30px -30px;border-radius:8px 8px 0 0;border-bottom:1px solid #e5e5e5;padding:20px 30px;font-weight:bold;font-size:16px;line-height:18px;text-align:center;background:#fff}.cherry-ui-kit .cherry-ui-repeater-item{margin:0 0 30px;padding:20px;background:#fff;box-shadow:0 8px 21px rgba(0,0,0,0.1);border-radius:4px}.cherry-ui-kit .cherry-ui-repeater-actions-box{margin:-20px -20px 20px -20px;border-radius:4px 4px 0 0;border-bottom:1px solid #e5e5e5;padding:20px 30px;font-weight:bold;font-size:16px;line-height:18px;background:#fff;padding:15px 20px;cursor:move;position:relative;text-align:center;min-height:18px}.cherry-ui-kit .cherry-ui-repeater-toggle{position:absolute;color:#b4b7ba;width:20px;height:20px;font-size:22px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;text-decoration:none;box-shadow:none;outline:none;top:13px;left:18px}.cherry-ui-kit .cherry-ui-repeater-toggle:before{content:"\f142";-webkit-transition:all 200ms linear;transition:all 200ms linear;font-family:dashicons;vertical-align:middle}.cherry-ui-kit .cherry-ui-repeater-toggle:hover{color:#23282d}.cherry-ui-kit .cherry-ui-repeater-remove{position:absolute;border:none;color:#b4b7ba;font-size:20px;line-height:20px;width:20px;height:20px;text-align:center;vertical-align:middle;text-decoration:none;box-shadow:none;outline:none;top:13px;right:18px}.cherry-ui-kit .cherry-ui-repeater-remove:before{content:"\f158";-webkit-transition:all 200ms linear;transition:all 200ms linear;font-family:dashicons;vertical-align:middle}.cherry-ui-kit .cherry-ui-repeater-remove:hover{color:#23282d}.cherry-ui-kit .cherry-ui-repeater-title{width:70%;overflow:hidden;text-overflow:ellipsis;display:inline-block;font-size:14px}.cherry-ui-kit .cherry-ui-repeater-min{padding-bottom:0}.cherry-ui-kit .cherry-ui-repeater-min>.cheryr-ui-repeater-content-box{display:none}.cherry-ui-kit .cherry-ui-repeater-min>.cherry-ui-repeater-actions-box{margin-bottom:0;border-bottom:none;background:none}.cherry-ui-kit .cherry-ui-repeater-min>.cherry-ui-repeater-actions-box .cherry-ui-repeater-toggle:before{content:"\f140"}
1
+ .cherry-ui-repeater-container label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-repeater-add{display:inline-block;text-decoration:none;font-size:12px;line-height:20px;font-weight:bold;color:#298ffc;text-transform:uppercase;transition:all 200ms linear}.cherry-ui-repeater-add:hover{color:#23282d;box-shadow:none}.cherry-ui-repeater-add:focus,.cherry-ui-repeater-add:active{outline:none;border-color:rgba(41,143,252,0.6);box-shadow:0 0 2px rgba(41,143,252,0.6);color:#298ffc}.cherry-ui-repeater-add:before{content:"";display:inline-block;font-family:dashicons;font-size:16px;font-style:normal;font-weight:400;height:18px;line-height:18px;text-align:center;text-decoration:inherit;transition:all 200ms linear;vertical-align:middle;padding:0 5px 0 0;color:#b4b7ba}.cherry-ui-repeater-add:hover:before{color:#298ffc}.cherry-ui-repeater-item{padding:10px 10px 10px 30px;position:relative}.cherry-ui-repeater-remove{position:absolute;width:20px;height:20px;right:18px;top:13px;border-radius:50%;border:1px solid currentColor;color:red;font-size:18px;line-height:20px;text-align:center;cursor:pointer}.cherry-ui-repeater-remove:before{content:"\00D7"}.cherry-ui-repeater-remove:hover{color:black}.cherry-ui-kit.cherry-ui-repeater-container{padding:30px;border:2px solid #e5e5e5;background:#f1f1f1;border-radius:8px}.cherry-ui-kit>label.cherry-label{margin:-30px -30px 30px -30px;border-radius:8px 8px 0 0;border-bottom:1px solid #e5e5e5;padding:20px 30px;font-weight:bold;font-size:16px;line-height:18px;text-align:center;background:#fff}.cherry-ui-kit .cherry-ui-repeater-item{margin:0 0 30px;padding:20px;background:#fff;box-shadow:0 8px 21px rgba(0,0,0,0.1);border-radius:4px}.cherry-ui-kit .cherry-ui-repeater-actions-box{margin:-20px -20px 20px -20px;border-radius:4px 4px 0 0;border-bottom:1px solid #e5e5e5;padding:20px 30px;font-weight:bold;font-size:16px;line-height:18px;background:#fff;padding:15px 20px;cursor:move;position:relative;text-align:center;min-height:18px}.cherry-ui-kit .cherry-ui-repeater-toggle{position:absolute;color:#b4b7ba;width:20px;height:20px;font-size:22px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;text-decoration:none;box-shadow:none;outline:none;top:13px;left:18px}.cherry-ui-kit .cherry-ui-repeater-toggle:before{content:"\f142";-webkit-transition:all 200ms linear;transition:all 200ms linear;font-family:dashicons;vertical-align:middle}.cherry-ui-kit .cherry-ui-repeater-toggle:hover{color:#23282d}.cherry-ui-kit .cherry-ui-repeater-remove{position:absolute;border:none;color:#b4b7ba;font-size:20px;line-height:20px;width:20px;height:20px;text-align:center;vertical-align:middle;text-decoration:none;box-shadow:none;outline:none;top:13px;right:18px}.cherry-ui-kit .cherry-ui-repeater-remove:before{content:"\f158";-webkit-transition:all 200ms linear;transition:all 200ms linear;font-family:dashicons;vertical-align:middle}.cherry-ui-kit .cherry-ui-repeater-remove:hover{color:#23282d}.cherry-ui-kit .cherry-ui-repeater-title{width:70%;overflow:hidden;text-overflow:ellipsis;display:inline-block;font-size:14px}.cherry-ui-kit .cherry-ui-repeater-add:focus{outline:none;box-shadow:none}.cherry-ui-kit .cherry-ui-repeater-min{padding-bottom:0}.cherry-ui-kit .cherry-ui-repeater-min>.cheryr-ui-repeater-content-box{display:none}.cherry-ui-kit .cherry-ui-repeater-min>.cherry-ui-repeater-actions-box{margin-bottom:0;border-bottom:none;background:none}.cherry-ui-kit .cherry-ui-repeater-min>.cherry-ui-repeater-actions-box .cherry-ui-repeater-toggle:before{content:"\f140"}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/ui-kit/_mixins.scss CHANGED
@@ -17,7 +17,8 @@
17
  &:focus,
18
  &:active {
19
  outline: none;
20
- box-shadow: none;
 
21
  color: #fff;
22
  }
23
  }
@@ -57,6 +58,22 @@
57
  }
58
  }
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  @mixin button_icon( $icon ) {
61
  content: $icon;
62
  display: inline-block;
@@ -109,7 +126,8 @@
109
  &:focus,
110
  &:active {
111
  outline: none;
112
- box-shadow: none;
 
113
  color: $blue_color;
114
  }
115
  }
@@ -163,4 +181,4 @@
163
  font-size: 16px;
164
  line-height: 18px;
165
  background: #fff;
166
- }
17
  &:focus,
18
  &:active {
19
  outline: none;
20
+ border-color: rgba(41, 143, 252, .6);
21
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
22
  color: #fff;
23
  }
24
  }
58
  }
59
  }
60
 
61
+ @mixin input() {
62
+ font-size: 14px;
63
+ line-height: 20px;
64
+ color: $dark_color_1;
65
+ background-color: $grey_color_3;
66
+ border-radius: $border_radius_extra_small;
67
+ padding: 10px 20px;
68
+ min-height: 50px;
69
+ border: 1px solid $grey_color_3;
70
+ box-shadow: none;
71
+ &:focus{
72
+ border-color: rgba(41, 143, 252, .6);
73
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
74
+ }
75
+ }
76
+
77
  @mixin button_icon( $icon ) {
78
  content: $icon;
79
  display: inline-block;
126
  &:focus,
127
  &:active {
128
  outline: none;
129
+ border-color: rgba(41, 143, 252, .6);
130
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
131
  color: $blue_color;
132
  }
133
  }
181
  font-size: 16px;
182
  line-height: 18px;
183
  background: #fff;
184
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/assets/ui-repeater.scss CHANGED
@@ -116,6 +116,12 @@
116
  display: inline-block;
117
  font-size: 14px;
118
  }
 
 
 
 
 
 
119
  }
120
 
121
  .cherry-ui-repeater-min {
116
  display: inline-block;
117
  font-size: 14px;
118
  }
119
+ &-add {
120
+ &:focus {
121
+ outline: none;
122
+ box-shadow: none;
123
+ }
124
+ }
125
  }
126
 
127
  .cherry-ui-repeater-min {
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/min/ui-select.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}select.cherry-ui-select{width:100%;outline:0 none;color:#23282d;font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;height:50px;border:1px solid #f1f1f1;box-shadow:none}select.cherry-ui-select:focus{border-color:rgba(72,197,105,0.6);box-shadow:0 0 2px rgba(72,197,105,0.6)}select.cherry-ui-select:focus{border-color:none;box-shadow:none}select.select2-hidden-accessible{display:none}.select2{color:#23282d;background-color:#f1f1f1;border-radius:2px}.select2 .selection .select2-selection.select2-selection--single{background-color:transparent;border:none;border-radius:2px;height:50px}.select2 .selection .select2-selection.select2-selection--single .select2-selection__rendered{padding:15px 20px;font-size:14px;line-height:20px}.select2 .selection .select2-selection.select2-selection--single .select2-selection__arrow{height:50px}.select2 .selection .select2-selection.select2-selection--multiple{background-color:transparent;border:none;border-radius:2px}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered{font-size:14px;line-height:20px;padding:0;display:block}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-selection__choice{line-height:20px;margin:5px;border:none;background-color:#495159;border-radius:2px;color:#fff;padding:10px}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove{color:#e54343;margin-right:10px}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-search{margin:0}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-search .select2-search__field{padding:0;margin:15px 10px;border:none;box-shadow:none;line-height:20px}.select2-container .select2-dropdown{background-color:#e5e5e5;border:none;border-radius:2px;margin:5px 0;box-shadow:0px 5px 21px rgba(0,0,0,0.1);z-index:500001}.select2-container .select2-dropdown .select2-search__field{border:none;box-shadow:none;border-radius:2px;margin:0}.select2-container .select2-dropdown .select2-search__field:focus{outline:none}.select2-container .select2-dropdown .select2-results .select2-results__options .select2-results__option[aria-selected=true]{color:#fff;background-color:#48c569}.select2-container .select2-dropdown .select2-results .select2-results__options .select2-results__option--highlighted{color:#fff;background-color:#495159}.select2-container .select2-dropdown .select2-results .select2-results__options .li[aria-disabled=true]{display:none}
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}select.cherry-ui-select{width:100%;outline:0 none;color:#23282d;font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;min-height:50px;border:1px solid #dcdcdc;box-shadow:none}select.cherry-ui-select:focus{border-color:rgba(41,143,252,0.6);box-shadow:0 0 2px rgba(41,143,252,0.6)}select.cherry-ui-select:focus{border-color:none;box-shadow:none}select.select2-hidden-accessible{display:none}.select2{color:#23282d;background-color:#f1f1f1;border-radius:2px;border:1px solid #dcdcdc}.select2 .selection .select2-selection.select2-selection--single{background-color:transparent;border:none;border-radius:2px;height:50px}.select2 .selection .select2-selection.select2-selection--single .select2-selection__rendered{padding:15px 20px;font-size:14px;line-height:20px}.select2 .selection .select2-selection.select2-selection--single .select2-selection__arrow{height:50px}.select2 .selection .select2-selection.select2-selection--multiple{background-color:transparent;border:none;border-radius:2px}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered{font-size:14px;line-height:20px;padding:0;display:block}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-selection__choice{line-height:20px;margin:5px;border:none;background-color:#23282d;border-radius:2px;color:#fff;padding:10px}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove{color:#e64545;margin-right:10px}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-search{margin:0}.select2 .selection .select2-selection.select2-selection--multiple .select2-selection__rendered .select2-search .select2-search__field{padding:0;margin:15px 10px;border:none;box-shadow:none;line-height:20px}.select2-container .select2-dropdown{background-color:#e5e5e5;border:none;border-radius:2px;margin:5px 0;box-shadow:0px 5px 21px rgba(0,0,0,0.1);z-index:500001}.select2-container .select2-dropdown .select2-search__field{border:none;box-shadow:none;border-radius:2px;margin:0}.select2-container .select2-dropdown .select2-search__field:focus{outline:none}.select2-container .select2-dropdown .select2-results .select2-results__options .select2-results__option[aria-selected=true]{color:#fff;background-color:#2a90fc}.select2-container .select2-dropdown .select2-results .select2-results__options .select2-results__option--highlighted{color:#fff;background-color:#23282d}.select2-container .select2-dropdown .select2-results .select2-results__options .li[aria-disabled=true]{display:none}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/min/ui-select.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"use strict";t.utilites.namespace("ui_elements.select"),t.ui_elements.select={selectClass:'.cherry-ui-select[data-filter="true"]:not([name*="__i__"]), .cherry-ui-select[multiple]:not([name*="__i__"])',wrapperClass:".widget, .postbox, .cherry-form",init:function(){e(document).on("ready.cherry-ui-elements-init",this.render.bind(this)).on("cherry-ui-elements-init",this.render.bind(this))},render:function(t){var i=t._target?t._target:e("body");e(this.selectClass,i).each(this.select2Init.bind(this))},select2Init:function(t,i){var s=e(i),r={placeholder:s.attr("placeholder")};s.select2(r).on("change.cherrySelect2",this.changeEvent.bind(this)).trigger("change.cherrySelect2")},changeEvent:function(e){this.switchState(e.currentTarget)},switchState:function(t){for(var i,s,r,n=e(t),c=n[0].length;c>=0;c--)i=e(n[0][c]),s=i.data(),r=e(n[0]).closest(this.wrapperClass),jQuery.isEmptyObject(s)||e("."+s.slave,r)[i[0].selected?"removeClass":"addClass"]("hide")}},t.ui_elements.select.init()}(jQuery,window.CherryJsCore);
1
+ !function(e,t){"use strict";t.utilites.namespace("ui_elements.select"),t.ui_elements.select={selectClass:'.cherry-ui-select[data-filter="true"]:not([name*="__i__"]), .cherry-ui-select[multiple]:not([name*="__i__"])',wrapperClass:".widget, .postbox, .cherry-form, .cherry-ui-repeater-item",init:function(){e(document).on("ready.cherry-ui-elements-init",this.render.bind(this)).on("cherry-ui-elements-init",this.render.bind(this))},render:function(t){var i=t._target?t._target:e("body");e(this.selectClass,i).each(this.select2Init.bind(this))},select2Init:function(t,i){var s=e(i),r={placeholder:s.attr("placeholder")};s.select2(r).on("change.cherrySelect2",this.changeEvent.bind(this)).trigger("change.cherrySelect2")},changeEvent:function(e){this.switchState(e.currentTarget)},switchState:function(t){for(var i,s,r,n=e(t),c=n[0].length;c>=0;c--)i=e(n[0][c]),s=i.data(),r=e(n[0]).closest(this.wrapperClass),jQuery.isEmptyObject(s)||e("."+s.slave,r)[i[0].selected?"removeClass":"addClass"]("hide")}},t.ui_elements.select.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-kit/_mixins.scss CHANGED
@@ -1,182 +1,15 @@
1
- @mixin button_base() {
2
- display: inline-block;
3
- text-decoration: none;
4
- font-size: 12px;
5
- line-height: 20px;
6
- font-weight: bold;
7
- padding: 15px 20px;
8
- color: #fff;
9
- text-transform: uppercase;
10
- border-radius: $border_radius_small;
11
- transition: all 200ms linear;
12
- box-shadow: $box_shadow;
13
- &:hover {
14
- color: #fff;
15
- box-shadow: none;
16
- }
17
- &:focus,
18
- &:active {
19
- outline: none;
20
- box-shadow: none;
21
- color: #fff;
22
- }
23
- }
24
-
25
- @mixin button_normal() {
26
- background: $dark_color_2;
27
- &:hover {
28
- background: $dark_color_2_h;
29
- }
30
- }
31
-
32
- @mixin button_primary() {
33
- background: $blue_color;
34
- &:hover {
35
- background: $blue_color_h;
36
- }
37
- }
38
-
39
- @mixin button_success() {
40
- background: $green_color;
41
- &:hover {
42
- background: $green_color_h;
43
- }
44
- }
45
-
46
- @mixin button_danger() {
47
- background: $red_color;
48
- &:hover {
49
- background: $red_color_h;
50
- }
51
- }
52
-
53
- @mixin button_warning() {
54
- background: $orange_color;
55
- &:hover {
56
- background: $orange_color_h;
57
- }
58
- }
59
-
60
  @mixin input() {
61
  font-size: 14px;
62
  line-height: 20px;
63
- color: $dark_color_1;
64
- background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
  padding: 10px 20px;
67
- height: 50px;
68
- border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
- }
74
- }
75
-
76
- @mixin button_icon( $icon ) {
77
- content: $icon;
78
- display: inline-block;
79
- font-family: dashicons;
80
- font-size: 16px;
81
- font-style: normal;
82
- font-weight: 400;
83
- height: 18px;
84
- line-height: 18px;
85
- text-align: center;
86
- text-decoration: inherit;
87
- transition: all 200ms linear;
88
- vertical-align: middle;
89
- }
90
-
91
- @mixin button_icon_before( $icon ) {
92
- &:before {
93
- @include button_icon( $icon );
94
- padding: 0 5px 0 0;
95
- }
96
- }
97
-
98
- @mixin button_icon_after( $icon ) {
99
- &:after {
100
- @include button_icon( $icon );
101
- padding: 0 0 0 5px;
102
- }
103
- }
104
-
105
- @mixin button_icon_middle( $icon ) {
106
- &:before {
107
- @include button_icon( $icon );
108
- margin: 0 -5px;
109
- }
110
- }
111
-
112
- @mixin link() {
113
- display: inline-block;
114
- text-decoration: none;
115
- font-size: 12px;
116
- line-height: 20px;
117
- font-weight: bold;
118
- color: $blue_color;
119
- text-transform: uppercase;
120
- transition: all 200ms linear;
121
- &:hover {
122
- color: $dark_color_1;
123
- box-shadow: none;
124
- }
125
- &:focus,
126
- &:active {
127
- outline: none;
128
- box-shadow: none;
129
- color: $blue_color;
130
- }
131
- }
132
-
133
- @mixin link_icon_before( $icon ) {
134
- &:before {
135
- @include button_icon( $icon );
136
- padding: 0 5px 0 0;
137
- color: $grey_color_4;
138
- }
139
- &:hover {
140
- &:before {
141
- color: $blue_color;
142
  }
143
- }
144
- }
145
-
146
- @mixin container() {
147
- padding: 30px;
148
- border: 2px solid $grey_color_2;
149
- background: $grey_color_3;
150
- border-radius: $border_radius_large;
151
- }
152
-
153
- @mixin container_heading() {
154
- margin: -30px -30px 30px -30px;
155
- border-radius: $border_radius_large $border_radius_large 0 0;
156
- border-bottom: 1px solid $grey_color_2;
157
- padding: 20px 30px;
158
- font-weight: bold;
159
- font-size: 16px;
160
- line-height: 18px;
161
- text-align: center;
162
- background: #fff;
163
- }
164
-
165
- @mixin box() {
166
- margin: 0 0 30px;
167
- padding: 20px;
168
- background: #fff;
169
- box-shadow: $box_shadow_box;
170
- border-radius: $border_radius;
171
  }
172
-
173
- @mixin box_heading() {
174
- margin: -20px -20px 20px -20px;
175
- border-radius: $border_radius_small $border_radius_small 0 0;
176
- border-bottom: 1px solid $grey_color_2;
177
- padding: 20px 30px;
178
- font-weight: bold;
179
- font-size: 16px;
180
- line-height: 18px;
181
- background: #fff;
182
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  @mixin input() {
2
  font-size: 14px;
3
  line-height: 20px;
4
+ color: $dark_color;
5
+ background-color: $bg_color;
6
  border-radius: $border_radius_extra_small;
7
  padding: 10px 20px;
8
+ min-height: 50px;
9
+ border: 1px solid $border_color;
10
  box-shadow: none;
11
  &:focus{
12
+ border-color: rgba(41, 143, 252, .6);
13
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-kit/_variables.scss CHANGED
@@ -1,23 +1,11 @@
1
- $dark_color_1: #23282d;
2
- $dark_color_2: #495159;
3
- $dark_color_2_h: #393f45;
4
- $grey_color_1: #96989a;
5
- $grey_color_2: #e5e5e5;
6
- $grey_color_3: #f1f1f1;
7
- $grey_color_4: #b4b7ba;
8
- $blue_color: #298ffc;
9
- $blue_color_h: #206ff4;
10
- $green_color: #48c569;
11
- $green_color_h: #3ba956;
12
- $red_color: #e54343;
13
- $red_color_h: #c73434;
14
- $orange_color: #faa730;
15
- $orange_color_h: #ee8425;
16
 
17
- $border_radius_extra_small: 2px;
18
- $border_radius_small: 4px;
19
- $border_radius_medium: 6px;
20
- $border_radius_large: 8px;
 
 
21
 
22
- $box_shadow: 0 5px 13px rgba(0,0,0,.18);
23
- $box_shadow_box: 0 8px 21px rgba(0,0,0,.1);
1
+ $light_color: #ffffff;
2
+ $dark_color: #23282d;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ $bg_color: #f1f1f1;
5
+ $bg_color_2: #e5e5e5;
6
+ $border_color: #dcdcdc;
7
+
8
+ $remove_color: #e64545;
9
+ $primary_color: #2a90fc;
10
 
11
+ $border_radius_extra_small: 2px;
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.js CHANGED
@@ -7,7 +7,7 @@
7
  CherryJsCore.utilites.namespace('ui_elements.select');
8
  CherryJsCore.ui_elements.select = {
9
  selectClass: '.cherry-ui-select[data-filter="true"]:not([name*="__i__"]), .cherry-ui-select[multiple]:not([name*="__i__"])',
10
- wrapperClass: '.widget, .postbox, .cherry-form',
11
 
12
  init: function () {
13
  $( document )
7
  CherryJsCore.utilites.namespace('ui_elements.select');
8
  CherryJsCore.ui_elements.select = {
9
  selectClass: '.cherry-ui-select[data-filter="true"]:not([name*="__i__"]), .cherry-ui-select[multiple]:not([name*="__i__"])',
10
+ wrapperClass: '.widget, .postbox, .cherry-form, .cherry-ui-repeater-item',
11
 
12
  init: function () {
13
  $( document )
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/assets/ui-select.scss CHANGED
@@ -14,7 +14,7 @@ label.cherry-label{
14
  select.cherry-ui-select{
15
  width: 100%;
16
  outline: 0 none;
17
- color: $dark_color_1;
18
  @include input();
19
  &:focus{
20
  border-color: none;
@@ -26,9 +26,10 @@ select.select2-hidden-accessible{
26
  display: none;
27
  }
28
  .select2{
29
- color: $dark_color_1;
30
- background-color: $grey_color_3;
31
  border-radius: $border_radius_extra_small;
 
32
  .selection{
33
  .select2-selection{
34
  &.select2-selection--single{
@@ -58,12 +59,12 @@ select.select2-hidden-accessible{
58
  line-height: 20px;
59
  margin: 5px;
60
  border: none;
61
- background-color: $dark_color_2;
62
  border-radius: $border_radius_extra_small;
63
  color: #fff;
64
  padding: 10px;
65
  .select2-selection__choice__remove{
66
- color: $red_color;
67
  margin-right: 10px;
68
  }
69
  }
@@ -87,7 +88,7 @@ select.select2-hidden-accessible{
87
  }
88
  .select2-container{
89
  .select2-dropdown{
90
- background-color: $grey_color_2;
91
  border: none;
92
  border-radius: $border_radius_extra_small;
93
  margin: 5px 0;
@@ -109,11 +110,11 @@ select.select2-hidden-accessible{
109
 
110
  &[aria-selected=true]{
111
  color: #fff;
112
- background-color: $green_color;
113
  }
114
  &--highlighted{
115
  color: #fff;
116
- background-color: $dark_color_2;
117
  }
118
  }
119
  .li[aria-disabled=true]{
14
  select.cherry-ui-select{
15
  width: 100%;
16
  outline: 0 none;
17
+ color: $dark_color;
18
  @include input();
19
  &:focus{
20
  border-color: none;
26
  display: none;
27
  }
28
  .select2{
29
+ color: $dark_color;
30
+ background-color: $bg_color;
31
  border-radius: $border_radius_extra_small;
32
+ border: 1px solid $border_color;
33
  .selection{
34
  .select2-selection{
35
  &.select2-selection--single{
59
  line-height: 20px;
60
  margin: 5px;
61
  border: none;
62
+ background-color: $dark_color;
63
  border-radius: $border_radius_extra_small;
64
  color: #fff;
65
  padding: 10px;
66
  .select2-selection__choice__remove{
67
+ color: $remove_color;
68
  margin-right: 10px;
69
  }
70
  }
88
  }
89
  .select2-container{
90
  .select2-dropdown{
91
+ background-color: $bg_color_2;
92
  border: none;
93
  border-radius: $border_radius_extra_small;
94
  margin: 5px 0;
110
 
111
  &[aria-selected=true]{
112
  color: #fff;
113
+ background-color: $primary_color;
114
  }
115
  &--highlighted{
116
  color: #fff;
117
+ background-color: $dark_color;
118
  }
119
  }
120
  .li[aria-disabled=true]{
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/ui-select.php CHANGED
@@ -62,10 +62,9 @@ if ( ! class_exists( 'UI_Select' ) ) {
62
  ),
63
  ),
64
  ),
65
- 'placeholder' => 'Select',
66
- 'label' => '',
67
- 'class' => '',
68
- 'master' => '',
69
  );
70
 
71
  /**
@@ -103,7 +102,7 @@ if ( ! class_exists( 'UI_Select' ) ) {
103
 
104
  $inline_style = $this->settings['inline_style'] ? 'style="' . esc_attr( $this->settings['inline_style'] ) . '"' : '' ;
105
 
106
- $html .= '<select id="' . esc_attr( $this->settings['id'] ) . '" class="cherry-ui-select" name="' . esc_attr( $name ) . '" size="' . esc_attr( $this->settings['size'] ) . '" ' . $multi_state . ' ' . $filter_state . ' placeholder="' . $this->settings['placeholder'] . '" ' . $inline_style . ' >';
107
  if ( $this->settings['options'] && ! empty( $this->settings['options'] ) && is_array( $this->settings['options'] ) ) {
108
  foreach ( $this->settings['options'] as $option => $option_value ) {
109
  if ( ! is_array( $this->settings['value'] ) ) {
62
  ),
63
  ),
64
  ),
65
+ 'label' => '',
66
+ 'class' => '',
67
+ 'master' => '',
 
68
  );
69
 
70
  /**
102
 
103
  $inline_style = $this->settings['inline_style'] ? 'style="' . esc_attr( $this->settings['inline_style'] ) . '"' : '' ;
104
 
105
+ $html .= '<select id="' . esc_attr( $this->settings['id'] ) . '" class="cherry-ui-select" name="' . esc_attr( $name ) . '" size="' . esc_attr( $this->settings['size'] ) . '" ' . $multi_state . ' ' . $filter_state . ' ' . $inline_style . ' >';
106
  if ( $this->settings['options'] && ! empty( $this->settings['options'] ) && is_array( $this->settings['options'] ) ) {
107
  foreach ( $this->settings['options'] as $option => $option_value ) {
108
  if ( ! is_array( $this->settings['value'] ) ) {
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/min/ui-slider.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}.cherry-ui-container .cherry-ui-container{margin:0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-slider-wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.cherry-slider-wrap .cherry-slider-input{-webkit-box-flex:0;-webkit-flex:0 1 10%;-ms-flex:0 1 10%;flex:0 1 10%;min-width:100px;max-width:200px}.cherry-slider-wrap .cherry-slider-holder{-webkit-box-flex:0;-webkit-flex:0 1 90%;-ms-flex:0 1 90%;flex:0 1 90%;min-width:200px;max-width:300px;margin-right:20px}.cherry-slider-wrap .cherry-slider-holder input[type=range]{-webkit-appearance:none;width:100%;margin:20px 0}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus{outline:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;box-shadow:none;background:#48c569;border-radius:25px;border:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-webkit-slider-thumb{box-shadow:5px 5px 13px rgba(0,0,0,0.18);border:5px solid #48c569;height:20px;width:20px;margin-top:-7px;border-radius:15px;background:#48c569;cursor:pointer;-webkit-appearance:none;-webkit-transition:all 250ms cubic-bezier(0.645, 0.045, 0.355, 1);transition:all 250ms cubic-bezier(0.645, 0.045, 0.355, 1)}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-webkit-slider-thumb{background:#f1f1f1;height:28px;width:28px;margin-top:-11.5px}.cherry-slider-wrap .cherry-slider-holder input[type=range]:hover::-webkit-slider-thumb{background:#f1f1f1;height:28px;width:28px;margin-top:-11.5px}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-webkit-slider-runnable-track{background:#48c569}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-moz-range-track{width:100%;height:5px;cursor:pointer;box-shadow:none;background:#48c569;border-radius:25px;border:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-moz-range-thumb{box-shadow:none;border:none;height:28px;width:28px;border-radius:15px;background:#48c569;cursor:pointer}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-track{width:100%;height:10px;cursor:pointer;background:#f1f1f1;border-color:transparent;color:transparent}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-fill-lower{background:#f1f1f1;border:none;border-radius:50px;box-shadow:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-fill-upper{background:#48c569;border:none;border-radius:50px;box-shadow:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-thumb{box-shadow:none;border:none;height:10px;width:10px;border-radius:15px;background:#495159;cursor:pointer}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-ms-fill-lower{background:#f1f1f1}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-ms-fill-upper{background:#48c569}.cherry-slider-wrap .cherry-input{margin:0;width:100%}
1
+ .cherry-ui-container{margin:10px 0 20px 0}.cherry-ui-container .cherry-ui-container{margin:0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-slider-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.cherry-slider-wrap .cherry-slider-input{-webkit-box-flex:0;-ms-flex:0 1 10%;flex:0 1 10%;min-width:100px;max-width:200px}.cherry-slider-wrap .cherry-slider-holder{-webkit-box-flex:0;-ms-flex:0 1 90%;flex:0 1 90%;min-width:200px;max-width:300px;margin-right:20px}.cherry-slider-wrap .cherry-slider-holder input[type=range]{-webkit-appearance:none;width:100%;margin:20px 0}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus{outline:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;box-shadow:none;background:#48c569;border-radius:25px;border:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-webkit-slider-thumb{box-shadow:5px 5px 13px rgba(0,0,0,0.18);border:5px solid #48c569;height:20px;width:20px;margin-top:-7px;border-radius:15px;background:#48c569;cursor:pointer;-webkit-appearance:none;-webkit-transition:all 250ms cubic-bezier(0.645, 0.045, 0.355, 1);transition:all 250ms cubic-bezier(0.645, 0.045, 0.355, 1)}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-webkit-slider-thumb{background:#f1f1f1;height:28px;width:28px;margin-top:-11.5px}.cherry-slider-wrap .cherry-slider-holder input[type=range]:hover::-webkit-slider-thumb{background:#f1f1f1;height:28px;width:28px;margin-top:-11.5px}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-webkit-slider-runnable-track{background:#48c569}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-moz-range-track{width:100%;height:5px;cursor:pointer;box-shadow:none;background:#48c569;border-radius:25px;border:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-moz-range-thumb{box-shadow:none;border:none;height:28px;width:28px;border-radius:15px;background:#48c569;cursor:pointer}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-track{width:100%;height:10px;cursor:pointer;background:#f1f1f1;border-color:transparent;color:transparent}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-fill-lower{background:#f1f1f1;border:none;border-radius:50px;box-shadow:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-fill-upper{background:#48c569;border:none;border-radius:50px;box-shadow:none}.cherry-slider-wrap .cherry-slider-holder input[type=range]::-ms-thumb{box-shadow:none;border:none;height:10px;width:10px;border-radius:15px;background:#495159;cursor:pointer}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-ms-fill-lower{background:#f1f1f1}.cherry-slider-wrap .cherry-slider-holder input[type=range]:focus::-ms-fill-upper{background:#48c569}.cherry-slider-wrap .cherry-input{margin:0;width:100%}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/assets/ui-kit/_mixins.scss CHANGED
@@ -17,7 +17,8 @@
17
  &:focus,
18
  &:active {
19
  outline: none;
20
- box-shadow: none;
 
21
  color: #fff;
22
  }
23
  }
@@ -64,12 +65,12 @@
64
  background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
  padding: 10px 20px;
67
- height: 50px;
68
  border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
  }
74
  }
75
 
@@ -125,7 +126,8 @@
125
  &:focus,
126
  &:active {
127
  outline: none;
128
- box-shadow: none;
 
129
  color: $blue_color;
130
  }
131
  }
@@ -179,4 +181,4 @@
179
  font-size: 16px;
180
  line-height: 18px;
181
  background: #fff;
182
- }
17
  &:focus,
18
  &:active {
19
  outline: none;
20
+ border-color: rgba(41, 143, 252, .6);
21
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
22
  color: #fff;
23
  }
24
  }
65
  background-color: $grey_color_3;
66
  border-radius: $border_radius_extra_small;
67
  padding: 10px 20px;
68
+ min-height: 50px;
69
  border: 1px solid $grey_color_3;
70
  box-shadow: none;
71
  &:focus{
72
+ border-color: rgba(41, 143, 252, .6);
73
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
74
  }
75
  }
76
 
126
  &:focus,
127
  &:active {
128
  outline: none;
129
+ border-color: rgba(41, 143, 252, .6);
130
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
131
  color: $blue_color;
132
  }
133
  }
181
  font-size: 16px;
182
  line-height: 18px;
183
  background: #fff;
184
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/min/ui-stepper.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-stepper{position:relative;max-width:100px}.cherry-ui-stepper input[type=number]{font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;height:50px;border:1px solid #f1f1f1;box-shadow:none;padding:10px 10px 10px 20px}.cherry-ui-stepper input[type=number]:focus{border-color:rgba(72,197,105,0.6);box-shadow:0 0 2px rgba(72,197,105,0.6)}.cherry-ui-stepper-input{min-width:90px;max-width:90px;text-align:center}
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.cherry-ui-stepper{position:relative;max-width:100px}.cherry-ui-stepper input[type=number]{font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px;min-height:50px;border:1px solid #dcdcdc;box-shadow:none}.cherry-ui-stepper input[type=number]:focus{border-color:rgba(41,143,252,0.6);box-shadow:0 0 2px rgba(41,143,252,0.6)}.cherry-ui-stepper-input{min-width:90px;max-width:90px;text-align:center}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-kit/_mixins.scss CHANGED
@@ -1,182 +1,15 @@
1
- @mixin button_base() {
2
- display: inline-block;
3
- text-decoration: none;
4
- font-size: 12px;
5
- line-height: 20px;
6
- font-weight: bold;
7
- padding: 15px 20px;
8
- color: #fff;
9
- text-transform: uppercase;
10
- border-radius: $border_radius_small;
11
- transition: all 200ms linear;
12
- box-shadow: $box_shadow;
13
- &:hover {
14
- color: #fff;
15
- box-shadow: none;
16
- }
17
- &:focus,
18
- &:active {
19
- outline: none;
20
- box-shadow: none;
21
- color: #fff;
22
- }
23
- }
24
-
25
- @mixin button_normal() {
26
- background: $dark_color_2;
27
- &:hover {
28
- background: $dark_color_2_h;
29
- }
30
- }
31
-
32
- @mixin button_primary() {
33
- background: $blue_color;
34
- &:hover {
35
- background: $blue_color_h;
36
- }
37
- }
38
-
39
- @mixin button_success() {
40
- background: $green_color;
41
- &:hover {
42
- background: $green_color_h;
43
- }
44
- }
45
-
46
- @mixin button_danger() {
47
- background: $red_color;
48
- &:hover {
49
- background: $red_color_h;
50
- }
51
- }
52
-
53
- @mixin button_warning() {
54
- background: $orange_color;
55
- &:hover {
56
- background: $orange_color_h;
57
- }
58
- }
59
-
60
  @mixin input() {
61
  font-size: 14px;
62
  line-height: 20px;
63
- color: $dark_color_1;
64
- background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
- padding: 10px 20px;
67
- height: 50px;
68
- border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
- }
74
- }
75
-
76
- @mixin button_icon( $icon ) {
77
- content: $icon;
78
- display: inline-block;
79
- font-family: dashicons;
80
- font-size: 16px;
81
- font-style: normal;
82
- font-weight: 400;
83
- height: 18px;
84
- line-height: 18px;
85
- text-align: center;
86
- text-decoration: inherit;
87
- transition: all 200ms linear;
88
- vertical-align: middle;
89
- }
90
-
91
- @mixin button_icon_before( $icon ) {
92
- &:before {
93
- @include button_icon( $icon );
94
- padding: 0 5px 0 0;
95
- }
96
- }
97
-
98
- @mixin button_icon_after( $icon ) {
99
- &:after {
100
- @include button_icon( $icon );
101
- padding: 0 0 0 5px;
102
- }
103
- }
104
-
105
- @mixin button_icon_middle( $icon ) {
106
- &:before {
107
- @include button_icon( $icon );
108
- margin: 0 -5px;
109
- }
110
- }
111
-
112
- @mixin link() {
113
- display: inline-block;
114
- text-decoration: none;
115
- font-size: 12px;
116
- line-height: 20px;
117
- font-weight: bold;
118
- color: $blue_color;
119
- text-transform: uppercase;
120
- transition: all 200ms linear;
121
- &:hover {
122
- color: $dark_color_1;
123
- box-shadow: none;
124
- }
125
- &:focus,
126
- &:active {
127
- outline: none;
128
- box-shadow: none;
129
- color: $blue_color;
130
- }
131
- }
132
-
133
- @mixin link_icon_before( $icon ) {
134
- &:before {
135
- @include button_icon( $icon );
136
- padding: 0 5px 0 0;
137
- color: $grey_color_4;
138
- }
139
- &:hover {
140
- &:before {
141
- color: $blue_color;
142
  }
143
- }
144
- }
145
-
146
- @mixin container() {
147
- padding: 30px;
148
- border: 2px solid $grey_color_2;
149
- background: $grey_color_3;
150
- border-radius: $border_radius_large;
151
- }
152
-
153
- @mixin container_heading() {
154
- margin: -30px -30px 30px -30px;
155
- border-radius: $border_radius_large $border_radius_large 0 0;
156
- border-bottom: 1px solid $grey_color_2;
157
- padding: 20px 30px;
158
- font-weight: bold;
159
- font-size: 16px;
160
- line-height: 18px;
161
- text-align: center;
162
- background: #fff;
163
- }
164
-
165
- @mixin box() {
166
- margin: 0 0 30px;
167
- padding: 20px;
168
- background: #fff;
169
- box-shadow: $box_shadow_box;
170
- border-radius: $border_radius;
171
  }
172
-
173
- @mixin box_heading() {
174
- margin: -20px -20px 20px -20px;
175
- border-radius: $border_radius_small $border_radius_small 0 0;
176
- border-bottom: 1px solid $grey_color_2;
177
- padding: 20px 30px;
178
- font-weight: bold;
179
- font-size: 16px;
180
- line-height: 18px;
181
- background: #fff;
182
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  @mixin input() {
2
  font-size: 14px;
3
  line-height: 20px;
4
+ color: $dark_color;
5
+ background-color: $bg_color;
6
  border-radius: $border_radius_extra_small;
7
+ padding: 10px;
8
+ min-height: 50px;
9
+ border: 1px solid $border_color;
10
  box-shadow: none;
11
  &:focus{
12
+ border-color: rgba(41, 143, 252, .6);
13
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-kit/_variables.scss CHANGED
@@ -1,23 +1,7 @@
1
- $dark_color_1: #23282d;
2
- $dark_color_2: #495159;
3
- $dark_color_2_h: #393f45;
4
- $grey_color_1: #96989a;
5
- $grey_color_2: #e5e5e5;
6
- $grey_color_3: #f1f1f1;
7
- $grey_color_4: #b4b7ba;
8
- $blue_color: #298ffc;
9
- $blue_color_h: #206ff4;
10
- $green_color: #48c569;
11
- $green_color_h: #3ba956;
12
- $red_color: #e54343;
13
- $red_color_h: #c73434;
14
- $orange_color: #faa730;
15
- $orange_color_h: #ee8425;
16
 
17
- $border_radius_extra_small: 2px;
18
- $border_radius_small: 4px;
19
- $border_radius_medium: 6px;
20
- $border_radius_large: 8px;
21
 
22
- $box_shadow: 0 5px 13px rgba(0,0,0,.18);
23
- $box_shadow_box: 0 8px 21px rgba(0,0,0,.1);
1
+ $light_color: #ffffff;
2
+ $dark_color: #23282d;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ $bg_color: #f1f1f1;
5
+ $border_color: #dcdcdc;
 
 
6
 
7
+ $border_radius_extra_small: 2px;
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/assets/ui-stepper.scss CHANGED
@@ -13,7 +13,6 @@ label.cherry-label{
13
  max-width: 100px;
14
  input[type=number]{
15
  @include input();
16
- padding: 10px 10px 10px 20px;
17
  }
18
 
19
  }
@@ -21,4 +20,4 @@ label.cherry-label{
21
  min-width: 90px;
22
  max-width: 90px;
23
  text-align: center;
24
- }
13
  max-width: 100px;
14
  input[type=number]{
15
  @include input();
 
16
  }
17
 
18
  }
20
  min-width: 90px;
21
  max-width: 90px;
22
  text-align: center;
23
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/ui-stepper.php CHANGED
@@ -70,7 +70,7 @@ if ( ! class_exists( 'UI_Stepper' ) ) {
70
  $html .= '<label class="cherry-label" for="' . esc_attr( $this->settings['id'] ) . '">' . esc_html( $this->settings['label'] ) . '</label> ';
71
  }
72
  $html .= '<div class="cherry-ui-stepper">';
73
- $html .= '<input type="number" id="' . esc_attr( $this->settings['id'] ) . '" class="cherry-ui-stepper-input" pattern="[0-5]+([\.,][0-5]+)?" name="' . esc_attr( $this->settings['name'] ) . '" value="' . esc_html( $this->settings['value'] ) . '" min="' . esc_html( $this->settings['min_value'] ) . '" max="' . esc_html( $this->settings['max_value'] ) . '" step="' . esc_html( $this->settings['step_value'] ) . '" placeholder="' . esc_attr( $this->settings['placeholder'] ) . '">';
74
  $html .= '</div>';
75
  $html .= '</div>';
76
 
70
  $html .= '<label class="cherry-label" for="' . esc_attr( $this->settings['id'] ) . '">' . esc_html( $this->settings['label'] ) . '</label> ';
71
  }
72
  $html .= '<div class="cherry-ui-stepper">';
73
+ $html .= '<input type="number" id="' . esc_attr( $this->settings['id'] ) . '" class="cherry-ui-stepper-input" name="' . esc_attr( $this->settings['name'] ) . '" value="' . esc_html( $this->settings['value'] ) . '" min="' . esc_html( $this->settings['min_value'] ) . '" max="' . esc_html( $this->settings['max_value'] ) . '" step="' . esc_html( $this->settings['step_value'] ) . '" placeholder="' . esc_attr( $this->settings['placeholder'] ) . '">';
74
  $html .= '</div>';
75
  $html .= '</div>';
76
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/min/ui-switcher.min.css CHANGED
@@ -1 +1 @@
1
- .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}.cherry-switcher-wrap{height:49px;border-radius:25px;display:inline-block;overflow:hidden;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry-switcher-wrap label{height:49px;background-color:#e54343;display:block;float:left;-webkit-transition:all 0.4s ease;transition:all 0.4s ease}.cherry-switcher-wrap label span{font-size:12px;line-height:19px;font-weight:800;text-transform:uppercase;color:#fff;padding:15px;text-align:center;display:block;opacity:1;-webkit-transition:all 0.4s ease;transition:all 0.4s ease}.cherry-switcher-wrap .sw-enable span{opacity:0}.cherry-switcher-wrap .sw-disable span{opacity:1}.cherry-switcher-wrap .state-marker{background-color:#fff;display:block;position:absolute;width:41px;height:41px;margin:4px;top:0;left:0;margin-left:4px;border-radius:25px;-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1)}.cherry-switcher-wrap .cherry-input-switcher{display:none}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .sw-enable{background-color:#48c569}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .sw-enable span{opacity:1}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .sw-disable{background-color:#48c569}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .sw-disable span{opacity:0}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .state-marker{left:100%;margin-left:-45px}.cherry-switcher-wrap.size-small{height:25px}.cherry-switcher-wrap.size-small label{height:25px}.cherry-switcher-wrap.size-small label span{font-size:10px;line-height:15px;padding:5px}.cherry-switcher-wrap.size-small .state-marker{width:17px;height:17px;margin-left:4px}.cherry-switcher-wrap.size-small .cherry-input-switcher-true:checked ~ .state-marker{margin-left:-22px}
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}.hide{display:none !important}.cherry-switcher-wrap{height:47px;border-radius:25px;display:inline-block;overflow:hidden;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid #dcdcdc}.cherry-switcher-wrap label{background-color:#f1f1f1;display:block;float:left;-webkit-transition:all 0.4s ease;transition:all 0.4s ease}.cherry-switcher-wrap label span{font-size:12px;line-height:18px;font-weight:900;text-transform:uppercase;color:#23282d;text-align:center;display:block;opacity:1;-webkit-transition:all 0.4s ease;transition:all 0.4s ease}.cherry-switcher-wrap .sw-enable{padding:15px 10px 15px 20px}.cherry-switcher-wrap .sw-enable span{opacity:0}.cherry-switcher-wrap .sw-disable{padding:15px 20px 15px 10px}.cherry-switcher-wrap .sw-disable span{opacity:1}.cherry-switcher-wrap .state-marker{background-color:#e64545;display:block;position:absolute;width:41px;height:41px;margin:3px;top:0;left:0;margin-left:4px;border-radius:25px;border-style:solid;border-width:1px;border-color:#e54545 #c13b3b #c13b3b #e54545;-webkit-transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);transition:all 0.4s cubic-bezier(0.77, 0, 0.175, 1);box-sizing:border-box}.cherry-switcher-wrap .state-marker:before{position:absolute;display:block;width:100%;height:100%;top:0;left:0;border-radius:50%;background-image:-webkit-linear-gradient(top, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);background-image:linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);content:''}.cherry-switcher-wrap .cherry-input-switcher{display:none}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .sw-enable span{opacity:1}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .sw-disable span{opacity:0}.cherry-switcher-wrap .cherry-input-switcher-true:checked ~ .state-marker{left:100%;margin-left:-45px;border-color:#43b05f #3b9b54 #3b9b54 #43b05f;background-color:#49c66a}.cherry-switcher-wrap.size-small{height:23px}.cherry-switcher-wrap.size-small label{height:23px;padding:0}.cherry-switcher-wrap.size-small label span{font-size:10px;line-height:15px;padding:5px}.cherry-switcher-wrap.size-small .state-marker{width:17px;height:17px;margin-left:4px}.cherry-switcher-wrap.size-small .cherry-input-switcher-true:checked ~ .state-marker{margin-left:-22px}
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/min/ui-switcher.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"use strict";e.utilites.namespace("ui_elements.switcher"),e.ui_elements.switcher={switcherClass:".cherry-switcher-wrap",inputTrueClass:".cherry-input-switcher-true",inputFalseClass:".cherry-input-switcher-false",containerClass:".cherry-ui-container",wrapperClass:".widget, .postbox, .cherry-form",init:function(){t(document).on("ready.cherry-ui-elements-init",this.addEvent.bind(this)).on("cherry-ui-elements-init",this.initState.bind(this))},addEvent:function(){t("body").on("click",this.switcherClass,this.switchState.bind(this)),this.initState()},initState:function(){for(var e,i=t(this.switcherClass),s=i.length-1;s>=0;s--)e=t(i[s]),this.switchState({currentTarget:e,initState:!0})},switchState:function(e){var i,s=t(e.currentTarget),r=t(this.inputTrueClass,s),a=t(this.inputFalseClass,s),n=r.data(),c=a.data(),h=s.closest(this.wrapperClass);e.initState||this.checkedRadio(r,a,r[0].checked),i=r[0].checked,jQuery.isEmptyObject(n)||t("."+n.slave,h)[i?"removeClass":"addClass"]("hide"),jQuery.isEmptyObject(c)||t("."+c.slave,h)[i?"addClass":"removeClass"]("hide")},checkedRadio:function(t,e,i){t.attr("checked",i?!1:!0),e.attr("checked",i?!0:!1).trigger("change")}},e.ui_elements.switcher.init()}(jQuery,window.CherryJsCore);
1
+ !function(t,e){"use strict";e.utilites.namespace("ui_elements.switcher"),e.ui_elements.switcher={switcherClass:".cherry-switcher-wrap",inputTrueClass:".cherry-input-switcher-true",inputFalseClass:".cherry-input-switcher-false",containerClass:".cherry-ui-container",wrapperClass:".widget, .postbox, .cherry-form, .cherry-ui-repeater-item",init:function(){t(document).on("ready.cherry-ui-elements-init",this.addEvent.bind(this)).on("cherry-ui-elements-init",this.initState.bind(this))},addEvent:function(){t("body").on("click",this.switcherClass,this.switchState.bind(this)),this.initState()},initState:function(){for(var e,i=t(this.switcherClass),s=i.length-1;s>=0;s--)e=t(i[s]),this.switchState({currentTarget:e,initState:!0})},switchState:function(e){var i,s=t(e.currentTarget),r=t(this.inputTrueClass,s),a=t(this.inputFalseClass,s),n=r.data(),c=a.data(),h=s.closest(this.wrapperClass);e.initState||this.checkedRadio(r,a,r[0].checked),i=r[0].checked,jQuery.isEmptyObject(n)||t("."+n.slave,h)[i?"removeClass":"addClass"]("hide"),jQuery.isEmptyObject(c)||t("."+c.slave,h)[i?"addClass":"removeClass"]("hide")},checkedRadio:function(t,e,i){t.attr("checked",i?!1:!0),e.attr("checked",i?!0:!1).trigger("change")}},e.ui_elements.switcher.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-kit/_variables.scss CHANGED
@@ -1,23 +1,15 @@
1
- $dark_color_1: #23282d;
2
- $dark_color_2: #495159;
3
- $dark_color_2_h: #393f45;
4
- $grey_color_1: #96989a;
5
- $grey_color_2: #e5e5e5;
6
- $grey_color_3: #f1f1f1;
7
- $grey_color_4: #b4b7ba;
8
- $blue_color: #298ffc;
9
- $blue_color_h: #206ff4;
10
- $green_color: #48c569;
11
- $green_color_h: #3ba956;
12
- $red_color: #e54343;
13
- $red_color_h: #c73434;
14
- $orange_color: #faa730;
15
- $orange_color_h: #ee8425;
16
 
17
- $border_radius_extra_small: 2px;
18
- $border_radius_small: 4px;
19
- $border_radius_medium: 6px;
20
- $border_radius_large: 8px;
21
 
22
- $box_shadow: 0 5px 13px rgba(0,0,0,.18);
23
- $box_shadow_box: 0 8px 21px rgba(0,0,0,.1);
 
 
 
 
 
 
 
1
+ $light_color: #ffffff;
2
+ $dark_color: #23282d;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ $switcher_bg_color: #f1f1f1;
5
+ $switcher_border_color: #dcdcdc;
 
 
6
 
7
+ $true_state_gradint_1: #71e18f;
8
+ $true_state_gradint_2: #49c66a;
9
+ $true_state_outset_1: #43b05f;
10
+ $true_state_outset_2: #3b9b54;
11
+
12
+ $false_state_gradint_1: #f98888;
13
+ $false_state_gradint_2: #e64545;
14
+ $false_state_outset_1: #e54545;
15
+ $false_state_outset_2: #c13b3b;
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.js CHANGED
@@ -10,7 +10,7 @@
10
  inputTrueClass: '.cherry-input-switcher-true',
11
  inputFalseClass: '.cherry-input-switcher-false',
12
  containerClass: '.cherry-ui-container',
13
- wrapperClass: '.widget, .postbox, .cherry-form',
14
 
15
  init: function () {
16
  $( document )
10
  inputTrueClass: '.cherry-input-switcher-true',
11
  inputFalseClass: '.cherry-input-switcher-false',
12
  containerClass: '.cherry-ui-container',
13
+ wrapperClass: '.widget, .postbox, .cherry-form, .cherry-ui-repeater-item',
14
 
15
  init: function () {
16
  $( document )
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/assets/ui-switcher.scss CHANGED
@@ -1,5 +1,4 @@
1
  @import "ui-kit/variables";
2
- @import "ui-kit/mixins";
3
 
4
  .cherry-ui-container{
5
  margin: 10px 0 20px 0;
@@ -12,26 +11,25 @@ label.cherry-label{
12
  display: none !important;
13
  }
14
  .cherry-switcher-wrap{
15
- height: 49px;
16
  border-radius: 25px;
17
  display: inline-block;
18
  overflow: hidden;
19
  position: relative;
20
  cursor: pointer;
21
  user-select: none;
 
22
  label{
23
- height: 49px;
24
- background-color: $red_color;
25
  display: block;
26
  float: left;
27
  transition: all 0.4s ease;
28
  span{
29
  font-size: 12px;
30
- line-height: 19px;
31
- font-weight: 800;
32
  text-transform: uppercase;
33
- color: #fff;
34
- padding: 15px;
35
  text-align: center;
36
  display: block;
37
  opacity: 1;
@@ -39,40 +37,55 @@ label.cherry-label{
39
  }
40
  }
41
  .sw-enable{
 
42
  span{
43
  opacity: 0;
44
  }
45
  }
46
  .sw-disable{
 
47
  span{
48
  opacity: 1;
49
  }
50
  }
51
  .state-marker{
52
- background-color: #fff;
53
  display: block;
54
  position: absolute;
55
  width: 41px;
56
  height: 41px;
57
- margin: 4px;
58
  top: 0;
59
  left: 0;
60
  margin-left: 4px;
61
  border-radius: 25px;
 
 
 
62
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
 
 
 
 
 
 
 
 
 
 
 
 
63
  }
64
  .cherry-input-switcher{
65
  display: none;
66
  }
67
  .cherry-input-switcher-true:checked{
68
  ~ .sw-enable{
69
- background-color: $green_color;
70
  span{
71
  opacity: 1;
72
  }
73
  }
74
  ~ .sw-disable{
75
- background-color: $green_color;
76
  span{
77
  opacity: 0;
78
  }
@@ -80,13 +93,16 @@ label.cherry-label{
80
  ~ .state-marker{
81
  left: 100%;
82
  margin-left: -45px;
 
 
83
  }
84
  }
85
 
86
  &.size-small{
87
- height: 25px;
88
  label{
89
- height: 25px;
 
90
  span{
91
  font-size: 10px;
92
  line-height: 15px;
1
  @import "ui-kit/variables";
 
2
 
3
  .cherry-ui-container{
4
  margin: 10px 0 20px 0;
11
  display: none !important;
12
  }
13
  .cherry-switcher-wrap{
14
+ height: 47px;
15
  border-radius: 25px;
16
  display: inline-block;
17
  overflow: hidden;
18
  position: relative;
19
  cursor: pointer;
20
  user-select: none;
21
+ border: 1px solid $switcher_border_color;
22
  label{
23
+ background-color: $switcher_bg_color;
 
24
  display: block;
25
  float: left;
26
  transition: all 0.4s ease;
27
  span{
28
  font-size: 12px;
29
+ line-height: 18px;
30
+ font-weight: 900;
31
  text-transform: uppercase;
32
+ color: $dark_color;
 
33
  text-align: center;
34
  display: block;
35
  opacity: 1;
37
  }
38
  }
39
  .sw-enable{
40
+ padding: 15px 10px 15px 20px;
41
  span{
42
  opacity: 0;
43
  }
44
  }
45
  .sw-disable{
46
+ padding: 15px 20px 15px 10px;
47
  span{
48
  opacity: 1;
49
  }
50
  }
51
  .state-marker{
52
+ background-color: $false_state_gradint_2;
53
  display: block;
54
  position: absolute;
55
  width: 41px;
56
  height: 41px;
57
+ margin: 3px;
58
  top: 0;
59
  left: 0;
60
  margin-left: 4px;
61
  border-radius: 25px;
62
+ border-style: solid;
63
+ border-width: 1px;
64
+ border-color: $false_state_outset_1 $false_state_outset_2 $false_state_outset_2 $false_state_outset_1;
65
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
66
+ box-sizing: border-box;
67
+ &:before {
68
+ position: absolute;
69
+ display: block;
70
+ width: 100%;
71
+ height: 100%;
72
+ top: 0;
73
+ left: 0;
74
+ border-radius: 50%;
75
+ background-image: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
76
+ content: '';
77
+ }
78
  }
79
  .cherry-input-switcher{
80
  display: none;
81
  }
82
  .cherry-input-switcher-true:checked{
83
  ~ .sw-enable{
 
84
  span{
85
  opacity: 1;
86
  }
87
  }
88
  ~ .sw-disable{
 
89
  span{
90
  opacity: 0;
91
  }
93
  ~ .state-marker{
94
  left: 100%;
95
  margin-left: -45px;
96
+ border-color: $true_state_outset_1 $true_state_outset_2 $true_state_outset_2 $true_state_outset_1;
97
+ background-color: $true_state_gradint_2;
98
  }
99
  }
100
 
101
  &.size-small{
102
+ height: 23px;
103
  label{
104
+ height: 23px;
105
+ padding: 0;
106
  span{
107
  font-size: 10px;
108
  line-height: 15px;
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/min/ui-text.min.css CHANGED
@@ -1,20 +1 @@
1
- .cherry-ui-container {
2
- margin: 10px 0 20px 0; }
3
-
4
- label.cherry-label {
5
- margin: 0 0 5px 0;
6
- display: block; }
7
-
8
- input.cherry-ui-text {
9
- font-size: 14px;
10
- line-height: 20px;
11
- color: #23282d;
12
- background-color: #f1f1f1;
13
- border-radius: 2px;
14
- padding: 10px 20px;
15
- min-height: 50px;
16
- border: 1px solid #f1f1f1;
17
- box-shadow: none; }
18
- input.cherry-ui-text:focus {
19
- border-color: rgba(72, 197, 105, 0.6);
20
- box-shadow: 0 0 2px rgba(72, 197, 105, 0.6); }
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}input.cherry-ui-text{font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;min-height:50px;border:1px solid #dcdcdc;box-shadow:none}input.cherry-ui-text:focus{border-color:rgba(41,143,252,0.6);box-shadow:0 0 2px rgba(41,143,252,0.6)}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-kit/_mixins.scss CHANGED
@@ -1,182 +1,15 @@
1
- @mixin button_base() {
2
- display: inline-block;
3
- text-decoration: none;
4
- font-size: 12px;
5
- line-height: 20px;
6
- font-weight: bold;
7
- padding: 15px 20px;
8
- color: #fff;
9
- text-transform: uppercase;
10
- border-radius: $border_radius_small;
11
- transition: all 200ms linear;
12
- box-shadow: $box_shadow;
13
- &:hover {
14
- color: #fff;
15
- box-shadow: none;
16
- }
17
- &:focus,
18
- &:active {
19
- outline: none;
20
- box-shadow: none;
21
- color: #fff;
22
- }
23
- }
24
-
25
- @mixin button_normal() {
26
- background: $dark_color_2;
27
- &:hover {
28
- background: $dark_color_2_h;
29
- }
30
- }
31
-
32
- @mixin button_primary() {
33
- background: $blue_color;
34
- &:hover {
35
- background: $blue_color_h;
36
- }
37
- }
38
-
39
- @mixin button_success() {
40
- background: $green_color;
41
- &:hover {
42
- background: $green_color_h;
43
- }
44
- }
45
-
46
- @mixin button_danger() {
47
- background: $red_color;
48
- &:hover {
49
- background: $red_color_h;
50
- }
51
- }
52
-
53
- @mixin button_warning() {
54
- background: $orange_color;
55
- &:hover {
56
- background: $orange_color_h;
57
- }
58
- }
59
-
60
  @mixin input() {
61
  font-size: 14px;
62
  line-height: 20px;
63
- color: $dark_color_1;
64
- background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
  padding: 10px 20px;
67
  min-height: 50px;
68
- border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
- }
74
- }
75
-
76
- @mixin button_icon( $icon ) {
77
- content: $icon;
78
- display: inline-block;
79
- font-family: dashicons;
80
- font-size: 16px;
81
- font-style: normal;
82
- font-weight: 400;
83
- height: 18px;
84
- line-height: 18px;
85
- text-align: center;
86
- text-decoration: inherit;
87
- transition: all 200ms linear;
88
- vertical-align: middle;
89
- }
90
-
91
- @mixin button_icon_before( $icon ) {
92
- &:before {
93
- @include button_icon( $icon );
94
- padding: 0 5px 0 0;
95
- }
96
- }
97
-
98
- @mixin button_icon_after( $icon ) {
99
- &:after {
100
- @include button_icon( $icon );
101
- padding: 0 0 0 5px;
102
- }
103
- }
104
-
105
- @mixin button_icon_middle( $icon ) {
106
- &:before {
107
- @include button_icon( $icon );
108
- margin: 0 -5px;
109
- }
110
- }
111
-
112
- @mixin link() {
113
- display: inline-block;
114
- text-decoration: none;
115
- font-size: 12px;
116
- line-height: 20px;
117
- font-weight: bold;
118
- color: $blue_color;
119
- text-transform: uppercase;
120
- transition: all 200ms linear;
121
- &:hover {
122
- color: $dark_color_1;
123
- box-shadow: none;
124
- }
125
- &:focus,
126
- &:active {
127
- outline: none;
128
- box-shadow: none;
129
- color: $blue_color;
130
- }
131
- }
132
-
133
- @mixin link_icon_before( $icon ) {
134
- &:before {
135
- @include button_icon( $icon );
136
- padding: 0 5px 0 0;
137
- color: $grey_color_4;
138
- }
139
- &:hover {
140
- &:before {
141
- color: $blue_color;
142
  }
143
- }
144
- }
145
-
146
- @mixin container() {
147
- padding: 30px;
148
- border: 2px solid $grey_color_2;
149
- background: $grey_color_3;
150
- border-radius: $border_radius_large;
151
- }
152
-
153
- @mixin container_heading() {
154
- margin: -30px -30px 30px -30px;
155
- border-radius: $border_radius_large $border_radius_large 0 0;
156
- border-bottom: 1px solid $grey_color_2;
157
- padding: 20px 30px;
158
- font-weight: bold;
159
- font-size: 16px;
160
- line-height: 18px;
161
- text-align: center;
162
- background: #fff;
163
- }
164
-
165
- @mixin box() {
166
- margin: 0 0 30px;
167
- padding: 20px;
168
- background: #fff;
169
- box-shadow: $box_shadow_box;
170
- border-radius: $border_radius;
171
  }
172
-
173
- @mixin box_heading() {
174
- margin: -20px -20px 20px -20px;
175
- border-radius: $border_radius_small $border_radius_small 0 0;
176
- border-bottom: 1px solid $grey_color_2;
177
- padding: 20px 30px;
178
- font-weight: bold;
179
- font-size: 16px;
180
- line-height: 18px;
181
- background: #fff;
182
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  @mixin input() {
2
  font-size: 14px;
3
  line-height: 20px;
4
+ color: $dark_color;
5
+ background-color: $bg_color;
6
  border-radius: $border_radius_extra_small;
7
  padding: 10px 20px;
8
  min-height: 50px;
9
+ border: 1px solid $border_color;
10
  box-shadow: none;
11
  &:focus{
12
+ border-color: rgba(41, 143, 252, .6);
13
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-kit/_variables.scss CHANGED
@@ -1,23 +1,7 @@
1
- $dark_color_1: #23282d;
2
- $dark_color_2: #495159;
3
- $dark_color_2_h: #393f45;
4
- $grey_color_1: #96989a;
5
- $grey_color_2: #e5e5e5;
6
- $grey_color_3: #f1f1f1;
7
- $grey_color_4: #b4b7ba;
8
- $blue_color: #298ffc;
9
- $blue_color_h: #206ff4;
10
- $green_color: #48c569;
11
- $green_color_h: #3ba956;
12
- $red_color: #e54343;
13
- $red_color_h: #c73434;
14
- $orange_color: #faa730;
15
- $orange_color_h: #ee8425;
16
 
17
- $border_radius_extra_small: 2px;
18
- $border_radius_small: 4px;
19
- $border_radius_medium: 6px;
20
- $border_radius_large: 8px;
21
 
22
- $box_shadow: 0 5px 13px rgba(0,0,0,.18);
23
- $box_shadow_box: 0 8px 21px rgba(0,0,0,.1);
1
+ $light_color: #ffffff;
2
+ $dark_color: #23282d;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ $bg_color: #f1f1f1;
5
+ $border_color: #dcdcdc;
 
 
6
 
7
+ $border_radius_extra_small: 2px;
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/assets/ui-text.scss CHANGED
@@ -10,4 +10,4 @@ label.cherry-label{
10
  }
11
  input.cherry-ui-text{
12
  @include input();
13
- }
10
  }
11
  input.cherry-ui-text{
12
  @include input();
13
+ }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/min/ui-textarea.min.css CHANGED
@@ -1,22 +1 @@
1
- .cherry-ui-container {
2
- margin: 10px 0 20px 0; }
3
-
4
- label.cherry-label {
5
- margin: 0 0 5px 0;
6
- display: block; }
7
-
8
- textarea.cherry-ui-textarea {
9
- width: 100%;
10
- font-size: 14px;
11
- line-height: 20px;
12
- color: #23282d;
13
- background-color: #f1f1f1;
14
- border-radius: 2px;
15
- padding: 10px 20px;
16
- min-height: 50px;
17
- border: 1px solid #f1f1f1;
18
- box-shadow: none;
19
- height: 200px; }
20
- textarea.cherry-ui-textarea:focus {
21
- border-color: rgba(72, 197, 105, 0.6);
22
- box-shadow: 0 0 2px rgba(72, 197, 105, 0.6); }
1
+ .cherry-ui-container{margin:10px 0 20px 0}label.cherry-label{margin:0 0 5px 0;display:block}textarea.cherry-ui-textarea{width:100%;font-size:14px;line-height:20px;color:#23282d;background-color:#f1f1f1;border-radius:2px;padding:10px 20px;min-height:50px;border:1px solid #dcdcdc;box-shadow:none;height:200px}textarea.cherry-ui-textarea:focus{border-color:rgba(41,143,252,0.6);box-shadow:0 0 2px rgba(41,143,252,0.6)}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-kit/_mixins.scss CHANGED
@@ -1,182 +1,15 @@
1
- @mixin button_base() {
2
- display: inline-block;
3
- text-decoration: none;
4
- font-size: 12px;
5
- line-height: 20px;
6
- font-weight: bold;
7
- padding: 15px 20px;
8
- color: #fff;
9
- text-transform: uppercase;
10
- border-radius: $border_radius_small;
11
- transition: all 200ms linear;
12
- box-shadow: $box_shadow;
13
- &:hover {
14
- color: #fff;
15
- box-shadow: none;
16
- }
17
- &:focus,
18
- &:active {
19
- outline: none;
20
- box-shadow: none;
21
- color: #fff;
22
- }
23
- }
24
-
25
- @mixin button_normal() {
26
- background: $dark_color_2;
27
- &:hover {
28
- background: $dark_color_2_h;
29
- }
30
- }
31
-
32
- @mixin button_primary() {
33
- background: $blue_color;
34
- &:hover {
35
- background: $blue_color_h;
36
- }
37
- }
38
-
39
- @mixin button_success() {
40
- background: $green_color;
41
- &:hover {
42
- background: $green_color_h;
43
- }
44
- }
45
-
46
- @mixin button_danger() {
47
- background: $red_color;
48
- &:hover {
49
- background: $red_color_h;
50
- }
51
- }
52
-
53
- @mixin button_warning() {
54
- background: $orange_color;
55
- &:hover {
56
- background: $orange_color_h;
57
- }
58
- }
59
-
60
  @mixin input() {
61
  font-size: 14px;
62
  line-height: 20px;
63
- color: $dark_color_1;
64
- background-color: $grey_color_3;
65
  border-radius: $border_radius_extra_small;
66
  padding: 10px 20px;
67
  min-height: 50px;
68
- border: 1px solid $grey_color_3;
69
  box-shadow: none;
70
  &:focus{
71
- border-color: rgba(72,197,105,.6);
72
- box-shadow: 0 0 2px rgba(72,197,105,.6);
73
- }
74
- }
75
-
76
- @mixin button_icon( $icon ) {
77
- content: $icon;
78
- display: inline-block;
79
- font-family: dashicons;
80
- font-size: 16px;
81
- font-style: normal;
82
- font-weight: 400;
83
- height: 18px;
84
- line-height: 18px;
85
- text-align: center;
86
- text-decoration: inherit;
87
- transition: all 200ms linear;
88
- vertical-align: middle;
89
- }
90
-
91
- @mixin button_icon_before( $icon ) {
92
- &:before {
93
- @include button_icon( $icon );
94
- padding: 0 5px 0 0;
95
- }
96
- }
97
-
98
- @mixin button_icon_after( $icon ) {
99
- &:after {
100
- @include button_icon( $icon );
101
- padding: 0 0 0 5px;
102
- }
103
- }
104
-
105
- @mixin button_icon_middle( $icon ) {
106
- &:before {
107
- @include button_icon( $icon );
108
- margin: 0 -5px;
109
- }
110
- }
111
-
112
- @mixin link() {
113
- display: inline-block;
114
- text-decoration: none;
115
- font-size: 12px;
116
- line-height: 20px;
117
- font-weight: bold;
118
- color: $blue_color;
119
- text-transform: uppercase;
120
- transition: all 200ms linear;
121
- &:hover {
122
- color: $dark_color_1;
123
- box-shadow: none;
124
- }
125
- &:focus,
126
- &:active {
127
- outline: none;
128
- box-shadow: none;
129
- color: $blue_color;
130
- }
131
- }
132
-
133
- @mixin link_icon_before( $icon ) {
134
- &:before {
135
- @include button_icon( $icon );
136
- padding: 0 5px 0 0;
137
- color: $grey_color_4;
138
- }
139
- &:hover {
140
- &:before {
141
- color: $blue_color;
142
  }
143
- }
144
- }
145
-
146
- @mixin container() {
147
- padding: 30px;
148
- border: 2px solid $grey_color_2;
149
- background: $grey_color_3;
150
- border-radius: $border_radius_large;
151
- }
152
-
153
- @mixin container_heading() {
154
- margin: -30px -30px 30px -30px;
155
- border-radius: $border_radius_large $border_radius_large 0 0;
156
- border-bottom: 1px solid $grey_color_2;
157
- padding: 20px 30px;
158
- font-weight: bold;
159
- font-size: 16px;
160
- line-height: 18px;
161
- text-align: center;
162
- background: #fff;
163
- }
164
-
165
- @mixin box() {
166
- margin: 0 0 30px;
167
- padding: 20px;
168
- background: #fff;
169
- box-shadow: $box_shadow_box;
170
- border-radius: $border_radius;
171
  }
172
-
173
- @mixin box_heading() {
174
- margin: -20px -20px 20px -20px;
175
- border-radius: $border_radius_small $border_radius_small 0 0;
176
- border-bottom: 1px solid $grey_color_2;
177
- padding: 20px 30px;
178
- font-weight: bold;
179
- font-size: 16px;
180
- line-height: 18px;
181
- background: #fff;
182
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  @mixin input() {
2
  font-size: 14px;
3
  line-height: 20px;
4
+ color: $dark_color;
5
+ background-color: $bg_color;
6
  border-radius: $border_radius_extra_small;
7
  padding: 10px 20px;
8
  min-height: 50px;
9
+ border: 1px solid $border_color;
10
  box-shadow: none;
11
  &:focus{
12
+ border-color: rgba(41, 143, 252, .6);
13
+ box-shadow: 0 0 2px rgba(41, 143, 252, .6);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-kit/_variables.scss CHANGED
@@ -1,23 +1,7 @@
1
- $dark_color_1: #23282d;
2
- $dark_color_2: #495159;
3
- $dark_color_2_h: #393f45;
4
- $grey_color_1: #96989a;
5
- $grey_color_2: #e5e5e5;
6
- $grey_color_3: #f1f1f1;
7
- $grey_color_4: #b4b7ba;
8
- $blue_color: #298ffc;
9
- $blue_color_h: #206ff4;
10
- $green_color: #48c569;
11
- $green_color_h: #3ba956;
12
- $red_color: #e54343;
13
- $red_color_h: #c73434;
14
- $orange_color: #faa730;
15
- $orange_color_h: #ee8425;
16
 
17
- $border_radius_extra_small: 2px;
18
- $border_radius_small: 4px;
19
- $border_radius_medium: 6px;
20
- $border_radius_large: 8px;
21
 
22
- $box_shadow: 0 5px 13px rgba(0,0,0,.18);
23
- $box_shadow_box: 0 8px 21px rgba(0,0,0,.1);
1
+ $light_color: #ffffff;
2
+ $dark_color: #23282d;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ $bg_color: #f1f1f1;
5
+ $border_color: #dcdcdc;
 
 
6
 
7
+ $border_radius_extra_small: 2px;
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/assets/ui-textarea.scss CHANGED
@@ -12,4 +12,4 @@ textarea.cherry-ui-textarea{
12
  width: 100%;
13
  @include input();
14
  height: 200px;
15
- }
12
  width: 100%;
13
  @include input();
14
  height: 200px;
15
+ }
cherry-framework/modules/cherry-ui-elements/ui-element.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Framework
6
  * @subpackage Abstract Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
5
  * @package Cherry_Framework
6
  * @subpackage Abstract Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
cherry-framework/modules/cherry-utility/cherry-utility.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Utility
4
  * Description: Multiple utility functions
5
- * Version: 1.1.5
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,9 +10,9 @@
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
- * @version 1.1.5
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
@@ -53,7 +53,7 @@ if ( ! class_exists( 'Cherry_Utility' ) ) {
53
  'meta-data',
54
  ),
55
  'meta_key' => array(
56
- 'term_thumb' => 'cherry_thumb',
57
  ),
58
  );
59
 
2
  /**
3
  * Module Name: Utility
4
  * Description: Multiple utility functions
5
+ * Version: 1.1.6
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
+ * @version 1.1.6
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
53
  'meta-data',
54
  ),
55
  'meta_key' => array(
56
+ 'term_thumb' => 'cherry_terms_thumbnails',
57
  ),
58
  );
59
 
cherry-framework/modules/cherry-utility/inc/cherry-attributes-utilit.php CHANGED
@@ -92,11 +92,12 @@ if ( ! class_exists( 'Cherry_Attributes_Utilit' ) ) {
92
  );
93
  $args = wp_parse_args( $args, $default_args );
94
  $html = '' ;
 
95
 
96
  if ( filter_var( $args['visible'], FILTER_VALIDATE_BOOLEAN ) ) {
97
  if ( 'term' === $type ) {
98
  $text = $object->description;
99
- } elseif ( 'post_content' === $args['content_type'] || 'post_excerpt' === $args['content_type'] && empty( $object->$args['content_type'] ) ) {
100
  $text = get_the_content();
101
  } else {
102
  $text = get_the_excerpt();
92
  );
93
  $args = wp_parse_args( $args, $default_args );
94
  $html = '' ;
95
+ $content_type = $args['content_type'];
96
 
97
  if ( filter_var( $args['visible'], FILTER_VALIDATE_BOOLEAN ) ) {
98
  if ( 'term' === $type ) {
99
  $text = $object->description;
100
+ } elseif ( 'post_content' === $content_type || 'post_excerpt' === $content_type && empty( $object->$content_type ) ) {
101
  $text = get_the_content();
102
  } else {
103
  $text = get_the_excerpt();
cherry-framework/modules/cherry-utility/inc/cherry-satellite-utilit.php CHANGED
@@ -114,17 +114,53 @@ if ( ! class_exists( 'Cherry_Satellite_Utilit' ) ) {
114
  * @return array
115
  */
116
  public function get_thumbnail_size_array( $size ) {
117
- global $_wp_additional_image_sizes;
 
 
 
 
 
 
118
 
119
- if ( array_key_exists( $size, $_wp_additional_image_sizes ) ) {
120
- $size_array = $_wp_additional_image_sizes[ $size ];
121
  } else {
122
- $size_array = $_wp_additional_image_sizes['post-thumbnail'];
123
  }
124
 
125
  return $size_array;
126
  }
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  /**
129
  * Output content method.
130
  *
@@ -147,12 +183,23 @@ if ( ! class_exists( 'Cherry_Satellite_Utilit' ) ) {
147
  * @param [type] $key - slug, term_id.
148
  * @return array
149
  */
150
- public function get_terms_array( $tax = 'category', $key = 'slug' ) {
151
  $terms = array();
 
 
 
 
 
 
 
 
152
  $all_terms = (array) get_terms( $tax, array( 'hide_empty' => 0, 'hierarchical' => 0 ) );
 
 
 
153
 
154
  foreach ( $all_terms as $term ) {
155
- $terms[ $term->$key ] = $term->name;
156
  }
157
 
158
  return $terms;
114
  * @return array
115
  */
116
  public function get_thumbnail_size_array( $size ) {
117
+ $sizes = $this->get_image_sizes();
118
+
119
+ if ( isset( $sizes[ $size ] ) ) {
120
+ $size_array = $sizes[ $size ];
121
+
122
+ } else if ( isset( $sizes['post-thumbnail'] ) ) {
123
+ $size_array = $sizes['post-thumbnail'];
124
 
 
 
125
  } else {
126
+ $size_array = $sizes['thumbnail'];
127
  }
128
 
129
  return $size_array;
130
  }
131
 
132
+ /**
133
+ * Get size information for all currently-registered image sizes.
134
+ *
135
+ * @global $_wp_additional_image_sizes
136
+ * @uses get_intermediate_image_sizes()
137
+ * @link https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
138
+ * @since 1.1.6
139
+ * @return array $sizes Data for all currently-registered image sizes.
140
+ */
141
+ function get_image_sizes() {
142
+ global $_wp_additional_image_sizes;
143
+
144
+ $sizes = array();
145
+
146
+ foreach ( get_intermediate_image_sizes() as $_size ) {
147
+ if ( in_array( $_size, array( 'thumbnail', 'medium', 'medium_large', 'large' ) ) ) {
148
+ $sizes[ $_size ]['width'] = get_option( "{$_size}_size_w" );
149
+ $sizes[ $_size ]['height'] = get_option( "{$_size}_size_h" );
150
+ $sizes[ $_size ]['crop'] = (bool) get_option( "{$_size}_crop" );
151
+
152
+ } elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
153
+ $sizes[ $_size ] = array(
154
+ 'width' => $_wp_additional_image_sizes[ $_size ]['width'],
155
+ 'height' => $_wp_additional_image_sizes[ $_size ]['height'],
156
+ 'crop' => $_wp_additional_image_sizes[ $_size ]['crop'],
157
+ );
158
+ }
159
+ }
160
+
161
+ return $sizes;
162
+ }
163
+
164
  /**
165
  * Output content method.
166
  *
183
  * @param [type] $key - slug, term_id.
184
  * @return array
185
  */
186
+ public function get_terms_array( $tax = array( 'category' ), $key = 'slug' ) {
187
  $terms = array();
188
+ $tax = is_array( $tax ) ? $tax : array( $tax ) ;
189
+
190
+ foreach ( $tax as $key => $value ) {
191
+ if ( ! taxonomy_exists( $value ) ) {
192
+ unset( $tax[ $key ] );
193
+ }
194
+ }
195
+
196
  $all_terms = (array) get_terms( $tax, array( 'hide_empty' => 0, 'hierarchical' => 0 ) );
197
+ if ( empty( $all_terms ) || is_wp_error( $all_terms ) ) {
198
+ return '';
199
+ }
200
 
201
  foreach ( $all_terms as $term ) {
202
+ $terms[ $term->slug ] = $term->name;
203
  }
204
 
205
  return $terms;
cherry-framework/modules/cherry-widget-factory/cherry-widget-factory.php CHANGED
@@ -12,7 +12,7 @@
12
  * @subpackage Modules
13
  * @version 1.2.1
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
12
  * @subpackage Modules
13
  * @version 1.2.1
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
cherry-framework/modules/cherry-widget-factory/inc/class-cherry-abstract-widget.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Framework
6
  * @subpackage Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
5
  * @package Cherry_Framework
6
  * @subpackage Class
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
cherry-framework/modules/cherry5-insert-shortcode/assets/cherry-insert-shortcode.scss CHANGED
@@ -14,21 +14,29 @@ $shadow: 0px 5px 21px rgba(0, 0, 0, 0.1); //Shadow.
14
  $border: 1px solid rgba(0, 0, 0, 0.1) ;
15
 
16
  .cherry5-is{
17
- &__open-button.button{
18
- color: $color-3;
19
- font-weight: 400;
 
 
20
  text-transform: capitalize;
21
- letter-spacing: 1.1px;
22
- box-shadow: none;
23
- border: 1px solid #495159;
24
- &:hover{
25
- color: $color-3;
26
- };
27
  .cherry5-insert-shortcode-icon {
28
  margin-right: 5px;
29
  display: inline-block;
30
  line-height: 1.1;
31
  }
 
 
 
 
 
 
32
  }
33
  &__icon{
34
  width: 18px;
14
  $border: 1px solid rgba(0, 0, 0, 0.1) ;
15
 
16
  .cherry5-is{
17
+ &__open-button{
18
+ padding: 0 7px;
19
+ margin-right: 5px;
20
+ margin-bottom: 4px;
21
+ vertical-align: top;
22
  text-transform: capitalize;
23
+ box-sizing: border-box;
24
+ white-space: nowrap;
25
+ //height: 28px;
26
+ text-decoration: none;
27
+ font-weight: normal;
28
+ line-height: 26px;
29
  .cherry5-insert-shortcode-icon {
30
  margin-right: 5px;
31
  display: inline-block;
32
  line-height: 1.1;
33
  }
34
+ @media screen and (max-width: 782px) {
35
+ height: auto;
36
+ line-height: normal;
37
+ padding: 6px 14px;
38
+ vertical-align: middle;
39
+ }
40
  }
41
  &__icon{
42
  width: 18px;
cherry-framework/modules/cherry5-insert-shortcode/assets/min/cherry-insert-shortcode.min.css CHANGED
@@ -1 +1 @@
1
- .cherry5-is__open-button.button{color:#fff;font-weight:400;text-transform:capitalize;letter-spacing:1.1px;box-shadow:none;border:1px solid #495159}.cherry5-is__open-button.button:hover{color:#fff}.cherry5-is__open-button.button .cherry5-insert-shortcode-icon{margin-right:5px;display:inline-block;line-height:1.1}.cherry5-is__icon{width:18px;height:18px;margin-right:10px;line-height:22px;vertical-align:text-top}.cherry5-is__modal-window{position:fixed;display:none;top:0px;right:0;left:0;bottom:0;z-index:99999;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cherry5-is__modal-window.show{display:-webkit-box;display:-ms-flexbox;display:flex}@media (min-width: 780px){.cherry5-is__modal-window{top:32px}}.cherry5-is__background{background-color:#000;position:absolute;width:100%;height:100%;top:0;left:0;-webkit-animation-name:simple-fade-out;animation-name:simple-fade-out;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:0.25s;animation-duration:0.25s;-webkit-animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1);animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1)}.open .cherry5-is__background{-webkit-animation-name:simple-fade-in;animation-name:simple-fade-in;-webkit-animation-timing-function:cubic-bezier(0.445, 0.05, 0.55, 0.95);animation-timing-function:cubic-bezier(0.445, 0.05, 0.55, 0.95)}.cherry5-is__popup{background-color:#fff;-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-ms-flex-item-align:center;align-self:center;height:100%;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;width:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all 0.5s ease;transition:all 0.5s ease;-webkit-animation-name:close-pop-up;animation-name:close-pop-up;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:0.4s;animation-duration:0.4s;-webkit-animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1);animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1)}.open .cherry5-is__popup{-webkit-animation-name:open-pop-up;animation-name:open-pop-up}@media (min-width: 961px){.cherry5-is__popup{height:85%;-webkit-box-flex:0;-ms-flex:0 1 85%;flex:0 1 85%;box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1)}}.cherry5-is__popup-header{border-bottom:1px solid #e5e5e5}.cherry5-is__popup-header-inner{display:-webkit-box;display:-ms-flexbox;display:flex}.cherry5-is__popup-title{-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;padding:10px;margin:0}@media (min-width: 961px){.cherry5-is__popup-title{padding:15px}}.cherry5-is__close-button{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;padding:10px;border-left:1px solid #e5e5e5;cursor:pointer;box-sizing:border-box;width:43px;padding:10px;-webkit-transition:box-shadow .3s ease-in-out, color .3s ease-in-out;transition:box-shadow .3s ease-in-out, color .3s ease-in-out;box-shadow:inset 0px 0px 0px rgba(41,143,252,0)}.cherry5-is__close-button:hover{color:#298ffc;outline:none;box-shadow:inset 0px 0px 10px rgba(41,143,252,0.5)}@media (min-width: 961px){.cherry5-is__close-button{padding:15px;width:50px}}.cherry5-is__popup-body{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;min-height:50%;position:relative}.cherry5-is__popup-sidebar{position:absolute;width:100%;height:100%;z-index:100;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;right:100%;margin-right:-41px;-webkit-transition:right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),margin-right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);transition:right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),margin-right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry5-is__popup-sidebar.open{right:0%;margin-right:-1px}@media (min-width: 961px){.cherry5-is__popup-sidebar{position:relative;-webkit-box-flex:0;-ms-flex:0 1 50%;flex:0 1 50%;-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;width:inherit;right:inherit;margin-right:0}}@media (min-width: 1200px){.cherry5-is__popup-sidebar{-webkit-box-flex:0;-ms-flex:0 1 50%;flex:0 1 50%}}@media (min-width: 1500px){.cherry5-is__popup-sidebar{-webkit-box-flex:0;-ms-flex:0 1 30%;flex:0 1 30%}}.cherry5-is__sidebar-button{min-height:100%;-webkit-box-flex:0;-ms-flex:0 1 44px;flex:0 1 44px;border-top:none;border-left:1px solid rgba(0,0,0,0.1);border-right:1px solid rgba(0,0,0,0.1);background:#fff;cursor:pointer;position:relative;box-sizing:border-box}.cherry5-is__sidebar-button .close,.cherry5-is__sidebar-button .open{position:absolute;top:50%;left:50%;font-size:45px;width:38px;height:44px;margin:-22px 0 0 -20px;text-align:left}.cherry5-is__sidebar-button .open{display:block}.cherry5-is__sidebar-button .close{display:none}.cherry5-is__popup-sidebar.open .cherry5-is__sidebar-button .open{display:none}.cherry5-is__popup-sidebar.open .cherry5-is__sidebar-button .close{display:block}@media (min-width: 961px){.cherry5-is__sidebar-button{display:none}}.cherry5-is__sidebar-list{background-color:#fff;box-sizing:border-box;overflow-y:scroll;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-component__title{margin:10px 15px 15px}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-accordion__title [class*="icon"],.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul [class*="icon"]{float:left;text-align:left;margin-right:10px;line-height:0.9}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings{box-shadow:none;border-radius:0;border-left:0;border-right:0}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings__content{background:#e5e5e5;overflow:hidden;box-shadow:inset 0px 0px 10px rgba(163,163,163,0.3)}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul{margin:15px 20px}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul .cherry5-is__get-shotcode{color:#23282d;-webkit-transition:color 350ms ease-in-out;transition:color 350ms ease-in-out;background:none;display:block;width:100%;text-align:left;padding:0;margin:0;border:none;line-height:1.5}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul .cherry5-is__get-shotcode:hover,.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul .cherry5-is__get-shotcode.show{color:#298ffc}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul li+li{margin-top:15px}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings+.cherry-settings{margin-top:0;border-top:0}.cherry5-is__popup-section{box-sizing:border-box;width:100%;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;padding-left:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.cherry5-is__popup-section .cherry-component>.cherry-component__title,.cherry5-is__popup-section .cherry-component>.cherry-component__description{margin:20px}.cherry5-is__popup-section .cherry-accordion .cherry-component__content .cherry-settings,.cherry5-is__popup-section .cherry-toggle .cherry-component__content .cherry-settings{border-radius:0;border-right:0;border-left:0}.cherry5-is__popup-section .cherry-tab>.cherry-tab__body{border-radius:0}.cherry5-is__popup-section .cherry-tab>.cherry-tab__body .cherry-tab__tabs{border-radius:0;border-left:0;border-bottom:0}.cherry5-is__popup-section .cherry-tab>.cherry-tab__body .cherry-tab__content{border-radius:0;border-bottom:0;border-right:0}@media (min-width: 961px){.cherry5-is__popup-section{padding-left:0}}.cherry5-is__shortcodes-options{-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%}@media (min-width: 961px){.cherry5-is__shortcodes-options{position:relative;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%}}.cherry5-is__content-area{padding:10px 10px 10px 20px;border-bottom:1px solid rgba(0,0,0,0.1)}@media (min-width: 961px){.cherry5-is__content-area{padding:15px}}.cherry5-is__content-area-title{margin-top:0}.cherry5-is__shortcode-form{display:none}.cherry5-is__shortcode-form-header{border-bottom:1px solid rgba(0,0,0,0.1)}.cherry5-is__shortcode-form-header .cherry5-is__shortcode-title,.cherry5-is__shortcode-form-header .cherry5-is__shortcode-description{margin:20px}.cherry5-is__shortcode-form.show{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:100%}.cherry5-is__popup-footer{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto;border-top:1px solid #e5e5e5;padding:10px;background:#fff}@media (min-width: 961px){.cherry5-is__popup-footer{padding:15px}}.cherry5-is__insert-button{float:right;-webkit-transition:all .5s ease;transition:all .5s ease}@media (max-width: 961px){.cherry5-is__insert-button{padding:9px 12px}}.cherry5-is__insert-button[disabled]{opacity:0.8;cursor:default;pointer-events:none}.cherry5-is.cherry-ui-kit .cherry-component{padding:0}.cherry5-is__has-not-option{font-size:1.5rem;text-align:center;-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cherry-scroll{overflow-y:scroll}.cherry-scroll::-webkit-scrollbar{width:10px;height:10px;margin:-5px}.cherry-scroll::-webkit-scrollbar-button{width:0px;height:0px}.cherry-scroll::-webkit-scrollbar-thumb{background-color:#298ffc;border:none;border-radius:5px}.cherry-scroll::-webkit-scrollbar-thumb:hover,.cherry-scroll::-webkit-scrollbar-thumb:active{background:#206ff4}.cherry-scroll::-webkit-scrollbar-track{background-color:#e5e5e5;border:none;border-radius:5px}.cherry-scroll::-webkit-scrollbar-corner{background:transparent}.cherry-loader{display:block;width:20px;height:20px;-webkit-animation:spin .7s linear infinite;animation:spin .7s linear infinite;border:3px solid #e5e5e5;border-top:3px solid #3498DB;border-radius:50%}.cherry-loader-wrapper{-webkit-transition:opacity .5s ease, -webkit-transform .5s ease;transition:opacity .5s ease, -webkit-transform .5s ease;transition:opacity .5s ease, transform .5s ease;transition:opacity .5s ease, transform .5s ease, -webkit-transform .5s ease;-webkit-transform:scale(0);transform:scale(0);opacity:0;position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-13px 0 0 -13px}.cherry-loader-wrapper.show{display:block;-webkit-transform:scale(1);transform:scale(1);opacity:1}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes open-pop-up{0%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes open-pop-up{0%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes close-pop-up{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}}@keyframes close-pop-up{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}}@-webkit-keyframes simple-fade-in{0%{opacity:0}100%{opacity:0.7}}@keyframes simple-fade-in{0%{opacity:0}100%{opacity:0.7}}@-webkit-keyframes simple-fade-out{0%{opacity:0.7}100%{opacity:0}}@keyframes simple-fade-out{0%{opacity:0.7}100%{opacity:0}}
1
+ .cherry5-is__open-button{padding:0 7px;margin-right:5px;margin-bottom:4px;vertical-align:top;text-transform:capitalize;box-sizing:border-box;white-space:nowrap;text-decoration:none;font-weight:normal;line-height:26px}.cherry5-is__open-button .cherry5-insert-shortcode-icon{margin-right:5px;display:inline-block;line-height:1.1}@media screen and (max-width: 782px){.cherry5-is__open-button{height:auto;line-height:normal;padding:6px 14px;vertical-align:middle}}.cherry5-is__icon{width:18px;height:18px;margin-right:10px;line-height:22px;vertical-align:text-top}.cherry5-is__modal-window{position:fixed;display:none;top:0px;right:0;left:0;bottom:0;z-index:99999;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cherry5-is__modal-window.show{display:-webkit-box;display:-ms-flexbox;display:flex}@media (min-width: 780px){.cherry5-is__modal-window{top:32px}}.cherry5-is__background{background-color:#000;position:absolute;width:100%;height:100%;top:0;left:0;-webkit-animation-name:simple-fade-out;animation-name:simple-fade-out;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:0.25s;animation-duration:0.25s;-webkit-animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1);animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1)}.open .cherry5-is__background{-webkit-animation-name:simple-fade-in;animation-name:simple-fade-in;-webkit-animation-timing-function:cubic-bezier(0.445, 0.05, 0.55, 0.95);animation-timing-function:cubic-bezier(0.445, 0.05, 0.55, 0.95)}.cherry5-is__popup{background-color:#fff;-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0;-ms-flex-item-align:center;align-self:center;height:100%;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;width:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all 0.5s ease;transition:all 0.5s ease;-webkit-animation-name:close-pop-up;animation-name:close-pop-up;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:0.4s;animation-duration:0.4s;-webkit-animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1);animation-timing-function:cubic-bezier(0.645, 0.045, 0.355, 1)}.open .cherry5-is__popup{-webkit-animation-name:open-pop-up;animation-name:open-pop-up}@media (min-width: 961px){.cherry5-is__popup{height:85%;-webkit-box-flex:0;-ms-flex:0 1 85%;flex:0 1 85%;box-shadow:0px 5px 21px rgba(0,0,0,0.1);border-radius:5px;border:1px solid rgba(0,0,0,0.1)}}.cherry5-is__popup-header{border-bottom:1px solid #e5e5e5}.cherry5-is__popup-header-inner{display:-webkit-box;display:-ms-flexbox;display:flex}.cherry5-is__popup-title{-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;padding:10px;margin:0}@media (min-width: 961px){.cherry5-is__popup-title{padding:15px}}.cherry5-is__close-button{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;padding:10px;border-left:1px solid #e5e5e5;cursor:pointer;box-sizing:border-box;width:43px;padding:10px;-webkit-transition:box-shadow .3s ease-in-out, color .3s ease-in-out;transition:box-shadow .3s ease-in-out, color .3s ease-in-out;box-shadow:inset 0px 0px 0px rgba(41,143,252,0)}.cherry5-is__close-button:hover{color:#298ffc;outline:none;box-shadow:inset 0px 0px 10px rgba(41,143,252,0.5)}@media (min-width: 961px){.cherry5-is__close-button{padding:15px;width:50px}}.cherry5-is__popup-body{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;min-height:50%;position:relative}.cherry5-is__popup-sidebar{position:absolute;width:100%;height:100%;z-index:100;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;right:100%;margin-right:-41px;-webkit-transition:right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),margin-right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);transition:right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),margin-right 0.5s cubic-bezier(0.215, 0.61, 0.355, 1)}.cherry5-is__popup-sidebar.open{right:0%;margin-right:-1px}@media (min-width: 961px){.cherry5-is__popup-sidebar{position:relative;-webkit-box-flex:0;-ms-flex:0 1 50%;flex:0 1 50%;-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;width:inherit;right:inherit;margin-right:0}}@media (min-width: 1200px){.cherry5-is__popup-sidebar{-webkit-box-flex:0;-ms-flex:0 1 50%;flex:0 1 50%}}@media (min-width: 1500px){.cherry5-is__popup-sidebar{-webkit-box-flex:0;-ms-flex:0 1 30%;flex:0 1 30%}}.cherry5-is__sidebar-button{min-height:100%;-webkit-box-flex:0;-ms-flex:0 1 44px;flex:0 1 44px;border-top:none;border-left:1px solid rgba(0,0,0,0.1);border-right:1px solid rgba(0,0,0,0.1);background:#fff;cursor:pointer;position:relative;box-sizing:border-box}.cherry5-is__sidebar-button .close,.cherry5-is__sidebar-button .open{position:absolute;top:50%;left:50%;font-size:45px;width:38px;height:44px;margin:-22px 0 0 -20px;text-align:left}.cherry5-is__sidebar-button .open{display:block}.cherry5-is__sidebar-button .close{display:none}.cherry5-is__popup-sidebar.open .cherry5-is__sidebar-button .open{display:none}.cherry5-is__popup-sidebar.open .cherry5-is__sidebar-button .close{display:block}@media (min-width: 961px){.cherry5-is__sidebar-button{display:none}}.cherry5-is__sidebar-list{background-color:#fff;box-sizing:border-box;overflow-y:scroll;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-component__title{margin:10px 15px 15px}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-accordion__title [class*="icon"],.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul [class*="icon"]{float:left;text-align:left;margin-right:10px;line-height:0.9}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings{box-shadow:none;border-radius:0;border-left:0;border-right:0}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings__content{background:#e5e5e5;overflow:hidden;box-shadow:inset 0px 0px 10px rgba(163,163,163,0.3)}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul{margin:15px 20px}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul .cherry5-is__get-shotcode{color:#23282d;-webkit-transition:color 350ms ease-in-out;transition:color 350ms ease-in-out;background:none;display:block;width:100%;text-align:left;padding:0;margin:0;border:none;line-height:1.5}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul .cherry5-is__get-shotcode:hover,.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul .cherry5-is__get-shotcode.show{color:#298ffc}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings ul li+li{margin-top:15px}.cherry5-is__sidebar-list .cherry-component.cherry-accordion .cherry-settings+.cherry-settings{margin-top:0;border-top:0}.cherry5-is__popup-section{box-sizing:border-box;width:100%;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%;padding-left:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.cherry5-is__popup-section .cherry-component>.cherry-component__title,.cherry5-is__popup-section .cherry-component>.cherry-component__description{margin:20px}.cherry5-is__popup-section .cherry-accordion .cherry-component__content .cherry-settings,.cherry5-is__popup-section .cherry-toggle .cherry-component__content .cherry-settings{border-radius:0;border-right:0;border-left:0}.cherry5-is__popup-section .cherry-tab>.cherry-tab__body{border-radius:0}.cherry5-is__popup-section .cherry-tab>.cherry-tab__body .cherry-tab__tabs{border-radius:0;border-left:0;border-bottom:0}.cherry5-is__popup-section .cherry-tab>.cherry-tab__body .cherry-tab__content{border-radius:0;border-bottom:0;border-right:0}@media (min-width: 961px){.cherry5-is__popup-section{padding-left:0}}.cherry5-is__shortcodes-options{-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%}@media (min-width: 961px){.cherry5-is__shortcodes-options{position:relative;-webkit-box-flex:0;-ms-flex:0 1 100%;flex:0 1 100%}}.cherry5-is__content-area{padding:10px 10px 10px 20px;border-bottom:1px solid rgba(0,0,0,0.1)}@media (min-width: 961px){.cherry5-is__content-area{padding:15px}}.cherry5-is__content-area-title{margin-top:0}.cherry5-is__shortcode-form{display:none}.cherry5-is__shortcode-form-header{border-bottom:1px solid rgba(0,0,0,0.1)}.cherry5-is__shortcode-form-header .cherry5-is__shortcode-title,.cherry5-is__shortcode-form-header .cherry5-is__shortcode-description{margin:20px}.cherry5-is__shortcode-form.show{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:100%}.cherry5-is__popup-footer{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto;border-top:1px solid #e5e5e5;padding:10px;background:#fff}@media (min-width: 961px){.cherry5-is__popup-footer{padding:15px}}.cherry5-is__insert-button{float:right;-webkit-transition:all .5s ease;transition:all .5s ease}@media (max-width: 961px){.cherry5-is__insert-button{padding:9px 12px}}.cherry5-is__insert-button[disabled]{opacity:0.8;cursor:default;pointer-events:none}.cherry5-is.cherry-ui-kit .cherry-component{padding:0}.cherry5-is__has-not-option{font-size:1.5rem;text-align:center;-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cherry-scroll{overflow-y:scroll}.cherry-scroll::-webkit-scrollbar{width:10px;height:10px;margin:-5px}.cherry-scroll::-webkit-scrollbar-button{width:0px;height:0px}.cherry-scroll::-webkit-scrollbar-thumb{background-color:#298ffc;border:none;border-radius:5px}.cherry-scroll::-webkit-scrollbar-thumb:hover,.cherry-scroll::-webkit-scrollbar-thumb:active{background:#206ff4}.cherry-scroll::-webkit-scrollbar-track{background-color:#e5e5e5;border:none;border-radius:5px}.cherry-scroll::-webkit-scrollbar-corner{background:transparent}.cherry-loader{display:block;width:20px;height:20px;-webkit-animation:spin .7s linear infinite;animation:spin .7s linear infinite;border:3px solid #e5e5e5;border-top:3px solid #3498DB;border-radius:50%}.cherry-loader-wrapper{-webkit-transition:opacity .5s ease, -webkit-transform .5s ease;transition:opacity .5s ease, -webkit-transform .5s ease;transition:opacity .5s ease, transform .5s ease;transition:opacity .5s ease, transform .5s ease, -webkit-transform .5s ease;-webkit-transform:scale(0);transform:scale(0);opacity:0;position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-13px 0 0 -13px}.cherry-loader-wrapper.show{display:block;-webkit-transform:scale(1);transform:scale(1);opacity:1}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes open-pop-up{0%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes open-pop-up{0%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes close-pop-up{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}}@keyframes close-pop-up{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(0.5);transform:scale(0.5);opacity:0}}@-webkit-keyframes simple-fade-in{0%{opacity:0}100%{opacity:0.7}}@keyframes simple-fade-in{0%{opacity:0}100%{opacity:0.7}}@-webkit-keyframes simple-fade-out{0%{opacity:0.7}100%{opacity:0}}@keyframes simple-fade-out{0%{opacity:0.7}100%{opacity:0}}
cherry-framework/modules/cherry5-insert-shortcode/cherry5-insert-shortcode.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Insert Shortcode
4
  * Description: The module allows you to add shortcodes from editor tinyMCE.
5
- * Version: 1.0.0
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,9 +10,9 @@
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
- * @version 1.0.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
@@ -36,7 +36,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
36
  * @since 1.0.0
37
  * @var string
38
  */
39
- private $module_version = '1.0.0';
40
 
41
  /**
42
  * A reference to an instance of this class.
@@ -48,7 +48,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
48
  private static $instance = null;
49
 
50
  /**
51
- * Module arguments
52
  *
53
  * @since 1.0.0
54
  * @var array
@@ -57,7 +57,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
57
  private $args = array();
58
 
59
  /**
60
- * Core instance
61
  *
62
  * @since 1.0.0
63
  * @var object
@@ -68,8 +68,8 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
68
  /**
69
  * UI element instance.
70
  *
71
- * @since 1.0.0
72
- * @var object
73
  * @access public
74
  */
75
  public $ui_elements = null;
@@ -77,8 +77,8 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
77
  /**
78
  * Cherry Interface Builder instance.
79
  *
80
- * @since 1.0.0
81
- * @var object
82
  * @access public
83
  */
84
  public $cherry_interface_builder = null;
@@ -104,8 +104,8 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
104
  /**
105
  * Shortcode list.
106
  *
107
- * @since 1.0.0
108
- * @var object
109
  * @access private
110
  */
111
  private $added_shortcodes = array();
@@ -187,7 +187,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
187
  wp_enqueue_style( 'cherry5-insert-shortcode' );
188
  wp_enqueue_script( 'cherry5-insert-shortcode-js' );
189
 
190
- $dev_mode = ( constant( 'WP_DEBUG' ) ) ? 'true' : 'false' ;
191
  wp_localize_script( 'cherry-js-core', 'cherry5InsertShortcode', array( 'devMode' => $dev_mode ) );
192
  }
193
  }
@@ -201,7 +201,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
201
  */
202
  public function register_shortcode( $args = array() ) {
203
  $this->added_shortcodes = $args;
204
- add_filter( 'cherry5-is__shortcode_list', array( $this, 'add_shortcode' ), 10, 1 );
205
  }
206
 
207
  /**
@@ -211,7 +211,7 @@ if ( ! class_exists( 'Cherry5_Insert_Shortcode' ) ) {
211
  * @access public
212
  * @return array
213
  */
214
- public function add_shortcode( $shortcodes = array() ) {
215
  $plugin_slug = $this->added_shortcodes['slug'];
216
  $new_shortcodes = $this->added_shortcodes['shortcodes'];
217
  $this->added_shortcodes['shortcodes'] = array();
2
  /**
3
  * Module Name: Insert Shortcode
4
  * Description: The module allows you to add shortcodes from editor tinyMCE.
5
+ * Version: 1.0.2
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
10
  *
11
  * @package Cherry_Framework
12
  * @subpackage Modules
13
+ * @version 1.0.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
16
  * @link http://www.cherryframework.com/
17
  * @license http://www.gnu.org/licenses/gpl-3.0.html
18
  */
36
  * @since 1.0.0
37
  * @var string
38
  */
39
+ private $module_version = '1.0.2';
40
 
41
  /**
42
  * A reference to an instance of this class.
48
  private static $instance = null;
49
 
50
  /**
51
+ * Module arguments.
52
  *
53
  * @since 1.0.0
54
  * @var array
57
  private $args = array();
58
 
59
  /**
60
+ * Core instance.
61
  *
62
  * @since 1.0.0
63
  * @var object
68
  /**
69
  * UI element instance.
70
  *
71
+ * @since 1.0.0
72
+ * @var object
73
  * @access public
74
  */
75
  public $ui_elements = null;
77
  /**
78
  * Cherry Interface Builder instance.
79
  *
80
+ * @since 1.0.0
81
+ * @var object
82
  * @access public
83
  */
84
  public $cherry_interface_builder = null;
104
  /**
105
  * Shortcode list.
106
  *
107
+ * @since 1.0.0
108
+ * @var object
109
  * @access private
110
  */
111
  private $added_shortcodes = array();
187
  wp_enqueue_style( 'cherry5-insert-shortcode' );
188
  wp_enqueue_script( 'cherry5-insert-shortcode-js' );
189
 
190
+ $dev_mode = ( constant( 'WP_DEBUG' ) ) ? 'true' : 'false';
191
  wp_localize_script( 'cherry-js-core', 'cherry5InsertShortcode', array( 'devMode' => $dev_mode ) );
192
  }
193
  }
201
  */
202
  public function register_shortcode( $args = array() ) {
203
  $this->added_shortcodes = $args;
204
+ add_filter( 'cherry5-is__shortcode_list', array( $this, 'add_new_shortcode' ), 10, 1 );
205
  }
206
 
207
  /**
211
  * @access public
212
  * @return array
213
  */
214
+ public function add_new_shortcode( $shortcodes = array() ) {
215
  $plugin_slug = $this->added_shortcodes['slug'];
216
  $new_shortcodes = $this->added_shortcodes['shortcodes'];
217
  $this->added_shortcodes['shortcodes'] = array();
cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-button.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Framework
6
  * @subpackage Modules
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
@@ -59,9 +59,9 @@ if ( ! class_exists( 'Cherry5_Insertion_Button' ) ) {
59
  $args = apply_filters( 'cherry5-is__open-button', array(
60
  'id' => '',
61
  'name' => '',
62
- 'style' => 'normal',
63
  'content' => '<span class="cherry5-is__icon dashicons dashicons-plus"></span>' . esc_html__( 'Cherry shortcodes', 'cherry-framework' ),
64
- 'class' => 'cherry5-is__open-button button',
65
  ) );
66
 
67
  echo $this->parent_self->ui_elements->get_ui_element_instance( 'button', $args )->render();
5
  * @package Cherry_Framework
6
  * @subpackage Modules
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
59
  $args = apply_filters( 'cherry5-is__open-button', array(
60
  'id' => '',
61
  'name' => '',
62
+ 'style' => 'primary',
63
  'content' => '<span class="cherry5-is__icon dashicons dashicons-plus"></span>' . esc_html__( 'Cherry shortcodes', 'cherry-framework' ),
64
+ 'class' => 'cherry5-is__open-button',
65
  ) );
66
 
67
  echo $this->parent_self->ui_elements->get_ui_element_instance( 'button', $args )->render();
cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Cherry_Framework
6
  * @subpackage Modules
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
@@ -30,8 +30,8 @@ if ( ! class_exists( 'Cherry5_Insertion_Popup' ) ) {
30
  /**
31
  * Module arguments
32
  *
33
- * @since 1.0.0
34
- * @var array
35
  * @access private
36
  */
37
  private $args = array();
@@ -39,8 +39,8 @@ if ( ! class_exists( 'Cherry5_Insertion_Popup' ) ) {
39
  /**
40
  * Core instance
41
  *
42
- * @since 1.0.0
43
- * @var object
44
  * @access private
45
  */
46
  private $core = null;
@@ -48,8 +48,8 @@ if ( ! class_exists( 'Cherry5_Insertion_Popup' ) ) {
48
  /**
49
  * Shortcode list.
50
  *
51
- * @since 1.0.0
52
- * @var array
53
  * @access private
54
  */
55
  private $shortcode_list = array(
@@ -124,7 +124,7 @@ if ( ! class_exists( 'Cherry5_Insertion_Popup' ) ) {
124
  $args = apply_filters( 'cherry5-is__insert-button', array(
125
  'id' => '',
126
  'name' => '',
127
- 'style' => 'normal',
128
  'content' => esc_html__( 'insert shortcode', 'cherry-framework' ),
129
  'class' => 'cherry5-is__insert-button',
130
  ) );
@@ -228,6 +228,10 @@ if ( ! class_exists( 'Cherry5_Insertion_Popup' ) ) {
228
  if ( ! array_key_exists( 'id', $settings ) ) {
229
  $shortcode_attr['options'][ $key ]['id'] = $shortcode_slug . '_' . $key;
230
  }
 
 
 
 
231
  }
232
 
233
  $shortcode_options_html = $this->parent_self->cherry_interface_builder->render( false, $shortcode_attr['options'] );
@@ -249,6 +253,26 @@ if ( ! class_exists( 'Cherry5_Insertion_Popup' ) ) {
249
  }
250
  }
251
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  /**
253
  * The function returns content area HTML.
254
  *
5
  * @package Cherry_Framework
6
  * @subpackage Modules
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
30
  /**
31
  * Module arguments
32
  *
33
+ * @since 1.0.0
34
+ * @var array
35
  * @access private
36
  */
37
  private $args = array();
39
  /**
40
  * Core instance
41
  *
42
+ * @since 1.0.0
43
+ * @var object
44
  * @access private
45
  */
46
  private $core = null;
48
  /**
49
  * Shortcode list.
50
  *
51
+ * @since 1.0.0
52
+ * @var array
53
  * @access private
54
  */
55
  private $shortcode_list = array(
124
  $args = apply_filters( 'cherry5-is__insert-button', array(
125
  'id' => '',
126
  'name' => '',
127
+ 'style' => 'primary',
128
  'content' => esc_html__( 'insert shortcode', 'cherry-framework' ),
129
  'class' => 'cherry5-is__insert-button',
130
  ) );
228
  if ( ! array_key_exists( 'id', $settings ) ) {
229
  $shortcode_attr['options'][ $key ]['id'] = $shortcode_slug . '_' . $key;
230
  }
231
+
232
+ if ( isset( $settings['options'] ) ) {
233
+ $shortcode_attr['options'][ $key ]['options'] = $this->apply_options_cb( $settings );
234
+ }
235
  }
236
 
237
  $shortcode_options_html = $this->parent_self->cherry_interface_builder->render( false, $shortcode_attr['options'] );
253
  }
254
  }
255
 
256
+ /**
257
+ * Apply shortcode options callback if required.
258
+ *
259
+ * @since 1.0.2
260
+ * @param array $atts Shortcode field parameters.
261
+ * @return array
262
+ */
263
+ private function apply_options_cb( $atts ) {
264
+
265
+ if ( ! empty( $atts['options'] ) ) {
266
+ return $atts['options'];
267
+ }
268
+
269
+ if ( empty( $atts['options_cb'] ) || ! is_callable( $atts['options_cb'] ) ) {
270
+ return array();
271
+ }
272
+
273
+ return call_user_func( $atts['options_cb'] );
274
+ }
275
+
276
  /**
277
  * The function returns content area HTML.
278
  *
cherry-framework/modules/cherry5-insert-shortcode/inc/views/insert-shortcode-pop-up.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry5-insert-shortcode/inc/views/shortcode-content-area.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry5-insert-shortcode/inc/views/shortcode-has-not-option.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/modules/cherry5-insert-shortcode/inc/views/shortcode-options.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
5
  * @package cherry5_insert_shortcode
6
  * @subpackage Views
7
  * @author Cherry Team <cherryframework@gmail.com>
8
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
9
  * @link http://www.cherryframework.com/
10
  * @license http://www.gnu.org/licenses/gpl-3.0.html
11
  */
cherry-framework/setup.php CHANGED
@@ -6,7 +6,7 @@
6
  *
7
  * @package Cherry_Framework
8
  * @author Cherry Team <cherryframework@gmail.com>
9
- * @copyright Copyright (c) 2012 - 2016, Cherry Team
10
  * @link http://www.cherryframework.com/
11
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
12
  */
6
  *
7
  * @package Cherry_Framework
8
  * @author Cherry Team <cherryframework@gmail.com>
9
+ * @copyright Copyright (c) 2012 - 2017, Cherry Team
10
  * @link http://www.cherryframework.com/
11
  * @license http://www.gnu.org/licenses/gpl-3.0.en.html
12
  */
cherry-team-members.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Team Members
4
  * Plugin URI: http://www.templatemonster.com/wordpress-themes.php
5
  * Description: Cherry Team Members plugin allows you to showcase your team and personnel.
6
- * Version: 1.0.6
7
  * Author: TemplateMonster
8
  * Author URI: http://www.templatemonster.com/
9
  * Text Domain: cherry-team
@@ -45,7 +45,7 @@ if ( ! class_exists( 'Cherry_Team_Members' ) ) {
45
  *
46
  * @var string
47
  */
48
- private $version = '1.0.6';
49
 
50
  /**
51
  * Plugin dir URL
@@ -83,7 +83,20 @@ if ( ! class_exists( 'Cherry_Team_Members' ) ) {
83
  */
84
  private $options = null;
85
 
 
 
 
 
 
 
 
 
86
 
 
 
 
 
 
87
  public static $options_key = 'cherry-team';
88
 
89
  /**
@@ -103,6 +116,8 @@ if ( ! class_exists( 'Cherry_Team_Members' ) ) {
103
  // Load the core functions/classes required by the rest of the theme.
104
  add_action( 'after_setup_theme', array( $this, 'get_core' ), 1 );
105
  add_action( 'after_setup_theme', array( 'Cherry_Core', 'load_all_modules' ), 2 );
 
 
106
 
107
  // Register activation and deactivation hook.
108
  register_activation_hook( __FILE__, array( __CLASS__, 'activation' ) );
@@ -262,7 +277,10 @@ if ( ! class_exists( 'Cherry_Team_Members' ) ) {
262
  'autoload' => false,
263
  ),
264
  'cherry-utility' => array(
265
- 'autoload' => true,
 
 
 
266
  ),
267
  'cherry-term-meta' => array(
268
  'autoload' => false,
@@ -270,12 +288,30 @@ if ( ! class_exists( 'Cherry_Team_Members' ) ) {
270
  'cherry-post-meta' => array(
271
  'autoload' => false,
272
  ),
 
 
 
273
  ),
274
  ) );
275
 
276
  return $this->core;
277
  }
278
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  /**
280
  * Get team-related option
281
  *
3
  * Plugin Name: Cherry Team Members
4
  * Plugin URI: http://www.templatemonster.com/wordpress-themes.php
5
  * Description: Cherry Team Members plugin allows you to showcase your team and personnel.
6
+ * Version: 1.1.0
7
  * Author: TemplateMonster
8
  * Author URI: http://www.templatemonster.com/
9
  * Text Domain: cherry-team
45
  *
46
  * @var string
47
  */
48
+ private $version = '1.1.0';
49
 
50
  /**
51
  * Plugin dir URL
83
  */
84
  private $options = null;
85
 
86
+ /**
87
+ * Holder for Cherry Utilities instance
88
+ *
89
+ * @since 1.1.0
90
+ * @access public
91
+ * @var object
92
+ */
93
+ public $utilities = null;
94
 
95
+ /**
96
+ * Database key for options
97
+ *
98
+ * @var string
99
+ */
100
  public static $options_key = 'cherry-team';
101
 
102
  /**
116
  // Load the core functions/classes required by the rest of the theme.
117
  add_action( 'after_setup_theme', array( $this, 'get_core' ), 1 );
118
  add_action( 'after_setup_theme', array( 'Cherry_Core', 'load_all_modules' ), 2 );
119
+ // Initalize required modules
120
+ add_action( 'init', array( $this, 'init_modules' ), 2 );
121
 
122
  // Register activation and deactivation hook.
123
  register_activation_hook( __FILE__, array( __CLASS__, 'activation' ) );
277
  'autoload' => false,
278
  ),
279
  'cherry-utility' => array(
280
+ 'autoload' => false,
281
+ ),
282
+ 'cherry-handler' => array(
283
+ 'autoload' => false,
284
  ),
285
  'cherry-term-meta' => array(
286
  'autoload' => false,
288
  'cherry-post-meta' => array(
289
  'autoload' => false,
290
  ),
291
+ 'cherry5-insert-shortcode' => array(
292
+ 'autoload' => false,
293
+ ),
294
  ),
295
  ) );
296
 
297
  return $this->core;
298
  }
299
 
300
+ /**
301
+ * Manually init required modules.
302
+ *
303
+ * @return void
304
+ */
305
+ public function init_modules() {
306
+
307
+ $this->utilities = $this->get_core()->init_module( 'cherry-utility', array(
308
+ 'meta_key' => array(
309
+ 'term_thumb' => 'cherry_terms_thumbnails',
310
+ ),
311
+ ) );
312
+
313
+ }
314
+
315
  /**
316
  * Get team-related option
317
  *
languages/cherry-team.mo CHANGED
Binary file
languages/cherry-team.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: blank\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-08-11 11:48+0200\n"
6
- "PO-Revision-Date: 2016-08-11 11:48+0200\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: Cherry Team <support@cherryframework.com>\n"
9
  "Language: su\n"
@@ -151,15 +151,15 @@ msgstr ""
151
  msgid "Restore"
152
  msgstr ""
153
 
154
- #: admin/includes/class-cherry-team-options-page.php:388
155
  msgid "Options have been saved"
156
  msgstr ""
157
 
158
- #: admin/includes/class-cherry-team-options-page.php:396
159
  msgid "Options have been saved as default"
160
  msgstr ""
161
 
162
- #: admin/includes/class-cherry-team-options-page.php:406
163
  msgid "Options have been restored"
164
  msgstr ""
165
 
@@ -205,10 +205,13 @@ msgid "Words number in excerpt"
205
  msgstr ""
206
 
207
  #: admin/views/options-page.php:58
 
208
  msgid "Show more button"
209
  msgstr ""
210
 
211
  #: admin/views/options-page.php:59
 
 
212
  msgid "More button text"
213
  msgstr ""
214
 
@@ -225,10 +228,12 @@ msgid "Show pagination"
225
  msgstr ""
226
 
227
  #: admin/views/options-page.php:63
 
228
  msgid "Show person name"
229
  msgstr ""
230
 
231
  #: admin/views/options-page.php:64
 
232
  msgid "Show person photo"
233
  msgstr ""
234
 
@@ -237,6 +242,7 @@ msgid "Show person description"
237
  msgstr ""
238
 
239
  #: admin/views/options-page.php:66
 
240
  msgid "Show person position"
241
  msgstr ""
242
 
@@ -264,9 +270,108 @@ msgstr ""
264
  msgid "Use space between rows"
265
  msgstr ""
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  #: public/includes/class-cherry-team-data.php:81
268
  #: public/includes/class-cherry-team-data.php:414
269
- #: public/includes/class-cherry-team-shortcode.php:238
 
270
  msgid "More"
271
  msgstr ""
272
 
@@ -274,234 +379,234 @@ msgstr ""
274
  msgid "All"
275
  msgstr ""
276
 
277
- #: public/includes/class-cherry-team-init.php:56
278
- #: public/includes/class-cherry-team-init.php:57
279
- #: public/includes/class-cherry-team-shortcode.php:98
 
280
  msgid "Team"
281
  msgstr ""
282
 
283
- #: public/includes/class-cherry-team-init.php:58
284
  msgid "Add New"
285
  msgstr ""
286
 
287
- #: public/includes/class-cherry-team-init.php:59
288
  msgid "Add New Person"
289
  msgstr ""
290
 
291
- #: public/includes/class-cherry-team-init.php:60
292
  msgid "Edit Person"
293
  msgstr ""
294
 
295
- #: public/includes/class-cherry-team-init.php:61
296
  msgid "New Person"
297
  msgstr ""
298
 
299
- #: public/includes/class-cherry-team-init.php:62
300
  msgid "View Person"
301
  msgstr ""
302
 
303
- #: public/includes/class-cherry-team-init.php:63
304
  msgid "Search Persons"
305
  msgstr ""
306
 
307
- #: public/includes/class-cherry-team-init.php:64
308
  msgid "No persons found"
309
  msgstr ""
310
 
311
- #: public/includes/class-cherry-team-init.php:65
312
  msgid "No persons found in trash"
313
  msgstr ""
314
 
315
- #: public/includes/class-cherry-team-init.php:112
316
  msgid "Team Groups"
317
  msgstr ""
318
 
319
- #: public/includes/class-cherry-team-init.php:113
320
- #: public/includes/class-cherry-team-init.php:119
321
  msgid "Edit Group"
322
  msgstr ""
323
 
324
- #: public/includes/class-cherry-team-init.php:114
325
  msgid "Search Groups"
326
  msgstr ""
327
 
328
- #: public/includes/class-cherry-team-init.php:115
329
  msgid "Popular Groups"
330
  msgstr ""
331
 
332
- #: public/includes/class-cherry-team-init.php:116
333
  msgid "All Groups"
334
  msgstr ""
335
 
336
- #: public/includes/class-cherry-team-init.php:120
337
  msgid "Update Group"
338
  msgstr ""
339
 
340
- #: public/includes/class-cherry-team-init.php:121
341
  msgid "Add New Group"
342
  msgstr ""
343
 
344
- #: public/includes/class-cherry-team-init.php:122
345
  msgid "New Group Name"
346
  msgstr ""
347
 
348
- #: public/includes/class-cherry-team-init.php:123
349
  msgid "Separate groups with commas"
350
  msgstr ""
351
 
352
- #: public/includes/class-cherry-team-init.php:124
353
  msgid "Add or remove groups"
354
  msgstr ""
355
 
356
- #: public/includes/class-cherry-team-init.php:125
357
  msgid "Choose from the most used groups"
358
  msgstr ""
359
 
360
- #: public/includes/class-cherry-team-init.php:126
361
  msgid "No groups found."
362
  msgstr ""
363
 
364
- #: public/includes/class-cherry-team-init.php:127
365
- #: public/includes/class-cherry-team-shortcode.php:145
366
  msgid "Groups"
367
  msgstr ""
368
 
369
- #: public/includes/class-cherry-team-shortcode.php:99
370
- msgid "Cherry team shortcode"
371
- msgstr ""
372
-
373
- #: public/includes/class-cherry-team-shortcode.php:109
374
- msgid "Limit"
375
  msgstr ""
376
 
377
  #: public/includes/class-cherry-team-shortcode.php:110
378
- msgid "Maximum number of posts."
379
  msgstr ""
380
 
381
  #: public/includes/class-cherry-team-shortcode.php:115
382
- msgid "Descending"
383
- msgstr ""
384
-
385
- #: public/includes/class-cherry-team-shortcode.php:116
386
- msgid "Ascending"
387
- msgstr ""
388
-
389
- #: public/includes/class-cherry-team-shortcode.php:119
390
- msgid "Order"
391
  msgstr ""
392
 
393
  #: public/includes/class-cherry-team-shortcode.php:120
394
- msgid "Posts order"
395
- msgstr ""
396
-
397
- #: public/includes/class-cherry-team-shortcode.php:125
398
- msgid "None"
399
  msgstr ""
400
 
401
  #: public/includes/class-cherry-team-shortcode.php:126
402
- msgid "Post ID"
403
- msgstr ""
404
-
405
- #: public/includes/class-cherry-team-shortcode.php:127
406
- msgid "Post author"
407
  msgstr ""
408
 
409
- #: public/includes/class-cherry-team-shortcode.php:128
410
- msgid "Post title"
411
  msgstr ""
412
 
413
- #: public/includes/class-cherry-team-shortcode.php:129
414
- msgid "Post slug"
415
  msgstr ""
416
 
417
- #: public/includes/class-cherry-team-shortcode.php:130
418
- msgid "Date"
419
  msgstr ""
420
 
421
- #: public/includes/class-cherry-team-shortcode.php:131
422
- msgid "Last modified date"
 
 
423
  msgstr ""
424
 
425
- #: public/includes/class-cherry-team-shortcode.php:132
426
- msgid "Random"
427
  msgstr ""
428
 
429
- #: public/includes/class-cherry-team-shortcode.php:133
430
- msgid "Comments number"
431
  msgstr ""
432
 
433
- #: public/includes/class-cherry-team-shortcode.php:134
434
- msgid "Menu order"
435
  msgstr ""
436
 
437
- #: public/includes/class-cherry-team-shortcode.php:137
438
- msgid "Order by"
439
  msgstr ""
440
 
441
- #: public/includes/class-cherry-team-shortcode.php:138
442
- msgid "Order posts by"
443
  msgstr ""
444
 
445
- #: public/includes/class-cherry-team-shortcode.php:146
446
- msgid "Select groups to show team members from"
 
 
 
 
 
 
 
 
 
 
447
  msgstr ""
448
 
449
- #: public/includes/class-cherry-team-shortcode.php:150
450
- msgid "Post ID's"
 
 
 
 
 
 
 
 
 
 
451
  msgstr ""
452
 
453
- #: public/includes/class-cherry-team-shortcode.php:151
454
- msgid "Enter comma separated ID's of the posts that you want to show"
455
  msgstr ""
456
 
457
- #: public/includes/class-cherry-team-shortcode.php:156
458
- #: public/includes/class-cherry-team-shortcode.php:157
459
- msgid "Show name?"
460
  msgstr ""
461
 
462
- #: public/includes/class-cherry-team-shortcode.php:162
463
- #: public/includes/class-cherry-team-shortcode.php:163
464
- msgid "Show photo?"
465
  msgstr ""
466
 
467
- #: public/includes/class-cherry-team-shortcode.php:169
468
- msgid "Featured image size"
469
  msgstr ""
470
 
471
- #: public/includes/class-cherry-team-shortcode.php:170
472
- msgid "Select size for a Featured image"
473
  msgstr ""
474
 
475
- #: public/includes/class-cherry-team-shortcode.php:178
476
- msgid "Excerpt Length"
477
  msgstr ""
478
 
479
- #: public/includes/class-cherry-team-shortcode.php:179
480
- msgid "Excerpt length (if used in template)"
481
  msgstr ""
482
 
483
- #: public/includes/class-cherry-team-shortcode.php:189
484
- msgid "Column class"
485
  msgstr ""
486
 
487
- #: public/includes/class-cherry-team-shortcode.php:190
488
- msgid "Column class for each item."
489
  msgstr ""
490
 
491
- #: public/includes/class-cherry-team-shortcode.php:198
492
- msgid "Template"
493
  msgstr ""
494
 
495
- #: public/includes/class-cherry-team-shortcode.php:199
496
- msgid "Shortcode template"
497
  msgstr ""
498
 
499
- #: public/includes/class-cherry-team-shortcode.php:203
500
- msgid "Class"
501
  msgstr ""
502
 
503
- #: public/includes/class-cherry-team-shortcode.php:204
504
- msgid "Extra CSS class"
505
  msgstr ""
506
 
507
  #: public/includes/class-cherry-team-tools.php:105
2
  msgstr ""
3
  "Project-Id-Version: blank\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-03-02 16:52+0200\n"
6
+ "PO-Revision-Date: 2017-03-02 16:52+0200\n"
7
  "Last-Translator: Vladimir Anokhin <ano.vladimir@gmail.com>\n"
8
  "Language-Team: Cherry Team <support@cherryframework.com>\n"
9
  "Language: su\n"
151
  msgid "Restore"
152
  msgstr ""
153
 
154
+ #: admin/includes/class-cherry-team-options-page.php:389
155
  msgid "Options have been saved"
156
  msgstr ""
157
 
158
+ #: admin/includes/class-cherry-team-options-page.php:397
159
  msgid "Options have been saved as default"
160
  msgstr ""
161
 
162
+ #: admin/includes/class-cherry-team-options-page.php:407
163
  msgid "Options have been restored"
164
  msgstr ""
165
 
205
  msgstr ""
206
 
207
  #: admin/views/options-page.php:58
208
+ #: public/includes/class-cherry-team-shortcode.php:174
209
  msgid "Show more button"
210
  msgstr ""
211
 
212
  #: admin/views/options-page.php:59
213
+ #: public/includes/class-cherry-team-shortcode.php:185
214
+ #: public/includes/class-cherry-team-shortcode.php:191
215
  msgid "More button text"
216
  msgstr ""
217
 
228
  msgstr ""
229
 
230
  #: admin/views/options-page.php:63
231
+ #: public/includes/class-cherry-team-shortcode.php:218
232
  msgid "Show person name"
233
  msgstr ""
234
 
235
  #: admin/views/options-page.php:64
236
+ #: public/includes/class-cherry-team-shortcode.php:227
237
  msgid "Show person photo"
238
  msgstr ""
239
 
242
  msgstr ""
243
 
244
  #: admin/views/options-page.php:66
245
+ #: public/includes/class-cherry-team-shortcode.php:245
246
  msgid "Show person position"
247
  msgstr ""
248
 
270
  msgid "Use space between rows"
271
  msgstr ""
272
 
273
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:346
274
+ msgid "Home"
275
+ msgstr ""
276
+
277
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:352
278
+ msgid "Browse:"
279
+ msgstr ""
280
+
281
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:354
282
+ msgid "404 Not Found"
283
+ msgstr ""
284
+
285
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:355
286
+ msgid "Archives"
287
+ msgstr ""
288
+
289
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:356
290
+ #, php-format
291
+ msgid "Search results for &#8220;%s&#8221;"
292
+ msgstr ""
293
+
294
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:357
295
+ #, php-format
296
+ msgid "Page %s"
297
+ msgstr ""
298
+
299
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:358
300
+ #, php-format
301
+ msgid "Minute %s"
302
+ msgstr ""
303
+
304
+ #: cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php:359
305
+ #, php-format
306
+ msgid "Week %s"
307
+ msgstr ""
308
+
309
+ #: cherry-framework/modules/cherry-customizer/cherry-customizer.php:269
310
+ msgid "Untitled Panel"
311
+ msgstr ""
312
+
313
+ #: cherry-framework/modules/cherry-customizer/cherry-customizer.php:305
314
+ msgid "Untitled Section"
315
+ msgstr ""
316
+
317
+ #: cherry-framework/modules/cherry-customizer/cherry-customizer.php:339
318
+ msgid "Untitled Control"
319
+ msgstr ""
320
+
321
+ #: cherry-framework/modules/cherry-db-updater/cherry-db-updater.php:105
322
+ #, php-format
323
+ msgid ""
324
+ "Module DB Updater init error in %s - version and slug is required arguments"
325
+ msgstr ""
326
+
327
+ #: cherry-framework/modules/cherry-db-updater/cherry-db-updater.php:106
328
+ msgid "We need to update your database to the latest version."
329
+ msgstr ""
330
+
331
+ #: cherry-framework/modules/cherry-db-updater/cherry-db-updater.php:107
332
+ msgid "Update complete, thank you for updating to the latest version!"
333
+ msgstr ""
334
+
335
+ #: cherry-framework/modules/cherry-db-updater/cherry-db-updater.php:331
336
+ msgid "Start Update"
337
+ msgstr ""
338
+
339
+ #: cherry-framework/modules/cherry-db-updater/cherry-db-updater.php:368
340
+ msgid "Data Update"
341
+ msgstr ""
342
+
343
+ #: cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-button.php:63
344
+ msgid "Cherry shortcodes"
345
+ msgstr ""
346
+
347
+ #: cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:128
348
+ msgid "insert shortcode"
349
+ msgstr ""
350
+
351
+ #: cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:148
352
+ msgid "Shortcode List"
353
+ msgstr ""
354
+
355
+ #: cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:206
356
+ msgid "Shortcode not found."
357
+ msgstr ""
358
+
359
+ #: cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:285
360
+ msgid "Shortcode content."
361
+ msgstr ""
362
+
363
+ #: cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:286
364
+ msgid "Input shortcode content."
365
+ msgstr ""
366
+
367
+ #: cherry-framework/modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:301
368
+ msgid "Shortcode not a have options."
369
+ msgstr ""
370
+
371
  #: public/includes/class-cherry-team-data.php:81
372
  #: public/includes/class-cherry-team-data.php:414
373
+ #: public/includes/class-cherry-team-shortcode.php:186
374
+ #: public/includes/class-cherry-team-shortcode.php:377
375
  msgid "More"
376
  msgstr ""
377
 
379
  msgid "All"
380
  msgstr ""
381
 
382
+ #: public/includes/class-cherry-team-init.php:58
383
+ #: public/includes/class-cherry-team-init.php:59
384
+ #: public/includes/class-cherry-team-shortcode.php:326
385
+ #: public/includes/class-cherry-team-shortcode.php:332
386
  msgid "Team"
387
  msgstr ""
388
 
389
+ #: public/includes/class-cherry-team-init.php:60
390
  msgid "Add New"
391
  msgstr ""
392
 
393
+ #: public/includes/class-cherry-team-init.php:61
394
  msgid "Add New Person"
395
  msgstr ""
396
 
397
+ #: public/includes/class-cherry-team-init.php:62
398
  msgid "Edit Person"
399
  msgstr ""
400
 
401
+ #: public/includes/class-cherry-team-init.php:63
402
  msgid "New Person"
403
  msgstr ""
404
 
405
+ #: public/includes/class-cherry-team-init.php:64
406
  msgid "View Person"
407
  msgstr ""
408
 
409
+ #: public/includes/class-cherry-team-init.php:65
410
  msgid "Search Persons"
411
  msgstr ""
412
 
413
+ #: public/includes/class-cherry-team-init.php:66
414
  msgid "No persons found"
415
  msgstr ""
416
 
417
+ #: public/includes/class-cherry-team-init.php:67
418
  msgid "No persons found in trash"
419
  msgstr ""
420
 
421
+ #: public/includes/class-cherry-team-init.php:114
422
  msgid "Team Groups"
423
  msgstr ""
424
 
425
+ #: public/includes/class-cherry-team-init.php:115
426
+ #: public/includes/class-cherry-team-init.php:121
427
  msgid "Edit Group"
428
  msgstr ""
429
 
430
+ #: public/includes/class-cherry-team-init.php:116
431
  msgid "Search Groups"
432
  msgstr ""
433
 
434
+ #: public/includes/class-cherry-team-init.php:117
435
  msgid "Popular Groups"
436
  msgstr ""
437
 
438
+ #: public/includes/class-cherry-team-init.php:118
439
  msgid "All Groups"
440
  msgstr ""
441
 
442
+ #: public/includes/class-cherry-team-init.php:122
443
  msgid "Update Group"
444
  msgstr ""
445
 
446
+ #: public/includes/class-cherry-team-init.php:123
447
  msgid "Add New Group"
448
  msgstr ""
449
 
450
+ #: public/includes/class-cherry-team-init.php:124
451
  msgid "New Group Name"
452
  msgstr ""
453
 
454
+ #: public/includes/class-cherry-team-init.php:125
455
  msgid "Separate groups with commas"
456
  msgstr ""
457
 
458
+ #: public/includes/class-cherry-team-init.php:126
459
  msgid "Add or remove groups"
460
  msgstr ""
461
 
462
+ #: public/includes/class-cherry-team-init.php:127
463
  msgid "Choose from the most used groups"
464
  msgstr ""
465
 
466
+ #: public/includes/class-cherry-team-init.php:128
467
  msgid "No groups found."
468
  msgstr ""
469
 
470
+ #: public/includes/class-cherry-team-init.php:129
 
471
  msgid "Groups"
472
  msgstr ""
473
 
474
+ #: public/includes/class-cherry-team-shortcode.php:105
475
+ msgid "Super title"
 
 
 
 
476
  msgstr ""
477
 
478
  #: public/includes/class-cherry-team-shortcode.php:110
479
+ msgid "Title"
480
  msgstr ""
481
 
482
  #: public/includes/class-cherry-team-shortcode.php:115
483
+ msgid "Subtitle"
 
 
 
 
 
 
 
 
484
  msgstr ""
485
 
486
  #: public/includes/class-cherry-team-shortcode.php:120
487
+ msgid "Desktop columns"
 
 
 
 
488
  msgstr ""
489
 
490
  #: public/includes/class-cherry-team-shortcode.php:126
491
+ msgid "Laptop columns"
 
 
 
 
492
  msgstr ""
493
 
494
+ #: public/includes/class-cherry-team-shortcode.php:132
495
+ msgid "Tablet columns"
496
  msgstr ""
497
 
498
+ #: public/includes/class-cherry-team-shortcode.php:138
499
+ msgid "Phone columns"
500
  msgstr ""
501
 
502
+ #: public/includes/class-cherry-team-shortcode.php:144
503
+ msgid "Posts per page"
504
  msgstr ""
505
 
506
+ #: public/includes/class-cherry-team-shortcode.php:145
507
+ msgid ""
508
+ "Select how many posts per page do you want to display(-1 means that will "
509
+ "show all team)"
510
  msgstr ""
511
 
512
+ #: public/includes/class-cherry-team-shortcode.php:152
513
+ msgid "Show team members from groups"
514
  msgstr ""
515
 
516
+ #: public/includes/class-cherry-team-shortcode.php:161
517
+ msgid "Show persons by ID"
518
  msgstr ""
519
 
520
+ #: public/includes/class-cherry-team-shortcode.php:166
521
+ msgid "Description length"
522
  msgstr ""
523
 
524
+ #: public/includes/class-cherry-team-shortcode.php:167
525
+ msgid "Select how many words show in desciption"
526
  msgstr ""
527
 
528
+ #: public/includes/class-cherry-team-shortcode.php:175
529
+ msgid "Show/hide more button"
530
  msgstr ""
531
 
532
+ #: public/includes/class-cherry-team-shortcode.php:178
533
+ #: public/includes/class-cherry-team-shortcode.php:201
534
+ #: public/includes/class-cherry-team-shortcode.php:212
535
+ #: public/includes/class-cherry-team-shortcode.php:221
536
+ #: public/includes/class-cherry-team-shortcode.php:230
537
+ #: public/includes/class-cherry-team-shortcode.php:239
538
+ #: public/includes/class-cherry-team-shortcode.php:248
539
+ #: public/includes/class-cherry-team-shortcode.php:257
540
+ #: public/includes/class-cherry-team-shortcode.php:266
541
+ #: public/includes/class-cherry-team-shortcode.php:289
542
+ #: public/includes/class-cherry-team-shortcode.php:298
543
+ msgid "Yes"
544
  msgstr ""
545
 
546
+ #: public/includes/class-cherry-team-shortcode.php:179
547
+ #: public/includes/class-cherry-team-shortcode.php:202
548
+ #: public/includes/class-cherry-team-shortcode.php:213
549
+ #: public/includes/class-cherry-team-shortcode.php:222
550
+ #: public/includes/class-cherry-team-shortcode.php:231
551
+ #: public/includes/class-cherry-team-shortcode.php:240
552
+ #: public/includes/class-cherry-team-shortcode.php:249
553
+ #: public/includes/class-cherry-team-shortcode.php:258
554
+ #: public/includes/class-cherry-team-shortcode.php:267
555
+ #: public/includes/class-cherry-team-shortcode.php:290
556
+ #: public/includes/class-cherry-team-shortcode.php:299
557
+ msgid "No"
558
  msgstr ""
559
 
560
+ #: public/includes/class-cherry-team-shortcode.php:197
561
+ msgid "AJAX load more"
562
  msgstr ""
563
 
564
+ #: public/includes/class-cherry-team-shortcode.php:198
565
+ msgid "Enable AJAX load more event on more button"
 
566
  msgstr ""
567
 
568
+ #: public/includes/class-cherry-team-shortcode.php:208
569
+ msgid "Pagination"
 
570
  msgstr ""
571
 
572
+ #: public/includes/class-cherry-team-shortcode.php:209
573
+ msgid "Enable paging navigation"
574
  msgstr ""
575
 
576
+ #: public/includes/class-cherry-team-shortcode.php:236
577
+ msgid "Show person bio"
578
  msgstr ""
579
 
580
+ #: public/includes/class-cherry-team-shortcode.php:254
581
+ msgid "Show person social links"
582
  msgstr ""
583
 
584
+ #: public/includes/class-cherry-team-shortcode.php:263
585
+ msgid "Show filter by groups before team listing"
586
  msgstr ""
587
 
588
+ #: public/includes/class-cherry-team-shortcode.php:272
589
+ msgid "Listing item image size (if used in template)"
590
  msgstr ""
591
 
592
+ #: public/includes/class-cherry-team-shortcode.php:279
593
+ msgid "Listing item template"
594
  msgstr ""
595
 
596
+ #: public/includes/class-cherry-team-shortcode.php:286
597
+ msgid "Add space between team coumns"
598
  msgstr ""
599
 
600
+ #: public/includes/class-cherry-team-shortcode.php:295
601
+ msgid "Add space between team rows"
602
  msgstr ""
603
 
604
+ #: public/includes/class-cherry-team-shortcode.php:327
605
+ msgid "Showcase your team with Cherry Team Members plugin"
606
  msgstr ""
607
 
608
+ #: public/includes/class-cherry-team-shortcode.php:333
609
+ msgid "Shortcode is used to display the team members list"
610
  msgstr ""
611
 
612
  #: public/includes/class-cherry-team-tools.php:105
public/includes/class-cherry-team-shortcode.php CHANGED
@@ -59,6 +59,20 @@ class Cherry_Team_Members_Shortcode {
59
  */
60
  public function register_shortcode() {
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  /**
63
  * Filters a shortcode name.
64
  *
@@ -67,148 +81,272 @@ class Cherry_Team_Members_Shortcode {
67
  */
68
  $tag = apply_filters( self::$name . '_shortcode_name', self::$name );
69
 
70
- add_shortcode( $tag, array( $this, 'do_shortcode' ) );
71
  }
72
 
73
  /**
74
- * Filter to modify original shortcodes data and add [$this->name] shortcode.
75
  *
76
- * @since 1.0.0
77
- * @param array $shortcodes Original plugin shortcodes.
78
- * @return array Modified array.
79
  */
80
- public function shortcodes( $shortcodes ) {
81
-
82
- $terms_list = array();
83
-
84
- if ( did_action( 'wp_ajax_cherry_shortcodes_generator_settings' ) ) {
85
- $terms = get_terms( 'group' );
86
-
87
- if ( ! is_wp_error( $terms ) ) {
88
- $terms_list = wp_list_pluck( $terms, 'name', 'slug' );
89
- }
90
- }
91
-
92
- $sizes_list = array();
93
- if ( class_exists( 'Cherry_Shortcodes_Tools' ) && method_exists( 'Cherry_Shortcodes_Tools', 'image_sizes' ) ) {
94
- $sizes_list = Cherry_Shortcodes_Tools::image_sizes();
95
- }
96
 
97
- $shortcodes[ self::$name ] = array(
98
- 'name' => __( 'Team', 'cherry-team' ), // Shortcode name.
99
- 'desc' => __( 'Cherry team shortcode', 'cherry-team' ),
100
- 'type' => 'single', // Can be 'wrap' or 'single'. Example: [b]this is wrapped[/b], [this_is_single]
101
- 'group' => 'content', // Can be 'content', 'box', 'media' or 'other'. Groups can be mixed
102
- 'atts' => array( // List of shortcode params (attributes).
103
- 'limit' => array(
104
- 'type' => 'slider',
105
- 'min' => -1,
106
- 'max' => 100,
107
- 'step' => 1,
108
- 'default' => 3,
109
- 'name' => __( 'Limit', 'cherry-team' ),
110
- 'desc' => __( 'Maximum number of posts.', 'cherry-team' ),
111
- ),
112
- 'order' => array(
113
- 'type' => 'select',
114
- 'values' => array(
115
- 'desc' => __( 'Descending', 'cherry-team' ),
116
- 'asc' => __( 'Ascending', 'su' ),
117
- ),
118
- 'default' => 'DESC',
119
- 'name' => __( 'Order', 'cherry-team' ),
120
- 'desc' => __( 'Posts order', 'cherry-team' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  ),
122
- 'orderby' => array(
123
- 'type' => 'select',
124
- 'values' => array(
125
- 'none' => __( 'None', 'cherry-team' ),
126
- 'id' => __( 'Post ID', 'cherry-team' ),
127
- 'author' => __( 'Post author', 'cherry-team' ),
128
- 'title' => __( 'Post title', 'cherry-team' ),
129
- 'name' => __( 'Post slug', 'cherry-team' ),
130
- 'date' => __( 'Date', 'cherry-team' ),
131
- 'modified' => __( 'Last modified date', 'cherry-team' ),
132
- 'rand' => __( 'Random', 'cherry-team' ),
133
- 'comment_count' => __( 'Comments number', 'cherry-team' ),
134
- 'menu_order' => __( 'Menu order', 'cherry-team' ),
135
- ),
136
- 'default' => 'date',
137
- 'name' => __( 'Order by', 'cherry-team' ),
138
- 'desc' => __( 'Order posts by', 'cherry-team' ),
 
 
 
 
139
  ),
140
- 'group' => array(
141
- 'type' => 'select',
142
- 'multiple' => true,
143
- 'values' => $terms_list,
144
- 'default' => '',
145
- 'name' => __( 'Groups', 'cherry-team' ),
146
- 'desc' => __( 'Select groups to show team members from', 'cherry-team' ),
 
 
 
147
  ),
148
- 'id' => array(
149
- 'default' => 0,
150
- 'name' => __( 'Post ID\'s', 'cherry-team' ),
151
- 'desc' => __( 'Enter comma separated ID\'s of the posts that you want to show', 'cherry-team' ),
 
 
 
 
152
  ),
153
- 'show_name' => array(
154
- 'type' => 'bool',
155
- 'default' => 'yes',
156
- 'name' => __( 'Show name?', 'cherry-team' ),
157
- 'desc' => __( 'Show name?', 'cherry-team' ),
 
 
 
158
  ),
159
- 'show_photo' => array(
160
- 'type' => 'bool',
161
- 'default' => 'yes',
162
- 'name' => __( 'Show photo?', 'cherry-team' ),
163
- 'desc' => __( 'Show photo?', 'cherry-team' ),
 
 
 
164
  ),
165
- 'size' => array(
166
- 'type' => 'select',
167
- 'values' => $sizes_list,
168
- 'default' => 'thumbnail',
169
- 'name' => __( 'Featured image size', 'cherry-team' ),
170
- 'desc' => __( 'Select size for a Featured image', 'cherry-team' ),
 
 
171
  ),
172
- 'excerpt_length' => array(
173
- 'type' => 'slider',
174
- 'min' => 5,
175
- 'max' => 150,
176
- 'step' => 1,
177
- 'default' => 20,
178
- 'name' => __( 'Excerpt Length', 'cherry-team' ),
179
- 'desc' => __( 'Excerpt length (if used in template)', 'cherry-team' ),
180
  ),
181
- 'col' => array(
182
- 'type' => 'responsive',
183
- 'default' => array(
184
- 'col_xs' => 'none',
185
- 'col_sm' => 'none',
186
- 'col_md' => 'none',
187
- 'col_lg' => 'none',
188
- ),
189
- 'name' => __( 'Column class', 'cherry-team' ),
190
- 'desc' => __( 'Column class for each item.', 'cherry-team' ),
191
  ),
192
- 'template' => array(
193
- 'type' => 'select',
194
- 'values' => array(
195
- 'default.tmpl' => 'default.tmpl',
196
- ),
197
- 'default' => 'default.tmpl',
198
- 'name' => __( 'Template', 'cherry-team' ),
199
- 'desc' => __( 'Shortcode template', 'cherry-team' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  ),
201
- 'class' => array(
202
- 'default' => '',
203
- 'name' => __( 'Class', 'cherry-team' ),
204
- 'desc' => __( 'Extra CSS class', 'cherry-team' ),
 
 
 
 
205
  ),
206
  ),
207
- 'icon' => 'users', // Custom icon (font-awesome).
208
- 'function' => array( $this, 'do_shortcode' ), // Name of shortcode function.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  );
 
210
 
211
- return $shortcodes;
 
 
 
 
 
 
212
  }
213
 
214
  /**
@@ -252,6 +390,10 @@ class Cherry_Team_Members_Shortcode {
252
  'use_rows_space' => true,
253
  );
254
 
 
 
 
 
255
  /**
256
  * Parse the arguments.
257
  *
59
  */
60
  public function register_shortcode() {
61
 
62
+ add_shortcode( $this->tag(), array( $this, 'do_shortcode' ) );
63
+
64
+ if ( is_admin() ) {
65
+ $this->register_shortcode_for_builder();
66
+ }
67
+ }
68
+
69
+ /**
70
+ * Returns shortcode tag.
71
+ *
72
+ * @return string
73
+ */
74
+ public function tag() {
75
+
76
  /**
77
  * Filters a shortcode name.
78
  *
81
  */
82
  $tag = apply_filters( self::$name . '_shortcode_name', self::$name );
83
 
84
+ return $tag;
85
  }
86
 
87
  /**
88
+ * Register shortcode arguments.
89
  *
90
+ * @return array
 
 
91
  */
92
+ public function shortcode_args() {
93
+
94
+ $column_opt = array(
95
+ 1 => 1,
96
+ 2 => 2,
97
+ 3 => 3,
98
+ 4 => 4,
99
+ 6 => 6,
100
+ );
 
 
 
 
 
 
 
101
 
102
+ return apply_filters( 'cherry_team_list_shortcode_arguments', array(
103
+ 'super_title' => array(
104
+ 'type' => 'text',
105
+ 'title' => esc_html__( 'Super title', 'cherry-team' ),
106
+ 'value' => '',
107
+ ),
108
+ 'title' => array(
109
+ 'type' => 'text',
110
+ 'title' => esc_html__( 'Title', 'cherry-team' ),
111
+ 'value' => '',
112
+ ),
113
+ 'subtitle' => array(
114
+ 'type' => 'text',
115
+ 'title' => esc_html__( 'Subtitle', 'cherry-team' ),
116
+ 'value' => '',
117
+ ),
118
+ 'columns' => array(
119
+ 'type' => 'select',
120
+ 'title' => esc_html__( 'Desktop columns', 'cherry-team' ),
121
+ 'value' => 3,
122
+ 'options' => $column_opt,
123
+ ),
124
+ 'columns_laptop' => array(
125
+ 'type' => 'select',
126
+ 'title' => esc_html__( 'Laptop columns', 'cherry-team' ),
127
+ 'value' => 3,
128
+ 'options' => $column_opt,
129
+ ),
130
+ 'columns_tablet' => array(
131
+ 'type' => 'select',
132
+ 'title' => esc_html__( 'Tablet columns', 'cherry-team' ),
133
+ 'value' => 1,
134
+ 'options' => $column_opt,
135
+ ),
136
+ 'columns_phone' => array(
137
+ 'type' => 'select',
138
+ 'title' => esc_html__( 'Phone columns', 'cherry-team' ),
139
+ 'value' => 1,
140
+ 'options' => $column_opt,
141
+ ),
142
+ 'posts_per_page' => array(
143
+ 'type' => 'slider',
144
+ 'title' => esc_html__( 'Posts per page', 'cherry-team' ),
145
+ 'description' => esc_html__( 'Select how many posts per page do you want to display(-1 means that will show all team)', 'cherry-team' ),
146
+ 'max_value' => 50,
147
+ 'min_value' => -1,
148
+ 'value' => 6,
149
+ ),
150
+ 'group' => array(
151
+ 'type' => 'select',
152
+ 'title' => esc_html__( 'Show team members from groups', 'cherry-team' ),
153
+ 'multiple' => true,
154
+ 'value' => '',
155
+ 'class' => 'cherry-multi-select',
156
+ 'options' => false,
157
+ 'options_cb' => array( $this, 'get_categories' ),
158
+ ),
159
+ 'id' => array(
160
+ 'type' => 'text',
161
+ 'title' => esc_html__( 'Show persons by ID', 'cherry-team' ),
162
+ 'value' => '',
163
+ ),
164
+ 'excerpt_length' => array(
165
+ 'type' => 'slider',
166
+ 'title' => esc_html__( 'Description length', 'cherry-team' ),
167
+ 'description' => esc_html__( 'Select how many words show in desciption', 'cherry-team' ),
168
+ 'max_value' => 200,
169
+ 'min_value' => 0,
170
+ 'value' => 20,
171
+ ),
172
+ 'more' => array(
173
+ 'type' => 'switcher',
174
+ 'title' => esc_html__( 'Show more button', 'cherry-team' ),
175
+ 'description' => esc_html__( 'Show/hide more button', 'cherry-team' ),
176
+ 'value' => 'true',
177
+ 'toggle' => array(
178
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
179
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
180
+ 'true_slave' => 'team-more-filter-visible-true',
181
  ),
182
+ ),
183
+ 'more_text' => array(
184
+ 'type' => 'text',
185
+ 'title' => esc_html__( 'More button text', 'cherry-team' ),
186
+ 'value' => esc_html__( 'More', 'cherry-team' ),
187
+ 'master' => 'team-more-filter-visible-true',
188
+ ),
189
+ 'more_url' => array(
190
+ 'type' => 'text',
191
+ 'title' => esc_html__( 'More button text', 'cherry-team' ),
192
+ 'value' => '#',
193
+ 'master' => 'team-more-filter-visible-true',
194
+ ),
195
+ 'ajax_more' => array(
196
+ 'type' => 'switcher',
197
+ 'title' => esc_html__( 'AJAX load more', 'cherry-team' ),
198
+ 'description' => esc_html__( 'Enable AJAX load more event on more button', 'cherry-team' ),
199
+ 'value' => 'true',
200
+ 'toggle' => array(
201
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
202
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
203
  ),
204
+ 'master' => 'team-more-filter-visible-true',
205
+ ),
206
+ 'pagination' => array(
207
+ 'type' => 'switcher',
208
+ 'title' => esc_html__( 'Pagination', 'cherry-team' ),
209
+ 'description' => esc_html__( 'Enable paging navigation', 'cherry-team' ),
210
+ 'value' => 'false',
211
+ 'toggle' => array(
212
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
213
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
214
  ),
215
+ ),
216
+ 'show_name' => array(
217
+ 'type' => 'switcher',
218
+ 'title' => esc_html__( 'Show person name', 'cherry-team' ),
219
+ 'value' => 'true',
220
+ 'toggle' => array(
221
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
222
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
223
  ),
224
+ ),
225
+ 'show_photo' => array(
226
+ 'type' => 'switcher',
227
+ 'title' => esc_html__( 'Show person photo', 'cherry-team' ),
228
+ 'value' => 'true',
229
+ 'toggle' => array(
230
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
231
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
232
  ),
233
+ ),
234
+ 'show_desc' => array(
235
+ 'type' => 'switcher',
236
+ 'title' => esc_html__( 'Show person bio', 'cherry-team' ),
237
+ 'value' => 'true',
238
+ 'toggle' => array(
239
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
240
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
241
  ),
242
+ ),
243
+ 'show_position' => array(
244
+ 'type' => 'switcher',
245
+ 'title' => esc_html__( 'Show person position', 'cherry-team' ),
246
+ 'value' => 'true',
247
+ 'toggle' => array(
248
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
249
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
250
  ),
251
+ ),
252
+ 'show_social' => array(
253
+ 'type' => 'switcher',
254
+ 'title' => esc_html__( 'Show person social links', 'cherry-team' ),
255
+ 'value' => 'true',
256
+ 'toggle' => array(
257
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
258
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
259
  ),
260
+ ),
261
+ 'show_filters' => array(
262
+ 'type' => 'switcher',
263
+ 'title' => esc_html__( 'Show filter by groups before team listing', 'cherry-team' ),
264
+ 'value' => 'false',
265
+ 'toggle' => array(
266
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
267
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
 
 
268
  ),
269
+ ),
270
+ 'image_size' => array(
271
+ 'type' => 'select',
272
+ 'title' => esc_html__( 'Listing item image size (if used in template)', 'cherry-team' ),
273
+ 'value' => 'thumbnail',
274
+ 'options' => false,
275
+ 'options_cb' => array( cherry_team_members_tools(), 'get_image_sizes' ),
276
+ ),
277
+ 'template' => array(
278
+ 'type' => 'select',
279
+ 'title' => esc_html__( 'Listing item template', 'cherry-team' ),
280
+ 'value' => 'default',
281
+ 'options' => false,
282
+ 'options_cb' => array( cherry_team_members_tools(), 'get_templates' ),
283
+ ),
284
+ 'use_space' => array(
285
+ 'type' => 'switcher',
286
+ 'title' => esc_html__( 'Add space between team coumns', 'cherry-team' ),
287
+ 'value' => 'true',
288
+ 'toggle' => array(
289
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
290
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
291
  ),
292
+ ),
293
+ 'use_rows_space' => array(
294
+ 'type' => 'switcher',
295
+ 'title' => esc_html__( 'Add space between team rows', 'cherry-team' ),
296
+ 'value' => 'true',
297
+ 'toggle' => array(
298
+ 'true_toggle' => esc_html__( 'Yes', 'cherry-team' ),
299
+ 'false_toggle' => esc_html__( 'No', 'cherry-team' ),
300
  ),
301
  ),
302
+ ) );
303
+
304
+ }
305
+
306
+ /**
307
+ * Returns team categories list.
308
+ *
309
+ * @return array
310
+ */
311
+ public function get_categories() {
312
+ return cherry_team_members()->utilities->utility->satellite->get_terms_array( 'group', 'slug' );
313
+ }
314
+
315
+ /**
316
+ * Register team shortcode for shortcodes builder
317
+ *
318
+ * @return void
319
+ */
320
+ public function register_shortcode_for_builder() {
321
+
322
+ cherry_team_members()->get_core()->init_module( 'cherry5-insert-shortcode', array() );
323
+
324
+ cherry5_register_shortcode(
325
+ array(
326
+ 'title' => esc_html__( 'Team', 'cherry-team' ),
327
+ 'description' => esc_html__( 'Showcase your team with Cherry Team Members plugin', 'cherry-team' ),
328
+ 'icon' => '<span class="dashicons dashicons-businessman"></span>',
329
+ 'slug' => 'cherry-team-plugin',
330
+ 'shortcodes' => array(
331
+ array(
332
+ 'title' => esc_html__( 'Team', 'cherry-projects' ),
333
+ 'description' => esc_html__( 'Shortcode is used to display the team members list', 'cherry-team' ),
334
+ 'icon' => '<span class="dashicons dashicons-businessman"></span>',
335
+ 'slug' => $this->tag(),
336
+ 'options' => $this->shortcode_args(),
337
+ ),
338
+ ),
339
+ )
340
  );
341
+ }
342
 
343
+ /**
344
+ * Set defaults callback.
345
+ *
346
+ * @param array &$item Shortcode fields data.
347
+ */
348
+ public function set_defaults( &$item ) {
349
+ $item = $item['value'];
350
  }
351
 
352
  /**
390
  'use_rows_space' => true,
391
  );
392
 
393
+ // Set up the default arguments.
394
+ $defaults = $this->shortcode_args();
395
+ array_walk( $defaults, array( $this, 'set_defaults' ) );
396
+
397
  /**
398
  * Parse the arguments.
399
  *
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, team, cherry-framework
5
  Requires at least: 4.5
6
- Tested up to: 4.7.2
7
- Stable tag: 1.0.6
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -79,6 +79,10 @@ Standard templates can be rewritten in the theme. For that you need to create ch
79
 
80
  == Changelog ==
81
 
 
 
 
 
82
  = 1.0.6 =
83
 
84
  * ADD: Cherry Search compatibility
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, team, cherry-framework
5
  Requires at least: 4.5
6
+ Tested up to: 4.7.3
7
+ Stable tag: 1.1.0
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
79
 
80
  == Changelog ==
81
 
82
+ = 1.1.0 =
83
+
84
+ * ADD: Insert shortcode button in editor
85
+
86
  = 1.0.6 =
87
 
88
  * ADD: Cherry Search compatibility