Version Description
- Fixes team edit issue for IE browsers.
Download this release
Release Info
Developer | spwebguy |
Plugin | Team Members |
Version | 4.1.1 |
Comparing to | |
See all releases |
Code changes from version 4.1.0 to 4.1.1
- inc/dmb/dmb.js +3 -1
- inc/dmb/dmb.min.js +2 -1
- inc/img/links/googleplus.png +0 -0
- inc/img/links/instagram.png +0 -0
- inc/tmm-metaboxes-members.php +2 -1
- readme.txt +3 -0
- tmm.php +1 -1
inc/dmb/dmb.js
CHANGED
@@ -351,7 +351,9 @@ $(document).ready(function (){
|
|
351 |
|
352 |
|
353 |
/* Updates handle bar title. */
|
354 |
-
function updateHandleTitle(firstnameField, wasCloned
|
|
|
|
|
355 |
|
356 |
/* Gets current title. */
|
357 |
var firstnameField = firstnameField,
|
351 |
|
352 |
|
353 |
/* Updates handle bar title. */
|
354 |
+
function updateHandleTitle(firstnameField, wasCloned) {
|
355 |
+
|
356 |
+
if (!wasCloned) { wasCloned = false; }
|
357 |
|
358 |
/* Gets current title. */
|
359 |
var firstnameField = firstnameField,
|
inc/dmb/dmb.min.js
CHANGED
@@ -10,7 +10,8 @@ $('.dmb_field').live("keyup",function(e){dmbGatherData($(this))});$('.dmb_scl_ty
|
|
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
|
|
|
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>'}
|
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){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 |
$('.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())||''}
|
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>'}
|
inc/img/links/googleplus.png
CHANGED
Binary file
|
inc/img/links/instagram.png
CHANGED
Binary file
|
inc/tmm-metaboxes-members.php
CHANGED
@@ -8,7 +8,8 @@ function dmb_tmm_social_links_options() {
|
|
8 |
__('LinkedIn', TMM_TXTDM ) => 'linkedin',
|
9 |
__('YouTube', TMM_TXTDM ) => 'youtube',
|
10 |
__('Google+', TMM_TXTDM ) => 'googleplus',
|
11 |
-
|
|
|
12 |
__('VK', TMM_TXTDM ) => 'vk',
|
13 |
__('Instagram', TMM_TXTDM ) => 'instagram',
|
14 |
__('Tumblr', TMM_TXTDM ) => 'tumblr',
|
8 |
__('LinkedIn', TMM_TXTDM ) => 'linkedin',
|
9 |
__('YouTube', TMM_TXTDM ) => 'youtube',
|
10 |
__('Google+', TMM_TXTDM ) => 'googleplus',
|
11 |
+
__('Facebook', TMM_TXTDM ) => 'facebook',
|
12 |
+
__('Pinterest', TMM_TXTDM ) => 'pinterest',
|
13 |
__('VK', TMM_TXTDM ) => 'vk',
|
14 |
__('Instagram', TMM_TXTDM ) => 'instagram',
|
15 |
__('Tumblr', TMM_TXTDM ) => 'tumblr',
|
readme.txt
CHANGED
@@ -72,6 +72,9 @@ Find help in [our forums](https://wpdarko.com/ask-for-support/) for this plugin
|
|
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.
|
72 |
6. Finding the shortcode (admin view)
|
73 |
|
74 |
== Changelog ==
|
75 |
+
= 4.1.1 =
|
76 |
+
* Fixes team edit issue for IE browsers.
|
77 |
+
|
78 |
= 4.1.0 =
|
79 |
* Fixes upload media issues with Link URL.
|
80 |
* Fixes plugin conflict with ACF.
|
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.1.
|
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.1
|
8 |
* Author: WP Darko
|
9 |
* Author URI: https://wpdarko.com
|
10 |
* Text Domain: team-members
|