Cherry Team Members - Version 1.4.4.2

Version Description

Download this release

Release Info

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

Code changes from version 1.4.4.1 to 1.4.4.2

admin/assets/css/editor.css ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .tm-pb-option-container .wp-picker-container a.wp-color-result {
2
+ position: relative;
3
+ }
4
+ .tm-pb-option-container .wp-picker-container {
5
+ display: flex;
6
+ }
7
+ .tm-pb-option-container .wp-picker-container .wp-picker-input-wrap {
8
+ width: auto !important;
9
+ margin-left: 10px;
10
+ }
11
+ .tm-pb-option-container .wp-picker-container .wp-picker-input-wrap .tm-pb-color-picker-hex {
12
+ margin: 1px !important;
13
+ }
14
+ .tm-pb-option-container .wp-color-result .wp-color-result-text {
15
+ background: none;
16
+ border-left: none;
17
+ color: #fff;
18
+ /*padding: 0 0 0 22px;*/
19
+ padding: 0;
20
+ }
21
+ .tm-pb-option-container .wp-color-result .color-alpha {
22
+ top: 8px !important;
23
+ left: 6px !important;
24
+ border-radius: 2px;
25
+ }
admin/assets/js/wp-color-picker-alpha.min.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**!
2
+ * wp-color-picker-alpha
3
+ *
4
+ * Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
5
+ * Only run in input and is defined data alpha in true
6
+ *
7
+ * Version: 2.1.2
8
+ * https://github.com/kallookoo/wp-color-picker-alpha
9
+ * Licensed under the GPLv2 license.
10
+ */
11
+ !function(t){var o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",r='<div class="wp-picker-holder" />',e='<div class="wp-picker-container" />',i='<input type="button" class="button button-small" />',a=void 0!==wpColorPickerL10n.current;if(a)n='<a tabindex="0" class="wp-color-result" />';else var n='<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',l="<label></label>",s='<span class="screen-reader-text"></span>';Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);return this.error?"":(t.length<6&&(t=("00000"+t).substr(-6)),"#"+t)},t.widget("wp.wpColorPicker",t.wp.wpColorPicker,{_create:function(){if(t.support.iris){var p=this,c=p.element;if(t.extend(p.options,c.data()),"hue"===p.options.type)return p._createHueOnly();p.close=t.proxy(p.close,p),p.initialValue=c.val(),c.addClass("wp-color-picker"),a?(c.hide().wrap(e),p.wrap=c.parent(),p.toggler=t(n).insertBefore(c).css({backgroundColor:p.initialValue}).attr("title",wpColorPickerL10n.pick).attr("data-current",wpColorPickerL10n.current),p.pickerContainer=t(r).insertAfter(c),p.button=t(i).addClass("hidden")):(c.parent("label").length||(c.wrap(l),p.wrappingLabelText=t(s).insertBefore(c).text(wpColorPickerL10n.defaultLabel)),p.wrappingLabel=c.parent(),p.wrappingLabel.wrap(e),p.wrap=p.wrappingLabel.parent(),p.toggler=t(n).insertBefore(p.wrappingLabel).css({backgroundColor:p.initialValue}),p.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick),p.pickerContainer=t(r).insertAfter(p.wrappingLabel),p.button=t(i)),p.options.defaultColor?(p.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString),a||p.button.attr("aria-label",wpColorPickerL10n.defaultAriaLabel)):(p.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear),a||p.button.attr("aria-label",wpColorPickerL10n.clearAriaLabel)),a?c.wrap('<span class="wp-picker-input-wrap" />').after(p.button):(p.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(p.button),p.inputWrapper=c.closest(".wp-picker-input-wrap")),c.iris({target:p.pickerContainer,hide:p.options.hide,width:p.options.width,mode:p.options.mode,palettes:p.options.palettes,change:function(r,e){p.options.alpha?(p.toggler.css({"background-image":"url("+o+")"}),a?p.toggler.html('<span class="color-alpha" />'):(p.toggler.css({position:"relative"}),0==p.toggler.find("span.color-alpha").length&&p.toggler.append('<span class="color-alpha" />')),p.toggler.find("span.color-alpha").css({width:"30px",height:"24px",position:"absolute",top:0,left:0,"border-top-left-radius":"2px","border-bottom-left-radius":"2px",background:e.color.toString()})):p.toggler.css({backgroundColor:e.color.toString()}),t.isFunction(p.options.change)&&p.options.change.call(this,r,e)}}),c.val(p.initialValue),p._addListeners(),p.options.hide||p.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on("click.wpcolorpicker",function(t){t.stopPropagation()}),o.toggler.click(function(){o.toggler.hasClass("wp-picker-open")?o.close():o.open()}),o.element.on("change",function(r){(""===t(this).val()||o.element.hasClass("iris-error"))&&(o.options.alpha?(a&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),t.isFunction(o.options.clear)&&o.options.clear.call(this,r))}),o.button.on("click",function(r){t(this).hasClass("wp-picker-clear")?(o.element.val(""),o.options.alpha?(a&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),t.isFunction(o.options.clear)&&o.options.clear.call(this,r)):t(this).hasClass("wp-picker-default")&&o.element.val(o.options.defaultColor).change()})}}),t.widget("a8c.iris",t.a8c.iris,{_create:function(){if(this._super(),this.options.alpha=this.element.data("alpha")||!1,this.element.is(":input")||(this.options.alpha=!1),void 0!==this.options.alpha&&this.options.alpha){var o=this,r=o.element,e=t('<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>').appendTo(o.picker.find(".iris-picker-inner")),i={aContainer:e,aSlider:e.find(".iris-slider-offset-alpha")};void 0!==r.data("custom-width")?o.options.customWidth=parseInt(r.data("custom-width"))||0:o.options.customWidth=100,o.options.defaultWidth=r.width(),(o._color._alpha<1||-1!=o._color.toString().indexOf("rgb"))&&r.width(parseInt(o.options.defaultWidth+o.options.customWidth)),t.each(i,function(t,r){o.controls[t]=r}),o.controls.square.css({"margin-right":"0"});var a=o.picker.width()-o.controls.square.width()-20,n=a/6,l=a/2-n;t.each(["aContainer","strip"],function(t,r){o.controls[r].width(l).css({"margin-left":n+"px"})}),o._initControls(),o._change()}},_initControls:function(){if(this._super(),this.options.alpha){var t=this;t.controls.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*t._color._alpha),slide:function(o,r){t._color._alpha=parseFloat(r.value/100),t._change.apply(t,arguments)}})}},_change:function(){this._super();var t=this,r=t.element;if(this.options.alpha){var e=t.controls,i=parseInt(100*t._color._alpha),a=t._color.toRgb(),n=["rgb("+a.r+","+a.g+","+a.b+") 0%","rgba("+a.r+","+a.g+","+a.b+", 0) 100%"],l=t.options.defaultWidth,s=t.options.customWidth,p=t.picker.closest(".wp-picker-container").find(".wp-color-result");e.aContainer.css({background:"linear-gradient(to bottom, "+n.join(", ")+"), url("+o+")"}),p.hasClass("wp-picker-open")&&(e.aSlider.slider("value",i),t._color._alpha<1?(e.strip.attr("style",e.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)")),r.width(parseInt(l+s))):r.width(l))}(r.data("reset-alpha")||!1)&&t.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){t._color._alpha=1,t.active="external",t._change()})},_addInputListeners:function(t){var o=this,r=function(r){var e=new Color(t.val()),i=t.val();t.removeClass("iris-error"),e.error?""!==i&&t.addClass("iris-error"):e.toString()!==o._color.toString()&&("keyup"===r.type&&i.match(/^[0-9a-fA-F]{3}$/)||o._setOption("color",e.toString()))};t.on("change",r).on("keyup",o._debounce(r,100)),o.options.hide&&t.on("focus",function(){o.show()})}})}(jQuery),
12
+ // Auto call with colo-picker class
13
+ jQuery(document).ready(function(t){t(".color-picker").wpColorPicker()});
admin/includes/class-cherry-team-admin.php CHANGED
@@ -31,6 +31,7 @@ class Cherry_Team_Members_Admin {
31
  public function __construct() {
32
  // Register admin assets
33
  add_action( 'admin_init', array( $this, 'register_assets' ) );
 
34
  }
35
 
36
  /**
@@ -65,6 +66,27 @@ class Cherry_Team_Members_Admin {
65
 
66
  }
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  /**
69
  * Returns the instance.
70
  *
31
  public function __construct() {
32
  // Register admin assets
33
  add_action( 'admin_init', array( $this, 'register_assets' ) );
34
+ add_action( 'admin_enqueue_scripts', array( $this, 'editor_fix' ), 99 );
35
  }
36
 
37
  /**
66
 
67
  }
68
 
69
+ public function editor_fix() {
70
+
71
+ wp_enqueue_style(
72
+ 'cherry-team-editor',
73
+ cherry_team_members()->plugin_url( 'admin/assets/css/editor.css' ),
74
+ array(),
75
+ cherry_team_members()->version()
76
+ );
77
+
78
+ wp_dequeue_script( 'wp-color-picker-alpha' );
79
+
80
+ wp_register_script(
81
+ 'wp-color-picker-alpha',
82
+ cherry_team_members()->plugin_url( 'admin/assets/js/wp-color-picker-alpha.min.js' ),
83
+ array( 'jquery', 'wp-color-picker' ),
84
+ cherry_team_members()->version(),
85
+ true
86
+ );
87
+
88
+ }
89
+
90
  /**
91
  * Returns the instance.
92
  *
cherry-framework/config.json DELETED
@@ -1,196 +0,0 @@
1
- {
2
- "name" : "Cherry Framework",
3
- "version" : "1.4.3.1",
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" : {
9
- "name" : "Breadcrumb Trail",
10
- "description" : "A breadcrumb menu script for WordPress.",
11
- "version" : "1.1.3",
12
- "doc_link" : "",
13
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-breadcrumbs",
14
- "compatible" : ["theme", "plugin"],
15
- "wordpress_org" : true,
16
- "required" : false,
17
- "dependencies" : []
18
- },
19
- "cherry-customizer" : {
20
- "name" : "Customizer API",
21
- "description" : "Customizer functionality.",
22
- "version" : "1.1.7",
23
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/01.%20cherry-customizer.md",
24
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-customizer",
25
- "compatible" : ["theme", "plugin"],
26
- "wordpress_org" : true,
27
- "required" : false,
28
- "dependencies" : []
29
- },
30
- "cherry-db-updater" : {
31
- "name" : "Database Updater",
32
- "description" : "Handle database updates if required.",
33
- "version" : "1.0.0",
34
- "doc_link" : "",
35
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-db-updater",
36
- "compatible" : ["theme", "plugin"],
37
- "wordpress_org" : true,
38
- "required" : false,
39
- "dependencies" : []
40
- },
41
- "cherry-dynamic-css" : {
42
- "name" : "Dynamic CSS",
43
- "description" : "Generate CSS.",
44
- "version" : "1.4.0",
45
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/03.%20cherry-dynamic-css.md",
46
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-dynamic-css",
47
- "compatible" : ["theme", "plugin"],
48
- "wordpress_org" : true,
49
- "required" : false,
50
- "dependencies" : []
51
- },
52
- "cherry-google-fonts-loader" : {
53
- "name" : "Google Fonts Loader",
54
- "description" : "Enqueue Google fonts.",
55
- "version" : "1.1.0",
56
- "doc_link" : "",
57
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-google-fonts-loader",
58
- "compatible" : ["theme", "plugin"],
59
- "wordpress_org" : true,
60
- "required" : false,
61
- "dependencies" : []
62
- },
63
- "cherry-handler" : {
64
- "name" : "Cherry handler",
65
- "description" : "Initialize handlers.",
66
- "version" : "1.1.3",
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,
71
- "required" : false,
72
- "dependencies" : [ "cherry-js-core" ]
73
- },
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,
82
- "required" : false,
83
- "dependencies" : [ "cherry-ui-elements" ]
84
- },
85
- "cherry-js-core" : {
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,
93
- "required" : false,
94
- "dependencies" : []
95
- },
96
- "cherry-post-formats-api" : {
97
- "name" : "Post Formats API",
98
- "description" : "API for post formats specific content.",
99
- "version" : "1.1.2",
100
- "doc_link" : "",
101
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-post-formats-api",
102
- "compatible" : ["theme", "plugin"],
103
- "wordpress_org" : true,
104
- "required" : false,
105
- "dependencies" : [ "cherry-js-core" ]
106
- },
107
- "cherry-post-meta" : {
108
- "name" : "Post Meta",
109
- "description" : "Manage post meta.",
110
- "version" : "1.2.1",
111
- "doc_link" : "",
112
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-post-meta",
113
- "compatible" : ["theme", "plugin"],
114
- "wordpress_org" : true,
115
- "required" : false,
116
- "dependencies" : [ "cherry-interface-builder" ]
117
- },
118
- "cherry-term-meta" : {
119
- "name" : "Term Meta",
120
- "description" : "Manage term metadata.",
121
- "version" : "1.1.4",
122
- "doc_link" : "",
123
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-term-meta",
124
- "compatible" : ["theme", "plugin"],
125
- "wordpress_org" : true,
126
- "required" : false,
127
- "dependencies" : [ "cherry-ui-elements" ]
128
- },
129
- "cherry-toolkit": {
130
- "name": "Framework Toolkit",
131
- "description": "Framework Toolkit contains various PHP utilities",
132
- "version" : "1.2.0",
133
- "doc_link": "https://github.com/CherryFramework/cherry-framework-docs/blob/master/100.%20cherry-toolkit.md",
134
- "git_link": "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-toolkit",
135
- "compatible": ["theme", "plugin"],
136
- "wordpress_org": true,
137
- "required": true,
138
- "dependencies": []
139
- },
140
- "cherry-ui-elements" : {
141
- "name" : "UI Elements",
142
- "description" : "UI Elements",
143
- "version" : "1.4.3",
144
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/09.%20cherry-ui-elements.md",
145
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-ui-elements",
146
- "compatible" : ["theme", "plugin"],
147
- "wordpress_org" : true,
148
- "required" : false,
149
- "dependencies" : [ "cherry-js-core" ]
150
- },
151
- "cherry-utility" : {
152
- "name" : "Utility",
153
- "description" : "Multiple utility functions.",
154
- "version" : "1.1.7",
155
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/08.%20cherry-utility.md",
156
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-utility",
157
- "compatible" : ["theme", "plugin"],
158
- "wordpress_org" : true,
159
- "required" : false,
160
- "dependencies" : []
161
- },
162
- "cherry-widget-factory" : {
163
- "name" : "Widget Factory",
164
- "description" : "Base widget class that simplifies creating of your own widgets.",
165
- "version" : "1.2.1",
166
- "doc_link" : "https://github.com/CherryFramework/cherry-framework-docs/blob/master/06.%20cherry-widget-factory.md",
167
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry-widget-factory",
168
- "compatible" : ["theme", "plugin"],
169
- "wordpress_org" : true,
170
- "required" : false,
171
- "dependencies" : [ "cherry-ui-elements" ]
172
- },
173
- "cherry5-assets-loader" : {
174
- "name" : "Assets Loader",
175
- "description" : "The module allows you deferred loading scripts and styles.",
176
- "version" : "1.0.0",
177
- "doc_link" : "",
178
- "git_link" : "https://github.com/CherryFramework/cherry-framework/tree/master/modules/cherry5-assets-loader",
179
- "compatible" : [ "theme", "plugin" ],
180
- "wordpress_org" : true,
181
- "required" : false,
182
- "dependencies" : [ "cherry-js-core" ]
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.2",
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
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cherry-team-members.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Team Members
4
  * Plugin URI:
5
  * Description: Cherry Team Members plugin allows you to showcase your team and personnel.
6
- * Version: 1.4.4.1
7
  * Author: Zemez
8
  * Author URI: https://zemez.io/wordpress/
9
  * Text Domain: cherry-team
@@ -45,7 +45,7 @@ if ( ! class_exists( 'Cherry_Team_Members' ) ) {
45
  *
46
  * @var string
47
  */
48
- private $version = '1.4.4.1';
49
 
50
  /**
51
  * Plugin dir URL
3
  * Plugin Name: Cherry Team Members
4
  * Plugin URI:
5
  * Description: Cherry Team Members plugin allows you to showcase your team and personnel.
6
+ * Version: 1.4.4.2
7
  * Author: Zemez
8
  * Author URI: https://zemez.io/wordpress/
9
  * Text Domain: cherry-team
45
  *
46
  * @var string
47
  */
48
+ private $version = '1.4.4.2';
49
 
50
  /**
51
  * Plugin dir URL
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, team, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.7
6
- Tested up to: 4.8.3
7
- Stable tag: 1.4.4.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, team, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.7
6
+ Tested up to: 4.9
7
+ Stable tag: 1.4.4.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10