Team Members - Version 4.1.0

Version Description

  • Fixes upload media issues with Link URL.
  • Fixes plugin conflict with ACF.
Download this release

Release Info

Developer spwebguy
Plugin Icon 128x128 Team Members
Version 4.1.0
Comparing to
See all releases

Code changes from version 4.0.0 to 4.1.0

inc/dmb/dmb.css CHANGED
@@ -8,6 +8,14 @@
8
  .dmb_clearfix{
9
  clear:both;}
10
 
 
 
 
 
 
 
 
 
11
 
12
  /* Fields. */
13
  .dmb_feature_dump{
8
  .dmb_clearfix{
9
  clear:both;}
10
 
11
+ /* ACF Fix. */
12
+ #acf-fallback-bio{
13
+ width:100%;
14
+ clear:both;
15
+ height:100px;
16
+ border-radius:4px;
17
+ margin-top:2px;
18
+ }
19
 
20
  /* Fields. */
21
  .dmb_feature_dump{
inc/dmb/dmb.js CHANGED
@@ -51,10 +51,15 @@ $(document).ready(function (){
51
 
52
  firstname = member.find('.dmb_firstname_of_member').val() || '',
53
  lastname = member.find('.dmb_lastname_of_member').val() || '',
54
- job = member.find('.dmb_job_of_member').val() || '',
55
- description = $.trim(member.find('.dmb_description_of_member').html()) || '',
56
 
57
- sclType1 = member.find('.dmb_scl_type1_of_member').val() || '',
 
 
 
 
 
 
58
  sclTitle1 = member.find('.dmb_scl_title1_of_member').val() || '',
59
  sclUrl1 = member.find('.dmb_scl_url1_of_member').val() || '',
60
 
@@ -149,9 +154,13 @@ $(document).ready(function (){
149
 
150
  $(this).parent().find('.dmb_img').remove();
151
 
152
- /* Empties img URL. */
153
- $(this).parent().find('.dmb_img_data_url').attr('data-img', '').trigger('change');
154
-
 
 
 
 
155
  $(this).remove();
156
 
157
  return false;
@@ -160,32 +169,28 @@ $(document).ready(function (){
160
 
161
 
162
  /* Uploads members's img. */
163
- $('.dmb_upload_img_btn').click(function() {
164
-
165
- upload_button = $(this);
166
- isAlreadyImg = $(this).siblings('.dmb_img_data_url').attr("data-img");
167
-
168
- window.send_to_editor = function(html) {
169
-
170
- imgUrl = $(html).attr('src');
171
-
172
- if(isAlreadyImg){
173
- upload_button.parent().find('.dmb_img').remove();
174
- upload_button.parent().find('.dmb_remove_img_btn').remove();
175
- }
176
-
177
- /* Adds img image/remove button. */
178
- $("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter(upload_button);
179
-
180
- /* Assigns img URL. */
181
- upload_button.siblings('.dmb_img_data_url').attr('data-img', imgUrl).trigger('change');
182
-
183
- tb_remove();
184
-
185
- }
186
-
187
- tb_show( '', 'media-upload.php?type=image&amp;TB_iframe=true' );
188
- return false;
189
 
190
  });
191
 
@@ -399,7 +404,13 @@ $(document).ready(function (){
399
  fields.firstname = $(this).find(".dmb_firstname_of_member").val();
400
  fields.lastname = $(this).find(".dmb_lastname_of_member").val();
401
  fields.job = $(this).find(".dmb_job_of_member").val();
402
- fields.bio = $.trim($(this).find(".dmb_description_of_member").html());
 
 
 
 
 
 
403
  fields.scl_type1 = $(this).find(".dmb_scl_type1_of_member").find(":selected").val();
404
  fields.scl_title1 = $(this).find(".dmb_scl_title1_of_member").val();
405
  fields.scl_url1 = $(this).find(".dmb_scl_url1_of_member").val();
@@ -515,50 +526,85 @@ $(document).ready(function (){
515
 
516
 
517
  /* Unique editor. */
518
- var lastEditedBio = '';
519
- /* Opens the UE to edit bios. */
520
- $('.dmb_edit_description_of_member').click(function(){
521
- lastEditedBio = $(this).parent().find('.dmb_description_of_member');
522
- var currentContent = lastEditedBio.html();
523
- if ($("#wp-dmb_editor-wrap").hasClass("tmce-active")){
524
- tinymce.activeEditor.setContent(currentContent);
525
- } else {
526
- $('#dmb_editor').val($.trim(currentContent));
527
- }
528
- $('#dmb_unique_editor').fadeIn(100);
529
- tinyMCE.activeEditor.focus();
530
- });
 
 
 
 
531
 
532
 
533
  /* Saves the UE data. */
534
- $('.dmb_ue_update').click(function(){
535
-
536
- if ($("#wp-dmb_editor-wrap").hasClass("tmce-active")){
537
- var dmb_ue_content = tinyMCE.activeEditor.getContent();
538
- } else {
539
- var dmb_ue_content = $('#dmb_editor').val();
540
- }
541
 
542
- /* Hides bio block if empty. */
543
- (!dmb_ue_content) ? lastEditedBio.hide() : lastEditedBio.show();
 
 
 
 
 
 
544
 
545
- /* Adds bio content if there is. */
546
- lastEditedBio.html($.parseHTML(dmb_ue_content));
547
 
548
- /* Closes and empties UE. */
549
- $('#dmb_unique_editor').fadeOut(100);
550
- tinymce.activeEditor.setContent('');
551
 
552
- dmbGatherData(lastEditedBio);
553
- return false;
554
 
555
- });
 
556
 
557
 
558
  /* Cancels the UE updates. */
559
- $('.dmb_ue_cancel').click(function(){
560
- $('#dmb_unique_editor').fadeOut(100);
561
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
562
 
563
  });
564
  })(jQuery);
51
 
52
  firstname = member.find('.dmb_firstname_of_member').val() || '',
53
  lastname = member.find('.dmb_lastname_of_member').val() || '',
54
+ job = member.find('.dmb_job_of_member').val() || '';
 
55
 
56
+ if ($('#acf-fallback-bio').length ) {
57
+ description = $.trim(member.find('.dmb_description_of_member_fb').text()) || '';
58
+ } else {
59
+ description = $.trim(member.find('.dmb_description_of_member').html()) || '';
60
+ }
61
+
62
+ var sclType1 = member.find('.dmb_scl_type1_of_member').val() || '',
63
  sclTitle1 = member.find('.dmb_scl_title1_of_member').val() || '',
64
  sclUrl1 = member.find('.dmb_scl_url1_of_member').val() || '',
65
 
154
 
155
  $(this).parent().find('.dmb_img').remove();
156
 
157
+ /* Empties img URL (primary or hover). */
158
+ $(this)
159
+ .parent()
160
+ .find('.dmb_img_data_url')
161
+ .attr('data-img', '')
162
+ .trigger('change');
163
+
164
  $(this).remove();
165
 
166
  return false;
169
 
170
 
171
  /* Uploads members's img. */
172
+ $('.dmb_upload_img_btn').click(function(e) {
173
+
174
+ e.preventDefault();
175
+
176
+ var button = $(this),
177
+ custom_uploader = wp.media({
178
+ title: 'Insert image',
179
+ library : {
180
+ // uncomment the next line if you want to attach image to the current post
181
+ // uploadedTo : wp.media.view.settings.post.id,
182
+ type : 'image'
183
+ },
184
+ button: {
185
+ text: 'Use this image' // button label text
186
+ },
187
+ multiple: false // for multiple image selection set to true
188
+ }).on('select', function() { // it also has "open" and "close" events
189
+ var attachment = custom_uploader.state().get('selection').first().toJSON();
190
+ $("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+attachment.url+"' class='dmb_img'/>").insertAfter(button);
191
+ button.siblings('.dmb_img_data_url').attr('data-img', attachment.url).trigger('change');
192
+ })
193
+ .open();
 
 
 
 
194
 
195
  });
196
 
404
  fields.firstname = $(this).find(".dmb_firstname_of_member").val();
405
  fields.lastname = $(this).find(".dmb_lastname_of_member").val();
406
  fields.job = $(this).find(".dmb_job_of_member").val();
407
+
408
+ if ($('#acf-fallback-bio').length ) {
409
+ fields.bio = $.trim($(this).find('.dmb_description_of_member_fb').text()) || '';
410
+ } else {
411
+ fields.bio = $.trim($(this).find('.dmb_description_of_member').html()) || '';
412
+ }
413
+
414
  fields.scl_type1 = $(this).find(".dmb_scl_type1_of_member").find(":selected").val();
415
  fields.scl_title1 = $(this).find(".dmb_scl_title1_of_member").val();
416
  fields.scl_url1 = $(this).find(".dmb_scl_url1_of_member").val();
526
 
527
 
528
  /* Unique editor. */
529
+ if (!$('#acf-fallback-bio').length) {
530
+ var lastEditedBio = '';
531
+ /* Opens the UE to edit bios. */
532
+ $('.dmb_edit_description_of_member').click(function(){
533
+
534
+ lastEditedBio = $(this).parent().find('.dmb_description_of_member');
535
+ var currentContent = lastEditedBio.html();
536
+ if ($("#wp-dmb_editor-wrap").hasClass("tmce-active")){
537
+ tinymce.activeEditor.setContent(currentContent);
538
+ } else {
539
+ $('#dmb_editor').val($.trim(currentContent));
540
+ }
541
+ $('#dmb_unique_editor').fadeIn(100);
542
+ if (tinyMCE.activeEditor !== null) { tinyMCE.activeEditor.focus(); }
543
+
544
+ });
545
+ }
546
 
547
 
548
  /* Saves the UE data. */
549
+ if (!$('#acf-fallback-bio').length ) {
550
+ $('.dmb_ue_update').click(function(){
 
 
 
 
 
551
 
552
+ if ($("#wp-dmb_editor-wrap").hasClass("tmce-active")){
553
+ var dmb_ue_content = tinyMCE.activeEditor.getContent();
554
+ } else {
555
+ var dmb_ue_content = $('#dmb_editor').val();
556
+ }
557
+
558
+ /* Hides bio block if empty. */
559
+ (!dmb_ue_content) ? lastEditedBio.hide() : lastEditedBio.show();
560
 
561
+ /* Adds bio content if there is. */
562
+ lastEditedBio.html($.parseHTML(dmb_ue_content));
563
 
564
+ /* Closes and empties UE. */
565
+ $('#dmb_unique_editor').fadeOut(100);
566
+ if (tinymce.activeEditor !== null) { tinymce.activeEditor.setContent(''); }
567
 
568
+ dmbGatherData(lastEditedBio);
569
+ return false;
570
 
571
+ });
572
+ }
573
 
574
 
575
  /* Cancels the UE updates. */
576
+ if (!$('#acf-fallback-bio').length ) {
577
+ $('.dmb_ue_cancel').click(function(){
578
+ $('#dmb_unique_editor').fadeOut(100);
579
+ });
580
+ }
581
+
582
+
583
+ /* Debounce function for fallback keyup. */
584
+ //http://davidwalsh.name/javascript-debounce-function
585
+ function debounce(func, wait, immediate) {
586
+ var timeout;
587
+ return function() {
588
+ var context = this, args = arguments;
589
+ var later = function() {
590
+ timeout = null;
591
+ if (!immediate) func.apply(context, args);
592
+ };
593
+ var callNow = immediate && !timeout;
594
+ clearTimeout(timeout);
595
+ timeout = setTimeout(later, wait);
596
+ if (callNow) func.apply(context, args);
597
+ };
598
+ };
599
+
600
+
601
+ /* Fallback editor (keyup) */
602
+ $('#acf-fallback-bio').live('paste keyup', debounce(function(){
603
+
604
+ $(this).siblings('.dmb_description_of_member_fb').text($(this).val());
605
+ dmbGatherData($(this));
606
+
607
+ }, 600));
608
 
609
  });
610
  })(jQuery);
inc/dmb/dmb.min.css CHANGED
@@ -4,4 +4,4 @@
4
  * Team Members Admin CSS (minified)
5
  */
6
 
7
- @charset "UTF-8";.dmb_clearfix{clear:both}.dmb_feature_dump{display:none}.dmb_field,.dmb_main select,.dmb_side_select{font-size:12px;width:100%;border-radius:4px;margin-bottom:5px}.dmb_field{width:100%;padding:4px 8px;font-size:13px}.dmb_data_dump{display:none}.dmb_img_field{display:none}.dmb_img_data_url{display:none!important}.dmb_img{max-width:100%;margin-top:8px;display:block}.dmb_section_title{font-size:15px;color:#497bad;padding-bottom:4px;margin:15px 2px 2px;border-bottom:3px dashed #ddd;text-align:left}.dmb_field_title{margin-top:10px;margin-bottom:3px;color:#555;font-size:12px;padding-left:2px;display:inline-block;font-weight:400;line-height:15px}::-webkit-input-placeholder{color:#bbb}::-moz-placeholder{color:#bbb}:-ms-input-placeholder{color:#bbb}:-moz-placeholder{color:#bbb}.dmb_main{border-radius:4px;margin-top:10px}.dmb_main .dmb_inner{background:whitesmoke;padding:4px 10px 8px;border:1px solid #ddd;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.dmb_main .dmb_handle{padding:7px 7px 7px 10px;background:#aea8a0;border:1px solid #96938e!important;display:block;border-top-right-radius:3px;border-top-left-radius:3px}.dmb_main .dmb_handle .dmb_big_button_secondary{float:right;margin-left:8px;font-size:12px;line-height:20px;border-bottom:2px solid #ccc;border-right:1px solid #ccc}.dmb_main .dmb_handle .dmb_move_row_up,.dmb_main .dmb_handle .dmb_move_row_down{padding:3px;float:left;margin-left:0;margin-right:8px}.dmb_main .dmb_handle .dmb_move_row_up{margin-right:0;border-bottom-right-radius:0;border-top-right-radius:0}.dmb_main .dmb_handle .dmb_move_row_down{border-bottom-left-radius:0;border-top-left-radius:0}.dmb_main .dmb_handle.closed{border-radius:3px;border-bottom:none}.dmb_main .dmb_handle.closed{border-radius:3px;border-bottom:none}.dmb_main .dmb_handle .dmb_handle_title{margin-top:4px;float:left;color:white;text-shadow:0 -1px 1px #8b847d,1px 0 1px #8b847d,0 1px 1px #8b847d,-1px 0 1px #8b847d;font-weight:300;font-size:18px;box-sizing:border-box}#dmb_preview_team{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;background:#ddd;z-index:100000;padding:0 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}.dmb_accuracy_preview_notice{text-align:center;line-height:25px;background:white;border-radius:4px;padding:14px 30px;max-width:500px;margin:0 auto;font-size:15px;margin-top:60px;margin-bottom:80px}.dmb_no_row_preview_notice{background:white;border-radius:4px;padding:20px 40px;max-width:500px;margin:0 auto;font-size:20px;margin-top:120px}.dmb_tip{padding-left:2px;font-size:12px;color:#999;line-height:15px;margin-top:8px}.dmb_tip .dashicons{font-size:17px;height:17px}.dmb_tip a,.dmb_inline_tip{color:#0073AA;cursor:pointer}.dmb_big_button_primary{text-shadow:0 -1px 1px #849d3a,1px 0 1px #849d3a,0 1px 1px #849d3a,-1px 0 1px #849d3a;padding:8px 6px 5px 10px;font-size:14px;background:#ACCE45;color:white;text-decoration:none;border-radius:3px;border:1px solid #8ea93d;border-bottom:2px solid #8ea93d;border-right:1px solid #8ea93d;line-height:15px}.dmb_big_button_primary:hover,.dmb_big_button_primary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#b1d34a;color:white}.dmb_big_button_secondary{padding:3px 10px;font-size:13px;background:#fff;font-weight:500;color:#333;text-decoration:none;border-radius:3px;border-bottom:2px solid #ddd;border-right:1px solid #ddd}.dmb_big_button_secondary:hover,.dmb_big_button_secondary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;color:#555}.dmb_big_button_secondary.dmb_remove_row_btn{padding:3px 3px 3px 4px}.dmb_small_button_primary{margin:5px 1px;text-shadow:0 -1px 1px #497bad,1px 0 1px #497bad,0 1px 1px #497bad,-1px 0 1px #497bad;padding:4px 4px 1px;line-height:17px;font-size:12px;background:#5690CA;color:white;text-decoration:none;border-radius:3px;border:1px solid #497bad;border-bottom:2px solid #497bad;border-right:1px solid #497bad}.dmb_small_button_primary:hover,.dmb_small_button_primary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#5a97d4;color:white}.dmb_preview_button{text-shadow:0 0 0 #a18023,1px 0 0 #a18023,0 1px 1px #a18023,0 0 1px #a18023;padding:3px 10px;font-size:13px;background:#f5c542;font-weight:400;cursor:pointer;color:white;text-decoration:none;border-radius:3px;border:1px solid #c39d2c;border-bottom:2px solid #c39d2c;border-right:1px solid #c39d2c}.dmb_preview_button:hover,.dmb_preview_button:focus{background-image:none;background:#ffcd43;outline:0;-webkit-box-shadow:none;box-shadow:none;color:white}.dmb_preview_button.dmb_preview_team_close{position:fixed;top:20px;right:40px;z-index:1;padding: 10px 20px 13px;font-size:20px}.dmb_preview_button.dmb_preview_team_close .dashicons{font-size:20px}.dmb_small_button_secondary{padding:2px;margin-top:1px;line-height:18px;font-size:12px;background:#fff;font-weight:500;color:#333;text-decoration:none;border-radius:3px;border-bottom:2px solid #ddd;border-right:1px solid #ddd}.dmb_small_button_secondary:hover,.dmb_small_button_secondary:focus{background-image:none;outline:0;opacity:1;-webkit-box-shadow:none;box-shadow:none;color:#555}.dmb_small_button_secondary.dmb_remove_feature_btn{position:relative;top:4px;padding:11px 2px 0 3px}.dmb_upload_img_btn{display:inline-block;cursor:pointer;margin-bottom:0}.dmb_upload_img_btn .dashicons{position:relative;top:-2px}.dmb_remove_img_btn{display:inline-block;position:relative;top:-2px;margin-left:3px}.dmb_add_row{margin:0 auto;margin-top:10px;display:inline-block}.dmb_no_row_notice{background:whitesmoke;border-radius:4px;padding:30px 10px;margin-top:10px;text-align:center;font-size:14px;line-height:25px;border:1px solid #ddd}.dmb_add_feature{margin-top:5px;margin-bottom:5px;display:inline-block}.dmb_grid{float:left;padding-left:6px;box-sizing:border-box;padding-right:6px}.dmb_grid_20{width:20%}.dmb_grid_25{width:25%}.dmb_grid_33{width:33%}.dmb_grid_35{width:35%}.dmb_grid_40{width:40%}.dmb_grid_50{width:50%}.dmb_grid_60{width:60%}.dmb_grid_100{width:99%}.dmb_description_of_member{width:100%!important}.dmb_grid_first{padding-left:0}.dmb_grid_last{padding-right:0}.dmb_color_picker{padding:3px!important}.wp-picker-container{position:relative}.wp-picker-clear{display:none!important}.wp-picker-container,.wp-picker-container:active{display:block;z-index:9999}.iris-picker{position:absolute!important;bottom:33px!important;left:80!important;background:white!important}.dmb_toolbar{display:block;text-align:left;background:whitesmoke;margin-top:10px;border-radius:4px;border:1px solid #ddd}.dmb_toolbar .dmb_toolbar_inner{display:block;padding:7px 7px 6px}.dmb_toolbar .dmb_toolbar_inner .dmb_collapse_rows,.dmb_toolbar .dmb_toolbar_inner .dmb_expand_rows{float:left;margin-right:7px}.dmb_toolbar .dmb_toolbar_inner .dmb_preview_button{float:right;margin-left:7px}.dmb_toolbar .dashicons{line-height:20px!important}.dmb_side_block_title,.dmb_help_title{font-size:14px;margin-top:4px;margin-bottom:2px;font-weight:500;color:#222}.dmb_help_title{margin-bottom:10px}.dmb_side_block{margin-top:10px}.dmb_side_block a{text-decoration:none}.dmb_see_pro{display:inline-block;margin-top:10px;padding-bottom:8px}[data-tooltip]{position:relative;z-index:2;cursor:pointer}[data-tooltip]:before,[data-tooltip]:after{visibility:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;pointer-events:none}[data-tooltip]:before{position:absolute;bottom:150%;left:50%;margin-bottom:5px;margin-left:-80px;padding:7px;padding-left:14px;width:160px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;background-color:hsla(0,0%,20%,.9);color:#fff;content:attr(data-tooltip);text-align:left;font-size:12px;line-height:16px}.dmb_tooltip_large[data-tooltip]:before{width:320px}.dmb_tooltip_medium[data-tooltip]:before{width:220px}.dmb_tooltip_small[data-tooltip]:before{width:180px}[data-tooltip]:after{position:absolute;bottom:150%;left:50%;margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid hsla(0,0%,20%,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-tooltip]:hover:before,[data-tooltip]:hover:after{visibility:visible;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}@media only screen and (max-width :850px){.dmb_grid_20,.dmb_grid_25,.dmb_grid_33,.dmb_grid_35,.dmb_grid_40,.dmb_grid_50,.dmb_grid_60,.dmb_grid_100{padding-right:0;padding-left:0;width:100%}}#tmm_pro h2.hndle{background:#ACCE45;color:white;font-weight:400;border:1px solid #9ebd43!important;text-shadow:0 0 1px #849d3a,0 0 1px #849d3a,0 1px 1px #849d3a,0 0 1px #849d3a}#tmm_pro h2.hndle .dashicons{color:white!important}#tmm_pro .toggle-indicator{color:white!important}#dmb_unique_editor{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;background:#ddd;z-index:100000;padding:5% 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}#wp-dmb_editor-wrap{padding:20px;background:rgba(255,255,255,.5)}.dmb_ue_update{margin-top:2px;text-shadow:0 0 0 #a18023,1px 0 0 #a18023,0 1px 1px #a18023,0 0 1px #a18023;background:#f5c542;font-weight:400;cursor:pointer;color:white;text-decoration:none;border-radius:3px;border:1px solid #c39d2c;border-bottom:2px solid #c39d2c;border-right:1px solid #c39d2c;padding:10px 20px;display:inline-block;font-size:20px}.dmb_ue_update:hover,.dmb_ue_update:focus{background-image:none;background:#ffcd43;outline:0;-webkit-box-shadow:none;box-shadow:none;color:white}.dmb_ue_cancel{margin-top:2px;margin-left:20px;background:#fff;font-weight:400;cursor:pointer;color:#444;text-decoration:none;border-radius:3px;border:1px solid #ccc;border-bottom:2px solid #bbb;border-right:1px solid #ccc;padding:10px 20px;display:inline-block;font-size:20px}.dmb_ue_cancel:hover,.dmb_ue_cancel:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none}.dmb_edit_description_of_member{display:inline-block;cursor:pointer}.dmb_description_of_member{border:1px solid #e2e2e2;margin:5px 0;margin-left:1px;margin-right:5px;box-sizing:border-box;padding:10px 20px;min-height:30px;background:white;border-radius:0;max-height:240px;width:99%;overflow-y:scroll;border-radius:3px}.dmb_edit_description_of_member .dashicons{position:relative;top:-2px}
4
  * Team Members Admin CSS (minified)
5
  */
6
 
7
+ .dmb_clearfix{clear:both}#acf-fallback-bio{width:100%;clear:both;height:100px;border-radius:4px;margin-top:2px}.dmb_feature_dump{display:none}.dmb_field,.dmb_main select,.dmb_side_select{font-size:12px;width:100%;border-radius:4px;margin-bottom:5px}.dmb_field{width:100%;padding:4px 8px;font-size:13px}.dmb_data_dump{display:none}.dmb_img_field{display:none}.dmb_img_data_url{display:none!important}.dmb_img{max-width:100%;margin-top:8px;display:block}.dmb_section_title{font-size:15px;color:#497bad;padding-bottom:4px;margin:15px 2px 2px;border-bottom:3px dashed #ddd;text-align:left}.dmb_field_title{margin-top:10px;margin-bottom:3px;color:#555;font-size:12px;padding-left:2px;display:inline-block;font-weight:400;line-height:15px}::-webkit-input-placeholder{color:#bbb}::-moz-placeholder{color:#bbb}:-ms-input-placeholder{color:#bbb}:-moz-placeholder{color:#bbb}.dmb_main{border-radius:4px;margin-top:10px}.dmb_main .dmb_inner{background:whitesmoke;padding:4px 10px 8px;border:1px solid #ddd;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.dmb_main .dmb_handle{padding:7px 7px 7px 10px;background:#aea8a0;border:1px solid #96938e!important;display:block;border-top-right-radius:3px;border-top-left-radius:3px}.dmb_main .dmb_handle .dmb_big_button_secondary{float:right;margin-left:8px;font-size:12px;line-height:20px;border-bottom:2px solid #ccc;border-right:1px solid #ccc}.dmb_main .dmb_handle .dmb_move_row_up,.dmb_main .dmb_handle .dmb_move_row_down{padding:3px;float:left;margin-left:0;margin-right:8px}.dmb_main .dmb_handle .dmb_move_row_up{margin-right:0;border-bottom-right-radius:0;border-top-right-radius:0}.dmb_main .dmb_handle .dmb_move_row_down{border-bottom-left-radius:0;border-top-left-radius:0}.dmb_main .dmb_handle.closed{border-radius:3px;border-bottom:none}.dmb_main .dmb_handle.closed{border-radius:3px;border-bottom:none}.dmb_main .dmb_handle .dmb_handle_title{margin-top:4px;float:left;color:white;text-shadow:0 -1px 1px #8b847d,1px 0 1px #8b847d,0 1px 1px #8b847d,-1px 0 1px #8b847d;font-weight:300;font-size:18px;box-sizing:border-box}#dmb_preview_team{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;background:#ddd;z-index:100000;padding:0 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}.dmb_accuracy_preview_notice{text-align:center;line-height:25px;background:white;border-radius:4px;padding:14px 30px;max-width:500px;margin:0 auto;font-size:15px;margin-top:60px;margin-bottom:80px}.dmb_no_row_preview_notice{background:white;border-radius:4px;padding:20px 40px;max-width:500px;margin:0 auto;font-size:20px;margin-top:120px}.dmb_tip{padding-left:2px;font-size:12px;color:#999;line-height:15px;margin-top:8px}.dmb_tip .dashicons{font-size:17px;height:17px}.dmb_tip a,.dmb_inline_tip{color:#0073AA;cursor:pointer}.dmb_big_button_primary{text-shadow:0 -1px 1px #849d3a,1px 0 1px #849d3a,0 1px 1px #849d3a,-1px 0 1px #849d3a;padding:8px 6px 5px 10px;font-size:14px;background:#ACCE45;color:white;text-decoration:none;border-radius:3px;border:1px solid #8ea93d;border-bottom:2px solid #8ea93d;border-right:1px solid #8ea93d;line-height:15px}.dmb_big_button_primary:hover,.dmb_big_button_primary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#b1d34a;color:white}.dmb_big_button_secondary{padding:3px 10px;font-size:13px;background:#fff;font-weight:500;color:#333;text-decoration:none;border-radius:3px;border-bottom:2px solid #ddd;border-right:1px solid #ddd}.dmb_big_button_secondary:hover,.dmb_big_button_secondary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;color:#555}.dmb_big_button_secondary.dmb_remove_row_btn{padding:3px 3px 3px 4px}.dmb_small_button_primary{margin:5px 1px;text-shadow:0 -1px 1px #497bad,1px 0 1px #497bad,0 1px 1px #497bad,-1px 0 1px #497bad;padding:4px 4px 1px;line-height:17px;font-size:12px;background:#5690CA;color:white;text-decoration:none;border-radius:3px;border:1px solid #497bad;border-bottom:2px solid #497bad;border-right:1px solid #497bad}.dmb_small_button_primary:hover,.dmb_small_button_primary:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#5a97d4;color:white}.dmb_preview_button{text-shadow:0 0 0 #a18023,1px 0 0 #a18023,0 1px 1px #a18023,0 0 1px #a18023;padding:3px 10px;font-size:13px;background:#f5c542;font-weight:400;cursor:pointer;color:white;text-decoration:none;border-radius:3px;border:1px solid #c39d2c;border-bottom:2px solid #c39d2c;border-right:1px solid #c39d2c}.dmb_preview_button:hover,.dmb_preview_button:focus{background-image:none;background:#ffcd43;outline:0;-webkit-box-shadow:none;box-shadow:none;color:white}.dmb_preview_button.dmb_preview_team_close{position:fixed;top:20px;right:40px;z-index:1;padding:10px 20px 13px;font-size:20px}.dmb_preview_button.dmb_preview_team_close .dashicons{font-size:20px}.dmb_small_button_secondary{padding:2px;margin-top:1px;line-height:18px;font-size:12px;background:#fff;font-weight:500;color:#333;text-decoration:none;border-radius:3px;border-bottom:2px solid #ddd;border-right:1px solid #ddd}.dmb_small_button_secondary:hover,.dmb_small_button_secondary:focus{background-image:none;outline:0;opacity:1;-webkit-box-shadow:none;box-shadow:none;color:#555}.dmb_small_button_secondary.dmb_remove_feature_btn{position:relative;top:4px;padding:11px 2px 0 3px}.dmb_upload_img_btn{display:inline-block;cursor:pointer;margin-bottom:0}.dmb_upload_img_btn .dashicons{position:relative;top:-2px}.dmb_remove_img_btn{display:inline-block;position:relative;top:-2px;margin-left:3px}.dmb_add_row{margin:0 auto;margin-top:10px;display:inline-block}.dmb_no_row_notice{background:whitesmoke;border-radius:4px;padding:30px 10px;margin-top:10px;text-align:center;font-size:14px;line-height:25px;border:1px solid #ddd}.dmb_add_feature{margin-top:5px;margin-bottom:5px;display:inline-block}.dmb_grid{float:left;padding-left:6px;box-sizing:border-box;padding-right:6px}.dmb_grid_20{width:20%}.dmb_grid_25{width:25%}.dmb_grid_33{width:33%}.dmb_grid_35{width:35%}.dmb_grid_40{width:40%}.dmb_grid_50{width:50%}.dmb_grid_60{width:60%}.dmb_grid_100{width:99%}.dmb_description_of_member{width:100%!important}.dmb_grid_first{padding-left:0}.dmb_grid_last{padding-right:0}.dmb_color_picker{padding:3px!important}.wp-picker-container{position:relative}.wp-picker-clear{display:none!important}.wp-picker-container,.wp-picker-container:active{display:block;z-index:9999}.iris-picker{position:absolute!important;bottom:33px!important;left:80!important;background:white!important}.dmb_toolbar{display:block;text-align:left;background:whitesmoke;margin-top:10px;border-radius:4px;border:1px solid #ddd}.dmb_toolbar .dmb_toolbar_inner{display:block;padding:7px 7px 6px}.dmb_toolbar .dmb_toolbar_inner .dmb_collapse_rows,.dmb_toolbar .dmb_toolbar_inner .dmb_expand_rows{float:left;margin-right:7px}.dmb_toolbar .dmb_toolbar_inner .dmb_preview_button{float:right;margin-left:7px}.dmb_toolbar .dashicons{line-height:20px!important}.dmb_side_block_title,.dmb_help_title{font-size:14px;margin-top:4px;margin-bottom:2px;font-weight:500;color:#222}.dmb_help_title{margin-bottom:10px}.dmb_side_block{margin-top:10px}.dmb_side_block a{text-decoration:none}.dmb_see_pro{display:inline-block;margin-top:10px;padding-bottom:8px}[data-tooltip]{position:relative;z-index:2;cursor:pointer}[data-tooltip]:before,[data-tooltip]:after{visibility:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0;pointer-events:none}[data-tooltip]:before{position:absolute;bottom:150%;left:50%;margin-bottom:5px;margin-left:-80px;padding:7px;padding-left:14px;width:160px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;background-color:hsla(0,0%,20%,.9);color:#fff;content:attr(data-tooltip);text-align:left;font-size:12px;line-height:16px}.dmb_tooltip_large[data-tooltip]:before{width:320px}.dmb_tooltip_medium[data-tooltip]:before{width:220px}.dmb_tooltip_small[data-tooltip]:before{width:180px}[data-tooltip]:after{position:absolute;bottom:150%;left:50%;margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid hsla(0,0%,20%,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-tooltip]:hover:before,[data-tooltip]:hover:after{visibility:visible;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}@media only screen and (max-width :850px){.dmb_grid_20,.dmb_grid_25,.dmb_grid_33,.dmb_grid_35,.dmb_grid_40,.dmb_grid_50,.dmb_grid_60,.dmb_grid_100{padding-right:0;padding-left:0;width:100%}}#tmm_pro h2.hndle{background:#ACCE45;color:white;font-weight:400;border:1px solid #9ebd43!important;text-shadow:0 0 1px #849d3a,0 0 1px #849d3a,0 1px 1px #849d3a,0 0 1px #849d3a}#tmm_pro h2.hndle .dashicons{color:white!important}#tmm_pro .toggle-indicator{color:white!important}#dmb_unique_editor{box-sizing:border-box;display:none;position:fixed;overflow-y:scroll;border:1px solid #bbb;top:0%;bottom:0%;left:0%;right:0%;background:#ddd;z-index:100000;padding:5% 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}#wp-dmb_editor-wrap{padding:20px;background:rgba(255,255,255,.5)}.dmb_ue_update{margin-top:2px;text-shadow:0 0 0 #a18023,1px 0 0 #a18023,0 1px 1px #a18023,0 0 1px #a18023;background:#f5c542;font-weight:400;cursor:pointer;color:white;text-decoration:none;border-radius:3px;border:1px solid #c39d2c;border-bottom:2px solid #c39d2c;border-right:1px solid #c39d2c;padding:10px 20px;display:inline-block;font-size:20px}.dmb_ue_update:hover,.dmb_ue_update:focus{background-image:none;background:#ffcd43;outline:0;-webkit-box-shadow:none;box-shadow:none;color:white}.dmb_ue_cancel{margin-top:2px;margin-left:20px;background:#fff;font-weight:400;cursor:pointer;color:#444;text-decoration:none;border-radius:3px;border:1px solid #ccc;border-bottom:2px solid #bbb;border-right:1px solid #ccc;padding:10px 20px;display:inline-block;font-size:20px}.dmb_ue_cancel:hover,.dmb_ue_cancel:focus{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none}.dmb_edit_description_of_member{display:inline-block;cursor:pointer}.dmb_description_of_member{border:1px solid #e2e2e2;margin:5px 0;margin-left:1px;margin-right:5px;box-sizing:border-box;padding:10px 20px;min-height:30px;background:white;border-radius:0;max-height:240px;width:99%;overflow-y:scroll;border-radius:3px}.dmb_edit_description_of_member .dashicons{position:relative;top:-2px}
inc/dmb/dmb.min.js CHANGED
@@ -4,15 +4,15 @@
4
 
5
  ;(function($){$(document).ready(function(){(function(original){jQuery.fn.clone=function(){var result=original.apply(this,arguments),my_textareas=this.find('textarea').add(this.filter('textarea')),result_textareas=result.find('textarea').add(result.filter('textarea')),my_selects=this.find('select').add(this.filter('select')),result_selects=result.find('select').add(result.filter('select'));for(var i=0,l=my_textareas.length;i<l;++i)$(result_textareas[i]).val($(my_textareas[i]).val());for(var i=0,l=my_selects.length;i<l;++i)result_selects[i].selectedIndex=my_selects[i].selectedIndex;return result}})(jQuery.fn.clone);var pluginFolderSlug='team-members';var hexDigits=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");function dmb_rgb2hex(rgb){if(rgb){rgb=rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return"#"+dmb_hex(rgb[1])+dmb_hex(rgb[2])+dmb_hex(rgb[3])}else{return}}
6
  function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
7
- $('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function dmbGatherData(keyUpParam){var member=keyUpParam.closest('.dmb_main'),firstname=member.find('.dmb_firstname_of_member').val()||'',lastname=member.find('.dmb_lastname_of_member').val()||'',job=member.find('.dmb_job_of_member').val()||'',description=$.trim(member.find('.dmb_description_of_member').html())||'',sclType1=member.find('.dmb_scl_type1_of_member').val()||'',sclTitle1=member.find('.dmb_scl_title1_of_member').val()||'',sclUrl1=member.find('.dmb_scl_url1_of_member').val()||'',sclType2=member.find('.dmb_scl_type2_of_member').val()||'',sclTitle2=member.find('.dmb_scl_title2_of_member').val()||'',sclUrl2=member.find('.dmb_scl_url2_of_member').val()||'',sclType3=member.find('.dmb_scl_type3_of_member').val()||'',sclTitle3=member.find('.dmb_scl_title3_of_member').val()||'',sclUrl3=member.find('.dmb_scl_url3_of_member').val()||'',memberPhoto=member.find('.dmb_img_data_url').attr('data-img')||'',memberPhotoUrl=member.find('.dmb_photo_url_of_member').val()||'',dataDump=member.find('.dmb_data_dump');dataDump.val(firstname+']--['+lastname+']--['+job+']--['+description+']--['+sclType1+']--['+sclTitle1+']--['+sclUrl1+']--['+sclType2+']--['+sclTitle2+']--['+sclUrl2+']--['+sclType3+']--['+sclTitle3+']--['+sclUrl3+']--['+memberPhoto+']--['+memberPhotoUrl)}
 
8
  $('.dmb_field').live("keyup",function(e){dmbGatherData($(this))});$('.dmb_scl_type_select').live("change",function(e){dmbGatherData($(this))});$('.dmb_img_data_url').live("change",function(e){dmbGatherData($(this))});$('.dmb_img_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-img");if(imgUrl!=''){$("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter($(this).parent().find('.dmb_upload_img_btn'))}});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){$(this).find('.dmb_description_of_member').each(function(i,obj){if($.trim($(this).text())==''){$(this).hide()}else{$(this).show()}
9
  $(this).html($.parseHTML($(this).text()))});dmbGatherData($(this).find('.dmb_field').first())});function refreshRowCountRelatedUI(){if($('.dmb_main').not('.dmb_empty_row').length>0){$('.dmb_no_row_notice').hide()}else{$('.dmb_no_row_notice').show()}}
10
- refreshRowCountRelatedUI();$('.dmb_remove_img_btn').live("click",function(e){$(this).parent().find('.dmb_img').remove();$(this).parent().find('.dmb_img_data_url').attr('data-img','').trigger('change');$(this).remove();return!1});$('.dmb_upload_img_btn').click(function(){upload_button=$(this);isAlreadyImg=$(this).siblings('.dmb_img_data_url').attr("data-img");window.send_to_editor=function(html){imgUrl=$(html).attr('src');if(isAlreadyImg){upload_button.parent().find('.dmb_img').remove();upload_button.parent().find('.dmb_remove_img_btn').remove()}
11
- $("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter(upload_button);upload_button.siblings('.dmb_img_data_url').attr('data-img',imgUrl).trigger('change');tb_remove()}
12
- tb_show('','media-upload.php?type=image&amp;TB_iframe=true');return!1});$('.dmb_add_row').on('click',function(){var row=$('.dmb_empty_row').clone(!0);row.removeClass('dmb_empty_row').addClass('dmb_main').show();row.insertBefore($('.dmb_empty_row'));row.find('.dmb_firstname_of_member').focus();row.find('.dmb_color_picker_ready').removeClass('.dmb_color_picker_ready').addClass('.dmb_color_picker').wpColorPicker().css({'padding':'3px'});row.find('.dmb_handle_title').html(objectL10n.untitled);row.find('.dmb_description_of_member').hide();refreshRowCountRelatedUI();return!1});$('.dmb_remove_row_btn').click(function(e){$(this).closest('.dmb_main').remove();refreshRowCountRelatedUI();return!1});$('.dmb_handle').click(function(e){$(this).siblings('.dmb_inner').slideToggle(50);($(this).hasClass('closed'))?$(this).removeClass('closed'):$(this).addClass('closed');return!1});$('.dmb_collapse_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if(!$(this).closest('.dmb_empty_row').length){if($(this).hasClass('closed')){}else{$(this).siblings('.dmb_inner').slideToggle(50);$(this).addClass('closed')}}});return!1});$('.dmb_expand_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if($(this).hasClass('closed')){$(this).siblings('.dmb_inner').slideToggle(50);$(this).removeClass('closed')}});return!1});$('.dmb_move_row_down').click(function(e){if($(this).closest('.dmb_main').next().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertAfter($(this).closest('.dmb_main').next());$(this).closest('.dmb_main').remove()}
13
  return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertBefore($(this).closest('.dmb_main').prev());$(this).closest('.dmb_main').remove()}
14
  return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_firstname_of_member').val()+' ('+objectL10n.copy+')');clone.find('.dmb_firstname_of_member').focus();updateHandleTitle(clone.find('.dmb_firstname_of_member'),!0);refreshRowCountRelatedUI();return!1});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){if($(this).find('.dmb_firstname_of_member').val()!=''){var handleTitle=$(this).find('.dmb_handle_title'),firstname=$(this).find('.dmb_firstname_of_member').val(),lastname=$(this).find('.dmb_lastname_of_member').val();handleTitle.html(firstname+' '+lastname)}});function updateHandleTitle(firstnameField,wasCloned=!1){var firstnameField=firstnameField,lastname=firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val()||'';handleTitle=firstnameField.closest('.dmb_main').find('.dmb_handle_title');cloneCopyText='';(wasCloned)?cloneCopyText=' copy':cloneCopyText='';(firstnameField.val()!='')?handleTitle.html(firstnameField.val()+' '+lastname+cloneCopyText):handleTitle.html(objectL10n.untitled+cloneCopyText)}
15
- $('.dmb_firstname_of_member').live("keyup",function(e){updateHandleTitle($(this))});$('.dmb_lastname_of_member').live("keyup",function(e){firstnameField=$(this).closest('.dmb_main').find('.dmb_firstname_of_member');updateHandleTitle(firstnameField)});$('.dmb_show_preview_team').click(function(){var settings={};var team={};var preview_html='';settings.columns=$("select[name='team_columns'] option:selected").val();settings.bio_alignment=$("select[name='team_bio_align'] option:selected").val();settings.piclink_beh=$("select[name='team_piclink_beh'] option:selected").val();settings.piclink_beh=='new'?team.plb='target="_blank"':team.plb='';settings.color=dmb_rgb2hex($('.dmb_color_of_team').find(".wp-color-result").css('backgroundColor'))||'#8dba09';team.memberCount=$('.dmb_main').not('.dmb_empty_row').size();preview_html+='<div class="tmm" style="margin-top: 100px;">';preview_html+='<div class="tmm_'+settings.columns+'_columns tmm_wrap '+team.ori_f+'">';$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){var fields={};fields.firstname=$(this).find(".dmb_firstname_of_member").val();fields.lastname=$(this).find(".dmb_lastname_of_member").val();fields.job=$(this).find(".dmb_job_of_member").val();fields.bio=$.trim($(this).find(".dmb_description_of_member").html());fields.scl_type1=$(this).find(".dmb_scl_type1_of_member").find(":selected").val();fields.scl_title1=$(this).find(".dmb_scl_title1_of_member").val();fields.scl_url1=$(this).find(".dmb_scl_url1_of_member").val();fields.scl_type2=$(this).find(".dmb_scl_type2_of_member").find(":selected").val();fields.scl_title2=$(this).find(".dmb_scl_title2_of_member").val();fields.scl_url2=$(this).find(".dmb_scl_url2_of_member").val();fields.scl_type3=$(this).find(".dmb_scl_type3_of_member").find(":selected").val();fields.scl_title3=$(this).find(".dmb_scl_title3_of_member").val();fields.scl_url3=$(this).find(".dmb_scl_url3_of_member").val();fields.photoUrl=$(this).find(".dmb_img").attr('src');fields.photoLinkUrl=$(this).find(".dmb_photo_url_of_member").val();if(i%2==0){preview_html+='<span class="tmm_two_containers_tablet"></span>'}
 
16
  if(i%settings.columns==0){if(i>0){preview_html+='</div><span class="tmm_columns_containers_desktop"></span>'}
17
  preview_html+='<div class="tmm_container">'}
18
  preview_html+='<div class="tmm_member" style="border-top:'+settings.color+' solid 5px;">';if(fields.photoLinkUrl)
@@ -24,5 +24,9 @@ preview_html+='</div>';if(fields.job){preview_html+='<div class="tmm_job">'+fiel
24
  if(fields.bio){preview_html+='<div class="tmm_desc" style="text-align:'+settings.bio_alignment+'">'+fields.bio+'</div>'}
25
  preview_html+='<div class="tmm_scblock">';for(var j=1;j<=3;j++){if(fields['scl_type'+j]!='nada'){var currentUrl=(fields['scl_url'+j])?fields['scl_url'+j]:'';var currentTitle=(fields['scl_title'+i])?fields['scl_title'+j]:'';if(fields['scl_type'+j]=='email'){preview_html+='<a class="tmm_sociallink" href="mailto:'+currentUrl+'" title="'+currentTitle+'"><img alt="'+currentTitle+'" src="../wp-content/plugins/'+pluginFolderSlug+'/inc/img/links/'+fields['scl_type'+j]+'.png"/></a>'}else{preview_html+='<a target="_blank" class="tmm_sociallink" href="'+currentUrl+'" title="'+currentTitle+'"><img alt="'+currentTitle+'" src="../wp-content/plugins/'+pluginFolderSlug+'/inc/img/links/'+fields['scl_type'+j]+'.png"/></a>'}}}
26
  preview_html+='</div>';preview_html+='</div>';preview_html+='</div>';if(i==(team.memberCount-1))
27
- preview_html+='<div style="clear:both;"></div>'});preview_html+='</div>';preview_html+='</div>';preview_html+='</div>';preview_html+='<div style="clear:both;"></div>';preview_html+='<div class="dmb_accuracy_preview_notice">'+objectL10n.previewAccuracy+'</div>';(team.memberCount==0)?$('#dmb_preview_team').append('<div class="dmb_no_row_preview_notice">'+objectL10n.noMemberNotice+'</div>'):$('#dmb_preview_team').append(preview_html);$('#dmb_preview_team').fadeIn(100)});$('.dmb_preview_team_close').click(function(){$('#dmb_preview_team .tmm, .dmb_accuracy_preview_notice, .dmb_no_row_preview_notice').remove();$('#dmb_preview_team').fadeOut(100)});var lastEditedBio='';$('.dmb_edit_description_of_member').click(function(){lastEditedBio=$(this).parent().find('.dmb_description_of_member');var currentContent=lastEditedBio.html();if($("#wp-dmb_editor-wrap").hasClass("tmce-active")){tinymce.activeEditor.setContent(currentContent)}else{$('#dmb_editor').val($.trim(currentContent))}
28
- $('#dmb_unique_editor').fadeIn(100);tinyMCE.activeEditor.focus()});$('.dmb_ue_update').click(function(){if($("#wp-dmb_editor-wrap").hasClass("tmce-active")){var dmb_ue_content=tinyMCE.activeEditor.getContent()}else{var dmb_ue_content=$('#dmb_editor').val()}(!dmb_ue_content)?lastEditedBio.hide():lastEditedBio.show();lastEditedBio.html($.parseHTML(dmb_ue_content));$('#dmb_unique_editor').fadeOut(100);tinymce.activeEditor.setContent('');dmbGatherData(lastEditedBio);return!1});$('.dmb_ue_cancel').click(function(){$('#dmb_unique_editor').fadeOut(100)})})})(jQuery);
 
 
 
 
4
 
5
  ;(function($){$(document).ready(function(){(function(original){jQuery.fn.clone=function(){var result=original.apply(this,arguments),my_textareas=this.find('textarea').add(this.filter('textarea')),result_textareas=result.find('textarea').add(result.filter('textarea')),my_selects=this.find('select').add(this.filter('select')),result_selects=result.find('select').add(result.filter('select'));for(var i=0,l=my_textareas.length;i<l;++i)$(result_textareas[i]).val($(my_textareas[i]).val());for(var i=0,l=my_selects.length;i<l;++i)result_selects[i].selectedIndex=my_selects[i].selectedIndex;return result}})(jQuery.fn.clone);var pluginFolderSlug='team-members';var hexDigits=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");function dmb_rgb2hex(rgb){if(rgb){rgb=rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return"#"+dmb_hex(rgb[1])+dmb_hex(rgb[2])+dmb_hex(rgb[3])}else{return}}
6
  function dmb_hex(x){return isNaN(x)?"00":hexDigits[(x-x%16)/16]+hexDigits[x%16]}
7
+ $('.dmb_color_picker').each(function(i,obj){$(this).wpColorPicker()});function dmbGatherData(keyUpParam){var member=keyUpParam.closest('.dmb_main'),firstname=member.find('.dmb_firstname_of_member').val()||'',lastname=member.find('.dmb_lastname_of_member').val()||'',job=member.find('.dmb_job_of_member').val()||'';if($('#acf-fallback-bio').length){description=$.trim(member.find('.dmb_description_of_member_fb').text())||''}else{description=$.trim(member.find('.dmb_description_of_member').html())||''}
8
+ var sclType1=member.find('.dmb_scl_type1_of_member').val()||'',sclTitle1=member.find('.dmb_scl_title1_of_member').val()||'',sclUrl1=member.find('.dmb_scl_url1_of_member').val()||'',sclType2=member.find('.dmb_scl_type2_of_member').val()||'',sclTitle2=member.find('.dmb_scl_title2_of_member').val()||'',sclUrl2=member.find('.dmb_scl_url2_of_member').val()||'',sclType3=member.find('.dmb_scl_type3_of_member').val()||'',sclTitle3=member.find('.dmb_scl_title3_of_member').val()||'',sclUrl3=member.find('.dmb_scl_url3_of_member').val()||'',memberPhoto=member.find('.dmb_img_data_url').attr('data-img')||'',memberPhotoUrl=member.find('.dmb_photo_url_of_member').val()||'',dataDump=member.find('.dmb_data_dump');dataDump.val(firstname+']--['+lastname+']--['+job+']--['+description+']--['+sclType1+']--['+sclTitle1+']--['+sclUrl1+']--['+sclType2+']--['+sclTitle2+']--['+sclUrl2+']--['+sclType3+']--['+sclTitle3+']--['+sclUrl3+']--['+memberPhoto+']--['+memberPhotoUrl)}
9
  $('.dmb_field').live("keyup",function(e){dmbGatherData($(this))});$('.dmb_scl_type_select').live("change",function(e){dmbGatherData($(this))});$('.dmb_img_data_url').live("change",function(e){dmbGatherData($(this))});$('.dmb_img_data_url').each(function(i,obj){var imgUrl=$(this).attr("data-img");if(imgUrl!=''){$("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+imgUrl+"' class='dmb_img'/>").insertAfter($(this).parent().find('.dmb_upload_img_btn'))}});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){$(this).find('.dmb_description_of_member').each(function(i,obj){if($.trim($(this).text())==''){$(this).hide()}else{$(this).show()}
10
  $(this).html($.parseHTML($(this).text()))});dmbGatherData($(this).find('.dmb_field').first())});function refreshRowCountRelatedUI(){if($('.dmb_main').not('.dmb_empty_row').length>0){$('.dmb_no_row_notice').hide()}else{$('.dmb_no_row_notice').show()}}
11
+ refreshRowCountRelatedUI();$('.dmb_remove_img_btn').live("click",function(e){$(this).parent().find('.dmb_img').remove();$(this).parent().find('.dmb_img_data_url').attr('data-img','').trigger('change');$(this).remove();return!1});$('.dmb_upload_img_btn').click(function(e){e.preventDefault();var button=$(this),custom_uploader=wp.media({title:'Insert image',library:{type:'image'},button:{text:'Use this image'},multiple:!1}).on('select',function(){var attachment=custom_uploader.state().get('selection').first().toJSON();$("<a class='dmb_remove_img_btn dmb_small_button_secondary' href='#'><span class='dashicons dashicons-no-alt'></span></a><img src='"+attachment.url+"' class='dmb_img'/>").insertAfter(button);button.siblings('.dmb_img_data_url').attr('data-img',attachment.url).trigger('change')}).open()});$('.dmb_add_row').on('click',function(){var row=$('.dmb_empty_row').clone(!0);row.removeClass('dmb_empty_row').addClass('dmb_main').show();row.insertBefore($('.dmb_empty_row'));row.find('.dmb_firstname_of_member').focus();row.find('.dmb_color_picker_ready').removeClass('.dmb_color_picker_ready').addClass('.dmb_color_picker').wpColorPicker().css({'padding':'3px'});row.find('.dmb_handle_title').html(objectL10n.untitled);row.find('.dmb_description_of_member').hide();refreshRowCountRelatedUI();return!1});$('.dmb_remove_row_btn').click(function(e){$(this).closest('.dmb_main').remove();refreshRowCountRelatedUI();return!1});$('.dmb_handle').click(function(e){$(this).siblings('.dmb_inner').slideToggle(50);($(this).hasClass('closed'))?$(this).removeClass('closed'):$(this).addClass('closed');return!1});$('.dmb_collapse_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if(!$(this).closest('.dmb_empty_row').length){if($(this).hasClass('closed')){}else{$(this).siblings('.dmb_inner').slideToggle(50);$(this).addClass('closed')}}});return!1});$('.dmb_expand_rows').click(function(e){$('.dmb_handle').each(function(i,obj){if($(this).hasClass('closed')){$(this).siblings('.dmb_inner').slideToggle(50);$(this).removeClass('closed')}});return!1});$('.dmb_move_row_down').click(function(e){if($(this).closest('.dmb_main').next().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertAfter($(this).closest('.dmb_main').next());$(this).closest('.dmb_main').remove()}
 
 
12
  return!1});$('.dmb_move_row_up').click(function(e){if($(this).closest('.dmb_main').prev().hasClass('dmb_main')){var movingRow=$(this).closest('.dmb_main').clone(!0);movingRow.insertBefore($(this).closest('.dmb_main').prev());$(this).closest('.dmb_main').remove()}
13
  return!1});$('.dmb_clone_row').click(function(e){var clone=$(this).closest('.dmb_main').clone(!0);clone.insertAfter($(this).closest('.dmb_main'));clone.find('.dmb_handle_title').html(clone.find('.dmb_firstname_of_member').val()+' ('+objectL10n.copy+')');clone.find('.dmb_firstname_of_member').focus();updateHandleTitle(clone.find('.dmb_firstname_of_member'),!0);refreshRowCountRelatedUI();return!1});$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){if($(this).find('.dmb_firstname_of_member').val()!=''){var handleTitle=$(this).find('.dmb_handle_title'),firstname=$(this).find('.dmb_firstname_of_member').val(),lastname=$(this).find('.dmb_lastname_of_member').val();handleTitle.html(firstname+' '+lastname)}});function updateHandleTitle(firstnameField,wasCloned=!1){var firstnameField=firstnameField,lastname=firstnameField.closest('.dmb_main').find('.dmb_lastname_of_member').val()||'';handleTitle=firstnameField.closest('.dmb_main').find('.dmb_handle_title');cloneCopyText='';(wasCloned)?cloneCopyText=' copy':cloneCopyText='';(firstnameField.val()!='')?handleTitle.html(firstnameField.val()+' '+lastname+cloneCopyText):handleTitle.html(objectL10n.untitled+cloneCopyText)}
14
+ $('.dmb_firstname_of_member').live("keyup",function(e){updateHandleTitle($(this))});$('.dmb_lastname_of_member').live("keyup",function(e){firstnameField=$(this).closest('.dmb_main').find('.dmb_firstname_of_member');updateHandleTitle(firstnameField)});$('.dmb_show_preview_team').click(function(){var settings={};var team={};var preview_html='';settings.columns=$("select[name='team_columns'] option:selected").val();settings.bio_alignment=$("select[name='team_bio_align'] option:selected").val();settings.piclink_beh=$("select[name='team_piclink_beh'] option:selected").val();settings.piclink_beh=='new'?team.plb='target="_blank"':team.plb='';settings.color=dmb_rgb2hex($('.dmb_color_of_team').find(".wp-color-result").css('backgroundColor'))||'#8dba09';team.memberCount=$('.dmb_main').not('.dmb_empty_row').size();preview_html+='<div class="tmm" style="margin-top: 100px;">';preview_html+='<div class="tmm_'+settings.columns+'_columns tmm_wrap '+team.ori_f+'">';$('.dmb_main').not('.dmb_empty_row').each(function(i,obj){var fields={};fields.firstname=$(this).find(".dmb_firstname_of_member").val();fields.lastname=$(this).find(".dmb_lastname_of_member").val();fields.job=$(this).find(".dmb_job_of_member").val();if($('#acf-fallback-bio').length){fields.bio=$.trim($(this).find('.dmb_description_of_member_fb').text())||''}else{fields.bio=$.trim($(this).find('.dmb_description_of_member').html())||''}
15
+ fields.scl_type1=$(this).find(".dmb_scl_type1_of_member").find(":selected").val();fields.scl_title1=$(this).find(".dmb_scl_title1_of_member").val();fields.scl_url1=$(this).find(".dmb_scl_url1_of_member").val();fields.scl_type2=$(this).find(".dmb_scl_type2_of_member").find(":selected").val();fields.scl_title2=$(this).find(".dmb_scl_title2_of_member").val();fields.scl_url2=$(this).find(".dmb_scl_url2_of_member").val();fields.scl_type3=$(this).find(".dmb_scl_type3_of_member").find(":selected").val();fields.scl_title3=$(this).find(".dmb_scl_title3_of_member").val();fields.scl_url3=$(this).find(".dmb_scl_url3_of_member").val();fields.photoUrl=$(this).find(".dmb_img").attr('src');fields.photoLinkUrl=$(this).find(".dmb_photo_url_of_member").val();if(i%2==0){preview_html+='<span class="tmm_two_containers_tablet"></span>'}
16
  if(i%settings.columns==0){if(i>0){preview_html+='</div><span class="tmm_columns_containers_desktop"></span>'}
17
  preview_html+='<div class="tmm_container">'}
18
  preview_html+='<div class="tmm_member" style="border-top:'+settings.color+' solid 5px;">';if(fields.photoLinkUrl)
24
  if(fields.bio){preview_html+='<div class="tmm_desc" style="text-align:'+settings.bio_alignment+'">'+fields.bio+'</div>'}
25
  preview_html+='<div class="tmm_scblock">';for(var j=1;j<=3;j++){if(fields['scl_type'+j]!='nada'){var currentUrl=(fields['scl_url'+j])?fields['scl_url'+j]:'';var currentTitle=(fields['scl_title'+i])?fields['scl_title'+j]:'';if(fields['scl_type'+j]=='email'){preview_html+='<a class="tmm_sociallink" href="mailto:'+currentUrl+'" title="'+currentTitle+'"><img alt="'+currentTitle+'" src="../wp-content/plugins/'+pluginFolderSlug+'/inc/img/links/'+fields['scl_type'+j]+'.png"/></a>'}else{preview_html+='<a target="_blank" class="tmm_sociallink" href="'+currentUrl+'" title="'+currentTitle+'"><img alt="'+currentTitle+'" src="../wp-content/plugins/'+pluginFolderSlug+'/inc/img/links/'+fields['scl_type'+j]+'.png"/></a>'}}}
26
  preview_html+='</div>';preview_html+='</div>';preview_html+='</div>';if(i==(team.memberCount-1))
27
+ preview_html+='<div style="clear:both;"></div>'});preview_html+='</div>';preview_html+='</div>';preview_html+='</div>';preview_html+='<div style="clear:both;"></div>';preview_html+='<div class="dmb_accuracy_preview_notice">'+objectL10n.previewAccuracy+'</div>';(team.memberCount==0)?$('#dmb_preview_team').append('<div class="dmb_no_row_preview_notice">'+objectL10n.noMemberNotice+'</div>'):$('#dmb_preview_team').append(preview_html);$('#dmb_preview_team').fadeIn(100)});$('.dmb_preview_team_close').click(function(){$('#dmb_preview_team .tmm, .dmb_accuracy_preview_notice, .dmb_no_row_preview_notice').remove();$('#dmb_preview_team').fadeOut(100)});if(!$('#acf-fallback-bio').length){var lastEditedBio='';$('.dmb_edit_description_of_member').click(function(){lastEditedBio=$(this).parent().find('.dmb_description_of_member');var currentContent=lastEditedBio.html();if($("#wp-dmb_editor-wrap").hasClass("tmce-active")){tinymce.activeEditor.setContent(currentContent)}else{$('#dmb_editor').val($.trim(currentContent))}
28
+ $('#dmb_unique_editor').fadeIn(100);if(tinyMCE.activeEditor!==null){tinyMCE.activeEditor.focus()}})}
29
+ if(!$('#acf-fallback-bio').length){$('.dmb_ue_update').click(function(){if($("#wp-dmb_editor-wrap").hasClass("tmce-active")){var dmb_ue_content=tinyMCE.activeEditor.getContent()}else{var dmb_ue_content=$('#dmb_editor').val()}(!dmb_ue_content)?lastEditedBio.hide():lastEditedBio.show();lastEditedBio.html($.parseHTML(dmb_ue_content));$('#dmb_unique_editor').fadeOut(100);if(tinymce.activeEditor!==null){tinymce.activeEditor.setContent('')}
30
+ dmbGatherData(lastEditedBio);return!1})}
31
+ if(!$('#acf-fallback-bio').length){$('.dmb_ue_cancel').click(function(){$('#dmb_unique_editor').fadeOut(100)})}
32
+ function debounce(func,wait,immediate){var timeout;return function(){var context=this,args=arguments;var later=function(){timeout=null;if(!immediate)func.apply(context,args)};var callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)func.apply(context,args)}};$('#acf-fallback-bio').live('paste keyup',debounce(function(){$(this).siblings('.dmb_description_of_member_fb').text($(this).val());dmbGatherData($(this))},600))})})(jQuery);
inc/tmm-metaboxes-members.php CHANGED
@@ -67,8 +67,10 @@ function dmb_tmm_team_display() {
67
  </a>
68
  </div>
69
 
 
 
70
  <div id="dmb_unique_editor">
71
- <?php wp_editor( '', 'dmb_editor', array('editor_height' => '300px') ); ?>
72
  <br/>
73
  <a class="dmb_big_button_primary dmb_ue_update" href="#">
74
  <?php _e('Update', TMM_TXTDM ) ?>
@@ -78,6 +80,8 @@ function dmb_tmm_team_display() {
78
  </a>
79
  </div>
80
 
 
 
81
  <!-- Toolbar for member metabox -->
82
  <div class="dmb_toolbar">
83
  <div class="dmb_toolbar_inner">
@@ -147,17 +151,37 @@ function dmb_tmm_team_display() {
147
  </div>
148
 
149
  <div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last">
150
- <div class="dmb_field_title">
151
- <?php _e('Description/biography', TMM_TXTDM ) ?>
152
- <a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Edit your member\'s biography by clicking the button below. Once updated, it will show up here.', TMM_TXTDM ) ?>">[?]</a>
153
- </div>
154
- <div class="dmb_field dmb_description_of_member">
155
- <?php echo $member["_tmm_desc"]; ?>
156
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  <div class="dmb_clearfix"></div>
158
- <div class="dmb_edit_description_of_member dmb_small_button_primary">
159
- <span class="dashicons dashicons-edit"></span> <?php _e('Edit biography', TMM_TXTDM ) ?>&nbsp;
160
- </div>
 
 
 
 
161
  </div>
162
 
163
  <div class="dmb_clearfix"></div>
@@ -322,17 +346,36 @@ function dmb_tmm_team_display() {
322
  </div>
323
 
324
  <div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last">
 
 
 
 
325
  <div class="dmb_field_title">
326
  <?php _e('Description/biography', TMM_TXTDM ) ?>
327
  <a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Edit your member\'s biography by clicking the button below. Once updated, it will show up here.', TMM_TXTDM ) ?>">[?]</a>
328
  </div>
329
- <div class="dmb_field dmb_description_of_member">
330
-
331
- </div>
332
- <div class="dmb_clearfix"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  <div class="dmb_edit_description_of_member dmb_small_button_primary">
334
  <span class="dashicons dashicons-edit"></span> <?php _e('Edit biography', TMM_TXTDM ) ?>&nbsp;
335
  </div>
 
 
336
  </div>
337
 
338
  <div class="dmb_clearfix"></div>
67
  </a>
68
  </div>
69
 
70
+ <?php if( !class_exists('acf') ) { ?>
71
+
72
  <div id="dmb_unique_editor">
73
+ <?php wp_editor( '', 'dmb_editor', array('editor_height' => '300px' ) ); ?>
74
  <br/>
75
  <a class="dmb_big_button_primary dmb_ue_update" href="#">
76
  <?php _e('Update', TMM_TXTDM ) ?>
80
  </a>
81
  </div>
82
 
83
+ <?php } ?>
84
+
85
  <!-- Toolbar for member metabox -->
86
  <div class="dmb_toolbar">
87
  <div class="dmb_toolbar_inner">
151
  </div>
152
 
153
  <div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last">
154
+
155
+ <?php if( !class_exists('acf') ) { ?>
156
+
157
+ <div class="dmb_field_title">
158
+ <?php _e('Description/biography', TMM_TXTDM ) ?>
159
+ <a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Edit your member\'s biography by clicking the button below. Once updated, it will show up here.', TMM_TXTDM ) ?>">[?]</a>
160
+ </div>
161
+
162
+ <div class="dmb_field dmb_description_of_member">
163
+ <?php echo $member["_tmm_desc"]; ?>
164
+ </div>
165
+
166
+ <?php } else { ?>
167
+
168
+ <div class="dmb_field_title">
169
+ <?php _e('Description/biography', TMM_TXTDM ) ?>
170
+ </div>
171
+
172
+ <div class="dmb_field dmb_description_of_member_fb" style="display:none !important;"><?php echo $member["_tmm_desc"]; ?></div>
173
+ <textarea id="acf-fallback-bio"><?php echo $member["_tmm_desc"]; ?></textarea>
174
+
175
+ <?php } ?>
176
+
177
  <div class="dmb_clearfix"></div>
178
+
179
+ <?php if( !class_exists('acf') ) { ?>
180
+ <div class="dmb_edit_description_of_member dmb_small_button_primary">
181
+ <span class="dashicons dashicons-edit"></span> <?php _e('Edit biography', TMM_TXTDM ) ?>&nbsp;
182
+ </div>
183
+ <?php } ?>
184
+
185
  </div>
186
 
187
  <div class="dmb_clearfix"></div>
346
  </div>
347
 
348
  <div class="dmb_grid dmb_grid_100 dmb_grid_first dmb_grid_last">
349
+
350
+
351
+ <?php if( !class_exists('acf') ) { ?>
352
+
353
  <div class="dmb_field_title">
354
  <?php _e('Description/biography', TMM_TXTDM ) ?>
355
  <a class="dmb_inline_tip dmb_tooltip_large" data-tooltip="<?php _e('Edit your member\'s biography by clicking the button below. Once updated, it will show up here.', TMM_TXTDM ) ?>">[?]</a>
356
  </div>
357
+
358
+ <div class="dmb_field dmb_description_of_member"></div>
359
+
360
+ <?php } else { ?>
361
+
362
+ <div class="dmb_field_title">
363
+ <?php _e('Description/biography', TMM_TXTDM ) ?>
364
+ </div>
365
+
366
+ <div class="dmb_field dmb_description_of_member_fb" style="display:none !important;"></div>
367
+ <textarea id="acf-fallback-bio"></textarea>
368
+
369
+ <?php } ?>
370
+
371
+ <div class="dmb_clearfix"></div>
372
+
373
+ <?php if( !class_exists('acf') ) { ?>
374
  <div class="dmb_edit_description_of_member dmb_small_button_primary">
375
  <span class="dashicons dashicons-edit"></span> <?php _e('Edit biography', TMM_TXTDM ) ?>&nbsp;
376
  </div>
377
+ <?php } ?>
378
+
379
  </div>
380
 
381
  <div class="dmb_clearfix"></div>
readme.txt CHANGED
@@ -15,7 +15,7 @@ This plugin adds a “Teams” section to the admin panel which allows you to sh
15
  = No limitation for the Free version =
16
  The free version of the Team Members plugin is **not limited**.
17
 
18
- The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, pictures’ shape, enabling/disabling picture borders, picture position It also allows you to show from 1 to 5 members per line, add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). Two more links can be added to each member.
19
 
20
  = Available fields =
21
  * Firstname
@@ -25,14 +25,14 @@ The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features:
25
  * Social links (FB, Twitter…)
26
 
27
  = Available settings =
28
- * Number of members to show per line (2, 3, 4)
29
  * Color
30
 
31
  = Usage =
32
- Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
33
 
34
  = Support =
35
- Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll answer you fast, promise).
36
 
37
  == Installation ==
38
 
@@ -43,14 +43,14 @@ Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll
43
  4. Activate the plugin
44
 
45
  = Usage =
46
- Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) for information on how to use it.
47
 
48
  == Frequently Asked Questions ==
49
 
50
  = No limitation for the Free version =
51
  The free version of the Team Members plugin is **not limited**.
52
 
53
- The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, pictures’ shape, enabling/disabling picture borders, picture position It also allows you to show from 1 to 5 members per line, add filters to your pictures, set a color for each member instead of one general color for everybody (good for distinguishing your staff). Two more links can be added to each member.
54
 
55
  = Ready for translation =
56
  * POT files included (/lang/)
@@ -58,10 +58,10 @@ The [PRO version](http://wpdarko.com/items/team-members-pro/) adds new features:
58
  * Spanish translation included
59
 
60
  = Usage =
61
- Go to [the plugin's documentation](https://wpdarko.zendesk.com/hc/en-us/articles/206303627-Get-started-with-the-Team-Members-plugin) if you need more information on how to use this plugin.
62
 
63
  = Support =
64
- Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll answer you fast, promise).
65
 
66
  == Screenshots ==
67
  1. Team Members (front view - 3 per line)
@@ -72,6 +72,16 @@ Find help in [our forums](http://wpdarko.com/support/) for this plugin (we’ll
72
  6. Finding the shortcode (admin view)
73
 
74
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
75
  = 3.0.1 =
76
  * Fixed minor CSS bugs
77
 
15
  = No limitation for the Free version =
16
  The free version of the Team Members plugin is **not limited**.
17
 
18
+ The [PRO version](https://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, member height equalizing, full-width pictures, additional info. box, picture filters, per-member color and two more social links for each member.
19
 
20
  = Available fields =
21
  * Firstname
25
  * Social links (FB, Twitter…)
26
 
27
  = Available settings =
28
+ * Number of members to show per line (1 to 5)
29
  * Color
30
 
31
  = Usage =
32
+ Go to [the plugin's documentation](https://wpdarko.com/docs/guide-team-members/) if you need more information on how to use this plugin.
33
 
34
  = Support =
35
+ Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin (we’ll answer you fast, promise).
36
 
37
  == Installation ==
38
 
43
  4. Activate the plugin
44
 
45
  = Usage =
46
+ Go to [the plugin's documentation](https://wpdarko.com/docs/guide-team-members/) for information on how to use it.
47
 
48
  == Frequently Asked Questions ==
49
 
50
  = No limitation for the Free version =
51
  The free version of the Team Members plugin is **not limited**.
52
 
53
+ The [PRO version](https://wpdarko.com/items/team-members-pro/) adds new features: New picture on hover, member height equalizing, full-width pictures, additional info. box, picture filters, per-member color and two more social links for each member.
54
 
55
  = Ready for translation =
56
  * POT files included (/lang/)
58
  * Spanish translation included
59
 
60
  = Usage =
61
+ Go to [the plugin's documentation](https://wpdarko.com/docs/guide-team-members/) if you need more information on how to use this plugin.
62
 
63
  = Support =
64
+ Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin (we’ll answer you fast, promise).
65
 
66
  == Screenshots ==
67
  1. Team Members (front view - 3 per line)
72
  6. Finding the shortcode (admin view)
73
 
74
  == Changelog ==
75
+ = 4.1.0 =
76
+ * Fixes upload media issues with Link URL.
77
+ * Fixes plugin conflict with ACF.
78
+
79
+ = 4.0.0 =
80
+ * Automatically even out your members (just enable the equalizer).
81
+ * Add complementary info in a clean toggle box.
82
+ * Instantly preview your changes (see video below).
83
+ * Choose between floating, inside-the-box and full-width pictures.
84
+
85
  = 3.0.1 =
86
  * Fixed minor CSS bugs
87
 
tmm.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Team Members
5
  * Plugin URI: https://wpdarko.com/team-members
6
  * Description: A responsive, simple and clean way to display your team. Create new members, add their positions, bios, social links and copy-paste the shortcode into any post/page. Find help and information on our <a href="https://wpdarko.com/ask-for-support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='https://wpdarko.com/team-members'>PRO version</a> for more great features.
7
- * Version: 4.0.0
8
  * Author: WP Darko
9
  * Author URI: https://wpdarko.com
10
  * Text Domain: team-members
4
  * Plugin Name: Team Members
5
  * Plugin URI: https://wpdarko.com/team-members
6
  * Description: A responsive, simple and clean way to display your team. Create new members, add their positions, bios, social links and copy-paste the shortcode into any post/page. Find help and information on our <a href="https://wpdarko.com/ask-for-support/">support site</a>. This free version is NOT limited and does not contain any ad. Check out the <a href='https://wpdarko.com/team-members'>PRO version</a> for more great features.
7
+ * Version: 4.1.0
8
  * Author: WP Darko
9
  * Author URI: https://wpdarko.com
10
  * Text Domain: team-members