Cherry Services List - Version 1.0.5

Version Description

  • FIX: Rename serialize script to prevent conflicts with other plugins
  • ADD: compatibility with Cherry Search
Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Services List
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (51) hide show
  1. admin/includes/class-cherry-services-meta.php +7 -7
  2. admin/includes/class-cherry-services-options-page.php +1 -0
  3. cherry-framework/cherry-core.php +3 -3
  4. cherry-framework/config.json +15 -26
  5. cherry-framework/languages/cherry-framework.pot +7 -36
  6. cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php +1 -11
  7. cherry-framework/modules/cherry-db-updater/cherry-db-updater.php +23 -31
  8. cherry-framework/modules/cherry-handler/assets/js/cherry-handler.js +0 -21
  9. cherry-framework/modules/cherry-handler/assets/js/min/cherry-handler.min.js +1 -1
  10. cherry-framework/modules/cherry-handler/cherry-handler.php +13 -13
  11. cherry-framework/modules/cherry-interface-builder/cherry-interface-builder.php +28 -33
  12. cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.js +1 -5
  13. cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.scss +8 -13
  14. cherry-framework/modules/cherry-interface-builder/inc/assets/min/cherry-interface-builder.min.css +1 -1
  15. cherry-framework/modules/cherry-interface-builder/inc/assets/min/cherry-interface-builder.min.js +1 -1
  16. cherry-framework/modules/cherry-js-core/assets/js/min/cherry-js-core.min.js +1 -1
  17. cherry-framework/modules/cherry-js-core/cherry-js-core.php +1 -1
  18. cherry-framework/modules/cherry-post-formats-api/inc/class-cherry-facebook-embed.php +1 -1
  19. cherry-framework/modules/cherry-ui-elements/cherry-ui-elements.php +3 -2
  20. cherry-framework/modules/cherry-ui-elements/i-ui.php +1 -1
  21. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/ui-button.php +11 -10
  22. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/min/ui-checkbox.min.js +1 -1
  23. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/ui-checkbox.php +18 -21
  24. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/ui-colorpicker.php +15 -15
  25. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/min/ui-iconpicker.min.js +1 -1
  26. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.js +6 -59
  27. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php +14 -36
  28. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/min/ui-media.min.js +1 -1
  29. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.js +1 -0
  30. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/ui-media.php +8 -9
  31. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/ui-radio.php +26 -28
  32. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/ui-repeater.php +10 -9
  33. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/ui-select.php +39 -42
  34. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/ui-slider.php +8 -9
  35. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/ui-stepper.php +16 -18
  36. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/ui-switcher.php +19 -22
  37. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/ui-text.php +19 -22
  38. cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/ui-textarea.php +15 -17
  39. cherry-framework/modules/cherry-ui-elements/ui-element.php +1 -1
  40. cherry-framework/modules/cherry-utility/inc/cherry-attributes-utilit.php +1 -1
  41. cherry-framework/modules/cherry-utility/inc/cherry-media-utilit.php +30 -33
  42. cherry-framework/modules/cherry-utility/inc/cherry-meta-data-utilit.php +1 -1
  43. cherry-framework/modules/cherry-utility/inc/cherry-satellite-utilit.php +4 -2
  44. cherry-framework/modules/cherry-widget-factory/inc/class-cherry-abstract-widget.php +1 -1
  45. cherry-framework/setup.php +1 -1
  46. cherry-services-list.php +2 -2
  47. public/includes/class-cherry-services-list-init.php +15 -0
  48. public/includes/class-cherry-services-list-template-callbacks.php +1 -1
  49. public/includes/class-cherry-services-list-templater.php +4 -1
  50. readme.txt +16 -11
  51. wpml-config.xml +33 -0
admin/includes/class-cherry-services-meta.php CHANGED
@@ -359,7 +359,7 @@ class Cherry_Services_List_Meta extends Cherry_Services_List {
359
  'placeholder' => esc_html__( 'Field Type', 'cherry-services' ),
360
  'label' => esc_html__( 'Type', 'cherry-services' ),
361
  'options' => array(
362
- 'text' => __( 'Text', 'cherry-sevices' ),
363
  'email' => __( 'Email', 'cherry-services' ),
364
  'textarea' => __( 'Textarea', 'cherry-services' ),
365
  ),
@@ -387,7 +387,7 @@ class Cherry_Services_List_Meta extends Cherry_Services_List {
387
  'name' => 'width',
388
  'label' => esc_html__( 'Field Width', 'cherry-services' ),
389
  'options' => array(
390
- '1' => __( 'Fullwidth', 'cherry-sevices' ),
391
  '1/3' => __( '1/3', 'cherry-services' ),
392
  '1/2' => __( '1/2', 'cherry-services' ),
393
  '2/3' => __( '2/3', 'cherry-services' ),
@@ -400,7 +400,7 @@ class Cherry_Services_List_Meta extends Cherry_Services_List {
400
  'name' => 'required',
401
  'label' => esc_html__( 'Is Required Field?', 'cherry-services' ),
402
  'options' => array(
403
- 'yes' => __( 'Yes', 'cherry-sevices' ),
404
  'no' => __( 'No', 'cherry-services' ),
405
  ),
406
  'sanitize_callback' => 'esc_attr',
@@ -613,7 +613,7 @@ class Cherry_Services_List_Meta extends Cherry_Services_List {
613
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-avatar' ),
614
  'label' => esc_html__( 'Show avatar?', 'cherry-services' ),
615
  'options' => array(
616
- 'on' => __( 'Yes', 'cherry-sevices' ),
617
  'off' => __( 'No', 'cherry-services' ),
618
  ),
619
  'sanitize_callback' => 'esc_attr',
@@ -646,7 +646,7 @@ class Cherry_Services_List_Meta extends Cherry_Services_List {
646
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-email' ),
647
  'label' => esc_html__( 'Show email?', 'cherry-services' ),
648
  'options' => array(
649
- 'on' => __( 'Yes', 'cherry-sevices' ),
650
  'off' => __( 'No', 'cherry-services' ),
651
  ),
652
  'sanitize_callback' => 'esc_attr',
@@ -657,7 +657,7 @@ class Cherry_Services_List_Meta extends Cherry_Services_List {
657
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-position' ),
658
  'label' => esc_html__( 'Show position?', 'cherry-services' ),
659
  'options' => array(
660
- 'on' => __( 'Yes', 'cherry-sevices' ),
661
  'off' => __( 'No', 'cherry-services' ),
662
  ),
663
  'sanitize_callback' => 'esc_attr',
@@ -668,7 +668,7 @@ class Cherry_Services_List_Meta extends Cherry_Services_List {
668
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-company' ),
669
  'label' => esc_html__( 'Show company?', 'cherry-services' ),
670
  'options' => array(
671
- 'on' => __( 'Yes', 'cherry-sevices' ),
672
  'off' => __( 'No', 'cherry-services' ),
673
  ),
674
  'sanitize_callback' => 'esc_attr',
359
  'placeholder' => esc_html__( 'Field Type', 'cherry-services' ),
360
  'label' => esc_html__( 'Type', 'cherry-services' ),
361
  'options' => array(
362
+ 'text' => __( 'Text', 'cherry-services' ),
363
  'email' => __( 'Email', 'cherry-services' ),
364
  'textarea' => __( 'Textarea', 'cherry-services' ),
365
  ),
387
  'name' => 'width',
388
  'label' => esc_html__( 'Field Width', 'cherry-services' ),
389
  'options' => array(
390
+ '1' => __( 'Fullwidth', 'cherry-services' ),
391
  '1/3' => __( '1/3', 'cherry-services' ),
392
  '1/2' => __( '1/2', 'cherry-services' ),
393
  '2/3' => __( '2/3', 'cherry-services' ),
400
  'name' => 'required',
401
  'label' => esc_html__( 'Is Required Field?', 'cherry-services' ),
402
  'options' => array(
403
+ 'yes' => __( 'Yes', 'cherry-services' ),
404
  'no' => __( 'No', 'cherry-services' ),
405
  ),
406
  'sanitize_callback' => 'esc_attr',
613
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-avatar' ),
614
  'label' => esc_html__( 'Show avatar?', 'cherry-services' ),
615
  'options' => array(
616
+ 'on' => __( 'Yes', 'cherry-services' ),
617
  'off' => __( 'No', 'cherry-services' ),
618
  ),
619
  'sanitize_callback' => 'esc_attr',
646
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-email' ),
647
  'label' => esc_html__( 'Show email?', 'cherry-services' ),
648
  'options' => array(
649
+ 'on' => __( 'Yes', 'cherry-services' ),
650
  'off' => __( 'No', 'cherry-services' ),
651
  ),
652
  'sanitize_callback' => 'esc_attr',
657
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-position' ),
658
  'label' => esc_html__( 'Show position?', 'cherry-services' ),
659
  'options' => array(
660
+ 'on' => __( 'Yes', 'cherry-services' ),
661
  'off' => __( 'No', 'cherry-services' ),
662
  ),
663
  'sanitize_callback' => 'esc_attr',
668
  'name' => $this->get_field_name( 'cherry-services-testi', 'show-company' ),
669
  'label' => esc_html__( 'Show company?', 'cherry-services' ),
670
  'options' => array(
671
+ 'on' => __( 'Yes', 'cherry-services' ),
672
  'off' => __( 'No', 'cherry-services' ),
673
  ),
674
  'sanitize_callback' => 'esc_attr',
admin/includes/class-cherry-services-options-page.php CHANGED
@@ -253,6 +253,7 @@ class Cherry_Services_Options_Page extends Cherry_Services_List {
253
 
254
  $value = isset( $current_options[ $key ] ) ? $current_options[ $key ] : false;
255
  $value = ( false !== $value ) ? $value : Cherry_Toolkit::get_arg( $field, 'value', '' );
 
256
 
257
  if ( isset( $field['options_callback'] ) ) {
258
 
253
 
254
  $value = isset( $current_options[ $key ] ) ? $current_options[ $key ] : false;
255
  $value = ( false !== $value ) ? $value : Cherry_Toolkit::get_arg( $field, 'value', '' );
256
+ $value = ( 'archive-page' == $key ) ? apply_filters( 'wpml_object_id', $value, 'page', true ) : $value;
257
 
258
  if ( isset( $field['options_callback'] ) ) {
259
 
cherry-framework/cherry-core.php CHANGED
@@ -1,14 +1,14 @@
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
  */
13
 
14
  // If this file is called directly, abort.
@@ -171,7 +171,7 @@ if ( ! class_exists( 'Cherry_Core' ) ) {
171
  /**
172
  * Load the framework textdomain.
173
  *
174
- * @since 1.4.0
175
  */
176
  public function load_textdomain() {
177
  $mo_file_path = dirname( __FILE__ ) . '/languages/' . get_locale() . '.mo';
1
  <?php
2
  /**
3
  * Class Cherry Core
4
+ * Version: 1.3.1
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/old-licenses/gpl-3.0.html
12
  */
13
 
14
  // If this file is called directly, abort.
171
  /**
172
  * Load the framework textdomain.
173
  *
174
+ * @since 1.3.2
175
  */
176
  public function load_textdomain() {
177
  $mo_file_path = dirname( __FILE__ ) . '/languages/' . get_locale() . '.mo';
cherry-framework/config.json CHANGED
@@ -1,8 +1,8 @@
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",
7
  "modules" : {
8
  "cherry-breadcrumbs" : {
@@ -20,7 +20,7 @@
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"],
26
  "wordpress_org" : true,
@@ -42,7 +42,7 @@
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"],
48
  "wordpress_org" : true,
@@ -63,8 +63,8 @@
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"],
70
  "wordpress_org" : true,
@@ -74,8 +74,8 @@
74
  "cherry-interface-builder" : {
75
  "name" : "Interface Builder",
76
  "description" : "The module for the creation of interfaces in the WordPress admin panel.",
77
- "version" : "1.1.2",
78
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/07.%20cherry-interface-builder.md",
79
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-interface-builder",
80
  "compatible" : ["theme", "plugin"],
81
  "wordpress_org" : true,
@@ -86,7 +86,7 @@
86
  "name" : "JS Core",
87
  "description" : "Initialize global JS object which provides additional plugin functionality.",
88
  "version" : "1.1.2",
89
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/04.%20cherry-js-core.md",
90
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-js-core",
91
  "compatible" : ["theme", "plugin"],
92
  "wordpress_org" : true,
@@ -119,7 +119,7 @@
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"],
125
  "wordpress_org" : true,
@@ -141,7 +141,7 @@
141
  "name": "Framework Toolkit",
142
  "description": "Framework Toolkit contains various PHP utilities",
143
  "version" : "1.2.0",
144
- "doc_link": "https://github.com/CherryFramework/cherry-framework-docs/blob/master/100.%20cherry-toolkit.md",
145
  "git_link": "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-toolkit",
146
  "compatible": ["theme", "plugin"],
147
  "wordpress_org": true,
@@ -151,8 +151,8 @@
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"],
158
  "wordpress_org" : true,
@@ -163,7 +163,7 @@
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"],
169
  "wordpress_org" : true,
@@ -174,23 +174,12 @@
174
  "name" : "Widget Factory",
175
  "description" : "Base widget class that simplifies creating of your own widgets.",
176
  "version" : "1.2.1",
177
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/06.%20cherry-widget-factory.md",
178
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-widget-factory",
179
  "compatible" : ["theme", "plugin"],
180
  "wordpress_org" : true,
181
  "required" : false,
182
  "dependencies" : [ "cherry-ui-elements" ]
183
- },
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" ],
191
- "wordpress_org" : true,
192
- "required" : false,
193
- "dependencies" : [ "cherry-ui-elements", "cherry-interface-builder" ]
194
  }
195
  }
196
  }
1
  {
2
  "name" : "Cherry Framework",
3
+ "version" : "1.3.1",
4
  "description" : "",
5
+ "doc_link" : "",
6
  "git_link" : "https://github.com/CherryFramework/cherry-framework",
7
  "modules" : {
8
  "cherry-breadcrumbs" : {
20
  "name" : "Customizer API",
21
  "description" : "Customizer functionality.",
22
  "version" : "1.1.5",
23
+ "doc_link" : "",
24
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-customizer",
25
  "compatible" : ["theme", "plugin"],
26
  "wordpress_org" : true,
42
  "name" : "Dynamic CSS",
43
  "description" : "Generate CSS.",
44
  "version" : "1.2.2",
45
+ "doc_link" : "",
46
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-dynamic-css",
47
  "compatible" : ["theme", "plugin"],
48
  "wordpress_org" : true,
63
  "cherry-handler" : {
64
  "name" : "Cherry handler",
65
  "description" : "Initialize handlers.",
66
+ "version" : "1.1.0",
67
+ "doc_link" : "",
68
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-handler",
69
  "compatible" : ["theme", "plugin"],
70
  "wordpress_org" : true,
74
  "cherry-interface-builder" : {
75
  "name" : "Interface Builder",
76
  "description" : "The module for the creation of interfaces in the WordPress admin panel.",
77
+ "version" : "1.1.1",
78
+ "doc_link" : "",
79
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-interface-builder",
80
  "compatible" : ["theme", "plugin"],
81
  "wordpress_org" : true,
86
  "name" : "JS Core",
87
  "description" : "Initialize global JS object which provides additional plugin functionality.",
88
  "version" : "1.1.2",
89
+ "doc_link" : "",
90
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-js-core",
91
  "compatible" : ["theme", "plugin"],
92
  "wordpress_org" : true,
119
  "name" : "Template Manager",
120
  "description" : "Module for load and parse *.tmpl files.",
121
  "version" : "1.0.1",
122
+ "doc_link" : "",
123
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-template-manager",
124
  "compatible" : ["theme", "plugin"],
125
  "wordpress_org" : true,
141
  "name": "Framework Toolkit",
142
  "description": "Framework Toolkit contains various PHP utilities",
143
  "version" : "1.2.0",
144
+ "doc_link": "",
145
  "git_link": "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-toolkit",
146
  "compatible": ["theme", "plugin"],
147
  "wordpress_org": true,
151
  "cherry-ui-elements" : {
152
  "name" : "UI Elements",
153
  "description" : "UI Elements",
154
+ "version" : "1.3.2",
155
+ "doc_link" : "",
156
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-ui-elements",
157
  "compatible" : ["theme", "plugin"],
158
  "wordpress_org" : true,
163
  "name" : "Utility",
164
  "description" : "Multiple utility functions.",
165
  "version" : "1.1.5",
166
+ "doc_link" : "",
167
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-utility",
168
  "compatible" : ["theme", "plugin"],
169
  "wordpress_org" : true,
174
  "name" : "Widget Factory",
175
  "description" : "Base widget class that simplifies creating of your own widgets.",
176
  "version" : "1.2.1",
177
+ "doc_link" : "",
178
  "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-widget-factory",
179
  "compatible" : ["theme", "plugin"],
180
  "wordpress_org" : true,
181
  "required" : false,
182
  "dependencies" : [ "cherry-ui-elements" ]
 
 
 
 
 
 
 
 
 
 
 
183
  }
184
  }
185
  }
cherry-framework/languages/cherry-framework.pot CHANGED
@@ -1,8 +1,7 @@
1
- #, fuzzy
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: cherry-framework\n"
5
- "POT-Creation-Date: 2016-12-26 14:10+0200\n"
6
  "PO-Revision-Date: 2016-12-09 16:29+0200\n"
7
  "Last-Translator: \n"
8
  "Language-Team: TemplateMonster\n"
@@ -10,7 +9,7 @@ msgstr ""
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 1.8.11\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -68,52 +67,24 @@ msgstr ""
68
  msgid "Untitled Control"
69
  msgstr ""
70
 
71
- #: modules/cherry-db-updater/cherry-db-updater.php:105
72
  #, php-format
73
  msgid ""
74
  "Module DB Updater init error in %s - version and slug is required arguments"
75
  msgstr ""
76
 
77
- #: modules/cherry-db-updater/cherry-db-updater.php:106
78
  msgid "We need to update your database to the latest version."
79
  msgstr ""
80
 
81
- #: modules/cherry-db-updater/cherry-db-updater.php:107
82
  msgid "Update complete, thank you for updating to the latest version!"
83
  msgstr ""
84
 
85
- #: modules/cherry-db-updater/cherry-db-updater.php:331
86
  msgid "Start Update"
87
  msgstr ""
88
 
89
- #: modules/cherry-db-updater/cherry-db-updater.php:368
90
  msgid "Data Update"
91
  msgstr ""
92
-
93
- #: modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-button.php:63
94
- msgid "Cherry shortcodes"
95
- msgstr ""
96
-
97
- #: modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:128
98
- msgid "insert shortcode"
99
- msgstr ""
100
-
101
- #: modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:148
102
- msgid "Shortcode List"
103
- msgstr ""
104
-
105
- #: modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:206
106
- msgid "Shortcode not found."
107
- msgstr ""
108
-
109
- #: modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:261
110
- msgid "Shortcode content."
111
- msgstr ""
112
-
113
- #: modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:262
114
- msgid "Input shortcode content."
115
- msgstr ""
116
-
117
- #: modules/cherry5-insert-shortcode/inc/class-cherry5-insertion-popup.php:277
118
- msgid "Shortcode not a have options."
119
- msgstr ""
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: cherry-framework\n"
4
+ "POT-Creation-Date: 2016-12-09 16:29+0200\n"
5
  "PO-Revision-Date: 2016-12-09 16:29+0200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: TemplateMonster\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.6\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
67
  msgid "Untitled Control"
68
  msgstr ""
69
 
70
+ #: modules/cherry-db-updater/cherry-db-updater.php:102
71
  #, php-format
72
  msgid ""
73
  "Module DB Updater init error in %s - version and slug is required arguments"
74
  msgstr ""
75
 
76
+ #: modules/cherry-db-updater/cherry-db-updater.php:103
77
  msgid "We need to update your database to the latest version."
78
  msgstr ""
79
 
80
+ #: modules/cherry-db-updater/cherry-db-updater.php:104
81
  msgid "Update complete, thank you for updating to the latest version!"
82
  msgstr ""
83
 
84
+ #: modules/cherry-db-updater/cherry-db-updater.php:318
85
  msgid "Start Update"
86
  msgstr ""
87
 
88
+ #: modules/cherry-db-updater/cherry-db-updater.php:358
89
  msgid "Data Update"
90
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cherry-framework/modules/cherry-breadcrumbs/cherry-breadcrumbs.php CHANGED
@@ -1446,17 +1446,7 @@ if ( ! class_exists( 'Cherry_Breadcrumbs' ) ) {
1446
  if ( $terms ) {
1447
 
1448
  /* Sort the terms by ID and get the first category. */
1449
- if ( function_exists( 'wp_list_sort' ) ) {
1450
- $terms = wp_list_sort( $terms, array(
1451
- 'term_id' => 'ASC',
1452
- ) );
1453
-
1454
- } else {
1455
-
1456
- // Backward compatibility with WordPress 4.6 or later.
1457
- usort( $terms, '_usort_terms_by_ID' );
1458
- }
1459
-
1460
  $term = get_term( $terms[0], 'category' );
1461
 
1462
  /* If the category has a parent, add the hierarchy to the trail. */
1446
  if ( $terms ) {
1447
 
1448
  /* Sort the terms by ID and get the first category. */
1449
+ usort( $terms, '_usort_terms_by_ID' );
 
 
 
 
 
 
 
 
 
 
1450
  $term = get_term( $terms[0], 'category' );
1451
 
1452
  /* If the category has a parent, add the hierarchy to the trail. */
cherry-framework/modules/cherry-db-updater/cherry-db-updater.php CHANGED
@@ -34,8 +34,9 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
34
  /**
35
  * Module arguments.
36
  *
37
- * @since 1.0.0
38
- * @var array
 
39
  */
40
  private $args = array(
41
  'callbacks' => array(),
@@ -46,7 +47,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
46
  /**
47
  * Option key for DB version.
48
  *
49
- * @since 1.0.0
50
  * @var string
51
  */
52
  protected $version_key = '%s-db-version';
@@ -54,15 +54,13 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
54
  /**
55
  * Nonce format.
56
  *
57
- * @since 1.0.0
58
  * @var string
59
  */
60
  protected $nonce = '_%s-db-update-nonce';
61
 
62
  /**
63
- * Messages array.
64
  *
65
- * @since 1.0.0
66
  * @var array
67
  */
68
  protected $messages = array();
@@ -70,15 +68,13 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
70
  /**
71
  * Update done trigger.
72
  *
73
- * @since 1.0.0
74
- * @var bool
75
  */
76
  protected $updated = false;
77
 
78
  /**
79
- * Core instance.
80
  *
81
- * @since 1.0.0
82
  * @var object
83
  */
84
  public $core = null;
@@ -87,6 +83,7 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
87
  * Cherry_Db_Updater constructor.
88
  *
89
  * @since 1.0.0
 
90
  * @return void
91
  */
92
  public function __construct( $core = null, $args = array() ) {
@@ -111,8 +108,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
111
 
112
  /**
113
  * Process DB update.
114
- *
115
- * @since 1.0.0
116
  */
117
  public function do_update() {
118
 
@@ -134,9 +129,7 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
134
  }
135
 
136
  /**
137
- * Finalize update.
138
- *
139
- * @since 1.0.0
140
  */
141
  public function set_updated() {
142
  $this->updated = true;
@@ -147,7 +140,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
147
  /**
148
  * Prepare callbacks array.
149
  *
150
- * @since 1.0.0
151
  * @return array
152
  */
153
  private function prepare_callbacks() {
@@ -167,13 +159,13 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
167
  }
168
 
169
  return $callbacks;
 
170
  }
171
 
172
  /**
173
  * Check if we processed update for plugin passed in arguments.
174
  *
175
- * @since 1.0.0
176
- * @return bool
177
  */
178
  private function is_current_update() {
179
 
@@ -197,7 +189,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
197
  /**
198
  * Init admin notices.
199
  *
200
- * @since 1.0.0
201
  * @return void
202
  */
203
  public function init_notices() {
@@ -217,12 +208,12 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
217
  if ( $this->is_updated() ) {
218
  $this->show_updated_notice( $slug );
219
  }
 
220
  }
221
 
222
  /**
223
  * Returns current DB version.
224
  *
225
- * @since 1.0.0
226
  * @return string
227
  */
228
  private function get_current_version() {
@@ -231,9 +222,8 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
231
  }
232
 
233
  /**
234
- * Check if database requires update.
235
  *
236
- * @since 1.0.0
237
  * @return bool
238
  */
239
  private function is_update_required() {
@@ -244,7 +234,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
244
  /**
245
  * Check if update was succesfully done.
246
  *
247
- * @since 1.0.0
248
  * @return bool
249
  */
250
  private function is_updated() {
@@ -254,12 +243,12 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
254
  }
255
 
256
  return (bool) $this->updated;
 
257
  }
258
 
259
  /**
260
  * Validate module arguments.
261
  *
262
- * @since 1.0.0
263
  * @return bool
264
  */
265
  private function validate_module_args() {
@@ -276,12 +265,12 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
276
  }
277
 
278
  return true;
 
279
  }
280
 
281
  /**
282
  * Show notice.
283
  *
284
- * @since 1.0.0
285
  * @param string $slug Plugin slug.
286
  * @return void
287
  */
@@ -302,7 +291,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
302
  /**
303
  * Show update notice.
304
  *
305
- * @since 1.0.0
306
  * @return void
307
  */
308
  private function show_updated_notice() {
@@ -321,7 +309,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
321
  /**
322
  * Show plugin notice submit button.
323
  *
324
- * @since 1.0.0
325
  * @param string $slug Plugin slug.
326
  * @return void
327
  */
@@ -343,9 +330,8 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
343
  }
344
 
345
  /**
346
- * Create DB update nonce.
347
  *
348
- * @since 1.0.0
349
  * @param string $slug Plugin slug.
350
  * @return string
351
  */
@@ -356,7 +342,6 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
356
  /**
357
  * Show plugin notice title.
358
  *
359
- * @since 1.0.0
360
  * @param string $slug Plugin slug.
361
  * @return void
362
  */
@@ -365,13 +350,20 @@ if ( ! class_exists( 'Cherry_Db_Updater' ) ) {
365
  $name = str_replace( '-', ' ', $slug );
366
  $name = ucwords( $name );
367
 
 
 
 
 
 
368
  printf( '<strong>%1$s %2$s</strong> &#8211; ', $name, esc_html__( 'Data Update', 'cherry-framework' ) );
 
369
  }
370
 
371
  /**
372
  * Returns the instance.
373
  *
374
- * @since 1.0.0
 
375
  * @return object
376
  */
377
  public static function get_instance( $core = null, $args = array() ) {
34
  /**
35
  * Module arguments.
36
  *
37
+ * @since 1.0.0
38
+ * @access private
39
+ * @var array
40
  */
41
  private $args = array(
42
  'callbacks' => array(),
47
  /**
48
  * Option key for DB version.
49
  *
 
50
  * @var string
51
  */
52
  protected $version_key = '%s-db-version';
54
  /**
55
  * Nonce format.
56
  *
 
57
  * @var string
58
  */
59
  protected $nonce = '_%s-db-update-nonce';
60
 
61
  /**
62
+ * Messages array
63
  *
 
64
  * @var array
65
  */
66
  protected $messages = array();
68
  /**
69
  * Update done trigger.
70
  *
71
+ * @var boolean
 
72
  */
73
  protected $updated = false;
74
 
75
  /**
76
+ * Core instance
77
  *
 
78
  * @var object
79
  */
80
  public $core = null;
83
  * Cherry_Db_Updater constructor.
84
  *
85
  * @since 1.0.0
86
+ * @access public
87
  * @return void
88
  */
89
  public function __construct( $core = null, $args = array() ) {
108
 
109
  /**
110
  * Process DB update.
 
 
111
  */
112
  public function do_update() {
113
 
129
  }
130
 
131
  /**
132
+ * Finalize update
 
 
133
  */
134
  public function set_updated() {
135
  $this->updated = true;
140
  /**
141
  * Prepare callbacks array.
142
  *
 
143
  * @return array
144
  */
145
  private function prepare_callbacks() {
159
  }
160
 
161
  return $callbacks;
162
+
163
  }
164
 
165
  /**
166
  * Check if we processed update for plugin passed in arguments.
167
  *
168
+ * @return boolean
 
169
  */
170
  private function is_current_update() {
171
 
189
  /**
190
  * Init admin notices.
191
  *
 
192
  * @return void
193
  */
194
  public function init_notices() {
208
  if ( $this->is_updated() ) {
209
  $this->show_updated_notice( $slug );
210
  }
211
+
212
  }
213
 
214
  /**
215
  * Returns current DB version.
216
  *
 
217
  * @return string
218
  */
219
  private function get_current_version() {
222
  }
223
 
224
  /**
225
+ * Check if database requires update
226
  *
 
227
  * @return bool
228
  */
229
  private function is_update_required() {
234
  /**
235
  * Check if update was succesfully done.
236
  *
 
237
  * @return bool
238
  */
239
  private function is_updated() {
243
  }
244
 
245
  return (bool) $this->updated;
246
+
247
  }
248
 
249
  /**
250
  * Validate module arguments.
251
  *
 
252
  * @return bool
253
  */
254
  private function validate_module_args() {
265
  }
266
 
267
  return true;
268
+
269
  }
270
 
271
  /**
272
  * Show notice.
273
  *
 
274
  * @param string $slug Plugin slug.
275
  * @return void
276
  */
291
  /**
292
  * Show update notice.
293
  *
 
294
  * @return void
295
  */
296
  private function show_updated_notice() {
309
  /**
310
  * Show plugin notice submit button.
311
  *
 
312
  * @param string $slug Plugin slug.
313
  * @return void
314
  */
330
  }
331
 
332
  /**
333
+ * Create DB update nonce
334
  *
 
335
  * @param string $slug Plugin slug.
336
  * @return string
337
  */
342
  /**
343
  * Show plugin notice title.
344
  *
 
345
  * @param string $slug Plugin slug.
346
  * @return void
347
  */
350
  $name = str_replace( '-', ' ', $slug );
351
  $name = ucwords( $name );
352
 
353
+ /**
354
+ * Todo list.
355
+ *
356
+ * @todo Prepare strings for translate.
357
+ */
358
  printf( '<strong>%1$s %2$s</strong> &#8211; ', $name, esc_html__( 'Data Update', 'cherry-framework' ) );
359
+
360
  }
361
 
362
  /**
363
  * Returns the instance.
364
  *
365
+ * @since 1.0.0
366
+ * @access public
367
  * @return object
368
  */
369
  public static function get_instance( $core = null, $args = array() ) {
cherry-framework/modules/cherry-handler/assets/js/cherry-handler.js CHANGED
@@ -118,27 +118,12 @@
118
  }
119
  },
120
  error: function( jqXHR, textStatus, errorThrown ) {
121
- $( document ).trigger( {
122
- type: 'cherry-ajax-handler-error',
123
- jqXHR: jqXHR,
124
- textStatus: textStatus,
125
- errorThrown: errorThrown
126
- } );
127
-
128
  if ( settings.errorCallback && 'function' === typeof( settings.errorCallback ) ) {
129
  settings.errorCallback( jqXHR, textStatus, errorThrown );
130
  }
131
  },
132
  success: function( data, textStatus, jqXHR ) {
133
  self.ajaxProcessing = false;
134
-
135
- $( document ).trigger( {
136
- type: 'cherry-ajax-handler-success',
137
- response: data,
138
- jqXHR: jqXHR,
139
- textStatus: textStatus
140
- } );
141
-
142
  if ( settings.successCallback && 'function' === typeof( settings.successCallback ) ) {
143
  settings.successCallback( data, textStatus, jqXHR );
144
  }
@@ -146,12 +131,6 @@
146
  CherryJsCore.cherryHandlerUtils.noticeCreate( data.type, data.message, self.handlerSettings.is_public );
147
  },
148
  complete: function( jqXHR, textStatus ) {
149
- $( document ).trigger( {
150
- type: 'cherry-ajax-handler-complete',
151
- jqXHR: jqXHR,
152
- textStatus: textStatus
153
- } );
154
-
155
  if ( settings.completeCallback && 'function' === typeof( settings.completeCallback ) ) {
156
  settings.completeCallback( jqXHR, textStatus );
157
  }
118
  }
119
  },
120
  error: function( jqXHR, textStatus, errorThrown ) {
 
 
 
 
 
 
 
121
  if ( settings.errorCallback && 'function' === typeof( settings.errorCallback ) ) {
122
  settings.errorCallback( jqXHR, textStatus, errorThrown );
123
  }
124
  },
125
  success: function( data, textStatus, jqXHR ) {
126
  self.ajaxProcessing = false;
 
 
 
 
 
 
 
 
127
  if ( settings.successCallback && 'function' === typeof( settings.successCallback ) ) {
128
  settings.successCallback( data, textStatus, jqXHR );
129
  }
131
  CherryJsCore.cherryHandlerUtils.noticeCreate( data.type, data.message, self.handlerSettings.is_public );
132
  },
133
  complete: function( jqXHR, textStatus ) {
 
 
 
 
 
 
134
  if ( settings.completeCallback && 'function' === typeof( settings.completeCallback ) ) {
135
  settings.completeCallback( jqXHR, textStatus );
136
  }
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(n){var t=this,r={handlerId:"",cache:!1,processData:!0,url:"",beforeSendCallback:function(){},errorCallback:function(){},successCallback:function(){},completeCallback:function(){}};return n&&e.extend(r,n),window[r.handlerId]?(t.handlerSettings=window[r.handlerId]||{},t.ajaxRequest=null,t.ajaxProcessing=!1,t.data={action:t.handlerSettings.action,nonce:t.handlerSettings.nonce},""===r.url&&(r.url="false"===t.handlerSettings.is_public?window.ajaxurl:window.cherryHandlerAjaxUrl.ajax_url),t.send=function(){t.ajaxProcessing&&a.cherryHandlerUtils.noticeCreate("error-notice",t.handlerSettings.sys_messages.wait_processing,t.handlerSettings.is_public),t.ajaxProcessing=!0,t.ajaxRequest=jQuery.ajax({type:t.handlerSettings.type,url:r.url,data:t.data,cache:r.cache,dataType:t.handlerSettings.data_type,processData:r.processData,beforeSend:function(e,a){null!==t.ajaxRequest&&t.ajaxRequest.abort(),r.beforeSendCallback&&"function"==typeof r.beforeSendCallback&&r.beforeSendCallback(e,a)},error:function(e,a,n){r.errorCallback&&"function"==typeof r.errorCallback&&r.errorCallback(e,a,n)},success:function(e,n,i){t.ajaxProcessing=!1,r.successCallback&&"function"==typeof r.successCallback&&r.successCallback(e,n,i),a.cherryHandlerUtils.noticeCreate(e.type,e.message,t.handlerSettings.is_public)},complete:function(e,a){r.completeCallback&&"function"==typeof r.completeCallback&&r.completeCallback(e,a)}})},t.sendData=function(e){var a=e||{};t.data={action:t.handlerSettings.action,nonce:t.handlerSettings.nonce,data:a},t.send()},void(t.sendFormData=function(n){var r,i=e(n);r=a.cherryHandlerUtils.serializeObject(i),t.sendData(r)})):(window.console&&window.console.warn("Handler id not found"),!1)},a.utilites.namespace("cherryHandlerUtils"),a.cherryHandlerUtils={noticeCreate:function(a,n,t){function r(){var a=100;e(".cherry-handler-notice").each(function(){e(this).css({top:a}),a+=e(this).outerHeight(!0)})}var i,s,c=0,o=t||!1;return n&&"true"!==o?(i=e('<div class="cherry-handler-notice '+a+'"><span class="dashicons"></span><div class="inner">'+n+"</div></div>"),e("body").prepend(i),r(),c=-1*(i.outerWidth(!0)+10),i.css({right:c}),s=setTimeout(function(){i.css({right:10}).addClass("show-state")},100),s=setTimeout(function(){c=-1*(i.outerWidth(!0)+10),i.css({right:c}).removeClass("show-state")},4e3),void(s=setTimeout(function(){i.remove(),clearTimeout(s)},4500))):!1},serializeObject:function(a){var n=this,t={},r={},i={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,n){return e[a]=n,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,c;if(i.validate.test(this.name)){for(r=this.name.match(i.key),s=this.value,c=this.name;void 0!==(a=r.pop());)c=c.replace(new RegExp("\\["+a+"\\]$"),""),a.match(i.push)?s=n.build([],n.push_counter(c),s):a.match(i.fixed)?s=n.build([],a,s):a.match(i.named)&&(s=n.build({},a,s));t=e.extend(!0,t,s)}}),t}}}(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,7 +10,7 @@
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/
@@ -111,19 +111,19 @@ if ( ! class_exists( 'Cherry_Handler' ) ) {
111
  $nonce_action = ! empty( $this->settings['action'] ) ? $this->settings['action'] : 'cherry_ajax_nonce';
112
 
113
  if ( ! wp_verify_nonce( $nonce, $nonce_action ) ) {
114
- $response = apply_filters( 'cherry_handler_response_nonce', array(
115
  'message' => $this->settings['sys_messages']['invalid_nonce'],
116
  'type' => 'error-notice',
117
- ) );
118
 
119
  wp_send_json( $response );
120
  }
121
 
122
  if ( ! empty( $this->settings['capability'] ) && ! current_user_can( $this->settings['capability'] ) ) {
123
- $response = apply_filters( 'cherry_handler_response_capability', array(
124
  'message' => $this->settings['sys_messages']['no_right'],
125
  'type' => 'error-notice',
126
- ) );
127
 
128
  wp_send_json( $response );
129
  }
@@ -138,19 +138,19 @@ if ( ! class_exists( 'Cherry_Handler' ) ) {
138
  }
139
  ob_end_clean();
140
 
141
- $response = apply_filters( 'cherry_handler_response_data', array(
142
- 'message' => $this->settings['sys_messages']['access_is_allowed'],
143
- 'type' => 'success-notice',
144
- 'data' => $data,
145
- ) );
146
 
147
  wp_send_json( $response );
148
  }
149
  } else {
150
- $response = apply_filters( 'cherry_handler_invalid_data', array(
151
  'message' => $this->settings['sys_messages']['invalid_base_data'],
152
  'type' => 'error-notice',
153
- ) );
154
 
155
  wp_send_json( $response );
156
  }
2
  /**
3
  * Module Name: Cherry handler
4
  * Description: Initializes handlers
5
+ * Version: 1.1.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.1.0
14
  * @author Cherry Team <cherryframework@gmail.com>
15
  * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
111
  $nonce_action = ! empty( $this->settings['action'] ) ? $this->settings['action'] : 'cherry_ajax_nonce';
112
 
113
  if ( ! wp_verify_nonce( $nonce, $nonce_action ) ) {
114
+ $response = array(
115
  'message' => $this->settings['sys_messages']['invalid_nonce'],
116
  'type' => 'error-notice',
117
+ );
118
 
119
  wp_send_json( $response );
120
  }
121
 
122
  if ( ! empty( $this->settings['capability'] ) && ! current_user_can( $this->settings['capability'] ) ) {
123
+ $response = array(
124
  'message' => $this->settings['sys_messages']['no_right'],
125
  'type' => 'error-notice',
126
+ );
127
 
128
  wp_send_json( $response );
129
  }
138
  }
139
  ob_end_clean();
140
 
141
+ $response = array(
142
+ 'message' => $this->settings['sys_messages']['access_is_allowed'],
143
+ 'type' => 'success-notice',
144
+ 'data' => $data,
145
+ );
146
 
147
  wp_send_json( $response );
148
  }
149
  } else {
150
+ $response = array(
151
  'message' => $this->settings['sys_messages']['invalid_base_data'],
152
  'type' => 'error-notice',
153
+ );
154
 
155
  wp_send_json( $response );
156
  }
cherry-framework/modules/cherry-interface-builder/cherry-interface-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Module Name: Interface Builder
4
  * Description: The module for the creation of interfaces in the WordPress admin panel
5
- * Version: 1.1.2
6
  * Author: Cherry Team
7
  * Author URI: http://www.cherryframework.com/
8
  * License: GPLv3
@@ -10,7 +10,7 @@
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 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
@@ -38,20 +38,20 @@ if ( ! class_exists( 'Cherry_Interface_Builder' ) ) {
38
  * @var array
39
  */
40
  private $args = array(
41
- 'views' => array(
42
- 'section' => 'inc/views/section.php',
43
- 'component-tab-vertical' => 'inc/views/component-tab-vertical.php',
44
- 'component-tab-horizontal' => 'inc/views/component-tab-horizontal.php',
45
- 'component-toggle' => 'inc/views/component-toggle.php',
46
- 'component-accordion' => 'inc/views/component-accordion.php',
47
- 'component-repeater' => 'inc/views/component-repeater.php',
48
- 'settings' => 'inc/views/settings.php',
49
- 'control' => 'inc/views/control.php',
50
- 'settings-children-title' => 'inc/views/settings-children-title.php',
51
- 'tab-children-title' => 'inc/views/tab-children-title.php',
52
- 'toggle-children-title' => 'inc/views/toggle-children-title.php',
53
- 'form' => 'inc/views/form.php',
54
- 'html' => 'inc/views/html.php',
55
  ),
56
  'views_args' => array(
57
  'parent' => '',
@@ -193,7 +193,6 @@ if ( ! class_exists( 'Cherry_Interface_Builder' ) ) {
193
  * @return void
194
  */
195
  protected function add_new_element( array $args = array(), $type = 'section' ) {
196
-
197
  if ( ! isset( $args[0] ) && ! is_array( current( $args ) ) ) {
198
 
199
  if ( 'control' !== $type && 'component' !== $type ) {
@@ -201,7 +200,6 @@ if ( ! class_exists( 'Cherry_Interface_Builder' ) ) {
201
  }
202
 
203
  $this->structure[ $args['id'] ] = $args;
204
-
205
  } else {
206
  foreach ( $args as $key => $value ) {
207
 
@@ -273,17 +271,16 @@ if ( ! class_exists( 'Cherry_Interface_Builder' ) ) {
273
  */
274
  protected function get_view( $type = 'control', array $args = array() ) {
275
 
276
- if ( empty( $args['view'] ) ) {
277
- $path = ( array_key_exists( $type, $this->args['views'] ) ) ? $this->args['views'][ $type ] : $this->args['views']['control'];
278
-
279
- $path = is_array( $path ) ? $path[0] : $path;
280
- $path = file_exists( $path ) ? $path : trailingslashit( dirname( __FILE__ ) ) . $path;
281
-
282
  } else {
283
- $path = $args['view'];
284
  }
285
 
286
- return Cherry_Toolkit::render_view( $path, $args );
 
 
287
  }
288
 
289
  /**
@@ -325,7 +322,7 @@ if ( ! class_exists( 'Cherry_Interface_Builder' ) ) {
325
  */
326
  protected function build( array $args = array() ) {
327
  $output = '';
328
- $views = $this->args['views'];
329
 
330
  foreach ( $args as $key => $value ) {
331
  $value = wp_parse_args(
@@ -333,18 +330,16 @@ if ( ! class_exists( 'Cherry_Interface_Builder' ) ) {
333
  $this->args['views_args']
334
  );
335
 
336
- $value['class'] = isset( $value['class'] ) ? $value['class'] . ' ' : '';
337
- $value['class'] .= $value['id'] . ' ';
338
-
339
  if ( $value['scroll'] ) {
340
  $value['class'] .= 'cherry-scroll ';
341
  }
342
-
343
  if ( $value['master'] ) {
344
- $value['class'] .= $value['master'] . ' ';
345
  }
346
 
347
- $type = array_key_exists( $value['type'], $views ) ? $value['type'] : 'field';
348
  $has_child = isset( $value['children'] ) && is_array( $value['children'] ) && ! empty( $value['children'] );
349
 
350
  switch ( $type ) {
2
  /**
3
  * Module Name: Interface Builder
4
  * Description: The module for the creation of interfaces in the WordPress admin panel
5
+ * Version: 1.1.1
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.1
14
  * @author Cherry Team <cherryframework@gmail.com>
15
  * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
38
  * @var array
39
  */
40
  private $args = array(
41
+ 'views' => array(
42
+ 'section' => 'inc/views/section.php',
43
+ 'component-tab-vertical' => 'inc/views/component-tab-vertical.php',
44
+ 'component-tab-horizontal' => 'inc/views/component-tab-horizontal.php',
45
+ 'component-toggle' => 'inc/views/component-toggle.php',
46
+ 'component-accordion' => 'inc/views/component-accordion.php',
47
+ 'component-repeater' => 'inc/views/component-repeater.php',
48
+ 'settings' => 'inc/views/settings.php',
49
+ 'control' => 'inc/views/control.php',
50
+ 'settings-children-title' => 'inc/views/settings-children-title.php',
51
+ 'tab-children-title' => 'inc/views/tab-children-title.php',
52
+ 'toggle-children-title' => 'inc/views/toggle-children-title.php',
53
+ 'form' => 'inc/views/form.php',
54
+ 'html' => 'inc/views/html.php',
55
  ),
56
  'views_args' => array(
57
  'parent' => '',
193
  * @return void
194
  */
195
  protected function add_new_element( array $args = array(), $type = 'section' ) {
 
196
  if ( ! isset( $args[0] ) && ! is_array( current( $args ) ) ) {
197
 
198
  if ( 'control' !== $type && 'component' !== $type ) {
200
  }
201
 
202
  $this->structure[ $args['id'] ] = $args;
 
203
  } else {
204
  foreach ( $args as $key => $value ) {
205
 
271
  */
272
  protected function get_view( $type = 'control', array $args = array() ) {
273
 
274
+ if ( empty( $view ) ) {
275
+ $path = dirname( __FILE__ ) . '/';
276
+ $path .= ( array_key_exists( $type, $this->args['views'] ) ) ? $this->args['views'][ $type ] : $this->args['views']['control'] ;
 
 
 
277
  } else {
278
+ $path = $view;
279
  }
280
 
281
+ $view = Cherry_Toolkit::render_view( $path, $args );
282
+
283
+ return $view;
284
  }
285
 
286
  /**
322
  */
323
  protected function build( array $args = array() ) {
324
  $output = '';
325
+ $views = $this->args['views'];
326
 
327
  foreach ( $args as $key => $value ) {
328
  $value = wp_parse_args(
330
  $this->args['views_args']
331
  );
332
 
333
+ $value['class'] = isset( $value['class'] ) ? $value['class'] . ' ' : '' ;
334
+ $value['class'] .= $value['id'] . ' ' ;
 
335
  if ( $value['scroll'] ) {
336
  $value['class'] .= 'cherry-scroll ';
337
  }
 
338
  if ( $value['master'] ) {
339
+ $value['class'] .= $value['master'] . ' ' ;
340
  }
341
 
342
+ $type = array_key_exists( $value['type'], $views ) ? $value['type'] : 'field' ;
343
  $has_child = isset( $value['children'] ) && is_array( $value['children'] ) && ! empty( $value['children'] );
344
 
345
  switch ( $type ) {
cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.js CHANGED
@@ -9,9 +9,6 @@
9
  CherryJsCore.interfaceBuilder = {
10
  init: function() {
11
  this.component.init();
12
-
13
- $( document )
14
- .on( 'cherryInterfaceBuilder', this.component.init.bind( this.component ) );
15
  },
16
  component: {
17
  tabClass: '.cherry-tab',
@@ -38,8 +35,7 @@
38
 
39
  addEvent: function() {
40
  $( 'body' )
41
- .off( 'click.cherryInterfaceBuilder' )
42
- .on( 'click.cherryInterfaceBuilder',
43
  this.tabClass + ' ' + this.buttonClass + ', ' +
44
  this.toggleClass + ' ' + this.buttonClass + ', ' +
45
  this.accordionClass + ' ' + this.buttonClass,
9
  CherryJsCore.interfaceBuilder = {
10
  init: function() {
11
  this.component.init();
 
 
 
12
  },
13
  component: {
14
  tabClass: '.cherry-tab',
35
 
36
  addEvent: function() {
37
  $( 'body' )
38
+ .on( 'click',
 
39
  this.tabClass + ' ' + this.buttonClass + ', ' +
40
  this.toggleClass + ' ' + this.buttonClass + ', ' +
41
  this.accordionClass + ' ' + this.buttonClass,
cherry-framework/modules/cherry-interface-builder/inc/assets/cherry-interface-builder.scss CHANGED
@@ -4,7 +4,7 @@ $color-3: #96989a; // Description color and tabs button text color.
4
  $color-4: #b4b7ba; //
5
  $color-5: #f1f1f1; // Scrollbar background
6
  $color-6: #e5e5e5; // Hover scrollbar background
7
- $color-7: #206ff4; // Scrollbar track background
8
  $link-color: #298ffc; // link color.
9
  $link-hover-color: #23282d; // link hover color.
10
 
@@ -200,26 +200,21 @@ html{
200
  border:0;
201
  background: none;
202
  cursor: pointer;
203
- position: relative;
204
  .cherry-toggle__title {
205
  font-weight: 700;
206
  font-size: 14px;
207
  float: left;
208
  margin: 0;
209
  }
210
- >span[class*="icon"]{
211
- position: absolute;
212
- top: 50%;
213
- right: 5px;
214
- margin-top: -10px;
215
-
216
  font-size: 25px;
217
  color: $color-4;
 
218
  padding: 5px 5px;
219
  width: 10px;
220
  height: 9px;
221
  text-align: left;
222
- overflow: hidden;
223
  &.hide-icon{
224
  &:before{
225
  position: relative;
@@ -235,14 +230,14 @@ 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
  }
243
  }
244
  &.active{
245
- >span[class*="icon"]{
246
  &.show-icon{
247
  transform:scaleX(1);
248
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
@@ -452,7 +447,7 @@ html{
452
  border: none;
453
  border-radius: $br-radius;
454
  &:hover, &:active {
455
- background: $color-7;
456
  }
457
  }
458
  &-track {
4
  $color-4: #b4b7ba; //
5
  $color-5: #f1f1f1; // Scrollbar background
6
  $color-6: #e5e5e5; // Hover scrollbar background
7
+ $color-7: #495159; // Scrollbar track background
8
  $link-color: #298ffc; // link color.
9
  $link-hover-color: #23282d; // link hover color.
10
 
200
  border:0;
201
  background: none;
202
  cursor: pointer;
 
203
  .cherry-toggle__title {
204
  font-weight: 700;
205
  font-size: 14px;
206
  float: left;
207
  margin: 0;
208
  }
209
+ span{
 
 
 
 
 
210
  font-size: 25px;
211
  color: $color-4;
212
+ float: right;
213
  padding: 5px 5px;
214
  width: 10px;
215
  height: 9px;
216
  text-align: left;
217
+ margin-right: -6px;
218
  &.hide-icon{
219
  &:before{
220
  position: relative;
230
  top: -7px;
231
  left: -9px;
232
  }
233
+ position: relative;
234
+ left: 14px;
235
  transform:scaleX(0);
236
  transition: all 300ms cubic-bezier(0.215, 0.61, 0.355, 1);
237
  }
238
  }
239
  &.active{
240
+ span{
241
  &.show-icon{
242
  transform:scaleX(1);
243
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
447
  border: none;
448
  border-radius: $br-radius;
449
  &:hover, &:active {
450
+ background: #206ff4;
451
  }
452
  }
453
  &-track {
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 #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}.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,.cherry-component.cherry-toggle .cherry-component__button span{font-size:25px;color:#b4b7ba;float:right;padding:5px 5px;width:10px;height:9px;text-align:left;margin-right:-6px}.cherry-component.cherry-accordion .cherry-component__button span.hide-icon,.cherry-component.cherry-toggle .cherry-component__button span.hide-icon{-webkit-transform:scaleX(1);-ms-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.hide-icon:before,.cherry-component.cherry-toggle .cherry-component__button span.hide-icon:before{position:relative;top:-8px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button span.show-icon,.cherry-component.cherry-toggle .cherry-component__button span.show-icon{position:relative;left:14px;-webkit-transform:scaleX(0);-ms-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.show-icon:before,.cherry-component.cherry-toggle .cherry-component__button span.show-icon:before{position:relative;top:-7px;left:-9px}.cherry-component.cherry-accordion .cherry-component__button.active span.show-icon,.cherry-component.cherry-toggle .cherry-component__button.active span.show-icon{-webkit-transform:scaleX(1);-ms-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.hide-icon,.cherry-component.cherry-toggle .cherry-component__button.active span.hide-icon{-webkit-transform:scaleX(0);-ms-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:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-align-content: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;-webkit-order:0;-ms-flex-order:0;order:0;-webkit-box-flex:0;-webkit-flex:0 1 100%;-ms-flex:0 1 100%;flex:0 1 100%;-webkit-align-self:auto;-ms-flex-item-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{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-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;-webkit-flex:0 1 auto;-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:-webkit-flex;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;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:0;-webkit-flex:0 1 25%;-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;-webkit-flex:0 1 75%;-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;-webkit-flex:0 1 20%;-ms-flex:0 1 20%;flex:0 1 20%}.cherry-component.cherry-tab--vertical .cherry-tab__content{-webkit-box-flex:0;-webkit-flex:0 1 80%;-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:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.cherry-control__info{-webkit-box-flex:0;-webkit-flex:0 1 30%;-ms-flex:0 1 30%;flex:0 1 30%;padding-right:15px}.cherry-control__content{-webkit-box-flex:0;-webkit-flex:0 1 70%;-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/assets/min/cherry-interface-builder.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,s){"use strict";s.utilites.namespace("interfaceBuilder"),s.interfaceBuilder={init:function(){this.component.init(),t(document).on("cherryInterfaceBuilder",this.component.init.bind(this.component))},component:{tabClass:".cherry-tab",accordionClass:".cherry-accordion",toggleClass:".cherry-toggle",buttonClass:".cherry-component__button",contentClass:".cherry-settings__content",buttonActiveClass:"active",showClass:"show",localStorage:{},init:function(){this.localStorage=this.getState()||{},this.componentInit(this.tabClass),this.componentInit(this.accordionClass),this.componentInit(this.toggleClass),this.addEvent()},addEvent:function(){t("body").off("click.cherryInterfaceBuilder").on("click.cherryInterfaceBuilder",this.tabClass+" "+this.buttonClass+", "+this.toggleClass+" "+this.buttonClass+", "+this.accordionClass+" "+this.buttonClass,this.componentClick.bind(this))},componentInit:function(s){var e=this,a=t(s),o=null,i=null,n=null,l="";a.each(function(a,c){switch(c=t(c),o=c.data("compotent-id"),s){case e.toggleClass:e.localStorage[o]&&e.localStorage[o].length&&(l=e.localStorage[o].join(", ")),t(e.contentClass,c).not(l).addClass(e.showClass).prevAll(e.buttonClass).addClass(e.buttonActiveClass);break;case e.tabClass:case e.accordionClass:e.localStorage[o]?(n=e.localStorage[o][0],i=t('[data-content-id="'+n+'"]',c)):(i=t(e.buttonClass,c).eq(0),n=i.data("content-id")),e.showElement(i,c,n)}})},componentClick:function(s){var e,a=t(s.target),o=a.closest(this.tabClass+", "+this.accordionClass+", "+this.toggleClass),i=new RegExp(this.tabClass+"|"+this.accordionClass+"|"+this.toggleClass),n=o[0].className.match(i)[0].replace(" ","."),l=a.data("content-id"),c=o.data("compotent-id"),r=a.hasClass(this.buttonActiveClass);switch(n){case this.tabClass:r||(this.hideElement(o),this.showElement(a,o,l),this.localStorage[c]=new Array(l),this.setState());break;case this.accordionClass:this.hideElement(o),r?this.localStorage[c]={}:(this.showElement(a,o,l),this.localStorage[c]=new Array(l)),this.setState();break;case this.toggleClass:a.toggleClass(this.buttonActiveClass).nextAll(l).toggleClass(this.showClass),Array.isArray(this.localStorage[c])?(e=this.localStorage[c].indexOf(l),-1!==e?this.localStorage[c].splice(e,1):this.localStorage[c].push(l)):this.localStorage[c]=new Array(l),this.setState()}return a.blur(),!1},showElement:function(s,e,a){s.addClass(this.buttonActiveClass),e.data("content-id",a),t(a,e).addClass(this.showClass)},hideElement:function(s){var e=s.data("content-id");t('[data-content-id="'+e+'"]',s).removeClass(this.buttonActiveClass),t(e,s).removeClass(this.showClass)},getState:function(){try{return JSON.parse(localStorage.getItem("interface-builder"))}catch(t){return!1}},setState:function(){try{localStorage.setItem("interface-builder",JSON.stringify(this.localStorage))}catch(t){return!1}}}},s.interfaceBuilder.init()}(jQuery,window.CherryJsCore);
1
+ !function(t,s){"use strict";s.utilites.namespace("interfaceBuilder"),s.interfaceBuilder={init:function(){this.component.init()},component:{tabClass:".cherry-tab",accordionClass:".cherry-accordion",toggleClass:".cherry-toggle",buttonClass:".cherry-component__button",contentClass:".cherry-settings__content",buttonActiveClass:"active",showClass:"show",localStorage:{},init:function(){this.localStorage=this.getState()||{},this.componentInit(this.tabClass),this.componentInit(this.accordionClass),this.componentInit(this.toggleClass),this.addEvent()},addEvent:function(){t("body").on("click",this.tabClass+" "+this.buttonClass+", "+this.toggleClass+" "+this.buttonClass+", "+this.accordionClass+" "+this.buttonClass,this.componentClick.bind(this))},componentInit:function(s){var a=this,e=t(s),o=null,i=null,l=null,n="";e.each(function(e,c){switch(c=t(c),o=c.data("compotent-id"),s){case a.toggleClass:a.localStorage[o]&&a.localStorage[o].length&&(n=a.localStorage[o].join(", ")),t(a.contentClass,c).not(n).addClass(a.showClass).prevAll(a.buttonClass).addClass(a.buttonActiveClass);break;case a.tabClass:case a.accordionClass:a.localStorage[o]?(l=a.localStorage[o][0],i=t('[data-content-id="'+l+'"]',c)):(i=t(a.buttonClass,c).eq(0),l=i.data("content-id")),a.showElement(i,c,l)}})},componentClick:function(s){var a,e=t(s.target),o=e.closest(this.tabClass+", "+this.accordionClass+", "+this.toggleClass),i=new RegExp(this.tabClass+"|"+this.accordionClass+"|"+this.toggleClass),l=o[0].className.match(i)[0].replace(" ","."),n=e.data("content-id"),c=o.data("compotent-id"),r=e.hasClass(this.buttonActiveClass);switch(l){case this.tabClass:r||(this.hideElement(o),this.showElement(e,o,n),this.localStorage[c]=new Array(n),this.setState());break;case this.accordionClass:this.hideElement(o),r?this.localStorage[c]={}:(this.showElement(e,o,n),this.localStorage[c]=new Array(n)),this.setState();break;case this.toggleClass:e.toggleClass(this.buttonActiveClass).nextAll(n).toggleClass(this.showClass),Array.isArray(this.localStorage[c])?(a=this.localStorage[c].indexOf(n),-1!==a?this.localStorage[c].splice(a,1):this.localStorage[c].push(n)):this.localStorage[c]=new Array(n),this.setState()}return e.blur(),!1},showElement:function(s,a,e){s.addClass(this.buttonActiveClass),a.data("content-id",e),t(e,a).addClass(this.showClass)},hideElement:function(s){var a=s.data("content-id");t('[data-content-id="'+a+'"]',s).removeClass(this.buttonActiveClass),t(a,s).removeClass(this.showClass)},getState:function(){try{return JSON.parse(localStorage.getItem("interface-builder"))}catch(t){return!1}},setState:function(){try{localStorage.setItem("interface-builder",JSON.stringify(this.localStorage))}catch(t){return!1}}}},s.interfaceBuilder.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-js-core/assets/js/min/cherry-js-core.min.js CHANGED
@@ -1 +1 @@
1
- var CherryJsCore={};!function(r){"use strict";CherryJsCore={name:"Cherry Js Core",version:"1.0.0",author:"Cherry Team",variable:{$document:r(document),$window:r(window),browser:r.browser,browser_supported:!0,security:window.cherry_ajax,loaded_assets:{script:window.wp_load_script,style:window.wp_load_style},ui_auto_init:"true"===window.ui_init_object.auto_init,ui_auto_target:window.ui_init_object.targets},status:{on_load:!1,is_ready:!1},init:function(){CherryJsCore.set_variable(),r(document).on("ready",CherryJsCore.ready),r(window).on("load",CherryJsCore.load)},set_variable:function(){CherryJsCore.variable.browser_supported=function(){var r=CherryJsCore.variable.browser,e={msie:[8]};for(var i in e)if("undefined"!==r.browser)for(var o in e[i])if(r.version<=e[i][o])return!1;return!0}()},ready:function(){CherryJsCore.status.is_ready=!0,CherryJsCore.expressions.widget_ui_init()},load:function(){CherryJsCore.status.on_load=!0},expressions:{widget_ui_init:function(){r(document).on("widget-added widget-updated",function(e,i){r("body").trigger({type:"cherry-ui-elements-init",_target:i})})}},utilites:{namespace:function(r){var e=r.split("."),i=CherryJsCore,o=e.length,t=0;for(t=0;t<o;t+=1)"undefined"==typeof i[e[t]]&&(i[e[t]]={}),i=i[e[t]];return i}}},CherryJsCore.init()}(jQuery);
1
+ var CherryJsCore={};!function(r){"use strict";CherryJsCore={name:"Cherry Js Core",version:"1.0.0",author:"Cherry Team",variable:{$document:r(document),$window:r(window),browser:r.browser,browser_supported:!0,security:window.cherry_ajax,loaded_assets:{script:window.wp_load_script,style:window.wp_load_style},ui_auto_init:"true"===window.ui_init_object.auto_init?!0:!1,ui_auto_target:window.ui_init_object.targets},status:{on_load:!1,is_ready:!1},init:function(){CherryJsCore.set_variable(),r(document).on("ready",CherryJsCore.ready),r(window).on("load",CherryJsCore.load)},set_variable:function(){CherryJsCore.variable.browser_supported=function(){var r=CherryJsCore.variable.browser,e={msie:[8]};for(var i in e)if("undefined"!==r.browser)for(var o in e[i])if(r.version<=e[i][o])return!1;return!0}()},ready:function(){CherryJsCore.status.is_ready=!0,CherryJsCore.expressions.widget_ui_init()},load:function(){CherryJsCore.status.on_load=!0},expressions:{widget_ui_init:function(){r(document).on("widget-added widget-updated",function(e,i){r("body").trigger({type:"cherry-ui-elements-init",_target:i})})}},utilites:{namespace:function(r){var e=r.split("."),i=CherryJsCore,o=e.length,t=0;for(t=0;o>t;t+=1)"undefined"==typeof i[e[t]]&&(i[e[t]]={}),i=i[e[t]];return i}}},CherryJsCore.init()}(jQuery);
cherry-framework/modules/cherry-js-core/cherry-js-core.php CHANGED
@@ -46,7 +46,7 @@ if ( ! class_exists( 'Cherry_Js_Core' ) ) {
46
  * @since 1.0.0
47
  * @var string
48
  */
49
- private $module_version = '1.1.2';
50
 
51
  /**
52
  * Default options.
46
  * @since 1.0.0
47
  * @var string
48
  */
49
+ private $module_version = '1.1.0';
50
 
51
  /**
52
  * Default options.
cherry-framework/modules/cherry-post-formats-api/inc/class-cherry-facebook-embed.php CHANGED
@@ -7,7 +7,7 @@
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
  */
12
 
13
  // If this file is called directly, abort.
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-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
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,7 +10,7 @@
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/
@@ -136,6 +136,7 @@ if ( ! class_exists( 'Cherry_UI_Elements' ) ) {
136
  foreach ( $this->args['ui_elements'] as $ui_element ) {
137
  $ui_class_name = 'UI_' . ucwords( $ui_element );
138
  call_user_func( array( $ui_class_name, 'enqueue_assets' ) );
 
139
  }
140
  }
141
  }
2
  /**
3
  * Module Name: UI Elements
4
  * Description: Class for the building ui elements
5
+ * Version: 1.3.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.3.2
14
  * @author Cherry Team <cherryframework@gmail.com>
15
  * @copyright Copyright (c) 2012 - 2016, Cherry Team
16
  * @link http://www.cherryframework.com/
136
  foreach ( $this->args['ui_elements'] as $ui_element ) {
137
  $ui_class_name = 'UI_' . ucwords( $ui_element );
138
  call_user_func( array( $ui_class_name, 'enqueue_assets' ) );
139
+
140
  }
141
  }
142
  }
cherry-framework/modules/cherry-ui-elements/i-ui.php CHANGED
@@ -7,7 +7,7 @@
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
  */
12
 
13
  /**
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-3.0.html
11
  */
12
 
13
  /**
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-button/ui-button.php CHANGED
@@ -18,17 +18,17 @@ if ( ! defined( 'WPINC' ) ) {
18
  if ( ! class_exists( 'UI_Button' ) ) {
19
 
20
  /**
21
- * Class for the building ui-button elements.
22
  */
23
  class UI_Button extends UI_Element implements I_UI {
24
 
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
 
32
  'id' => 'cherry-ui-button-id',
33
  'name' => 'cherry-ui-button-name',
34
  'value' => 'button',
@@ -43,9 +43,9 @@ if ( ! class_exists( 'UI_Button' ) ) {
43
  );
44
 
45
  /**
46
- * Constructor method for the UI_Button class.
47
  *
48
- * @since 1.0.0
49
  */
50
  function __construct( $args = array() ) {
51
  $this->defaults_settings['id'] = 'cherry-ui-button-' . uniqid();
@@ -55,9 +55,9 @@ if ( ! class_exists( 'UI_Button' ) ) {
55
  }
56
 
57
  /**
58
- * Render html UI_Button.
59
  *
60
- * @since 1.0.0
61
  */
62
  public function render() {
63
  $html = Cherry_Toolkit::render_view(
@@ -69,16 +69,17 @@ if ( ! class_exists( 'UI_Button' ) ) {
69
  }
70
 
71
  /**
72
- * Enqueue javascript and stylesheet UI_Button.
73
  *
74
- * @since 1.0.0
75
  */
76
  public static function enqueue_assets() {
 
77
  wp_enqueue_style(
78
  'ui-button',
79
  esc_url( Cherry_Core::base_url( 'assets/min/ui-button.min.css', __FILE__ ) ),
80
  array(),
81
- '1.3.2',
82
  'all'
83
  );
84
  }
18
  if ( ! class_exists( 'UI_Button' ) ) {
19
 
20
  /**
21
+ * Class for the building ui-text elements.
22
  */
23
  class UI_Button extends UI_Element implements I_UI {
24
 
25
  /**
26
+ * Default settings
27
  *
 
28
  * @var array
29
  */
30
  private $defaults_settings = array(
31
+ 'type' => 'text',
32
  'id' => 'cherry-ui-button-id',
33
  'name' => 'cherry-ui-button-name',
34
  'value' => 'button',
43
  );
44
 
45
  /**
46
+ * Constructor method for the UI_Text class.
47
  *
48
+ * @since 4.0.0
49
  */
50
  function __construct( $args = array() ) {
51
  $this->defaults_settings['id'] = 'cherry-ui-button-' . uniqid();
55
  }
56
 
57
  /**
58
+ * Render html UI_Text.
59
  *
60
+ * @since 4.0.0
61
  */
62
  public function render() {
63
  $html = Cherry_Toolkit::render_view(
69
  }
70
 
71
  /**
72
+ * Enqueue javascript and stylesheet UI_Text
73
  *
74
+ * @since 4.0.0
75
  */
76
  public static function enqueue_assets() {
77
+
78
  wp_enqueue_style(
79
  'ui-button',
80
  esc_url( Cherry_Core::base_url( 'assets/min/ui-button.min.css', __FILE__ ) ),
81
  array(),
82
+ '1.0.0',
83
  'all'
84
  );
85
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/assets/min/ui-checkbox.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"use strict";t.utilites.namespace("ui_elements.checkbox"),t.ui_elements.checkbox={inputClass:'.cherry-checkbox-input[type="hidden"]:not([name*="__i__"])',labelClass:".cherry-checkbox-label, .cherry-checkbox-item",init:function(){e(document).on("ready.cherry-ui-elements-init",this.addEvent.bind(this)).on("cherry-ui-elements-init",this.initState.bind(this))},addEvent:function(){e("body").on("click.masterSlave",this.labelClass,this.switchState.bind(this)),this.initState()},initState:function(){for(var t,i,s,n=e(this.inputClass),c=n.length-1;c>=0;c--)t=e(n[c]),i=t.data(),s=t.closest("form"),jQuery.isEmptyObject(i)||e("."+i.slave,s)[t[0].checked?"removeClass":"addClass"]("hide")},switchState:function(t){var i=e(t.currentTarget).siblings(this.inputClass),s=i.data(),n=i[0].checked,c=i.closest("form");i.val(n?"false":"true").attr("checked",!n).trigger("change"),jQuery.isEmptyObject(s)||e("."+s.slave,c)[n?"addClass":"removeClass"]("hide")}},t.ui_elements.checkbox.init()}(jQuery,window.CherryJsCore);
1
+ !function(e,t){"use strict";t.utilites.namespace("ui_elements.checkbox"),t.ui_elements.checkbox={inputClass:'.cherry-checkbox-input[type="hidden"]:not([name*="__i__"])',labelClass:".cherry-checkbox-label, .cherry-checkbox-item",init:function(){e(document).on("ready.cherry-ui-elements-init",this.addEvent.bind(this)).on("cherry-ui-elements-init",this.initState.bind(this))},addEvent:function(){e("body").on("click.masterSlave",this.labelClass,this.switchState.bind(this)),this.initState()},initState:function(){for(var t,i,s,n=e(this.inputClass),c=n.length-1;c>=0;c--)t=e(n[c]),i=t.data(),s=t.closest("form"),jQuery.isEmptyObject(i)||e("."+i.slave,s)[t[0].checked?"removeClass":"addClass"]("hide")},switchState:function(t){var i=e(t.currentTarget).siblings(this.inputClass),s=i.data(),n=i[0].checked,c=i.closest("form");i.val(n?"false":"true").attr("checked",n?!1:!0).trigger("change"),jQuery.isEmptyObject(s)||e("."+s.slave,c)[n?"addClass":"removeClass"]("hide")}},t.ui_elements.checkbox.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-checkbox/ui-checkbox.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -21,47 +21,44 @@ if ( ! class_exists( 'UI_Checkbox' ) ) {
21
  * Class for the building UI_Checkbox elements.
22
  */
23
  class UI_Checkbox extends UI_Element implements I_UI {
24
-
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-checkbox-id',
33
- 'name' => 'cherry-ui-checkbox-name',
34
- 'value' => array(
35
  'checkbox-1' => 'true',
36
  'checkbox-2' => 'true',
37
  'checkbox-3' => 'true',
38
  ),
39
- 'options' => array(
40
- 'checkbox-1' => 'checkbox 1',
41
- 'checkbox-2' => 'checkbox 2',
42
- 'checkbox-3' => 'checkbox 3',
43
  ),
44
- 'label' => '',
45
- 'class' => '',
46
- 'master' => '',
47
  );
48
 
49
  /**
50
  * Constructor method for the UI_Checkbox class.
51
  *
52
- * @since 1.0.0
53
  */
54
  function __construct( $args = array() ) {
55
  $this->defaults_settings['id'] = 'cherry-ui-checkbox-' . uniqid();
56
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
57
-
58
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ) );
59
  }
60
 
61
  /**
62
  * Render html UI_Checkbox.
63
  *
64
- * @since 1.0.0
65
  */
66
  public function render() {
67
  $html = '';
@@ -109,16 +106,16 @@ if ( ! class_exists( 'UI_Checkbox' ) ) {
109
  }
110
 
111
  /**
112
- * Enqueue javascript and stylesheet UI_Checkbox.
113
  *
114
- * @since 1.0.0
115
  */
116
  public static function enqueue_assets() {
117
  wp_enqueue_script(
118
  'ui-checkbox-min',
119
  esc_url( Cherry_Core::base_url( 'assets/min/ui-checkbox.min.js', __FILE__ ) ),
120
  array( 'jquery' ),
121
- '1.3.2',
122
  true
123
  );
124
 
@@ -126,7 +123,7 @@ if ( ! class_exists( 'UI_Checkbox' ) ) {
126
  'ui-checkbox-min',
127
  esc_url( Cherry_Core::base_url( 'assets/min/ui-checkbox.min.css', __FILE__ ) ),
128
  array(),
129
- '1.3.2',
130
  'all'
131
  );
132
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
21
  * Class for the building UI_Checkbox elements.
22
  */
23
  class UI_Checkbox extends UI_Element implements I_UI {
 
24
  /**
25
+ * Default settings
26
  *
 
27
  * @var array
28
  */
29
  private $defaults_settings = array(
30
+ 'id' => 'cherry-ui-checkbox-id',
31
+ 'name' => 'cherry-ui-checkbox-name',
32
+ 'value' => array(
33
  'checkbox-1' => 'true',
34
  'checkbox-2' => 'true',
35
  'checkbox-3' => 'true',
36
  ),
37
+ 'options' => array(
38
+ 'checkbox-1' => 'checkbox 1',
39
+ 'checkbox-2' => 'checkbox 2',
40
+ 'checkbox-3' => 'checkbox 3',
41
  ),
42
+ 'label' => '',
43
+ 'class' => '',
44
+ 'master' => '',
45
  );
46
 
47
  /**
48
  * Constructor method for the UI_Checkbox class.
49
  *
50
+ * @since 4.0.0
51
  */
52
  function __construct( $args = array() ) {
53
  $this->defaults_settings['id'] = 'cherry-ui-checkbox-' . uniqid();
54
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
 
55
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ) );
56
  }
57
 
58
  /**
59
  * Render html UI_Checkbox.
60
  *
61
+ * @since 4.0.0
62
  */
63
  public function render() {
64
  $html = '';
106
  }
107
 
108
  /**
109
+ * Enqueue javascript and stylesheet UI_Checkbox
110
  *
111
+ * @since 4.0.0
112
  */
113
  public static function enqueue_assets() {
114
  wp_enqueue_script(
115
  'ui-checkbox-min',
116
  esc_url( Cherry_Core::base_url( 'assets/min/ui-checkbox.min.js', __FILE__ ) ),
117
  array( 'jquery' ),
118
+ '1.0.0',
119
  true
120
  );
121
 
123
  'ui-checkbox-min',
124
  esc_url( Cherry_Core::base_url( 'assets/min/ui-checkbox.min.css', __FILE__ ) ),
125
  array(),
126
+ '1.0.0',
127
  'all'
128
  );
129
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-colorpicker/ui-colorpicker.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -23,26 +23,26 @@ if ( ! class_exists( 'UI_Colorpicker' ) ) {
23
  class UI_Colorpicker extends UI_Element implements I_UI {
24
 
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-colorpicker-id',
33
- 'name' => 'cherry-ui-colorpicker-name',
34
- 'value' => '',
35
- 'label' => '',
36
- 'class' => '',
37
- 'master' => '',
38
  );
39
 
40
  /**
41
  * Constructor method for the UI_Colorpicker class.
42
  *
43
- * @since 1.0.0
44
  */
45
  function __construct( $args = array() ) {
 
46
  $this->defaults_settings['id'] = 'cherry-ui-colorpicker-' . uniqid();
47
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
48
 
@@ -52,7 +52,7 @@ if ( ! class_exists( 'UI_Colorpicker' ) ) {
52
  /**
53
  * Render html UI_Colorpicker.
54
  *
55
- * @since 1.0.0
56
  */
57
  public function render() {
58
  $html = '';
@@ -72,9 +72,9 @@ if ( ! class_exists( 'UI_Colorpicker' ) ) {
72
  }
73
 
74
  /**
75
- * Enqueue javascript and stylesheet UI_Colorpicker.
76
  *
77
- * @since 1.0.0
78
  */
79
  public static function enqueue_assets() {
80
 
@@ -82,7 +82,7 @@ if ( ! class_exists( 'UI_Colorpicker' ) ) {
82
  'ui-colorpicker-min',
83
  esc_url( Cherry_Core::base_url( 'assets/min/ui-colorpicker.min.js', __FILE__ ) ),
84
  array( 'jquery', 'wp-color-picker' ),
85
- '1.3.2',
86
  true
87
  );
88
 
@@ -90,7 +90,7 @@ if ( ! class_exists( 'UI_Colorpicker' ) ) {
90
  'ui-colorpicker-min',
91
  esc_url( Cherry_Core::base_url( 'assets/min/ui-colorpicker.min.css', __FILE__ ) ),
92
  array( 'wp-color-picker' ),
93
- '1.3.2',
94
  'all'
95
  );
96
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
23
  class UI_Colorpicker extends UI_Element implements I_UI {
24
 
25
  /**
26
+ * Default settings
27
  *
 
28
  * @var array
29
  */
30
  private $defaults_settings = array(
31
+ 'id' => 'cherry-ui-colorpicker-id',
32
+ 'name' => 'cherry-ui-colorpicker-name',
33
+ 'value' => '',
34
+ 'label' => '',
35
+ 'class' => '',
36
+ 'master' => '',
37
  );
38
 
39
  /**
40
  * Constructor method for the UI_Colorpicker class.
41
  *
42
+ * @since 4.0.0
43
  */
44
  function __construct( $args = array() ) {
45
+
46
  $this->defaults_settings['id'] = 'cherry-ui-colorpicker-' . uniqid();
47
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
48
 
52
  /**
53
  * Render html UI_Colorpicker.
54
  *
55
+ * @since 4.0.0
56
  */
57
  public function render() {
58
  $html = '';
72
  }
73
 
74
  /**
75
+ * Enqueue javascript and stylesheet UI_Colorpicker
76
  *
77
+ * @since 4.0.0
78
  */
79
  public static function enqueue_assets() {
80
 
82
  'ui-colorpicker-min',
83
  esc_url( Cherry_Core::base_url( 'assets/min/ui-colorpicker.min.js', __FILE__ ) ),
84
  array( 'jquery', 'wp-color-picker' ),
85
+ '1.0.0',
86
  true
87
  );
88
 
90
  'ui-colorpicker-min',
91
  esc_url( Cherry_Core::base_url( 'assets/min/ui-colorpicker.min.css', __FILE__ ) ),
92
  array( 'wp-color-picker' ),
93
+ '1.0.0',
94
  'all'
95
  );
96
  }
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,i){"use strict";i.utilites.namespace("ui_elements.iconpicker"),i.ui_elements.iconpicker={init:function(){e(document).on("ready",this.render).on("cherry-ui-elements-init",this.render)},render:function(i){var n,t,c,r=i._target?i._target:e("body"),o=e('.cherry-ui-iconpicker:not([name*="__i__"])',r);o.each(function(){n=e(this),t=n.data("set"),c=window[t],n.length&&c.icons&&n.iconpicker({icons:c.icons,iconBaseClass:c.iconBase,iconClassPrefix:c.iconPrefix,animation:!1,fullClassFormatter:function(e){return c.iconBase+" "+c.iconPrefix+e}}).on("iconpickerUpdated",function(){e(this).trigger("change")}),c&&e("head").append('<link rel="stylesheet" type="text/css" href="'+c.iconCSS+'"">')})}},i.ui_elements.iconpicker.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/assets/ui-iconpicker.js CHANGED
@@ -1,63 +1,27 @@
1
  /**
2
  * Iconpicker
3
  */
4
- (function( $, CherryJsCore, underscore ) {
5
  'use strict';
6
 
7
  CherryJsCore.utilites.namespace( 'ui_elements.iconpicker' );
8
  CherryJsCore.ui_elements.iconpicker = {
9
- iconSets: {},
10
- iconSetsKey: 'cherry5-icon-sets',
11
-
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
- },
19
-
20
- setIconsSets: function( iconSets ) {
21
- var icon,
22
- _this = this;
23
-
24
- if ( iconSets ) {
25
- icon = ( iconSets.response ) ? iconSets.response.cherry5IconSets : iconSets;
26
-
27
- underscore.each(
28
- icon,
29
- function( element, index ) {
30
- _this.iconSets[ index ] = element;
31
- }
32
- );
33
-
34
- _this.setState( _this.iconSetsKey, _this.iconSets );
35
- }
36
- },
37
-
38
- getIconsSets: function() {
39
- var iconSets = this.getState( this.iconSetsKey );
40
-
41
- if ( iconSets ) {
42
- this.iconSets = iconSets;
43
- }
44
  },
45
-
46
  render: function( event ) {
47
  var target = ( event._target ) ? event._target : $( 'body' ),
48
  $picker = $( '.cherry-ui-iconpicker:not([name*="__i__"])', target ),
49
  $this,
50
  set,
51
- setData,
52
- _this = this;
53
-
54
- if ( $picker[0] ) {
55
- this.getIconsSets();
56
 
57
  $picker.each( function() {
58
  $this = $( this );
59
  set = $this.data( 'set' );
60
- setData = _this.iconSets[set];
61
 
62
  if ( $this.length && setData.icons ) {
63
  $this.iconpicker({
@@ -77,26 +41,9 @@
77
  $( 'head' ).append( '<link rel="stylesheet" type="text/css" href="' + setData.iconCSS + '"">' );
78
  }
79
  } );
80
- }
81
- },
82
-
83
- getState: function( key ) {
84
- try {
85
- return JSON.parse( window.sessionStorage.getItem( key ) );
86
- } catch ( e ) {
87
- return false;
88
- }
89
- },
90
-
91
- setState: function( key, data ) {
92
- try {
93
- window.sessionStorage.setItem( key, JSON.stringify( data ) );
94
- } catch ( e ) {
95
- return false;
96
- }
97
  }
98
  };
99
 
100
  CherryJsCore.ui_elements.iconpicker.init();
101
 
102
- }( jQuery, window.CherryJsCore, window._ ) );
1
  /**
2
  * Iconpicker
3
  */
4
+ (function( $, CherryJsCore ) {
5
  'use strict';
6
 
7
  CherryJsCore.utilites.namespace( 'ui_elements.iconpicker' );
8
  CherryJsCore.ui_elements.iconpicker = {
 
 
 
9
  init: function() {
10
  $( document )
11
+ .on( 'ready', this.render )
12
+ .on( 'cherry-ui-elements-init', this.render );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  },
 
14
  render: function( event ) {
15
  var target = ( event._target ) ? event._target : $( 'body' ),
16
  $picker = $( '.cherry-ui-iconpicker:not([name*="__i__"])', target ),
17
  $this,
18
  set,
19
+ setData;
 
 
 
 
20
 
21
  $picker.each( function() {
22
  $this = $( this );
23
  set = $this.data( 'set' );
24
+ setData = window[set];
25
 
26
  if ( $this.length && setData.icons ) {
27
  $this.iconpicker({
41
  $( 'head' ).append( '<link rel="stylesheet" type="text/css" href="' + setData.iconCSS + '"">' );
42
  }
43
  } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
  };
46
 
47
  CherryJsCore.ui_elements.iconpicker.init();
48
 
49
+ }( jQuery, window.CherryJsCore ) );
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-iconpicker/ui-iconpicker.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -23,9 +23,8 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
23
  class UI_Iconpicker extends UI_Element implements I_UI {
24
 
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
@@ -43,7 +42,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
43
  );
44
 
45
  /**
46
- * Default icon data settings.
47
  *
48
  * @var array
49
  */
@@ -77,9 +76,9 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
77
  public static $printed_sets = array();
78
 
79
  /**
80
- * Constructor method for the UI_Iconpicker class.
81
  *
82
- * @since 1.0.0
83
  */
84
  function __construct( $args = array() ) {
85
  $this->defaults_settings['id'] = 'cherry-ui-input-icon-' . uniqid();
@@ -88,7 +87,6 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
88
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ) );
89
  add_action( 'admin_footer', array( $this, 'print_icon_set' ), 1 );
90
  add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_icon_set' ), 9999 );
91
- add_filter( 'cherry_handler_response_data', array( $this, 'send_icon_set' ), 10, 1 );
92
  }
93
 
94
  /**
@@ -104,9 +102,9 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
104
  }
105
 
106
  /**
107
- * Render html UI_Iconpicker.
108
  *
109
- * @since 1.0.0
110
  */
111
  public function render() {
112
  $html = '';
@@ -135,7 +133,6 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
135
 
136
  $html .= '</div>';
137
  $html .= '</div>';
138
-
139
  return $html;
140
  }
141
 
@@ -176,6 +173,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
176
  'icons' => $this->settings['icon_data']['icons'],
177
  );
178
  }
 
179
  }
180
 
181
  /**
@@ -236,25 +234,6 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
236
 
237
  }
238
 
239
- /**
240
- * Function sends the icons into ajax response.
241
- *
242
- * @param array $data Icon data.
243
- * @return array
244
- */
245
- public function send_icon_set( $data ) {
246
-
247
- if ( empty( $data['cherryIconsSets'] ) ) {
248
- $data['cherry5IconSets'] = array();
249
- }
250
-
251
- foreach ( self::$sets as $key => $value ) {
252
- $data['cherry5IconSets'][ $key ] = $value;
253
- }
254
-
255
- return $data;
256
- }
257
-
258
  /**
259
  * Print icon sets
260
  *
@@ -277,15 +256,15 @@ 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
  }
284
 
285
  /**
286
- * Enqueue javascript and stylesheet UI_Iconpicker
287
  *
288
- * @since 1.0.0
289
  */
290
  public static function enqueue_assets() {
291
 
@@ -293,7 +272,7 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
293
  'ui-iconpicker',
294
  esc_url( Cherry_Core::base_url( 'assets/min/ui-iconpicker.min.css', __FILE__ ) ),
295
  array(),
296
- '1.3.2',
297
  'all'
298
  );
299
 
@@ -301,15 +280,14 @@ if ( ! class_exists( 'UI_Iconpicker' ) ) {
301
  'jquery-iconpicker',
302
  esc_url( Cherry_Core::base_url( 'assets/min/jquery-iconpicker.min.js', __FILE__ ) ),
303
  array( 'jquery' ),
304
- '1.3.2',
305
  true
306
  );
307
-
308
  wp_enqueue_script(
309
  'ui-iconpicker',
310
  esc_url( Cherry_Core::base_url( 'assets/min/ui-iconpicker.min.js', __FILE__ ) ),
311
  array( 'jquery' ),
312
- '1.3.2',
313
  true
314
  );
315
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
23
  class UI_Iconpicker extends UI_Element implements I_UI {
24
 
25
  /**
26
+ * Default settings
27
  *
 
28
  * @var array
29
  */
30
  private $defaults_settings = array(
42
  );
43
 
44
  /**
45
+ * Default icon data settings
46
  *
47
  * @var array
48
  */
76
  public static $printed_sets = array();
77
 
78
  /**
79
+ * Constructor method for the UI_Text class.
80
  *
81
+ * @since 4.0.0
82
  */
83
  function __construct( $args = array() ) {
84
  $this->defaults_settings['id'] = 'cherry-ui-input-icon-' . uniqid();
87
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ) );
88
  add_action( 'admin_footer', array( $this, 'print_icon_set' ), 1 );
89
  add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_icon_set' ), 9999 );
 
90
  }
91
 
92
  /**
102
  }
103
 
104
  /**
105
+ * Render html UI_Text.
106
  *
107
+ * @since 4.0.0
108
  */
109
  public function render() {
110
  $html = '';
133
 
134
  $html .= '</div>';
135
  $html .= '</div>';
 
136
  return $html;
137
  }
138
 
173
  'icons' => $this->settings['icon_data']['icons'],
174
  );
175
  }
176
+
177
  }
178
 
179
  /**
234
 
235
  }
236
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  /**
238
  * Print icon sets
239
  *
256
  self::$printed_sets[] = $set;
257
  $json = json_encode( $data );
258
 
259
+ printf( '<script>window.%1$s = %2$s</script>', $set, $json );
260
  }
261
 
262
  }
263
 
264
  /**
265
+ * Enqueue javascript and stylesheet UI_Text
266
  *
267
+ * @since 4.0.0
268
  */
269
  public static function enqueue_assets() {
270
 
272
  'ui-iconpicker',
273
  esc_url( Cherry_Core::base_url( 'assets/min/ui-iconpicker.min.css', __FILE__ ) ),
274
  array(),
275
+ '1.0.0',
276
  'all'
277
  );
278
 
280
  'jquery-iconpicker',
281
  esc_url( Cherry_Core::base_url( 'assets/min/jquery-iconpicker.min.js', __FILE__ ) ),
282
  array( 'jquery' ),
283
+ '1.0.0',
284
  true
285
  );
 
286
  wp_enqueue_script(
287
  'ui-iconpicker',
288
  esc_url( Cherry_Core::base_url( 'assets/min/ui-iconpicker.min.js', __FILE__ ) ),
289
  array( 'jquery' ),
290
+ '1.0.0',
291
  true
292
  );
293
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/min/ui-media.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,a){"use strict";a.utilites.namespace("ui_elements.media"),a.ui_elements.media={init:function(){e(document).on("ready",this.render).on("cherry-ui-elements-init",this.render)},render:function(a){var i=a._target?a._target:e("body"),r=e(".cherry-upload-button",i);r.each(function(){var a=e(this),i=a.closest(".cherry-ui-media-wrap"),r={input:e(".cherry-upload-input",i),img_holder:e(".cherry-upload-preview",i),title_text:a.data("title"),multiple:a.data("multi-upload"),library_type:a.data("library-type")},t=wp.media.frames.file_frame=wp.media({title:r.title_text,button:{text:r.title_text},multiple:r.multiple,library:{type:r.library_type}});if(!i.has('input[name*="__i__"]')[0]){a.off("click.cherry-media").on("click.cherry-media",function(){return t.open(),!1}),t.on("select",function(){var a=t.state().get("selection").toJSON(),i=0,s="",c=e(".cherry-all-images-wrap",r.img_holder),n="",l="";for(r.multiple&&(s=r.input.val(),l=",",n=c.html());a[i];){var o=a[i],d=o.id,p=o.mime,m="",u="";switch(p){case"image/jpeg":case"image/png":case"image/gif":void 0!==o.sizes&&(m=o.sizes.thumbnail?o.sizes.thumbnail.url:o.sizes.full.url),u='<img src="'+m+'" alt="" data-img-attr="'+d+'">';break;case"image/x-icon":u='<span class="dashicons dashicons-format-image"></span>';break;case"video/mpeg":case"video/mp4":case"video/quicktime":case"video/webm":case"video/ogg":u='<span class="dashicons dashicons-format-video"></span>';break;case"audio/mpeg":case"audio/wav":case"audio/ogg":u='<span class="dashicons dashicons-format-audio"></span>'}n+='<div class="cherry-image-wrap"><div class="inner"><div class="preview-holder" data-id-attr="'+d+'"><div class="centered">'+u+'</div></div><a class="cherry-remove-image" href="#"><i class="dashicons dashicons-no"></i></a><span class="title">'+o.title+"</span></div></div>",s+=l+d,i++}r.input.val(s.replace(/(^,)/,"")).trigger("change"),c.html(n)});var s=function(a){var i=a.closest(".cherry-ui-media-wrap"),r=e(".cherry-upload-input",i),t=a.parent().parent(".cherry-image-wrap"),s=e(".preview-holder",t).data("id-attr"),c=r.attr("value"),n=new RegExp(""+s+"(,*)","i");c=c.replace(n,""),c=c.replace(/(,$)/,""),r.attr({value:c}).trigger("change"),t.remove()};i.on("click",".cherry-remove-image",function(){return s(e(this)),!1})}}),e(".cherry-all-images-wrap",i).sortable({items:"div.cherry-image-wrap",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,placeholder:"cherry-media-thumb-sortable-placeholder",start:function(){},stop:function(){},update:function(){var a="";e(".cherry-image-wrap",this).each(function(){var i=e(".preview-holder",this).data("id-attr");a=a+i+","}),a=a.substr(0,a.lastIndexOf(",")),e(this).parent().siblings(".cherry-element-wrap").find("input.cherry-upload-input").val(a).trigger("change")}})}},a.ui_elements.media.init()}(jQuery,window.CherryJsCore);
1
+ !function(e,a){"use strict";a.utilites.namespace("ui_elements.media"),a.ui_elements.media={init:function(){e(document).on("ready",this.render).on("cherry-ui-elements-init",this.render)},render:function(a){console.log("media");var i=a._target?a._target:e("body"),r=e(".cherry-upload-button",i);r.each(function(){var a=e(this),i=a.closest(".cherry-ui-media-wrap"),r={input:e(".cherry-upload-input",i),img_holder:e(".cherry-upload-preview",i),title_text:a.data("title"),multiple:a.data("multi-upload"),library_type:a.data("library-type")},t=wp.media.frames.file_frame=wp.media({title:r.title_text,button:{text:r.title_text},multiple:r.multiple,library:{type:r.library_type}});if(!i.has('input[name*="__i__"]')[0]){a.off("click.cherry-media").on("click.cherry-media",function(){return t.open(),!1}),t.on("select",function(){var a=t.state().get("selection").toJSON(),i=0,s="",c=e(".cherry-all-images-wrap",r.img_holder),n="",l="";for(r.multiple&&(s=r.input.val(),l=",",n=c.html());a[i];){var o=a[i],d=o.id,p=o.mime,m="",u="";switch(p){case"image/jpeg":case"image/png":case"image/gif":void 0!==o.sizes&&(m=o.sizes.thumbnail?o.sizes.thumbnail.url:o.sizes.full.url),u='<img src="'+m+'" alt="" data-img-attr="'+d+'">';break;case"image/x-icon":u='<span class="dashicons dashicons-format-image"></span>';break;case"video/mpeg":case"video/mp4":case"video/quicktime":case"video/webm":case"video/ogg":u='<span class="dashicons dashicons-format-video"></span>';break;case"audio/mpeg":case"audio/wav":case"audio/ogg":u='<span class="dashicons dashicons-format-audio"></span>'}n+='<div class="cherry-image-wrap"><div class="inner"><div class="preview-holder" data-id-attr="'+d+'"><div class="centered">'+u+'</div></div><a class="cherry-remove-image" href="#"><i class="dashicons dashicons-no"></i></a><span class="title">'+o.title+"</span></div></div>",s+=l+d,i++}r.input.val(s.replace(/(^,)/,"")).trigger("change"),c.html(n)});var s=function(a){var i=a.closest(".cherry-ui-media-wrap"),r=e(".cherry-upload-input",i),t=a.parent().parent(".cherry-image-wrap"),s=e(".preview-holder",t).data("id-attr"),c=r.attr("value"),n=new RegExp(""+s+"(,*)","i");c=c.replace(n,""),c=c.replace(/(,$)/,""),r.attr({value:c}).trigger("change"),t.remove()};i.on("click",".cherry-remove-image",function(){return s(e(this)),!1})}}),e(".cherry-all-images-wrap",i).sortable({items:"div.cherry-image-wrap",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,placeholder:"cherry-media-thumb-sortable-placeholder",start:function(){},stop:function(){},update:function(){var a="";e(".cherry-image-wrap",this).each(function(){var i=e(".preview-holder",this).data("id-attr");a=a+i+","}),a=a.substr(0,a.lastIndexOf(",")),e(this).parent().siblings(".cherry-element-wrap").find("input.cherry-upload-input").val(a).trigger("change")}})}},a.ui_elements.media.init()}(jQuery,window.CherryJsCore);
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/assets/ui-media.js CHANGED
@@ -12,6 +12,7 @@
12
  .on( 'cherry-ui-elements-init', this.render );
13
  },
14
  render: function ( event ) {
 
15
  var target = ( event._target ) ? event._target : $( 'body' ),
16
  buttons = $('.cherry-upload-button', target);
17
 
12
  .on( 'cherry-ui-elements-init', this.render );
13
  },
14
  render: function ( event ) {
15
+ console.log('media');
16
  var target = ( event._target ) ? event._target : $( 'body' ),
17
  buttons = $('.cherry-upload-button', target);
18
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-media/ui-media.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -23,9 +23,8 @@ if ( ! class_exists( 'UI_Media' ) ) {
23
  class UI_Media extends UI_Element implements I_UI {
24
 
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
@@ -43,7 +42,7 @@ if ( ! class_exists( 'UI_Media' ) ) {
43
  /**
44
  * Constructor method for the UI_Media class.
45
  *
46
- * @since 1.0.0
47
  */
48
  public function __construct( $args = array() ) {
49
 
@@ -56,7 +55,7 @@ if ( ! class_exists( 'UI_Media' ) ) {
56
  /**
57
  * Render html UI_Media.
58
  *
59
- * @since 1.0.0
60
  */
61
  public function render() {
62
  $html = '';
@@ -148,9 +147,9 @@ if ( ! class_exists( 'UI_Media' ) ) {
148
  }
149
 
150
  /**
151
- * Enqueue javascript and stylesheet UI_Media.
152
  *
153
- * @since 1.0.0
154
  */
155
  public static function enqueue_assets() {
156
  if ( current_user_can( 'upload_files' ) ) {
@@ -160,7 +159,7 @@ if ( ! class_exists( 'UI_Media' ) ) {
160
  'ui-media-min',
161
  esc_url( Cherry_Core::base_url( 'assets/min/ui-media.min.js', __FILE__ ) ),
162
  array( 'jquery', 'jquery-ui-sortable' ),
163
- '1.3.2',
164
  true
165
  );
166
 
@@ -168,7 +167,7 @@ if ( ! class_exists( 'UI_Media' ) ) {
168
  'ui-media-min',
169
  esc_url( Cherry_Core::base_url( 'assets/min/ui-media.min.css', __FILE__ ) ),
170
  array(),
171
- '1.3.2',
172
  'all'
173
  );
174
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
23
  class UI_Media extends UI_Element implements I_UI {
24
 
25
  /**
26
+ * Default settings
27
  *
 
28
  * @var array
29
  */
30
  private $defaults_settings = array(
42
  /**
43
  * Constructor method for the UI_Media class.
44
  *
45
+ * @since 4.0.0
46
  */
47
  public function __construct( $args = array() ) {
48
 
55
  /**
56
  * Render html UI_Media.
57
  *
58
+ * @since 4.0.0
59
  */
60
  public function render() {
61
  $html = '';
147
  }
148
 
149
  /**
150
+ * Enqueue javascript and stylesheet UI_Media
151
  *
152
+ * @since 4.0.0
153
  */
154
  public static function enqueue_assets() {
155
  if ( current_user_can( 'upload_files' ) ) {
159
  'ui-media-min',
160
  esc_url( Cherry_Core::base_url( 'assets/min/ui-media.min.js', __FILE__ ) ),
161
  array( 'jquery', 'jquery-ui-sortable' ),
162
+ '1.0.0',
163
  true
164
  );
165
 
167
  'ui-media-min',
168
  esc_url( Cherry_Core::base_url( 'assets/min/ui-media.min.css', __FILE__ ) ),
169
  array(),
170
+ '1.0.0',
171
  'all'
172
  );
173
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-radio/ui-radio.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -21,46 +21,45 @@ if ( ! class_exists( 'UI_Radio' ) ) {
21
  * Class for the building UI_Radio elements.
22
  */
23
  class UI_Radio extends UI_Element implements I_UI {
24
-
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-radio-id',
33
- 'name' => 'cherry-ui-radio-name',
34
- 'value' => 'radio-2',
35
- 'options' => array(
36
  'radio-1' => array(
37
- 'label' => 'Radio 1',
38
- 'img_src' => '',
39
- 'slave' => '',
40
  ),
41
  'radio-2' => array(
42
- 'label' => 'Radio 2',
43
- 'img_src' => '',
44
- 'slave' => '',
45
  ),
46
  'radio-3' => array(
47
- 'label' => 'Radio 3',
48
- 'img_src' => '',
49
- 'slave' => '',
50
  ),
51
  ),
52
- 'slave' => array(),
53
- 'label' => '',
54
- 'class' => '',
55
- 'master' => '',
56
  );
57
 
58
  /**
59
  * Constructor method for the UI_Radio class.
60
  *
61
- * @since 1.0.0
62
  */
63
  function __construct( $args = array() ) {
 
64
  $this->defaults_settings['id'] = 'cherry-ui-radio-' . uniqid();
65
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
66
 
@@ -72,7 +71,7 @@ if ( ! class_exists( 'UI_Radio' ) ) {
72
  /**
73
  * Render html UI_Radio.
74
  *
75
- * @since 1.0.0
76
  */
77
  public function render() {
78
  $html = '';
@@ -107,24 +106,23 @@ if ( ! class_exists( 'UI_Radio' ) ) {
107
  }
108
 
109
  /**
110
- * Enqueue javascript and stylesheet UI_Radio.
111
  *
112
- * @since 1.0.0
113
  */
114
  public static function enqueue_assets() {
115
  wp_enqueue_style(
116
  'ui-radio-min',
117
  esc_url( Cherry_Core::base_url( 'assets/min/ui-radio.min.css', __FILE__ ) ),
118
  array(),
119
- '1.3.2',
120
  'all'
121
  );
122
-
123
  wp_enqueue_script(
124
  'ui-radio-min',
125
  esc_url( Cherry_Core::base_url( 'assets/min/ui-radio.min.js', __FILE__ ) ),
126
  array( 'jquery' ),
127
- '1.3.2',
128
  true
129
  );
130
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
21
  * Class for the building UI_Radio elements.
22
  */
23
  class UI_Radio extends UI_Element implements I_UI {
 
24
  /**
25
+ * Default settings
26
  *
 
27
  * @var array
28
  */
29
  private $defaults_settings = array(
30
+ 'id' => 'cherry-ui-radio-id',
31
+ 'name' => 'cherry-ui-radio-name',
32
+ 'value' => 'radio-2',
33
+ 'options' => array(
34
  'radio-1' => array(
35
+ 'label' => 'Radio 1',
36
+ 'img_src' => '',
37
+ 'slave' => '',
38
  ),
39
  'radio-2' => array(
40
+ 'label' => 'Radio 2',
41
+ 'img_src' => '',
42
+ 'slave' => '',
43
  ),
44
  'radio-3' => array(
45
+ 'label' => 'Radio 3',
46
+ 'img_src' => '',
47
+ 'slave' => '',
48
  ),
49
  ),
50
+ 'slave' => array(),
51
+ 'label' => '',
52
+ 'class' => '',
53
+ 'master' => '',
54
  );
55
 
56
  /**
57
  * Constructor method for the UI_Radio class.
58
  *
59
+ * @since 4.0.0
60
  */
61
  function __construct( $args = array() ) {
62
+
63
  $this->defaults_settings['id'] = 'cherry-ui-radio-' . uniqid();
64
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
65
 
71
  /**
72
  * Render html UI_Radio.
73
  *
74
+ * @since 4.0.0
75
  */
76
  public function render() {
77
  $html = '';
106
  }
107
 
108
  /**
109
+ * Enqueue javascript and stylesheet UI_Radio
110
  *
111
+ * @since 4.0.0
112
  */
113
  public static function enqueue_assets() {
114
  wp_enqueue_style(
115
  'ui-radio-min',
116
  esc_url( Cherry_Core::base_url( 'assets/min/ui-radio.min.css', __FILE__ ) ),
117
  array(),
118
+ '1.0.0',
119
  'all'
120
  );
 
121
  wp_enqueue_script(
122
  'ui-radio-min',
123
  esc_url( Cherry_Core::base_url( 'assets/min/ui-radio.min.js', __FILE__ ) ),
124
  array( 'jquery' ),
125
+ '1.0.0',
126
  true
127
  );
128
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-repeater/ui-repeater.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -78,9 +78,9 @@ if ( ! class_exists( 'UI_Repeater' ) ) {
78
  public static $customizer_tmpl_printed = false;
79
 
80
  /**
81
- * Constructor method for the UI_Repeater class.
82
  *
83
- * @since 1.0.0
84
  */
85
  function __construct( $args = array() ) {
86
 
@@ -97,7 +97,7 @@ if ( ! class_exists( 'UI_Repeater' ) ) {
97
  }
98
 
99
  /**
100
- * Get required attribute.
101
  *
102
  * @return string required attribute
103
  */
@@ -111,7 +111,7 @@ if ( ! class_exists( 'UI_Repeater' ) ) {
111
  /**
112
  * Render html UI_Repeater.
113
  *
114
- * @since 1.0.1
115
  */
116
  public function render() {
117
  $html = '';
@@ -237,16 +237,17 @@ if ( ! class_exists( 'UI_Repeater' ) ) {
237
  }
238
 
239
  /**
240
- * Enqueue javascript and stylesheet UI_Repeater.
241
  *
242
- * @since 1.0.0
243
  */
244
  public static function enqueue_assets() {
 
245
  wp_enqueue_style(
246
  'ui-repeater',
247
  esc_url( Cherry_Core::base_url( 'assets/min/ui-repeater.min.css', __FILE__ ) ),
248
  array(),
249
- '1.3.2',
250
  'all'
251
  );
252
 
@@ -254,7 +255,7 @@ if ( ! class_exists( 'UI_Repeater' ) ) {
254
  'ui-repeater',
255
  esc_url( Cherry_Core::base_url( 'assets/min/ui-repeater.min.js', __FILE__ ) ),
256
  array( 'wp-util', 'jquery-ui-sortable' ),
257
- '1.3.2',
258
  true
259
  );
260
 
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
78
  public static $customizer_tmpl_printed = false;
79
 
80
  /**
81
+ * Constructor method for the UI_Text class.
82
  *
83
+ * @since 1.0.0
84
  */
85
  function __construct( $args = array() ) {
86
 
97
  }
98
 
99
  /**
100
+ * Get required attribute
101
  *
102
  * @return string required attribute
103
  */
111
  /**
112
  * Render html UI_Repeater.
113
  *
114
+ * @since 1.0.1
115
  */
116
  public function render() {
117
  $html = '';
237
  }
238
 
239
  /**
240
+ * Enqueue javascript and stylesheet UI_Text
241
  *
242
+ * @since 1.0.0
243
  */
244
  public static function enqueue_assets() {
245
+
246
  wp_enqueue_style(
247
  'ui-repeater',
248
  esc_url( Cherry_Core::base_url( 'assets/min/ui-repeater.min.css', __FILE__ ) ),
249
  array(),
250
+ '1.0.0',
251
  'all'
252
  );
253
 
255
  'ui-repeater',
256
  esc_url( Cherry_Core::base_url( 'assets/min/ui-repeater.min.js', __FILE__ ) ),
257
  array( 'wp-util', 'jquery-ui-sortable' ),
258
+ '1.0.0',
259
  true
260
  );
261
 
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-select/ui-select.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -21,69 +21,69 @@ if ( ! class_exists( 'UI_Select' ) ) {
21
  * Class for the building UI_Select elements.
22
  */
23
  class UI_Select extends UI_Element implements I_UI {
24
-
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-select-id',
33
- 'name' => 'cherry-ui-select-name',
34
- 'multiple' => false,
35
- 'filter' => false,
36
- 'size' => 1,
37
- 'inline_style' => 'width: 100%',
38
- 'value' => 'select-8',
39
- 'options' => array(
40
- 'select-1' => 'select 1',
41
- 'select-2' => 'select 2',
42
- 'select-3' => 'select 3',
43
- 'select-4' => 'select 4',
44
- 'select-5' => array(
45
- 'label' => 'Group 1',
46
- 'slave' => 'slave',
47
  ),
48
  'optgroup-1' => array(
49
- 'label' => 'Group 1',
50
- 'group_options' => array(
51
- 'select-6' => 'select 6',
52
- 'select-7' => 'select 7',
53
- 'select-8' => 'select 8',
54
  ),
55
  ),
56
- 'optgroup-2' => array(
57
- 'label' => 'Group 2',
58
- 'group_options' => array(
59
- 'select-9' => 'select 9',
60
- 'select-10' => 'select 10',
61
- 'select-11' => 'select 11',
62
  ),
63
  ),
64
  ),
65
- 'placeholder' => 'Select',
66
- 'label' => '',
67
- 'class' => '',
68
- 'master' => '',
69
  );
70
 
71
  /**
72
  * Constructor method for the UI_Select class.
73
  *
74
- * @since 1.0.0
75
  */
76
  function __construct( $args = array() ) {
 
77
  $this->defaults_settings['id'] = 'cherry-ui-select-' . uniqid();
78
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
79
 
80
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ) );
 
81
  }
82
 
83
  /**
84
  * Render html UI_Select.
85
  *
86
- * @since 1.0.0
87
  */
88
  public function render() {
89
  $html = '';
@@ -154,7 +154,7 @@ if ( ! class_exists( 'UI_Select' ) ) {
154
  /**
155
  * Enqueue javascript and stylesheet UI_Select
156
  *
157
- * @since 1.0.0
158
  */
159
  public static function enqueue_assets() {
160
  wp_enqueue_script(
@@ -164,15 +164,13 @@ if ( ! class_exists( 'UI_Select' ) ) {
164
  '4.0.3',
165
  true
166
  );
167
-
168
  wp_enqueue_script(
169
  'ui-select-min',
170
  esc_url( Cherry_Core::base_url( 'assets/min/ui-select.min.js', __FILE__ ) ),
171
  array( 'jquery' ),
172
- '1.3.2',
173
  true
174
  );
175
-
176
  wp_enqueue_style(
177
  'ui-select-select2',
178
  esc_url( Cherry_Core::base_url( 'assets/min/select2.min.css', __FILE__ ) ),
@@ -180,12 +178,11 @@ if ( ! class_exists( 'UI_Select' ) ) {
180
  '4.0.3',
181
  'all'
182
  );
183
-
184
  wp_enqueue_style(
185
  'ui-select-min',
186
  esc_url( Cherry_Core::base_url( 'assets/min/ui-select.min.css', __FILE__ ) ),
187
  array(),
188
- '1.3.2',
189
  'all'
190
  );
191
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
21
  * Class for the building UI_Select elements.
22
  */
23
  class UI_Select extends UI_Element implements I_UI {
 
24
  /**
25
+ * Default settings
26
  *
 
27
  * @var array
28
  */
29
  private $defaults_settings = array(
30
+ 'id' => 'cherry-ui-select-id',
31
+ 'name' => 'cherry-ui-select-name',
32
+ 'multiple' => false,
33
+ 'filter' => false,
34
+ 'size' => 1,
35
+ 'inline_style' => 'width: 100%',
36
+ 'value' => 'select-8',
37
+ 'options' => array(
38
+ 'select-1' => 'select 1',
39
+ 'select-2' => 'select 2',
40
+ 'select-3' => 'select 3',
41
+ 'select-4' => 'select 4',
42
+ 'select-5' => array(
43
+ 'label' => 'Group 1',
44
+ 'slave' => 'slave',
45
  ),
46
  'optgroup-1' => array(
47
+ 'label' => 'Group 1',
48
+ 'group_options' => array(
49
+ 'select-6' => 'select 6',
50
+ 'select-7' => 'select 7',
51
+ 'select-8' => 'select 8',
52
  ),
53
  ),
54
+ 'optgroup-2' => array(
55
+ 'label' => 'Group 2',
56
+ 'group_options' => array(
57
+ 'select-9' => 'select 9',
58
+ 'select-10' => 'select 10',
59
+ 'select-11' => 'select 11',
60
  ),
61
  ),
62
  ),
63
+ 'placeholder' => 'Select',
64
+ 'label' => '',
65
+ 'class' => '',
66
+ 'master' => '',
67
  );
68
 
69
  /**
70
  * Constructor method for the UI_Select class.
71
  *
72
+ * @since 4.0.0
73
  */
74
  function __construct( $args = array() ) {
75
+
76
  $this->defaults_settings['id'] = 'cherry-ui-select-' . uniqid();
77
  $this->settings = wp_parse_args( $args, $this->defaults_settings );
78
 
79
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ) );
80
+
81
  }
82
 
83
  /**
84
  * Render html UI_Select.
85
  *
86
+ * @since 4.0.0
87
  */
88
  public function render() {
89
  $html = '';
154
  /**
155
  * Enqueue javascript and stylesheet UI_Select
156
  *
157
+ * @since 4.0.0
158
  */
159
  public static function enqueue_assets() {
160
  wp_enqueue_script(
164
  '4.0.3',
165
  true
166
  );
 
167
  wp_enqueue_script(
168
  'ui-select-min',
169
  esc_url( Cherry_Core::base_url( 'assets/min/ui-select.min.js', __FILE__ ) ),
170
  array( 'jquery' ),
171
+ '1.0.0',
172
  true
173
  );
 
174
  wp_enqueue_style(
175
  'ui-select-select2',
176
  esc_url( Cherry_Core::base_url( 'assets/min/select2.min.css', __FILE__ ) ),
178
  '4.0.3',
179
  'all'
180
  );
 
181
  wp_enqueue_style(
182
  'ui-select-min',
183
  esc_url( Cherry_Core::base_url( 'assets/min/ui-select.min.css', __FILE__ ) ),
184
  array(),
185
+ '1.0.0',
186
  'all'
187
  );
188
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-slider/ui-slider.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -21,11 +21,9 @@ if ( ! class_exists( 'UI_Slider' ) ) {
21
  * Class for the building UI_Slider elements.
22
  */
23
  class UI_Slider extends UI_Element implements I_UI {
24
-
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
@@ -43,7 +41,7 @@ if ( ! class_exists( 'UI_Slider' ) ) {
43
  /**
44
  * Constructor method for the UI_Slider class.
45
  *
46
- * @since 1.0.0
47
  */
48
  function __construct( $args = array() ) {
49
  $this->defaults_settings['id'] = 'cherry-ui-slider-' . uniqid();
@@ -55,7 +53,7 @@ if ( ! class_exists( 'UI_Slider' ) ) {
55
  /**
56
  * Render html UI_Slider.
57
  *
58
- * @since 1.0.0
59
  */
60
  public function render() {
61
  $html = '';
@@ -95,14 +93,15 @@ if ( ! class_exists( 'UI_Slider' ) ) {
95
  /**
96
  * Enqueue javascript and stylesheet UI_Slider.
97
  *
98
- * @since 1.0.0
99
  */
100
  public static function enqueue_assets() {
 
101
  wp_enqueue_script(
102
  'ui-slider-min',
103
  esc_url( Cherry_Core::base_url( 'assets/min/ui-slider.min.js', __FILE__ ) ),
104
  array( 'jquery' ),
105
- '1.3.2',
106
  true
107
  );
108
 
@@ -110,7 +109,7 @@ if ( ! class_exists( 'UI_Slider' ) ) {
110
  'ui-slider-min',
111
  esc_url( Cherry_Core::base_url( 'assets/min/ui-slider.min.css', __FILE__ ) ),
112
  array(),
113
- '1.3.2',
114
  'all'
115
  );
116
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
21
  * Class for the building UI_Slider elements.
22
  */
23
  class UI_Slider extends UI_Element implements I_UI {
 
24
  /**
25
+ * Default settings
26
  *
 
27
  * @var array
28
  */
29
  private $defaults_settings = array(
41
  /**
42
  * Constructor method for the UI_Slider class.
43
  *
44
+ * @since 4.0.0
45
  */
46
  function __construct( $args = array() ) {
47
  $this->defaults_settings['id'] = 'cherry-ui-slider-' . uniqid();
53
  /**
54
  * Render html UI_Slider.
55
  *
56
+ * @since 4.0.0
57
  */
58
  public function render() {
59
  $html = '';
93
  /**
94
  * Enqueue javascript and stylesheet UI_Slider.
95
  *
96
+ * @since 4.0.0
97
  */
98
  public static function enqueue_assets() {
99
+
100
  wp_enqueue_script(
101
  'ui-slider-min',
102
  esc_url( Cherry_Core::base_url( 'assets/min/ui-slider.min.js', __FILE__ ) ),
103
  array( 'jquery' ),
104
+ '1.0.0',
105
  true
106
  );
107
 
109
  'ui-slider-min',
110
  esc_url( Cherry_Core::base_url( 'assets/min/ui-slider.min.css', __FILE__ ) ),
111
  array(),
112
+ '1.0.0',
113
  'all'
114
  );
115
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-stepper/ui-stepper.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -23,28 +23,26 @@ if ( ! class_exists( 'UI_Stepper' ) ) {
23
  class UI_Stepper extends UI_Element implements I_UI {
24
 
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-stepper-id',
33
- 'name' => 'cherry-ui-stepper-name',
34
- 'value' => '0',
35
- 'max_value' => '100',
36
- 'min_value' => '0',
37
- 'step_value' => '1',
38
- 'label' => '',
39
- 'class' => '',
40
- 'master' => '',
41
- 'placeholder' => '',
42
  );
43
-
44
  /**
45
  * Constructor method for the UI_Stepper class.
46
  *
47
- * @since 1.0.0
48
  */
49
  function __construct( $args = array() ) {
50
  $this->defaults_settings['id'] = 'cherry-ui-stepper-' . uniqid();
@@ -57,7 +55,7 @@ if ( ! class_exists( 'UI_Stepper' ) ) {
57
  /**
58
  * Render html UI_Stepper.
59
  *
60
- * @since 1.0.0
61
  */
62
  public function render() {
63
  $html = '';
@@ -80,14 +78,14 @@ if ( ! class_exists( 'UI_Stepper' ) ) {
80
  /**
81
  * Enqueue javascript and stylesheet UI_Stepper.
82
  *
83
- * @since 1.0.0
84
  */
85
  public static function enqueue_assets() {
86
  wp_enqueue_style(
87
  'ui-stepper-min',
88
  esc_url( Cherry_Core::base_url( 'assets/min/ui-stepper.min.css', __FILE__ ) ),
89
  array(),
90
- '1.3.2',
91
  'all'
92
  );
93
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
23
  class UI_Stepper extends UI_Element implements I_UI {
24
 
25
  /**
26
+ * Default settings
27
  *
 
28
  * @var array
29
  */
30
  private $defaults_settings = array(
31
+ 'id' => 'cherry-ui-stepper-id',
32
+ 'name' => 'cherry-ui-stepper-name',
33
+ 'value' => '0',
34
+ 'max_value' => '100',
35
+ 'min_value' => '0',
36
+ 'step_value' => '1',
37
+ 'label' => '',
38
+ 'class' => '',
39
+ 'master' => '',
40
+ 'placeholder' => '',
41
  );
 
42
  /**
43
  * Constructor method for the UI_Stepper class.
44
  *
45
+ * @since 4.0.0
46
  */
47
  function __construct( $args = array() ) {
48
  $this->defaults_settings['id'] = 'cherry-ui-stepper-' . uniqid();
55
  /**
56
  * Render html UI_Stepper.
57
  *
58
+ * @since 4.0.0
59
  */
60
  public function render() {
61
  $html = '';
78
  /**
79
  * Enqueue javascript and stylesheet UI_Stepper.
80
  *
81
+ * @since 4.0.0
82
  */
83
  public static function enqueue_assets() {
84
  wp_enqueue_style(
85
  'ui-stepper-min',
86
  esc_url( Cherry_Core::base_url( 'assets/min/ui-stepper.min.css', __FILE__ ) ),
87
  array(),
88
+ '1.0.0',
89
  'all'
90
  );
91
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-switcher/ui-switcher.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -23,31 +23,29 @@ if ( ! class_exists( 'UI_Switcher' ) ) {
23
  class UI_Switcher extends UI_Element implements I_UI {
24
 
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-swither-id',
33
- 'name' => 'cherry-ui-swither-name',
34
- 'value' => 'true',
35
- 'toggle' => array(
36
- 'true_toggle' => 'On',
37
- 'false_toggle' => 'Off',
38
- 'true_slave' => '',
39
- 'false_slave' => '',
40
  ),
41
- 'style' => 'normal',
42
- 'label' => '',
43
- 'class' => '',
44
- 'master' => '',
45
  );
46
-
47
  /**
48
  * Constructor method for the UI_Switcher class.
49
  *
50
- * @since 1.0.0
51
  */
52
  function __construct( $args = array() ) {
53
  $this->defaults_settings['id'] = 'cherry-ui-swither-' . uniqid();
@@ -59,7 +57,7 @@ if ( ! class_exists( 'UI_Switcher' ) ) {
59
  /**
60
  * Render html UI_Switcher.
61
  *
62
- * @since 1.0.0
63
  */
64
  public function render() {
65
  $data_slave_true = ( ! empty( $this->settings['toggle']['true_slave'] ) ) ? 'data-slave="' . $this->settings['toggle']['true_slave'] . '" ' : '';
@@ -92,22 +90,21 @@ if ( ! class_exists( 'UI_Switcher' ) ) {
92
  /**
93
  * Enqueue javascript and stylesheet UI_Switcher.
94
  *
95
- * @since 1.0.0
96
  */
97
  public static function enqueue_assets() {
98
  wp_enqueue_script(
99
  'ui-switcher-min',
100
  esc_url( Cherry_Core::base_url( 'assets/min/ui-switcher.min.js', __FILE__ ) ),
101
  array( 'jquery' ),
102
- '1.3.2',
103
  true
104
  );
105
-
106
  wp_enqueue_style(
107
  'ui-switcher-min',
108
  esc_url( Cherry_Core::base_url( 'assets/min/ui-switcher.min.css', __FILE__ ) ),
109
  array(),
110
- '1.3.2',
111
  'all'
112
  );
113
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
23
  class UI_Switcher extends UI_Element implements I_UI {
24
 
25
  /**
26
+ * Default settings
27
  *
 
28
  * @var array
29
  */
30
  private $defaults_settings = array(
31
+ 'id' => 'cherry-ui-swither-id',
32
+ 'name' => 'cherry-ui-swither-name',
33
+ 'value' => 'true',
34
+ 'toggle' => array(
35
+ 'true_toggle' => 'On',
36
+ 'false_toggle' => 'Off',
37
+ 'true_slave' => '',
38
+ 'false_slave' => '',
39
  ),
40
+ 'style' => 'normal',
41
+ 'label' => '',
42
+ 'class' => '',
43
+ 'master' => '',
44
  );
 
45
  /**
46
  * Constructor method for the UI_Switcher class.
47
  *
48
+ * @since 4.0.0
49
  */
50
  function __construct( $args = array() ) {
51
  $this->defaults_settings['id'] = 'cherry-ui-swither-' . uniqid();
57
  /**
58
  * Render html UI_Switcher.
59
  *
60
+ * @since 4.0.0
61
  */
62
  public function render() {
63
  $data_slave_true = ( ! empty( $this->settings['toggle']['true_slave'] ) ) ? 'data-slave="' . $this->settings['toggle']['true_slave'] . '" ' : '';
90
  /**
91
  * Enqueue javascript and stylesheet UI_Switcher.
92
  *
93
+ * @since 4.0.0
94
  */
95
  public static function enqueue_assets() {
96
  wp_enqueue_script(
97
  'ui-switcher-min',
98
  esc_url( Cherry_Core::base_url( 'assets/min/ui-switcher.min.js', __FILE__ ) ),
99
  array( 'jquery' ),
100
+ '1.0.0',
101
  true
102
  );
 
103
  wp_enqueue_style(
104
  'ui-switcher-min',
105
  esc_url( Cherry_Core::base_url( 'assets/min/ui-switcher.min.css', __FILE__ ) ),
106
  array(),
107
+ '1.0.0',
108
  'all'
109
  );
110
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-text/ui-text.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -23,27 +23,26 @@ if ( ! class_exists( 'UI_Text' ) ) {
23
  class UI_Text extends UI_Element implements I_UI {
24
 
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'type' => 'text',
33
- 'id' => 'cherry-ui-input-id',
34
- 'name' => 'cherry-ui-input-name',
35
- 'value' => '',
36
- 'placeholder' => '',
37
- 'label' => '',
38
- 'class' => '',
39
- 'master' => '',
40
- 'required' => false,
41
  );
42
 
43
  /**
44
  * Constructor method for the UI_Text class.
45
  *
46
- * @since 1.0.0
47
  */
48
  function __construct( $args = array() ) {
49
  $this->defaults_settings['id'] = 'cherry-ui-input-text-' . uniqid();
@@ -53,24 +52,21 @@ if ( ! class_exists( 'UI_Text' ) ) {
53
  }
54
 
55
  /**
56
- * Get required attribute.
57
  *
58
- * @since 1.0.0
59
- * @return string
60
  */
61
  public function get_required() {
62
-
63
  if ( $this->settings['required'] ) {
64
  return 'required="required"';
65
  }
66
-
67
  return '';
68
  }
69
 
70
  /**
71
  * Render html UI_Text.
72
  *
73
- * @since 1.0.0
74
  */
75
  public function render() {
76
  $html = '';
@@ -87,16 +83,17 @@ if ( ! class_exists( 'UI_Text' ) ) {
87
  }
88
 
89
  /**
90
- * Enqueue javascript and stylesheet UI_Text.
91
  *
92
- * @since 1.0.0
93
  */
94
  public static function enqueue_assets() {
 
95
  wp_enqueue_style(
96
  'ui-text',
97
  esc_url( Cherry_Core::base_url( 'assets/min/ui-text.min.css', __FILE__ ) ),
98
  array(),
99
- '1.3.2',
100
  'all'
101
  );
102
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
23
  class UI_Text extends UI_Element implements I_UI {
24
 
25
  /**
26
+ * Default settings
27
  *
 
28
  * @var array
29
  */
30
  private $defaults_settings = array(
31
+ 'type' => 'text',
32
+ 'id' => 'cherry-ui-input-id',
33
+ 'name' => 'cherry-ui-input-name',
34
+ 'value' => '',
35
+ 'placeholder' => '',
36
+ 'label' => '',
37
+ 'class' => '',
38
+ 'master' => '',
39
+ 'required' => false,
40
  );
41
 
42
  /**
43
  * Constructor method for the UI_Text class.
44
  *
45
+ * @since 4.0.0
46
  */
47
  function __construct( $args = array() ) {
48
  $this->defaults_settings['id'] = 'cherry-ui-input-text-' . uniqid();
52
  }
53
 
54
  /**
55
+ * Get required attribute
56
  *
57
+ * @return string required attribute
 
58
  */
59
  public function get_required() {
 
60
  if ( $this->settings['required'] ) {
61
  return 'required="required"';
62
  }
 
63
  return '';
64
  }
65
 
66
  /**
67
  * Render html UI_Text.
68
  *
69
+ * @since 4.0.0
70
  */
71
  public function render() {
72
  $html = '';
83
  }
84
 
85
  /**
86
+ * Enqueue javascript and stylesheet UI_Text
87
  *
88
+ * @since 4.0.0
89
  */
90
  public static function enqueue_assets() {
91
+
92
  wp_enqueue_style(
93
  'ui-text',
94
  esc_url( Cherry_Core::base_url( 'assets/min/ui-text.min.css', __FILE__ ) ),
95
  array(),
96
+ '1.0.0',
97
  'all'
98
  );
99
  }
cherry-framework/modules/cherry-ui-elements/inc/ui-elements/ui-textarea/ui-textarea.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -21,29 +21,27 @@ if ( ! class_exists( 'UI_Textarea' ) ) {
21
  * Class for the building UI_Textarea elements.
22
  */
23
  class UI_Textarea extends UI_Element implements I_UI {
24
-
25
  /**
26
- * Default settings.
27
  *
28
- * @since 1.0.0
29
  * @var array
30
  */
31
  private $defaults_settings = array(
32
- 'id' => 'cherry-ui-textarea-id',
33
- 'name' => 'cherry-ui-textarea-name',
34
- 'value' => '',
35
- 'placeholder' => '',
36
- 'rows' => '10',
37
- 'cols' => '20',
38
- 'label' => '',
39
- 'class' => '',
40
- 'master' => '',
41
  );
42
 
43
  /**
44
  * Constructor method for the UI_Textarea class.
45
  *
46
- * @since 1.0.0
47
  */
48
  function __construct( $args = array() ) {
49
  $this->defaults_settings['id'] = 'cherry-ui-textarea-' . uniqid();
@@ -55,7 +53,7 @@ if ( ! class_exists( 'UI_Textarea' ) ) {
55
  /**
56
  * Render html UI_Textarea.
57
  *
58
- * @since 1.0.0
59
  */
60
  public function render() {
61
  $html = '';
@@ -75,14 +73,14 @@ if ( ! class_exists( 'UI_Textarea' ) ) {
75
  /**
76
  * Enqueue javascript and stylesheet UI_Textarea
77
  *
78
- * @since 1.0.0
79
  */
80
  public static function enqueue_assets() {
81
  wp_enqueue_style(
82
  'ui-textarea',
83
  esc_url( Cherry_Core::base_url( 'assets/min/ui-textarea.min.css', __FILE__ ) ),
84
  array(),
85
- '1.3.2',
86
  'all'
87
  );
88
  }
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
21
  * Class for the building UI_Textarea elements.
22
  */
23
  class UI_Textarea extends UI_Element implements I_UI {
 
24
  /**
25
+ * Default settings
26
  *
 
27
  * @var array
28
  */
29
  private $defaults_settings = array(
30
+ 'id' => 'cherry-ui-textarea-id',
31
+ 'name' => 'cherry-ui-textarea-name',
32
+ 'value' => '',
33
+ 'placeholder' => '',
34
+ 'rows' => '10',
35
+ 'cols' => '20',
36
+ 'label' => '',
37
+ 'class' => '',
38
+ 'master' => '',
39
  );
40
 
41
  /**
42
  * Constructor method for the UI_Textarea class.
43
  *
44
+ * @since 4.0.0
45
  */
46
  function __construct( $args = array() ) {
47
  $this->defaults_settings['id'] = 'cherry-ui-textarea-' . uniqid();
53
  /**
54
  * Render html UI_Textarea.
55
  *
56
+ * @since 4.0.0
57
  */
58
  public function render() {
59
  $html = '';
73
  /**
74
  * Enqueue javascript and stylesheet UI_Textarea
75
  *
76
+ * @since 4.0.0
77
  */
78
  public static function enqueue_assets() {
79
  wp_enqueue_style(
80
  'ui-textarea',
81
  esc_url( Cherry_Core::base_url( 'assets/min/ui-textarea.min.css', __FILE__ ) ),
82
  array(),
83
+ '1.0.0',
84
  'all'
85
  );
86
  }
cherry-framework/modules/cherry-ui-elements/ui-element.php CHANGED
@@ -7,7 +7,7 @@
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
  */
12
 
13
  /**
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-3.0.html
11
  */
12
 
13
  /**
cherry-framework/modules/cherry-utility/inc/cherry-attributes-utilit.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
cherry-framework/modules/cherry-utility/inc/cherry-media-utilit.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -37,31 +37,30 @@ if ( ! class_exists( 'Cherry_Media_Utilit' ) ) {
37
  }
38
 
39
  $default_args = array(
40
- 'visible' => true,
41
- 'size' => apply_filters( 'cherry_normal_image_size', 'post-thumbnail' ),
42
- 'mobile_size' => apply_filters( 'cherry_mobile_image_size', 'post-thumbnail' ),
43
- 'html' => '<a href="%1$s" %2$s ><img src="%3$s" alt="%4$s" %5$s ></a>',
44
- 'class' => 'wp-image',
45
- 'placeholder' => true,
46
- 'placeholder_background' => '000',
47
- 'placeholder_foreground' => 'fff',
48
- 'placeholder_title' => '',
49
- 'html_tag_suze' => true,
50
- 'echo' => false,
51
  );
52
  $args = wp_parse_args( $args, $default_args );
53
  $html = '';
54
 
55
  if ( filter_var( $args['visible'], FILTER_VALIDATE_BOOLEAN ) ) {
56
 
57
- $intermediate_image_sizes = get_intermediate_image_sizes();
58
- $intermediate_image_sizes[] = 'full';
59
-
60
  $size = wp_is_mobile() ? $args['mobile_size'] : $args['size'];
 
 
61
  $size = in_array( $size, $intermediate_image_sizes ) ? $size : 'post-thumbnail';
62
 
63
- // Placeholder defaults attr.
64
- $size_array = $this->get_thumbnail_size_array( $size );
65
 
66
  switch ( $type ) {
67
  case 'post':
@@ -80,31 +79,29 @@ if ( ! class_exists( 'Cherry_Media_Utilit' ) ) {
80
 
81
  case 'attachment':
82
  $thumbnail_id = $id;
83
- $alt = get_the_title( $thumbnail_id );
84
- $link = wp_get_attachment_image_url( $thumbnail_id, $size );
85
  break;
86
  }
87
 
88
  if ( $thumbnail_id ) {
89
  $image_data = wp_get_attachment_image_src( $thumbnail_id, $size );
90
- $src = $image_data[0];
91
-
92
- $size_array['width'] = $image_data[1];
93
  $size_array['height'] = $image_data[2];
94
-
95
  } elseif ( filter_var( $args['placeholder'], FILTER_VALIDATE_BOOLEAN ) ) {
96
- $title = ( $args['placeholder_title'] ) ? $args['placeholder_title'] : $size_array['width'] . 'x' . $size_array['height'];
97
  $attr = array(
98
- 'width' => $size_array['width'],
99
- 'height' => $size_array['height'],
100
- 'background' => $args['placeholder_background'],
101
- 'foreground' => $args['placeholder_foreground'],
102
- 'title' => $title,
103
  );
104
 
105
  $attr = array_map( 'esc_attr', $attr );
106
 
107
- $width = ( 4000 < intval( $attr['width'] ) ) ? 4000 : intval( $attr['width'] );
108
  $height = ( 4000 < intval( $attr['height'] ) ) ? 4000 : intval( $attr['height'] );
109
 
110
  $src = $this->get_placeholder_url( array(
@@ -116,11 +113,11 @@ if ( ! class_exists( 'Cherry_Media_Utilit' ) ) {
116
  ) );
117
  }
118
 
119
- $class = ( $args['class'] ) ? 'class="' . esc_attr( $args['class'] ) . '"' : '';
120
- $html_tag_suze = ( filter_var( $args['html_tag_suze'], FILTER_VALIDATE_BOOLEAN ) ) ? 'width="' . $size_array['width'] . '" height="' . $size_array['height'] . '"' : '';
121
 
122
  if ( isset( $src ) ) {
123
- $html = sprintf( $args['html'], esc_url( $link ), $class, esc_url( $src ), esc_attr( $alt ), $html_tag_suze );
124
  }
125
  }
126
 
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
37
  }
38
 
39
  $default_args = array(
40
+ 'visible' => true,
41
+ 'size' => apply_filters( 'cherry_normal_image_size', 'post-thumbnail' ),
42
+ 'mobile_size' => apply_filters( 'cherry_mobile_image_size', 'post-thumbnail' ),
43
+ 'html' => '<a href="%1$s" %2$s ><img src="%3$s" alt="%4$s" %5$s ></a>',
44
+ 'class' => 'wp-image',
45
+ 'placeholder' => true,
46
+ 'placeholder_background' => '000',
47
+ 'placeholder_foreground' => 'fff',
48
+ 'placeholder_title' => '',
49
+ 'html_tag_suze' => true,
50
+ 'echo' => false,
51
  );
52
  $args = wp_parse_args( $args, $default_args );
53
  $html = '';
54
 
55
  if ( filter_var( $args['visible'], FILTER_VALIDATE_BOOLEAN ) ) {
56
 
 
 
 
57
  $size = wp_is_mobile() ? $args['mobile_size'] : $args['size'];
58
+ $intermediate_image_sizes = get_intermediate_image_sizes();
59
+ $intermediate_image_sizes[] = 'full';
60
  $size = in_array( $size, $intermediate_image_sizes ) ? $size : 'post-thumbnail';
61
 
62
+ // Place holder defaults attr
63
+ $size_array = $this->get_thumbnail_size_array( $size );
64
 
65
  switch ( $type ) {
66
  case 'post':
79
 
80
  case 'attachment':
81
  $thumbnail_id = $id;
82
+ $alt = get_the_title( $thumbnail_id );
83
+ $link = wp_get_attachment_image_url( $thumbnail_id, $size );
84
  break;
85
  }
86
 
87
  if ( $thumbnail_id ) {
88
  $image_data = wp_get_attachment_image_src( $thumbnail_id, $size );
89
+ $src = $image_data[0];
90
+ $size_array['width'] = $image_data[1];
 
91
  $size_array['height'] = $image_data[2];
 
92
  } elseif ( filter_var( $args['placeholder'], FILTER_VALIDATE_BOOLEAN ) ) {
93
+ $title = ( $args['placeholder_title'] ) ? $args['placeholder_title'] : $size_array['width'] . 'x' . $size_array['height'] ;
94
  $attr = array(
95
+ 'width' => $size_array['width'],
96
+ 'height' => $size_array['height'],
97
+ 'background' => $args['placeholder_background'],
98
+ 'foreground' => $args['placeholder_foreground'],
99
+ 'title' => $title,
100
  );
101
 
102
  $attr = array_map( 'esc_attr', $attr );
103
 
104
+ $width = ( 4000 < intval( $attr['width'] ) ) ? 4000 : intval( $attr['width'] );
105
  $height = ( 4000 < intval( $attr['height'] ) ) ? 4000 : intval( $attr['height'] );
106
 
107
  $src = $this->get_placeholder_url( array(
113
  ) );
114
  }
115
 
116
+ $class = ( $args['class'] ) ? 'class="' . $args['class'] . '"' : '' ;
117
+ $html_tag_suze = ( filter_var( $args['html_tag_suze'], FILTER_VALIDATE_BOOLEAN ) ) ? 'width="' . $size_array['width'] . '" height="' . $size_array['height'] . '"' : '' ;
118
 
119
  if ( isset( $src ) ) {
120
+ $html = sprintf( $args['html'], $link, $class, $src, $alt, $html_tag_suze );
121
  }
122
  }
123
 
cherry-framework/modules/cherry-utility/inc/cherry-meta-data-utilit.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
cherry-framework/modules/cherry-utility/inc/cherry-satellite-utilit.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
- * @license http://www.gnu.org/licenses/gpl-3.0.en.html
11
  */
12
 
13
  // If this file is called directly, abort.
@@ -115,7 +115,7 @@ if ( ! class_exists( 'Cherry_Satellite_Utilit' ) ) {
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 {
@@ -139,6 +139,8 @@ if ( ! class_exists( 'Cherry_Satellite_Utilit' ) ) {
139
  }
140
  }
141
 
 
 
142
  /**
143
  * Return post terms.
144
  *
7
  * @author Cherry Team <support@cherryframework.com>
8
  * @copyright Copyright (c) 2012 - 2015, Cherry Team
9
  * @link http://www.cherryframework.com/
10
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
115
  */
116
  public function get_thumbnail_size_array( $size ) {
117
  global $_wp_additional_image_sizes;
118
+ $size_array = array();
119
  if ( array_key_exists( $size, $_wp_additional_image_sizes ) ) {
120
  $size_array = $_wp_additional_image_sizes[ $size ];
121
  } else {
139
  }
140
  }
141
 
142
+
143
+
144
  /**
145
  * Return post terms.
146
  *
cherry-framework/modules/cherry-widget-factory/inc/class-cherry-abstract-widget.php CHANGED
@@ -7,7 +7,7 @@
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
  */
12
 
13
  // If this file is called directly, abort.
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-3.0.html
11
  */
12
 
13
  // If this file is called directly, abort.
cherry-framework/setup.php CHANGED
@@ -8,7 +8,7 @@
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
  */
13
 
14
  return create_function( '', '
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/old-licenses/gpl-3.0.html
12
  */
13
 
14
  return create_function( '', '
cherry-services-list.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Services List
4
  * Plugin URI: http://www.templatemonster.com/wordpress-themes.php
5
  * Description: Cherry Services is a flexible WordPress plugin that lets you display your company’s services in a variety of ways.
6
- * Version: 1.0.4
7
  * Author: TemplateMonster
8
  * Author URI: http://www.templatemonster.com
9
  * Text Domain: cherry-services
@@ -83,7 +83,7 @@ if ( ! class_exists( 'Cherry_Services_List' ) ) {
83
  * @access private
84
  * @var string
85
  */
86
- private $version = '1.0.4';
87
 
88
  /**
89
  * Plugin CPT name
3
  * Plugin Name: Cherry Services List
4
  * Plugin URI: http://www.templatemonster.com/wordpress-themes.php
5
  * Description: Cherry Services is a flexible WordPress plugin that lets you display your company’s services in a variety of ways.
6
+ * Version: 1.0.5
7
  * Author: TemplateMonster
8
  * Author URI: http://www.templatemonster.com
9
  * Text Domain: cherry-services
83
  * @access private
84
  * @var string
85
  */
86
+ private $version = '1.0.5';
87
 
88
  /**
89
  * Plugin CPT name
public/includes/class-cherry-services-list-init.php CHANGED
@@ -35,6 +35,9 @@ class Cherry_Services_List_Init extends Cherry_Services_List {
35
  add_action( 'init', array( $this, 'register_post' ) );
36
  add_action( 'init', array( $this, 'register_tax' ) );
37
 
 
 
 
38
  }
39
 
40
  /**
@@ -134,6 +137,18 @@ class Cherry_Services_List_Init extends Cherry_Services_List {
134
 
135
  }
136
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  /**
138
  * Returns the instance.
139
  *
35
  add_action( 'init', array( $this, 'register_post' ) );
36
  add_action( 'init', array( $this, 'register_tax' ) );
37
 
38
+ // Adds Cherry Search compatibility
39
+ add_filter( 'cherry_search_support_categories', array( $this, 'search_tax' ) );
40
+
41
  }
42
 
43
  /**
137
 
138
  }
139
 
140
+ /**
141
+ * Pass services taxonomy into search plugin
142
+ *
143
+ * @param array $taxonomies Supported taxonomies.
144
+ * @return array
145
+ */
146
+ public function search_tax( $taxonomies ) {
147
+
148
+ $taxonomies[] = $this->tax( 'category' );
149
+ return $taxonomies;
150
+ }
151
+
152
  /**
153
  * Returns the instance.
154
  *
public/includes/class-cherry-services-list-template-callbacks.php CHANGED
@@ -542,7 +542,7 @@ class Cherry_Services_List_Template_Callbacks {
542
 
543
  $features = get_post_meta( $post->ID, 'cherry-services-features', true );
544
 
545
- if ( empty( $features ) ) {
546
  return;
547
  }
548
 
542
 
543
  $features = get_post_meta( $post->ID, 'cherry-services-features', true );
544
 
545
+ if ( empty( $features ) || ! is_array( $features ) ) {
546
  return;
547
  }
548
 
public/includes/class-cherry-services-list-templater.php CHANGED
@@ -76,6 +76,9 @@ class Cherry_Services_List_Templater extends Cherry_Services_List {
76
  $find = array();
77
  $file = '';
78
 
 
 
 
79
  if ( is_single() && $this->post_type() === get_post_type() ) {
80
 
81
  $file = 'single-services.php';
@@ -104,7 +107,7 @@ class Cherry_Services_List_Templater extends Cherry_Services_List {
104
  $find[] = $file;
105
  $find[] = $this->template_path() . $file;
106
 
107
- } elseif ( $this->get_option( 'archive-page' ) && is_page( $this->get_option( 'archive-page' ) ) ) {
108
  $file = 'archive-services.php';
109
  $find[] = $file;
110
  $find[] = $this->template_path() . $file;
76
  $find = array();
77
  $file = '';
78
 
79
+ $archive_page = $this->get_option( 'archive-page' );
80
+ $archive_page = apply_filters( 'wpml_object_id', $archive_page, 'page', true );
81
+
82
  if ( is_single() && $this->post_type() === get_post_type() ) {
83
 
84
  $file = 'single-services.php';
107
  $find[] = $file;
108
  $find[] = $this->template_path() . $file;
109
 
110
+ } elseif ( $archive_page && is_page( $archive_page ) ) {
111
  $file = 'archive-services.php';
112
  $find[] = $file;
113
  $find[] = $this->template_path() . $file;
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, services, service, cherry-framework
5
  Requires at least: 4.5
6
- Tested up to: 4.6.1
7
- Stable tag: 1.0.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -42,23 +42,28 @@ If you have Cherry Testimonials plugin installed on your website, you can also i
42
 
43
  == Changelog ==
44
 
45
- = 1.0.0 =
46
 
47
- * Initial release
 
48
 
49
- = 1.0.1 =
50
 
51
- * SYS: Added cherry-framework tag
 
 
 
 
 
52
 
53
  = 1.0.2 =
54
 
55
  * UPD: Allow to crop description macros
56
 
57
- = 1.0.3 =
58
 
59
- * FIX: Minor fixes
60
 
61
- = 1.0.4 =
62
 
63
- * FIX: Size attribute for image macros
64
- * ADD: columns_laptop shortcode attribute
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, services, service, cherry-framework
5
  Requires at least: 4.5
6
+ Tested up to: 4.7.2
7
+ Stable tag: 1.0.5
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
42
 
43
  == Changelog ==
44
 
45
+ = 1.0.5 =
46
 
47
+ * FIX: Rename serialize script to prevent conflicts with other plugins
48
+ * ADD: compatibility with Cherry Search
49
 
50
+ = 1.0.4 =
51
 
52
+ * FIX: Size attribute for image macros
53
+ * ADD: columns_laptop shortcode attribute
54
+
55
+ = 1.0.3 =
56
+
57
+ * FIX: Minor fixes
58
 
59
  = 1.0.2 =
60
 
61
  * UPD: Allow to crop description macros
62
 
63
+ = 1.0.1 =
64
 
65
+ * SYS: Added cherry-framework tag
66
 
67
+ = 1.0.0 =
68
 
69
+ * Initial release
 
wpml-config.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <wpml-config>
2
+ <custom-types>
3
+ <custom-type translate="1">cherry-services</custom-type>
4
+ </custom-types>
5
+ <taxonomies>
6
+ <taxonomy translate="1">cherry-services_category</taxonomy>
7
+ </taxonomies>
8
+ <custom-fields>
9
+ <custom-field action="copy">cherry-services-cta-bg-color</custom-field>
10
+ <custom-field action="copy">cherry-services-cta-bg-image</custom-field>
11
+ <custom-field action="copy">cherry-services-cta-bg-size</custom-field>
12
+ <custom-field action="copy">cherry-services-cta-bg-position</custom-field>
13
+ <custom-field action="copy">cherry-services-cta-bg-repeat</custom-field>
14
+ <custom-field action="copy">cherry-services-cta-text-color</custom-field>
15
+ <custom-field action="copy">cherry-services-cta-title-color</custom-field>
16
+ <custom-field action="copy">cherry-services-cta-type</custom-field>
17
+ <custom-field action="copy">cherry-services-icon</custom-field>
18
+ <custom-field action="copy">cherry-services-show-cta</custom-field>
19
+ <custom-field action="copy">cherry-services-single-layout</custom-field>
20
+ <custom-field action="translate">cherry-services-cta-descr</custom-field>
21
+ <custom-field action="translate">cherry-services-cta-form</custom-field>
22
+ <custom-field action="translate">cherry-services-cta-link-text</custom-field>
23
+ <custom-field action="translate">cherry-services-cta-link-url</custom-field>
24
+ <custom-field action="translate">cherry-services-cta-submit</custom-field>
25
+ <custom-field action="translate">cherry-services-cta-title</custom-field>
26
+ <custom-field action="translate">cherry-services-descr</custom-field>
27
+ <custom-field action="translate">cherry-services-features</custom-field>
28
+ <custom-field action="translate">cherry-services-features-title</custom-field>
29
+ <custom-field action="translate">cherry-services-form-message</custom-field>
30
+ <custom-field action="translate">cherry-services-slogan</custom-field>
31
+ <custom-field action="translate">cherry-services-testi</custom-field>
32
+ </custom-fields>
33
+ </wpml-config>