Ultimate Member – User Profile & Membership Plugin - Version 1.0.92

Version Description

Download this release

Release Info

Developer ultimatemember
Plugin Icon 128x128 Ultimate Member – User Profile & Membership Plugin
Version 1.0.92
Comparing to
See all releases

Code changes from version 1.0.91 to 1.0.92

admin/templates/role/register.php CHANGED
@@ -48,6 +48,7 @@
48
  <!-- Email Approval Settings -->
49
 
50
  <div class="checkmail">
 
51
  <p>
52
  <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
53
  <span class="um-admin-half">
@@ -79,6 +80,16 @@
79
 
80
  </span>
81
  </p><div class="um-admin-clear"></div>
 
 
 
 
 
 
 
 
 
 
82
  </div>
83
 
84
  <!-- Email Approval Settings -->
48
  <!-- Email Approval Settings -->
49
 
50
  <div class="checkmail">
51
+
52
  <p>
53
  <label class="um-admin-half"><?php _e('Action to be taken after registration','ultimatemember'); ?> <?php $this->tooltip( __('Select what action is taken after a person registers on your site. Depending on the status you can redirect them to their profile, a custom url or show a custom message','ultimatemember') ); ?></label>
54
  <span class="um-admin-half">
80
 
81
  </span>
82
  </p><div class="um-admin-clear"></div>
83
+
84
+ <p>
85
+ <label class="um-admin-half" for="_um_url_email_activate"><?php _e('URL redirect after e-mail activation','ultimatemember'); ?> <?php $this->tooltip( __('If you want users to go to a specific page other than login page after e-mail activation, enter the URL here.','ultimatemember') ); ?></label>
86
+ <span class="um-admin-half">
87
+
88
+ <input type="text" value="<?php echo $ultimatemember->query->get_meta_value('_um_url_email_activate', null, 'na'); ?>" name="_um_url_email_activate" id="_um_url_email_activate" />
89
+
90
+ </span>
91
+ </p><div class="um-admin-clear"></div>
92
+
93
  </div>
94
 
95
  <!-- Email Approval Settings -->
assets/js/um-functions.js CHANGED
@@ -360,9 +360,9 @@ function initImageUpload_UM( trigger ) {
360
  } else {
361
  upload_text = '';
362
  }
363
-
364
  trigger.uploadFile({
365
- url: ultimatemember_image_upload_url,
366
  method: "POST",
367
  multiple: false,
368
  formData: {key: trigger.data('key'), set_id: trigger.data('set_id'), set_mode: trigger.data('set_mode') },
@@ -442,7 +442,7 @@ function initFileUpload_UM( trigger ) {
442
  }
443
 
444
  trigger.uploadFile({
445
- url: ultimatemember_file_upload_url,
446
  method: "POST",
447
  multiple: false,
448
  formData: {key: trigger.data('key'), set_id: trigger.data('set_id'), set_mode: trigger.data('set_mode') },
360
  } else {
361
  upload_text = '';
362
  }
363
+
364
  trigger.uploadFile({
365
+ url: um_scripts.imageupload,
366
  method: "POST",
367
  multiple: false,
368
  formData: {key: trigger.data('key'), set_id: trigger.data('set_id'), set_mode: trigger.data('set_mode') },
442
  }
443
 
444
  trigger.uploadFile({
445
+ url: um_scripts.fileupload,
446
  method: "POST",
447
  multiple: false,
448
  formData: {key: trigger.data('key'), set_id: trigger.data('set_id'), set_mode: trigger.data('set_mode') },
assets/js/um-modal.js CHANGED
@@ -24,7 +24,7 @@ jQuery(document).ready(function() {
24
  um_modal_responsive();
25
 
26
  jQuery.ajax({
27
- url: ultimatemember_ajax_url,
28
  type: 'post',
29
  data: {
30
  action: 'ultimatemember_remove_file',
@@ -54,7 +54,7 @@ jQuery(document).ready(function() {
54
  um_modal_responsive();
55
 
56
  jQuery.ajax({
57
- url: ultimatemember_ajax_url,
58
  type: 'post',
59
  data: {
60
  action: 'ultimatemember_remove_file',
@@ -99,7 +99,7 @@ jQuery(document).ready(function() {
99
  jQuery(this).html( jQuery(this).attr('data-processing') ).addClass('disabled');
100
 
101
  jQuery.ajax({
102
- url: ultimatemember_ajax_url,
103
  type: 'POST',
104
  data: {
105
  action: 'ultimatemember_resize_image',
24
  um_modal_responsive();
25
 
26
  jQuery.ajax({
27
+ url: um_scripts.ajaxurl,
28
  type: 'post',
29
  data: {
30
  action: 'ultimatemember_remove_file',
54
  um_modal_responsive();
55
 
56
  jQuery.ajax({
57
+ url: um_scripts.ajaxurl,
58
  type: 'post',
59
  data: {
60
  action: 'ultimatemember_remove_file',
99
  jQuery(this).html( jQuery(this).attr('data-processing') ).addClass('disabled');
100
 
101
  jQuery.ajax({
102
+ url: um_scripts.ajaxurl,
103
  type: 'POST',
104
  data: {
105
  action: 'ultimatemember_resize_image',
assets/js/um-profile.js CHANGED
@@ -43,7 +43,7 @@ jQuery(document).ready(function() {
43
  metakey = 'profile_photo';
44
 
45
  jQuery.ajax({
46
- url: ultimatemember_ajax_url,
47
  type: 'post',
48
  data: {
49
  action: 'ultimatemember_delete_profile_photo',
@@ -68,7 +68,7 @@ jQuery(document).ready(function() {
68
  metakey = 'cover_photo';
69
 
70
  jQuery.ajax({
71
- url: ultimatemember_ajax_url,
72
  type: 'post',
73
  data: {
74
  action: 'ultimatemember_delete_cover_photo',
43
  metakey = 'profile_photo';
44
 
45
  jQuery.ajax({
46
+ url: um_scripts.ajaxurl,
47
  type: 'post',
48
  data: {
49
  action: 'ultimatemember_delete_profile_photo',
68
  metakey = 'cover_photo';
69
 
70
  jQuery.ajax({
71
+ url: um_scripts.ajaxurl,
72
  type: 'post',
73
  data: {
74
  action: 'ultimatemember_delete_cover_photo',
assets/js/um-scripts.js CHANGED
@@ -123,7 +123,7 @@ jQuery(document).ready(function() {
123
  parent.find('input[type=hidden]').val('');
124
 
125
  jQuery.ajax({
126
- url: ultimatemember_ajax_url,
127
  type: 'post',
128
  data: {
129
  action: 'ultimatemember_remove_file',
@@ -143,7 +143,7 @@ jQuery(document).ready(function() {
143
  parent.find('input[type=hidden]').val('');
144
 
145
  jQuery.ajax({
146
- url: ultimatemember_ajax_url,
147
  type: 'post',
148
  data: {
149
  action: 'ultimatemember_remove_file',
@@ -222,7 +222,7 @@ jQuery(document).ready(function() {
222
  var hook = jQuery(this).data('hook');
223
  var container = jQuery(this).parents('.um').find('.um-ajax-items');
224
  jQuery.ajax({
225
- url: ultimatemember_ajax_url,
226
  type: 'post',
227
  data: {
228
  action: 'ultimatemember_ajax_paginate',
@@ -251,7 +251,7 @@ jQuery(document).ready(function() {
251
  }
252
 
253
  jQuery.ajax({
254
- url: ultimatemember_ajax_url,
255
  type: 'post',
256
  data: {
257
  action: 'ultimatemember_muted_action',
123
  parent.find('input[type=hidden]').val('');
124
 
125
  jQuery.ajax({
126
+ url: um_scripts.ajaxurl,
127
  type: 'post',
128
  data: {
129
  action: 'ultimatemember_remove_file',
143
  parent.find('input[type=hidden]').val('');
144
 
145
  jQuery.ajax({
146
+ url: um_scripts.ajaxurl,
147
  type: 'post',
148
  data: {
149
  action: 'ultimatemember_remove_file',
222
  var hook = jQuery(this).data('hook');
223
  var container = jQuery(this).parents('.um').find('.um-ajax-items');
224
  jQuery.ajax({
225
+ url: um_scripts.ajaxurl,
226
  type: 'post',
227
  data: {
228
  action: 'ultimatemember_ajax_paginate',
251
  }
252
 
253
  jQuery.ajax({
254
+ url: um_scripts.ajaxurl,
255
  type: 'post',
256
  data: {
257
  action: 'ultimatemember_muted_action',
assets/js/um.min.js CHANGED
@@ -111,16 +111,16 @@ this.data("tipsy");if(f)f[a]();return this}a=b.extend({},b.fn.tipsy.defaults,a);
111
  b.data(this,"tipsy-pointee"),c;if(!(c=!a)){a:{for(;a=a.parentNode;)if(a==document){a=true;break a}a=false}c=!a}c&&b(this).remove()})};b.fn.tipsy.elementOptions=function(a,c){return b.metadata?b.extend({},c,b(a).metadata()):c};b.fn.tipsy.autoNS=function(){return b(this).offset().top>b(document).scrollTop()+b(window).height()/2?"s":"n"};b.fn.tipsy.autoWE=function(){return b(this).offset().left>b(document).scrollLeft()+b(window).width()/2?"e":"w"};b.fn.tipsy.autoBounds=function(a,c){return function(){var d=
112
  {ns:c[0],ew:c.length>1?c[1]:false},h=b(document).scrollTop()+a,f=b(document).scrollLeft()+a,g=b(this);if(g.offset().top<h)d.ns="n";if(g.offset().left<f)d.ew="w";if(b(window).width()+b(document).scrollLeft()-g.offset().left<a)d.ew="e";if(b(window).height()+b(document).scrollTop()-g.offset().top<a)d.ns="s";return d.ns+(d.ew?d.ew:"")}}})(jQuery);
113
 
114
- var live_field;var live_value;function um_conditional(){jQuery('.um-field.um-is-conditional').each(function(){for(var i = 0;i < 5;i++){var action0 = jQuery(this).data('cond-'+i+'-action');var field0 = jQuery(this).data('cond-'+i+'-field');var operator0 = jQuery(this).data('cond-'+i+'-operator');var value0 = jQuery(this).data('cond-'+i+'-value');if(action0 == 'show' && field0 == live_field){if(operator0 == 'empty'){if(!live_value||live_value == ''){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'not empty'){if(live_value&&live_value!= ''){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'equals to'){if(value0 == live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'not equals'){if(jQuery.isNumeric(value0) && parseInt(live_value)!= parseInt(value0) && live_value){jQuery(this).fadeIn()}else if(!jQuery.isNumeric(value0) && value0!= live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'greater than'){if(jQuery.isNumeric(value0) && parseInt(live_value)>parseInt(value0)){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'less than'){if(jQuery.isNumeric(value0) && parseInt(live_value) < parseInt(value0) && live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'contains'){if(live_value && live_value.indexOf(value0)>= 0){jQuery(this).fadeIn()}else{jQuery(this).hide()}}}if(action0 == 'hide' && field0 == live_field){if(operator0 == 'empty'){if(!live_value||live_value == ''){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'not empty'){if(live_value&&live_value!= ''){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'equals to'){if(value0 == live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'not equals'){if(jQuery.isNumeric(value0) && parseInt(live_value)!= parseInt(value0) && live_value){jQuery(this).hide()}else if(!jQuery.isNumeric(value0) && value0!= live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'greater than'){if(jQuery.isNumeric(value0) && parseInt(live_value)>parseInt(value0)){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'less than'){if(jQuery.isNumeric(value0) && parseInt(live_value) < parseInt(value0) && live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'contains'){if(live_value && live_value.indexOf(value0)>= 0){jQuery(this).hide()}else{jQuery(this).fadeIn()}}}}})}function UM_hide_menus(){menu = jQuery('.um-dropdown');menu.parents('div').find('a').removeClass('active');menu.hide()}function UM_domenus(){jQuery('.um-dropdown').each(function(){var menu = jQuery(this);var element = jQuery(this).attr('data-element');var position = jQuery(this).attr('data-position');jQuery(element).addClass('um-trigger-menu-on-'+menu.attr('data-trigger'));if(jQuery(window).width() <= 1200 && element == 'div.um-profile-edit'){position = 'lc'}if(position == 'lc'){if(200>jQuery(element).find('img').width()){left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)+((jQuery(element).find('img').width() - 200) / 2)}else{left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)}top_ = parseInt(jQuery(element).find('a').css('top'));if(top_){top_p = jQuery(element).find('img').height()+4+top_;left_gap = 4}else{top_p = jQuery(element).find('img').height()+4;left_gap = 0}if(top_p == 4 && element == 'div.um-cover'){top_p = jQuery(element).height() / 2+(menu.height() / 2)}else if(top_p == 4){top_p = jQuery(element).height()+20}gap_right = jQuery(element).width()+17;menu.css({'top':0,'width':200,'left':'auto','right':gap_right+'px','text-align':'center'});menu.find('.um-dropdown-arr').find('i').removeClass().addClass('um-icon-arrow-right-b');menu.find('.um-dropdown-arr').css({'top':'4px','left':'auto','right':'-17px'})}if(position == 'bc'){if(200>jQuery(element).find('img').width()){left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)+((jQuery(element).find('img').width() - 200) / 2)}else{left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)}top_ = parseInt(jQuery(element).find('a').css('top'));if(top_){top_p = jQuery(element).find('img').height()+4+top_;left_gap = 4}else{top_p = jQuery(element).find('img').height()+4;left_gap = 0}if(top_p == 4 && element == 'div.um-cover'){top_p = jQuery(element).height() / 2+(menu.height() / 2)}else if(top_p == 4){top_p = jQuery(element).height()+20}menu.css({'top':top_p,'width':200,'left':left_p+left_gap,'right':'auto','text-align':'center'});menu.find('.um-dropdown-arr').find('i').removeClass().addClass('um-icon-arrow-up-b');menu.find('.um-dropdown-arr').css({'top':'-17px','left':(menu.width() / 2) - 12,'right':'auto'})}})}function um_responsive(){jQuery('.um').each(function(){element_width = jQuery(this).width();if(element_width <= 340){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob340')}else if(element_width <= 500){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob500')}else if(element_width <= 800){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob800')}else if(element_width <= 960){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob960')}else if(element_width>960){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960')}if(jQuery('.um-account-nav').length>0 && jQuery('.um-account-side').is(':visible') && jQuery('.um-account-tab:visible').length == 0){jQuery('.um-account-side li a.current').trigger('click')}jQuery(this).css('opacity',1)});jQuery('.um-cover,.um-member-cover').each(function(){var elem = jQuery(this);var ratio = elem.data('ratio');var width = elem.width();var ratios = ratio.split(':');calcHeight = Math.round(width / ratios[0])+'px';elem.height(calcHeight);elem.find('.um-cover-add').height(calcHeight)});jQuery('.um-members').each(function(){UM_Member_Grid(jQuery(this))});UM_domenus()}function UM_Member_Grid(container){container.masonry({itemSelector:'.um-member',columnWidth:'.um-member',gutter:'.um-gutter-sizer'})}function initImageUpload_UM(trigger){if(trigger.data('upload_help_text')){upload_help_text = '<span class="help">'+trigger.data('upload_help_text')+'</span>'}else{upload_help_text = ''}if(trigger.data('icon')){icon = '<span class="icon"><i class="'+trigger.data('icon')+'"></i></span>'}else{icon = ''}if(trigger.data('upload_text')){upload_text = '<span class="str">'+trigger.data('upload_text')+'</span>'}else{upload_text = ''}trigger.uploadFile({url:ultimatemember_image_upload_url,method:"POST",multiple:false,formData:{key:trigger.data('key'),set_id:trigger.data('set_id'),set_mode:trigger.data('set_mode')},fileName:trigger.data('key'),allowedTypes:trigger.data('allowed_types'),maxFileSize:trigger.data('max_size'),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:trigger.data('max_size_error'),extErrorStr:trigger.data('extension_error'),maxFileCountErrorStr:trigger.data('max_files_error'),maxFileCount:1,showDelete:false,showAbort:false,showDone:false,showFileCounter:false,showStatusAfterSuccess:true,onSubmit:function(files){trigger.parents('.um-modal-body').find('.um-error-block').remove()},onSuccess:function(files,data,xhr){trigger.selectedFiles = 0;data = jQuery.parseJSON(data);if(data.error && data.error!= ''){trigger.parents('.um-modal-body').append('<div class="um-error-block">'+data.error+'</div>');trigger.parents('.um-modal-body').find('.upload-statusbar').hide(0);um_modal_responsive()}else{jQuery.each(data,function(key,value){var img_id = trigger.parents('.um-modal-body').find('.um-single-image-preview img');var img_id_h = trigger.parents('.um-modal-body').find('.um-single-image-preview');img_id.attr("src",value);img_id.load(function(){trigger.parents('.um-modal-body').find('.um-modal-btn.um-finish-upload.disabled').removeClass('disabled');trigger.parents('.um-modal-body').find('.ajax-upload-dragdrop,.upload-statusbar').hide(0);img_id_h.show(0);um_modal_responsive()})})}}})}function initFileUpload_UM(trigger){if(trigger.data('upload_help_text')){upload_help_text = '<span class="help">'+trigger.data('upload_help_text')+'</span>'}else{upload_help_text = ''}if(trigger.data('icon')){icon = '<span class="icon"><i class="'+trigger.data('icon')+'"></i></span>'}else{icon = ''}if(trigger.data('upload_text')){upload_text = '<span class="str">'+trigger.data('upload_text')+'</span>'}else{upload_text = ''}trigger.uploadFile({url:ultimatemember_file_upload_url,method:"POST",multiple:false,formData:{key:trigger.data('key'),set_id:trigger.data('set_id'),set_mode:trigger.data('set_mode')},fileName:trigger.data('key'),allowedTypes:trigger.data('allowed_types'),maxFileSize:trigger.data('max_size'),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:trigger.data('max_size_error'),extErrorStr:trigger.data('extension_error'),maxFileCountErrorStr:trigger.data('max_files_error'),maxFileCount:1,showDelete:false,showAbort:false,showDone:false,showFileCounter:false,showStatusAfterSuccess:true,onSubmit:function(files){trigger.parents('.um-modal-body').find('.um-error-block').remove()},onSuccess:function(files,data,xhr){trigger.selectedFiles = 0;data = jQuery.parseJSON(data);if(data.error && data.error!= ''){trigger.parents('.um-modal-body').append('<div class="um-error-block">'+data.error+'</div>');trigger.parents('.um-modal-body').find('.upload-statusbar').hide(0);um_modal_responsive()}else{jQuery.each(data,function(key,value){trigger.parents('.um-modal-body').find('.um-modal-btn.um-finish-upload.disabled').removeClass('disabled');trigger.parents('.um-modal-body').find('.ajax-upload-dragdrop,.upload-statusbar').hide(0);trigger.parents('.um-modal-body').find('.um-single-file-preview').show(0);if(key == 'icon'){trigger.parents('.um-modal-body').find('.um-single-fileinfo i').removeClass().addClass(value)}else if(key == 'icon_bg'){trigger.parents('.um-modal-body').find('.um-single-fileinfo span.icon').css({'background-color':value})}else if(key == 'filename'){trigger.parents('.um-modal-body').find('.um-single-fileinfo span.filename').html(value)}else{trigger.parents('.um-modal-body').find('.um-single-fileinfo a').attr('href',value)}});um_modal_responsive()}}})}function initCrop_UM(){var target_img = jQuery('.um-modal:visible .um-single-image-preview img');var target_img_parent = jQuery('.um-modal:visible .um-single-image-preview');var crop_data = target_img.parent().attr('data-crop');var min_width = target_img.parent().attr('data-min_width');var min_height = target_img.parent().attr('data-min_height');var ratio = target_img.parent().attr('data-ratio');if(jQuery('.um-modal').find('#um_upload_single').attr('data-ratio')){var ratio = jQuery('.um-modal').find('#um_upload_single').attr('data-ratio');var ratio_split = ratio.split(':');var ratio = ratio_split[0]}if(target_img.length){if(target_img.attr('src')!= ''){var max_height = jQuery(window).height() -(jQuery('.um-modal-footer a').height()+20) - 50 -(jQuery('.um-modal-header:visible').height());target_img.css({'height':'auto'});target_img_parent.css({'height':'auto'});if(jQuery(window).height() <= 400){target_img_parent.css({'height':max_height+'px','max-height':max_height+'px'});target_img.css({'height':'auto'})}else{target_img.css({'height':'auto','max-height':max_height+'px'});target_img_parent.css({'height':target_img.height(),'max-height':max_height+'px'})}if(crop_data == 'square'){var opts ={minWidth:min_width,minHeight:min_height,dragCrop:false,aspectRatio:1.0,zoomable:false,rotatable:false,dashed:false,done:function(data){target_img.parent().attr('data-coord',Math.round(data.x)+','+Math.round(data.y)+','+Math.round(data.width)+','+Math.round(data.height))}}}else if(crop_data == 'cover'){var opts ={minWidth:min_width,minHeight:Math.round(min_width / ratio),dragCrop:false,aspectRatio:ratio,zoomable:false,rotatable:false,dashed:false,done:function(data){target_img.parent().attr('data-coord',Math.round(data.x)+','+Math.round(data.y)+','+Math.round(data.width)+','+Math.round(data.height))}}}else if(crop_data == 'user'){var opts ={minWidth:min_width,minHeight:min_height,dragCrop:true,aspectRatio:"auto",zoomable:false,rotatable:false,dashed:false,done:function(data){target_img.parent().attr('data-coord',Math.round(data.x)+','+Math.round(data.y)+','+Math.round(data.width)+','+Math.round(data.height))}}}if(crop_data!= 0){target_img.cropper(opts)}}}}function um_new_modal(id,size,isPhoto,source){var modal = jQuery('body').find('.um-modal-overlay');if(modal.length == 0){jQuery('.tipsy').hide();UM_hide_menus();jQuery('body,html,textarea').css("overflow","hidden");jQuery(document).bind("touchmove",function(e){e.preventDefault()});jQuery('.um-modal').on('touchmove',function(e){e.stopPropagation()});if(isPhoto){jQuery('body').append('<div class="um-modal-overlay" ></div><div class="um-modal is-photo" ></div>')}else{jQuery('body').append('<div class="um-modal-overlay" ></div><div class="um-modal no-photo" ></div>')}jQuery('#'+id).prependTo('.um-modal');if(isPhoto){jQuery('.um-modal').find('.um-modal-photo').html('<img />');var photo_ = jQuery('.um-modal-photo img');var photo_maxw = jQuery(window).width() - 60;var photo_maxh = jQuery(window).height() -(jQuery(window).height() * .25);photo_.attr("src",source);photo_.load(function(){jQuery('#'+id).show();jQuery('.um-modal').show();photo_.css({'opacity':0});photo_.css({'max-width':photo_maxw});photo_.css({'max-height':photo_maxh});jQuery('.um-modal').css({'width':photo_.width(),'margin-left':'-'+photo_.width() / 2+'px'});photo_.animate({'opacity':1},1000);um_modal_responsive()})}else{jQuery('#'+id).show();jQuery('.um-modal').show();um_modal_size(size);initImageUpload_UM(jQuery('.um-modal:visible').find('.um-single-image-upload'));initFileUpload_UM(jQuery('.um-modal:visible').find('.um-single-file-upload'));um_modal_responsive()}}}function um_modal_responsive(){var modal = jQuery('.um-modal:visible');var photo_modal = jQuery('.um-modal-body.photo:visible');if(photo_modal.length){modal.removeClass('uimob340');modal.removeClass('uimob500');var photo_ = jQuery('.um-modal-photo img');var photo_maxw = jQuery(window).width() - 60;var photo_maxh = jQuery(window).height() -(jQuery(window).height() * .25);photo_.css({'opacity':0});photo_.css({'max-width':photo_maxw});photo_.css({'max-height':photo_maxh});jQuery('.um-modal').css({'width':photo_.width(),'margin-left':'-'+photo_.width() / 2+'px'});photo_.animate({'opacity':1},1000);var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}else if(modal.length){var element_width = jQuery(window).width();modal.removeClass('uimob340');modal.removeClass('uimob500');if(element_width <= 340){modal.addClass('uimob340');initCrop_UM();modal.animate({'bottom':0},300)}else if(element_width <= 500){modal.addClass('uimob500');initCrop_UM();modal.animate({'bottom':0},300)}else if(element_width <= 800){initCrop_UM();var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}else if(element_width <= 960){initCrop_UM();var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}else if(element_width>960){initCrop_UM();var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}}}function um_remove_modal(){jQuery('.um-modal .um-single-image-preview img').cropper("destroy");jQuery('body,html,textarea').css("overflow","auto");jQuery(document).unbind('touchmove');jQuery('.um-modal div[id^="um_"]').hide().appendTo('body');jQuery('.um-modal,.um-modal-overlay').remove()}function um_modal_size(aclass){jQuery('.um-modal:visible').addClass(aclass)}function um_modal_add_attr(id,value){jQuery('.um-modal:visible').data(id,value)}
115
 
116
  jQuery(window).load(function(){um_responsive();um_modal_responsive()});jQuery(window).resize(function(){jQuery(".um-modal .um-single-image-preview.crop:visible img").cropper("destroy");um_responsive();um_modal_responsive()});jQuery(document).ready(function(){jQuery(document).on("click",'.um-modal-overlay, a[data-action="um_remove_modal"]',function(){um_remove_modal()});jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"], .um-modal a',function(a){a.preventDefault();return false});jQuery(document).on("click",".um-modal .um-single-file-preview a.cancel",function(a){a.preventDefault();a=jQuery(this).parents(".um-modal-body");var b=jQuery(this).parents(".um-modal-body").find(".um-single-fileinfo a").attr("href");
117
- a.find(".um-single-file-preview").hide();a.find(".ajax-upload-dragdrop").show();a.find(".um-modal-btn.um-finish-upload").addClass("disabled");um_modal_responsive();jQuery.ajax({url:ultimatemember_ajax_url,type:"post",data:{action:"ultimatemember_remove_file",src:b}});return false});jQuery(document).on("click",".um-modal .um-single-image-preview a.cancel",function(a){a.preventDefault();a=jQuery(this).parents(".um-modal-body");var b=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview img").attr("src");
118
- a.find(".um-modal .um-single-image-preview img").cropper("destroy");a.find(".um-single-image-preview img").attr("src","");a.find(".um-single-image-preview").hide();a.find(".ajax-upload-dragdrop").show();a.find(".um-modal-btn.um-finish-upload").addClass("disabled");um_modal_responsive();jQuery.ajax({url:ultimatemember_ajax_url,type:"post",data:{action:"ultimatemember_remove_file",src:b}});return false});jQuery(document).on("click",".um-finish-upload.file",function(){var a=jQuery(this).attr("data-key"),
119
  b=jQuery(this).parents(".um-modal-body").find(".um-single-file-preview").html();um_remove_modal();jQuery(".um-single-file-preview[data-key="+a+"]").fadeIn().html(b);jQuery(".um-single-file-preview[data-key="+a+"]").parents(".um-field").find(".um-btn-auto-width").html(jQuery(this).attr("data-change"));jQuery(".um-single-file-preview[data-key="+a+"]").parents(".um-field").find("input[type=hidden]").val(jQuery(".um-single-file-preview[data-key="+a+"]").parents(".um-field").find(".um-single-fileinfo a").attr("href"))});
120
- jQuery(document).on("click",".um-finish-upload.image",function(){var a=jQuery(this),b=jQuery(this).attr("data-key"),c=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview"),f=c.find("img").attr("src");c=c.attr("data-coord");var g=jQuery(this).parents("#um_upload_single").attr("data-user_id")?jQuery(this).parents("#um_upload_single").attr("data-user_id"):0;if(c){jQuery(this).html(jQuery(this).attr("data-processing")).addClass("disabled");jQuery.ajax({url:ultimatemember_ajax_url,type:"POST",
121
  data:{action:"ultimatemember_resize_image",src:f,coord:c,user_id:g,key:b},success:function(e){d=new Date;b=="profile_photo"&&jQuery(".um-profile-photo-img img").attr("src",e+"?"+d.getTime());if(b=="cover_photo"){jQuery(".um-cover-e").empty().html('<img src="'+e+"?"+d.getTime()+'" alt="" />');jQuery(".um").hasClass("um-editing")&&jQuery(".um-cover-overlay").show()}jQuery(".um-single-image-preview[data-key="+b+"]").fadeIn().find("img").attr("src",e+"?"+d.getTime());um_remove_modal();jQuery(".um-single-image-preview[data-key="+
122
  b+"]").parents(".um-field").find(".um-btn-auto-width").html(a.attr("data-change"));jQuery(".um-single-image-preview[data-key="+b+"]").parents(".um-field").find("input[type=hidden]").val(e)}})}else{d=new Date;jQuery(".um-single-image-preview[data-key="+b+"]").fadeIn().find("img").attr("src",f+"?"+d.getTime());um_remove_modal();jQuery(".um-single-image-preview[data-key="+b+"]").parents(".um-field").find(".um-btn-auto-width").html(a.attr("data-change"));jQuery(".um-single-image-preview[data-key="+b+
123
  "]").parents(".um-field").find("input[type=hidden]").val(f)}});jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"]',function(){var a=jQuery(this).attr("data-modal"),b=jQuery(this).data("modal-size")?jQuery(this).data("modal-size"):"normal";if(jQuery(this).data("modal-copy")){jQuery("#"+a).html(jQuery(this).parents(".um-field").find(".um-modal-hidden-content").html());jQuery(this).parents(".um-profile-photo").attr("data-user_id")&&jQuery("#"+a).attr("data-user_id",jQuery(this).parents(".um-profile-photo").attr("data-user_id"));
124
- jQuery(this).parents(".um-cover").attr("data-ratio")&&jQuery("#"+a).attr("data-ratio",jQuery(this).parents(".um-cover").attr("data-ratio"));jQuery(this).parents(".um-cover").attr("data-user_id")&&jQuery("#"+a).attr("data-user_id",jQuery(this).parents(".um-cover").attr("data-user_id"))}um_new_modal(a,b)});jQuery(document).on('input','.um-field input[type=text]',function(){live_field = jQuery(this).parents('.um-field').data('key');live_value = jQuery(this).val();um_conditional()});jQuery('.um-field input[type=text]').trigger('input');jQuery(document).on('change','.um-field select,.um-field input[type=radio],.um-field input[type=checkbox]',function(){live_field = jQuery(this).parents('.um-field').data('key');live_value = jQuery(this).val();if(jQuery(this).is(':checkbox')){if(jQuery(this).parents('.um-field').find('input:checked').length>1){live_value = '';jQuery(this).parents('.um-field').find('input:checked').each(function(){live_value = live_value+jQuery(this).val()+' '})}else{live_value = jQuery(this).parents('.um-field').find('input:checked').val()}}if(jQuery(this).is(':radio')){live_value = jQuery(this).parents('.um-field').find('input[type=radio]:checked').val()}um_conditional()});jQuery('.um-field select,.um-field input[type=radio],.um-field input[type=checkbox]').trigger('change');jQuery(document).on('click','.um-dropdown a',function(e){return false});jQuery(document).on('click','.um-dropdown a.real_url',function(e){window.location = jQuery(this).attr('href')});jQuery(document).on('click','.um-trigger-menu-on-click',function(e){jQuery('.um-dropdown').hide();menu = jQuery(this).find('.um-dropdown');menu.show();return false});jQuery(document).on('click','.um-dropdown-hide',function(e){UM_hide_menus()});jQuery(document).on('click','a.um-manual-trigger',function(){var child = jQuery(this).attr('data-child');var parent = jQuery(this).attr('data-parent');jQuery(this).parents(parent).find(child).trigger('click')});jQuery('.um-tip-n').tipsy({gravity:'n',opacity:1,live:'a.live',offset:3});jQuery('.um-tip-w').tipsy({gravity:'w',opacity:1,live:'a.live',offset:3});jQuery('.um-tip-e').tipsy({gravity:'e',opacity:1,live:'a.live',offset:3});jQuery('.um-tip-s').tipsy({gravity:'s',opacity:1,live:'a.live',offset:3});jQuery('.um-field input[type=radio]').change(function(){var field = jQuery(this).parents('.um-field');var this_field = jQuery(this).parents('label');field.find('.um-field-radio').removeClass('active');field.find('.um-field-radio').find('i').removeClass().addClass('um-icon-android-radio-button-off');this_field.addClass('active');this_field.find('i').removeClass().addClass('um-icon-android-radio-button-on')});jQuery('.um-field input[type=checkbox]').change(function(){var field = jQuery(this).parents('.um-field');var this_field = jQuery(this).parents('label');if(this_field.hasClass('active')){this_field.removeClass('active');this_field.find('i').removeClass().addClass('um-icon-android-checkbox-outline-blank')}else{this_field.addClass('active');this_field.find('i').removeClass().addClass('um-icon-android-checkbox-outline')}});jQuery('.um-datepicker').each(function(){elem = jQuery(this);if(elem.attr('data-disabled_weekdays')!= ''){var disable = JSON.parse(elem.attr('data-disabled_weekdays'))}else{var disable = false}var years_n = elem.attr('data-years');var min = new Date(elem.attr('data-date_min'));var max = new Date(elem.attr('data-date_max'));elem.pickadate({selectYears:years_n,min:min,max:max,disable:disable,format:elem.attr('data-format'),formatSubmit:'yyyy/mm/dd',hiddenName:true})});jQuery('.um-timepicker').each(function(){elem = jQuery(this);elem.pickatime({format:elem.attr('data-format'),interval:parseInt(elem.attr('data-intervals')),formatSubmit:'HH:i',hiddenName:true})});jQuery('.um-rating').raty({half:false,starType:'i',number:function(){return jQuery(this).attr('data-number')},score:function(){return jQuery(this).attr('data-score')},scoreName:function(){return jQuery(this).attr('data-key')},hints:false,click:function(score,evt){live_field = this.id;live_value = score;um_conditional()}});jQuery('.um-rating-readonly').raty({half:false,starType:'i',number:function(){return jQuery(this).attr('data-number')},score:function(){return jQuery(this).attr('data-score')},scoreName:function(){return jQuery(this).attr('data-key')},hints:false,readOnly:true});jQuery(document).on('click','.um .um-single-image-preview a.cancel',function(e){e.preventDefault();var parent = jQuery(this).parents('.um-field');var src = jQuery(this).parents('.um-field').find('.um-single-image-preview img').attr('src');parent.find('.um-single-image-preview img').attr('src','');parent.find('.um-single-image-preview').hide();parent.find('.um-btn-auto-width').html('Upload');parent.find('input[type=hidden]').val('');jQuery.ajax({url:ultimatemember_ajax_url,type:'post',data:{action:'ultimatemember_remove_file',src:src}});return false});jQuery(document).on('click','.um .um-single-file-preview a.cancel',function(e){e.preventDefault();var parent = jQuery(this).parents('.um-field');var src = jQuery(this).parents('.um-field').find('.um-single-fileinfo a').attr('href');parent.find('.um-single-file-preview').hide();parent.find('.um-btn-auto-width').html('Upload');parent.find('input[type=hidden]').val('');jQuery.ajax({url:ultimatemember_ajax_url,type:'post',data:{action:'ultimatemember_remove_file',src:src}});return false});jQuery(".um-s1").select2({allowClear:true,minimumResultsForSearch:10});jQuery(".um-s2").select2({allowClear:false,minimumResultsForSearch:10});jQuery('.um-s1,.um-s2').css({'display':'block'});jQuery(document).on('click','.um-field-group-head:not(.disabled)',function(){var field = jQuery(this).parents('.um-field-group');var limit = field.data('max_entries');if(field.find('.um-field-group-body').is(':hidden')){field.find('.um-field-group-body').show()}else{field.find('.um-field-group-body:first').clone().appendTo(field)}increase_id = 0;field.find('.um-field-group-body').each(function(){increase_id++;jQuery(this).find('input').each(function(){var input = jQuery(this);input.attr('id',input.data('key')+'-'+increase_id);input.attr('name',input.data('key')+'-'+increase_id);input.parent().parent().find('label').attr('for',input.data('key')+'-'+increase_id)})});if(limit>0 && field.find('.um-field-group-body').length == limit){jQuery(this).addClass('disabled')}});jQuery(document).on('click','.um-field-group-cancel',function(e){e.preventDefault();var field = jQuery(this).parents('.um-field-group');var limit = field.data('max_entries');if(field.find('.um-field-group-body').length>1){jQuery(this).parents('.um-field-group-body').remove()}else{jQuery(this).parents('.um-field-group-body').hide()}if(limit>0 && field.find('.um-field-group-body').length < limit){field.find('.um-field-group-head').removeClass('disabled')}return false});jQuery(document).on('click','.um-ajax-paginate',function(e){e.preventDefault();var parent = jQuery(this).parent();parent.addClass('loading');var args = jQuery(this).data('args');var hook = jQuery(this).data('hook');var container = jQuery(this).parents('.um').find('.um-ajax-items');jQuery.ajax({url:ultimatemember_ajax_url,type:'post',data:{action:'ultimatemember_ajax_paginate',hook:hook,args:args},complete:function(){parent.removeClass('loading')},success:function(data){parent.remove();container.append(data)}});return false});jQuery(document).on('click','.um-ajax-action',function(e){e.preventDefault();var hook = jQuery(this).data('hook');var user_id = jQuery(this).data('user_id');var arguments = jQuery(this).data('arguments');if(jQuery(this).data('js-remove')){jQuery(this).parents('.'+jQuery(this).data('js-remove')).fadeOut('fast')}jQuery.ajax({url:ultimatemember_ajax_url,type:'post',data:{action:'ultimatemember_muted_action',hook:hook,user_id:user_id,arguments:arguments}});return false});jQuery('.um-members').each(function(){UM_Member_Grid(jQuery(this))});jQuery('.um-member-connect').each(function(){if(jQuery(this).find('a').length == 0){jQuery(this).remove()}});jQuery('.um-member-meta-main').each(function(){if(jQuery(this).find('.um-member-metaline').length == 0 && jQuery(this).find('.um-member-connect').find('a').length == 0){jQuery(this).remove()}});jQuery(document).on('click','.um-member-more a',function(e){e.preventDefault();var block = jQuery(this).parents('.um-member');var container = jQuery(this).parents('.um-members');block.find('.um-member-more').hide();block.find('.um-member-meta').slideDown(function(){UM_Member_Grid(container)});block.find('.um-member-less').fadeIn();setTimeout(function(){UM_Member_Grid(container)},100);return false});jQuery(document).on('click','.um-member-less a',function(e){e.preventDefault();var block = jQuery(this).parents('.um-member');var container = jQuery(this).parents('.um-members');block.find('.um-member-less').hide();block.find('.um-member-meta').slideUp(function(){block.find('.um-member-more').fadeIn();UM_Member_Grid(container)});return false});jQuery(document).on('click','.um-do-search',function(e){e.preventDefault();jQuery(this).parents('form').submit();return false});jQuery('.um-profile.um-viewing .um-profile-body .um-row').each(function(){var this_row = jQuery(this);if(this_row.find('.um-field').length == 0){this_row.prev('.um-row-heading').remove();this_row.remove()}});if(jQuery('.um-profile.um-viewing .um-profile-body').length && jQuery('.um-profile.um-viewing .um-profile-body').find('.um-field').length == 0){jQuery('.um-row-heading,.um-row').remove();jQuery('.um-profile-note').show()}jQuery(document).on('click','.um-profile-save',function(e){e.preventDefault();jQuery(this).parents('.um').find('form').submit();return false});jQuery(document).on('click','.um-profile-edit-a',function(e){jQuery(this).addClass('active')});jQuery(document).on('click','.um-cover a,.um-photo a',function(e){e.preventDefault();return false});jQuery(document).on('click','.um-photo-modal',function(e){e.preventDefault();var photo_src = jQuery(this).attr('data-src');um_new_modal('um_view_photo','fit',true,photo_src);return false});jQuery(document).on('click','.um-reset-profile-photo',function(e){jQuery('.um-profile-photo-img img').attr('src',jQuery(this).attr('data-default_src'));user_id = jQuery(this).attr('data-user_id');metakey = 'profile_photo';jQuery.ajax({url:ultimatemember_ajax_url,type:'post',data:{action:'ultimatemember_delete_profile_photo',metakey:metakey,user_id:user_id}})});jQuery(document).on('click','.um-reset-cover-photo',function(e){jQuery('.um-cover-overlay').hide();jQuery('.um-cover-e').html('<a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="Upload a cover photo"></i></span></a>');jQuery('.um-dropdown').hide();um_responsive();user_id = jQuery(this).attr('data-user_id');metakey = 'cover_photo';jQuery.ajax({url:ultimatemember_ajax_url,type:'post',data:{action:'ultimatemember_delete_cover_photo',metakey:metakey,user_id:user_id}})});var g=jQuery(".um-account-main").attr("data-current_tab");g&&jQuery(".um-account-tab[data-tab="+g+"]").show();jQuery(document).on("click",".um-account-side li a",function(a){a.preventDefault();a=jQuery(this);a.parents("ul").find("li a").removeClass("current");
125
  a.addClass("current");a=jQuery(this).attr("href");var b=jQuery(this).attr("data-tab");window.history.pushState("","",a);jQuery(".um-account-tab").hide();jQuery(".um-account-tab[data-tab="+b+"]").fadeIn();jQuery(".um-account-nav a").removeClass("current");jQuery(".um-account-nav a[data-tab="+b+"]").addClass("current");return false});jQuery(document).on("click",".um-account-nav a",function(a){a.preventDefault();a=jQuery(this).attr("data-tab");var b=jQuery(this).parents("div"),c=jQuery(this);jQuery(".um-account-tab").hide();
126
  if(c.hasClass("current")){b.next(".um-account-tab").slideUp();c.removeClass("current")}else{b.next(".um-account-tab").slideDown();c.parents("div").find("a").removeClass("current");c.addClass("current")}jQuery(".um-account-side li a").removeClass("current");jQuery(".um-account-side li a[data-tab="+a+"]").addClass("current");return false})});
111
  b.data(this,"tipsy-pointee"),c;if(!(c=!a)){a:{for(;a=a.parentNode;)if(a==document){a=true;break a}a=false}c=!a}c&&b(this).remove()})};b.fn.tipsy.elementOptions=function(a,c){return b.metadata?b.extend({},c,b(a).metadata()):c};b.fn.tipsy.autoNS=function(){return b(this).offset().top>b(document).scrollTop()+b(window).height()/2?"s":"n"};b.fn.tipsy.autoWE=function(){return b(this).offset().left>b(document).scrollLeft()+b(window).width()/2?"e":"w"};b.fn.tipsy.autoBounds=function(a,c){return function(){var d=
112
  {ns:c[0],ew:c.length>1?c[1]:false},h=b(document).scrollTop()+a,f=b(document).scrollLeft()+a,g=b(this);if(g.offset().top<h)d.ns="n";if(g.offset().left<f)d.ew="w";if(b(window).width()+b(document).scrollLeft()-g.offset().left<a)d.ew="e";if(b(window).height()+b(document).scrollTop()-g.offset().top<a)d.ns="s";return d.ns+(d.ew?d.ew:"")}}})(jQuery);
113
 
114
+ var live_field;var live_value;function um_conditional(){jQuery('.um-field.um-is-conditional').each(function(){for(var i = 0;i < 5;i++){var action0 = jQuery(this).data('cond-'+i+'-action');var field0 = jQuery(this).data('cond-'+i+'-field');var operator0 = jQuery(this).data('cond-'+i+'-operator');var value0 = jQuery(this).data('cond-'+i+'-value');if(action0 == 'show' && field0 == live_field){if(operator0 == 'empty'){if(!live_value||live_value == ''){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'not empty'){if(live_value&&live_value!= ''){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'equals to'){if(value0 == live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'not equals'){if(jQuery.isNumeric(value0) && parseInt(live_value)!= parseInt(value0) && live_value){jQuery(this).fadeIn()}else if(!jQuery.isNumeric(value0) && value0!= live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'greater than'){if(jQuery.isNumeric(value0) && parseInt(live_value)>parseInt(value0)){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'less than'){if(jQuery.isNumeric(value0) && parseInt(live_value) < parseInt(value0) && live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'contains'){if(live_value && live_value.indexOf(value0)>= 0){jQuery(this).fadeIn()}else{jQuery(this).hide()}}}if(action0 == 'hide' && field0 == live_field){if(operator0 == 'empty'){if(!live_value||live_value == ''){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'not empty'){if(live_value&&live_value!= ''){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'equals to'){if(value0 == live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'not equals'){if(jQuery.isNumeric(value0) && parseInt(live_value)!= parseInt(value0) && live_value){jQuery(this).hide()}else if(!jQuery.isNumeric(value0) && value0!= live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'greater than'){if(jQuery.isNumeric(value0) && parseInt(live_value)>parseInt(value0)){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'less than'){if(jQuery.isNumeric(value0) && parseInt(live_value) < parseInt(value0) && live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'contains'){if(live_value && live_value.indexOf(value0)>= 0){jQuery(this).hide()}else{jQuery(this).fadeIn()}}}}})}function UM_hide_menus(){menu = jQuery('.um-dropdown');menu.parents('div').find('a').removeClass('active');menu.hide()}function UM_domenus(){jQuery('.um-dropdown').each(function(){var menu = jQuery(this);var element = jQuery(this).attr('data-element');var position = jQuery(this).attr('data-position');jQuery(element).addClass('um-trigger-menu-on-'+menu.attr('data-trigger'));if(jQuery(window).width() <= 1200 && element == 'div.um-profile-edit'){position = 'lc'}if(position == 'lc'){if(200>jQuery(element).find('img').width()){left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)+((jQuery(element).find('img').width() - 200) / 2)}else{left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)}top_ = parseInt(jQuery(element).find('a').css('top'));if(top_){top_p = jQuery(element).find('img').height()+4+top_;left_gap = 4}else{top_p = jQuery(element).find('img').height()+4;left_gap = 0}if(top_p == 4 && element == 'div.um-cover'){top_p = jQuery(element).height() / 2+(menu.height() / 2)}else if(top_p == 4){top_p = jQuery(element).height()+20}gap_right = jQuery(element).width()+17;menu.css({'top':0,'width':200,'left':'auto','right':gap_right+'px','text-align':'center'});menu.find('.um-dropdown-arr').find('i').removeClass().addClass('um-icon-arrow-right-b');menu.find('.um-dropdown-arr').css({'top':'4px','left':'auto','right':'-17px'})}if(position == 'bc'){if(200>jQuery(element).find('img').width()){left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)+((jQuery(element).find('img').width() - 200) / 2)}else{left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)}top_ = parseInt(jQuery(element).find('a').css('top'));if(top_){top_p = jQuery(element).find('img').height()+4+top_;left_gap = 4}else{top_p = jQuery(element).find('img').height()+4;left_gap = 0}if(top_p == 4 && element == 'div.um-cover'){top_p = jQuery(element).height() / 2+(menu.height() / 2)}else if(top_p == 4){top_p = jQuery(element).height()+20}menu.css({'top':top_p,'width':200,'left':left_p+left_gap,'right':'auto','text-align':'center'});menu.find('.um-dropdown-arr').find('i').removeClass().addClass('um-icon-arrow-up-b');menu.find('.um-dropdown-arr').css({'top':'-17px','left':(menu.width() / 2) - 12,'right':'auto'})}})}function um_responsive(){jQuery('.um').each(function(){element_width = jQuery(this).width();if(element_width <= 340){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob340')}else if(element_width <= 500){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob500')}else if(element_width <= 800){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob800')}else if(element_width <= 960){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960');jQuery(this).addClass('uimob960')}else if(element_width>960){jQuery(this).removeClass('uimob340');jQuery(this).removeClass('uimob500');jQuery(this).removeClass('uimob800');jQuery(this).removeClass('uimob960')}if(jQuery('.um-account-nav').length>0 && jQuery('.um-account-side').is(':visible') && jQuery('.um-account-tab:visible').length == 0){jQuery('.um-account-side li a.current').trigger('click')}jQuery(this).css('opacity',1)});jQuery('.um-cover,.um-member-cover').each(function(){var elem = jQuery(this);var ratio = elem.data('ratio');var width = elem.width();var ratios = ratio.split(':');calcHeight = Math.round(width / ratios[0])+'px';elem.height(calcHeight);elem.find('.um-cover-add').height(calcHeight)});jQuery('.um-members').each(function(){UM_Member_Grid(jQuery(this))});UM_domenus()}function UM_Member_Grid(container){container.masonry({itemSelector:'.um-member',columnWidth:'.um-member',gutter:'.um-gutter-sizer'})}function initImageUpload_UM(trigger){if(trigger.data('upload_help_text')){upload_help_text = '<span class="help">'+trigger.data('upload_help_text')+'</span>'}else{upload_help_text = ''}if(trigger.data('icon')){icon = '<span class="icon"><i class="'+trigger.data('icon')+'"></i></span>'}else{icon = ''}if(trigger.data('upload_text')){upload_text = '<span class="str">'+trigger.data('upload_text')+'</span>'}else{upload_text = ''}trigger.uploadFile({url:um_scripts.imageupload,method:"POST",multiple:false,formData:{key:trigger.data('key'),set_id:trigger.data('set_id'),set_mode:trigger.data('set_mode')},fileName:trigger.data('key'),allowedTypes:trigger.data('allowed_types'),maxFileSize:trigger.data('max_size'),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:trigger.data('max_size_error'),extErrorStr:trigger.data('extension_error'),maxFileCountErrorStr:trigger.data('max_files_error'),maxFileCount:1,showDelete:false,showAbort:false,showDone:false,showFileCounter:false,showStatusAfterSuccess:true,onSubmit:function(files){trigger.parents('.um-modal-body').find('.um-error-block').remove()},onSuccess:function(files,data,xhr){trigger.selectedFiles = 0;data = jQuery.parseJSON(data);if(data.error && data.error!= ''){trigger.parents('.um-modal-body').append('<div class="um-error-block">'+data.error+'</div>');trigger.parents('.um-modal-body').find('.upload-statusbar').hide(0);um_modal_responsive()}else{jQuery.each(data,function(key,value){var img_id = trigger.parents('.um-modal-body').find('.um-single-image-preview img');var img_id_h = trigger.parents('.um-modal-body').find('.um-single-image-preview');img_id.attr("src",value);img_id.load(function(){trigger.parents('.um-modal-body').find('.um-modal-btn.um-finish-upload.disabled').removeClass('disabled');trigger.parents('.um-modal-body').find('.ajax-upload-dragdrop,.upload-statusbar').hide(0);img_id_h.show(0);um_modal_responsive()})})}}})}function initFileUpload_UM(trigger){if(trigger.data('upload_help_text')){upload_help_text = '<span class="help">'+trigger.data('upload_help_text')+'</span>'}else{upload_help_text = ''}if(trigger.data('icon')){icon = '<span class="icon"><i class="'+trigger.data('icon')+'"></i></span>'}else{icon = ''}if(trigger.data('upload_text')){upload_text = '<span class="str">'+trigger.data('upload_text')+'</span>'}else{upload_text = ''}trigger.uploadFile({url:um_scripts.fileupload,method:"POST",multiple:false,formData:{key:trigger.data('key'),set_id:trigger.data('set_id'),set_mode:trigger.data('set_mode')},fileName:trigger.data('key'),allowedTypes:trigger.data('allowed_types'),maxFileSize:trigger.data('max_size'),dragDropStr:icon+upload_text+upload_help_text,sizeErrorStr:trigger.data('max_size_error'),extErrorStr:trigger.data('extension_error'),maxFileCountErrorStr:trigger.data('max_files_error'),maxFileCount:1,showDelete:false,showAbort:false,showDone:false,showFileCounter:false,showStatusAfterSuccess:true,onSubmit:function(files){trigger.parents('.um-modal-body').find('.um-error-block').remove()},onSuccess:function(files,data,xhr){trigger.selectedFiles = 0;data = jQuery.parseJSON(data);if(data.error && data.error!= ''){trigger.parents('.um-modal-body').append('<div class="um-error-block">'+data.error+'</div>');trigger.parents('.um-modal-body').find('.upload-statusbar').hide(0);um_modal_responsive()}else{jQuery.each(data,function(key,value){trigger.parents('.um-modal-body').find('.um-modal-btn.um-finish-upload.disabled').removeClass('disabled');trigger.parents('.um-modal-body').find('.ajax-upload-dragdrop,.upload-statusbar').hide(0);trigger.parents('.um-modal-body').find('.um-single-file-preview').show(0);if(key == 'icon'){trigger.parents('.um-modal-body').find('.um-single-fileinfo i').removeClass().addClass(value)}else if(key == 'icon_bg'){trigger.parents('.um-modal-body').find('.um-single-fileinfo span.icon').css({'background-color':value})}else if(key == 'filename'){trigger.parents('.um-modal-body').find('.um-single-fileinfo span.filename').html(value)}else{trigger.parents('.um-modal-body').find('.um-single-fileinfo a').attr('href',value)}});um_modal_responsive()}}})}function initCrop_UM(){var target_img = jQuery('.um-modal:visible .um-single-image-preview img');var target_img_parent = jQuery('.um-modal:visible .um-single-image-preview');var crop_data = target_img.parent().attr('data-crop');var min_width = target_img.parent().attr('data-min_width');var min_height = target_img.parent().attr('data-min_height');var ratio = target_img.parent().attr('data-ratio');if(jQuery('.um-modal').find('#um_upload_single').attr('data-ratio')){var ratio = jQuery('.um-modal').find('#um_upload_single').attr('data-ratio');var ratio_split = ratio.split(':');var ratio = ratio_split[0]}if(target_img.length){if(target_img.attr('src')!= ''){var max_height = jQuery(window).height() -(jQuery('.um-modal-footer a').height()+20) - 50 -(jQuery('.um-modal-header:visible').height());target_img.css({'height':'auto'});target_img_parent.css({'height':'auto'});if(jQuery(window).height() <= 400){target_img_parent.css({'height':max_height+'px','max-height':max_height+'px'});target_img.css({'height':'auto'})}else{target_img.css({'height':'auto','max-height':max_height+'px'});target_img_parent.css({'height':target_img.height(),'max-height':max_height+'px'})}if(crop_data == 'square'){var opts ={minWidth:min_width,minHeight:min_height,dragCrop:false,aspectRatio:1.0,zoomable:false,rotatable:false,dashed:false,done:function(data){target_img.parent().attr('data-coord',Math.round(data.x)+','+Math.round(data.y)+','+Math.round(data.width)+','+Math.round(data.height))}}}else if(crop_data == 'cover'){var opts ={minWidth:min_width,minHeight:Math.round(min_width / ratio),dragCrop:false,aspectRatio:ratio,zoomable:false,rotatable:false,dashed:false,done:function(data){target_img.parent().attr('data-coord',Math.round(data.x)+','+Math.round(data.y)+','+Math.round(data.width)+','+Math.round(data.height))}}}else if(crop_data == 'user'){var opts ={minWidth:min_width,minHeight:min_height,dragCrop:true,aspectRatio:"auto",zoomable:false,rotatable:false,dashed:false,done:function(data){target_img.parent().attr('data-coord',Math.round(data.x)+','+Math.round(data.y)+','+Math.round(data.width)+','+Math.round(data.height))}}}if(crop_data!= 0){target_img.cropper(opts)}}}}function um_new_modal(id,size,isPhoto,source){var modal = jQuery('body').find('.um-modal-overlay');if(modal.length == 0){jQuery('.tipsy').hide();UM_hide_menus();jQuery('body,html,textarea').css("overflow","hidden");jQuery(document).bind("touchmove",function(e){e.preventDefault()});jQuery('.um-modal').on('touchmove',function(e){e.stopPropagation()});if(isPhoto){jQuery('body').append('<div class="um-modal-overlay" ></div><div class="um-modal is-photo" ></div>')}else{jQuery('body').append('<div class="um-modal-overlay" ></div><div class="um-modal no-photo" ></div>')}jQuery('#'+id).prependTo('.um-modal');if(isPhoto){jQuery('.um-modal').find('.um-modal-photo').html('<img />');var photo_ = jQuery('.um-modal-photo img');var photo_maxw = jQuery(window).width() - 60;var photo_maxh = jQuery(window).height() -(jQuery(window).height() * .25);photo_.attr("src",source);photo_.load(function(){jQuery('#'+id).show();jQuery('.um-modal').show();photo_.css({'opacity':0});photo_.css({'max-width':photo_maxw});photo_.css({'max-height':photo_maxh});jQuery('.um-modal').css({'width':photo_.width(),'margin-left':'-'+photo_.width() / 2+'px'});photo_.animate({'opacity':1},1000);um_modal_responsive()})}else{jQuery('#'+id).show();jQuery('.um-modal').show();um_modal_size(size);initImageUpload_UM(jQuery('.um-modal:visible').find('.um-single-image-upload'));initFileUpload_UM(jQuery('.um-modal:visible').find('.um-single-file-upload'));um_modal_responsive()}}}function um_modal_responsive(){var modal = jQuery('.um-modal:visible');var photo_modal = jQuery('.um-modal-body.photo:visible');if(photo_modal.length){modal.removeClass('uimob340');modal.removeClass('uimob500');var photo_ = jQuery('.um-modal-photo img');var photo_maxw = jQuery(window).width() - 60;var photo_maxh = jQuery(window).height() -(jQuery(window).height() * .25);photo_.css({'opacity':0});photo_.css({'max-width':photo_maxw});photo_.css({'max-height':photo_maxh});jQuery('.um-modal').css({'width':photo_.width(),'margin-left':'-'+photo_.width() / 2+'px'});photo_.animate({'opacity':1},1000);var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}else if(modal.length){var element_width = jQuery(window).width();modal.removeClass('uimob340');modal.removeClass('uimob500');if(element_width <= 340){modal.addClass('uimob340');initCrop_UM();modal.animate({'bottom':0},300)}else if(element_width <= 500){modal.addClass('uimob500');initCrop_UM();modal.animate({'bottom':0},300)}else if(element_width <= 800){initCrop_UM();var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}else if(element_width <= 960){initCrop_UM();var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}else if(element_width>960){initCrop_UM();var half_gap =(jQuery(window).height() - modal.innerHeight()) / 2+'px';modal.animate({'bottom':half_gap},300)}}}function um_remove_modal(){jQuery('.um-modal .um-single-image-preview img').cropper("destroy");jQuery('body,html,textarea').css("overflow","auto");jQuery(document).unbind('touchmove');jQuery('.um-modal div[id^="um_"]').hide().appendTo('body');jQuery('.um-modal,.um-modal-overlay').remove()}function um_modal_size(aclass){jQuery('.um-modal:visible').addClass(aclass)}function um_modal_add_attr(id,value){jQuery('.um-modal:visible').data(id,value)}
115
 
116
  jQuery(window).load(function(){um_responsive();um_modal_responsive()});jQuery(window).resize(function(){jQuery(".um-modal .um-single-image-preview.crop:visible img").cropper("destroy");um_responsive();um_modal_responsive()});jQuery(document).ready(function(){jQuery(document).on("click",'.um-modal-overlay, a[data-action="um_remove_modal"]',function(){um_remove_modal()});jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"], .um-modal a',function(a){a.preventDefault();return false});jQuery(document).on("click",".um-modal .um-single-file-preview a.cancel",function(a){a.preventDefault();a=jQuery(this).parents(".um-modal-body");var b=jQuery(this).parents(".um-modal-body").find(".um-single-fileinfo a").attr("href");
117
+ a.find(".um-single-file-preview").hide();a.find(".ajax-upload-dragdrop").show();a.find(".um-modal-btn.um-finish-upload").addClass("disabled");um_modal_responsive();jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:b}});return false});jQuery(document).on("click",".um-modal .um-single-image-preview a.cancel",function(a){a.preventDefault();a=jQuery(this).parents(".um-modal-body");var b=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview img").attr("src");
118
+ a.find(".um-modal .um-single-image-preview img").cropper("destroy");a.find(".um-single-image-preview img").attr("src","");a.find(".um-single-image-preview").hide();a.find(".ajax-upload-dragdrop").show();a.find(".um-modal-btn.um-finish-upload").addClass("disabled");um_modal_responsive();jQuery.ajax({url:um_scripts.ajaxurl,type:"post",data:{action:"ultimatemember_remove_file",src:b}});return false});jQuery(document).on("click",".um-finish-upload.file",function(){var a=jQuery(this).attr("data-key"),
119
  b=jQuery(this).parents(".um-modal-body").find(".um-single-file-preview").html();um_remove_modal();jQuery(".um-single-file-preview[data-key="+a+"]").fadeIn().html(b);jQuery(".um-single-file-preview[data-key="+a+"]").parents(".um-field").find(".um-btn-auto-width").html(jQuery(this).attr("data-change"));jQuery(".um-single-file-preview[data-key="+a+"]").parents(".um-field").find("input[type=hidden]").val(jQuery(".um-single-file-preview[data-key="+a+"]").parents(".um-field").find(".um-single-fileinfo a").attr("href"))});
120
+ jQuery(document).on("click",".um-finish-upload.image",function(){var a=jQuery(this),b=jQuery(this).attr("data-key"),c=jQuery(this).parents(".um-modal-body").find(".um-single-image-preview"),f=c.find("img").attr("src");c=c.attr("data-coord");var g=jQuery(this).parents("#um_upload_single").attr("data-user_id")?jQuery(this).parents("#um_upload_single").attr("data-user_id"):0;if(c){jQuery(this).html(jQuery(this).attr("data-processing")).addClass("disabled");jQuery.ajax({url:um_scripts.ajaxurl,type:"POST",
121
  data:{action:"ultimatemember_resize_image",src:f,coord:c,user_id:g,key:b},success:function(e){d=new Date;b=="profile_photo"&&jQuery(".um-profile-photo-img img").attr("src",e+"?"+d.getTime());if(b=="cover_photo"){jQuery(".um-cover-e").empty().html('<img src="'+e+"?"+d.getTime()+'" alt="" />');jQuery(".um").hasClass("um-editing")&&jQuery(".um-cover-overlay").show()}jQuery(".um-single-image-preview[data-key="+b+"]").fadeIn().find("img").attr("src",e+"?"+d.getTime());um_remove_modal();jQuery(".um-single-image-preview[data-key="+
122
  b+"]").parents(".um-field").find(".um-btn-auto-width").html(a.attr("data-change"));jQuery(".um-single-image-preview[data-key="+b+"]").parents(".um-field").find("input[type=hidden]").val(e)}})}else{d=new Date;jQuery(".um-single-image-preview[data-key="+b+"]").fadeIn().find("img").attr("src",f+"?"+d.getTime());um_remove_modal();jQuery(".um-single-image-preview[data-key="+b+"]").parents(".um-field").find(".um-btn-auto-width").html(a.attr("data-change"));jQuery(".um-single-image-preview[data-key="+b+
123
  "]").parents(".um-field").find("input[type=hidden]").val(f)}});jQuery(document).on("click",'a[data-modal^="um_"], span[data-modal^="um_"]',function(){var a=jQuery(this).attr("data-modal"),b=jQuery(this).data("modal-size")?jQuery(this).data("modal-size"):"normal";if(jQuery(this).data("modal-copy")){jQuery("#"+a).html(jQuery(this).parents(".um-field").find(".um-modal-hidden-content").html());jQuery(this).parents(".um-profile-photo").attr("data-user_id")&&jQuery("#"+a).attr("data-user_id",jQuery(this).parents(".um-profile-photo").attr("data-user_id"));
124
+ jQuery(this).parents(".um-cover").attr("data-ratio")&&jQuery("#"+a).attr("data-ratio",jQuery(this).parents(".um-cover").attr("data-ratio"));jQuery(this).parents(".um-cover").attr("data-user_id")&&jQuery("#"+a).attr("data-user_id",jQuery(this).parents(".um-cover").attr("data-user_id"))}um_new_modal(a,b)});jQuery(document).on('input','.um-field input[type=text]',function(){live_field = jQuery(this).parents('.um-field').data('key');live_value = jQuery(this).val();um_conditional()});jQuery('.um-field input[type=text]').trigger('input');jQuery(document).on('change','.um-field select,.um-field input[type=radio],.um-field input[type=checkbox]',function(){live_field = jQuery(this).parents('.um-field').data('key');live_value = jQuery(this).val();if(jQuery(this).is(':checkbox')){if(jQuery(this).parents('.um-field').find('input:checked').length>1){live_value = '';jQuery(this).parents('.um-field').find('input:checked').each(function(){live_value = live_value+jQuery(this).val()+' '})}else{live_value = jQuery(this).parents('.um-field').find('input:checked').val()}}if(jQuery(this).is(':radio')){live_value = jQuery(this).parents('.um-field').find('input[type=radio]:checked').val()}um_conditional()});jQuery('.um-field select,.um-field input[type=radio],.um-field input[type=checkbox]').trigger('change');jQuery(document).on('click','.um-dropdown a',function(e){return false});jQuery(document).on('click','.um-dropdown a.real_url',function(e){window.location = jQuery(this).attr('href')});jQuery(document).on('click','.um-trigger-menu-on-click',function(e){jQuery('.um-dropdown').hide();menu = jQuery(this).find('.um-dropdown');menu.show();return false});jQuery(document).on('click','.um-dropdown-hide',function(e){UM_hide_menus()});jQuery(document).on('click','a.um-manual-trigger',function(){var child = jQuery(this).attr('data-child');var parent = jQuery(this).attr('data-parent');jQuery(this).parents(parent).find(child).trigger('click')});jQuery('.um-tip-n').tipsy({gravity:'n',opacity:1,live:'a.live',offset:3});jQuery('.um-tip-w').tipsy({gravity:'w',opacity:1,live:'a.live',offset:3});jQuery('.um-tip-e').tipsy({gravity:'e',opacity:1,live:'a.live',offset:3});jQuery('.um-tip-s').tipsy({gravity:'s',opacity:1,live:'a.live',offset:3});jQuery('.um-field input[type=radio]').change(function(){var field = jQuery(this).parents('.um-field');var this_field = jQuery(this).parents('label');field.find('.um-field-radio').removeClass('active');field.find('.um-field-radio').find('i').removeClass().addClass('um-icon-android-radio-button-off');this_field.addClass('active');this_field.find('i').removeClass().addClass('um-icon-android-radio-button-on')});jQuery('.um-field input[type=checkbox]').change(function(){var field = jQuery(this).parents('.um-field');var this_field = jQuery(this).parents('label');if(this_field.hasClass('active')){this_field.removeClass('active');this_field.find('i').removeClass().addClass('um-icon-android-checkbox-outline-blank')}else{this_field.addClass('active');this_field.find('i').removeClass().addClass('um-icon-android-checkbox-outline')}});jQuery('.um-datepicker').each(function(){elem = jQuery(this);if(elem.attr('data-disabled_weekdays')!= ''){var disable = JSON.parse(elem.attr('data-disabled_weekdays'))}else{var disable = false}var years_n = elem.attr('data-years');var min = new Date(elem.attr('data-date_min'));var max = new Date(elem.attr('data-date_max'));elem.pickadate({selectYears:years_n,min:min,max:max,disable:disable,format:elem.attr('data-format'),formatSubmit:'yyyy/mm/dd',hiddenName:true})});jQuery('.um-timepicker').each(function(){elem = jQuery(this);elem.pickatime({format:elem.attr('data-format'),interval:parseInt(elem.attr('data-intervals')),formatSubmit:'HH:i',hiddenName:true})});jQuery('.um-rating').raty({half:false,starType:'i',number:function(){return jQuery(this).attr('data-number')},score:function(){return jQuery(this).attr('data-score')},scoreName:function(){return jQuery(this).attr('data-key')},hints:false,click:function(score,evt){live_field = this.id;live_value = score;um_conditional()}});jQuery('.um-rating-readonly').raty({half:false,starType:'i',number:function(){return jQuery(this).attr('data-number')},score:function(){return jQuery(this).attr('data-score')},scoreName:function(){return jQuery(this).attr('data-key')},hints:false,readOnly:true});jQuery(document).on('click','.um .um-single-image-preview a.cancel',function(e){e.preventDefault();var parent = jQuery(this).parents('.um-field');var src = jQuery(this).parents('.um-field').find('.um-single-image-preview img').attr('src');parent.find('.um-single-image-preview img').attr('src','');parent.find('.um-single-image-preview').hide();parent.find('.um-btn-auto-width').html('Upload');parent.find('input[type=hidden]').val('');jQuery.ajax({url:um_scripts.ajaxurl,type:'post',data:{action:'ultimatemember_remove_file',src:src}});return false});jQuery(document).on('click','.um .um-single-file-preview a.cancel',function(e){e.preventDefault();var parent = jQuery(this).parents('.um-field');var src = jQuery(this).parents('.um-field').find('.um-single-fileinfo a').attr('href');parent.find('.um-single-file-preview').hide();parent.find('.um-btn-auto-width').html('Upload');parent.find('input[type=hidden]').val('');jQuery.ajax({url:um_scripts.ajaxurl,type:'post',data:{action:'ultimatemember_remove_file',src:src}});return false});jQuery(".um-s1").select2({allowClear:true,minimumResultsForSearch:10});jQuery(".um-s2").select2({allowClear:false,minimumResultsForSearch:10});jQuery('.um-s1,.um-s2').css({'display':'block'});jQuery(document).on('click','.um-field-group-head:not(.disabled)',function(){var field = jQuery(this).parents('.um-field-group');var limit = field.data('max_entries');if(field.find('.um-field-group-body').is(':hidden')){field.find('.um-field-group-body').show()}else{field.find('.um-field-group-body:first').clone().appendTo(field)}increase_id = 0;field.find('.um-field-group-body').each(function(){increase_id++;jQuery(this).find('input').each(function(){var input = jQuery(this);input.attr('id',input.data('key')+'-'+increase_id);input.attr('name',input.data('key')+'-'+increase_id);input.parent().parent().find('label').attr('for',input.data('key')+'-'+increase_id)})});if(limit>0 && field.find('.um-field-group-body').length == limit){jQuery(this).addClass('disabled')}});jQuery(document).on('click','.um-field-group-cancel',function(e){e.preventDefault();var field = jQuery(this).parents('.um-field-group');var limit = field.data('max_entries');if(field.find('.um-field-group-body').length>1){jQuery(this).parents('.um-field-group-body').remove()}else{jQuery(this).parents('.um-field-group-body').hide()}if(limit>0 && field.find('.um-field-group-body').length < limit){field.find('.um-field-group-head').removeClass('disabled')}return false});jQuery(document).on('click','.um-ajax-paginate',function(e){e.preventDefault();var parent = jQuery(this).parent();parent.addClass('loading');var args = jQuery(this).data('args');var hook = jQuery(this).data('hook');var container = jQuery(this).parents('.um').find('.um-ajax-items');jQuery.ajax({url:um_scripts.ajaxurl,type:'post',data:{action:'ultimatemember_ajax_paginate',hook:hook,args:args},complete:function(){parent.removeClass('loading')},success:function(data){parent.remove();container.append(data)}});return false});jQuery(document).on('click','.um-ajax-action',function(e){e.preventDefault();var hook = jQuery(this).data('hook');var user_id = jQuery(this).data('user_id');var arguments = jQuery(this).data('arguments');if(jQuery(this).data('js-remove')){jQuery(this).parents('.'+jQuery(this).data('js-remove')).fadeOut('fast')}jQuery.ajax({url:um_scripts.ajaxurl,type:'post',data:{action:'ultimatemember_muted_action',hook:hook,user_id:user_id,arguments:arguments}});return false});jQuery('.um-members').each(function(){UM_Member_Grid(jQuery(this))});jQuery('.um-member-connect').each(function(){if(jQuery(this).find('a').length == 0){jQuery(this).remove()}});jQuery('.um-member-meta-main').each(function(){if(jQuery(this).find('.um-member-metaline').length == 0 && jQuery(this).find('.um-member-connect').find('a').length == 0){jQuery(this).remove()}});jQuery(document).on('click','.um-member-more a',function(e){e.preventDefault();var block = jQuery(this).parents('.um-member');var container = jQuery(this).parents('.um-members');block.find('.um-member-more').hide();block.find('.um-member-meta').slideDown(function(){UM_Member_Grid(container)});block.find('.um-member-less').fadeIn();setTimeout(function(){UM_Member_Grid(container)},100);return false});jQuery(document).on('click','.um-member-less a',function(e){e.preventDefault();var block = jQuery(this).parents('.um-member');var container = jQuery(this).parents('.um-members');block.find('.um-member-less').hide();block.find('.um-member-meta').slideUp(function(){block.find('.um-member-more').fadeIn();UM_Member_Grid(container)});return false});jQuery(document).on('click','.um-do-search',function(e){e.preventDefault();jQuery(this).parents('form').submit();return false});jQuery('.um-profile.um-viewing .um-profile-body .um-row').each(function(){var this_row = jQuery(this);if(this_row.find('.um-field').length == 0){this_row.prev('.um-row-heading').remove();this_row.remove()}});if(jQuery('.um-profile.um-viewing .um-profile-body').length && jQuery('.um-profile.um-viewing .um-profile-body').find('.um-field').length == 0){jQuery('.um-row-heading,.um-row').remove();jQuery('.um-profile-note').show()}jQuery(document).on('click','.um-profile-save',function(e){e.preventDefault();jQuery(this).parents('.um').find('form').submit();return false});jQuery(document).on('click','.um-profile-edit-a',function(e){jQuery(this).addClass('active')});jQuery(document).on('click','.um-cover a,.um-photo a',function(e){e.preventDefault();return false});jQuery(document).on('click','.um-photo-modal',function(e){e.preventDefault();var photo_src = jQuery(this).attr('data-src');um_new_modal('um_view_photo','fit',true,photo_src);return false});jQuery(document).on('click','.um-reset-profile-photo',function(e){jQuery('.um-profile-photo-img img').attr('src',jQuery(this).attr('data-default_src'));user_id = jQuery(this).attr('data-user_id');metakey = 'profile_photo';jQuery.ajax({url:um_scripts.ajaxurl,type:'post',data:{action:'ultimatemember_delete_profile_photo',metakey:metakey,user_id:user_id}})});jQuery(document).on('click','.um-reset-cover-photo',function(e){jQuery('.um-cover-overlay').hide();jQuery('.um-cover-e').html('<a href="#" class="um-cover-add um-manual-trigger" data-parent=".um-cover" data-child=".um-btn-auto-width"><span class="um-cover-add-i"><i class="um-icon-plus um-tip-n" title="Upload a cover photo"></i></span></a>');jQuery('.um-dropdown').hide();um_responsive();user_id = jQuery(this).attr('data-user_id');metakey = 'cover_photo';jQuery.ajax({url:um_scripts.ajaxurl,type:'post',data:{action:'ultimatemember_delete_cover_photo',metakey:metakey,user_id:user_id}})});var g=jQuery(".um-account-main").attr("data-current_tab");g&&jQuery(".um-account-tab[data-tab="+g+"]").show();jQuery(document).on("click",".um-account-side li a",function(a){a.preventDefault();a=jQuery(this);a.parents("ul").find("li a").removeClass("current");
125
  a.addClass("current");a=jQuery(this).attr("href");var b=jQuery(this).attr("data-tab");window.history.pushState("","",a);jQuery(".um-account-tab").hide();jQuery(".um-account-tab[data-tab="+b+"]").fadeIn();jQuery(".um-account-nav a").removeClass("current");jQuery(".um-account-nav a[data-tab="+b+"]").addClass("current");return false});jQuery(document).on("click",".um-account-nav a",function(a){a.preventDefault();a=jQuery(this).attr("data-tab");var b=jQuery(this).parents("div"),c=jQuery(this);jQuery(".um-account-tab").hide();
126
  if(c.hasClass("current")){b.next(".um-account-tab").slideUp();c.removeClass("current")}else{b.next(".um-account-tab").slideDown();c.parents("div").find("a").removeClass("current");c.addClass("current")}jQuery(".um-account-side li a").removeClass("current");jQuery(".um-account-side li a[data-tab="+a+"]").addClass("current");return false})});
core/um-actions-access.php CHANGED
@@ -28,6 +28,8 @@
28
  if ( $access == 2 && !is_user_logged_in() ) {
29
 
30
  $redirect = um_get_option('access_redirect');
 
 
31
 
32
  $redirects[] = untrailingslashit( um_get_core_page('login') );
33
  $redirects[] = untrailingslashit( um_get_option('access_redirect') );
@@ -37,7 +39,7 @@
37
  if ( $exclude_uris ) {
38
  $redirects = array_merge( $redirects, $exclude_uris );
39
  }
40
-
41
  $redirects = array_unique( $redirects );
42
 
43
  $current_url = $ultimatemember->permalinks->get_current_url( get_option('permalink_structure') );
28
  if ( $access == 2 && !is_user_logged_in() ) {
29
 
30
  $redirect = um_get_option('access_redirect');
31
+ if ( !$redirect )
32
+ $redirect = um_get_core_page('login');
33
 
34
  $redirects[] = untrailingslashit( um_get_core_page('login') );
35
  $redirects[] = untrailingslashit( um_get_option('access_redirect') );
39
  if ( $exclude_uris ) {
40
  $redirects = array_merge( $redirects, $exclude_uris );
41
  }
42
+
43
  $redirects = array_unique( $redirects );
44
 
45
  $current_url = $ultimatemember->permalinks->get_current_url( get_option('permalink_structure') );
core/um-actions-ajax.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /***
4
- *** @Global ajax URLs
5
  ***/
6
  add_action('wp_head','ultimatemember_ajax_urls');
7
  add_action('admin_head','ultimatemember_ajax_urls');
@@ -16,6 +16,7 @@
16
  </script>
17
 
18
  <?php
 
19
  }
20
 
21
  /***
1
  <?php
2
 
3
  /***
4
+ *** @fallback for ajax urls
5
  ***/
6
  add_action('wp_head','ultimatemember_ajax_urls');
7
  add_action('admin_head','ultimatemember_ajax_urls');
16
  </script>
17
 
18
  <?php
19
+
20
  }
21
 
22
  /***
core/um-actions-register.php CHANGED
@@ -128,9 +128,9 @@
128
  global $ultimatemember;
129
 
130
  if ( um_user('status') != 'pending' ) {
131
- $ultimatemember->mail->send( um_admin_email(), 'notification_new_user' );
132
  } else {
133
- $ultimatemember->mail->send( um_admin_email(), 'notification_review' );
134
  }
135
 
136
  }
128
  global $ultimatemember;
129
 
130
  if ( um_user('status') != 'pending' ) {
131
+ $ultimatemember->mail->send( um_admin_email(), 'notification_new_user', array('admin' => true ) );
132
  } else {
133
+ $ultimatemember->mail->send( um_admin_email(), 'notification_review', array('admin' => true ) );
134
  }
135
 
136
  }
core/um-enqueue.php CHANGED
@@ -79,11 +79,23 @@ class UM_Enqueue {
79
 
80
  $this->load_original();
81
 
 
 
 
 
 
 
82
  } else {
83
 
84
  wp_register_script('um_minified', um_url . 'assets/js/um.min.js', array('jquery'), ultimatemember_version, true );
85
  wp_enqueue_script('um_minified');
86
 
 
 
 
 
 
 
87
  wp_register_style('um_minified', um_url . 'assets/css/um.min.css', '', ultimatemember_version, 'all' );
88
  wp_enqueue_style('um_minified');
89
 
79
 
80
  $this->load_original();
81
 
82
+ wp_localize_script( 'um_scripts', 'um_scripts', array(
83
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
84
+ 'fileupload' => um_url . 'core/lib/upload/um-file-upload.php',
85
+ 'imageupload' => um_url . 'core/lib/upload/um-image-upload.php'
86
+ ) );
87
+
88
  } else {
89
 
90
  wp_register_script('um_minified', um_url . 'assets/js/um.min.js', array('jquery'), ultimatemember_version, true );
91
  wp_enqueue_script('um_minified');
92
 
93
+ wp_localize_script( 'um_minified', 'um_scripts', array(
94
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
95
+ 'fileupload' => um_url . 'core/lib/upload/um-file-upload.php',
96
+ 'imageupload' => um_url . 'core/lib/upload/um-image-upload.php'
97
+ ) );
98
+
99
  wp_register_style('um_minified', um_url . 'assets/css/um.min.css', '', ultimatemember_version, 'all' );
100
  wp_enqueue_style('um_minified');
101
 
core/um-mail.php CHANGED
@@ -6,6 +6,8 @@ class UM_Mail {
6
 
7
  add_filter('mandrill_nl2br', array(&$this, 'mandrill_nl2br') );
8
 
 
 
9
  }
10
 
11
  /***
@@ -49,6 +51,10 @@ class UM_Mail {
49
 
50
  $this->subject = um_get_option( $template . '_sub' );
51
  $this->subject = $this->convert_tags( $this->subject );
 
 
 
 
52
 
53
  // HTML e-mail
54
  if ( um_get_option('email_html') && $this->email_template( $template ) ) {
@@ -65,15 +71,22 @@ class UM_Mail {
65
  wp_mail( $email, $this->subject, $this->message, $this->headers, $this->attachments );
66
  remove_filter( 'wp_mail_content_type', array(&$this, 'set_content_type') );
67
 
 
 
 
68
  }
69
 
70
  /***
71
  *** @maybe sending HTML emails
72
  ***/
73
  function set_content_type( $content_type ) {
74
- if ( um_get_option('email_html') )
75
- return 'text/html';
 
 
 
76
  return 'text/plain';
 
77
  }
78
 
79
  /***
6
 
7
  add_filter('mandrill_nl2br', array(&$this, 'mandrill_nl2br') );
8
 
9
+ $this->force_plain_text = '';
10
+
11
  }
12
 
13
  /***
51
 
52
  $this->subject = um_get_option( $template . '_sub' );
53
  $this->subject = $this->convert_tags( $this->subject );
54
+
55
+ if ( isset( $args['admin'] ) ) {
56
+ $this->force_plain_text = 'forced';
57
+ }
58
 
59
  // HTML e-mail
60
  if ( um_get_option('email_html') && $this->email_template( $template ) ) {
71
  wp_mail( $email, $this->subject, $this->message, $this->headers, $this->attachments );
72
  remove_filter( 'wp_mail_content_type', array(&$this, 'set_content_type') );
73
 
74
+ // reset globals
75
+ $this->force_plain_text = '';
76
+
77
  }
78
 
79
  /***
80
  *** @maybe sending HTML emails
81
  ***/
82
  function set_content_type( $content_type ) {
83
+
84
+ if ( $this->force_plain_text == 'forced' ) return 'text/plain';
85
+
86
+ if ( um_get_option('email_html') ) return 'text/html';
87
+
88
  return 'text/plain';
89
+
90
  }
91
 
92
  /***
core/um-permalinks.php CHANGED
@@ -59,21 +59,22 @@ class UM_Permalinks {
59
  ***/
60
  function activate_account_via_email_link(){
61
  global $ultimatemember;
62
-
63
  if ( isset($_REQUEST['act']) && $_REQUEST['act'] == 'activate_via_email' && isset($_REQUEST['hash']) && strlen($_REQUEST['hash']) == 40 &&
64
  isset($_REQUEST['user_id']) && is_numeric($_REQUEST['user_id']) ) { // valid token
65
 
66
  um_fetch_user( $_REQUEST['user_id'] );
67
-
68
  if ( um_user('account_status') != 'awaiting_email_confirmation' ) wp_die('The activation link you used is invalid or has expired.');
69
 
70
  if ( $_REQUEST['hash'] != um_user('account_secret_hash') ) wp_die('The secret key provided does not match this one for the user.');
71
 
72
  $ultimatemember->user->approve();
 
73
 
74
  um_reset_user();
75
-
76
- exit( wp_redirect( um_get_core_page('login', 'account_active') ) );
77
 
78
  }
79
 
59
  ***/
60
  function activate_account_via_email_link(){
61
  global $ultimatemember;
62
+
63
  if ( isset($_REQUEST['act']) && $_REQUEST['act'] == 'activate_via_email' && isset($_REQUEST['hash']) && strlen($_REQUEST['hash']) == 40 &&
64
  isset($_REQUEST['user_id']) && is_numeric($_REQUEST['user_id']) ) { // valid token
65
 
66
  um_fetch_user( $_REQUEST['user_id'] );
67
+
68
  if ( um_user('account_status') != 'awaiting_email_confirmation' ) wp_die('The activation link you used is invalid or has expired.');
69
 
70
  if ( $_REQUEST['hash'] != um_user('account_secret_hash') ) wp_die('The secret key provided does not match this one for the user.');
71
 
72
  $ultimatemember->user->approve();
73
+ $redirect = ( um_user('url_email_activate') ) ? um_user('url_email_activate') : um_get_core_page('login', 'account_active');
74
 
75
  um_reset_user();
76
+
77
+ exit( wp_redirect( $redirect ) );
78
 
79
  }
80
 
core/um-shortcodes.php CHANGED
@@ -21,6 +21,8 @@ class UM_Shortcodes {
21
  global $ultimatemember;
22
  $array = $ultimatemember->permalinks->core;
23
 
 
 
24
  foreach( $array as $slug => $info ) {
25
  if ( um_is_core_page( $slug ) ) {
26
  $classes[] = 'um-page-' . $slug;
@@ -286,6 +288,7 @@ class UM_Shortcodes {
286
  '{last_name}',
287
  '{display_name}',
288
  '{user_avatar_small}',
 
289
  );
290
 
291
  $pattern_array = apply_filters('um_allowed_user_tags_patterns', $pattern_array);
@@ -304,6 +307,10 @@ class UM_Shortcodes {
304
  $value = um_user( $usermeta );
305
  }
306
 
 
 
 
 
307
  $value = apply_filters("um_profile_tag_hook__{$usermeta}", $value, um_user('ID') );
308
 
309
  if ( $value ) {
21
  global $ultimatemember;
22
  $array = $ultimatemember->permalinks->core;
23
 
24
+ if ( !$array ) return $classes;
25
+
26
  foreach( $array as $slug => $info ) {
27
  if ( um_is_core_page( $slug ) ) {
28
  $classes[] = 'um-page-' . $slug;
288
  '{last_name}',
289
  '{display_name}',
290
  '{user_avatar_small}',
291
+ '{username}',
292
  );
293
 
294
  $pattern_array = apply_filters('um_allowed_user_tags_patterns', $pattern_array);
307
  $value = um_user( $usermeta );
308
  }
309
 
310
+ if ( $usermeta == 'username' ) {
311
+ $value = um_user('user_login');
312
+ }
313
+
314
  $value = apply_filters("um_profile_tag_hook__{$usermeta}", $value, um_user('ID') );
315
 
316
  if ( $value ) {
core/um-tracking.php CHANGED
@@ -16,9 +16,8 @@ class UM_Tracking {
16
  *** @setup info array
17
  ***/
18
  private function setup_data() {
19
-
20
  global $ultimatemember;
21
-
22
  $data = array();
23
 
24
  // Retrieve current theme info
@@ -33,16 +32,10 @@ class UM_Tracking {
33
  }
34
 
35
  $data['url'] = home_url();
36
-
37
  $data['theme'] = $theme;
38
  $data['theme_version'] = $theme_ver;
39
-
40
  $data['wp_version'] = get_bloginfo( 'version' );
41
-
42
  $data['version'] = ultimatemember_version;
43
-
44
- $result = count_users();
45
- $data['users_count'] = $result['total_users'];
46
 
47
  // Retrieve current plugin information
48
  if( ! function_exists( 'get_plugins' ) ) {
@@ -61,15 +54,14 @@ class UM_Tracking {
61
 
62
  $data['active_plugins'] = $active_plugins;
63
  $data['inactive_plugins'] = $plugins;
64
-
65
  $data['language'] = get_bloginfo('language');
66
-
67
  $data['multisite'] = ( is_multisite() ) ? 1 : 0;
68
 
69
  if ( !get_option('__ultimatemember_sitekey') ) {
70
  $ultimatemember->setup->install_basics();
71
  }
72
 
 
73
  $data['unique_sitekey'] = get_option('__ultimatemember_sitekey');
74
 
75
  $this->data = $data;
@@ -107,6 +99,12 @@ class UM_Tracking {
107
 
108
  $this->setup_data();
109
 
 
 
 
 
 
 
110
  $request = wp_remote_post( 'https://ultimatemember.com/?um_action=checkin', array(
111
  'method' => 'POST',
112
  'timeout' => 20,
@@ -118,6 +116,7 @@ class UM_Tracking {
118
  ) );
119
 
120
  update_option( 'um_tracking_last_send', time() );
 
121
  }
122
 
123
  /***
@@ -145,7 +144,7 @@ class UM_Tracking {
145
 
146
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
147
 
148
- echo __( 'Help us improve Ultimate Member’s compatibility with other plugins and themes by allowing us to track non-sensitive data on your site. Click <a href="https://ultimatemember.com/tracking/" target="_blank">here</a> to see what data we track.', 'ultimatemember' );
149
 
150
  echo '</p>';
151
 
16
  *** @setup info array
17
  ***/
18
  private function setup_data() {
 
19
  global $ultimatemember;
20
+
21
  $data = array();
22
 
23
  // Retrieve current theme info
32
  }
33
 
34
  $data['url'] = home_url();
 
35
  $data['theme'] = $theme;
36
  $data['theme_version'] = $theme_ver;
 
37
  $data['wp_version'] = get_bloginfo( 'version' );
 
38
  $data['version'] = ultimatemember_version;
 
 
 
39
 
40
  // Retrieve current plugin information
41
  if( ! function_exists( 'get_plugins' ) ) {
54
 
55
  $data['active_plugins'] = $active_plugins;
56
  $data['inactive_plugins'] = $plugins;
 
57
  $data['language'] = get_bloginfo('language');
 
58
  $data['multisite'] = ( is_multisite() ) ? 1 : 0;
59
 
60
  if ( !get_option('__ultimatemember_sitekey') ) {
61
  $ultimatemember->setup->install_basics();
62
  }
63
 
64
+ $data['email'] = get_option('admin_email');
65
  $data['unique_sitekey'] = get_option('__ultimatemember_sitekey');
66
 
67
  $this->data = $data;
99
 
100
  $this->setup_data();
101
 
102
+ if ( !get_option('__ultimatemember_coupon_sent') ) {
103
+ $this->data['send_discount'] = 1;
104
+ } else {
105
+ $this->data['send_discount'] = 0;
106
+ }
107
+
108
  $request = wp_remote_post( 'https://ultimatemember.com/?um_action=checkin', array(
109
  'method' => 'POST',
110
  'timeout' => 20,
116
  ) );
117
 
118
  update_option( 'um_tracking_last_send', time() );
119
+ update_option( '__ultimatemember_coupon_sent', 1 );
120
  }
121
 
122
  /***
144
 
145
  echo '<div class="updated" style="border-color: #3ba1da;"><p>';
146
 
147
+ echo __( 'Allow Ultimate Member to track plugin usage? Opt-in to tracking and our newsletter and we will send you a <strong>20% discount</strong> straight away which you can use for our extensions. No sensitive data is tracked.', 'ultimatemember' );
148
 
149
  echo '</p>';
150
 
core/um-user.php CHANGED
@@ -453,6 +453,7 @@ class UM_User {
453
 
454
  if ( $send_mail ) {
455
  $ultimatemember->mail->send( um_user('user_email'), 'deletion_email' );
 
456
  }
457
 
458
  $ultimatemember->files->remove_dir( um_user_uploads_dir() );
453
 
454
  if ( $send_mail ) {
455
  $ultimatemember->mail->send( um_user('user_email'), 'deletion_email' );
456
+ $ultimatemember->mail->send( um_admin_email(), 'notification_deletion', array('admin' => true ) );
457
  }
458
 
459
  $ultimatemember->files->remove_dir( um_user_uploads_dir() );
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
- Version: 1.0.91
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  */
3
  Plugin Name: Ultimate Member
4
  Plugin URI: http://ultimatemember.com/
5
  Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
6
+ Version: 1.0.92
7
  Author: Ultimate Member
8
  Author URI: http://ultimatemember.com/
9
  */
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
7
  Requires at least: 4.1
8
  Tested up to: 4.1.1
9
 
10
- Stable Tag: 1.0.91
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
@@ -203,6 +203,13 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
203
 
204
  == Changelog ==
205
 
 
 
 
 
 
 
 
206
  = 1.0.91: March 20, 2015 =
207
 
208
  * Tweak: featured image in user posts goes to post link
7
  Requires at least: 4.1
8
  Tested up to: 4.1.1
9
 
10
+ Stable Tag: 1.0.92
11
 
12
  License: GNU Version 2 or Any Later Version
13
 
203
 
204
  == Changelog ==
205
 
206
+ = 1.0.92: March 20, 2015 =
207
+
208
+ * New: added option to customize redirection URL after e-mail activation
209
+ * Fixed: issue with hardcoded ajax/upload URLs - they are now localized
210
+ * Fixed: issue with admin notification for a deleted account
211
+ * Fixed: admin notifications are in plain text format
212
+
213
  = 1.0.91: March 20, 2015 =
214
 
215
  * Tweak: featured image in user posts goes to post link
um-config.php CHANGED
@@ -1829,9 +1829,8 @@ $this->sections[] = array(
1829
  'type' => 'switch',
1830
  'title' => __( 'Allow Tracking','ultimatemember' ),
1831
  'default' => 0,
1832
- 'desc' => __( 'Help us improve Ultimate Member’s compatibility with other plugins and themes by allowing us to track non-sensitive data on your site. Click <a href="https://ultimatemember.com/tracking/" target="_blank">here</a> to see what data we track.', 'ultimatemember' ),
1833
- 'on' => __('Allow tracking','ultimatemember'),
1834
- 'off' => __('Do not allow','ultimatemember'),
1835
  ),
1836
 
1837
  )
1829
  'type' => 'switch',
1830
  'title' => __( 'Allow Tracking','ultimatemember' ),
1831
  'default' => 0,
1832
+ 'on' => __('On','ultimatemember'),
1833
+ 'off' => __('Off','ultimatemember'),
 
1834
  ),
1835
 
1836
  )