Version Description
- Updated deprecated jQuery code
- Fixed Instant Preview issue
- Fixed color pickers bug
Download this release
Release Info
Developer | spwebguy |
Plugin | Team Members |
Version | 5.0.9 |
Comparing to | |
See all releases |
Code changes from version 5.0.8 to 5.0.9
- inc/dmb/dmb.css +1 -0
- inc/dmb/dmb.js +1 -1
- inc/dmb/dmb.min.css +1 -1
- inc/dmb/dmb.min.js +1 -29
- readme.txt +8 -3
- tmm.php +1 -1
inc/dmb/dmb.css
CHANGED
@@ -55,6 +55,7 @@
|
|
55 |
|
56 |
.dmb_sidebar .dmb_field_title{ font-size:13px; }
|
57 |
.dmb_field_title{
|
|
|
58 |
margin-top: 10px;
|
59 |
margin-bottom:3px;
|
60 |
color: #555;
|
55 |
|
56 |
.dmb_sidebar .dmb_field_title{ font-size:13px; }
|
57 |
.dmb_field_title{
|
58 |
+
width: 100%;
|
59 |
margin-top: 10px;
|
60 |
margin-bottom:3px;
|
61 |
color: #555;
|
inc/dmb/dmb.js
CHANGED
@@ -393,7 +393,7 @@ $(document).ready(function (){
|
|
393 |
settings.color = dmb_rgb2hex($('.dmb_color_of_team').find(".wp-color-result").css('backgroundColor')) || '#8dba09';
|
394 |
|
395 |
/* Counts the members. */
|
396 |
-
team.memberCount = $('.dmb_main').not('.dmb_empty_row').
|
397 |
|
398 |
/* Prepares the output. */
|
399 |
preview_html += '<div class="tmm" style="margin-top: 100px;">';
|
393 |
settings.color = dmb_rgb2hex($('.dmb_color_of_team').find(".wp-color-result").css('backgroundColor')) || '#8dba09';
|
394 |
|
395 |
/* Counts the members. */
|
396 |
+
team.memberCount = $('.dmb_main').not('.dmb_empty_row').length;
|
397 |
|
398 |
/* Prepares the output. */
|
399 |
preview_html += '<div class="tmm" style="margin-top: 100px;">';
|
inc/dmb/dmb.min.css
CHANGED
@@ -4,4 +4,4 @@
|
|
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_main select,.dmb_side_select{width:100%;margin-bottom:5px}.dmb_field{width:100%}.dmb_data_dump{display:none}.dmb_img_field{display:none}.dmb_img_data_url{display:none!important}.dmb_img{max-width:100%;max-height:160px;margin-top:8px;display:block}.dmb_section_title{font-size:20px;color:#7a7a78;padding-bottom:4px;margin:15px 2px 2px;border-bottom:3px dashed #ddd;text-align:left}.dmb_sidebar .dmb_field_title{font-size:13px}.dmb_field_title{margin-top:10px;margin-bottom:3px;color:#555;font-size:15px;padding-left:2px;display:inline-block;font-weight:400;line-height:19px}::-webkit-input-placeholder{color:#bbb}::-moz-placeholder{color:#bbb}:-ms-input-placeholder{color:#bbb}:-moz-placeholder{color:#bbb}.dmb_main{margin-top:10px}.dmb_main .dmb_inner{background:#f5f5f5;padding:4px 10px 8px;border:1px solid #ddd;border-top:none}.dmb_main .dmb_handle{padding:8px 12px;background:#fff;border:1px solid #ccd0d4!important;display:block}.dmb_main .dmb_handle.closed{border-bottom:none}.dmb_main .dmb_handle .dmb_handle_title{margin-top:4px;float:left;color:#23282d;font-weight:400;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;padding-bottom:90px;background:#eee;z-index:100000;padding:0 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}.dmb_accuracy_preview_notice{background:#fff;padding:20px 30px;margin-top:10px;text-align:center;font-size:17px;line-height:27px;font-weight:400;border:1px solid #ddd;margin-top:60px;margin-bottom:80px;max-width:550px;margin:0 auto}.dmb_no_row_preview_notice{background:#fff;padding:20px 30px;margin-top:10px;text-align:center;font-size:17px;line-height:27px;font-weight:400;border:1px solid #ddd;margin-top:60px;margin-bottom:80px;max-width:550px;margin:0 auto;margin-top:120px}.dmb_tip{padding-left:2px;font-size:14px;color:#999;line-height:23px;margin-top:8px}.dmb_tip .dashicons{font-size:24px;height:17px}.dmb_inline_tip,.dmb_tip a{color:#0073aa;cursor:pointer}.dmb_button{font-size:13px;line-height:2;padding:2px 10px 3px;display:inline-block;text-decoration:none;margin:0;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;min-height:30px;text-decoration:none;text-shadow:none;background:#f5f5f5;border-color:#d3d3d3;color:#23282d}.dmb_button:active,.dmb_button:focus,.dmb_button:hover{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#eceaea;color:#23282d}.dmb_button_large .dashicons{position:relative;top:4px}.dmb_button_large{font-size:13px;line-height:2.15384615;padding:0 12px 2px}.dmb_button_huge{font-size:16px;line-height:2.28384615;padding:0 15px 3px}.dmb_button_compact{padding:0 4px 2px}.dmb_button_blue{background:#007cba;border-color:#007cba;color:#fff}.dmb_button_blue:active,.dmb_button_blue:focus,.dmb_button_blue:hover{background:#00669b;color:#fff}.dmb_button_green{background:#81c240;border-color:#81c240;color:#fff}.dmb_button_green:active,.dmb_button_green:focus,.dmb_button_green:hover{background:#75b03a;color:#fff}.dmb_button_gold{background:#edb50c;border-color:#edb50c;color:#fff}.dmb_button_gold:focus,.dmb_button_gold:hover{background:#e3ab02;color:#fff}.dmb_ue_update{margin-right:10px}#dmb_preview_team .dmb_preview_team_close{position:fixed;top:20px;right:40px;z-index:1}.dmb_clone_row,.dmb_remove_row_btn{float:right}.dmb_move_row_down,.dmb_move_row_up{float:left}.dmb_move_row_down{margin-left:7px;margin-right:12px}.dmb_remove_row_btn{margin-left:7px}.dmb_see_pro{margin-top:10px}.dmb_upload_img_btn{margin-top:4px}.dmb_remove_img_btn{margin-left:7px}.dmb_add_row{margin:0 auto;margin-top:10px;display:inline-block}.dmb_no_row_notice{background:#f5f5f5;padding:50px 10px;margin-top:10px;text-align:center;font-size:20px;line-height:36px;font-weight:400;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:#fff!important}.dmb_toolbar{padding-top:4px;display:block;text-align:left}.dmb_toolbar .dmb_expand_rows{margin-right:10px}.dmb_toolbar .dmb_collapse_rows,.dmb_toolbar .dmb_expand_rows{float:left;margin-right:7px;margin-top:9px}.dmb_toolbar .dmb_show_preview_team{float:right;margin-left:7px}.dmb_help_title,.dmb_side_block_title{font-size:14px;margin-top:4px;margin-bottom:2px;font-weight:500;color:#555}.dmb_side_block_title{font-weight:400}.dmb_help_title{margin-bottom:10px}.dmb_side_block{padding-bottom:2px;margin-top:10px}.dmb_side_block a{text-decoration:none}[data-tooltip]{position:relative;z-index:2;cursor:pointer}[data-tooltip]:after,[data-tooltip]:before{visibility:hidden;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:after,[data-tooltip]:hover:before{visibility:visible;opacity:1}@media only screen and (max-width :850px){.dmb_grid_100,.dmb_grid_20,.dmb_grid_25,.dmb_grid_33,.dmb_grid_35,.dmb_grid_40,.dmb_grid_50,.dmb_grid_60{padding-right:0;padding-left:0;width:100%}}#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_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:#fff;max-height:240px;width:99%;overflow-y:scroll}.dmb_edit_description_of_member{margin-top:7px!important}.dmb_discount_box_pushr{height:60px}.dmb_discount_box{background:#f5f5f5;border-top:1px solid #ddd;padding:2px 16px 8px 11px;position:absolute;bottom:0;left:0;right:0}#tmm_pro strong{color:#000}
|
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_main select,.dmb_side_select{width:100%;margin-bottom:5px}.dmb_field{width:100%}.dmb_data_dump{display:none}.dmb_img_field{display:none}.dmb_img_data_url{display:none!important}.dmb_img{max-width:100%;max-height:160px;margin-top:8px;display:block}.dmb_section_title{font-size:20px;color:#7a7a78;padding-bottom:4px;margin:15px 2px 2px;border-bottom:3px dashed #ddd;text-align:left}.dmb_sidebar .dmb_field_title{font-size:13px}.dmb_field_title{width:100%;margin-top:10px;margin-bottom:3px;color:#555;font-size:15px;padding-left:2px;display:inline-block;font-weight:400;line-height:19px}::-webkit-input-placeholder{color:#bbb}::-moz-placeholder{color:#bbb}:-ms-input-placeholder{color:#bbb}:-moz-placeholder{color:#bbb}.dmb_main{margin-top:10px}.dmb_main .dmb_inner{background:#f5f5f5;padding:4px 10px 8px;border:1px solid #ddd;border-top:none}.dmb_main .dmb_handle{padding:8px 12px;background:#fff;border:1px solid #ccd0d4!important;display:block}.dmb_main .dmb_handle.closed{border-bottom:none}.dmb_main .dmb_handle .dmb_handle_title{margin-top:4px;float:left;color:#23282d;font-weight:400;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;padding-bottom:90px;background:#eee;z-index:100000;padding:0 15%;text-align:center;box-shadow:-1px 0 204px -6px rgba(0,0,0,.75)}.dmb_accuracy_preview_notice{background:#fff;padding:20px 30px;margin-top:10px;text-align:center;font-size:17px;line-height:27px;font-weight:400;border:1px solid #ddd;margin-top:60px;margin-bottom:80px;max-width:550px;margin:0 auto}.dmb_no_row_preview_notice{background:#fff;padding:20px 30px;margin-top:10px;text-align:center;font-size:17px;line-height:27px;font-weight:400;border:1px solid #ddd;margin-top:60px;margin-bottom:80px;max-width:550px;margin:0 auto;margin-top:120px}.dmb_tip{padding-left:2px;font-size:14px;color:#999;line-height:23px;margin-top:8px}.dmb_tip .dashicons{font-size:24px;height:17px}.dmb_inline_tip,.dmb_tip a{color:#0073aa;cursor:pointer}.dmb_button{font-size:13px;line-height:2;padding:2px 10px 3px;display:inline-block;text-decoration:none;margin:0;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box;min-height:30px;text-decoration:none;text-shadow:none;background:#f5f5f5;border-color:#d3d3d3;color:#23282d}.dmb_button:active,.dmb_button:focus,.dmb_button:hover{background-image:none;outline:0;-webkit-box-shadow:none;box-shadow:none;background:#eceaea;color:#23282d}.dmb_button_large .dashicons{position:relative;top:4px}.dmb_button_large{font-size:13px;line-height:2.15384615;padding:0 12px 2px}.dmb_button_huge{font-size:16px;line-height:2.28384615;padding:0 15px 3px}.dmb_button_compact{padding:0 4px 2px}.dmb_button_blue{background:#007cba;border-color:#007cba;color:#fff}.dmb_button_blue:active,.dmb_button_blue:focus,.dmb_button_blue:hover{background:#00669b;color:#fff}.dmb_button_green{background:#81c240;border-color:#81c240;color:#fff}.dmb_button_green:active,.dmb_button_green:focus,.dmb_button_green:hover{background:#75b03a;color:#fff}.dmb_button_gold{background:#edb50c;border-color:#edb50c;color:#fff}.dmb_button_gold:focus,.dmb_button_gold:hover{background:#e3ab02;color:#fff}.dmb_ue_update{margin-right:10px}#dmb_preview_team .dmb_preview_team_close{position:fixed;top:20px;right:40px;z-index:1}.dmb_clone_row,.dmb_remove_row_btn{float:right}.dmb_move_row_down,.dmb_move_row_up{float:left}.dmb_move_row_down{margin-left:7px;margin-right:12px}.dmb_remove_row_btn{margin-left:7px}.dmb_see_pro{margin-top:10px}.dmb_upload_img_btn{margin-top:4px}.dmb_remove_img_btn{margin-left:7px}.dmb_add_row{margin:0 auto;margin-top:10px;display:inline-block}.dmb_no_row_notice{background:#f5f5f5;padding:50px 10px;margin-top:10px;text-align:center;font-size:20px;line-height:36px;font-weight:400;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:#fff!important}.dmb_toolbar{padding-top:4px;display:block;text-align:left}.dmb_toolbar .dmb_expand_rows{margin-right:10px}.dmb_toolbar .dmb_collapse_rows,.dmb_toolbar .dmb_expand_rows{float:left;margin-right:7px;margin-top:9px}.dmb_toolbar .dmb_show_preview_team{float:right;margin-left:7px}.dmb_help_title,.dmb_side_block_title{font-size:14px;margin-top:4px;margin-bottom:2px;font-weight:500;color:#555}.dmb_side_block_title{font-weight:400}.dmb_help_title{margin-bottom:10px}.dmb_side_block{padding-bottom:2px;margin-top:10px}.dmb_side_block a{text-decoration:none}[data-tooltip]{position:relative;z-index:2;cursor:pointer}[data-tooltip]:after,[data-tooltip]:before{visibility:hidden;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:after,[data-tooltip]:hover:before{visibility:visible;opacity:1}@media only screen and (max-width :850px){.dmb_grid_100,.dmb_grid_20,.dmb_grid_25,.dmb_grid_33,.dmb_grid_35,.dmb_grid_40,.dmb_grid_50,.dmb_grid_60{padding-right:0;padding-left:0;width:100%}}#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_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:#fff;max-height:240px;width:99%;overflow-y:scroll}.dmb_edit_description_of_member{margin-top:7px!important}.dmb_discount_box_pushr{height:60px}.dmb_discount_box{background:#f5f5f5;border-top:1px solid #ddd;padding:2px 16px 8px 11px;position:absolute;bottom:0;left:0;right:0}#tmm_pro strong{color:#000}
|
inc/dmb/dmb.min.js
CHANGED
@@ -2,32 +2,4 @@
|
|
2 |
* Team Members Admin JS (minified)
|
3 |
*/
|
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 |
-
$('body').on('keyup','.dmb_field',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_scl_type_select',function(e){dmbGatherData($(this))});$('body').on('change','.dmb_img_data_url',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_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></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();$('body').on('click','.dmb_remove_img_btn',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();button.siblings('img, .dmb_remove_img_btn, .dashicons-trash').remove();$("<a class='dmb_remove_img_btn dmb_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></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){if(!wasCloned){wasCloned=!1}
|
14 |
-
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 |
-
$('body').on('keyup','.dmb_firstname_of_member',function(e){updateHandleTitle($(this))});$('body').on('keyup','.dmb_lastname_of_member',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 tmm_plugin_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())||''}
|
16 |
-
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>'}
|
17 |
-
if(i%settings.columns==0){if(i>0){preview_html+='</div><span class="tmm_columns_containers_desktop"></span>'}
|
18 |
-
preview_html+='<div class="tmm_container">'}
|
19 |
-
preview_html+='<div class="tmm_member" style="border-top:'+settings.color+' solid 5px;">';if(fields.photoLinkUrl)
|
20 |
-
preview_html+='<a '+settings.piclink_beh+' href="'+fields.photoLinkUrl+'" title="'+fields.firstname+' '+fields.lastname+'">';if(fields.photoUrl)
|
21 |
-
preview_html+='<div class="tmm_photo tmm_pic_'+i+'" style="background: url('+fields.photoUrl+'); margin-left: auto; margin-right:auto; background-size:cover !important;"></div>';if(fields.photoLinkUrl)
|
22 |
-
preview_html+='</a>';preview_html+='<div class="tmm_textblock">';preview_html+='<div class="tmm_names">';if(fields.firstname){preview_html+='<span class="tmm_fname">'+fields.firstname+'</span> '}
|
23 |
-
if(fields.lastname){preview_html+='<span class="tmm_lname">'+fields.lastname+'</span>'}
|
24 |
-
preview_html+='</div>';if(fields.job){preview_html+='<div class="tmm_job">'+fields.job+'</div>'}
|
25 |
-
if(fields.bio){preview_html+='<div class="tmm_desc" style="text-align:'+settings.bio_alignment+'">'+fields.bio+'</div>'}
|
26 |
-
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>'}}}
|
27 |
-
preview_html+='</div>';preview_html+='</div>';preview_html+='</div>';if(i==(team.memberCount-1))
|
28 |
-
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))}
|
29 |
-
$('#dmb_unique_editor').fadeIn(100);if(tinyMCE.activeEditor!==null){tinyMCE.activeEditor.focus()}})}
|
30 |
-
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('')}
|
31 |
-
dmbGatherData(lastEditedBio);return!1})}
|
32 |
-
if(!$('#acf-fallback-bio').length){$('.dmb_ue_cancel').click(function(){$('#dmb_unique_editor').fadeOut(100)})}
|
33 |
-
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)}};$('body').on('paste keyup','#acf-fallback-bio',debounce(function(){$(this).siblings('.dmb_description_of_member_fb').text($(this).val());dmbGatherData($(this))},600))})})(jQuery);
|
2 |
* Team Members Admin JS (minified)
|
3 |
*/
|
4 |
|
5 |
+
!function(e){e(document).ready(function(){var t;t=jQuery.fn.clone,jQuery.fn.clone=function(){for(var i=t.apply(this,arguments),m=this.find("textarea").add(this.filter("textarea")),n=i.find("textarea").add(i.filter("textarea")),_=this.find("select").add(this.filter("select")),s=i.find("select").add(i.filter("select")),a=0,l=m.length;a<l;++a)e(n[a]).val(e(m[a]).val());for(a=0,l=_.length;a<l;++a)s[a].selectedIndex=_[a].selectedIndex;return i};var i,m,n,_,s=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");function a(e){return isNaN(e)?"00":s[(e-e%16)/16]+s[e%16]}function l(t){var i=t.closest(".dmb_main"),m=i.find(".dmb_firstname_of_member").val()||"",n=i.find(".dmb_lastname_of_member").val()||"",_=i.find(".dmb_job_of_member").val()||"";e("#acf-fallback-bio").length?description=e.trim(i.find(".dmb_description_of_member_fb").text())||"":description=e.trim(i.find(".dmb_description_of_member").html())||"";var s=i.find(".dmb_scl_type1_of_member").val()||"",a=i.find(".dmb_scl_title1_of_member").val()||"",l=i.find(".dmb_scl_url1_of_member").val()||"",d=i.find(".dmb_scl_type2_of_member").val()||"",o=i.find(".dmb_scl_title2_of_member").val()||"",r=i.find(".dmb_scl_url2_of_member").val()||"",c=i.find(".dmb_scl_type3_of_member").val()||"",b=i.find(".dmb_scl_title3_of_member").val()||"",f=i.find(".dmb_scl_url3_of_member").val()||"",h=i.find(".dmb_img_data_url").attr("data-img")||"",p=i.find(".dmb_photo_url_of_member").val()||"";i.find(".dmb_data_dump").val(m+"]--["+n+"]--["+_+"]--["+description+"]--["+s+"]--["+a+"]--["+l+"]--["+d+"]--["+o+"]--["+r+"]--["+c+"]--["+b+"]--["+f+"]--["+h+"]--["+p)}function d(){e(".dmb_main").not(".dmb_empty_row").length>0?e(".dmb_no_row_notice").hide():e(".dmb_no_row_notice").show()}function o(e,t){t||(t=!1);var i=(e=e).closest(".dmb_main").find(".dmb_lastname_of_member").val()||"";handleTitle=e.closest(".dmb_main").find(".dmb_handle_title"),cloneCopyText="",cloneCopyText=t?" copy":"",""!=e.val()?handleTitle.html(e.val()+" "+i+cloneCopyText):handleTitle.html(objectL10n.untitled+cloneCopyText)}if(e(".dmb_color_picker").each(function(t,i){e(this).wpColorPicker()}),e("body").on("keyup",".dmb_field",function(t){l(e(this))}),e("body").on("change",".dmb_scl_type_select",function(t){l(e(this))}),e("body").on("change",".dmb_img_data_url",function(t){l(e(this))}),e(".dmb_img_data_url").each(function(t,i){var m=e(this).attr("data-img");""!=m&&e("<a class='dmb_remove_img_btn dmb_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></span></a><img src='"+m+"' class='dmb_img'/>").insertAfter(e(this).parent().find(".dmb_upload_img_btn"))}),e(".dmb_main").not(".dmb_empty_row").each(function(t,i){e(this).find(".dmb_description_of_member").each(function(t,i){""==e.trim(e(this).text())?e(this).hide():e(this).show(),e(this).html(e.parseHTML(e(this).text()))}),l(e(this).find(".dmb_field").first())}),d(),e("body").on("click",".dmb_remove_img_btn",function(t){return e(this).parent().find(".dmb_img").remove(),e(this).parent().find(".dmb_img_data_url").attr("data-img","").trigger("change"),e(this).remove(),!1}),e(".dmb_upload_img_btn").click(function(t){t.preventDefault();var i=e(this),m=wp.media({title:"Insert image",library:{type:"image"},button:{text:"Use this image"},multiple:!1}).on("select",function(){var t=m.state().get("selection").first().toJSON();i.siblings("img, .dmb_remove_img_btn, .dashicons-trash").remove(),e("<a class='dmb_remove_img_btn dmb_button dmb_button_large dmb_button_compact' href='#'><span class='dashicons dashicons-trash'></span></a><img src='"+t.url+"' class='dmb_img'/>").insertAfter(i),i.siblings(".dmb_img_data_url").attr("data-img",t.url).trigger("change")}).open()}),e(".dmb_add_row").on("click",function(){var t=e(".dmb_empty_row").clone(!0);return t.removeClass("dmb_empty_row").addClass("dmb_main").show(),t.insertBefore(e(".dmb_empty_row")),t.find(".dmb_firstname_of_member").focus(),t.find(".dmb_color_picker_ready").removeClass(".dmb_color_picker_ready").addClass(".dmb_color_picker").wpColorPicker().css({padding:"3px"}),t.find(".dmb_handle_title").html(objectL10n.untitled),t.find(".dmb_description_of_member").hide(),d(),!1}),e(".dmb_remove_row_btn").click(function(t){return e(this).closest(".dmb_main").remove(),d(),!1}),e(".dmb_handle").click(function(t){return e(this).siblings(".dmb_inner").slideToggle(50),e(this).hasClass("closed")?e(this).removeClass("closed"):e(this).addClass("closed"),!1}),e(".dmb_collapse_rows").click(function(t){return e(".dmb_handle").each(function(t,i){e(this).closest(".dmb_empty_row").length||e(this).hasClass("closed")||(e(this).siblings(".dmb_inner").slideToggle(50),e(this).addClass("closed"))}),!1}),e(".dmb_expand_rows").click(function(t){return e(".dmb_handle").each(function(t,i){e(this).hasClass("closed")&&(e(this).siblings(".dmb_inner").slideToggle(50),e(this).removeClass("closed"))}),!1}),e(".dmb_move_row_down").click(function(t){e(this).closest(".dmb_main").next().hasClass("dmb_main")&&(e(this).closest(".dmb_main").clone(!0).insertAfter(e(this).closest(".dmb_main").next()),e(this).closest(".dmb_main").remove());return!1}),e(".dmb_move_row_up").click(function(t){e(this).closest(".dmb_main").prev().hasClass("dmb_main")&&(e(this).closest(".dmb_main").clone(!0).insertBefore(e(this).closest(".dmb_main").prev()),e(this).closest(".dmb_main").remove());return!1}),e(".dmb_clone_row").click(function(t){var i=e(this).closest(".dmb_main").clone(!0);return i.insertAfter(e(this).closest(".dmb_main")),i.find(".dmb_handle_title").html(i.find(".dmb_firstname_of_member").val()+" ("+objectL10n.copy+")"),i.find(".dmb_firstname_of_member").focus(),o(i.find(".dmb_firstname_of_member"),!0),d(),!1}),e(".dmb_main").not(".dmb_empty_row").each(function(t,i){if(""!=e(this).find(".dmb_firstname_of_member").val()){var m=e(this).find(".dmb_handle_title"),n=e(this).find(".dmb_firstname_of_member").val(),_=e(this).find(".dmb_lastname_of_member").val();m.html(n+" "+_)}}),e("body").on("keyup",".dmb_firstname_of_member",function(t){o(e(this))}),e("body").on("keyup",".dmb_lastname_of_member",function(t){firstnameField=e(this).closest(".dmb_main").find(".dmb_firstname_of_member"),o(firstnameField)}),e(".dmb_show_preview_team").click(function(){var t,i={},m={},n="";i.columns=e("select[name='team_columns'] option:selected").val(),i.bio_alignment=e("select[name='team_bio_align'] option:selected").val(),i.piclink_beh=e("select[name='team_piclink_beh'] option:selected").val(),"new"==i.piclink_beh?m.plb='target="_blank"':m.plb="",i.color=((t=e(".dmb_color_of_team").find(".wp-color-result").css("backgroundColor"))?"#"+a((t=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))[1])+a(t[2])+a(t[3]):void 0)||"#8dba09",m.memberCount=e(".dmb_main").not(".dmb_empty_row").length,n+='<div class="tmm" style="margin-top: 100px;">',n+='<div class="tmm_'+i.columns+'_columns tmm_wrap tmm_plugin_f">',e(".dmb_main").not(".dmb_empty_row").each(function(t,_){var s={};s.firstname=e(this).find(".dmb_firstname_of_member").val(),s.lastname=e(this).find(".dmb_lastname_of_member").val(),s.job=e(this).find(".dmb_job_of_member").val(),e("#acf-fallback-bio").length?s.bio=e.trim(e(this).find(".dmb_description_of_member_fb").text())||"":s.bio=e.trim(e(this).find(".dmb_description_of_member").html())||"",s.scl_type1=e(this).find(".dmb_scl_type1_of_member").find(":selected").val(),s.scl_title1=e(this).find(".dmb_scl_title1_of_member").val(),s.scl_url1=e(this).find(".dmb_scl_url1_of_member").val(),s.scl_type2=e(this).find(".dmb_scl_type2_of_member").find(":selected").val(),s.scl_title2=e(this).find(".dmb_scl_title2_of_member").val(),s.scl_url2=e(this).find(".dmb_scl_url2_of_member").val(),s.scl_type3=e(this).find(".dmb_scl_type3_of_member").find(":selected").val(),s.scl_title3=e(this).find(".dmb_scl_title3_of_member").val(),s.scl_url3=e(this).find(".dmb_scl_url3_of_member").val(),s.photoUrl=e(this).find(".dmb_img").attr("src"),s.photoLinkUrl=e(this).find(".dmb_photo_url_of_member").val(),t%2==0&&(n+='<span class="tmm_two_containers_tablet"></span>'),t%i.columns==0&&(t>0&&(n+='</div><span class="tmm_columns_containers_desktop"></span>'),n+='<div class="tmm_container">'),n+='<div class="tmm_member" style="border-top:'+i.color+' solid 5px;">',s.photoLinkUrl&&(n+="<a "+i.piclink_beh+' href="'+s.photoLinkUrl+'" title="'+s.firstname+" "+s.lastname+'">'),s.photoUrl&&(n+='<div class="tmm_photo tmm_pic_'+t+'" style="background: url('+s.photoUrl+'); margin-left: auto; margin-right:auto; background-size:cover !important;"></div>'),s.photoLinkUrl&&(n+="</a>"),n+='<div class="tmm_textblock">',n+='<div class="tmm_names">',s.firstname&&(n+='<span class="tmm_fname">'+s.firstname+"</span> "),s.lastname&&(n+='<span class="tmm_lname">'+s.lastname+"</span>"),n+="</div>",s.job&&(n+='<div class="tmm_job">'+s.job+"</div>"),s.bio&&(n+='<div class="tmm_desc" style="text-align:'+i.bio_alignment+'">'+s.bio+"</div>"),n+='<div class="tmm_scblock">';for(var a=1;a<=3;a++)if("nada"!=s["scl_type"+a]){var l=s["scl_url"+a]?s["scl_url"+a]:"",d=s["scl_title"+t]?s["scl_title"+a]:"";"email"==s["scl_type"+a]?n+='<a class="tmm_sociallink" href="mailto:'+l+'" title="'+d+'"><img alt="'+d+'" src="../wp-content/plugins/team-members/inc/img/links/'+s["scl_type"+a]+'.png"/></a>':n+='<a target="_blank" class="tmm_sociallink" href="'+l+'" title="'+d+'"><img alt="'+d+'" src="../wp-content/plugins/team-members/inc/img/links/'+s["scl_type"+a]+'.png"/></a>'}n+="</div>",n+="</div>",n+="</div>",t==m.memberCount-1&&(n+='<div style="clear:both;"></div>')}),n+="</div>",n+="</div>",n+="</div>",n+='<div style="clear:both;"></div>',n+='<div class="dmb_accuracy_preview_notice">'+objectL10n.previewAccuracy+"</div>",0==m.memberCount?e("#dmb_preview_team").append('<div class="dmb_no_row_preview_notice">'+objectL10n.noMemberNotice+"</div>"):e("#dmb_preview_team").append(n),e("#dmb_preview_team").fadeIn(100)}),e(".dmb_preview_team_close").click(function(){e("#dmb_preview_team .tmm, .dmb_accuracy_preview_notice, .dmb_no_row_preview_notice").remove(),e("#dmb_preview_team").fadeOut(100)}),!e("#acf-fallback-bio").length){var r="";e(".dmb_edit_description_of_member").click(function(){var t=(r=e(this).parent().find(".dmb_description_of_member")).html();e("#wp-dmb_editor-wrap").hasClass("tmce-active")?tinymce.activeEditor.setContent(t):e("#dmb_editor").val(e.trim(t)),e("#dmb_unique_editor").fadeIn(100),null!==tinyMCE.activeEditor&&tinyMCE.activeEditor.focus()})}e("#acf-fallback-bio").length||e(".dmb_ue_update").click(function(){if(e("#wp-dmb_editor-wrap").hasClass("tmce-active"))var t=tinyMCE.activeEditor.getContent();else t=e("#dmb_editor").val();return t?r.show():r.hide(),r.html(e.parseHTML(t)),e("#dmb_unique_editor").fadeOut(100),null!==tinymce.activeEditor&&tinymce.activeEditor.setContent(""),l(r),!1}),e("#acf-fallback-bio").length||e(".dmb_ue_cancel").click(function(){e("#dmb_unique_editor").fadeOut(100)}),e("body").on("paste keyup","#acf-fallback-bio",(i=function(){e(this).siblings(".dmb_description_of_member_fb").text(e(this).val()),l(e(this))},m=600,function(){var e=this,t=arguments,s=n&&!_;clearTimeout(_),_=setTimeout(function(){_=null,n||i.apply(e,t)},m),s&&i.apply(e,t)}))})}(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: spwebguy
|
3 |
Tags: team, teams, meet the team, shortcode, responsive, members, staff, people
|
4 |
Requires at least: 3.6
|
5 |
-
Tested up to: 5.
|
6 |
Stable tag: trunk
|
7 |
License: GPL2
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
@@ -93,8 +93,13 @@ Find help on [our support platform](https://wpdarko.com/support) for this plugin
|
|
93 |
6. Finding the shortcode (admin view)
|
94 |
|
95 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
96 |
= 5.0.8 =
|
97 |
-
* Fixed styling issue
|
98 |
|
99 |
= 5.0.7 =
|
100 |
* Updated Instagram icon
|
@@ -106,7 +111,7 @@ Find help on [our support platform](https://wpdarko.com/support) for this plugin
|
|
106 |
* Various styling fixes
|
107 |
|
108 |
= 5.0.0 =
|
109 |
-
* CSS rewrite to match WordPress
|
110 |
* Improved Instant Preview mode
|
111 |
* Improved member photo sizes (photos needs to be the same size)
|
112 |
* Added Phone link for opening calling apps (Skype etc.)
|
2 |
Contributors: spwebguy
|
3 |
Tags: team, teams, meet the team, shortcode, responsive, members, staff, people
|
4 |
Requires at least: 3.6
|
5 |
+
Tested up to: 5.7
|
6 |
Stable tag: trunk
|
7 |
License: GPL2
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
93 |
6. Finding the shortcode (admin view)
|
94 |
|
95 |
== Changelog ==
|
96 |
+
= 5.0.9 =
|
97 |
+
* Updated deprecated jQuery code
|
98 |
+
* Fixed Instant Preview issue
|
99 |
+
* Fixed color pickers bug
|
100 |
+
|
101 |
= 5.0.8 =
|
102 |
+
* Fixed styling issue
|
103 |
|
104 |
= 5.0.7 =
|
105 |
* Updated Instagram icon
|
111 |
* Various styling fixes
|
112 |
|
113 |
= 5.0.0 =
|
114 |
+
* CSS rewrite to match WordPress' new admin styles
|
115 |
* Improved Instant Preview mode
|
116 |
* Improved member photo sizes (photos needs to be the same size)
|
117 |
* Added Phone link for opening calling apps (Skype etc.)
|
tmm.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Team Members
|
4 |
* Plugin URI: https://wpdarko.com/team-members
|
5 |
* 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/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.
|
6 |
-
* Version: 5.0.
|
7 |
* Author: WP Darko
|
8 |
* Author URI: https://wpdarko.com
|
9 |
* Text Domain: team-members
|
3 |
* Plugin Name: Team Members
|
4 |
* Plugin URI: https://wpdarko.com/team-members
|
5 |
* 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/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.
|
6 |
+
* Version: 5.0.9
|
7 |
* Author: WP Darko
|
8 |
* Author URI: https://wpdarko.com
|
9 |
* Text Domain: team-members
|