BuddyPress - Version 2.3.0-beta-2

Version Description

= 2.2.3.1 = See: https://codex.buddypress.org/releases/version-2-2-3-1/

= 2.2.3 = See: https://codex.buddypress.org/releases/version-2-2-3/

= 2.2.2.1 = See: https://codex.buddypress.org/releases/version-2-2-2-1/

= 2.2.2 = See: https://codex.buddypress.org/releases/version-2-2-2/

= 2.2.1 = See: https://codex.buddypress.org/releases/version-2-2-1/

= 2.2 = See: https://codex.buddypress.org/releases/version-2-2/

= 2.1 = See: https://codex.buddypress.org/releases/version-2-1/

= 2.0.3 = See: https://codex.buddypress.org/releases/version-2-0-3/

= 2.0.2 = See: https://codex.buddypress.org/releases/version-2-0-2/

= 2.0.1 = See: https://codex.buddypress.org/releases/version-2-0-1/

= 2.0 = See: https://codex.buddypress.org/releases/version-2-0/

= 1.9.2 = See: https://codex.buddypress.org/releases/version-1-9-2/

= 1.9.1 = See: https://codex.buddypress.org/releases/version-1-9-1/

= 1.9 = See: https://codex.buddypress.org/releases/version-1-9/

= 1.8.1 = See: https://codex.buddypress.org/releases/version-1-8-1/

= 1.8 = See: https://codex.buddypress.org/releases/version-1-8/

= 1.7.3 = See: https://codex.buddypress.org/releases/version-1-7-3/

= 1.7.2 = See: https://codex.buddypress.org/releases/version-1-7-2/

= 1.7.1 = See: https://codex.buddypress.org/releases/version-1-7-1/

= 1.7 = See: https://codex.buddypress.org/releases/version-1-7/

= 1.6.5 = See: https://codex.buddypress.org/releases/version-1-6-5/

= 1.6.4 = See: https://codex.buddypress.org/releases/version-1-6-4/

= 1.6.3 = See: https://codex.buddypress.org/releases/version-1-6-3/

= 1.6.2 = Compatibility with WordPress 3.5

= 1.6.1 = Fixes 4 bugs

= 1.6 = See: https://codex.buddypress.org/releases/version-1-6/

= 1.5 = See: https://codex.buddypress.org/releases/version-1-5/

= 1.2.9 = Compatibility with WordPress 3.2

= 1.2.8 = Compatibility with WordPress 3.1

= 1.2.7 = Fixes over 10 bugs.

Download this release

Release Info

Developer johnjamesjacoby
Plugin Icon 128x128 BuddyPress
Version 2.3.0-beta-2
Comparing to
See all releases

Code changes from version 2.3.0-beta1 to 2.3.0-beta-2

Files changed (61) hide show
  1. bp-activity/admin/js/admin.min.js +1 -1
  2. bp-activity/bp-activity-functions.php +1 -1
  3. bp-activity/js/mentions.min.js +1 -1
  4. bp-core/bp-core-admin.php +29 -33
  5. bp-core/bp-core-attachments.php +9 -9
  6. bp-core/bp-core-avatars.php +13 -0
  7. bp-core/deprecated/js/autocomplete/jquery.autocomplete.min.js +1 -1
  8. bp-core/deprecated/js/autocomplete/jquery.autocompletefb.min.js +1 -1
  9. bp-core/deprecated/js/autocomplete/jquery.bgiframe.min.js +1 -1
  10. bp-core/deprecated/js/autocomplete/jquery.dimensions.min.js +1 -1
  11. bp-core/js/avatar.min.js +1 -1
  12. bp-core/js/bp-plupload.min.js +1 -1
  13. bp-core/js/confirm.min.js +1 -1
  14. bp-core/js/jquery-cookie.min.js +1 -1
  15. bp-core/js/jquery-query.min.js +1 -1
  16. bp-core/js/jquery-scroll-to.min.js +1 -1
  17. bp-core/js/jquery.atwho.min.js +1 -1
  18. bp-core/js/jquery.caret.min.js +1 -1
  19. bp-core/js/webcam.min.js +1 -1
  20. bp-core/js/widget-members.min.js +1 -1
  21. bp-friends/js/widget-friends.min.js +1 -1
  22. bp-groups/admin/js/admin.min.js +1 -1
  23. bp-groups/js/widget-groups.min.js +1 -1
  24. bp-loader.php +1 -1
  25. bp-members/admin/js/admin.min.js +1 -1
  26. bp-messages/bp-messages-actions.php +4 -4
  27. bp-messages/bp-messages-cache.php +7 -5
  28. bp-messages/bp-messages-filters.php +2 -2
  29. bp-messages/bp-messages-functions.php +57 -23
  30. bp-messages/bp-messages-loader.php +3 -3
  31. bp-messages/bp-messages-notifications.php +13 -12
  32. bp-messages/bp-messages-screens.php +1 -1
  33. bp-messages/bp-messages-template.php +68 -59
  34. bp-messages/bp-messages-widgets.php +6 -3
  35. bp-messages/classes/class-bp-messages-message.php +10 -6
  36. bp-messages/classes/class-bp-messages-notice.php +7 -7
  37. bp-messages/classes/class-bp_messages-thread.php +40 -25
  38. bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php +1 -1
  39. bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php +0 -6
  40. bp-templates/bp-legacy/buddypress/groups/single/send-invites.php +6 -0
  41. bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php +1 -1
  42. bp-templates/bp-legacy/css/buddypress-rtl.css +9 -2
  43. bp-templates/bp-legacy/css/buddypress-rtl.min.css +1 -1
  44. bp-templates/bp-legacy/css/buddypress.css +9 -2
  45. bp-templates/bp-legacy/css/buddypress.min.css +1 -1
  46. bp-templates/bp-legacy/css/twentyfifteen-rtl.css +496 -201
  47. bp-templates/bp-legacy/css/twentyfifteen-rtl.min.css +1 -1
  48. bp-templates/bp-legacy/css/twentyfifteen.css +496 -201
  49. bp-templates/bp-legacy/css/twentyfifteen.min.css +1 -1
  50. bp-templates/bp-legacy/css/twentyfifteen.scss +2066 -1483
  51. bp-templates/bp-legacy/css/twentyfourteen-rtl.css +140 -36
  52. bp-templates/bp-legacy/css/twentyfourteen-rtl.min.css +1 -1
  53. bp-templates/bp-legacy/css/twentyfourteen.css +140 -36
  54. bp-templates/bp-legacy/css/twentyfourteen.min.css +1 -1
  55. bp-templates/bp-legacy/css/twentyfourteen.scss +251 -32
  56. bp-templates/bp-legacy/js/buddypress.min.js +1 -1
  57. bp-templates/bp-legacy/js/password-verify.min.js +1 -1
  58. bp-xprofile/admin/js/admin.min.js +1 -1
  59. buddypress.pot +77 -80
  60. humans.txt +7 -2
  61. readme.txt +1 -1
bp-activity/admin/js/admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){var b={init:function(){a(document).on("click",".row-actions a.reply",b.open),a(document).on("click","#bp-activities-container a.cancel",b.close),a(document).on("click","#bp-activities-container a.save",b.send),a(document).on("keyup","#bp-activities:visible",function(a){27===a.which&&b.close()})},open:function(){var b=a("#bp-activities-container").hide();return a(this).parents("tr").after(b),b.fadeIn("300"),a("#bp-activities").focus(),!1},close:function(){return a("#bp-activities-container").fadeOut("200",function(){a("#bp-activities").val("").blur(),a("#bp-replysubmit .error").html("").hide(),a("#bp-replysubmit .waiting").hide()}),!1},send:function(){a("#bp-replysubmit .error").hide(),a("#bp-replysubmit .waiting").show();var c={};return c["_ajax_nonce-bp-activity-admin-reply"]=a('#bp-activities-container input[name="_ajax_nonce-bp-activity-admin-reply"]').val(),c.action="bp-activity-admin-reply",c.content=a("#bp-activities").val(),c.parent_id=a("#bp-activities-container").prev().data("parent_id"),c.root_id=a("#bp-activities-container").prev().data("root_id"),a.ajax({data:c,type:"POST",url:ajaxurl,error:function(a){b.error(a)},success:function(a){b.show(a)}}),!1},error:function(b){var c=b.statusText;a("#bp-replysubmit .waiting").hide(),b.responseText&&(c=b.responseText.replace(/<.[^<>]*?>/g,"")),c&&a("#bp-replysubmit .error").html(c).show()},show:function(c){var d,e,f;return"string"==typeof c?(b.error({responseText:c}),!1):(f=wpAjax.parseAjaxResponse(c),f.errors?(b.error({responseText:wpAjax.broken}),!1):(f=f.responses[0],void a("#bp-activities-container").fadeOut("200",function(){a("#bp-activities").val("").blur(),a("#bp-replysubmit .error").html("").hide(),a("#bp-replysubmit .waiting").hide(),a("#bp-activities-container").before(f.data),e=a("#activity-"+f.id),d=e.closest(".widefat").css("backgroundColor"),e.animate({backgroundColor:"#CEB"},300).animate({backgroundColor:d},300)})))}};a(document).ready(function(){b.init(),a("#bp_activity_action h3, #bp_activity_content h3").unbind("click"),"undefined"!=typeof postboxes&&postboxes.add_postbox_toggles(bp_activity_admin_vars.page)})}(jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){var b={init:function(){a(document).on("click",".row-actions a.reply",b.open),a(document).on("click","#bp-activities-container a.cancel",b.close),a(document).on("click","#bp-activities-container a.save",b.send),a(document).on("keyup","#bp-activities:visible",function(a){27===a.which&&b.close()})},open:function(){var b=a("#bp-activities-container").hide();return a(this).parents("tr").after(b),b.fadeIn("300"),a("#bp-activities").focus(),!1},close:function(){return a("#bp-activities-container").fadeOut("200",function(){a("#bp-activities").val("").blur(),a("#bp-replysubmit .error").html("").hide(),a("#bp-replysubmit .waiting").hide()}),!1},send:function(){a("#bp-replysubmit .error").hide(),a("#bp-replysubmit .waiting").show();var c={};return c["_ajax_nonce-bp-activity-admin-reply"]=a('#bp-activities-container input[name="_ajax_nonce-bp-activity-admin-reply"]').val(),c.action="bp-activity-admin-reply",c.content=a("#bp-activities").val(),c.parent_id=a("#bp-activities-container").prev().data("parent_id"),c.root_id=a("#bp-activities-container").prev().data("root_id"),a.ajax({data:c,type:"POST",url:ajaxurl,error:function(a){b.error(a)},success:function(a){b.show(a)}}),!1},error:function(b){var c=b.statusText;a("#bp-replysubmit .waiting").hide(),b.responseText&&(c=b.responseText.replace(/<.[^<>]*?>/g,"")),c&&a("#bp-replysubmit .error").html(c).show()},show:function(c){var d,e,f;return"string"==typeof c?(b.error({responseText:c}),!1):(f=wpAjax.parseAjaxResponse(c),f.errors?(b.error({responseText:wpAjax.broken}),!1):(f=f.responses[0],void a("#bp-activities-container").fadeOut("200",function(){a("#bp-activities").val("").blur(),a("#bp-replysubmit .error").html("").hide(),a("#bp-replysubmit .waiting").hide(),a("#bp-activities-container").before(f.data),e=a("#activity-"+f.id),d=e.closest(".widefat").css("backgroundColor"),e.animate({backgroundColor:"#CEB"},300).animate({backgroundColor:d},300)})))}};a(document).ready(function(){b.init(),a("#bp_activity_action h3, #bp_activity_content h3").unbind("click"),"undefined"!=typeof postboxes&&postboxes.add_postbox_toggles(bp_activity_admin_vars.page)})}(jQuery);
bp-activity/bp-activity-functions.php CHANGED
@@ -1656,7 +1656,7 @@ function bp_activity_add( $args = '' ) {
1656
'recorded_time' => bp_core_current_time(), // The GMT time that this activity was recorded
1657
'hide_sitewide' => false, // Should this be hidden on the sitewide activity stream?
1658
'is_spam' => false, // Is this activity item to be marked as spam?
1659
- ) );
1660
1661
// Make sure we are backwards compatible
1662
if ( empty( $r['component'] ) && !empty( $r['component_name'] ) ) {
1656
'recorded_time' => bp_core_current_time(), // The GMT time that this activity was recorded
1657
'hide_sitewide' => false, // Should this be hidden on the sitewide activity stream?
1658
'is_spam' => false, // Is this activity item to be marked as spam?
1659
+ ), 'activity_add' );
1660
1661
// Make sure we are backwards compatible
1662
if ( empty( $r['component'] ) && !empty( $r['component_name'] ) ) {
bp-activity/js/mentions.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){var b,c=[];a.fn.bp_mentions=function(d){a.isArray(d)&&(d={data:d});var e={delay:200,hide_without_suffix:!0,insert_tpl:"</>${atwho-data-value}</>",limit:10,start_with_space:!1,suffix:"",callbacks:{filter:function(a,b,c){var d,e,f,g=[],h=new RegExp("^"+a+"| "+a,"ig");for(e=0,f=b.length;f>e;e++)d=b[e],d[c].toLowerCase().match(h)&&g.push(d);return g},highlighter:function(a,b){if(!b)return a;var c=new RegExp(">(\\s*|[\\w\\s]*)("+this.at.replace("+","\\+")+"?"+b.replace("+","\\+")+")([\\w ]*)\\s*<","ig");return a.replace(c,function(a,b,c,d){return">"+b+"<strong>"+c+"</strong>"+d+"<"})},before_reposition:function(b){var c,d,e,f,g=a("#atwho-ground-"+this.id+" .atwho-view"),h=a("body"),i=this.$inputor.data("atwho");"undefined"!==i&&"undefined"!==i.iframe&&null!==i.iframe?(c=this.$inputor.caret("offset",{iframe:i.iframe}),e=a(i.iframe).offset(),"undefined"!==e&&(c.left+=e.left,c.top+=e.top)):c=this.$inputor.caret("offset"),c.left>h.width()/2?(g.addClass("right"),f=c.left-b.left-this.view.$el.width()):(g.removeClass("right"),f=c.left-b.left+1),h.width()<=400&&a(document).scrollTop(c.top-6),d=parseInt(this.$inputor.css("line-height").substr(0,this.$inputor.css("line-height").length-2),10),(!d||5>d)&&(d=19),b.top=c.top+d,b.left+=f},inserting_wrapper:function(a,b,c){return""+b+c}}},f={callbacks:{remote_filter:function(d,e){var f=a(this),g={};return b=c[d],"object"==typeof b?void e(b):(f.xhr&&f.xhr.abort(),g={action:"bp_get_suggestions",term:d,type:"members"},a.isNumeric(this.$inputor.data("suggestions-group-id"))&&(g["group-id"]=parseInt(this.$inputor.data("suggestions-group-id"),10)),void(f.xhr=a.getJSON(ajaxurl,g).done(function(b){if(b.success){var f=a.map(b.data,function(a){return a.search=a.search||a.ID+" "+a.name,a});c[d]=f,e(f)}})))}},data:a.map(d.data,function(a){return a.search=a.search||a.ID+" "+a.name,a}),at:"@",search_key:"search",tpl:'<li data-value="@${ID}"><img src="${image}" /><span class="username">@${ID}</span><small>${name}</small></li>'},g=a.extend(!0,{},e,f,d);return a.fn.atwho.call(this,g)},a(document).ready(function(){var b,c=0,d=[];"object"==typeof window.BP_Suggestions&&(d=window.BP_Suggestions.friends||d),b=function(){return(4>c||!a("body").hasClass("wp-admin"))&&(c++,"undefined"==typeof window.tinyMCE||null===window.tinyMCE.activeEditor||"undefined"==typeof window.tinyMCE.activeEditor)?void setTimeout(b,500):void a(window.tinyMCE.activeEditor.contentDocument.activeElement).atwho("setIframe",a("#content_ifr")[0]).bp_mentions(d)},a(".bp-suggestions, #comments form textarea, .wp-editor-area").bp_mentions(d),b()})}(jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){var b,c=[];a.fn.bp_mentions=function(d){a.isArray(d)&&(d={data:d});var e={delay:200,hide_without_suffix:!0,insert_tpl:"</>${atwho-data-value}</>",limit:10,start_with_space:!1,suffix:"",callbacks:{filter:function(a,b,c){var d,e,f,g=[],h=new RegExp("^"+a+"| "+a,"ig");for(e=0,f=b.length;f>e;e++)d=b[e],d[c].toLowerCase().match(h)&&g.push(d);return g},highlighter:function(a,b){if(!b)return a;var c=new RegExp(">(\\s*|[\\w\\s]*)("+this.at.replace("+","\\+")+"?"+b.replace("+","\\+")+")([\\w ]*)\\s*<","ig");return a.replace(c,function(a,b,c,d){return">"+b+"<strong>"+c+"</strong>"+d+"<"})},before_reposition:function(b){var c,d,e,f,g=a("#atwho-ground-"+this.id+" .atwho-view"),h=a("body"),i=this.$inputor.data("atwho");"undefined"!==i&&"undefined"!==i.iframe&&null!==i.iframe?(c=this.$inputor.caret("offset",{iframe:i.iframe}),e=a(i.iframe).offset(),"undefined"!==e&&(c.left+=e.left,c.top+=e.top)):c=this.$inputor.caret("offset"),c.left>h.width()/2?(g.addClass("right"),f=c.left-b.left-this.view.$el.width()):(g.removeClass("right"),f=c.left-b.left+1),h.width()<=400&&a(document).scrollTop(c.top-6),d=parseInt(this.$inputor.css("line-height").substr(0,this.$inputor.css("line-height").length-2),10),(!d||5>d)&&(d=19),b.top=c.top+d,b.left+=f},inserting_wrapper:function(a,b,c){return""+b+c}}},f={callbacks:{remote_filter:function(d,e){var f=a(this),g={};return b=c[d],"object"==typeof b?void e(b):(f.xhr&&f.xhr.abort(),g={action:"bp_get_suggestions",term:d,type:"members"},a.isNumeric(this.$inputor.data("suggestions-group-id"))&&(g["group-id"]=parseInt(this.$inputor.data("suggestions-group-id"),10)),void(f.xhr=a.getJSON(ajaxurl,g).done(function(b){if(b.success){var f=a.map(b.data,function(a){return a.search=a.search||a.ID+" "+a.name,a});c[d]=f,e(f)}})))}},data:a.map(d.data,function(a){return a.search=a.search||a.ID+" "+a.name,a}),at:"@",search_key:"search",tpl:'<li data-value="@${ID}"><img src="${image}" /><span class="username">@${ID}</span><small>${name}</small></li>'},g=a.extend(!0,{},e,f,d);return a.fn.atwho.call(this,g)},a(document).ready(function(){var b,c=0,d=[];"object"==typeof window.BP_Suggestions&&(d=window.BP_Suggestions.friends||d),b=function(){return(4>c||!a("body").hasClass("wp-admin"))&&(c++,"undefined"==typeof window.tinyMCE||null===window.tinyMCE.activeEditor||"undefined"==typeof window.tinyMCE.activeEditor)?void setTimeout(b,500):void a(window.tinyMCE.activeEditor.contentDocument.activeElement).atwho("setIframe",a("#content_ifr")[0]).bp_mentions(d)},a(".bp-suggestions, #comments form textarea, .wp-editor-area").bp_mentions(d),b()})}(jQuery);
bp-core/bp-core-admin.php CHANGED
@@ -688,6 +688,11 @@ class BP_Admin {
688
<a class="web" href="https://profiles.wordpress.org/tw2113">Michael Beckwith</a>
689
<span class="title"><?php _e( 'Core Developer', 'buddypress' ); ?></span>
690
</li>
691
</ul>
692
693
<h4 class="wp-people-group"><?php _e( 'Recent Rockstars', 'buddypress' ); ?></h4>
@@ -708,59 +713,50 @@ class BP_Admin {
708
<a href="https://profiles.wordpress.org/netweb"><img src="//www.gravatar.com/avatar/97e1620b501da675315ba7cfb740e80f?s=60" class="gravatar" alt="Stephen Edgar" /></a>
709
<a class="web" href="https://profiles.wordpress.org/netweb">Stephen Edgar</a>
710
</li>
711
- <li class="wp-person" id="wp-person-hnla">
712
- <a href="https://profiles.wordpress.org/hnla"><img src="//www.gravatar.com/avatar/3860c955aa3f79f13b92826ae47d07fe?s=60" class="gravatar" alt="Hugo Ashmore" /></a>
713
- <a class="web" href="https://profiles.wordpress.org/hnla">Hugo</a>
714
- </li>
715
</ul>
716
717
<h4 class="wp-people-group"><?php printf( esc_html__( 'Contributors to BuddyPress %s', 'buddypress' ), self::display_version() ); ?></h4>
718
<p class="wp-credits-list">
719
- <a href="https://profiles.wordpress.org/andemann/">andemann</a>,
720
- <a href="https://profiles.wordpress.org/dontdream/">Andrea Tarantini (dontdream)</a>,
721
<a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>,
722
- <a href="https://profiles.wordpress.org/thebrandonallen/">Brandon Allen (thebrandonallen)</a>,
723
- <a href="https://profiles.wordpress.org/Clean-Cole/">Clean-Cole</a>,
724
- <a href="https://profiles.wordpress.org/colabsadmin/">colabsadmin</a>,
725
- <a href="https://profiles.wordpress.org/colorful-tones/">Damon Cook (colorful tones)</a>,
726
- <a href="https://profiles.wordpress.org/danbp/">danbp</a>,
727
<a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>,
728
- <a href="https://profiles.wordpress.org/fahmiadib/">Fahmi Adib (fahmiadib)</a>,
729
<a href="https://profiles.wordpress.org/Mamaduka/">George Mamadashvili (Mamaduka)</a>,
730
<a href="https://profiles.wordpress.org/gregrickaby/">Greg Rickaby (gregrickaby)</a>,
731
<a href="https://profiles.wordpress.org/hnla/">Hugo (hnla)</a>,
732
- <a href="https://profiles.wordpress.org/whyisjake/">Jake Spurlock (whyisjake)</a>,
733
- <a href="https://profiles.wordpress.org/ev3rywh3re/">Jess Planck (ev3rywh3re)</a>,
734
<a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>,
735
- <a href="https://profiles.wordpress.org/joshshashaty/">Josh (joshshashaty)</a>,
736
<a href="https://profiles.wordpress.org/jreeve/">jreeve</a>,
737
- <a href="https://profiles.wordpress.org/lakrisgubben/">lakrisgubben</a>,
738
<a href="https://profiles.wordpress.org/Offereins">Laurens Offereins (Offereins)</a>
739
<a href="https://profiles.wordpress.org/lenasterg/">lenasterg</a>,
740
- <a href="https://profiles.wordpress.org/nofearinc/">Mario Peshev (nofearinc)</a>,
741
<a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>,
742
<a href="https://profiles.wordpress.org/mercime/">mercime</a>,
743
<a href="https://profiles.wordpress.org/tw2113/">Michael Beckwith (tw2113)</a>,
744
- <a href="https://profiles.wordpress.org/modemlooper/">modemlooper</a>,
745
- <a href="https://profiles.wordpress.org/sooskriszta/">OC2PS (sooskriszta)</a>,
746
<a href="https://profiles.wordpress.org/DJPaul/">Paul Gibbs (DJPaul)</a>,
747
- <a href="https://profiles.wordpress.org/pro120/">pro120</a>,
748
- <a href="https://profiles.wordpress.org/psycleuk/">psycleuk</a>,
749
<a href="https://profiles.wordpress.org/r-a-y/">r-a-y</a>,
750
- <a href="https://profiles.wordpress.org/espellcaste/">Renato Alves (espellcaste)</a>,
751
- <a href="https://profiles.wordpress.org/SGr33n/">Sergio De Falco (SGr33n)</a>,
752
- <a href="https://profiles.wordpress.org/shpitzyl/">shpitzyl</a>,
753
- <a href="https://profiles.wordpress.org/slaFFik/">Slava UA (slaFFik)</a>,
754
- <a href="https://profiles.wordpress.org/standardspace/">standardspace</a>,
755
<a href="https://profiles.wordpress.org/netweb/">Stephen Edgar (netweb)</a>,
756
<a href="https://profiles.wordpress.org/svenl77/">svenl77</a>,
757
- <a href="https://profiles.wordpress.org/tharsheblows/">tharsheblows</a>,
758
- <a href="https://profiles.wordpress.org/thebigA/">thebigA</a>,
759
- <a href="https://profiles.wordpress.org/thomaslhotta/">thomaslhotta</a>,
760
- <a href="https://profiles.wordpress.org/tometzky/">Tomasz Ostrowski (tometzky)</a>,
761
- <a href="https://profiles.wordpress.org/unsalkorkmaz/">Unsal Korkmaz (unsalkorkmaz)</a>,
762
- <a href="https://profiles.wordpress.org/vimes1984/">vimes1984</a>,
763
- <a href="https://profiles.wordpress.org/wonderboymusic/">Scott Taylor (wonderboymusic)</a>.
764
</p>
765
766
<h4 class="wp-people-group"><?php _e( 'External Libraries', 'buddypress' ); ?></h4>
688
<a class="web" href="https://profiles.wordpress.org/tw2113">Michael Beckwith</a>
689
<span class="title"><?php _e( 'Core Developer', 'buddypress' ); ?></span>
690
</li>
691
+ <li class="wp-person" id="wp-person-hnla">
692
+ <a href="https://profiles.wordpress.org/hnla"><img src="//www.gravatar.com/avatar/3860c955aa3f79f13b92826ae47d07fe?s=60" class="gravatar" alt="Hugo Ashmore" /></a>
693
+ <a class="web" href="https://profiles.wordpress.org/hnla">Hugo</a>
694
+ <span class="title"><?php _e( 'Core Developer', 'buddypress' ); ?></span>
695
+ </li>
696
</ul>
697
698
<h4 class="wp-people-group"><?php _e( 'Recent Rockstars', 'buddypress' ); ?></h4>
713
<a href="https://profiles.wordpress.org/netweb"><img src="//www.gravatar.com/avatar/97e1620b501da675315ba7cfb740e80f?s=60" class="gravatar" alt="Stephen Edgar" /></a>
714
<a class="web" href="https://profiles.wordpress.org/netweb">Stephen Edgar</a>
715
</li>
716
</ul>
717
718
<h4 class="wp-people-group"><?php printf( esc_html__( 'Contributors to BuddyPress %s', 'buddypress' ), self::display_version() ); ?></h4>
719
<p class="wp-credits-list">
720
+ <a href="https://profiles.wordpress.org/jorbin/">Aaron Jorbin (aaronjorbin)</a>,
721
<a href="https://profiles.wordpress.org/boonebgorges/">Boone B Gorges (boonebgorges)</a>,
722
+ <a href="https://profiles.wordpress.org/sbrajesh/">Brajesh Singh (sbrajesh)</a>,
723
+ <a href="https://profiles.wordpress.org/CristinaCannon/">CristinaCannon</a>,
724
<a href="https://profiles.wordpress.org/dcavins/">David Cavins (dcavins)</a>,
725
+ <a href="https://profiles.wordpress.org/wpdennis/">Dennis (wpdennis)</a>,
726
+ <a href="https://profiles.wordpress.org/ocean90/">Dominik Schilling (ocean90)</a>,
727
+ ecehren,
728
+ <a href="https://profiles.wordpress.org/finzend/">finzend</a>,
729
<a href="https://profiles.wordpress.org/Mamaduka/">George Mamadashvili (Mamaduka)</a>,
730
<a href="https://profiles.wordpress.org/gregrickaby/">Greg Rickaby (gregrickaby)</a>,
731
+ <a href="https://profiles.wordpress.org/henrywright/">Henry Wright (henry.wright)</a>,
732
<a href="https://profiles.wordpress.org/hnla/">Hugo (hnla)</a>,
733
+ <a href="https://profiles.wordpress.org/jaimieolmstead/">jaimieolmstead</a>,
734
<a href="https://profiles.wordpress.org/johnjamesjacoby/">John James Jacoby (johnjamesjacoby)</a>,
735
<a href="https://profiles.wordpress.org/jreeve/">jreeve</a>,
736
+ <a href="https://profiles.wordpress.org/JustinSainton/">Justin Sainton (JustinSainton)</a>,
737
+ <a href="https://profiles.wordpress.org/kadamwhite/">K.Adam White (kadamwhite)</a>,
738
<a href="https://profiles.wordpress.org/Offereins">Laurens Offereins (Offereins)</a>
739
<a href="https://profiles.wordpress.org/lenasterg/">lenasterg</a>,
740
+ <a href="https://profiles.wordpress.org/natrio/">Marc (natrio)</a>,
741
+ <a href="https://profiles.wordpress.org/mechter/">Markus Echterhoff (mechter)</a>,
742
<a href="https://profiles.wordpress.org/imath/">Mathieu Viet (imath)</a>,
743
+ <a href="https://profiles.wordpress.org/melhop/">melhop</a>,
744
<a href="https://profiles.wordpress.org/mercime/">mercime</a>,
745
<a href="https://profiles.wordpress.org/tw2113/">Michael Beckwith (tw2113)</a>,
746
+ <a href="https://profiles.wordpress.org/pareshradadiya/">paresh.radadiya (pareshradadiya)</a>,
747
<a href="https://profiles.wordpress.org/DJPaul/">Paul Gibbs (DJPaul)</a>,
748
+ <a href="https://profiles.wordpress.org/prometheus-fire/">Prometheus Fire</a>,
749
<a href="https://profiles.wordpress.org/r-a-y/">r-a-y</a>,
750
+ <a href="https://profiles.wordpress.org/rogercoathup/">Roger Coathup (rogercoathup)</a>,
751
+ <a href="https://profiles.wordpress.org/dtc7240/">Scott Seitz (dtc7240)</a>,
752
+ <a href="https://profiles.wordpress.org/wonderboymusic/">Scott Taylor (wonderboymusic)</a>.
753
+ <a href="https://profiles.wordpress.org/SergeyBiryukov/">Sergey Biryukov (SergeyBiryukov)</a>,
754
+ <a href="https://profiles.wordpress.org/shanebp/">shanebp</a>,
755
<a href="https://profiles.wordpress.org/netweb/">Stephen Edgar (netweb)</a>,
756
<a href="https://profiles.wordpress.org/svenl77/">svenl77</a>,
757
+ <a href="https://profiles.wordpress.org/WeddyWood/">WeddyWood</a>,
758
+ <a href="https://profiles.wordpress.org/wolfhoundjesse/">wolfhoundjesse</a>,
759
+ <a href="https://profiles.wordpress.org/xgz/">xgz</a>.
760
</p>
761
762
<h4 class="wp-people-group"><?php _e( 'External Libraries', 'buddypress' ); ?></h4>
bp-core/bp-core-attachments.php CHANGED
@@ -223,18 +223,18 @@ function bp_attachments_enqueue_scripts( $class = '' ) {
223
224
// Create the Camera Nav if the WebCam capture feature is enabled
225
if ( bp_avatar_use_webcam() && 'user' === $object ) {
226
- $avatar_nav['camera'] = array( 'id' => 'camera', 'caption' => __( 'Camera', 'buddypress' ), 'order' => 10 );
227
228
// Set warning messages
229
$strings['camera_warnings'] = array(
230
- 'requesting' => __( 'Requesting video stream, please authorize this website to access to your camera.', 'buddypress'),
231
- 'loading' => __( 'Please wait for the video to load.', 'buddypress' ),
232
- 'loaded' => __( 'Video stream loaded. You can use the capture button to display the profile photo preview.', 'buddypress' ),
233
- 'noaccess' => __( 'You denied this website to access to your camera. Please use the upload form.', 'buddypress' ),
234
- 'errormsg' => __( 'Your browser is not supported. Please use the upload form.', 'buddypress' ),
235
- 'videoerror' => __( 'Video error. Please use the upload form.', 'buddypress' ),
236
- 'ready' => __( 'Your profile photo is ready, use the save button to validate.', 'buddypress' ),
237
- 'nocapture' => __( 'No profile photo was captured, please use the capture button first.', 'buddypress' ),
238
);
239
}
240
223
224
// Create the Camera Nav if the WebCam capture feature is enabled
225
if ( bp_avatar_use_webcam() && 'user' === $object ) {
226
+ $avatar_nav['camera'] = array( 'id' => 'camera', 'caption' => __( 'Take Photo', 'buddypress' ), 'order' => 10 );
227
228
// Set warning messages
229
$strings['camera_warnings'] = array(
230
+ 'requesting' => __( 'Please allow us to access to your camera.', 'buddypress'),
231
+ 'loading' => __( 'Please wait as we access your camera.', 'buddypress' ),
232
+ 'loaded' => __( 'Camera loaded. Click on the "Capture" button to take your photo.', 'buddypress' ),
233
+ 'noaccess' => __( 'It looks like you do not have a webcam or we were unable to get permission to use your webcam. Please upload a photo instead.', 'buddypress' ),
234
+ 'errormsg' => __( 'Your browser is not supported. Please upload a photo instead.', 'buddypress' ),
235
+ 'videoerror' => __( 'Video error. Please upload a photo instead.', 'buddypress' ),
236
+ 'ready' => __( 'Your profile photo is ready. Click on the "Save" button to use this photo.', 'buddypress' ),
237
+ 'nocapture' => __( 'No photo was captured. Click on the "Capture" button to take your photo.', 'buddypress' ),
238
);
239
}
240
bp-core/bp-core-avatars.php CHANGED
@@ -1838,9 +1838,13 @@ function bp_avatar_is_front_edit() {
1838
*
1839
* @since BuddyPress (2.3.0)
1840
*
1841
* @return bool True to load the Webcam Avatar UI part. False otherwise.
1842
*/
1843
function bp_avatar_use_webcam() {
1844
/**
1845
* Do not use the webcam feature for mobile devices
1846
* to avoid possible confusions.
@@ -1849,6 +1853,15 @@ function bp_avatar_use_webcam() {
1849
return false;
1850
}
1851
1852
/**
1853
* Use this filter if you need to disable the webcam capture feature
1854
* by returning false.
1838
*
1839
* @since BuddyPress (2.3.0)
1840
*
1841
+ * @global $is_safari
1842
+ * @global $is_IE
1843
* @return bool True to load the Webcam Avatar UI part. False otherwise.
1844
*/
1845
function bp_avatar_use_webcam() {
1846
+ global $is_safari, $is_IE;
1847
+
1848
/**
1849
* Do not use the webcam feature for mobile devices
1850
* to avoid possible confusions.
1853
return false;
1854
}
1855
1856
+ /**
1857
+ * Bail when the browser does not support getUserMedia.
1858
+ *
1859
+ * @see http://caniuse.com/#feat=stream
1860
+ */
1861
+ if ( $is_safari || $is_IE ) {
1862
+ return false;
1863
+ }
1864
+
1865
/**
1866
* Use this filter if you need to disable the webcam capture feature
1867
* by returning false.
bp-core/deprecated/js/autocomplete/jquery.autocomplete.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){a.fn.extend({autocomplete:function(b,c){var d="string"==typeof b;return c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c),c.highlight=c.highlight||function(a){return a},this.each(function(){new a.Autocompleter(this,c)})},result:function(a){return this.bind("result",a)},search:function(a){return this.trigger("search",[a])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(a){return this.trigger("setOptions",[a])},unautocomplete:function(){return this.trigger("unautocomplete")}}),a.Autocompleter=function(b,c){function d(){var a=x.selected();if(!a)return!1;var b=a.result;if(t=b,c.multiple){var d=f(s.val());d.length>1&&(b=d.slice(0,d.length-1).join(c.multipleSeparator)+c.multipleSeparator+b),b+=c.multipleSeparator}return s.val(b),j(),s.trigger("result",[a.data,a.value]),!0}function e(a,b){if(q==r.DEL)return void x.hide();var d=s.val();(b||d!=t)&&(t=d,d=g(d),d.length>=c.minChars?(s.addClass(c.loadingClass),jQuery("#send-to-input").addClass("loading"),c.matchCase||(d=d.toLowerCase()),l(d,k,j)):(n(),x.hide()))}function f(b){if(!b)return[""];var d=b.split(a.trim(c.multipleSeparator)),e=[];return a.each(d,function(b,c){a.trim(c)&&(e[b]=a.trim(c))}),e}function g(a){if(!c.multiple)return a;var b=f(a);return b[b.length-1]}function h(d,e){c.autoFill&&g(s.val()).toLowerCase()==d.toLowerCase()&&8!=q&&(s.val(s.val()+e.substring(g(t).length)),a.Autocompleter.Selection(b,t.length,t.length+e.length))}function i(){clearTimeout(p),p=setTimeout(j,200)}function j(){x.hide(),clearTimeout(p),n(),c.mustMatch&&s.search(function(a){a||s.val("")})}function k(a,b){if(b&&b.length&&v){n(),x.display(b,a);var c=b[0].value.split(";");b.value=c[0],h(a,b.value),x.show()}else j()}function l(d,e,f){c.matchCase||(d=d.toLowerCase());var h=u.load(d);if(h&&h.length)e(d,h);else if("string"==typeof c.url&&c.url.length>0){var i={};a.each(c.extraParams,function(a,b){i[a]="function"==typeof b?b():b}),a.ajax({mode:"abort",port:"autocomplete"+b.name,dataType:c.dataType,url:c.url,data:a.extend({q:g(d),limit:c.max,action:"messages_autocomplete_results",cookie:o()},i),success:function(a){var b=c.parse&&c.parse(a)||m(a);u.add(d,b),e(d,b)}})}else f(d)}function m(b){for(var d=[],e=b.split("\n"),f=0;f<e.length;f++){var g=a.trim(e[f]);g&&(g=g.split("|"),d[d.length]={data:g,value:g[0],result:c.formatResult&&c.formatResult(g,g[0])||g[0]})}return d}function n(){s.removeClass(c.loadingClass),jQuery("#send-to-input").removeClass("loading")}function o(){var a,b,c,d,e,f=document.cookie.split(";"),g={},h="bp-";for(a=0;a<f.length;a++)b=f[a],c=b.indexOf("="),d=jq.trim(unescape(b.slice(0,c))),e=unescape(b.slice(c+1)),0===d.indexOf(h)&&(g[d]=e);return encodeURIComponent(jq.param(g))}var p,q,r={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34},s=a(b).attr("autocomplete","off").addClass(c.inputClass),t="",u=a.Autocompleter.Cache(c),v=0,w={mouseDownOnSelect:!1},x=a.Autocompleter.Select(c,b,d,w);s.keydown(function(b){switch(q=b.keyCode,b.keyCode){case r.UP:b.preventDefault(),x.visible()?x.prev():e(0,!0);break;case r.DOWN:b.preventDefault(),x.visible()?x.next():e(0,!0);break;case r.PAGEUP:b.preventDefault(),x.visible()?x.pageUp():e(0,!0);break;case r.PAGEDOWN:b.preventDefault(),x.visible()?x.pageDown():e(0,!0);break;case c.multiple&&","==a.trim(c.multipleSeparator)&&r.COMMA:case r.TAB:case r.RETURN:d()&&(c.multiple||s.blur(),b.preventDefault(),s.focus());break;case r.ESC:x.hide();break;default:clearTimeout(p),p=setTimeout(e,c.delay)}}).keypress(function(){}).focus(function(){v++}).blur(function(){v=0,w.mouseDownOnSelect||i()}).click(function(){v++>1&&!x.visible()&&e(0,!0)}).bind("search",function(){function b(a,b){var d;if(b&&b.length)for(var e=0;e<b.length;e++)if(b[e].result.toLowerCase()==a.toLowerCase()){d=b[e];break}"function"==typeof c?c(d):s.trigger("result",d&&[d.data,d.value])}var c=arguments.length>1?arguments[1]:null;a.each(f(s.val()),function(a,c){l(c,b,b)})}).bind("flushCache",function(){u.flush()}).bind("setOptions",function(){a.extend(c,arguments[1]),"data"in arguments[1]&&u.populate()}).bind("unautocomplete",function(){x.unbind(),s.unbind()})},a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:!1,matchSubset:!0,matchContains:!1,cacheLength:10,max:100,mustMatch:!1,extraParams:{},selectFirst:!0,formatItem:function(a){return a[0]},autoFill:!1,width:0,multiple:!1,multipleSeparator:", ",highlight:function(a,b){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:!0,scrollHeight:250,attachTo:"body"},a.Autocompleter.Cache=function(b){function c(a,c){b.matchCase||(a=a.toLowerCase());var d=a.indexOf(c);return-1==d?!1:0==d||b.matchContains}function d(a,c){h>b.cacheLength&&f(),g[a]||h++,g[a]=c}function e(){if(!b.data)return!1;var c={},e=0;b.url||(b.cacheLength=1),c[""]=[];for(var f=0,g=b.data.length;g>f;f++){var h=b.data[f];h="string"==typeof h?[h]:h;var i=b.formatItem(h,f+1,b.data.length);if(i!==!1){var j=i.charAt(0).toLowerCase();c[j]||(c[j]=[]);var k={value:i,data:h,result:b.formatResult&&b.formatResult(h)||i};c[j].push(k),e++<b.max&&c[""].push(k)}}a.each(c,function(a,c){b.cacheLength++,d(a,c)})}function f(){g={},h=0}var g={},h=0;return setTimeout(e,25),{flush:f,add:d,populate:e,load:function(d){if(!b.cacheLength||!h)return null;if(!b.url&&b.matchContains){var e=[];for(var f in g)if(f.length>0){var i=g[f];a.each(i,function(a,b){c(b.value,d)&&e.push(b)})}return e}if(g[d])return g[d];if(b.matchSubset)for(var j=d.length-1;j>=b.minChars;j--){var i=g[d.substr(0,j)];if(i){var e=[];return a.each(i,function(a,b){c(b.value,d)&&(e[e.length]=b)}),e}}return null}}},a.Autocompleter.Select=function(b,c,d,e){function f(){s&&(n=a("<div/>").hide().addClass(b.resultsClass).css("position","absolute").appendTo(b.attachTo),o=a("<ul>").appendTo(n).mouseover(function(b){g(b).nodeName&&"LI"==g(b).nodeName.toUpperCase()&&(q=a("li",o).removeClass(p.ACTIVE).index(g(b)),a(g(b)).addClass(p.ACTIVE))}).click(function(b){return a(g(b)).addClass(p.ACTIVE),d(),c.focus(),!1}).mousedown(function(){e.mouseDownOnSelect=!0}).mouseup(function(){e.mouseDownOnSelect=!1}),b.width>0&&n.css("width",b.width),s=!1)}function g(a){for(var b=a.target;b&&"LI"!=b.tagName;)b=b.parentNode;return b?b:[]}function h(a){l.slice(q,q+1).removeClass(),i(a);var c=l.slice(q,q+1).addClass(p.ACTIVE);if(b.scroll){var d=0;l.slice(0,q).each(function(){d+=this.offsetHeight}),d+c[0].offsetHeight-o.scrollTop()>o[0].clientHeight?o.scrollTop(d+c[0].offsetHeight-o.innerHeight()):d<o.scrollTop()&&o.scrollTop(d)}}function i(a){q+=a,0>q?q=l.size()-1:q>=l.size()&&(q=0)}function j(a){return b.max&&b.max<a?b.max:a}function k(){o.empty();for(var c=j(m.length),d=0;c>d;d++)if(m[d]){var e=b.formatItem(m[d].data,d+1,c,m[d].value,r);if(e!==!1){var f=a("<li>").html(b.highlight(e,r)).addClass(d%2==0?"ac_event":"ac_odd").appendTo(o)[0];a.data(f,"ac_data",m[d])}}l=o.find("li"),b.selectFirst&&(l.slice(0,1).addClass(p.ACTIVE),q=0),o.bgiframe()}var l,m,n,o,p={ACTIVE:"ac_over"},q=-1,r="",s=!0;return{display:function(a,b){f(),m=a,r=b,k()},next:function(){h(1)},prev:function(){h(-1)},pageUp:function(){h(0!=q&&0>q-8?-q:-8)},pageDown:function(){h(q!=l.size()-1&&q+8>l.size()?l.size()-1-q:8)},hide:function(){n&&n.hide(),q=-1},visible:function(){return n&&n.is(":visible")},current:function(){return this.visible()&&(l.filter("."+p.ACTIVE)[0]||b.selectFirst&&l[0])},show:function(){var d=a(c).offset();if(n.css({width:"string"==typeof b.width||b.width>0?b.width:a(c).width(),top:d.top+c.offsetHeight,left:d.left}).show(),b.scroll&&(o.scrollTop(0),o.css({maxHeight:b.scrollHeight,overflow:"auto"}),a.browser.msie&&"undefined"==typeof document.body.style.maxHeight)){var e=0;l.each(function(){e+=this.offsetHeight});var f=e>b.scrollHeight;o.css("height",f?b.scrollHeight:e),f||l.width(o.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")))}},selected:function(){var b=l&&l.filter("."+p.ACTIVE).removeClass(p.ACTIVE);return b&&b.length&&a.data(b[0],"ac_data")},unbind:function(){n&&n.remove()}}},a.Autocompleter.Selection=function(a,b,c){if(a.createTextRange){var d=a.createTextRange();d.collapse(!0),d.moveStart("character",b),d.moveEnd("character",c),d.select()}else a.setSelectionRange?a.setSelectionRange(b,c):a.selectionStart&&(a.selectionStart=b,a.selectionEnd=c);a.focus()}}(jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){a.fn.extend({autocomplete:function(b,c){var d="string"==typeof b;return c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c),c.highlight=c.highlight||function(a){return a},this.each(function(){new a.Autocompleter(this,c)})},result:function(a){return this.bind("result",a)},search:function(a){return this.trigger("search",[a])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(a){return this.trigger("setOptions",[a])},unautocomplete:function(){return this.trigger("unautocomplete")}}),a.Autocompleter=function(b,c){function d(){var a=x.selected();if(!a)return!1;var b=a.result;if(t=b,c.multiple){var d=f(s.val());d.length>1&&(b=d.slice(0,d.length-1).join(c.multipleSeparator)+c.multipleSeparator+b),b+=c.multipleSeparator}return s.val(b),j(),s.trigger("result",[a.data,a.value]),!0}function e(a,b){if(q==r.DEL)return void x.hide();var d=s.val();(b||d!=t)&&(t=d,d=g(d),d.length>=c.minChars?(s.addClass(c.loadingClass),jQuery("#send-to-input").addClass("loading"),c.matchCase||(d=d.toLowerCase()),l(d,k,j)):(n(),x.hide()))}function f(b){if(!b)return[""];var d=b.split(a.trim(c.multipleSeparator)),e=[];return a.each(d,function(b,c){a.trim(c)&&(e[b]=a.trim(c))}),e}function g(a){if(!c.multiple)return a;var b=f(a);return b[b.length-1]}function h(d,e){c.autoFill&&g(s.val()).toLowerCase()==d.toLowerCase()&&8!=q&&(s.val(s.val()+e.substring(g(t).length)),a.Autocompleter.Selection(b,t.length,t.length+e.length))}function i(){clearTimeout(p),p=setTimeout(j,200)}function j(){x.hide(),clearTimeout(p),n(),c.mustMatch&&s.search(function(a){a||s.val("")})}function k(a,b){if(b&&b.length&&v){n(),x.display(b,a);var c=b[0].value.split(";");b.value=c[0],h(a,b.value),x.show()}else j()}function l(d,e,f){c.matchCase||(d=d.toLowerCase());var h=u.load(d);if(h&&h.length)e(d,h);else if("string"==typeof c.url&&c.url.length>0){var i={};a.each(c.extraParams,function(a,b){i[a]="function"==typeof b?b():b}),a.ajax({mode:"abort",port:"autocomplete"+b.name,dataType:c.dataType,url:c.url,data:a.extend({q:g(d),limit:c.max,action:"messages_autocomplete_results",cookie:o()},i),success:function(a){var b=c.parse&&c.parse(a)||m(a);u.add(d,b),e(d,b)}})}else f(d)}function m(b){for(var d=[],e=b.split("\n"),f=0;f<e.length;f++){var g=a.trim(e[f]);g&&(g=g.split("|"),d[d.length]={data:g,value:g[0],result:c.formatResult&&c.formatResult(g,g[0])||g[0]})}return d}function n(){s.removeClass(c.loadingClass),jQuery("#send-to-input").removeClass("loading")}function o(){var a,b,c,d,e,f=document.cookie.split(";"),g={},h="bp-";for(a=0;a<f.length;a++)b=f[a],c=b.indexOf("="),d=jq.trim(unescape(b.slice(0,c))),e=unescape(b.slice(c+1)),0===d.indexOf(h)&&(g[d]=e);return encodeURIComponent(jq.param(g))}var p,q,r={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34},s=a(b).attr("autocomplete","off").addClass(c.inputClass),t="",u=a.Autocompleter.Cache(c),v=0,w={mouseDownOnSelect:!1},x=a.Autocompleter.Select(c,b,d,w);s.keydown(function(b){switch(q=b.keyCode,b.keyCode){case r.UP:b.preventDefault(),x.visible()?x.prev():e(0,!0);break;case r.DOWN:b.preventDefault(),x.visible()?x.next():e(0,!0);break;case r.PAGEUP:b.preventDefault(),x.visible()?x.pageUp():e(0,!0);break;case r.PAGEDOWN:b.preventDefault(),x.visible()?x.pageDown():e(0,!0);break;case c.multiple&&","==a.trim(c.multipleSeparator)&&r.COMMA:case r.TAB:case r.RETURN:d()&&(c.multiple||s.blur(),b.preventDefault(),s.focus());break;case r.ESC:x.hide();break;default:clearTimeout(p),p=setTimeout(e,c.delay)}}).keypress(function(){}).focus(function(){v++}).blur(function(){v=0,w.mouseDownOnSelect||i()}).click(function(){v++>1&&!x.visible()&&e(0,!0)}).bind("search",function(){function b(a,b){var d;if(b&&b.length)for(var e=0;e<b.length;e++)if(b[e].result.toLowerCase()==a.toLowerCase()){d=b[e];break}"function"==typeof c?c(d):s.trigger("result",d&&[d.data,d.value])}var c=arguments.length>1?arguments[1]:null;a.each(f(s.val()),function(a,c){l(c,b,b)})}).bind("flushCache",function(){u.flush()}).bind("setOptions",function(){a.extend(c,arguments[1]),"data"in arguments[1]&&u.populate()}).bind("unautocomplete",function(){x.unbind(),s.unbind()})},a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:!1,matchSubset:!0,matchContains:!1,cacheLength:10,max:100,mustMatch:!1,extraParams:{},selectFirst:!0,formatItem:function(a){return a[0]},autoFill:!1,width:0,multiple:!1,multipleSeparator:", ",highlight:function(a,b){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:!0,scrollHeight:250,attachTo:"body"},a.Autocompleter.Cache=function(b){function c(a,c){b.matchCase||(a=a.toLowerCase());var d=a.indexOf(c);return-1==d?!1:0==d||b.matchContains}function d(a,c){h>b.cacheLength&&f(),g[a]||h++,g[a]=c}function e(){if(!b.data)return!1;var c={},e=0;b.url||(b.cacheLength=1),c[""]=[];for(var f=0,g=b.data.length;g>f;f++){var h=b.data[f];h="string"==typeof h?[h]:h;var i=b.formatItem(h,f+1,b.data.length);if(i!==!1){var j=i.charAt(0).toLowerCase();c[j]||(c[j]=[]);var k={value:i,data:h,result:b.formatResult&&b.formatResult(h)||i};c[j].push(k),e++<b.max&&c[""].push(k)}}a.each(c,function(a,c){b.cacheLength++,d(a,c)})}function f(){g={},h=0}var g={},h=0;return setTimeout(e,25),{flush:f,add:d,populate:e,load:function(d){if(!b.cacheLength||!h)return null;if(!b.url&&b.matchContains){var e=[];for(var f in g)if(f.length>0){var i=g[f];a.each(i,function(a,b){c(b.value,d)&&e.push(b)})}return e}if(g[d])return g[d];if(b.matchSubset)for(var j=d.length-1;j>=b.minChars;j--){var i=g[d.substr(0,j)];if(i){var e=[];return a.each(i,function(a,b){c(b.value,d)&&(e[e.length]=b)}),e}}return null}}},a.Autocompleter.Select=function(b,c,d,e){function f(){s&&(n=a("<div/>").hide().addClass(b.resultsClass).css("position","absolute").appendTo(b.attachTo),o=a("<ul>").appendTo(n).mouseover(function(b){g(b).nodeName&&"LI"==g(b).nodeName.toUpperCase()&&(q=a("li",o).removeClass(p.ACTIVE).index(g(b)),a(g(b)).addClass(p.ACTIVE))}).click(function(b){return a(g(b)).addClass(p.ACTIVE),d(),c.focus(),!1}).mousedown(function(){e.mouseDownOnSelect=!0}).mouseup(function(){e.mouseDownOnSelect=!1}),b.width>0&&n.css("width",b.width),s=!1)}function g(a){for(var b=a.target;b&&"LI"!=b.tagName;)b=b.parentNode;return b?b:[]}function h(a){l.slice(q,q+1).removeClass(),i(a);var c=l.slice(q,q+1).addClass(p.ACTIVE);if(b.scroll){var d=0;l.slice(0,q).each(function(){d+=this.offsetHeight}),d+c[0].offsetHeight-o.scrollTop()>o[0].clientHeight?o.scrollTop(d+c[0].offsetHeight-o.innerHeight()):d<o.scrollTop()&&o.scrollTop(d)}}function i(a){q+=a,0>q?q=l.size()-1:q>=l.size()&&(q=0)}function j(a){return b.max&&b.max<a?b.max:a}function k(){o.empty();for(var c=j(m.length),d=0;c>d;d++)if(m[d]){var e=b.formatItem(m[d].data,d+1,c,m[d].value,r);if(e!==!1){var f=a("<li>").html(b.highlight(e,r)).addClass(d%2==0?"ac_event":"ac_odd").appendTo(o)[0];a.data(f,"ac_data",m[d])}}l=o.find("li"),b.selectFirst&&(l.slice(0,1).addClass(p.ACTIVE),q=0),o.bgiframe()}var l,m,n,o,p={ACTIVE:"ac_over"},q=-1,r="",s=!0;return{display:function(a,b){f(),m=a,r=b,k()},next:function(){h(1)},prev:function(){h(-1)},pageUp:function(){h(0!=q&&0>q-8?-q:-8)},pageDown:function(){h(q!=l.size()-1&&q+8>l.size()?l.size()-1-q:8)},hide:function(){n&&n.hide(),q=-1},visible:function(){return n&&n.is(":visible")},current:function(){return this.visible()&&(l.filter("."+p.ACTIVE)[0]||b.selectFirst&&l[0])},show:function(){var d=a(c).offset();if(n.css({width:"string"==typeof b.width||b.width>0?b.width:a(c).width(),top:d.top+c.offsetHeight,left:d.left}).show(),b.scroll&&(o.scrollTop(0),o.css({maxHeight:b.scrollHeight,overflow:"auto"}),a.browser.msie&&"undefined"==typeof document.body.style.maxHeight)){var e=0;l.each(function(){e+=this.offsetHeight});var f=e>b.scrollHeight;o.css("height",f?b.scrollHeight:e),f||l.width(o.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")))}},selected:function(){var b=l&&l.filter("."+p.ACTIVE).removeClass(p.ACTIVE);return b&&b.length&&a.data(b[0],"ac_data")},unbind:function(){n&&n.remove()}}},a.Autocompleter.Selection=function(a,b,c){if(a.createTextRange){var d=a.createTextRange();d.collapse(!0),d.moveStart("character",b),d.moveEnd("character",c),d.select()}else a.setSelectionRange?a.setSelectionRange(b,c):a.selectionStart&&(a.selectionStart=b,a.selectionEnd=c);a.focus()}}(jQuery);
bp-core/deprecated/js/autocomplete/jquery.autocompletefb.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
jQuery.fn.autoCompletefb=function(a){var b=this,c={ul:b,urlLookup:[""],acOptions:{},foundClass:".friend-tab",inputClass:".send-to-input"};a&&jQuery.extend(c,a);var d={params:c,removeFind:function(a){return d.removeUsername(a),jQuery(a).unbind("click").parent().remove(),jQuery(c.inputClass,b).focus(),b.acfb},removeUsername:function(a){var b=a.parentNode.id.substr(a.parentNode.id.indexOf("-")+1);jQuery("#send-to-usernames").removeClass(b)}};return jQuery(c.foundClass+" img.p").click(function(){d.removeFind(this)}),jQuery(c.inputClass,b).autocomplete(c.urlLookup,c.acOptions),jQuery(c.inputClass,b).result(function(a,e,f){var f=c.foundClass.replace(/\./,""),e=String(e).split(" ("),g=e[1].substr(0,e[1].length-1);if(0===jQuery(c.inputClass).siblings("#un-"+g).length){var h="#link-"+g,i=jQuery(h).attr("href"),j='<li class="'+f+'" id="un-'+g+'"><span><a href="'+i+'">'+e[0]+'</a></span> <span class="p">X</span></li>',k=jQuery(c.inputClass,b).before(j);jQuery("#send-to-usernames").addClass(g),jQuery(".p",k[0].previousSibling).click(function(){d.removeFind(this)})}jQuery(c.inputClass,b).val("")}),jQuery(c.inputClass,b).focus(),d};
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
jQuery.fn.autoCompletefb=function(a){var b=this,c={ul:b,urlLookup:[""],acOptions:{},foundClass:".friend-tab",inputClass:".send-to-input"};a&&jQuery.extend(c,a);var d={params:c,removeFind:function(a){return d.removeUsername(a),jQuery(a).unbind("click").parent().remove(),jQuery(c.inputClass,b).focus(),b.acfb},removeUsername:function(a){var b=a.parentNode.id.substr(a.parentNode.id.indexOf("-")+1);jQuery("#send-to-usernames").removeClass(b)}};return jQuery(c.foundClass+" img.p").click(function(){d.removeFind(this)}),jQuery(c.inputClass,b).autocomplete(c.urlLookup,c.acOptions),jQuery(c.inputClass,b).result(function(a,e,f){var f=c.foundClass.replace(/\./,""),e=String(e).split(" ("),g=e[1].substr(0,e[1].length-1);if(0===jQuery(c.inputClass).siblings("#un-"+g).length){var h="#link-"+g,i=jQuery(h).attr("href"),j='<li class="'+f+'" id="un-'+g+'"><span><a href="'+i+'">'+e[0]+'</a></span> <span class="p">X</span></li>',k=jQuery(c.inputClass,b).before(j);jQuery("#send-to-usernames").addClass(g),jQuery(".p",k[0].previousSibling).click(function(){d.removeFind(this)})}jQuery(c.inputClass,b).val("")}),jQuery(c.inputClass,b).focus(),d};
bp-core/deprecated/js/autocomplete/jquery.bgiframe.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){function b(a){return a&&a.constructor===Number?a+"px":a}a.fn.bgiframe=a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(c){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:!0,src:"javascript:false;"},c);var d='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==!1?"filter:Alpha(Opacity='0');":"")+"top:"+("auto"==c.top?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(c.top))+";left:"+("auto"==c.left?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(c.left))+";width:"+("auto"==c.width?"expression(this.parentNode.offsetWidth+'px')":b(c.width))+";height:"+("auto"==c.height?"expression(this.parentNode.offsetHeight+'px')":b(c.height))+';"/>';return this.each(function(){0===a(this).children("iframe.bgiframe").length&&this.insertBefore(document.createElement(d),this.firstChild)})}:function(){return this},a.fn.bgIframe=a.fn.bgiframe}(jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){function b(a){return a&&a.constructor===Number?a+"px":a}a.fn.bgiframe=a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(c){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:!0,src:"javascript:false;"},c);var d='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==!1?"filter:Alpha(Opacity='0');":"")+"top:"+("auto"==c.top?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(c.top))+";left:"+("auto"==c.left?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(c.left))+";width:"+("auto"==c.width?"expression(this.parentNode.offsetWidth+'px')":b(c.width))+";height:"+("auto"==c.height?"expression(this.parentNode.offsetHeight+'px')":b(c.height))+';"/>';return this.each(function(){0===a(this).children("iframe.bgiframe").length&&this.insertBefore(document.createElement(d),this.firstChild)})}:function(){return this},a.fn.bgIframe=a.fn.bgiframe}(jQuery);
bp-core/deprecated/js/autocomplete/jquery.dimensions.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){a.dimensions={version:"@VERSION"},a.each(["Height","Width"],function(c,d){a.fn["inner"+d]=function(){if(this[0]){var a="Height"==d?"Top":"Left",c="Height"==d?"Bottom":"Right";return this[d.toLowerCase()]()+b(this,"padding"+a)+b(this,"padding"+c)}},a.fn["outer"+d]=function(c){if(this[0]){var e="Height"==d?"Top":"Left",f="Height"==d?"Bottom":"Right";return c=a.extend({margin:!1},c||{}),this[d.toLowerCase()]()+b(this,"border"+e+"Width")+b(this,"border"+f+"Width")+b(this,"padding"+e)+b(this,"padding"+f)+(c.margin?b(this,"margin"+e)+b(this,"margin"+f):0)}}}),a.each(["Left","Top"],function(b,c){a.fn["scroll"+c]=function(b){return this[0]?void 0!=b?this.each(function(){this==window||this==document?window.scrollTo("Left"==c?b:a(window).scrollLeft(),"Top"==c?b:a(window).scrollTop()):this["scroll"+c]=b}):this[0]==window||this[0]==document?self["Left"==c?"pageXOffset":"pageYOffset"]||a.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]:void 0}}),a.fn.extend({position:function(){var a,c,d,e,f=this[0];return f&&(d=this.offsetParent(),a=this.offset(),c=d.offset(),a.top-=b(f,"marginTop"),a.left-=b(f,"marginLeft"),c.top+=b(d,"borderTopWidth"),c.left+=b(d,"borderLeftWidth"),e={top:a.top-c.top,left:a.left-c.left}),e},offsetParent:function(){for(var b=this[0].offsetParent;b&&!/^body|html#x2F;i.test(b.tagName)&&"static"==a.css(b,"position");)b=b.offsetParent;return a(b)}});var b=function(b,c){return parseInt(a.css(b.jquery?b[0]:b,c))||0}}(jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){a.dimensions={version:"@VERSION"},a.each(["Height","Width"],function(c,d){a.fn["inner"+d]=function(){if(this[0]){var a="Height"==d?"Top":"Left",c="Height"==d?"Bottom":"Right";return this[d.toLowerCase()]()+b(this,"padding"+a)+b(this,"padding"+c)}},a.fn["outer"+d]=function(c){if(this[0]){var e="Height"==d?"Top":"Left",f="Height"==d?"Bottom":"Right";return c=a.extend({margin:!1},c||{}),this[d.toLowerCase()]()+b(this,"border"+e+"Width")+b(this,"border"+f+"Width")+b(this,"padding"+e)+b(this,"padding"+f)+(c.margin?b(this,"margin"+e)+b(this,"margin"+f):0)}}}),a.each(["Left","Top"],function(b,c){a.fn["scroll"+c]=function(b){return this[0]?void 0!=b?this.each(function(){this==window||this==document?window.scrollTo("Left"==c?b:a(window).scrollLeft(),"Top"==c?b:a(window).scrollTop()):this["scroll"+c]=b}):this[0]==window||this[0]==document?self["Left"==c?"pageXOffset":"pageYOffset"]||a.boxModel&&document.documentElement["scroll"+c]||document.body["scroll"+c]:this[0]["scroll"+c]:void 0}}),a.fn.extend({position:function(){var a,c,d,e,f=this[0];return f&&(d=this.offsetParent(),a=this.offset(),c=d.offset(),a.top-=b(f,"marginTop"),a.left-=b(f,"marginLeft"),c.top+=b(d,"borderTopWidth"),c.left+=b(d,"borderLeftWidth"),e={top:a.top-c.top,left:a.left-c.left}),e},offsetParent:function(){for(var b=this[0].offsetParent;b&&!/^body|html#x2F;i.test(b.tagName)&&"static"==a.css(b,"position");)b=b.offsetParent;return a(b)}});var b=function(b,c){return parseInt(a.css(b.jquery?b[0]:b,c))||0}}(jQuery);
bp-core/js/avatar.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
window.bp=window.bp||{},function(a,b){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.Avatar={start:function(){this.removeLegacyUI(),this.views=new Backbone.Collection,this.jcropapi={},this.warning=null,this.setupNav(),this.avatars=bp.Uploader.filesUploaded,bp.Uploader.filesQueue.on("reset",this.cropView,this),b("body.wp-admin").on("tb_unload","#TB_window",function(){bp.Avatar.nav.trigger("bp-avatar-view:changed","upload"),_.each(bp.Avatar.navItems.models,function(a){a.set("upload"===a.id?{active:1}:{active:0})})})},removeLegacyUI:function(){b("#avatar-upload-form").length?(b("#avatar-upload").remove(),b("#avatar-upload-form p").remove()):b("#group-settings-form").length?(b("#group-settings-form p").each(function(a){0!==a&&b(this).remove()}),b("#delete-group-avatar-button").length&&b("#delete-group-avatar-button").remove()):b("#group-create-body").length?(b(".main-column p #file").remove(),b(".main-column p #upload").remove()):b("#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin").length&&b("#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin").remove()},setView:function(a){switch(_.isUndefined(this.views.models)||_.each(this.views.models,function(a){a.get("view").remove()},this),this.views.reset(),_.isUndefined(this.avatars)||this.avatars.reset(),_.isEmpty(this.jcropapi)||(this.jcropapi.destroy(),this.jcropapi={}),a){case"upload":this.uploaderView();break;case"delete":this.deleteView()}},setupNav:function(){var a,b,c=this;this.navItems=new Backbone.Collection,_.each(BP_Uploader.settings.nav,function(d,e){_.isObject(d)&&(b=0,0===e&&(a=d.id,b=1),c.navItems.add({id:d.id,name:d.caption,href:"#",active:b,hide:_.isUndefined(d.hide)?0:d.hide}))}),this.nav=new bp.Views.Nav({collection:this.navItems}),this.nav.inject(".bp-avatar-nav"),this.setView(a),this.nav.on("bp-avatar-view:changed",_.bind(this.setView,this))},uploaderView:function(){bp.Uploader.filesQueue.on("add",this.uploadProgress,this);var a=new bp.Views.Uploader;this.views.add({id:"upload",view:a}),a.inject(".bp-avatar")},uploadProgress:function(){var a=new bp.Views.uploaderStatus({collection:bp.Uploader.filesQueue});_.isUndefined(this.views.get("status"))?this.views.add({id:"status",view:a}):this.views.set({id:"status",view:a}),a.inject(".bp-avatar-status")},cropView:function(){var a;if(!_.isEmpty(this.avatars.models)){_.isUndefined(this.views.get("status"))||(a=this.views.get("status"),a.get("view").remove(),this.views.remove({id:"status",view:a}));var b=new bp.Views.Avatars({collection:this.avatars});this.views.add({id:"crop",view:b}),b.inject(".bp-avatar")}},setAvatar:function(a){var c,d=this;_.isUndefined(this.views.get("crop"))||(_.isEmpty(this.jcropapi)||(this.jcropapi.destroy(),this.jcropapi={}),c=this.views.get("crop"),c.get("view").remove(),this.views.remove({id:"crop",view:c})),bp.ajax.post("bp_avatar_set",{json:!0,original_file:a.get("url"),crop_w:a.get("w"),crop_h:a.get("h"),crop_x:a.get("x"),crop_y:a.get("y"),item_id:a.get("item_id"),object:a.get("object"),type:_.isUndefined(a.get("type"))?"crop":a.get("type"),nonce:a.get("nonces").set}).done(function(c){var e=new bp.Views.AvatarStatus({value:BP_Uploader.strings.feedback_messages[c.feedback_code],type:"success"});d.views.add({id:"status",view:e}),e.inject(".bp-avatar-status"),b("."+a.get("object")+"-"+c.item_id+"-avatar").each(function(){b(this).prop("src",c.avatar)}),bp.Avatar.navItems.get("delete").set({hide:0})}).fail(function(a){var b=BP_Uploader.strings.default_error;_.isUndefined(a)||(b=BP_Uploader.strings.feedback_messages[a.feedback_code]);var c=new bp.Views.AvatarStatus({value:b,type:"error"});d.views.add({id:"status",view:c}),c.inject(".bp-avatar-status")})},deleteView:function(){var a=new Backbone.Model(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces")),b=new bp.Views.DeleteAvatar({model:a});this.views.add({id:"delete",view:b}),b.inject(".bp-avatar")},deleteAvatar:function(a){var c,d=this;_.isUndefined(this.views.get("delete"))||(c=this.views.get("delete"),c.get("view").remove(),this.views.remove({id:"delete",view:c})),bp.ajax.post("bp_avatar_delete",{json:!0,item_id:a.get("item_id"),object:a.get("object"),nonce:a.get("nonces").remove}).done(function(c){var e=new bp.Views.AvatarStatus({value:BP_Uploader.strings.feedback_messages[c.feedback_code],type:"success"});d.views.add({id:"status",view:e}),e.inject(".bp-avatar-status"),b("."+a.get("object")+"-"+c.item_id+"-avatar").each(function(){b(this).prop("src",c.avatar)}),bp.Avatar.navItems.get("delete").set({active:0,hide:1})}).fail(function(a){var b=BP_Uploader.strings.default_error;_.isUndefined(a)||(b=BP_Uploader.strings.feedback_messages[a.feedback_code]);var c=new bp.Views.AvatarStatus({value:b,type:"error"});d.views.add({id:"status",view:c}),c.inject(".bp-avatar-status")})},removeWarning:function(){_.isNull(this.warning)||this.warning.remove()},displayWarning:function(a){this.removeWarning(),this.warning=new bp.Views.uploaderWarning({value:a}),this.warning.inject(".bp-avatar-status")}},bp.Views.Nav=bp.View.extend({tagName:"ul",className:"avatar-nav-items",events:{"click .bp-avatar-nav-item":"toggleView"},initialize:function(){var a=_.findWhere(this.collection.models,{id:"delete"});1!==a.get("hide")&&bp.Avatar.displayWarning(BP_Uploader.strings.has_avatar_warning),_.each(this.collection.models,this.addNavItem,this),this.collection.on("change:hide",this.showHideNavItem,this)},addNavItem:function(a){1!==a.get("hide")&&this.views.add(new bp.Views.NavItem({model:a}))},showHideNavItem:function(a){var b=null;_.each(this.views._views[""],function(c){1===c.model.get("hide")&&c.remove(),a.get("id")===c.model.get("id")&&(b=!0)}),_.isBoolean(b)||this.addNavItem(a)},toggleView:function(a){a.preventDefault(),bp.Avatar.removeWarning();var c=b(a.target).data("nav");_.each(this.collection.models,function(a){a.id===c?(a.set({active:1}),this.trigger("bp-avatar-view:changed",a.id)):a.set({active:0})},this)}}),bp.Views.NavItem=bp.View.extend({tagName:"li",className:"avatar-nav-item",template:bp.template("bp-avatar-nav"),initialize:function(){1===this.model.get("active")&&(this.el.className+=" current"),this.el.id+="bp-avatar-"+this.model.get("id"),this.model.on("change:active",this.setCurrentNav,this)},setCurrentNav:function(a){1===a.get("active")?this.$el.addClass("current"):this.$el.removeClass("current")}}),bp.Views.Avatars=bp.View.extend({className:"items",initialize:function(){_.each(this.collection.models,this.addItemView,this)},addItemView:function(a){var b={full_h:150,full_w:150};_.isUndefined(BP_Uploader.settings.crop.full_h)||_.isUndefined(BP_Uploader.settings.crop.full_w)||(b.full_h=BP_Uploader.settings.crop.full_h,b.full_w=BP_Uploader.settings.crop.full_w),a.set(_.extend(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces"),b)),this.views.add(new bp.Views.Avatar({model:a}))}}),bp.Views.Avatar=bp.View.extend({className:"item",template:bp.template("bp-avatar-item"),events:{"click .avatar-crop-submit":"cropAvatar"},initialize:function(){_.defaults(this.options,{full_h:BP_Uploader.settings.crop.full_h,full_w:BP_Uploader.settings.crop.full_w,aspectRatio:1}),!1!==this.model.get("feedback")&&bp.Avatar.displayWarning(this.model.get("feedback")),this.on("ready",this.initCropper)},initCropper:function(){var a,c,d,e,f,g,h=this,i=this.$el.find("#avatar-to-crop img"),j=this.$el.width(),k={};_.isUndefined(this.options.full_h)||_.isUndefined(this.options.full_w)||(this.options.aspectRatio=this.options.full_h/this.options.full_w),k.w=this.model.get("width"),k.h=this.model.get("height"),this.options.full_w+k.w+20<j&&(b("#avatar-to-crop").addClass("adjust"),this.$el.find(".avatar-crop-management").addClass("adjust")),k.h<=k.w?(a=Math.round(k.h/4),f=g=Math.round(k.h/2),c=f+a,d=(k.w-g)/2,e=g+d):(d=Math.round(k.w/4),f=g=Math.round(k.w/2),e=g+d,a=(k.h-f)/2,c=f+a),i.Jcrop({onChange:_.bind(h.showPreview,h),onSelect:_.bind(h.showPreview,h),aspectRatio:h.options.aspectRatio,setSelect:[d,a,e,c]},function(){bp.Avatar.jcropapi=this})},cropAvatar:function(a){a.preventDefault(),bp.Avatar.setAvatar(this.model)},showPreview:function(a){if(a.w&&a.h&&parseInt(a.w,10)>0){var c=this.options.full_w,d=this.options.full_h,e=c/a.w,f=d/a.h;this.model.set({x:a.x,y:a.y,w:a.w,h:a.h}),b("#avatar-crop-preview").css({maxWidth:"none",width:Math.round(e*this.model.get("width"))+"px",height:Math.round(f*this.model.get("height"))+"px",marginLeft:"-"+Math.round(e*this.model.get("x"))+"px",marginTop:"-"+Math.round(f*this.model.get("y"))+"px"})}}}),bp.Views.AvatarStatus=bp.View.extend({tagName:"p",className:"updated",id:"bp-avatar-feedback",initialize:function(){this.el.className+=" "+this.options.type,this.value=this.options.value},render:function(){return this.$el.html(this.value),this}}),bp.Views.DeleteAvatar=bp.View.extend({tagName:"div",id:"bp-delete-avatar-container",template:bp.template("bp-avatar-delete"),events:{"click #bp-delete-avatar":"deleteAvatar"},deleteAvatar:function(a){a.preventDefault(),bp.Avatar.deleteAvatar(this.model)}}),bp.Avatar.start())}(bp,jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
window.bp=window.bp||{},function(a,b){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.Avatar={start:function(){this.removeLegacyUI(),this.views=new Backbone.Collection,this.jcropapi={},this.warning=null,this.setupNav(),this.avatars=bp.Uploader.filesUploaded,bp.Uploader.filesQueue.on("reset",this.cropView,this),b("body.wp-admin").on("tb_unload","#TB_window",function(){bp.Avatar.nav.trigger("bp-avatar-view:changed","upload"),_.each(bp.Avatar.navItems.models,function(a){a.set("upload"===a.id?{active:1}:{active:0})})})},removeLegacyUI:function(){b("#avatar-upload-form").length?(b("#avatar-upload").remove(),b("#avatar-upload-form p").remove()):b("#group-settings-form").length?(b("#group-settings-form p").each(function(a){0!==a&&b(this).remove()}),b("#delete-group-avatar-button").length&&b("#delete-group-avatar-button").remove()):b("#group-create-body").length?(b(".main-column p #file").remove(),b(".main-column p #upload").remove()):b("#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin").length&&b("#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin").remove()},setView:function(a){switch(_.isUndefined(this.views.models)||_.each(this.views.models,function(a){a.get("view").remove()},this),this.views.reset(),_.isUndefined(this.avatars)||this.avatars.reset(),_.isEmpty(this.jcropapi)||(this.jcropapi.destroy(),this.jcropapi={}),a){case"upload":this.uploaderView();break;case"delete":this.deleteView()}},setupNav:function(){var a,b,c=this;this.navItems=new Backbone.Collection,_.each(BP_Uploader.settings.nav,function(d,e){_.isObject(d)&&(b=0,0===e&&(a=d.id,b=1),c.navItems.add({id:d.id,name:d.caption,href:"#",active:b,hide:_.isUndefined(d.hide)?0:d.hide}))}),this.nav=new bp.Views.Nav({collection:this.navItems}),this.nav.inject(".bp-avatar-nav"),this.setView(a),this.nav.on("bp-avatar-view:changed",_.bind(this.setView,this))},uploaderView:function(){bp.Uploader.filesQueue.on("add",this.uploadProgress,this);var a=new bp.Views.Uploader;this.views.add({id:"upload",view:a}),a.inject(".bp-avatar")},uploadProgress:function(){var a=new bp.Views.uploaderStatus({collection:bp.Uploader.filesQueue});_.isUndefined(this.views.get("status"))?this.views.add({id:"status",view:a}):this.views.set({id:"status",view:a}),a.inject(".bp-avatar-status")},cropView:function(){var a;if(!_.isEmpty(this.avatars.models)){_.isUndefined(this.views.get("status"))||(a=this.views.get("status"),a.get("view").remove(),this.views.remove({id:"status",view:a}));var b=new bp.Views.Avatars({collection:this.avatars});this.views.add({id:"crop",view:b}),b.inject(".bp-avatar")}},setAvatar:function(a){var c,d=this;_.isUndefined(this.views.get("crop"))||(_.isEmpty(this.jcropapi)||(this.jcropapi.destroy(),this.jcropapi={}),c=this.views.get("crop"),c.get("view").remove(),this.views.remove({id:"crop",view:c})),bp.ajax.post("bp_avatar_set",{json:!0,original_file:a.get("url"),crop_w:a.get("w"),crop_h:a.get("h"),crop_x:a.get("x"),crop_y:a.get("y"),item_id:a.get("item_id"),object:a.get("object"),type:_.isUndefined(a.get("type"))?"crop":a.get("type"),nonce:a.get("nonces").set}).done(function(c){var e=new bp.Views.AvatarStatus({value:BP_Uploader.strings.feedback_messages[c.feedback_code],type:"success"});d.views.add({id:"status",view:e}),e.inject(".bp-avatar-status"),b("."+a.get("object")+"-"+c.item_id+"-avatar").each(function(){b(this).prop("src",c.avatar)}),bp.Avatar.navItems.get("delete").set({hide:0})}).fail(function(a){var b=BP_Uploader.strings.default_error;_.isUndefined(a)||(b=BP_Uploader.strings.feedback_messages[a.feedback_code]);var c=new bp.Views.AvatarStatus({value:b,type:"error"});d.views.add({id:"status",view:c}),c.inject(".bp-avatar-status")})},deleteView:function(){var a=new Backbone.Model(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces")),b=new bp.Views.DeleteAvatar({model:a});this.views.add({id:"delete",view:b}),b.inject(".bp-avatar")},deleteAvatar:function(a){var c,d=this;_.isUndefined(this.views.get("delete"))||(c=this.views.get("delete"),c.get("view").remove(),this.views.remove({id:"delete",view:c})),bp.ajax.post("bp_avatar_delete",{json:!0,item_id:a.get("item_id"),object:a.get("object"),nonce:a.get("nonces").remove}).done(function(c){var e=new bp.Views.AvatarStatus({value:BP_Uploader.strings.feedback_messages[c.feedback_code],type:"success"});d.views.add({id:"status",view:e}),e.inject(".bp-avatar-status"),b("."+a.get("object")+"-"+c.item_id+"-avatar").each(function(){b(this).prop("src",c.avatar)}),bp.Avatar.navItems.get("delete").set({active:0,hide:1})}).fail(function(a){var b=BP_Uploader.strings.default_error;_.isUndefined(a)||(b=BP_Uploader.strings.feedback_messages[a.feedback_code]);var c=new bp.Views.AvatarStatus({value:b,type:"error"});d.views.add({id:"status",view:c}),c.inject(".bp-avatar-status")})},removeWarning:function(){_.isNull(this.warning)||this.warning.remove()},displayWarning:function(a){this.removeWarning(),this.warning=new bp.Views.uploaderWarning({value:a}),this.warning.inject(".bp-avatar-status")}},bp.Views.Nav=bp.View.extend({tagName:"ul",className:"avatar-nav-items",events:{"click .bp-avatar-nav-item":"toggleView"},initialize:function(){var a=_.findWhere(this.collection.models,{id:"delete"});1!==a.get("hide")&&bp.Avatar.displayWarning(BP_Uploader.strings.has_avatar_warning),_.each(this.collection.models,this.addNavItem,this),this.collection.on("change:hide",this.showHideNavItem,this)},addNavItem:function(a){1!==a.get("hide")&&this.views.add(new bp.Views.NavItem({model:a}))},showHideNavItem:function(a){var b=null;_.each(this.views._views[""],function(c){1===c.model.get("hide")&&c.remove(),a.get("id")===c.model.get("id")&&(b=!0)}),_.isBoolean(b)||this.addNavItem(a)},toggleView:function(a){a.preventDefault(),bp.Avatar.removeWarning();var c=b(a.target).data("nav");_.each(this.collection.models,function(a){a.id===c?(a.set({active:1}),this.trigger("bp-avatar-view:changed",a.id)):a.set({active:0})},this)}}),bp.Views.NavItem=bp.View.extend({tagName:"li",className:"avatar-nav-item",template:bp.template("bp-avatar-nav"),initialize:function(){1===this.model.get("active")&&(this.el.className+=" current"),this.el.id+="bp-avatar-"+this.model.get("id"),this.model.on("change:active",this.setCurrentNav,this)},setCurrentNav:function(a){1===a.get("active")?this.$el.addClass("current"):this.$el.removeClass("current")}}),bp.Views.Avatars=bp.View.extend({className:"items",initialize:function(){_.each(this.collection.models,this.addItemView,this)},addItemView:function(a){var b={full_h:150,full_w:150};_.isUndefined(BP_Uploader.settings.crop.full_h)||_.isUndefined(BP_Uploader.settings.crop.full_w)||(b.full_h=BP_Uploader.settings.crop.full_h,b.full_w=BP_Uploader.settings.crop.full_w),a.set(_.extend(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces"),b)),this.views.add(new bp.Views.Avatar({model:a}))}}),bp.Views.Avatar=bp.View.extend({className:"item",template:bp.template("bp-avatar-item"),events:{"click .avatar-crop-submit":"cropAvatar"},initialize:function(){_.defaults(this.options,{full_h:BP_Uploader.settings.crop.full_h,full_w:BP_Uploader.settings.crop.full_w,aspectRatio:1}),!1!==this.model.get("feedback")&&bp.Avatar.displayWarning(this.model.get("feedback")),this.on("ready",this.initCropper)},initCropper:function(){var a,c,d,e,f,g,h=this,i=this.$el.find("#avatar-to-crop img"),j=this.$el.width(),k={};_.isUndefined(this.options.full_h)||_.isUndefined(this.options.full_w)||(this.options.aspectRatio=this.options.full_h/this.options.full_w),k.w=this.model.get("width"),k.h=this.model.get("height"),this.options.full_w+k.w+20<j&&(b("#avatar-to-crop").addClass("adjust"),this.$el.find(".avatar-crop-management").addClass("adjust")),k.h<=k.w?(a=Math.round(k.h/4),f=g=Math.round(k.h/2),c=f+a,d=(k.w-g)/2,e=g+d):(d=Math.round(k.w/4),f=g=Math.round(k.w/2),e=g+d,a=(k.h-f)/2,c=f+a),i.Jcrop({onChange:_.bind(h.showPreview,h),onSelect:_.bind(h.showPreview,h),aspectRatio:h.options.aspectRatio,setSelect:[d,a,e,c]},function(){bp.Avatar.jcropapi=this})},cropAvatar:function(a){a.preventDefault(),bp.Avatar.setAvatar(this.model)},showPreview:function(a){if(a.w&&a.h&&parseInt(a.w,10)>0){var c=this.options.full_w,d=this.options.full_h,e=c/a.w,f=d/a.h;this.model.set({x:a.x,y:a.y,w:a.w,h:a.h}),b("#avatar-crop-preview").css({maxWidth:"none",width:Math.round(e*this.model.get("width"))+"px",height:Math.round(f*this.model.get("height"))+"px",marginLeft:"-"+Math.round(e*this.model.get("x"))+"px",marginTop:"-"+Math.round(f*this.model.get("y"))+"px"})}}}),bp.Views.AvatarStatus=bp.View.extend({tagName:"p",className:"updated",id:"bp-avatar-feedback",initialize:function(){this.el.className+=" "+this.options.type,this.value=this.options.value},render:function(){return this.$el.html(this.value),this}}),bp.Views.DeleteAvatar=bp.View.extend({tagName:"div",id:"bp-delete-avatar-container",template:bp.template("bp-avatar-delete"),events:{"click #bp-delete-avatar":"deleteAvatar"},deleteAvatar:function(a){a.preventDefault(),bp.Avatar.deleteAvatar(this.model)}}),bp.Avatar.start())}(bp,jQuery);
bp-core/js/bp-plupload.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
window.wp=window.wp||{},window.bp=window.bp||window.wp,function(a,b){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.Uploader={},bp.Uploader.uploader=function(){var a=this,c=-1!==navigator.userAgent.indexOf("Trident/")||-1!==navigator.userAgent.indexOf("MSIE ");return this.params=BP_Uploader.settings,this.strings=BP_Uploader.strings,this.supports={upload:this.params.browser.supported},this.supported=this.supports.upload,this.supported?(c||"flash"!==plupload.predictRuntime(this.params.defaults)||this.params.defaults.required_features&&this.params.defaults.required_features.hasOwnProperty("send_binary_string")||(this.params.defaults.required_features=this.params.defaults.required_features||{},this.params.defaults.required_features.send_binary_string=!0),this.uploader=new plupload.Uploader(this.params.defaults),this.uploader.bind("Init",function(c){var d=b("#"+a.params.defaults.container),e=b("#"+a.params.defaults.drop_element);"html4"===c.runtime&&(c.settings.multipart_params.html4=!0),c.features.dragdrop&&!a.params.browser.mobile?(d.addClass("drag-drop"),e.bind("dragover.wp-uploader",function(){d.addClass("drag-over")}).bind("dragleave.wp-uploader, drop.wp-uploader",function(){d.removeClass("drag-over")})):(d.removeClass("drag-drop"),e.unbind(".wp-uploader"))}),this.uploader.init(),this.feedback=function(a,b,c){!_.isNull(c)&&c.item&&c.item.clear(),bp.Uploader.filesError.unshift({message:a,data:b,file:c})},this.uploader.bind("FilesAdded",function(c,d){var e=104857600,f=parseInt(c.settings.max_file_size,10),g=this;if(!c.settings.multi_selection&&d.length>1){for(var h in d)c.removeFile(d[h]);return void b(a).trigger("bp-uploader-warning",a.strings.unique_file_warning)}_.each(d,function(a){var b;plupload.FAILED!==a.status&&(f>e&&a.size>e&&"html5"!==c.runtime?g.uploadSizeError(c,a,!0):(b=_.extend({id:a.id,file:a,uploading:!0,date:new Date,filename:a.name},_.pick(a,"loaded","size","percent")),a.item=new bp.Models.File(b),bp.Uploader.filesQueue.add(a.item)))}),c.refresh(),c.start()}),this.uploader.bind("UploadProgress",function(a,b){b.item.set(_.pick(b,"loaded","percent"))}),this.uploader.bind("FileUploaded",function(b,c,d){var e=a.strings.default_error;try{d=JSON.parse(d.response)}catch(f){return a.feedback(e,f,c)}return!_.isObject(d)||_.isUndefined(d.success)?a.feedback(e,null,c):d.success?(_.each(["file","loaded","size","percent"],function(a){c.item.unset(a)}),c.item.set(_.extend(d.data,{uploading:!1})),void bp.Uploader.filesUploaded.add(c.item)):(d.data&&d.data.message&&(e=d.data.message),a.feedback(e,d.data,c))}),this.uploader.bind("BeforeUpload",function(c,d){b(a).trigger("bp-uploader-new-upload",c,d)}),this.uploader.bind("UploadComplete",function(c,d){b(a).trigger("bp-uploader-upload-complete",c,d),bp.Uploader.filesQueue.reset()}),void this.uploader.bind("Error",function(c,d){var e,f=a.strings.default_error,g={FAILED:a.strings.upload_failed,FILE_EXTENSION_ERROR:a.strings.invalid_filetype,IMAGE_FORMAT_ERROR:a.strings.not_an_image,IMAGE_MEMORY_ERROR:a.strings.image_memory_exceeded,IMAGE_DIMENSIONS_ERROR:a.strings.image_dimensions_exceeded,GENERIC_ERROR:a.strings.upload_failed,IO_ERROR:a.strings.io_error,HTTP_ERROR:a.strings.http_error,SECURITY_ERROR:a.strings.security_error,FILE_SIZE_ERROR:a.strings.file_exceeds_size_limit.replace("%s",d.file.name)};for(e in g)if(d.code===plupload[e]){f=g[e];break}b(a).trigger("bp-uploader-warning",f),c.refresh()})):void(BP_Uploader=void 0)},bp.Models.File=Backbone.Model.extend({file:{}}),b.extend(bp.Uploader,{filesQueue:new Backbone.Collection,filesUploaded:new Backbone.Collection,filesError:new Backbone.Collection}),bp.View=bp.Backbone.View.extend({inject:function(a){this.render(),b(a).html(this.el),this.views.ready()},prepare:function(){return!_.isUndefined(this.model)&&_.isFunction(this.model.toJSON)?this.model.toJSON():{}}}),bp.Views.Uploader=bp.View.extend({className:"bp-uploader-window",template:bp.template("upload-window"),defaults:_.pick(BP_Uploader.settings.defaults,"container","drop_element","browse_button"),initialize:function(){this.warning=null,this.model=new Backbone.Model(this.defaults),this.on("ready",this.initUploader)},initUploader:function(){this.uploader=new bp.Uploader.uploader,b(this.uploader).on("bp-uploader-warning",_.bind(this.setWarning,this)),b(this.uploader).on("bp-uploader-new-upload",_.bind(this.resetWarning,this))},setWarning:function(a,b){_.isUndefined(b)||(this.warning=new bp.Views.uploaderWarning({value:b}).render(),this.$el.after(this.warning.el))},resetWarning:function(){_.isNull(this.warning)||(this.warning.remove(),this.warning=null)}}),bp.Views.uploaderWarning=bp.View.extend({tagName:"p",className:"warning",id:"bp-uploader-warning",initialize:function(){this.value=this.options.value},render:function(){return this.$el.html(this.value),this}}),bp.Views.uploaderStatus=bp.View.extend({className:"files",initialize:function(){_.each(this.collection.models,this.addFile,this),this.collection.on("change:percent",this.progress,this),bp.Uploader.filesError.on("add",this.feedback,this)},addFile:function(a){this.views.add(new bp.Views.uploaderProgress({model:a}))},progress:function(a){_.isUndefined(a.get("percent"))||b("#"+a.get("id")+" .bp-progress .bp-bar").css("width",a.get("percent")+"%")},feedback:function(a){_.isUndefined(a.get("message"))||_.isUndefined(a.get("file"))||b("#"+a.get("file").id).html(a.get("message")).addClass("error")}}),bp.Views.uploaderProgress=bp.View.extend({className:"bp-uploader-progress",template:bp.template("progress-window")}))}(bp,jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
window.wp=window.wp||{},window.bp=window.bp||window.wp,function(a,b){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.Uploader={},bp.Uploader.uploader=function(){var a=this,c=-1!==navigator.userAgent.indexOf("Trident/")||-1!==navigator.userAgent.indexOf("MSIE ");return this.params=BP_Uploader.settings,this.strings=BP_Uploader.strings,this.supports={upload:this.params.browser.supported},this.supported=this.supports.upload,this.supported?(c||"flash"!==plupload.predictRuntime(this.params.defaults)||this.params.defaults.required_features&&this.params.defaults.required_features.hasOwnProperty("send_binary_string")||(this.params.defaults.required_features=this.params.defaults.required_features||{},this.params.defaults.required_features.send_binary_string=!0),this.uploader=new plupload.Uploader(this.params.defaults),this.uploader.bind("Init",function(c){var d=b("#"+a.params.defaults.container),e=b("#"+a.params.defaults.drop_element);"html4"===c.runtime&&(c.settings.multipart_params.html4=!0),c.features.dragdrop&&!a.params.browser.mobile?(d.addClass("drag-drop"),e.bind("dragover.wp-uploader",function(){d.addClass("drag-over")}).bind("dragleave.wp-uploader, drop.wp-uploader",function(){d.removeClass("drag-over")})):(d.removeClass("drag-drop"),e.unbind(".wp-uploader"))}),this.uploader.init(),this.feedback=function(a,b,c){!_.isNull(c)&&c.item&&c.item.clear(),bp.Uploader.filesError.unshift({message:a,data:b,file:c})},this.uploader.bind("FilesAdded",function(c,d){var e=104857600,f=parseInt(c.settings.max_file_size,10),g=this;if(!c.settings.multi_selection&&d.length>1){for(var h in d)c.removeFile(d[h]);return void b(a).trigger("bp-uploader-warning",a.strings.unique_file_warning)}_.each(d,function(a){var b;plupload.FAILED!==a.status&&(f>e&&a.size>e&&"html5"!==c.runtime?g.uploadSizeError(c,a,!0):(b=_.extend({id:a.id,file:a,uploading:!0,date:new Date,filename:a.name},_.pick(a,"loaded","size","percent")),a.item=new bp.Models.File(b),bp.Uploader.filesQueue.add(a.item)))}),c.refresh(),c.start()}),this.uploader.bind("UploadProgress",function(a,b){b.item.set(_.pick(b,"loaded","percent"))}),this.uploader.bind("FileUploaded",function(b,c,d){var e=a.strings.default_error;try{d=JSON.parse(d.response)}catch(f){return a.feedback(e,f,c)}return!_.isObject(d)||_.isUndefined(d.success)?a.feedback(e,null,c):d.success?(_.each(["file","loaded","size","percent"],function(a){c.item.unset(a)}),c.item.set(_.extend(d.data,{uploading:!1})),void bp.Uploader.filesUploaded.add(c.item)):(d.data&&d.data.message&&(e=d.data.message),a.feedback(e,d.data,c))}),this.uploader.bind("BeforeUpload",function(c,d){b(a).trigger("bp-uploader-new-upload",c,d)}),this.uploader.bind("UploadComplete",function(c,d){b(a).trigger("bp-uploader-upload-complete",c,d),bp.Uploader.filesQueue.reset()}),void this.uploader.bind("Error",function(c,d){var e,f=a.strings.default_error,g={FAILED:a.strings.upload_failed,FILE_EXTENSION_ERROR:a.strings.invalid_filetype,IMAGE_FORMAT_ERROR:a.strings.not_an_image,IMAGE_MEMORY_ERROR:a.strings.image_memory_exceeded,IMAGE_DIMENSIONS_ERROR:a.strings.image_dimensions_exceeded,GENERIC_ERROR:a.strings.upload_failed,IO_ERROR:a.strings.io_error,HTTP_ERROR:a.strings.http_error,SECURITY_ERROR:a.strings.security_error,FILE_SIZE_ERROR:a.strings.file_exceeds_size_limit.replace("%s",d.file.name)};for(e in g)if(d.code===plupload[e]){f=g[e];break}b(a).trigger("bp-uploader-warning",f),c.refresh()})):void(BP_Uploader=void 0)},bp.Models.File=Backbone.Model.extend({file:{}}),b.extend(bp.Uploader,{filesQueue:new Backbone.Collection,filesUploaded:new Backbone.Collection,filesError:new Backbone.Collection}),bp.View=bp.Backbone.View.extend({inject:function(a){this.render(),b(a).html(this.el),this.views.ready()},prepare:function(){return!_.isUndefined(this.model)&&_.isFunction(this.model.toJSON)?this.model.toJSON():{}}}),bp.Views.Uploader=bp.View.extend({className:"bp-uploader-window",template:bp.template("upload-window"),defaults:_.pick(BP_Uploader.settings.defaults,"container","drop_element","browse_button"),initialize:function(){this.warning=null,this.model=new Backbone.Model(this.defaults),this.on("ready",this.initUploader)},initUploader:function(){this.uploader=new bp.Uploader.uploader,b(this.uploader).on("bp-uploader-warning",_.bind(this.setWarning,this)),b(this.uploader).on("bp-uploader-new-upload",_.bind(this.resetWarning,this))},setWarning:function(a,b){_.isUndefined(b)||(this.warning=new bp.Views.uploaderWarning({value:b}).render(),this.$el.after(this.warning.el))},resetWarning:function(){_.isNull(this.warning)||(this.warning.remove(),this.warning=null)}}),bp.Views.uploaderWarning=bp.View.extend({tagName:"p",className:"warning",id:"bp-uploader-warning",initialize:function(){this.value=this.options.value},render:function(){return this.$el.html(this.value),this}}),bp.Views.uploaderStatus=bp.View.extend({className:"files",initialize:function(){_.each(this.collection.models,this.addFile,this),this.collection.on("change:percent",this.progress,this),bp.Uploader.filesError.on("add",this.feedback,this)},addFile:function(a){this.views.add(new bp.Views.uploaderProgress({model:a}))},progress:function(a){_.isUndefined(a.get("percent"))||b("#"+a.get("id")+" .bp-progress .bp-bar").css("width",a.get("percent")+"%")},feedback:function(a){_.isUndefined(a.get("message"))||_.isUndefined(a.get("file"))||b("#"+a.get("file").id).html(a.get("message")).addClass("error")}}),bp.Views.uploaderProgress=bp.View.extend({className:"bp-uploader-progress",template:bp.template("progress-window")}))}(bp,jQuery);
bp-core/js/confirm.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
jQuery(document).ready(function(){jQuery("a.confirm").click(function(){return confirm(BP_Confirm.are_you_sure)?!0:!1})});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
jQuery(document).ready(function(){jQuery("a.confirm").click(function(){return confirm(BP_Confirm.are_you_sure)?!0:!1})});
bp-core/js/jquery-cookie.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});
bp-core/js/jquery-query.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function bp_get_querystring(a){var b=location.search.split(a+"=")[1];return b?decodeURIComponent(b.split("&")[0]):null}
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function bp_get_querystring(a){var b=location.search.split(a+"=")[1];return b?decodeURIComponent(b.split("&")[0]):null}
bp-core/js/jquery-scroll-to.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(b){return a.isFunction(b)||"object"==typeof b?b:{top:b,left:b}}var c=a.scrollTo=function(b,c,d){return a(window).scrollTo(b,c,d)};return c.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1,limit:!0},c.window=function(){return a(window)._scrollable()},a.fn._scrollable=function(){return this.map(function(){var b=this,c=!b.nodeName||-1!==a.inArray(b.nodeName.toLowerCase(),["iframe","#document","html","body"]);if(!c)return b;var d=(b.contentWindow||b).document||b.ownerDocument||b;return/webkit/i.test(navigator.userAgent)||"BackCompat"===d.compatMode?d.body:d.documentElement})},a.fn.scrollTo=function(d,e,f){return"object"==typeof e&&(f=e,e=0),"function"==typeof f&&(f={onAfter:f}),"max"===d&&(d=9e9),f=a.extend({},c.defaults,f),e=e||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(e/=2),f.offset=b(f.offset),f.over=b(f.over),this._scrollable().each(function(){function g(a){j.animate(l,e,f.easing,a&&function(){a.call(this,k,f)})}if(null!==d){var h,i=this,j=a(i),k=d,l={},m=j.is("html,body");switch(typeof k){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?#x2F;.test(k)){k=b(k);break}if(k=m?a(k):a(k,this),!k.length)return;case"object":(k.is||k.style)&&(h=(k=a(k)).offset())}var n=a.isFunction(f.offset)&&f.offset(i,k)||f.offset;a.each(f.axis.split(""),function(a,b){var d="x"===b?"Left":"Top",e=d.toLowerCase(),o="scroll"+d,p=i[o],q=c.max(i,b);if(h)l[o]=h[e]+(m?0:p-j.offset()[e]),f.margin&&(l[o]-=parseInt(k.css("margin"+d))||0,l[o]-=parseInt(k.css("border"+d+"Width"))||0),l[o]+=n[e]||0,f.over[e]&&(l[o]+=k["x"===b?"width":"height"]()*f.over[e]);else{var r=k[e];l[o]=r.slice&&"%"===r.slice(-1)?parseFloat(r)/100*q:r}f.limit&&/^\d+#x2F;.test(l[o])&&(l[o]=l[o]<=0?0:Math.min(l[o],q)),!a&&f.queue&&(p!==l[o]&&g(f.onAfterFirst),delete l[o])}),g(f.onAfter)}}).end()},c.max=function(b,c){var d="x"===c?"Width":"Height",e="scroll"+d;if(!a(b).is("html,body"))return b[e]-a(b)[d.toLowerCase()]();var f="client"+d,g=b.ownerDocument.documentElement,h=b.ownerDocument.body;return Math.max(g[e],h[e])-Math.min(g[f],h[f])},c});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(b){return a.isFunction(b)||"object"==typeof b?b:{top:b,left:b}}var c=a.scrollTo=function(b,c,d){return a(window).scrollTo(b,c,d)};return c.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1,limit:!0},c.window=function(){return a(window)._scrollable()},a.fn._scrollable=function(){return this.map(function(){var b=this,c=!b.nodeName||-1!==a.inArray(b.nodeName.toLowerCase(),["iframe","#document","html","body"]);if(!c)return b;var d=(b.contentWindow||b).document||b.ownerDocument||b;return/webkit/i.test(navigator.userAgent)||"BackCompat"===d.compatMode?d.body:d.documentElement})},a.fn.scrollTo=function(d,e,f){return"object"==typeof e&&(f=e,e=0),"function"==typeof f&&(f={onAfter:f}),"max"===d&&(d=9e9),f=a.extend({},c.defaults,f),e=e||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(e/=2),f.offset=b(f.offset),f.over=b(f.over),this._scrollable().each(function(){function g(a){j.animate(l,e,f.easing,a&&function(){a.call(this,k,f)})}if(null!==d){var h,i=this,j=a(i),k=d,l={},m=j.is("html,body");switch(typeof k){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?#x2F;.test(k)){k=b(k);break}if(k=m?a(k):a(k,this),!k.length)return;case"object":(k.is||k.style)&&(h=(k=a(k)).offset())}var n=a.isFunction(f.offset)&&f.offset(i,k)||f.offset;a.each(f.axis.split(""),function(a,b){var d="x"===b?"Left":"Top",e=d.toLowerCase(),o="scroll"+d,p=i[o],q=c.max(i,b);if(h)l[o]=h[e]+(m?0:p-j.offset()[e]),f.margin&&(l[o]-=parseInt(k.css("margin"+d))||0,l[o]-=parseInt(k.css("border"+d+"Width"))||0),l[o]+=n[e]||0,f.over[e]&&(l[o]+=k["x"===b?"width":"height"]()*f.over[e]);else{var r=k[e];l[o]=r.slice&&"%"===r.slice(-1)?parseFloat(r)/100*q:r}f.limit&&/^\d+#x2F;.test(l[o])&&(l[o]=l[o]<=0?0:Math.min(l[o],q)),!a&&f.queue&&(p!==l[o]&&g(f.onAfterFirst),delete l[o])}),g(f.onAfter)}}).end()},c.max=function(b,c){var d="x"===c?"Width":"Height",e="scroll"+d;if(!a(b).is("html,body"))return b[e]-a(b)[d.toLowerCase()]();var f="client"+d,g=b.ownerDocument.documentElement,h=b.ownerDocument.body;return Math.max(g[e],h[e])-Math.min(g[f],h[f])},c});
bp-core/js/jquery.atwho.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return a.returnExportsGlobal=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b,c,d,e,f,g,h,i=[].slice;c=function(){function b(b){this.current_flag=null,this.controllers={},this.alias_maps={},this.$inputor=a(b),this.setIframe(),this.listen()}return b.prototype.createContainer=function(b){return 0===(this.$el=a("#atwho-container",b)).length?a(b.body).append(this.$el=a("<div id='atwho-container'></div>")):void 0},b.prototype.setIframe=function(a,b){var c;return null==b&&(b=!1),a?(this.window=a.contentWindow,this.document=a.contentDocument||this.window.document,this.iframe=a):(this.document=document,this.window=window,this.iframe=null),(this.iframeStandalone=b)?(null!=(c=this.$el)&&c.remove(),this.createContainer(this.document)):this.createContainer(document)},b.prototype.controller=function(a){var b,c,d,e;if(this.alias_maps[a])c=this.controllers[this.alias_maps[a]];else{e=this.controllers;for(d in e)if(b=e[d],d===a){c=b;break}}return c?c:this.controllers[this.current_flag]},b.prototype.set_context_for=function(a){return this.current_flag=a,this},b.prototype.reg=function(a,b){var c,e;return c=(e=this.controllers)[a]||(e[a]=new d(this,a)),b.alias&&(this.alias_maps[b.alias]=a),c.init(b),this},b.prototype.listen=function(){return this.$inputor.on("keyup.atwhoInner",function(a){return function(b){return a.on_keyup(b)}}(this)).on("keydown.atwhoInner",function(a){return function(b){return a.on_keydown(b)}}(this)).on("scroll.atwhoInner",function(a){return function(b){var c;return null!=(c=a.controller())?c.view.hide(b):void 0}}(this)).on("blur.atwhoInner",function(a){return function(b){var c;return(c=a.controller())?c.view.hide(b,c.get_opt("display_timeout")):void 0}}(this)).on("click.atwhoInner",function(a){return function(){return a.dispatch()}}(this))},b.prototype.shutdown=function(){var a,b,c;c=this.controllers;for(b in c)a=c[b],a.destroy(),delete this.controllers[b];return this.$inputor.off(".atwhoInner"),this.$el.remove()},b.prototype.dispatch=function(){return a.map(this.controllers,function(a){return function(b){var c;return(c=b.get_opt("delay"))?(clearTimeout(a.delayedCallback),a.delayedCallback=setTimeout(function(){return b.look_up()?a.set_context_for(b.at):void 0},c)):b.look_up()?a.set_context_for(b.at):void 0}}(this))},b.prototype.on_keyup=function(b){var c;switch(b.keyCode){case f.ESC:b.preventDefault(),null!=(c=this.controller())&&c.view.hide();break;case f.DOWN:case f.UP:case f.CTRL:a.noop();break;case f.P:case f.N:b.ctrlKey||this.dispatch();break;default:this.dispatch()}},b.prototype.on_keydown=function(b){var c,d;if(c=null!=(d=this.controller())?d.view:void 0,c&&c.visible())switch(b.keyCode){case f.ESC:b.preventDefault(),c.hide(b);break;case f.UP:b.preventDefault(),c.prev();break;case f.DOWN:b.preventDefault(),c.next();break;case f.P:if(!b.ctrlKey)return;b.preventDefault(),c.prev();break;case f.N:if(!b.ctrlKey)return;b.preventDefault(),c.next();break;case f.TAB:case f.ENTER:if(!c.visible())return;b.preventDefault(),c.choose(b);break;default:a.noop()}},b}(),d=function(){function b(b,c){this.app=b,this.at=c,this.$inputor=this.app.$inputor,this.id=this.$inputor[0].id||this.uid(),this.setting=null,this.query=null,this.pos=0,this.cur_rect=null,this.range=null,0===(this.$el=a("#atwho-ground-"+this.id,this.app.$el)).length&&this.app.$el.append(this.$el=a("<div id='atwho-ground-"+this.id+"'></div>")),this.model=new g(this),this.view=new h(this)}return b.prototype.uid=function(){return(Math.random().toString(16)+"000000000").substr(2,8)+(new Date).getTime()},b.prototype.init=function(b){return this.setting=a.extend({},this.setting||a.fn.atwho["default"],b),this.view.init(),this.model.reload(this.setting.data)},b.prototype.destroy=function(){return this.trigger("beforeDestroy"),this.model.destroy(),this.view.destroy(),this.$el.remove()},b.prototype.call_default=function(){var b,c,d;d=arguments[0],b=2<=arguments.length?i.call(arguments,1):[];try{return e[d].apply(this,b)}catch(f){return c=f,a.error(""+c+" Or maybe At.js doesn't have function "+d)}},b.prototype.trigger=function(a,b){var c,d;return null==b&&(b=[]),b.push(this),c=this.get_opt("alias"),d=c?""+a+"-"+c+".atwho":""+a+".atwho",this.$inputor.trigger(d,b)},b.prototype.callbacks=function(a){return this.get_opt("callbacks")[a]||e[a]},b.prototype.get_opt=function(a){var b;try{return this.setting[a]}catch(c){return b=c,null}},b.prototype.content=function(){var a;if(this.$inputor.is("textarea, input"))return this.$inputor.val();if(a=this.mark_range())return(a.startContainer.textContent||"").slice(0,a.startOffset)},b.prototype.catch_query=function(){var a,b,c,d,e,f;return b=this.content(),a=this.$inputor.caret("pos",{iframe:this.app.iframe}),f=b.slice(0,a),d=this.callbacks("matcher").call(this,this.at,f,this.get_opt("start_with_space")),"string"==typeof d&&d.length<=this.get_opt("max_len",20)?(e=a-d.length,c=e+d.length,this.pos=e,d={text:d,head_pos:e,end_pos:c},this.trigger("matched",[this.at,d.text])):(d=null,this.view.hide()),this.query=d},b.prototype.rect=function(){var b,c,d;if(b=this.$inputor.caret("offset",this.pos-1,{iframe:this.app.iframe}))return this.app.iframe&&!this.app.iframeStandalone&&(c=a(this.app.iframe).offset(),b.left+=c.left,b.top+=c.top),this.$inputor.is("[contentEditable]")&&(b=this.cur_rect||(this.cur_rect=b)),d=this.app.document.selection?0:2,{left:b.left,top:b.top,bottom:b.top+b.height+d}},b.prototype.reset_rect=function(){return this.$inputor.is("[contentEditable]")?this.cur_rect=null:void 0},b.prototype.mark_range=function(){var a;if(this.$inputor.is("[contentEditable]"))return this.app.window.getSelection&&(a=this.app.window.getSelection()).rangeCount>0?this.range=a.getRangeAt(0):this.app.document.selection?this.ie8_range=this.app.document.selection.createRange():void 0},b.prototype.insert_content_for=function(b){var c,d,e;return d=b.data("value"),e=this.get_opt("insert_tpl"),this.$inputor.is("textarea, input")||!e?d:(c=a.extend({},b.data("item-data"),{"atwho-data-value":d,"atwho-at":this.at}),this.callbacks("tpl_eval").call(this,e,c))},b.prototype.insert=function(b){var c,d,e,f,g,h,i,j,k,l,m,n;if(c=this.$inputor,k=this.callbacks("inserting_wrapper").call(this,c,b,this.get_opt("suffix")),c.is("textarea, input"))h=c.val(),i=h.slice(0,Math.max(this.query.head_pos-this.at.length,0)),j=""+i+k+h.slice(this.query.end_pos||0),c.val(j),c.caret("pos",i.length+k.length,{iframe:this.app.iframe});else if(f=this.range){for(e=f.startOffset-(this.query.end_pos-this.query.head_pos)-this.at.length,f.setStart(f.endContainer,Math.max(e,0)),f.setEnd(f.endContainer,f.endOffset),f.deleteContents(),n=a(k,this.app.document),l=0,m=n.length;m>l;l++)d=n[l],f.insertNode(d),f.setEndAfter(d),f.collapse(!1);g=this.app.window.getSelection(),g.removeAllRanges(),g.addRange(f)}else(f=this.ie8_range)&&(f.moveStart("character",this.query.end_pos-this.query.head_pos-this.at.length),f.pasteHTML(k),f.collapse(!1),f.select());return c.is(":focus")||c.focus(),c.change()},b.prototype.render_view=function(a){var b;return b=this.get_opt("search_key"),a=this.callbacks("sorter").call(this,this.query.text,a.slice(0,1001),b),this.view.render(a.slice(0,this.get_opt("limit")))},b.prototype.look_up=function(){var b,c;if(b=this.catch_query())return c=function(a){return a&&a.length>0?this.render_view(a):this.view.hide()},this.model.query(b.text,a.proxy(c,this)),b},b}(),g=function(){function b(a){this.context=a,this.at=this.context.at,this.storage=this.context.$inputor}return b.prototype.destroy=function(){return this.storage.data(this.at,null)},b.prototype.saved=function(){return this.fetch()>0},b.prototype.query=function(a,b){var c,d,e;return c=this.fetch(),d=this.context.get_opt("search_key"),c=this.context.callbacks("filter").call(this.context,a,c,d)||[],e=this.context.callbacks("remote_filter"),c.length>0||!e&&0===c.length?b(c):e.call(this.context,a,b)},b.prototype.fetch=function(){return this.storage.data(this.at)||[]},b.prototype.save=function(a){return this.storage.data(this.at,this.context.callbacks("before_save").call(this.context,a||[]))},b.prototype.load=function(a){return!this.saved()&&a?this._load(a):void 0},b.prototype.reload=function(a){return this._load(a)},b.prototype._load=function(b){return"string"==typeof b?a.ajax(b,{dataType:"json"}).done(function(a){return function(b){return a.save(b)}}(this)):this.save(b)},b}(),h=function(){function b(b){this.context=b,this.$el=a("<div class='atwho-view'><ul class='atwho-view-ul'></ul></div>"),this.timeout_id=null,this.context.$el.append(this.$el),this.bind_event()}return b.prototype.init=function(){var a;return a=this.context.get_opt("alias")||this.context.at.charCodeAt(0),this.$el.attr({id:"at-view-"+a})},b.prototype.destroy=function(){return this.$el.remove()},b.prototype.bind_event=function(){var b;return b=this.$el.find("ul"),b.on("mouseenter.atwho-view","li",function(c){return b.find(".cur").removeClass("cur"),a(c.currentTarget).addClass("cur")}).on("click.atwho-view","li",function(c){return function(d){return b.find(".cur").removeClass("cur"),a(d.currentTarget).addClass("cur"),c.choose(d),d.preventDefault()}}(this))},b.prototype.visible=function(){return this.$el.is(":visible")},b.prototype.choose=function(a){var b,c;return(b=this.$el.find(".cur")).length&&(c=this.context.insert_content_for(b),this.context.insert(this.context.callbacks("before_insert").call(this.context,c,b),b),this.context.trigger("inserted",[b,a]),this.hide(a)),this.context.get_opt("hide_without_suffix")?this.stop_showing=!0:void 0},b.prototype.reposition=function(b){var c,d,e,f;return f=this.context.app.iframeStandalone?this.context.app.window:window,b.bottom+this.$el.height()-a(f).scrollTop()>a(f).height()&&(b.bottom=b.top-this.$el.height()),b.left>(d=a(f).width()-this.$el.width()-5)&&(b.left=d),c={left:b.left,top:b.bottom},null!=(e=this.context.callbacks("before_reposition"))&&e.call(this.context,c),this.$el.offset(c),this.context.trigger("reposition",[c])},b.prototype.next=function(){var a,b;return a=this.$el.find(".cur").removeClass("cur"),b=a.next(),b.length||(b=this.$el.find("li:first")),b.addClass("cur"),this.$el.animate({scrollTop:Math.max(0,a.innerHeight()*(b.index()+2)-this.$el.height())},150)},b.prototype.prev=function(){var a,b;return a=this.$el.find(".cur").removeClass("cur"),b=a.prev(),b.length||(b=this.$el.find("li:last")),b.addClass("cur"),this.$el.animate({scrollTop:Math.max(0,a.innerHeight()*(b.index()+2)-this.$el.height())},150)},b.prototype.show=function(){var a;return this.stop_showing?void(this.stop_showing=!1):(this.context.mark_range(),this.visible()||(this.$el.show(),this.$el.scrollTop(0),this.context.trigger("shown")),(a=this.context.rect())?this.reposition(a):void 0)},b.prototype.hide=function(a,b){var c;if(this.visible())return isNaN(b)?(this.context.reset_rect(),this.$el.hide(),this.context.trigger("hidden",[a])):(c=function(a){return function(){return a.hide()}}(this),clearTimeout(this.timeout_id),this.timeout_id=setTimeout(c,b))},b.prototype.render=function(b){var c,d,e,f,g,h,i;if(!(a.isArray(b)&&b.length>0))return void this.hide();for(this.$el.find("ul").empty(),d=this.$el.find("ul"),g=this.context.get_opt("tpl"),h=0,i=b.length;i>h;h++)e=b[h],e=a.extend({},e,{"atwho-at":this.context.at}),f=this.context.callbacks("tpl_eval").call(this.context,g,e),c=a(this.context.callbacks("highlighter").call(this.context,f,this.context.query.text)),c.data("item-data",e),d.append(c);return this.show(),this.context.get_opt("highlight_first")?d.find("li:first").addClass("cur"):void 0},b}(),f={DOWN:40,UP:38,ESC:27,TAB:9,ENTER:13,CTRL:17,P:80,N:78},e={before_save:function(b){var c,d,e,f;if(!a.isArray(b))return b;for(f=[],d=0,e=b.length;e>d;d++)c=b[d],f.push(a.isPlainObject(c)?c:{name:c});return f},matcher:function(a,b,c){var d,e,f,g;return a=a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\amp;"),c&&(a="(?:^|\\s)"+a),f=decodeURI("%C3%80"),g=decodeURI("%C3%BF"),e=new RegExp(""+a+"([A-Za-z"+f+"-"+g+"0-9_+-]*)$|"+a+"([^\\x00-\\xff]*)quot;,"gi"),d=e.exec(b),d?d[2]||d[1]:null},filter:function(a,b,c){var d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],~new String(d[c]).toLowerCase().indexOf(a.toLowerCase())&&g.push(d);return g},remote_filter:null,sorter:function(a,b,c){var d,e,f,g;if(!a)return b;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],d.atwho_order=new String(d[c]).toLowerCase().indexOf(a.toLowerCase()),d.atwho_order>-1&&g.push(d);return g.sort(function(a,b){return a.atwho_order-b.atwho_order})},tpl_eval:function(a,b){var c;try{return a.replace(/\$\{([^\}]*)\}/g,function(a,c){return b[c]})}catch(d){return c=d,""}},highlighter:function(a,b){var c;return b?(c=new RegExp(">\\s*(\\w*?)("+b.replace("+","\\+")+")(\\w*)\\s*<","ig"),a.replace(c,function(a,b,c,d){return"> "+b+"<strong>"+c+"</strong>"+d+" <"})):a},before_insert:function(a){return a},inserting_wrapper:function(a,b,c){var d;return c=""===c?c:c||" ",a.is("textarea, input")?""+b+c:"true"===a.attr("contentEditable")?(c=" "===c?"&nbsp;":c,/firefox/i.test(navigator.userAgent)?d="<span>"+b+c+"</span>":(c="<span contenteditable='false'>"+c+"</span>",d="<span contenteditable='false'>"+b+c+"</span>"),this.app.document.selection&&(d="<span contenteditable='true'>"+b+"</span>"),d+"<span></span>"):void 0}},b={load:function(a,b){var c;return(c=this.controller(a))?c.model.load(b):void 0},setIframe:function(a,b){return this.setIframe(a,b),null},run:function(){return this.dispatch()},destroy:function(){return this.shutdown(),this.$inputor.data("atwho",null)}},a.fn.atwho=function(d){var e,f;return f=arguments,e=null,this.filter('textarea, input, [contenteditable=""], [contenteditable=true]').each(function(){var g,h;return(h=(g=a(this)).data("atwho"))||g.data("atwho",h=new c(this)),"object"!=typeof d&&d?b[d]&&h?e=b[d].apply(h,Array.prototype.slice.call(f,1)):a.error("Method "+d+" does not exist on jQuery.caret"):h.reg(d.at,d)}),e||this},a.fn.atwho["default"]={at:void 0,alias:void 0,data:null,tpl:"<li data-value='${atwho-at}${name}'>${name}</li>",insert_tpl:"<span id='${id}'>${atwho-data-value}</span>",callbacks:e,search_key:"name",suffix:void 0,hide_without_suffix:!1,start_with_space:!0,highlight_first:!0,limit:5,max_len:20,display_timeout:300,delay:null}});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return a.returnExportsGlobal=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b,c,d,e,f,g,h,i=[].slice;c=function(){function b(b){this.current_flag=null,this.controllers={},this.alias_maps={},this.$inputor=a(b),this.setIframe(),this.listen()}return b.prototype.createContainer=function(b){return 0===(this.$el=a("#atwho-container",b)).length?a(b.body).append(this.$el=a("<div id='atwho-container'></div>")):void 0},b.prototype.setIframe=function(a,b){var c;return null==b&&(b=!1),a?(this.window=a.contentWindow,this.document=a.contentDocument||this.window.document,this.iframe=a):(this.document=document,this.window=window,this.iframe=null),(this.iframeStandalone=b)?(null!=(c=this.$el)&&c.remove(),this.createContainer(this.document)):this.createContainer(document)},b.prototype.controller=function(a){var b,c,d,e;if(this.alias_maps[a])c=this.controllers[this.alias_maps[a]];else{e=this.controllers;for(d in e)if(b=e[d],d===a){c=b;break}}return c?c:this.controllers[this.current_flag]},b.prototype.set_context_for=function(a){return this.current_flag=a,this},b.prototype.reg=function(a,b){var c,e;return c=(e=this.controllers)[a]||(e[a]=new d(this,a)),b.alias&&(this.alias_maps[b.alias]=a),c.init(b),this},b.prototype.listen=function(){return this.$inputor.on("keyup.atwhoInner",function(a){return function(b){return a.on_keyup(b)}}(this)).on("keydown.atwhoInner",function(a){return function(b){return a.on_keydown(b)}}(this)).on("scroll.atwhoInner",function(a){return function(b){var c;return null!=(c=a.controller())?c.view.hide(b):void 0}}(this)).on("blur.atwhoInner",function(a){return function(b){var c;return(c=a.controller())?c.view.hide(b,c.get_opt("display_timeout")):void 0}}(this)).on("click.atwhoInner",function(a){return function(){return a.dispatch()}}(this))},b.prototype.shutdown=function(){var a,b,c;c=this.controllers;for(b in c)a=c[b],a.destroy(),delete this.controllers[b];return this.$inputor.off(".atwhoInner"),this.$el.remove()},b.prototype.dispatch=function(){return a.map(this.controllers,function(a){return function(b){var c;return(c=b.get_opt("delay"))?(clearTimeout(a.delayedCallback),a.delayedCallback=setTimeout(function(){return b.look_up()?a.set_context_for(b.at):void 0},c)):b.look_up()?a.set_context_for(b.at):void 0}}(this))},b.prototype.on_keyup=function(b){var c;switch(b.keyCode){case f.ESC:b.preventDefault(),null!=(c=this.controller())&&c.view.hide();break;case f.DOWN:case f.UP:case f.CTRL:a.noop();break;case f.P:case f.N:b.ctrlKey||this.dispatch();break;default:this.dispatch()}},b.prototype.on_keydown=function(b){var c,d;if(c=null!=(d=this.controller())?d.view:void 0,c&&c.visible())switch(b.keyCode){case f.ESC:b.preventDefault(),c.hide(b);break;case f.UP:b.preventDefault(),c.prev();break;case f.DOWN:b.preventDefault(),c.next();break;case f.P:if(!b.ctrlKey)return;b.preventDefault(),c.prev();break;case f.N:if(!b.ctrlKey)return;b.preventDefault(),c.next();break;case f.TAB:case f.ENTER:if(!c.visible())return;b.preventDefault(),c.choose(b);break;default:a.noop()}},b}(),d=function(){function b(b,c){this.app=b,this.at=c,this.$inputor=this.app.$inputor,this.id=this.$inputor[0].id||this.uid(),this.setting=null,this.query=null,this.pos=0,this.cur_rect=null,this.range=null,0===(this.$el=a("#atwho-ground-"+this.id,this.app.$el)).length&&this.app.$el.append(this.$el=a("<div id='atwho-ground-"+this.id+"'></div>")),this.model=new g(this),this.view=new h(this)}return b.prototype.uid=function(){return(Math.random().toString(16)+"000000000").substr(2,8)+(new Date).getTime()},b.prototype.init=function(b){return this.setting=a.extend({},this.setting||a.fn.atwho["default"],b),this.view.init(),this.model.reload(this.setting.data)},b.prototype.destroy=function(){return this.trigger("beforeDestroy"),this.model.destroy(),this.view.destroy(),this.$el.remove()},b.prototype.call_default=function(){var b,c,d;d=arguments[0],b=2<=arguments.length?i.call(arguments,1):[];try{return e[d].apply(this,b)}catch(f){return c=f,a.error(""+c+" Or maybe At.js doesn't have function "+d)}},b.prototype.trigger=function(a,b){var c,d;return null==b&&(b=[]),b.push(this),c=this.get_opt("alias"),d=c?""+a+"-"+c+".atwho":""+a+".atwho",this.$inputor.trigger(d,b)},b.prototype.callbacks=function(a){return this.get_opt("callbacks")[a]||e[a]},b.prototype.get_opt=function(a){var b;try{return this.setting[a]}catch(c){return b=c,null}},b.prototype.content=function(){var a;if(this.$inputor.is("textarea, input"))return this.$inputor.val();if(a=this.mark_range())return(a.startContainer.textContent||"").slice(0,a.startOffset)},b.prototype.catch_query=function(){var a,b,c,d,e,f;return b=this.content(),a=this.$inputor.caret("pos",{iframe:this.app.iframe}),f=b.slice(0,a),d=this.callbacks("matcher").call(this,this.at,f,this.get_opt("start_with_space")),"string"==typeof d&&d.length<=this.get_opt("max_len",20)?(e=a-d.length,c=e+d.length,this.pos=e,d={text:d,head_pos:e,end_pos:c},this.trigger("matched",[this.at,d.text])):(d=null,this.view.hide()),this.query=d},b.prototype.rect=function(){var b,c,d;if(b=this.$inputor.caret("offset",this.pos-1,{iframe:this.app.iframe}))return this.app.iframe&&!this.app.iframeStandalone&&(c=a(this.app.iframe).offset(),b.left+=c.left,b.top+=c.top),this.$inputor.is("[contentEditable]")&&(b=this.cur_rect||(this.cur_rect=b)),d=this.app.document.selection?0:2,{left:b.left,top:b.top,bottom:b.top+b.height+d}},b.prototype.reset_rect=function(){return this.$inputor.is("[contentEditable]")?this.cur_rect=null:void 0},b.prototype.mark_range=function(){var a;if(this.$inputor.is("[contentEditable]"))return this.app.window.getSelection&&(a=this.app.window.getSelection()).rangeCount>0?this.range=a.getRangeAt(0):this.app.document.selection?this.ie8_range=this.app.document.selection.createRange():void 0},b.prototype.insert_content_for=function(b){var c,d,e;return d=b.data("value"),e=this.get_opt("insert_tpl"),this.$inputor.is("textarea, input")||!e?d:(c=a.extend({},b.data("item-data"),{"atwho-data-value":d,"atwho-at":this.at}),this.callbacks("tpl_eval").call(this,e,c))},b.prototype.insert=function(b){var c,d,e,f,g,h,i,j,k,l,m,n;if(c=this.$inputor,k=this.callbacks("inserting_wrapper").call(this,c,b,this.get_opt("suffix")),c.is("textarea, input"))h=c.val(),i=h.slice(0,Math.max(this.query.head_pos-this.at.length,0)),j=""+i+k+h.slice(this.query.end_pos||0),c.val(j),c.caret("pos",i.length+k.length,{iframe:this.app.iframe});else if(f=this.range){for(e=f.startOffset-(this.query.end_pos-this.query.head_pos)-this.at.length,f.setStart(f.endContainer,Math.max(e,0)),f.setEnd(f.endContainer,f.endOffset),f.deleteContents(),n=a(k,this.app.document),l=0,m=n.length;m>l;l++)d=n[l],f.insertNode(d),f.setEndAfter(d),f.collapse(!1);g=this.app.window.getSelection(),g.removeAllRanges(),g.addRange(f)}else(f=this.ie8_range)&&(f.moveStart("character",this.query.end_pos-this.query.head_pos-this.at.length),f.pasteHTML(k),f.collapse(!1),f.select());return c.is(":focus")||c.focus(),c.change()},b.prototype.render_view=function(a){var b;return b=this.get_opt("search_key"),a=this.callbacks("sorter").call(this,this.query.text,a.slice(0,1001),b),this.view.render(a.slice(0,this.get_opt("limit")))},b.prototype.look_up=function(){var b,c;if(b=this.catch_query())return c=function(a){return a&&a.length>0?this.render_view(a):this.view.hide()},this.model.query(b.text,a.proxy(c,this)),b},b}(),g=function(){function b(a){this.context=a,this.at=this.context.at,this.storage=this.context.$inputor}return b.prototype.destroy=function(){return this.storage.data(this.at,null)},b.prototype.saved=function(){return this.fetch()>0},b.prototype.query=function(a,b){var c,d,e;return c=this.fetch(),d=this.context.get_opt("search_key"),c=this.context.callbacks("filter").call(this.context,a,c,d)||[],e=this.context.callbacks("remote_filter"),c.length>0||!e&&0===c.length?b(c):e.call(this.context,a,b)},b.prototype.fetch=function(){return this.storage.data(this.at)||[]},b.prototype.save=function(a){return this.storage.data(this.at,this.context.callbacks("before_save").call(this.context,a||[]))},b.prototype.load=function(a){return!this.saved()&&a?this._load(a):void 0},b.prototype.reload=function(a){return this._load(a)},b.prototype._load=function(b){return"string"==typeof b?a.ajax(b,{dataType:"json"}).done(function(a){return function(b){return a.save(b)}}(this)):this.save(b)},b}(),h=function(){function b(b){this.context=b,this.$el=a("<div class='atwho-view'><ul class='atwho-view-ul'></ul></div>"),this.timeout_id=null,this.context.$el.append(this.$el),this.bind_event()}return b.prototype.init=function(){var a;return a=this.context.get_opt("alias")||this.context.at.charCodeAt(0),this.$el.attr({id:"at-view-"+a})},b.prototype.destroy=function(){return this.$el.remove()},b.prototype.bind_event=function(){var b;return b=this.$el.find("ul"),b.on("mouseenter.atwho-view","li",function(c){return b.find(".cur").removeClass("cur"),a(c.currentTarget).addClass("cur")}).on("click.atwho-view","li",function(c){return function(d){return b.find(".cur").removeClass("cur"),a(d.currentTarget).addClass("cur"),c.choose(d),d.preventDefault()}}(this))},b.prototype.visible=function(){return this.$el.is(":visible")},b.prototype.choose=function(a){var b,c;return(b=this.$el.find(".cur")).length&&(c=this.context.insert_content_for(b),this.context.insert(this.context.callbacks("before_insert").call(this.context,c,b),b),this.context.trigger("inserted",[b,a]),this.hide(a)),this.context.get_opt("hide_without_suffix")?this.stop_showing=!0:void 0},b.prototype.reposition=function(b){var c,d,e,f;return f=this.context.app.iframeStandalone?this.context.app.window:window,b.bottom+this.$el.height()-a(f).scrollTop()>a(f).height()&&(b.bottom=b.top-this.$el.height()),b.left>(d=a(f).width()-this.$el.width()-5)&&(b.left=d),c={left:b.left,top:b.bottom},null!=(e=this.context.callbacks("before_reposition"))&&e.call(this.context,c),this.$el.offset(c),this.context.trigger("reposition",[c])},b.prototype.next=function(){var a,b;return a=this.$el.find(".cur").removeClass("cur"),b=a.next(),b.length||(b=this.$el.find("li:first")),b.addClass("cur"),this.$el.animate({scrollTop:Math.max(0,a.innerHeight()*(b.index()+2)-this.$el.height())},150)},b.prototype.prev=function(){var a,b;return a=this.$el.find(".cur").removeClass("cur"),b=a.prev(),b.length||(b=this.$el.find("li:last")),b.addClass("cur"),this.$el.animate({scrollTop:Math.max(0,a.innerHeight()*(b.index()+2)-this.$el.height())},150)},b.prototype.show=function(){var a;return this.stop_showing?void(this.stop_showing=!1):(this.context.mark_range(),this.visible()||(this.$el.show(),this.$el.scrollTop(0),this.context.trigger("shown")),(a=this.context.rect())?this.reposition(a):void 0)},b.prototype.hide=function(a,b){var c;if(this.visible())return isNaN(b)?(this.context.reset_rect(),this.$el.hide(),this.context.trigger("hidden",[a])):(c=function(a){return function(){return a.hide()}}(this),clearTimeout(this.timeout_id),this.timeout_id=setTimeout(c,b))},b.prototype.render=function(b){var c,d,e,f,g,h,i;if(!(a.isArray(b)&&b.length>0))return void this.hide();for(this.$el.find("ul").empty(),d=this.$el.find("ul"),g=this.context.get_opt("tpl"),h=0,i=b.length;i>h;h++)e=b[h],e=a.extend({},e,{"atwho-at":this.context.at}),f=this.context.callbacks("tpl_eval").call(this.context,g,e),c=a(this.context.callbacks("highlighter").call(this.context,f,this.context.query.text)),c.data("item-data",e),d.append(c);return this.show(),this.context.get_opt("highlight_first")?d.find("li:first").addClass("cur"):void 0},b}(),f={DOWN:40,UP:38,ESC:27,TAB:9,ENTER:13,CTRL:17,P:80,N:78},e={before_save:function(b){var c,d,e,f;if(!a.isArray(b))return b;for(f=[],d=0,e=b.length;e>d;d++)c=b[d],f.push(a.isPlainObject(c)?c:{name:c});return f},matcher:function(a,b,c){var d,e,f,g;return a=a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\amp;"),c&&(a="(?:^|\\s)"+a),f=decodeURI("%C3%80"),g=decodeURI("%C3%BF"),e=new RegExp(""+a+"([A-Za-z"+f+"-"+g+"0-9_+-]*)$|"+a+"([^\\x00-\\xff]*)quot;,"gi"),d=e.exec(b),d?d[2]||d[1]:null},filter:function(a,b,c){var d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],~new String(d[c]).toLowerCase().indexOf(a.toLowerCase())&&g.push(d);return g},remote_filter:null,sorter:function(a,b,c){var d,e,f,g;if(!a)return b;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],d.atwho_order=new String(d[c]).toLowerCase().indexOf(a.toLowerCase()),d.atwho_order>-1&&g.push(d);return g.sort(function(a,b){return a.atwho_order-b.atwho_order})},tpl_eval:function(a,b){var c;try{return a.replace(/\$\{([^\}]*)\}/g,function(a,c){return b[c]})}catch(d){return c=d,""}},highlighter:function(a,b){var c;return b?(c=new RegExp(">\\s*(\\w*?)("+b.replace("+","\\+")+")(\\w*)\\s*<","ig"),a.replace(c,function(a,b,c,d){return"> "+b+"<strong>"+c+"</strong>"+d+" <"})):a},before_insert:function(a){return a},inserting_wrapper:function(a,b,c){var d;return c=""===c?c:c||" ",a.is("textarea, input")?""+b+c:"true"===a.attr("contentEditable")?(c=" "===c?"&nbsp;":c,/firefox/i.test(navigator.userAgent)?d="<span>"+b+c+"</span>":(c="<span contenteditable='false'>"+c+"</span>",d="<span contenteditable='false'>"+b+c+"</span>"),this.app.document.selection&&(d="<span contenteditable='true'>"+b+"</span>"),d+"<span></span>"):void 0}},b={load:function(a,b){var c;return(c=this.controller(a))?c.model.load(b):void 0},setIframe:function(a,b){return this.setIframe(a,b),null},run:function(){return this.dispatch()},destroy:function(){return this.shutdown(),this.$inputor.data("atwho",null)}},a.fn.atwho=function(d){var e,f;return f=arguments,e=null,this.filter('textarea, input, [contenteditable=""], [contenteditable=true]').each(function(){var g,h;return(h=(g=a(this)).data("atwho"))||g.data("atwho",h=new c(this)),"object"!=typeof d&&d?b[d]&&h?e=b[d].apply(h,Array.prototype.slice.call(f,1)):a.error("Method "+d+" does not exist on jQuery.caret"):h.reg(d.at,d)}),e||this},a.fn.atwho["default"]={at:void 0,alias:void 0,data:null,tpl:"<li data-value='${atwho-at}${name}'>${name}</li>",insert_tpl:"<span id='${id}'>${atwho-data-value}</span>",callbacks:e,search_key:"name",suffix:void 0,hide_without_suffix:!1,start_with_space:!0,highlight_first:!0,limit:5,max_len:20,display_timeout:300,delay:null}});
bp-core/js/jquery.caret.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return a.returnExportsGlobal=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l;k="caret",b=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}return b.prototype.setPos=function(){return this.domInputor},b.prototype.getIEPosition=function(){return this.getPosition()},b.prototype.getPosition=function(){var a,b;return b=this.getOffset(),a=this.$inputor.offset(),b.left-=a.left,b.top-=a.top,b},b.prototype.getOldIEPos=function(){var a,b;return b=h.selection.createRange(),a=h.body.createTextRange(),a.moveToElementText(this.domInputor),a.setEndPoint("EndToEnd",b),a.text.length},b.prototype.getPos=function(){var a,b,c;return(c=this.range())?(a=c.cloneRange(),a.selectNodeContents(this.domInputor),a.setEnd(c.endContainer,c.endOffset),b=a.toString().length,a.detach(),b):h.selection?this.getOldIEPos():void 0},b.prototype.getOldIEOffset=function(){var a,b;return a=h.selection.createRange().duplicate(),a.moveStart("character",-1),b=a.getBoundingClientRect(),{height:b.bottom-b.top,left:b.left,top:b.top}},b.prototype.getOffset=function(){var b,c,d,e,f;return j.getSelection&&(d=this.range())?(d.endOffset-1>0&&d.endContainer===!this.domInputor&&(b=d.cloneRange(),b.setStart(d.endContainer,d.endOffset-1),b.setEnd(d.endContainer,d.endOffset),e=b.getBoundingClientRect(),c={height:e.height,left:e.left+e.width,top:e.top},b.detach()),c&&0!==(null!=c?c.height:void 0)||(b=d.cloneRange(),f=a(h.createTextNode("|")),b.insertNode(f[0]),b.selectNode(f[0]),e=b.getBoundingClientRect(),c={height:e.height,left:e.left,top:e.top},f.remove(),b.detach())):h.selection&&(c=this.getOldIEOffset()),c&&(c.top+=a(j).scrollTop(),c.left+=a(j).scrollLeft()),c},b.prototype.range=function(){var a;if(j.getSelection)return a=j.getSelection(),a.rangeCount>0?a.getRangeAt(0):null},b}(),c=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}return b.prototype.getIEPos=function(){var a,b,c,d,e,f,g;return b=this.domInputor,f=h.selection.createRange(),e=0,f&&f.parentElement()===b&&(d=b.value.replace(/\r\n/g,"\n"),c=d.length,g=b.createTextRange(),g.moveToBookmark(f.getBookmark()),a=b.createTextRange(),a.collapse(!1),e=g.compareEndPoints("StartToEnd",a)>-1?c:-g.moveStart("character",-c)),e},b.prototype.getPos=function(){return h.selection?this.getIEPos():this.domInputor.selectionStart},b.prototype.setPos=function(a){var b,c;return b=this.domInputor,h.selection?(c=b.createTextRange(),c.move("character",a),c.select()):b.setSelectionRange&&b.setSelectionRange(a,a),b},b.prototype.getIEOffset=function(a){var b,c,d,e;return c=this.domInputor.createTextRange(),a||(a=this.getPos()),c.move("character",a),d=c.boundingLeft,e=c.boundingTop,b=c.boundingHeight,{left:d,top:e,height:b}},b.prototype.getOffset=function(b){var c,d,e;return c=this.$inputor,h.selection?(d=this.getIEOffset(b),d.top+=a(j).scrollTop()+c.scrollTop(),d.left+=a(j).scrollLeft()+c.scrollLeft(),d):(d=c.offset(),e=this.getPosition(b),d={left:d.left+e.left-c.scrollLeft(),top:d.top+e.top-c.scrollTop(),height:e.height})},b.prototype.getPosition=function(a){var b,c,e,f,g,h,i;return b=this.$inputor,f=function(a){return a=a.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"<br/>"),/firefox/i.test(navigator.userAgent)&&(a=a.replace(/\s/g,"&nbsp;")),a},void 0===a&&(a=this.getPos()),i=b.val().slice(0,a),e=b.val().slice(a),g="<span style='position: relative; display: inline;'>"+f(i)+"</span>",g+="<span id='caret' style='position: relative; display: inline;'>|</span>",g+="<span style='position: relative; display: inline;'>"+f(e)+"</span>",h=new d(b),c=h.create(g).rect()},b.prototype.getIEPosition=function(a){var b,c,d,e,f;return d=this.getIEOffset(a),c=this.$inputor.offset(),e=d.left-c.left,f=d.top-c.top,b=d.height,{left:e,top:f,height:b}},b}(),d=function(){function b(a){this.$inputor=a}return b.prototype.css_attr=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],b.prototype.mirrorCss=function(){var b,c=this;return b={position:"absolute",left:-9999,top:0,zIndex:-2e4},"TEXTAREA"===this.$inputor.prop("tagName")&&this.css_attr.push("width"),a.each(this.css_attr,function(a,d){return b[d]=c.$inputor.css(d)}),b},b.prototype.create=function(b){return this.$mirror=a("<div></div>"),this.$mirror.css(this.mirrorCss()),this.$mirror.html(b),this.$inputor.after(this.$mirror),this},b.prototype.rect=function(){var a,b,c;return a=this.$mirror.find("#caret"),b=a.position(),c={left:b.left,top:b.top,height:a.height()},this.$mirror.remove(),c},b}(),e={contentEditable:function(a){return!(!a[0].contentEditable||"true"!==a[0].contentEditable)}},g={pos:function(a){return a||0===a?this.setPos(a):this.getPos()},position:function(a){return h.selection?this.getIEPosition(a):this.getPosition(a)},offset:function(a){var b;return b=this.getOffset(a)}},h=null,j=null,i=null,l=function(a){var b;return(b=null!=a?a.iframe:void 0)?(i=b,j=b.contentWindow,h=b.contentDocument||j.document):(i=void 0,j=window,h=document)},f=function(a){var b;h=a[0].ownerDocument,j=h.defaultView||h.parentWindow;try{return i=j.frameElement}catch(c){b=c}},a.fn.caret=function(d,f,h){var i;return g[d]?(a.isPlainObject(f)?(l(f),f=void 0):l(h),i=e.contentEditable(this)?new b(this):new c(this),g[d].apply(i,[f])):a.error("Method "+d+" does not exist on jQuery.caret")},a.fn.caret.EditableCaret=b,a.fn.caret.InputCaret=c,a.fn.caret.Utils=e,a.fn.caret.apis=g});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return a.returnExportsGlobal=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l;k="caret",b=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}return b.prototype.setPos=function(){return this.domInputor},b.prototype.getIEPosition=function(){return this.getPosition()},b.prototype.getPosition=function(){var a,b;return b=this.getOffset(),a=this.$inputor.offset(),b.left-=a.left,b.top-=a.top,b},b.prototype.getOldIEPos=function(){var a,b;return b=h.selection.createRange(),a=h.body.createTextRange(),a.moveToElementText(this.domInputor),a.setEndPoint("EndToEnd",b),a.text.length},b.prototype.getPos=function(){var a,b,c;return(c=this.range())?(a=c.cloneRange(),a.selectNodeContents(this.domInputor),a.setEnd(c.endContainer,c.endOffset),b=a.toString().length,a.detach(),b):h.selection?this.getOldIEPos():void 0},b.prototype.getOldIEOffset=function(){var a,b;return a=h.selection.createRange().duplicate(),a.moveStart("character",-1),b=a.getBoundingClientRect(),{height:b.bottom-b.top,left:b.left,top:b.top}},b.prototype.getOffset=function(){var b,c,d,e,f;return j.getSelection&&(d=this.range())?(d.endOffset-1>0&&d.endContainer===!this.domInputor&&(b=d.cloneRange(),b.setStart(d.endContainer,d.endOffset-1),b.setEnd(d.endContainer,d.endOffset),e=b.getBoundingClientRect(),c={height:e.height,left:e.left+e.width,top:e.top},b.detach()),c&&0!==(null!=c?c.height:void 0)||(b=d.cloneRange(),f=a(h.createTextNode("|")),b.insertNode(f[0]),b.selectNode(f[0]),e=b.getBoundingClientRect(),c={height:e.height,left:e.left,top:e.top},f.remove(),b.detach())):h.selection&&(c=this.getOldIEOffset()),c&&(c.top+=a(j).scrollTop(),c.left+=a(j).scrollLeft()),c},b.prototype.range=function(){var a;if(j.getSelection)return a=j.getSelection(),a.rangeCount>0?a.getRangeAt(0):null},b}(),c=function(){function b(a){this.$inputor=a,this.domInputor=this.$inputor[0]}return b.prototype.getIEPos=function(){var a,b,c,d,e,f,g;return b=this.domInputor,f=h.selection.createRange(),e=0,f&&f.parentElement()===b&&(d=b.value.replace(/\r\n/g,"\n"),c=d.length,g=b.createTextRange(),g.moveToBookmark(f.getBookmark()),a=b.createTextRange(),a.collapse(!1),e=g.compareEndPoints("StartToEnd",a)>-1?c:-g.moveStart("character",-c)),e},b.prototype.getPos=function(){return h.selection?this.getIEPos():this.domInputor.selectionStart},b.prototype.setPos=function(a){var b,c;return b=this.domInputor,h.selection?(c=b.createTextRange(),c.move("character",a),c.select()):b.setSelectionRange&&b.setSelectionRange(a,a),b},b.prototype.getIEOffset=function(a){var b,c,d,e;return c=this.domInputor.createTextRange(),a||(a=this.getPos()),c.move("character",a),d=c.boundingLeft,e=c.boundingTop,b=c.boundingHeight,{left:d,top:e,height:b}},b.prototype.getOffset=function(b){var c,d,e;return c=this.$inputor,h.selection?(d=this.getIEOffset(b),d.top+=a(j).scrollTop()+c.scrollTop(),d.left+=a(j).scrollLeft()+c.scrollLeft(),d):(d=c.offset(),e=this.getPosition(b),d={left:d.left+e.left-c.scrollLeft(),top:d.top+e.top-c.scrollTop(),height:e.height})},b.prototype.getPosition=function(a){var b,c,e,f,g,h,i;return b=this.$inputor,f=function(a){return a=a.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"<br/>"),/firefox/i.test(navigator.userAgent)&&(a=a.replace(/\s/g,"&nbsp;")),a},void 0===a&&(a=this.getPos()),i=b.val().slice(0,a),e=b.val().slice(a),g="<span style='position: relative; display: inline;'>"+f(i)+"</span>",g+="<span id='caret' style='position: relative; display: inline;'>|</span>",g+="<span style='position: relative; display: inline;'>"+f(e)+"</span>",h=new d(b),c=h.create(g).rect()},b.prototype.getIEPosition=function(a){var b,c,d,e,f;return d=this.getIEOffset(a),c=this.$inputor.offset(),e=d.left-c.left,f=d.top-c.top,b=d.height,{left:e,top:f,height:b}},b}(),d=function(){function b(a){this.$inputor=a}return b.prototype.css_attr=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],b.prototype.mirrorCss=function(){var b,c=this;return b={position:"absolute",left:-9999,top:0,zIndex:-2e4},"TEXTAREA"===this.$inputor.prop("tagName")&&this.css_attr.push("width"),a.each(this.css_attr,function(a,d){return b[d]=c.$inputor.css(d)}),b},b.prototype.create=function(b){return this.$mirror=a("<div></div>"),this.$mirror.css(this.mirrorCss()),this.$mirror.html(b),this.$inputor.after(this.$mirror),this},b.prototype.rect=function(){var a,b,c;return a=this.$mirror.find("#caret"),b=a.position(),c={left:b.left,top:b.top,height:a.height()},this.$mirror.remove(),c},b}(),e={contentEditable:function(a){return!(!a[0].contentEditable||"true"!==a[0].contentEditable)}},g={pos:function(a){return a||0===a?this.setPos(a):this.getPos()},position:function(a){return h.selection?this.getIEPosition(a):this.getPosition(a)},offset:function(a){var b;return b=this.getOffset(a)}},h=null,j=null,i=null,l=function(a){var b;return(b=null!=a?a.iframe:void 0)?(i=b,j=b.contentWindow,h=b.contentDocument||j.document):(i=void 0,j=window,h=document)},f=function(a){var b;h=a[0].ownerDocument,j=h.defaultView||h.parentWindow;try{return i=j.frameElement}catch(c){b=c}},a.fn.caret=function(d,f,h){var i;return g[d]?(a.isPlainObject(f)?(l(f),f=void 0):l(h),i=e.contentEditable(this)?new b(this):new c(this),g[d].apply(i,[f])):a.error("Method "+d+" does not exist on jQuery.caret")},a.fn.caret.EditableCaret=b,a.fn.caret.InputCaret=c,a.fn.caret.Utils=e,a.fn.caret.apis=g});
bp-core/js/webcam.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
window.bp=window.bp||{},function(){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.WebCam={start:function(){this.params={video:null,videoStream:null,capture_enable:!1,capture:null,canvas:null,warning:null,flipped:!1},bp.Avatar.nav.on("bp-avatar-view:changed",_.bind(this.setView,this))},setView:function(a){if("camera"!==a)return void(_.isNull(this.params.video)||(this.stop(),this.removeWarning()));var b=new bp.Views.WebCamAvatar({model:new Backbone.Model({user_media:!1})});this.params.flipped=!1,bp.Avatar.views.add({id:"camera",view:b}),b.inject(".bp-avatar")},removeView:function(){var a;_.isUndefined(bp.Avatar.views.get("camera"))||(a=bp.Avatar.views.get("camera"),a.get("view").remove(),bp.Avatar.views.remove({id:"camera",view:a}))},gotStream:function(a){var b=bp.WebCam.params.video;bp.WebCam.params.videoStream=a,bp.WebCam.displayWarning("loaded"),b.onerror=function(){bp.WebCam.displayWarning("videoerror"),b&&bp.WebCam.stop()},a.onended=bp.WebCam.noStream(),void 0!==b.mozSrcObject?(b.mozSrcObject=a,b.play()):navigator.mozGetUserMedia?(b.src=a,b.play()):b.src=window.URL?window.URL.createObjectURL(a):a,bp.WebCam.params.capture_enable=!0},stop:function(){bp.WebCam.params.capture_enable=!1,bp.WebCam.params.videoStream&&(bp.WebCam.params.videoStream.stop?bp.WebCam.params.videoStream.stop():bp.WebCam.params.videoStream.msStop&&bp.WebCam.params.videoStream.msStop(),bp.WebCam.params.videoStream.onended=null,bp.WebCam.params.videoStream=null),bp.WebCam.params.video&&(bp.WebCam.params.video.onerror=null,bp.WebCam.params.video.pause(),bp.WebCam.params.video.mozSrcObject&&(bp.WebCam.params.video.mozSrcObject=null),bp.WebCam.params.video.src="")},noStream:function(){_.isNull(bp.WebCam.params.videoStream)&&(bp.WebCam.displayWarning("noaccess"),bp.WebCam.removeView())},setAvatar:function(a){a.get("url")||bp.WebCam.displayWarning("nocapture"),bp.WebCam.removeView(),bp.Avatar.setAvatar(a)},removeWarning:function(){_.isNull(this.params.warning)||this.params.warning.remove()},displayWarning:function(a){this.removeWarning(),this.params.warning=new bp.Views.uploaderWarning({value:BP_Uploader.strings.camera_warnings[a]}),this.params.warning.inject(".bp-avatar-status")}},bp.Views.WebCamAvatar=bp.View.extend({tagName:"div",id:"bp-webcam-avatar",template:bp.template("bp-avatar-webcam"),events:{"click .avatar-webcam-capture":"captureStream","click .avatar-webcam-save":"saveCapture"},initialize:function(){var a;(navigator.getUserMedia||navigator.oGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia)&&(a=_.extend(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces"),{user_media:!0,w:BP_Uploader.settings.crop.full_w,h:BP_Uploader.settings.crop.full_h,x:0,y:0,type:"camera"}),this.model.set(a)),this.on("ready",this.useStream,this)},useStream:function(){this.model.get("user_media")&&(this.options.video=new bp.Views.WebCamVideo,this.options.canvas=new bp.Views.WebCamCanvas,this.$el.find("#avatar-to-crop").append(this.options.video.el),this.$el.find("#avatar-crop-pane").append(this.options.canvas.el),bp.WebCam.params.video=this.options.video.el,bp.WebCam.params.canvas=this.options.canvas.el,bp.WebCam.displayWarning("requesting"),navigator.getUserMedia?navigator.getUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCams.noStream):navigator.oGetUserMedia?navigator.oGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.mozGetUserMedia?navigator.mozGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.webkitGetUserMedia?navigator.webkitGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.msGetUserMedia?navigator.msGetUserMedia({video:!0,audio:!1},bp.WebCams.gotStream,bp.WebCam.noStream):bp.WebCam.displayWarning("errormsg"))},captureStream:function(a){var b,c;return a.preventDefault(),bp.WebCam.params.capture_enable?this.model.get("h")>this.options.video.el.videoHeight||this.model.get("w")>this.options.video.el.videoWidth?void bp.WebCam.displayWarning("videoerror"):(c=this.options.video.el.videoHeight,b=(this.options.video.el.videoWidth-c)/2,bp.WebCam.params.flipped||(this.options.canvas.el.getContext("2d").translate(this.model.get("w"),0),this.options.canvas.el.getContext("2d").scale(-1,1),bp.WebCam.params.flipped=!0),this.options.canvas.el.getContext("2d").drawImage(this.options.video.el,b,0,c,c,0,0,this.model.get("w"),this.model.get("h")),bp.WebCam.params.capture=this.options.canvas.el.toDataURL("image/png"),this.model.set("url",bp.WebCam.params.capture),void bp.WebCam.displayWarning("ready")):void bp.WebCam.displayWarning("loading")},saveCapture:function(a){return a.preventDefault(),bp.WebCam.params.capture?(bp.WebCam.stop(),void bp.WebCam.setAvatar(this.model)):void bp.WebCam.displayWarning("nocapture")}}),bp.Views.WebCamVideo=bp.View.extend({tagName:"video",id:"bp-webcam-video",attributes:{autoplay:"autoplay"}}),bp.Views.WebCamCanvas=bp.View.extend({tagName:"canvas",id:"bp-webcam-canvas",attributes:{width:150,height:150},initialize:function(){_.isUndefined(BP_Uploader.settings.crop.full_h)||_.isUndefined(BP_Uploader.settings.crop.full_w)||(this.el.attributes.width.value=BP_Uploader.settings.crop.full_w,this.el.attributes.height.value=BP_Uploader.settings.crop.full_h)}}),bp.WebCam.start())}(bp,jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
window.bp=window.bp||{},function(){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.WebCam={start:function(){this.params={video:null,videoStream:null,capture_enable:!1,capture:null,canvas:null,warning:null,flipped:!1},bp.Avatar.nav.on("bp-avatar-view:changed",_.bind(this.setView,this))},setView:function(a){if("camera"!==a)return void(_.isNull(this.params.video)||(this.stop(),this.removeWarning()));var b=new bp.Views.WebCamAvatar({model:new Backbone.Model({user_media:!1})});this.params.flipped=!1,bp.Avatar.views.add({id:"camera",view:b}),b.inject(".bp-avatar")},removeView:function(){var a;_.isUndefined(bp.Avatar.views.get("camera"))||(a=bp.Avatar.views.get("camera"),a.get("view").remove(),bp.Avatar.views.remove({id:"camera",view:a}))},gotStream:function(a){var b=bp.WebCam.params.video;bp.WebCam.params.videoStream=a,bp.WebCam.displayWarning("loaded"),b.onerror=function(){bp.WebCam.displayWarning("videoerror"),b&&bp.WebCam.stop()},a.onended=bp.WebCam.noStream(),void 0!==b.mozSrcObject?(b.mozSrcObject=a,b.play()):navigator.mozGetUserMedia?(b.src=a,b.play()):b.src=window.URL?window.URL.createObjectURL(a):a,bp.WebCam.params.capture_enable=!0},stop:function(){bp.WebCam.params.capture_enable=!1,bp.WebCam.params.videoStream&&(bp.WebCam.params.videoStream.stop?bp.WebCam.params.videoStream.stop():bp.WebCam.params.videoStream.msStop&&bp.WebCam.params.videoStream.msStop(),bp.WebCam.params.videoStream.onended=null,bp.WebCam.params.videoStream=null),bp.WebCam.params.video&&(bp.WebCam.params.video.onerror=null,bp.WebCam.params.video.pause(),bp.WebCam.params.video.mozSrcObject&&(bp.WebCam.params.video.mozSrcObject=null),bp.WebCam.params.video.src="")},noStream:function(){_.isNull(bp.WebCam.params.videoStream)&&(bp.WebCam.displayWarning("noaccess"),bp.WebCam.removeView())},setAvatar:function(a){a.get("url")||bp.WebCam.displayWarning("nocapture"),bp.WebCam.removeView(),bp.Avatar.setAvatar(a)},removeWarning:function(){_.isNull(this.params.warning)||this.params.warning.remove()},displayWarning:function(a){this.removeWarning(),this.params.warning=new bp.Views.uploaderWarning({value:BP_Uploader.strings.camera_warnings[a]}),this.params.warning.inject(".bp-avatar-status")}},bp.Views.WebCamAvatar=bp.View.extend({tagName:"div",id:"bp-webcam-avatar",template:bp.template("bp-avatar-webcam"),events:{"click .avatar-webcam-capture":"captureStream","click .avatar-webcam-save":"saveCapture"},initialize:function(){var a;(navigator.getUserMedia||navigator.oGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia)&&(a=_.extend(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces"),{user_media:!0,w:BP_Uploader.settings.crop.full_w,h:BP_Uploader.settings.crop.full_h,x:0,y:0,type:"camera"}),this.model.set(a)),this.on("ready",this.useStream,this)},useStream:function(){this.model.get("user_media")&&(this.options.video=new bp.Views.WebCamVideo,this.options.canvas=new bp.Views.WebCamCanvas,this.$el.find("#avatar-to-crop").append(this.options.video.el),this.$el.find("#avatar-crop-pane").append(this.options.canvas.el),bp.WebCam.params.video=this.options.video.el,bp.WebCam.params.canvas=this.options.canvas.el,bp.WebCam.displayWarning("requesting"),navigator.getUserMedia?navigator.getUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCams.noStream):navigator.oGetUserMedia?navigator.oGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.mozGetUserMedia?navigator.mozGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.webkitGetUserMedia?navigator.webkitGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.msGetUserMedia?navigator.msGetUserMedia({video:!0,audio:!1},bp.WebCams.gotStream,bp.WebCam.noStream):bp.WebCam.displayWarning("errormsg"))},captureStream:function(a){var b,c;return a.preventDefault(),bp.WebCam.params.capture_enable?this.model.get("h")>this.options.video.el.videoHeight||this.model.get("w")>this.options.video.el.videoWidth?void bp.WebCam.displayWarning("videoerror"):(c=this.options.video.el.videoHeight,b=(this.options.video.el.videoWidth-c)/2,bp.WebCam.params.flipped||(this.options.canvas.el.getContext("2d").translate(this.model.get("w"),0),this.options.canvas.el.getContext("2d").scale(-1,1),bp.WebCam.params.flipped=!0),this.options.canvas.el.getContext("2d").drawImage(this.options.video.el,b,0,c,c,0,0,this.model.get("w"),this.model.get("h")),bp.WebCam.params.capture=this.options.canvas.el.toDataURL("image/png"),this.model.set("url",bp.WebCam.params.capture),void bp.WebCam.displayWarning("ready")):void bp.WebCam.displayWarning("loading")},saveCapture:function(a){return a.preventDefault(),bp.WebCam.params.capture?(bp.WebCam.stop(),void bp.WebCam.setAvatar(this.model)):void bp.WebCam.displayWarning("nocapture")}}),bp.Views.WebCamVideo=bp.View.extend({tagName:"video",id:"bp-webcam-video",attributes:{autoplay:"autoplay"}}),bp.Views.WebCamCanvas=bp.View.extend({tagName:"canvas",id:"bp-webcam-canvas",attributes:{width:150,height:150},initialize:function(){_.isUndefined(BP_Uploader.settings.crop.full_h)||_.isUndefined(BP_Uploader.settings.crop.full_w)||(this.el.attributes.width.value=BP_Uploader.settings.crop.full_w,this.el.attributes.height.value=BP_Uploader.settings.crop.full_h)}}),bp.WebCam.start())}(bp,jQuery);
bp-core/js/widget-members.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function member_widget_response(a){a=a.substr(0,a.length-1),a=a.split("[[SPLIT]]"),"-1"!==a[0]?jQuery(".widget ul#members-list").fadeOut(200,function(){jQuery(".widget ul#members-list").html(a[1]),jQuery(".widget ul#members-list").fadeIn(200)}):jQuery(".widget ul#members-list").fadeOut(200,function(){var b="<p>"+a[1]+"</p>";jQuery(".widget ul#members-list").html(b),jQuery(".widget ul#members-list").fadeIn(200)})}jQuery(document).ready(function(){jQuery(".widget div#members-list-options a").on("click",function(){var a=this;return jQuery(a).addClass("loading"),jQuery(".widget div#members-list-options a").removeClass("selected"),jQuery(this).addClass("selected"),jQuery.post(ajaxurl,{action:"widget_members",cookie:encodeURIComponent(document.cookie),_wpnonce:jQuery("input#_wpnonce-members").val(),"max-members":jQuery("input#members_widget_max").val(),filter:jQuery(this).attr("id")},function(b){jQuery(a).removeClass("loading"),member_widget_response(b)}),!1})});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function member_widget_response(a){a=a.substr(0,a.length-1),a=a.split("[[SPLIT]]"),"-1"!==a[0]?jQuery(".widget ul#members-list").fadeOut(200,function(){jQuery(".widget ul#members-list").html(a[1]),jQuery(".widget ul#members-list").fadeIn(200)}):jQuery(".widget ul#members-list").fadeOut(200,function(){var b="<p>"+a[1]+"</p>";jQuery(".widget ul#members-list").html(b),jQuery(".widget ul#members-list").fadeIn(200)})}jQuery(document).ready(function(){jQuery(".widget div#members-list-options a").on("click",function(){var a=this;return jQuery(a).addClass("loading"),jQuery(".widget div#members-list-options a").removeClass("selected"),jQuery(this).addClass("selected"),jQuery.post(ajaxurl,{action:"widget_members",cookie:encodeURIComponent(document.cookie),_wpnonce:jQuery("input#_wpnonce-members").val(),"max-members":jQuery("input#members_widget_max").val(),filter:jQuery(this).attr("id")},function(b){jQuery(a).removeClass("loading"),member_widget_response(b)}),!1})});
bp-friends/js/widget-friends.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function friend_widget_response(a){a=a.substr(0,a.length-1),a=a.split("[[SPLIT]]"),"-1"!==a[0]?jQuery(".widget ul#friends-list").fadeOut(200,function(){jQuery(".widget ul#friends-list").html(a[1]),jQuery(".widget ul#friends-list").fadeIn(200)}):jQuery(".widget ul#friends-list").fadeOut(200,function(){var b="<p>"+a[1]+"</p>";jQuery(".widget ul#friends-list").html(b),jQuery(".widget ul#friends-list").fadeIn(200)})}jQuery(document).ready(function(){jQuery(".widget div#friends-list-options a").on("click",function(){var a=this;return jQuery(a).addClass("loading"),jQuery(".widget div#friends-list-options a").removeClass("selected"),jQuery(this).addClass("selected"),jQuery.post(ajaxurl,{action:"widget_friends",cookie:encodeURIComponent(document.cookie),_wpnonce:jQuery("input#_wpnonce-friends").val(),"max-friends":jQuery("input#friends_widget_max").val(),filter:jQuery(this).attr("id")},function(b){jQuery(a).removeClass("loading"),friend_widget_response(b)}),!1})});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function friend_widget_response(a){a=a.substr(0,a.length-1),a=a.split("[[SPLIT]]"),"-1"!==a[0]?jQuery(".widget ul#friends-list").fadeOut(200,function(){jQuery(".widget ul#friends-list").html(a[1]),jQuery(".widget ul#friends-list").fadeIn(200)}):jQuery(".widget ul#friends-list").fadeOut(200,function(){var b="<p>"+a[1]+"</p>";jQuery(".widget ul#friends-list").html(b),jQuery(".widget ul#friends-list").fadeIn(200)})}jQuery(document).ready(function(){jQuery(".widget div#friends-list-options a").on("click",function(){var a=this;return jQuery(a).addClass("loading"),jQuery(".widget div#friends-list-options a").removeClass("selected"),jQuery(this).addClass("selected"),jQuery.post(ajaxurl,{action:"widget_friends",cookie:encodeURIComponent(document.cookie),_wpnonce:jQuery("input#_wpnonce-friends").val(),"max-friends":jQuery("input#friends_widget_max").val(),filter:jQuery(this).attr("id")},function(b){jQuery(a).removeClass("loading"),friend_widget_response(b)}),!1})});
bp-groups/admin/js/admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){function b(b,c){a("#bp-groups-new-members-list").append('<li data-login="'+c.item.value+'"><a href="#" class="bp-groups-remove-new-member">x</a> '+c.item.label+"</li>")}var c="undefined"!=typeof group_id?"&group_id="+group_id:"";a(document).ready(function(){window.warn_on_leave=!1,a(".bp-suggest-user").autocomplete({source:ajaxurl+"?action=bp_group_admin_member_autocomplete"+c,delay:500,minLength:2,position:"undefined"!=typeof isRtl&&isRtl?{my:"right top",at:"right bottom",offset:"0, -1"}:{offset:"0, -1"},open:function(){a(this).addClass("open")},close:function(){a(this).removeClass("open"),a(this).val("")},select:function(a,c){b(a,c)}}),a("#bp-groups-new-members").prop("placeholder",BP_Group_Admin.add_member_placeholder),a("#bp_group_add_members").on("click",".bp-groups-remove-new-member",function(b){b.preventDefault(),a(b.target.parentNode).remove()}),a(document).on("change",'input#bp-groups-name, input#bp-groups-description, select.bp-groups-role, #bp-groups-settings-section-status input[type="radio"]',function(){window.warn_on_leave=!0}),a("input#save").on("click",function(){var b=[];a("#bp-groups-new-members-list li").each(function(){b.push(a(this).data("login"))}),b.length&&a("#bp-groups-new-members").val("").val(b.join(", ")),window.warn_on_leave=!1}),window.onbeforeunload=function(){return window.warn_on_leave?BP_Group_Admin.warn_on_leave:void 0}})}(jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
!function(a){function b(b,c){a("#bp-groups-new-members-list").append('<li data-login="'+c.item.value+'"><a href="#" class="bp-groups-remove-new-member">x</a> '+c.item.label+"</li>")}var c="undefined"!=typeof group_id?"&group_id="+group_id:"";a(document).ready(function(){window.warn_on_leave=!1,a(".bp-suggest-user").autocomplete({source:ajaxurl+"?action=bp_group_admin_member_autocomplete"+c,delay:500,minLength:2,position:"undefined"!=typeof isRtl&&isRtl?{my:"right top",at:"right bottom",offset:"0, -1"}:{offset:"0, -1"},open:function(){a(this).addClass("open")},close:function(){a(this).removeClass("open"),a(this).val("")},select:function(a,c){b(a,c)}}),a("#bp-groups-new-members").prop("placeholder",BP_Group_Admin.add_member_placeholder),a("#bp_group_add_members").on("click",".bp-groups-remove-new-member",function(b){b.preventDefault(),a(b.target.parentNode).remove()}),a(document).on("change",'input#bp-groups-name, input#bp-groups-description, select.bp-groups-role, #bp-groups-settings-section-status input[type="radio"]',function(){window.warn_on_leave=!0}),a("input#save").on("click",function(){var b=[];a("#bp-groups-new-members-list li").each(function(){b.push(a(this).data("login"))}),b.length&&a("#bp-groups-new-members").val("").val(b.join(", ")),window.warn_on_leave=!1}),window.onbeforeunload=function(){return window.warn_on_leave?BP_Group_Admin.warn_on_leave:void 0}})}(jQuery);
bp-groups/js/widget-groups.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function groups_widget_response(a){a=a.substr(0,a.length-1),a=a.split("[[SPLIT]]"),"-1"!==a[0]?jQuery(".widget ul#groups-list").fadeOut(200,function(){jQuery(".widget ul#groups-list").html(a[1]),jQuery(".widget ul#groups-list").fadeIn(200)}):jQuery(".widget ul#groups-list").fadeOut(200,function(){var b="<p>"+a[1]+"</p>";jQuery(".widget ul#groups-list").html(b),jQuery(".widget ul#groups-list").fadeIn(200)})}jQuery(document).ready(function(){jQuery(".widget div#groups-list-options a").on("click",function(){var a=this;return jQuery(a).addClass("loading"),jQuery(".widget div#groups-list-options a").removeClass("selected"),jQuery(this).addClass("selected"),jQuery.post(ajaxurl,{action:"widget_groups_list",cookie:encodeURIComponent(document.cookie),_wpnonce:jQuery("input#_wpnonce-groups").val(),max_groups:jQuery("input#groups_widget_max").val(),filter:jQuery(this).attr("id")},function(b){jQuery(a).removeClass("loading"),groups_widget_response(b)}),!1})});
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function groups_widget_response(a){a=a.substr(0,a.length-1),a=a.split("[[SPLIT]]"),"-1"!==a[0]?jQuery(".widget ul#groups-list").fadeOut(200,function(){jQuery(".widget ul#groups-list").html(a[1]),jQuery(".widget ul#groups-list").fadeIn(200)}):jQuery(".widget ul#groups-list").fadeOut(200,function(){var b="<p>"+a[1]+"</p>";jQuery(".widget ul#groups-list").html(b),jQuery(".widget ul#groups-list").fadeIn(200)})}jQuery(document).ready(function(){jQuery(".widget div#groups-list-options a").on("click",function(){var a=this;return jQuery(a).addClass("loading"),jQuery(".widget div#groups-list-options a").removeClass("selected"),jQuery(this).addClass("selected"),jQuery.post(ajaxurl,{action:"widget_groups_list",cookie:encodeURIComponent(document.cookie),_wpnonce:jQuery("input#_wpnonce-groups").val(),max_groups:jQuery("input#groups_widget_max").val(),filter:jQuery(this).attr("id")},function(b){jQuery(a).removeClass("loading"),groups_widget_response(b)}),!1})});
bp-loader.php CHANGED
@@ -14,7 +14,7 @@
14
* Description: BuddyPress helps you run any kind of social network on your WordPress, with member profiles, activity streams, user groups, messaging, and more.
15
* Author: The BuddyPress Community
16
* Author URI: https://buddypress.org/
17
- * Version: 2.3-beta
18
* Text Domain: buddypress
19
* Domain Path: /bp-languages/
20
* License: GPLv2 or later (license.txt)
14
* Description: BuddyPress helps you run any kind of social network on your WordPress, with member profiles, activity streams, user groups, messaging, and more.
15
* Author: The BuddyPress Community
16
* Author URI: https://buddypress.org/
17
+ * Version: 2.3.0-beta
18
* Text Domain: buddypress
19
* Domain Path: /bp-languages/
20
* License: GPLv2 or later (license.txt)
bp-members/admin/js/admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! buddypress - v2.3.0 - 2015-05-07 1:19:28 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function clear(a){if(a=document.getElementById(a)){var b=a.getElementsByTagName("INPUT"),c=a.getElementsByTagName("OPTION"),d=0;if(b)for(d=0;d<b.length;d++)b[d].checked="";if(c)for(d=0;d<c.length;d++)c[d].selected=!1}}!function(a){a(".visibility-toggle-link").on("click",function(b){b.preventDefault(),a(this).parent().hide().siblings(".field-visibility-settings").show()}),a(".field-visibility-settings-close").on("click",function(b){b.preventDefault();var c=a(this).parent(),d=c.find("input:checked").parent().text();c.hide().siblings(".field-visibility-settings-toggle").children(".current-visibility-level").text(d).end().show()})}(jQuery);
1
+ /*! buddypress - v2.3.0 - 2015-05-14 8:16:12 PM UTC - https://wordpress.org/plugins/buddypress/ */
2
function clear(a){if(a=document.getElementById(a)){var b=a.getElementsByTagName("INPUT"),c=a.getElementsByTagName("OPTION"),d=0;if(b)for(d=0;d<b.length;d++)b[d].checked="";if(c)for(d=0;d<c.length;d++)c[d].selected=!1}}!function(a){a(".visibility-toggle-link").on("click",function(b){b.preventDefault(),a(this).parent().hide().siblings(".field-visibility-settings").show()}),a(".field-visibility-settings-close").on("click",function(b){b.preventDefault();var c=a(this).parent(),d=c.find("input:checked").parent().text();c.hide().siblings(".field-visibility-settings-toggle").children(".current-visibility-level").text(d).end().show()})}(jQuery);
bp-messages/bp-messages-actions.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
3
/**
4
- * BuddyPress Messages Actions
5
*
6
* Action functions are exactly the same as screen functions, however they do
7
* not have a template screen associated with them. Usually they will send the
@@ -102,7 +102,7 @@ add_action( 'bp_actions', 'messages_action_delete_message' );
102
* @since BuddyPress (2.2.0)
103
*
104
* @return bool|null Returns false on failure. Otherwise redirects back to the
105
- * message box URL.
106
*/
107
function bp_messages_action_mark_read() {
108
@@ -143,7 +143,7 @@ add_action( 'bp_actions', 'bp_messages_action_mark_read' );
143
* @since BuddyPress (2.2.0)
144
*
145
* @return bool|null Returns false on failure. Otherwise redirects back to the
146
- * message box URL.
147
*/
148
function bp_messages_action_mark_unread() {
149
@@ -184,7 +184,7 @@ add_action( 'bp_actions', 'bp_messages_action_mark_unread' );
184
* @since BuddyPress (2.2.0)
185
*
186
* @return bool Returns false on failure. Otherwise redirects back to the
187
- * message box URL.
188
*/
189
function bp_messages_action_bulk_manage() {
190
1
<?php
2
3
/**
4
+ * BuddyPress Messages Actions.
5
*
6
* Action functions are exactly the same as screen functions, however they do
7
* not have a template screen associated with them. Usually they will send the
102
* @since BuddyPress (2.2.0)
103
*
104
* @return bool|null Returns false on failure. Otherwise redirects back to the
105
+ * message box URL.
106
*/
107
function bp_messages_action_mark_read() {
108
143
* @since BuddyPress (2.2.0)
144
*
145
* @return bool|null Returns false on failure. Otherwise redirects back to the
146
+ * message box URL.
147
*/
148
function bp_messages_action_mark_unread() {
149
184
* @since BuddyPress (2.2.0)
185
*
186
* @return bool Returns false on failure. Otherwise redirects back to the
187
+ * message box URL.
188
*/
189
function bp_messages_action_bulk_manage() {
190
bp-messages/bp-messages-cache.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
3
/**
4
- * BuddyPress Messages Caching
5
*
6
* Caching functions handle the clearing of cached objects and pages on specific
7
* actions throughout BuddyPress.
@@ -21,8 +21,8 @@ defined( 'ABSPATH' ) || exit;
21
*
22
* @since BuddyPress (2.2.0)
23
*
24
- * @param int|str|array $message_ids Accepts a single message_id, or a
25
- * comma-separated list or array of message ids.
26
*/
27
function bp_messages_update_meta_cache( $message_ids = false ) {
28
bp_update_meta_cache( array(
@@ -71,8 +71,8 @@ add_action( 'messages_message_after_save', 'bp_messages_clear_cache_on_message_s
71
*
72
* @since BuddyPress (2.0.0)
73
*
74
- * @param int|array $thread_ids If single thread, the thread ID. Otherwise, an
75
- * array of thread IDs
76
*/
77
function bp_messages_clear_cache_on_message_delete( $thread_ids ) {
78
// Delete thread and thread recipient cache
@@ -92,6 +92,8 @@ add_action( 'messages_delete_thread', 'bp_messages_clear_cache_on_message_delete
92
* Currently, invalidates active notice cache.
93
*
94
* @since BuddyPress (2.0.0)
95
*/
96
function bp_notices_clear_cache( $notice ) {
97
wp_cache_delete( 'active_notice', 'bp_messages' );
1
<?php
2
3
/**
4
+ * BuddyPress Messages Caching.
5
*
6
* Caching functions handle the clearing of cached objects and pages on specific
7
* actions throughout BuddyPress.
21
*
22
* @since BuddyPress (2.2.0)
23
*
24
+ * @param int|string|array|bool $message_ids Accepts a single message_id, or a
25
+ * comma-separated list or array of message ids.
26
*/
27
function bp_messages_update_meta_cache( $message_ids = false ) {
28
bp_update_meta_cache( array(
71
*
72
* @since BuddyPress (2.0.0)
73
*
74
+ * @param int|array $thread_ids If single thread, the thread ID.
75
+ * Otherwise, an array of thread IDs.
76
*/
77
function bp_messages_clear_cache_on_message_delete( $thread_ids ) {
78
// Delete thread and thread recipient cache
92
* Currently, invalidates active notice cache.
93
*
94
* @since BuddyPress (2.0.0)
95
+ *
96
+ * @param BP_Messages_Notice $notice
97
*/
98
function bp_notices_clear_cache( $notice ) {
99
wp_cache_delete( 'active_notice', 'bp_messages' );
bp-messages/bp-messages-filters.php CHANGED
@@ -1,9 +1,9 @@
1
<?php
2
3
/**
4
- * BuddyPress Messages Filters
5
*
6
- * Apply WordPress defined filters to private messages
7
*
8
* @package BuddyPress
9
* @subpackage MessagesFilters
1
<?php
2
3
/**
4
+ * BuddyPress Messages Filters.
5
*
6
+ * Apply WordPress defined filters to private messages.
7
*
8
* @package BuddyPress
9
* @subpackage MessagesFilters
bp-messages/bp-messages-functions.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
3
/**
4
- * BuddyPress Messages Functions
5
*
6
* Business functions are where all the magic happens in BuddyPress. They will
7
* handle the actual saving or manipulation of information. Usually they will
@@ -18,21 +18,20 @@ defined( 'ABSPATH' ) || exit;
18
/**
19
* Create a new message.
20
*
21
- * @param array $args {
22
* Array of arguments.
23
- * @type int $sender_id Optional. ID of the user who is sending the
24
- * message. Default: ID of the logged-in user.
25
- * @type int $thread_id Optional. ID of the parent thread. Leave blank to
26
- * create a new thread for the message.
27
- * @type array $recipients IDs or usernames of message recipients. If this
28
- * is an existing thread, it is unnecessary to pass a $recipients
29
- * argument - existing thread recipients will be assumed.
30
- * @type string $subject Optional. Subject line for the message. For
31
- * existing threads, the existing subject will be used. For new
32
- * threads, 'No Subject' will be used if no $subject is provided.
33
- * @type string $content Content of the message. Cannot be empty.
34
- * @type string $date_sent Date sent, in 'Y-m-d H:i:s' format. Default:
35
- * current date/time.
36
* }
37
* @return int|bool ID of the message thread on success, false on failure.
38
*/
@@ -173,6 +172,7 @@ function messages_new_message( $args = '' ) {
173
*
174
* @param string $subject Subject of the notice.
175
* @param string $message Content of the notice.
176
* @return bool True on success, false on failure.
177
*/
178
function messages_send_notice( $subject, $message ) {
@@ -206,6 +206,7 @@ function messages_send_notice( $subject, $message ) {
206
* Delete message thread(s).
207
*
208
* @param int|array Thread ID or array of thread IDs.
209
* @return bool True on success, false on failure.
210
*/
211
function messages_delete_thread( $thread_ids ) {
@@ -257,8 +258,8 @@ function messages_delete_thread( $thread_ids ) {
257
* Check whether a user has access to a thread.
258
*
259
* @param int $thread_id ID of the thread.
260
- * @param int $user_id Optional. ID of the user. Default: ID of the logged-in
261
- * user.
262
* @return int|null Message ID if the user has access, otherwise null.
263
*/
264
function messages_check_thread_access( $thread_id, $user_id = 0 ) {
@@ -299,8 +300,8 @@ function messages_mark_thread_unread( $thread_id ) {
299
* values on the messages page.
300
*
301
* @param string $recipients Comma-separated list of recipient usernames.
302
- * @param string $subject Subject of the message.
303
- * @param string $content Content of the message.
304
*/
305
function messages_add_callback_values( $recipients, $subject, $content ) {
306
@setcookie( 'bp_messages_send_to', $recipients, time() + 60 * 60 * 24, COOKIEPATH );
@@ -322,8 +323,8 @@ function messages_remove_callback_values() {
322
/**
323
* Get the unread messages count for a user.
324
*
325
- * @param int $user_id Optional. ID of the user. Default: ID of the
326
- * logged-in user.
327
* @return int
328
*/
329
function messages_get_unread_count( $user_id = 0 ) {
@@ -337,10 +338,11 @@ function messages_get_unread_count( $user_id = 0 ) {
337
/**
338
* Check whether a user is the sender of a message.
339
*
340
- * @param int $user_id ID of the user.
341
* @param int $message_id ID of the message.
342
* @return int|null Returns the ID of the message if the user is the
343
- * sender, otherwise null.
344
*/
345
function messages_is_user_sender( $user_id, $message_id ) {
346
return BP_Messages_Message::is_user_sender( $user_id, $message_id );
@@ -350,6 +352,7 @@ function messages_is_user_sender( $user_id, $message_id ) {
350
* Get the ID of the sender of a message.
351
*
352
* @param int $message_id ID of the message.
353
* @return int|null The ID of the sender if found, otherwise null.
354
*/
355
function messages_get_message_sender( $message_id ) {
@@ -360,6 +363,7 @@ function messages_get_message_sender( $message_id ) {
360
* Check whether a message thread exists.
361
*
362
* @param int $thread_id ID of the thread.
363
* @return int|null The message thread ID on success, null on failure.
364
*/
365
function messages_is_valid_thread( $thread_id ) {
@@ -392,6 +396,13 @@ function messages_get_message_thread_id( $message_id = 0 ) {
392
* @since BuddyPress (2.2.0)
393
*
394
* @see delete_metadata() for full documentation excluding $meta_type variable.
395
*/
396
function bp_messages_delete_meta( $message_id, $meta_key = false, $meta_value = false, $delete_all = false ) {
397
// Legacy - if no meta_key is passed, delete all for the item
@@ -428,6 +439,12 @@ function bp_messages_delete_meta( $message_id, $meta_key = false, $meta_value =
428
* @since BuddyPress (2.2.0)
429
*
430
* @see get_metadata() for full documentation excluding $meta_type variable.
431
*/
432
function bp_messages_get_meta( $message_id, $meta_key = '', $single = true ) {
433
add_filter( 'query', 'bp_filter_metaid_column_name' );
@@ -443,6 +460,14 @@ function bp_messages_get_meta( $message_id, $meta_key = '', $single = true ) {
443
* @since BuddyPress (2.2.0)
444
*
445
* @see update_metadata() for full documentation excluding $meta_type variable.
446
*/
447
function bp_messages_update_meta( $message_id, $meta_key, $meta_value, $prev_value = '' ) {
448
add_filter( 'query', 'bp_filter_metaid_column_name' );
@@ -458,6 +483,15 @@ function bp_messages_update_meta( $message_id, $meta_key, $meta_value, $prev_val
458
* @since BuddyPress (2.2.0)
459
*
460
* @see add_metadata() for full documentation excluding $meta_type variable.
461
*/
462
function bp_messages_add_meta( $message_id, $meta_key, $meta_value, $unique = false ) {
463
add_filter( 'query', 'bp_filter_metaid_column_name' );
1
<?php
2
3
/**
4
+ * BuddyPress Messages Functions.
5
*
6
* Business functions are where all the magic happens in BuddyPress. They will
7
* handle the actual saving or manipulation of information. Usually they will
18
/**
19
* Create a new message.
20
*
21
+ * @param array|string $args {
22
* Array of arguments.
23
+ * @type int $sender_id Optional. ID of the user who is sending the
24
+ * message. Default: ID of the logged-in user.
25
+ * @type int $thread_id Optional. ID of the parent thread. Leave blank to
26
+ * create a new thread for the message.
27
+ * @type array $recipients IDs or usernames of message recipients. If this
28
+ * is an existing thread, it is unnecessary to pass a $recipients
29
+ * argument - existing thread recipients will be assumed.
30
+ * @type string $subject Optional. Subject line for the message. For
31
+ * existing threads, the existing subject will be used. For new
32
+ * threads, 'No Subject' will be used if no $subject is provided.
33
+ * @type string $content Content of the message. Cannot be empty.
34
+ * @type string $date_sent Date sent, in 'Y-m-d H:i:s' format. Default: current date/time.
35
* }
36
* @return int|bool ID of the message thread on success, false on failure.
37
*/
172
*
173
* @param string $subject Subject of the notice.
174
* @param string $message Content of the notice.
175
+ *
176
* @return bool True on success, false on failure.
177
*/
178
function messages_send_notice( $subject, $message ) {
206
* Delete message thread(s).
207
*
208
* @param int|array Thread ID or array of thread IDs.
209
+ *
210
* @return bool True on success, false on failure.
211
*/
212
function messages_delete_thread( $thread_ids ) {
258
* Check whether a user has access to a thread.
259
*
260
* @param int $thread_id ID of the thread.
261
+ * @param int $user_id Optional. ID of the user. Default: ID of the logged-in user.
262
+ *
263
* @return int|null Message ID if the user has access, otherwise null.
264
*/
265
function messages_check_thread_access( $thread_id, $user_id = 0 ) {
300
* values on the messages page.
301
*
302
* @param string $recipients Comma-separated list of recipient usernames.
303
+ * @param string $subject Subject of the message.
304
+ * @param string $content Content of the message.
305
*/
306
function messages_add_callback_values( $recipients, $subject, $content ) {
307
@setcookie( 'bp_messages_send_to', $recipients, time() + 60 * 60 * 24, COOKIEPATH );
323
/**
324
* Get the unread messages count for a user.
325
*
326
+ * @param int $user_id Optional. ID of the user. Default: ID of the logged-in user.
327
+ *
328
* @return int
329
*/
330
function messages_get_unread_count( $user_id = 0 ) {
338
/**
339
* Check whether a user is the sender of a message.
340
*
341
+ * @param int $user_id ID of the user.
342
* @param int $message_id ID of the message.
343
+ *
344
* @return int|null Returns the ID of the message if the user is the
345
+ * sender, otherwise null.
346
*/
347
function messages_is_user_sender( $user_id, $message_id ) {
348
return BP_Messages_Message::is_user_sender( $user_id, $message_id );
352
* Get the ID of the sender of a message.
353
*
354
* @param int $message_id ID of the message.
355
+ *
356
* @return int|null The ID of the sender if found, otherwise null.
357
*/
358
function messages_get_message_sender( $message_id ) {
363
* Check whether a message thread exists.
364
*
365
* @param int $thread_id ID of the thread.
366
+ *
367
* @return int|null The message thread ID on success, null on failure.
368
*/
369
function messages_is_valid_thread( $thread_id ) {
396
* @since BuddyPress (2.2.0)
397
*
398
* @see delete_metadata() for full documentation excluding $meta_type variable.
399
+ *
400
+ * @param int $message_id ID of the message to have meta deleted for.
401
+ * @param string|bool $meta_key Meta key to delete. Default false.
402
+ * @param string|bool $meta_value Meta value to delete. Default false.
403
+ * @param bool $delete_all Whether or not to delete all meta data.
404
+ *
405
+ * @return bool
406
*/
407
function bp_messages_delete_meta( $message_id, $meta_key = false, $meta_value = false, $delete_all = false ) {
408
// Legacy - if no meta_key is passed, delete all for the item
439
* @since BuddyPress (2.2.0)
440
*
441
* @see get_metadata() for full documentation excluding $meta_type variable.
442
+ *
443
+ * @param int $message_id ID of the message to retrieve meta for.
444
+ * @param string $meta_key Meta key to retrieve. Default empty string.
445
+ * @param bool $single Whether or not to fetch all or a single value.
446
+ *
447
+ * @return mixed
448
*/
449
function bp_messages_get_meta( $message_id, $meta_key = '', $single = true ) {
450
add_filter( 'query', 'bp_filter_metaid_column_name' );
460
* @since BuddyPress (2.2.0)
461
*
462
* @see update_metadata() for full documentation excluding $meta_type variable.
463
+ *
464
+ * @param int $message_id ID of the message to have meta deleted for.
465
+ * @param string|bool $meta_key Meta key to update.
466
+ * @param string|bool $meta_value Meta value to update.
467
+ * @param string $prev_value If specified, only update existing metadata entries with
468
+ * the specified value. Otherwise, update all entries.
469
+ *
470
+ * @return mixed
471
*/
472
function bp_messages_update_meta( $message_id, $meta_key, $meta_value, $prev_value = '' ) {
473
add_filter( 'query', 'bp_filter_metaid_column_name' );
483
* @since BuddyPress (2.2.0)
484
*
485
* @see add_metadata() for full documentation excluding $meta_type variable.
486
+ *
487
+ * @param int $message_id ID of the message to have meta deleted for.
488
+ * @param string|bool $meta_key Meta key to update.
489
+ * @param string|bool $meta_value Meta value to update.
490
+ * @param bool $unique Whether the specified metadata key should be
491
+ * unique for the object. If true, and the object
492
+ * already has a value for the specified metadata key,
493
+ * no change will be made.
494
+ * @return mixed
495
*/
496
function bp_messages_add_meta( $message_id, $meta_key, $meta_value, $unique = false ) {
497
add_filter( 'query', 'bp_filter_metaid_column_name' );
bp-messages/bp-messages-loader.php CHANGED
@@ -3,7 +3,7 @@
3
/**
4
* BuddyPress Messages Loader
5
*
6
- * A private messages component, for users to send messages to each other
7
*
8
* @package BuddyPress
9
* @subpackage MessagesLoader
@@ -125,7 +125,7 @@ class BP_Messages_Component extends BP_Component {
125
* Set up navigation for user pages.
126
*
127
* @param array $main_nav See {BP_Component::setup_nav()} for details.
128
- * @param array $sub_nav See {BP_Component::setup_nav()} for details.
129
*/
130
public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
131
@@ -223,7 +223,7 @@ class BP_Messages_Component extends BP_Component {
223
* Set up the Toolbar.
224
*
225
* @param array $wp_admin_nav See {BP_Component::setup_admin_bar()}
226
- * for details.
227
*/
228
public function setup_admin_bar( $wp_admin_nav = array() ) {
229
$bp = buddypress();
3
/**
4
* BuddyPress Messages Loader
5
*
6
+ * A private messages component, for users to send messages to each other.
7
*
8
* @package BuddyPress
9
* @subpackage MessagesLoader
125
* Set up navigation for user pages.
126
*
127
* @param array $main_nav See {BP_Component::setup_nav()} for details.
128
+ * @param array $sub_nav See {BP_Component::setup_nav()} for details.
129
*/
130
public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
131
223
* Set up the Toolbar.
224
*
225
* @param array $wp_admin_nav See {BP_Component::setup_admin_bar()}
226
+ * for details.
227
*/
228
public function setup_admin_bar( $wp_admin_nav = array() ) {
229
$bp = buddypress();
bp-messages/bp-messages-notifications.php CHANGED
@@ -19,10 +19,10 @@ defined( 'ABSPATH' ) || exit;
19
*
20
* @param array|BP_Messages_Message $raw_args {
21
* Array of arguments. Also accepts a BP_Messages_Message object.
22
- * @type array $recipients User IDs of recipients.
23
* @type string $email_subject Subject line of message.
24
* @type string $email_content Content of message.
25
- * @type int $sender_id User ID of sender.
26
* }
27
*/
28
function messages_notification_new_message( $raw_args = array() ) {
@@ -153,13 +153,14 @@ add_action( 'messages_message_sent', 'messages_notification_new_message', 10 );
153
*
154
* @since BuddyPress (1.0.0)
155
*
156
- * @param string $action The kind of notification being rendered.
157
- * @param int $item_id The primary item id.
158
- * @param int $secondary_item_id The secondary item id.
159
- * @param int $total_items The total number of messaging-related notifications
160
- * waiting for the user
161
- * @param string $format Return value format. 'string' for BuddyBar-compatible
162
- * notifications; 'array' for WP Toolbar. Default: 'string'.
163
* @return string|array Formatted notifications.
164
*/
165
function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
@@ -201,8 +202,8 @@ function messages_format_notifications( $action, $item_id, $secondary_item_id, $
201
* Filters the new message notification text before the notification is created.
202
*
203
* This is a dynamic filter. Possible filter names are:
204
- * - 'bp_messages_multiple_new_message_notification'
205
- * - 'bp_messages_single_new_message_notification'
206
*
207
* @param string $retval Notification text.
208
* @param int $total_items Number of messages referred to by the notification.
@@ -297,7 +298,7 @@ add_action( 'thread_loop_start', 'bp_messages_screen_conversation_mark_notificat
297
*
298
* @since BuddyPress (2.0.0)
299
*
300
- * @param int $message_id ID of the thread.
301
* @param array $message_ids IDs of the messages.
302
*/
303
function bp_messages_message_delete_notifications( $thread_id, $message_ids ) {
19
*
20
* @param array|BP_Messages_Message $raw_args {
21
* Array of arguments. Also accepts a BP_Messages_Message object.
22
+ * @type array $recipients User IDs of recipients.
23
* @type string $email_subject Subject line of message.
24
* @type string $email_content Content of message.
25
+ * @type int $sender_id User ID of sender.
26
* }
27
*/
28
function messages_notification_new_message( $raw_args = array() ) {
153
*
154
* @since BuddyPress (1.0.0)
155
*
156
+ * @param string $action The kind of notification being rendered.
157
+ * @param int $item_id The primary item id.
158
+ * @param int $secondary_item_id The secondary item id.
159
+ * @param int $total_items The total number of messaging-related notifications
160
+ * waiting for the user.
161
+ * @param string $format Return value format. 'string' for BuddyBar-compatible
162
+ * notifications; 'array' for WP Toolbar. Default: 'string'.
163
+ *
164
* @return string|array Formatted notifications.
165
*/
166
function messages_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
202
* Filters the new message notification text before the notification is created.
203
*
204
* This is a dynamic filter. Possible filter names are:
205
+ * - 'bp_messages_multiple_new_message_notification'.
206
+ * - 'bp_messages_single_new_message_notification'.
207
*
208
* @param string $retval Notification text.
209
* @param int $total_items Number of messages referred to by the notification.
298
*
299
* @since BuddyPress (2.0.0)
300
*
301
+ * @param int $thread_id ID of the thread.
302
* @param array $message_ids IDs of the messages.
303
*/
304
function bp_messages_message_delete_notifications( $thread_id, $message_ids ) {
bp-messages/bp-messages-screens.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
3
/**
4
- * BuddyPress Messages Screens
5
*
6
* Screen functions are the controllers of BuddyPress. They will execute when
7
* their specific URL is caught. They will first save or manipulate data using
1
<?php
2
3
/**
4
+ * BuddyPress Messages Screens.
5
*
6
* Screen functions are the controllers of BuddyPress. They will execute when
7
* their specific URL is caught. They will first save or manipulate data using
bp-messages/bp-messages-template.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
3
/**
4
- * BuddyPress Messages Template Tags
5
*
6
* @package BuddyPress
7
* @subpackage MessagesTemplate
@@ -72,7 +72,7 @@ class BP_Messages_Box_Template {
72
public $user_id = 0;
73
74
/**
75
- * The current "box" view ('notices', 'sentbox', 'inbox')
76
*
77
* @access public
78
* @var string
@@ -369,20 +369,20 @@ class BP_Messages_Box_Template {
369
*
370
* @global BP_Messages_Box_Template $messages_template
371
*
372
- * @param array $args {
373
* Array of arguments. All are optional.
374
- * @type int $user_id ID of the user whose threads are being loaded.
375
- * Default: ID of the logged-in user.
376
- * @type string $box Current "box" view. If not provided here, the current
377
- * view will be inferred from the URL.
378
- * @type int $per_page Number of results to return per page. Default: 10.
379
- * @type int $max Max results to return. Default: false.
380
* @type string $search_terms Terms to which to limit results. Default:
381
- * the value of $_REQUEST['s'].
382
- * @type string $page_arg URL argument used for the pagination param.
383
- * Default: 'mpage'.
384
- * @type array $meta_query Meta query arguments. Only applicable if $box is
385
- * not 'notices'. See WP_Meta_Query more details.
386
* }
387
* @return bool True if there are threads to display, otherwise false.
388
*/
@@ -523,7 +523,7 @@ function bp_message_thread_excerpt() {
523
}
524
525
/**
526
- * Output the thread's last message content
527
*
528
* When viewing your Inbox, the last message is the most recent message in
529
* the thread of which you are *not* the author.
@@ -537,7 +537,7 @@ function bp_message_thread_content() {
537
echo bp_get_message_thread_content();
538
}
539
/**
540
- * Return the thread's last message content
541
*
542
* When viewing your Inbox, the last message is the most recent message in
543
* the thread of which you are *not* the author.
@@ -546,7 +546,7 @@ function bp_message_thread_content() {
546
* the thread of which you *are* the member.
547
*
548
* @since BuddyPress (2.0.0)
549
- * @return string The raw content of the last message in the thread
550
*/
551
function bp_get_message_thread_content() {
552
global $messages_template;
@@ -613,7 +613,7 @@ function bp_message_thread_to() {
613
* Output the permalink for a particular thread.
614
*
615
* @param int $thread_id Optional. ID of the thread. Default: current thread
616
- * being iterated on in the loop.
617
*/
618
function bp_message_thread_view_link( $thread_id = 0 ) {
619
echo bp_get_message_thread_view_link( $thread_id );
@@ -622,7 +622,7 @@ function bp_message_thread_view_link( $thread_id = 0 ) {
622
* Get the permalink of a particular thread.
623
*
624
* @param int $thread_id Optional. ID of the thread. Default: current
625
- * thread being iterated on in the loop.
626
* @return string
627
*/
628
function bp_get_message_thread_view_link( $thread_id = 0 ) {
@@ -727,7 +727,7 @@ function bp_the_message_thread_mark_read_url() {
727
echo esc_url( bp_get_the_message_thread_mark_read_url() );
728
}
729
/**
730
- * Return the URL used for marking a single message thread as read
731
*
732
* @since BuddyPress (2.2.0)
733
*
@@ -848,7 +848,7 @@ function bp_message_thread_unread_count() {
848
*
849
* @since BuddyPress (2.2.0)
850
*
851
- * @param int $thread_id Optional. ID of the thread. Defaults to current thread ID.
852
*/
853
function bp_message_thread_total_count( $thread_id = false ) {
854
echo bp_get_message_thread_total_count( $thread_id );
@@ -858,8 +858,9 @@ function bp_message_thread_total_count( $thread_id = false ) {
858
*
859
* @since BuddyPress (2.2.0)
860
*
861
- * @param int $thread_id Optional. ID of the thread. Defaults to
862
- * current thread ID.
863
* @return int
864
*/
865
function bp_get_message_thread_total_count( $thread_id = false ) {
@@ -891,7 +892,7 @@ function bp_message_thread_total_count( $thread_id = false ) {
891
*
892
* @since BuddyPress (2.2.0)
893
*
894
- * @param int $thread_id Optional. ID of the thread. Default: current thread ID.
895
*/
896
function bp_message_thread_total_and_unread_count( $thread_id = false ) {
897
echo bp_get_message_thread_total_and_unread_count( $thread_id );
@@ -899,7 +900,8 @@ function bp_message_thread_total_and_unread_count( $thread_id = false ) {
899
/**
900
* Get markup for the current thread's total and unread count.
901
*
902
- * @param int $thread_id Optional. ID of the thread. Default: current thread ID.
903
* @return string Markup displaying the total and unread count for the thread.
904
*/
905
function bp_get_message_thread_total_and_unread_count( $thread_id = false ) {
@@ -969,7 +971,7 @@ function bp_message_thread_last_post_date() {
969
*
970
* @see bp_get_message_thread_avatar() for a description of arguments.
971
*
972
- * @param array $args See {@link bp_get_message_thread_avatar()}.
973
*/
974
function bp_message_thread_avatar( $args = '' ) {
975
echo bp_get_message_thread_avatar( $args );
@@ -980,18 +982,18 @@ function bp_message_thread_avatar( $args = '' ) {
980
* @see bp_core_fetch_avatar() For a description of arguments and
981
* return values.
982
*
983
- * @param array $args {
984
* Arguments are listed here with an explanation of their defaults.
985
* For more information about the arguments, see
986
* {@link bp_core_fetch_avatar()}.
987
- * @type string $type Default: 'thumb'.
988
- * @type int|bool $width Default: false.
989
- * @type int|bool $height Default: false.
990
- * @type string $class Default: 'avatar'.
991
- * @type string|bool $id Default: false.
992
- * @type string $alt Default: 'Profile picture of [display name]'.
993
* }
994
- * @return User avatar string.
995
*/
996
function bp_get_message_thread_avatar( $args = '' ) {
997
global $messages_template;
@@ -1144,7 +1146,7 @@ function bp_messages_form_action() {
1144
/**
1145
* Return the form action for Messages HTML forms.
1146
*
1147
- * @return string The form action
1148
*/
1149
function bp_get_messages_form_action() {
1150
@@ -1153,7 +1155,7 @@ function bp_messages_form_action() {
1153
*
1154
* @since BuddyPress (1.0.0)
1155
*
1156
- * @param string The form action.
1157
*/
1158
return apply_filters( 'bp_get_messages_form_action', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' . bp_action_variable( 0 ) ) );
1159
}
@@ -1827,7 +1829,11 @@ class BP_Messages_Thread_Template {
1827
/**
1828
* Constructor method.
1829
*
1830
- * @see BP_Messages_Thread::populate() for full parameter info
1831
*/
1832
public function __construct( $thread_id = 0, $order = 'ASC', $args = array() ) {
1833
$this->thread = new BP_Messages_Thread( $thread_id, $order, $args );
@@ -1937,14 +1943,14 @@ class BP_Messages_Thread_Template {
1937
/**
1938
* Initialize the messages template loop for a specific thread.
1939
*
1940
- * @param array $args {
1941
* Array of arguments. All are optional.
1942
- * @type int $thread_id ID of the thread whose messages you are displaying.
1943
- * Default: if viewing a thread, the thread ID will be parsed from
1944
- * the URL (bp_action_variable( 0 )).
1945
- * @type string $order 'ASC' or 'DESC'. Default: 'ASC'.
1946
- * @type bool $update_meta_cache Whether to pre-fetch metadata for
1947
- * queried message items. Default: true.
1948
* }
1949
* @return bool True if there are messages to display, otherwise false.
1950
*/
@@ -2253,7 +2259,7 @@ function bp_the_thread_message_alt_class() {
2253
}
2254
2255
/**
2256
- * Output the ID for message sender within a single thread
2257
*
2258
* @since BuddyPress (2.1.0)
2259
*/
@@ -2261,7 +2267,7 @@ function bp_the_thread_message_sender_id() {
2261
echo bp_get_the_thread_message_sender_id();
2262
}
2263
/**
2264
- * Return the ID for message sender within a single thread
2265
*
2266
* @since BuddyPress (2.1.0)
2267
*
@@ -2287,8 +2293,8 @@ function bp_the_thread_message_sender_id() {
2287
/**
2288
* Output the avatar for the current message sender.
2289
*
2290
- * @param array $args See {@link bp_get_the_thread_message_sender_avatar_thumb()}
2291
- * for a description.
2292
*/
2293
function bp_the_thread_message_sender_avatar( $args = '' ) {
2294
echo bp_get_the_thread_message_sender_avatar_thumb( $args );
@@ -2296,12 +2302,12 @@ function bp_the_thread_message_sender_avatar( $args = '' ) {
2296
/**
2297
* Get the avatar for the current message sender.
2298
*
2299
- * @param array $args {
2300
* Array of arguments. See {@link bp_core_fetch_avatar()} for more
2301
* complete details. All arguments are optional.
2302
- * @type string $type Avatar type. Default: 'thumb'.
2303
- * @type int $width Avatar width. Default: default for your $type.
2304
- * @type int $height Avatar height. Default: default for your $type.
2305
* }
2306
* @return string <img> tag containing the avatar.
2307
*/
@@ -2444,7 +2450,8 @@ function bp_the_thread_message_date_sent() {
2444
*
2445
* @since BuddyPress (2.1.0)
2446
*
2447
- * @uses strtotime() To convert the message string into a usable timestamp
2448
* @return int
2449
*/
2450
function bp_get_the_thread_message_date_sent() {
@@ -2507,10 +2514,11 @@ add_action( 'thread_loop_start', 'bp_messages_embed' );
2507
*
2508
* @since BuddyPress (2.2.0)
2509
*
2510
- * @param string $cache An empty string passed by BP_Embed::parse_oembed() for
2511
- * functions like this one to filter.
2512
- * @param int $id The ID of the message item.
2513
* @param string $cachekey The cache key generated in BP_Embed::parse_oembed().
2514
* @return mixed The cached embeds for this message item.
2515
*/
2516
function bp_embed_message_cache( $cache, $id, $cachekey ) {
@@ -2524,10 +2532,11 @@ function bp_embed_message_cache( $cache, $id, $cachekey ) {
2524
*
2525
* @since BuddyPress (2.2.0)
2526
*
2527
- * @param string $cache An empty string passed by BP_Embed::parse_oembed() for
2528
- * functions like this one to filter.
2529
* @param string $cachekey The cache key generated in BP_Embed::parse_oembed().
2530
- * @param int $id The ID of the message item.
2531
* @return bool True on success, false on failure.
2532
*/
2533
function bp_embed_message_save_cache( $cache, $cachekey, $id ) {
1
<?php
2
3
/**
4
+ * BuddyPress Messages Template Tags.
5
*
6
* @package BuddyPress
7
* @subpackage MessagesTemplate
72
public $user_id = 0;
73
74
/**
75
+ * The current "box" view ('notices', 'sentbox', 'inbox').
76
*
77
* @access public
78
* @var string
369
*
370
* @global BP_Messages_Box_Template $messages_template
371
*
372
+ * @param array|string $args {
373
* Array of arguments. All are optional.
374
+ * @type int $user_id ID of the user whose threads are being loaded.
375
+ * Default: ID of the logged-in user.
376
+ * @type string $box Current "box" view. If not provided here, the current
377
+ * view will be inferred from the URL.
378
+ * @type int $per_page Number of results to return per page. Default: 10.
379
+ * @type int $max Max results to return. Default: false.
380
* @type string $search_terms Terms to which to limit results. Default:
381
+ * the value of $_REQUEST['s'].
382
+ * @type string $page_arg URL argument used for the pagination param.
383
+ * Default: 'mpage'.
384
+ * @type array $meta_query Meta query arguments. Only applicable if $box is
385
+ * not 'notices'. See WP_Meta_Query more details.
386
* }
387
* @return bool True if there are threads to display, otherwise false.
388
*/
523
}
524
525
/**
526
+ * Output the thread's last message content.
527
*
528
* When viewing your Inbox, the last message is the most recent message in
529
* the thread of which you are *not* the author.
537
echo bp_get_message_thread_content();
538
}
539
/**
540
+ * Return the thread's last message content.
541
*
542
* When viewing your Inbox, the last message is the most recent message in
543
* the thread of which you are *not* the author.
546
* the thread of which you *are* the member.
547
*
548
* @since BuddyPress (2.0.0)
549
+ * @return string The raw content of the last message in the thread.
550
*/
551
function bp_get_message_thread_content() {
552
global $messages_template;
613
* Output the permalink for a particular thread.
614
*
615
* @param int $thread_id Optional. ID of the thread. Default: current thread
616
+ * being iterated on in the loop.
617
*/
618
function bp_message_thread_view_link( $thread_id = 0 ) {
619
echo bp_get_message_thread_view_link( $thread_id );
622
* Get the permalink of a particular thread.
623
*
624
* @param int $thread_id Optional. ID of the thread. Default: current
625
+ * thread being iterated on in the loop.
626
* @return string
627
*/
628
function bp_get_message_thread_view_link( $thread_id = 0 ) {
727
echo esc_url( bp_get_the_message_thread_mark_read_url() );
728
}
729
/**
730
+ * Return the URL used for marking a single message thread as read.
731
*
732
* @since BuddyPress (2.2.0)
733
*
848
*
849
* @since BuddyPress (2.2.0)
850
*
851
+ * @param int|bool $thread_id Optional. ID of the thread. Defaults to current thread ID.
852
*/
853
function bp_message_thread_total_count( $thread_id = false ) {
854
echo bp_get_message_thread_total_count( $thread_id );
858
*
859
* @since BuddyPress (2.2.0)
860
*
861
+ * @param int|bool $thread_id Optional. ID of the thread.
862
+ * Defaults to current thread ID.
863
+ *
864
* @return int
865
*/
866
function bp_get_message_thread_total_count( $thread_id = false ) {
892
*
893
* @since BuddyPress (2.2.0)
894
*
895
+ * @param int|bool $thread_id Optional. ID of the thread. Default: current thread ID.
896
*/
897
function bp_message_thread_total_and_unread_count( $thread_id = false ) {
898
echo bp_get_message_thread_total_and_unread_count( $thread_id );
900
/**
901
* Get markup for the current thread's total and unread count.
902
*
903
+ * @param int|bool $thread_id Optional. ID of the thread. Default: current thread ID.
904
+ *
905
* @return string Markup displaying the total and unread count for the thread.
906
*/
907
function bp_get_message_thread_total_and_unread_count( $thread_id = false ) {
971
*
972
* @see bp_get_message_thread_avatar() for a description of arguments.
973
*
974
+ * @param array|string $args See {@link bp_get_message_thread_avatar()}.
975
*/
976
function bp_message_thread_avatar( $args = '' ) {
977
echo bp_get_message_thread_avatar( $args );
982
* @see bp_core_fetch_avatar() For a description of arguments and
983
* return values.
984
*
985
+ * @param array|string $args {
986
* Arguments are listed here with an explanation of their defaults.
987
* For more information about the arguments, see
988
* {@link bp_core_fetch_avatar()}.
989
+ * @type string $type Default: 'thumb'.
990
+ * @type int|bool $width Default: false.
991
+ * @type int|bool $height Default: false.
992
+ * @type string $class Default: 'avatar'.
993
+ * @type string|bool $id Default: false.
994
+ * @type string $alt Default: 'Profile picture of [display name]'.
995
* }
996
+ * @return string User avatar string.
997
*/
998
function bp_get_message_thread_avatar( $args = '' ) {
999
global $messages_template;
1146
/**
1147
* Return the form action for Messages HTML forms.
1148
*
1149
+ * @return string The form action.
1150
*/
1151
function bp_get_messages_form_action() {
1152
1155
*
1156
* @since BuddyPress (1.0.0)
1157
*
1158
+ * @param string $value The form action.
1159
*/
1160
return apply_filters( 'bp_get_messages_form_action', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' . bp_action_variable( 0 ) ) );
1161
}
1829
/**
1830
* Constructor method.
1831
*
1832
+ * @see BP_Messages_Thread::populate() for full parameter info.
1833
+ *
1834
+ * @param int $thread_id
1835
+ * @param string $order
1836
+ * @param array $args
1837
*/
1838
public function __construct( $thread_id = 0, $order = 'ASC', $args = array() ) {
1839
$this->thread = new BP_Messages_Thread( $thread_id, $order, $args );
1943
/**
1944
* Initialize the messages template loop for a specific thread.
1945
*
1946
+ * @param array|string $args {
1947
* Array of arguments. All are optional.
1948
+ * @type int $thread_id ID of the thread whose messages you are displaying.
1949
+ * Default: if viewing a thread, the thread ID will be parsed from
1950
+ * the URL (bp_action_variable( 0 )).
1951
+ * @type string $order 'ASC' or 'DESC'. Default: 'ASC'.
1952
+ * @type bool $update_meta_cache Whether to pre-fetch metadata for
1953
+ * queried message items. Default: true.
1954
* }
1955
* @return bool True if there are messages to display, otherwise false.
1956
*/
2259
}
2260
2261
/**
2262
+ * Output the ID for message sender within a single thread.
2263
*
2264
* @since BuddyPress (2.1.0)
2265
*/
2267
echo bp_get_the_thread_message_sender_id();
2268
}
2269
/**
2270
+ * Return the ID for message sender within a single thread.
2271
*
2272
* @since BuddyPress (2.1.0)
2273
*
2293
/**
2294
* Output the avatar for the current message sender.
2295
*
2296
+ * @param array|string $args See {@link bp_get_the_thread_message_sender_avatar_thumb()}
2297
+ * for a description.
2298
*/
2299
function bp_the_thread_message_sender_avatar( $args = '' ) {
2300
echo bp_get_the_thread_message_sender_avatar_thumb( $args );
2302
/**
2303
* Get the avatar for the current message sender.
2304
*
2305
+ * @param array|string $args {
2306
* Array of arguments. See {@link bp_core_fetch_avatar()} for more
2307
* complete details. All arguments are optional.
2308
+ * @type string $type Avatar type. Default: 'thumb'.
2309
+ * @type int $width Avatar width. Default: default for your $type.
2310
+ * @type int $height Avatar height. Default: default for your $type.
2311
* }
2312
* @return string <img> tag containing the avatar.
2313
*/
2450
*
2451
* @since BuddyPress (2.1.0)
2452
*
2453
+ * @uses strtotime() To convert the message string into a usable timestamp.
2454
+ *
2455
* @return int
2456
*/
2457
function bp_get_the_thread_message_date_sent() {
2514
*
2515
* @since BuddyPress (2.2.0)
2516
*
2517
+ * @param string $cache An empty string passed by BP_Embed::parse_oembed() for
2518
+ * functions like this one to filter.
2519
+ * @param int $id The ID of the message item.
2520
* @param string $cachekey The cache key generated in BP_Embed::parse_oembed().
2521
+ *
2522
* @return mixed The cached embeds for this message item.
2523
*/
2524
function bp_embed_message_cache( $cache, $id, $cachekey ) {
2532
*
2533
* @since BuddyPress (2.2.0)
2534
*
2535
+ * @param string $cache An empty string passed by BP_Embed::parse_oembed() for
2536
+ * functions like this one to filter.
2537
* @param string $cachekey The cache key generated in BP_Embed::parse_oembed().
2538
+ * @param int $id The ID of the message item.
2539
+ *
2540
* @return bool True on success, false on failure.
2541
*/
2542
function bp_embed_message_save_cache( $cache, $cachekey, $id ) {
bp-messages/bp-messages-widgets.php CHANGED
@@ -1,6 +1,6 @@
1
<?php
2
/**
3
- * BuddyPress Messages Widgets
4
*
5
* @package BuddyPress
6
* @subpackage Messages
@@ -44,8 +44,8 @@ class BP_Messages_Sitewide_Notices_Widget extends WP_Widget {
44
*
45
* @see WP_Widget::widget() for a description of parameters.
46
*
47
- * @param array $args See {@WP_Widget::widget()}.
48
- * @param array $args See {@WP_Widget::widget()}.
49
*/
50
public function widget( $args, $instance ) {
51
@@ -95,6 +95,7 @@ class BP_Messages_Sitewide_Notices_Widget extends WP_Widget {
95
*
96
* @param array $new_instance See {@WP_Widget::update()}.
97
* @param array $old_instance See {@WP_Widget::update()}.
98
* @return array $instance See {@WP_Widget::update()}.
99
*/
100
public function update( $new_instance, $old_instance ) {
@@ -109,6 +110,8 @@ class BP_Messages_Sitewide_Notices_Widget extends WP_Widget {
109
* @see WP_Widget::form() for a description of parameters.
110
*
111
* @param array $instance See {@WP_Widget::form()}.
112
*/
113
public function form( $instance ) {
114
$instance = wp_parse_args( (array) $instance, array(
1
<?php
2
/**
3
+ * BuddyPress Messages Widgets.
4
*
5
* @package BuddyPress
6
* @subpackage Messages
44
*
45
* @see WP_Widget::widget() for a description of parameters.
46
*
47
+ * @param array $args See {@WP_Widget::widget()}.
48
+ * @param array $instance See {@WP_Widget::widget()}.
49
*/
50
public function widget( $args, $instance ) {
51
95
*
96
* @param array $new_instance See {@WP_Widget::update()}.
97
* @param array $old_instance See {@WP_Widget::update()}.
98
+ *
99
* @return array $instance See {@WP_Widget::update()}.
100
*/
101
public function update( $new_instance, $old_instance ) {
110
* @see WP_Widget::form() for a description of parameters.
111
*
112
* @param array $instance See {@WP_Widget::form()}.
113
+ *
114
+ * @return string Widget form output.
115
*/
116
public function form( $instance ) {
117
$instance = wp_parse_args( (array) $instance, array(
bp-messages/classes/class-bp-messages-message.php CHANGED
@@ -100,7 +100,7 @@ class BP_Messages_Message {
100
* Send a message.
101
*
102
* @return int|bool ID of the newly created message on success, false
103
- * on failure.
104
*/
105
public function send() {
106
global $wpdb;
@@ -120,7 +120,7 @@ class BP_Messages_Message {
120
*
121
* @since BuddyPress (1.0.0)
122
*
123
- * @param BP_Messages_Message Current instance of the message item being saved. Passed by reference.
124
*/
125
do_action_ref_array( 'messages_message_before_save', array( &$this ) );
126
@@ -166,7 +166,7 @@ class BP_Messages_Message {
166
*
167
* @since BuddyPress (1.0.0)
168
*
169
- * @param BP_Messages_Message Current instance of the message item being saved. Passed by reference.
170
*/
171
do_action_ref_array( 'messages_message_after_save', array( &$this ) );
172
@@ -192,6 +192,7 @@ class BP_Messages_Message {
192
* Get list of recipient IDs from their usernames.
193
*
194
* @param array $recipient_usernames Usernames of recipients.
195
* @return array
196
*/
197
public static function get_recipient_ids( $recipient_usernames ) {
@@ -213,6 +214,7 @@ class BP_Messages_Message {
213
* Get the ID of the message last sent by the logged-in user for a given thread.
214
*
215
* @param int $thread_id ID of the thread.
216
* @return int|null ID of the message if found, otherwise null.
217
*/
218
public static function get_last_sent_for_user( $thread_id ) {
@@ -226,10 +228,11 @@ class BP_Messages_Message {
226
/**
227
* Check whether a user is the sender of a message.
228
*
229
- * @param int $user_id ID of the user.
230
* @param int $message_id ID of the message.
231
* @return int|null Returns the ID of the message if the user is the
232
- * sender, otherwise null.
233
*/
234
public static function is_user_sender( $user_id, $message_id ) {
235
global $wpdb;
@@ -243,6 +246,7 @@ class BP_Messages_Message {
243
* Get the ID of the sender of a message.
244
*
245
* @param int $message_id ID of the message.
246
* @return int|null The ID of the sender if found, otherwise null.
247
*/
248
public static function get_message_sender( $message_id ) {
@@ -252,4 +256,4 @@ class BP_Messages_Message {
252
253
return $wpdb->get_var( $wpdb->prepare( "SELECT sender_id FROM {$bp->messages->table_name_messages} WHERE id = %d", $message_id ) );
254
}
255
- }
100
* Send a message.
101
*
102
* @return int|bool ID of the newly created message on success, false
103
+ * on failure.
104
*/
105
public function send() {
106
global $wpdb;
120
*
121
* @since BuddyPress (1.0.0)
122
*
123
+ * @param BP_Messages_Message $this Current instance of the message item being saved. Passed by reference.
124
*/
125
do_action_ref_array( 'messages_message_before_save', array( &$this ) );
126
166
*
167
* @since BuddyPress (1.0.0)
168
*
169
+ * @param BP_Messages_Message $this Current instance of the message item being saved. Passed by reference.
170
*/
171
do_action_ref_array( 'messages_message_after_save', array( &$this ) );
172
192
* Get list of recipient IDs from their usernames.
193
*
194
* @param array $recipient_usernames Usernames of recipients.
195
+ *
196
* @return array
197
*/
198
public static function get_recipient_ids( $recipient_usernames ) {
214
* Get the ID of the message last sent by the logged-in user for a given thread.
215
*
216
* @param int $thread_id ID of the thread.
217
+ *
218
* @return int|null ID of the message if found, otherwise null.
219
*/
220
public static function get_last_sent_for_user( $thread_id ) {
228
/**
229
* Check whether a user is the sender of a message.
230
*
231
+ * @param int $user_id ID of the user.
232
* @param int $message_id ID of the message.
233
+ *
234
* @return int|null Returns the ID of the message if the user is the
235
+ * sender, otherwise null.
236
*/
237
public static function is_user_sender( $user_id, $message_id ) {
238
global $wpdb;
246
* Get the ID of the sender of a message.
247
*
248
* @param int $message_id ID of the message.
249
+ *
250
* @return int|null The ID of the sender if found, otherwise null.
251
*/
252
public static function get_message_sender( $message_id ) {
256
257
return $wpdb->get_var( $wpdb->prepare( "SELECT sender_id FROM {$bp->messages->table_name_messages} WHERE id = %d", $message_id ) );
258
}
259
+ }
bp-messages/classes/class-bp-messages-notice.php CHANGED
@@ -109,7 +109,7 @@ class BP_Messages_Notice {
109
*
110
* @since BuddyPress (1.0.0)
111
*
112
- * @param BP_Messages_Notice Current instance of the message notice item being saved. Passed by reference.
113
*/
114
do_action_ref_array( 'messages_notice_before_save', array( &$this ) );
115
@@ -137,7 +137,7 @@ class BP_Messages_Notice {
137
*
138
* @since BuddyPress (1.0.0)
139
*
140
- * @param BP_Messages_Notice Current instance of the message item being saved. Passed by reference.
141
*/
142
do_action_ref_array( 'messages_notice_after_save', array( &$this ) );
143
@@ -183,7 +183,7 @@ class BP_Messages_Notice {
183
*
184
* @since BuddyPress (1.0.0)
185
*
186
- * @param BP_Messages_Notice Current instance of the message notice item being deleted.
187
*/
188
do_action( 'messages_notice_before_delete', $this );
189
@@ -202,13 +202,13 @@ class BP_Messages_Notice {
202
/**
203
* Pulls up a list of notices.
204
*
205
- * To get all notices, pass a value of -1 to pag_num
206
*
207
* @since BuddyPress (1.0.0)
208
*
209
* @param array $args {
210
* Array of parameters.
211
- * @type int $pag_num Number of notices per page. Defaults to 20.
212
* @type int $pag_page The page number. Defaults to 1.
213
* }
214
* @return array
@@ -255,7 +255,7 @@ class BP_Messages_Notice {
255
*
256
* @since BuddyPress (1.0.0)
257
*
258
- * @return object The BP_Messages_Notice object
259
*/
260
public static function get_active() {
261
$notice = wp_cache_get( 'active_notice', 'bp_messages' );
@@ -273,4 +273,4 @@ class BP_Messages_Notice {
273
274
return $notice;
275
}
276
- }
109
*
110
* @since BuddyPress (1.0.0)
111
*
112
+ * @param BP_Messages_Notice $this Current instance of the message notice item being saved. Passed by reference.
113
*/
114
do_action_ref_array( 'messages_notice_before_save', array( &$this ) );
115
137
*
138
* @since BuddyPress (1.0.0)
139
*
140
+ * @param BP_Messages_Notice $this Current instance of the message item being saved. Passed by reference.
141
*/
142
do_action_ref_array( 'messages_notice_after_save', array( &$this ) );
143
183
*
184
* @since BuddyPress (1.0.0)
185
*
186
+ * @param BP_Messages_Notice $this Current instance of the message notice item being deleted.
187
*/
188
do_action( 'messages_notice_before_delete', $this );
189
202
/**
203
* Pulls up a list of notices.
204
*
205
+ * To get all notices, pass a value of -1 to pag_num.
206
*
207
* @since BuddyPress (1.0.0)
208
*
209
* @param array $args {
210
* Array of parameters.
211
+ * @type int $pag_num Number of notices per page. Defaults to 20.
212
* @type int $pag_page The page number. Defaults to 1.
213
* }
214
* @return array
255
*
256
* @since BuddyPress (1.0.0)
257
*
258
+ * @return object The BP_Messages_Notice object.
259
*/
260
public static function get_active() {
261
$notice = wp_cache_get( 'active_notice', 'bp_messages' );
273
274
return $notice;
275
}
276
+ }
bp-messages/classes/class-bp_messages-thread.php CHANGED
@@ -56,7 +56,7 @@ class BP_Messages_Thread {
56
public $unread_count;
57
58
/**
59
- * The content of the last message in this thread
60
*
61
* @since BuddyPress (1.2.0)
62
* @var string
@@ -64,7 +64,7 @@ class BP_Messages_Thread {
64
public $last_message_content;
65
66
/**
67
- * The date of the last message in this thread
68
*
69
* @since BuddyPress (1.2.0)
70
* @var string
@@ -72,7 +72,7 @@ class BP_Messages_Thread {
72
public $last_message_date;
73
74
/**
75
- * The ID of the last message in this thread
76
*
77
* @since BuddyPress (1.2.0)
78
* @var int
@@ -80,7 +80,7 @@ class BP_Messages_Thread {
80
public $last_message_id;
81
82
/**
83
- * The subject of the last message in this thread
84
*
85
* @since BuddyPress (1.2.0)
86
* @var string
@@ -88,7 +88,7 @@ class BP_Messages_Thread {
88
public $last_message_subject;
89
90
/**
91
- * The user ID of the author of the last message in this thread
92
*
93
* @since BuddyPress (1.2.0)
94
* @var int
@@ -108,7 +108,11 @@ class BP_Messages_Thread {
108
*
109
* @since BuddyPress (1.0.0)
110
*
111
- * @see BP_Messages_Thread::populate() for full description of parameters
112
*/
113
public function __construct( $thread_id = false, $order = 'ASC', $args = array() ) {
114
if ( $thread_id ) {
@@ -123,12 +127,12 @@ class BP_Messages_Thread {
123
*
124
* @since BuddyPress (1.0.0)
125
*
126
- * @param int $thread_id The message thread ID.
127
- * @param string $order The order to sort the messages. Either 'ASC' or 'DESC'.
128
* @param array $args {
129
* Array of arguments.
130
* @type bool $update_meta_cache Whether to pre-fetch metadata for
131
- * queried message items. Default: true.
132
* }
133
* @return bool False on failure.
134
*/
@@ -181,7 +185,7 @@ class BP_Messages_Thread {
181
*
182
* @since BuddyPress (2.2.0)
183
*
184
- * @param BP_Messages_Thread Message thread object.
185
*/
186
do_action( 'bp_messages_thread_post_populate', $this );
187
}
@@ -214,7 +218,8 @@ class BP_Messages_Thread {
214
* @since BuddyPress (1.0.0)
215
* @since BuddyPress (2.3.0) Added $thread_id as a parameter.
216
*
217
- * @param int $thread_id The thread ID
218
* @return array
219
*/
220
public function get_recipients( $thread_id = 0 ) {
@@ -256,7 +261,8 @@ class BP_Messages_Thread {
256
*
257
* @since BuddyPress (2.3.0)
258
*
259
- * @param int $thread_id The message thread ID
260
* @return array
261
*/
262
public static function get_messages( $thread_id = 0 ) {
@@ -281,7 +287,8 @@ class BP_Messages_Thread {
281
*
282
* @since BuddyPress (2.3.0)
283
*
284
- * @param int $thread_id The thread ID
285
* @return array
286
*/
287
public static function get_recipients_for_thread( $thread_id = 0 ) {
@@ -297,7 +304,8 @@ class BP_Messages_Thread {
297
*
298
* @since BuddyPress (1.0.0)
299
*
300
- * @param int $thread_id The message thread ID
301
* @return bool
302
*/
303
public static function delete( $thread_id ) {
@@ -352,7 +360,7 @@ class BP_Messages_Thread {
352
*
353
* @since BuddyPress (1.0.0)
354
*
355
- * @param int $message_id ID of the message
356
*/
357
do_action( 'messages_thread_deleted_thread', $message_id );
358
}
@@ -362,7 +370,7 @@ class BP_Messages_Thread {
362
}
363
364
/**
365
- * Fires after a message thread is either marked as deleted or deleted
366
*
367
* @since BuddyPress (2.2.0)
368
*
@@ -520,7 +528,8 @@ class BP_Messages_Thread {
520
* @since BuddyPress (2.2.0)
521
*
522
* @param array $meta_query An array of meta_query filters. See the
523
- * documentation for WP_Meta_Query for details.
524
* @return array $sql_array 'join' and 'where' clauses.
525
*/
526
public static function get_meta_query_sql( $meta_query = array() ) {
@@ -586,10 +595,10 @@ class BP_Messages_Thread {
586
* @since BuddyPress (1.0.0)
587
*
588
* @param int $user_id The user ID.
589
- * @param string $box The type of mailbox to get. Either 'inbox' or 'sentbox'.
590
- * Defaults to 'inbox'.
591
- * @param string $type The type of messages to get. Either 'all' or 'unread'
592
- * or 'read'. Defaults to 'all'.
593
* @return int
594
*/
595
public static function get_total_threads_for_user( $user_id, $box = 'inbox', $type = 'all' ) {
@@ -615,6 +624,7 @@ class BP_Messages_Thread {
615
* @since BuddyPress (1.0.0)
616
*
617
* @param int $thread_id The message thread ID.
618
* @return bool
619
*/
620
public static function user_is_sender( $thread_id ) {
@@ -637,6 +647,7 @@ class BP_Messages_Thread {
637
* @since BuddyPress (1.0.0)
638
*
639
* @param int $thread_id The message thread ID.
640
* @return string|bool The user link on success. Boolean false on failure.
641
*/
642
public static function get_last_sender( $thread_id ) {
@@ -657,6 +668,7 @@ class BP_Messages_Thread {
657
* @since BuddyPress (1.0.0)
658
*
659
* @param int $user_id The user ID.
660
* @return int
661
*/
662
public static function get_inbox_count( $user_id = 0 ) {
@@ -693,8 +705,9 @@ class BP_Messages_Thread {
693
* @since BuddyPress (1.0.0)
694
*
695
* @param int $thread_id The message thread ID.
696
- * @param int $user_id The user ID.
697
- * @return int|null The recorded recipient ID on success, null on failure
698
*/
699
public static function check_access( $thread_id, $user_id = 0 ) {
700
if ( empty( $user_id ) ) {
@@ -716,7 +729,8 @@ class BP_Messages_Thread {
716
* @since BuddyPress (1.0.0)
717
*
718
* @param int $thread_id The message thread ID.
719
- * @return int|null The message thread ID on success, null on failure
720
*/
721
public static function is_valid( $thread_id = 0 ) {
722
// Bail if no thread ID is passed
@@ -744,6 +758,7 @@ class BP_Messages_Thread {
744
* @since BuddyPress (1.0.0)
745
*
746
* @param array $recipients Array containing the message recipients (array of objects).
747
* @return string
748
*/
749
public static function get_recipient_links( $recipients ) {
@@ -805,4 +820,4 @@ class BP_Messages_Thread {
805
806
return true;
807
}
808
- }
56
public $unread_count;
57
58
/**
59
+ * The content of the last message in this thread.
60
*
61
* @since BuddyPress (1.2.0)
62
* @var string
64
public $last_message_content;
65
66
/**
67
+ * The date of the last message in this thread.
68
*
69
* @since BuddyPress (1.2.0)
70
* @var string
72
public $last_message_date;
73
74
/**
75
+ * The ID of the last message in this thread.
76
*
77
* @since BuddyPress (1.2.0)
78
* @var int
80
public $last_message_id;
81
82
/**
83
+ * The subject of the last message in this thread.
84
*
85
* @since BuddyPress (1.2.0)
86
* @var string
88
public $last_message_subject;
89
90
/**
91
+ * The user ID of the author of the last message in this thread.
92
*
93
* @since BuddyPress (1.2.0)
94
* @var int
108
*
109
* @since BuddyPress (1.0.0)
110
*
111
+ * @see BP_Messages_Thread::populate() for full description of parameters.
112
+ *
113
+ * @param bool $thread_id
114
+ * @param string $order
115
+ * @param array $args
116
*/
117
public function __construct( $thread_id = false, $order = 'ASC', $args = array() ) {
118
if ( $thread_id ) {
127
*
128
* @since BuddyPress (1.0.0)
129
*
130
+ * @param int $thread_id The message thread ID.
131
+ * @param string $order The order to sort the messages. Either 'ASC' or 'DESC'.
132
* @param array $args {
133
* Array of arguments.
134
* @type bool $update_meta_cache Whether to pre-fetch metadata for
135
+ * queried message items. Default: true.
136
* }
137
* @return bool False on failure.
138
*/
185
*
186
* @since BuddyPress (2.2.0)
187
*
188
+ * @param BP_Messages_Thread $this Message thread object.
189
*/
190
do_action( 'bp_messages_thread_post_populate', $this );
191
}
218
* @since BuddyPress (1.0.0)
219
* @since BuddyPress (2.3.0) Added $thread_id as a parameter.
220
*
221
+ * @param int $thread_id The thread ID.
222
+ *
223
* @return array
224
*/
225
public function get_recipients( $thread_id = 0 ) {
261
*
262
* @since BuddyPress (2.3.0)
263
*
264
+ * @param int $thread_id The message thread ID.
265
+ *
266
* @return array
267
*/
268
public static function get_messages( $thread_id = 0 ) {
287
*
288
* @since BuddyPress (2.3.0)
289
*
290
+ * @param int $thread_id The thread ID.
291
+ *
292
* @return array
293
*/
294
public static function get_recipients_for_thread( $thread_id = 0 ) {
304
*
305
* @since BuddyPress (1.0.0)
306
*
307
+ * @param int $thread_id The message thread ID.
308
+ *
309
* @return bool
310
*/
311
public static function delete( $thread_id ) {
360
*
361
* @since BuddyPress (1.0.0)
362
*
363
+ * @param int $message_id ID of the message.
364
*/
365
do_action( 'messages_thread_deleted_thread', $message_id );
366
}
370
}
371
372
/**
373
+ * Fires after a message thread is either marked as deleted or deleted.
374
*
375
* @since BuddyPress (2.2.0)
376
*
528
* @since BuddyPress (2.2.0)
529
*
530
* @param array $meta_query An array of meta_query filters. See the
531
+ * documentation for WP_Meta_Query for details.
532
+ *
533
* @return array $sql_array 'join' and 'where' clauses.
534
*/
535
public static function get_meta_query_sql( $meta_query = array() ) {
595
* @since BuddyPress (1.0.0)
596
*
597
* @param int $user_id The user ID.
598
+ * @param string $box The type of mailbox to get. Either 'inbox' or 'sentbox'.
599
+ * Defaults to 'inbox'.
600
+ * @param string $type The type of messages to get. Either 'all' or 'unread'.
601
+ * or 'read'. Defaults to 'all'.
602
* @return int
603
*/
604
public static function get_total_threads_for_user( $user_id, $box = 'inbox', $type = 'all' ) {
624
* @since BuddyPress (1.0.0)
625
*
626
* @param int $thread_id The message thread ID.
627
+ *
628
* @return bool
629
*/
630
public static function user_is_sender( $thread_id ) {
647
* @since BuddyPress (1.0.0)
648
*
649
* @param int $thread_id The message thread ID.
650
+ *
651
* @return string|bool The user link on success. Boolean false on failure.
652
*/
653
public static function get_last_sender( $thread_id ) {
668
* @since BuddyPress (1.0.0)
669
*
670
* @param int $user_id The user ID.
671
+ *
672
* @return int
673
*/
674
public static function get_inbox_count( $user_id = 0 ) {
705
* @since BuddyPress (1.0.0)
706
*
707
* @param int $thread_id The message thread ID.
708
+ * @param int $user_id The user ID.
709
+ *
710
+ * @return int|null The recorded recipient ID on success, null on failure.
711
*/
712
public static function check_access( $thread_id, $user_id = 0 ) {
713
if ( empty( $user_id ) ) {
729
* @since BuddyPress (1.0.0)
730
*
731
* @param int $thread_id The message thread ID.
732
+ *
733
+ * @return int|null The message thread ID on success, null on failure.
734
*/
735
public static function is_valid( $thread_id = 0 ) {
736
// Bail if no thread ID is passed
758
* @since BuddyPress (1.0.0)
759
*
760
* @param array $recipients Array containing the message recipients (array of objects).
761
+ *
762
* @return string
763
*/
764
public static function get_recipient_links( $recipients ) {
820
821
return true;
822
}
823
+ }
bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/camera.php CHANGED
@@ -13,7 +13,7 @@
13
<script id="tmpl-bp-avatar-webcam" type="text/html">
14
<# if ( ! data.user_media ) { #>
15
<div id="bp-webcam-message">
16
- <p class="warning"><?php esc_html_e( 'Your browser does not support the camera feature', 'buddypress' );?></p>
17
</div>
18
<# } else { #>
19
<div id="avatar-to-crop"></div>
13
<script id="tmpl-bp-avatar-webcam" type="text/html">
14
<# if ( ! data.user_media ) { #>
15
<div id="bp-webcam-message">
16
+ <p class="warning"><?php esc_html_e( 'Your browser does not support this feature.', 'buddypress' );?></p>
17
</div>
18
<# } else { #>
19
<div id="avatar-to-crop"></div>
bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php CHANGED
@@ -114,9 +114,3 @@
114
do_action( 'bp_after_group_send_invites_list' ); ?>
115
116
</div><!-- .main-column -->
117
-
118
- <div class="submit">
119
- <input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send Invites', 'buddypress' ); ?>" />
120
- </div>
121
-
122
- <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
114
do_action( 'bp_after_group_send_invites_list' ); ?>
115
116
</div><!-- .main-column -->
bp-templates/bp-legacy/buddypress/groups/single/send-invites.php CHANGED
@@ -18,6 +18,12 @@ if ( bp_get_new_group_invite_friend_list() ) : ?>
18
<?php bp_get_template_part( 'groups/single/invites-loop' ); ?>
19
</div>
20
21
<?php /* This is important, don't forget it */ ?>
22
<input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id(); ?>" />
23
18
<?php bp_get_template_part( 'groups/single/invites-loop' ); ?>
19
</div>
20
21
+ <div class="submit">
22
+ <input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send Invites', 'buddypress' ); ?>" />
23
+ </div>
24
+
25
+ <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
26
+
27
<?php /* This is important, don't forget it */ ?>
28
<input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id(); ?>" />
29
bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php CHANGED
@@ -38,7 +38,7 @@ do_action( 'bp_before_notices_loop' ); ?>
38
*/
39
do_action( 'bp_before_notices' ); ?>
40
41
- <table id="message-threads" class="messages-notices">
42
<?php while ( bp_message_threads() ) : bp_message_thread(); ?>
43
<tr id="notice-<?php bp_message_notice_id(); ?>" class="<?php bp_message_css_class(); ?>">
44
<td width="1%"></td>
38
*/
39
do_action( 'bp_before_notices' ); ?>
40
41
+ <table id="message-threads" class="messages-notices sitewide-notices">
42
<?php while ( bp_message_threads() ) : bp_message_thread(); ?>
43
<tr id="notice-<?php bp_message_notice_id(); ?>" class="<?php bp_message_css_class(); ?>">
44
<td width="1%"></td>
bp-templates/bp-legacy/css/buddypress-rtl.css CHANGED
@@ -528,6 +528,12 @@ body.activity-permalink #buddypress div.activity-comments div.acomment-content {
528
clear: right;
529
color: #800;
530
}
531
#buddypress div#message.updated p {
532
background-color: #efc;
533
border: 1px solid #591;
@@ -1456,8 +1462,9 @@ body.activity-permalink #buddypress ul.item-list li.activity-item {
1456
left: 0;
1457
top: 0;
1458
}
1459
- a.message-action-star,
1460
- a.message-action-unstar {
1461
text-decoration: none;
1462
outline: none;
1463
}
528
clear: right;
529
color: #800;
530
}
531
+ #buddypress div#message.warning p {
532
+ background-color: #ffe0af;
533
+ border: 1px solid #ffd087;
534
+ clear: right;
535
+ color: #800;
536
+ }
537
#buddypress div#message.updated p {
538
background-color: #efc;
539
border: 1px solid #591;
1462
left: 0;
1463
top: 0;
1464
}
1465
+ #buddypress a.message-action-star,
1466
+ #buddypress a.message-action-unstar {
1467
+ border-bottom: 0;
1468
text-decoration: none;
1469
outline: none;
1470
}
bp-templates/bp-legacy/css/buddypress-rtl.min.css CHANGED
@@ -1 +1 @@
1
- #buddypress div.pagination .pagination-links a:hover,#buddypress ul.button-nav li.current a{font-weight:700}#buddypress div.pagination{background:0 0;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:right;width:100%;padding:10px 0}#buddypress div.pagination .pag-count{float:right;margin-right:10px}#buddypress div.pagination .pagination-links{float:left;margin-left:10px}#buddypress div.pagination .pagination-links a,#buddypress div.pagination .pagination-links span{font-size:90%;padding:0 5px}#buddypress noscript div.pagination{margin-bottom:15px}#buddypress #nav-above{display:none}#buddypress .paged #nav-above{display:block}#buddypress img.wp-smiley{border:none!important;clear:none!important;float:none!important;margin:0!important;padding:0!important}#buddypress .clear{clear:right}#buddypress #activity-stream{margin-top:-5px}#buddypress #activity-stream p{margin:5px 0}#buddypress #item-body form#whats-new-form{margin:0;padding:0}#buddypress .home-page form#whats-new-form{border-bottom:none;padding-bottom:0}#buddypress form#whats-new-form #whats-new-avatar{float:right}#buddypress form#whats-new-form #whats-new-content{margin-right:55px;padding:0 20px 20px 0}#buddypress form#whats-new-form p.activity-greeting{line-height:.5em;margin-bottom:15px;margin-right:75px}#buddypress form#whats-new-form textarea{background:#fff;color:#555;font-family:inherit;font-size:medium;height:20px;padding:6px;width:98%}body.no-js #buddypress form#whats-new-form textarea{height:50px}#buddypress form#whats-new-form #whats-new-options select{max-width:200px;margin-top:12px}#buddypress form#whats-new-form #whats-new-submit{float:left;margin-top:12px}#buddypress #whats-new-options{overflow:auto;height:0}body.no-js #buddypress #whats-new-options{height:auto}#buddypress #whats-new:focus{border-color:rgba(31,179,221,.9)!important;outline-color:rgba(31,179,221,.9)}#buddypress ul.activity-list li{overflow:hidden;padding:15px 0 0;list-style:none}#buddypress .activity-list .activity-avatar{float:right}#buddypress ul.item-list.activity-list li.has-comments{padding-bottom:15px}body.activity-permalink #buddypress ul.activity-list li.has-comments{padding-bottom:0}#buddypress .activity-list li.mini{font-size:80%;position:relative}#buddypress .activity-list li.mini .activity-avatar img.FB_profile_pic,#buddypress .activity-list li.mini .activity-avatar img.avatar{height:20px;margin-right:30px;width:20px}#buddypress .activity-permalink .activity-list li.mini .activity-avatar img.FB_profile_pic,#buddypress .activity-permalink .activity-list li.mini .activity-avatar img.avatar{height:auto;margin-right:0;width:auto}body.activity-permalink #buddypress .activity-list>li:first-child{padding-top:0}#buddypress .activity-list li .activity-content{position:relative}#buddypress .activity-list li.mini .activity-content p{margin:0}#buddypress .activity-list li.mini .activity-comments{clear:both;font-size:120%}body.activity-permalink #buddypress li.mini .activity-meta{margin-top:4px}#buddypress .activity-list li .activity-inreplyto{color:#888;font-size:80%}#buddypress .activity-list li .activity-inreplyto>p{margin:0;display:inline}#buddypress .activity-list li .activity-inreplyto blockquote,#buddypress .activity-list li .activity-inreplyto div.activity-inner{background:0 0;border:none;display:inline;margin:0;overflow:hidden;padding:0}#buddypress .activity-list .activity-content{margin:0 70px 0 0}body.activity-permalink #buddypress .activity-list li .activity-content{border:none;font-size:100%;line-height:150%;margin-right:170px;margin-left:0;padding:0}body.activity-permalink #buddypress .activity-list li .activity-header>p{margin:0;padding:5px 0 0}#buddypress .activity-list .activity-content .activity-header,#buddypress .activity-list .activity-content .comment-header{color:#888;line-height:220%}#buddypress .activity-header{margin-left:20px}#buddypress .acomment-meta a,#buddypress .activity-header a,#buddypress .comment-meta a{text-decoration:none}#buddypress .activity-list .activity-content .activity-header img.avatar{float:none!important;margin:0 0 -8px 5px!important}#buddypress a.bp-secondary-action,#buddypress span.highlight{font-size:80%;padding:0;margin-left:5px;text-decoration:none}#buddypress .activity-list .activity-content .activity-inner,#buddypress .activity-list .activity-content blockquote{margin:10px 0 5px 10px;overflow:hidden}#buddypress .activity-list li.new_forum_post .activity-content .activity-inner,#buddypress .activity-list li.new_forum_topic .activity-content .activity-inner{border-right:2px solid #EAEAEA;margin-right:5px;padding-right:10px}body.activity-permalink #buddypress .activity-content .activity-inner,body.activity-permalink #buddypress .activity-content blockquote{margin-right:0;margin-top:5px}#buddypress .activity-inner>p{word-wrap:break-word}#buddypress .activity-inner>.activity-inner,#buddypress .activity-inner>blockquote{margin:0}#buddypress .activity-list .activity-content img.thumbnail{border:2px solid #eee;float:right;margin:0 0 5px 10px}#buddypress .activity-read-more{margin-right:1em;white-space:nowrap}#buddypress .activity-list li.load-more,#buddypress .activity-list li.load-newest{background:#f0f0f0;font-size:110%;margin:15px 0;padding:10px 15px;text-align:center}#buddypress .activity-list li.load-more a,#buddypress .activity-list li.load-newest a{color:#4D4D4D}#buddypress div.activity-meta{margin:18px 0 0}body.activity-permalink #buddypress div.activity-meta{margin-bottom:6px}#buddypress div.activity-meta a{padding:4px 8px}#buddypress a.activity-time-since{color:#aaa;text-decoration:none}#buddypress a.activity-time-since:hover{color:#888;text-decoration:underline}#buddypress #reply-title small a,#buddypress a.bp-primary-action{font-size:80%;margin-left:5px;text-decoration:none}#buddypress #reply-title small a span,#buddypress a.bp-primary-action span{background:#999;color:#fff;font-size:90%;margin-right:2px;padding:0 5px}#buddypress #reply-title small a:hover span,#buddypress a.bp-primary-action:hover span{background:#555;color:#fff}#buddypress div.activity-comments{margin:0 70px 0 0;overflow:hidden;position:relative;width:auto;clear:both}body.activity-permalink #buddypress div.activity-comments{background:0 0;margin-right:170px;width:auto}#buddypress div.activity-comments>ul{padding:0 10px 0 0}#buddypress div.activity-comments ul,#buddypress div.activity-comments ul li{border:none;list-style:none}#buddypress div.activity-comments ul{clear:both;margin:0}#buddypress div.activity-comments ul li{border-top:1px solid #eee;padding:10px 0 0}body.activity-permalink #buddypress .activity-list li.mini .activity-comments{clear:none;margin-top:0}body.activity-permalink #buddypress div.activity-comments ul li{border-width:1px;padding:10px 0 0}#buddypress div.activity-comments>ul>li:first-child{border-top:none}#buddypress div.activity-comments ul li:last-child{margin-bottom:0}#buddypress div.activity-comments ul li>ul{margin-right:30px;margin-top:0;padding-right:10px}body.activity-permalink #buddypress div.activity-comments ul li>ul{margin-top:10px}body.activity-permalink #buddypress div.activity-comments>ul{padding:0 15px 0 10px}#buddypress div.activity-comments div.acomment-avatar img{border-width:1px;float:right;height:25px;margin-left:10px;width:25px}#buddypress div.activity-comments div.acomment-content{font-size:80%;margin:5px 40px 0 0}#buddypress div.acomment-content .activity-delete-link,#buddypress div.acomment-content .comment-header,#buddypress div.acomment-content .time-since{display:none}body.activity-permalink #buddypress div.activity-comments div.acomment-content{font-size:90%}#buddypress div.activity-comments div.acomment-meta{color:#888;font-size:80%}#buddypress div.activity-comments form.ac-form{display:none;padding:10px}#buddypress div.activity-comments li form.ac-form{margin-left:15px;clear:both}#buddypress div.activity-comments form.root{margin-right:0}#buddypress div.activity-comments div#message{margin-top:15px;margin-bottom:0}#buddypress div.activity-comments form .ac-textarea{background:#fff;border:1px inset #ccc;margin-bottom:10px;padding:8px}#buddypress div.activity-comments form textarea{border:none;background:0 0;box-shadow:none;outline:0;color:#555;font-family:inherit;font-size:100%;height:60px;padding:0;margin:0;width:100%}#buddypress div.activity-comments form input{margin-top:5px}#buddypress div.activity-comments form div.ac-reply-avatar{float:right}#buddypress div.ac-reply-avatar img{border:1px solid #eee}#buddypress div.activity-comments form div.ac-reply-content{color:#888;margin-right:50px;padding-right:15px}#buddypress div.activity-comments form div.ac-reply-content a{text-decoration:none}#buddypress .acomment-options{float:right;margin:5px 40px 5px 0}#buddypress .acomment-options a{color:#999}#buddypress .acomment-options a:hover{color:inherit}#buddypress div.dir-search{float:left;margin:-39px 0 0}#buddypress div.dir-search input[type=text],#buddypress li.groups-members-search input[type=text]{font-size:90%;padding:1px 3px}#buddypress .current-member-type{font-style:italic}#buddypress .dir-form{clear:both}#buddypress div#message{margin:0 0 15px}#buddypress #message.info{margin-bottom:0}#buddypress div#message.updated{clear:both;display:block}#buddypress div#message p,#sitewide-notice p{font-size:90%;display:block;padding:10px 15px}#buddypress div#message.error p{background-color:#fdc;border:1px solid #a00;clear:right;color:#800}#buddypress div#message.updated p{background-color:#efc;border:1px solid #591;color:#250}#buddypress #pass-strength-result{background-color:#eee;border-color:#ddd;border-style:solid;border-width:1px;display:none;margin:5px 0 5px 5px;padding:5px;text-align:center;width:150px}#buddypress .standard-form #basic-details-section #pass-strength-result{width:35%}#buddypress #pass-strength-result.bad,#buddypress #pass-strength-result.error{background-color:#ffb78c;border-color:#ff853c!important;display:block}#buddypress #pass-strength-result.good{background-color:#ffec8b;border-color:#fc0!important;display:block}#buddypress #pass-strength-result.short{background-color:#ffa0a0;border-color:#f04040!important;display:block}#buddypress #pass-strength-result.strong{background-color:#c3ff88;border-color:#8dff1c!important;display:block}#buddypress .standard-form#signup_form div div.error{background:#faa;color:#a00;margin:0 0 10px;padding:6px;width:90%}#buddypress div.accept,#buddypress div.reject{float:right;margin-right:10px}#buddypress ul.button-nav li{float:right;margin:0 0 10px 10px;list-style:none}#sitewide-notice #message{right:2%;position:fixed;top:1em;width:96%;z-index:9999}#sitewide-notice.admin-bar-on #message{top:3.3em}#sitewide-notice strong{display:block;margin-bottom:-1em}#buddypress .dir-search input[type=search],#buddypress .dir-search input[type=text],#buddypress .groups-members-search input[type=search],#buddypress .groups-members-search input[type=text],#buddypress .standard-form input[type=color],#buddypress .standard-form input[type=date],#buddypress .standard-form input[type=datetime-local],#buddypress .standard-form input[type=datetime],#buddypress .standard-form input[type=email],#buddypress .standard-form input[type=month],#buddypress .standard-form input[type=number],#buddypress .standard-form input[type=password],#buddypress .standard-form input[type=range],#buddypress .standard-form input[type=search],#buddypress .standard-form input[type=tel],#buddypress .standard-form input[type=text],#buddypress .standard-form input[type=time],#buddypress .standard-form input[type=url],#buddypress .standard-form input[type=week],#buddypress .standard-form select,#buddypress .standard-form textarea{border:1px solid #ccc;background:#fafafa;border-radius:0;color:#888;font:inherit;font-size:100%;padding:6px}#buddypress .standard-form select{padding:3px}#buddypress .standard-form input[type=password]{margin-bottom:5px}#buddypress .standard-form label,#buddypress .standard-form span.label{display:block;font-weight:700;margin:15px 0 5px;width:auto}#buddypress .standard-form div.checkbox label:nth-child(n+2),#buddypress .standard-form div.radio div label{color:#888;font-size:100%;font-weight:400;margin:5px 0 0}#buddypress .standard-form#sidebar-login-form label{margin-top:5px}#buddypress .standard-form input[type=text]{width:75%}#buddypress .standard-form#sidebar-login-form input[type=password],#buddypress .standard-form#sidebar-login-form input[type=text]{padding:4px;width:95%}#buddypress .standard-form #basic-details-section input[type=password],#buddypress .standard-form #blog-details-section input#signup_blog_url{width:35%}#buddypress #commentform input[type=text],#buddypress #commentform textarea,#buddypress .form-allowed-tags,#buddypress .standard-form#signup_form input[type=text],#buddypress .standard-form#signup_form textarea{width:90%}#buddypress .standard-form#signup_form div.submit{float:left}#buddypress div#signup-avatar img{margin:0 0 10px 15px}#buddypress .standard-form textarea{width:75%;height:120px}#buddypress .standard-form textarea#message_content{height:200px}#buddypress .standard-form#send-reply textarea{width:97.5%}#buddypress .standard-form p.description{color:#888;font-size:80%;margin:5px 0}#buddypress .standard-form div.submit{clear:both;padding:15px 0 0}#buddypress .standard-form p.submit{margin-bottom:0;padding:15px 0 0}#buddypress .standard-form div.submit input{margin-left:15px}#buddypress .standard-form div.radio ul{margin:10px 38px 15px 0;list-style:disc}#buddypress .standard-form div.radio ul li{margin-bottom:5px}#buddypress .standard-form a.clear-value{display:block;margin-top:5px;outline:0}#buddypress table.notification-settings td:first-child,#buddypress table.notification-settings th.icon,#buddypress table.notifications td:first-child,#buddypress table.notifications th.icon,body.no-js #buddypress #delete_inbox_messages,body.no-js #buddypress #delete_sentbox_messages,body.no-js #buddypress #message-type-select,body.no-js #buddypress #messages-bulk-management #select-all-messages,body.no-js #buddypress #notifications-bulk-management #select-all-notifications,body.no-js #buddypress label[for=message-type-select]{display:none}#buddypress .standard-form #basic-details-section,#buddypress .standard-form #blog-details-section,#buddypress .standard-form #profile-details-section{float:right;width:48%}#buddypress .standard-form #profile-details-section{float:left}#buddypress #notifications-bulk-management,#buddypress .standard-form #blog-details-section{clear:right}#buddypress .standard-form input:focus,#buddypress .standard-form select:focus,#buddypress .standard-form textarea:focus{background:#fafafa;color:#555}#buddypress form#send-invite-form{margin-top:20px}#buddypress div#invite-list{background:#f5f5f5;height:400px;margin:0 0 10px;overflow:auto;padding:5px;width:160px}#buddypress .comment-reply-link,#buddypress a.button,#buddypress button,#buddypress div.generic-button a,#buddypress input[type=button],#buddypress input[type=reset],#buddypress input[type=submit],#buddypress ul.button-nav li a,a.bp-title-button{background:#fff;border:1px solid #ccc;color:#777;font-size:small;cursor:pointer;outline:0;padding:4px 10px;text-align:center;text-decoration:none}#buddypress .comment-reply-link:hover,#buddypress a.button:focus,#buddypress a.button:hover,#buddypress button:hover,#buddypress div.generic-button a:hover,#buddypress input[type=button]:hover,#buddypress input[type=reset]:hover,#buddypress input[type=submit]:hover,#buddypress ul.button-nav li a:hover,#buddypress ul.button-nav li.current a{background:#ededed;border:1px solid #bbb;color:#555;outline:0;text-decoration:none}#buddypress form.standard-form .left-menu{float:right}#buddypress form.standard-form .left-menu #invite-list ul{margin:1%;list-style:none}#buddypress form.standard-form .left-menu #invite-list ul li{margin:0 1% 0 0}#buddypress form.standard-form .main-column{margin-right:190px}#buddypress form.standard-form .main-column ul#friend-list{clear:none;float:right}#buddypress form.standard-form .main-column ul#friend-list h4{clear:none}#buddypress .wp-editor-wrap a.button,#buddypress .wp-editor-wrap button,#buddypress .wp-editor-wrap input[type=button],#buddypress .wp-editor-wrap input[type=reset],#buddypress .wp-editor-wrap input[type=submit]{padding:0 10px 1px}#buddypress form [disabled=disabled]{cursor:default;opacity:.4}.bp-screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute}#buddypress a.loading,#buddypress input.loading{-webkit-animation:loader-pulsate .5s infinite ease-in-out alternate;-moz-animation:loader-pulsate .5s infinite ease-in-out alternate;border-color:#aaa}@-webkit-keyframes loader-pulsate{from{border-color:#aaa;-webkit-box-shadow:0 0 6px #ccc;box-shadow:0 0 6px #ccc}to{border-color:#ccc;-webkit-box-shadow:0 0 6px #f8f8f8;box-shadow:0 0 6px #f8f8f8}}@-moz-keyframes loader-pulsate{from{border-color:#aaa;-moz-box-shadow:0 0 6px #ccc;box-shadow:0 0 6px #ccc}to{border-color:#ccc;-moz-box-shadow:0 0 6px #f8f8f8;box-shadow:0 0 6px #f8f8f8}}#buddypress a.loading:hover,#buddypress input.loading:hover{color:#777}#buddypress a.disabled,#buddypress button.disabled,#buddypress button.pending,#buddypress div.pending a,#buddypress input[type=submit].disabled,#buddypress input[type=submit].pending,#buddypress input[type=submit][disabled=disabled],#buddypress input[type=button].disabled,#buddypress input[type=button].pending,#buddypress input[type=reset].disabled,#buddypress input[type=reset].pending{border-color:#eee;color:#bbb;cursor:default}#buddypress a.disabled:hover,#buddypress button.disabled:hover,#buddypress button.pending:hover,#buddypress div.pending a:hover,#buddypress input[type=submit]:hover.disabled,#buddypress input[type=submit]:hover.pending,#buddypress input[type=button]:hover.disabled,#buddypress input[type=button]:hover.pending,#buddypress input[type=reset]:hover.disabled,#buddypress input[type=reset]:hover.pending{border-color:#eee;color:#bbb}#buddypress ul#topic-post-list{margin:0;width:auto}#buddypress ul#topic-post-list li{padding:15px;position:relative}#buddypress ul#topic-post-list li.alt{background:#f5f5f5}#buddypress ul#topic-post-list li div.poster-meta{color:#888;margin-bottom:10px}#buddypress ul#topic-post-list li div.post-content{margin-right:54px}#buddypress div.topic-tags{font-size:80%}#buddypress div.admin-links{color:#888;font-size:80%;position:absolute;top:15px;left:25px}#buddypress div#topic-meta{margin:0;padding:5px 19px 30px;position:relative}#buddypress div#topic-meta div.admin-links{left:19px;top:-36px}#buddypress div#topic-meta h3{margin:5px 0}#buddypress div#new-topic-post{display:none;margin:20px 0 0;padding:1px 0 0}#buddypress table.forum,#buddypress table.messages-notices,#buddypress table.notifications,#buddypress table.notifications-settings,#buddypress table.profile-fields,#buddypress table.profile-settings,#buddypress table.wp-profile-fields{width:100%}#buddypress table.forum thead tr,#buddypress table.messages-notices thead tr,#buddypress table.notifications thead tr,#buddypress table.notifications-settings thead tr,#buddypress table.profile-fields thead tr,#buddypress table.profile-settings thead tr,#buddypress table.wp-profile-fields thead tr{background:#eaeaea}#buddypress table#message-threads{clear:both}#buddypress table.profile-fields{margin-bottom:20px}#buddypress table tr td.thread-info p,#buddypress table.profile-fields p{margin:0}#buddypress table.profile-fields:last-child{margin-bottom:0}#buddypress table.profile-fields p:last-child{margin-top:0}#buddypress table.forum tr td,#buddypress table.forum tr th,#buddypress table.messages-notices tr td,#buddypress table.messages-notices tr th,#buddypress table.notifications tr td,#buddypress table.notifications tr th,#buddypress table.notifications-settings tr td,#buddypress table.notifications-settings tr th,#buddypress table.profile-fields tr td,#buddypress table.profile-fields tr th,#buddypress table.profile-settings tr td,#buddypress table.wp-profile-fields tr td,#buddypress table.wp-profile-fields tr th{padding:8px;vertical-align:middle}#buddypress table.forum tr td.label,#buddypress table.messages-notices tr td.label,#buddypress table.notifications tr td.label,#buddypress table.notifications-settings tr td.label,#buddypress table.profile-fields tr td.label,#buddypress table.wp-profile-fields tr td.label{border-left:1px solid #eaeaea;font-weight:700;width:25%}#buddypress #message-threads .thread-info{min-width:40%}#buddypress table tr td.thread-info p.thread-excerpt{color:#888;font-size:80%;margin-top:3px}#buddypress table.forum td{text-align:center}#buddypress table.forum tr.alt td,#buddypress table.messages-notices tr.alt td,#buddypress table.notifications tr.alt td,#buddypress table.notifications-settings tr.alt td,#buddypress table.profile-fields tr.alt td,#buddypress table.profile-settings tr.alt td,#buddypress table.wp-profile-fields tr.alt td{background:#f5f5f5}#buddypress table.notification-settings{margin-bottom:20px;text-align:right}#buddypress #groups-notification-settings{margin-bottom:0}#buddypress table.notification-settings th.title,#buddypress table.profile-settings th.title{width:80%}#buddypress table.notification-settings .no,#buddypress table.notification-settings .yes{text-align:center;width:40px}#buddypress table.forum{margin:0;width:auto;clear:both}#buddypress table.forum tr.sticky td{font-size:110%;background:#fff9db;border-top:1px solid #ffe8c4;border-bottom:1px solid #ffe8c4}#buddypress table.forum tr.closed td.td-title{padding-right:35px}#buddypress table.forum td p.topic-text{color:#888;font-size:100%}#buddypress table.forum tr>td:first-child,#buddypress table.forum tr>th:first-child{padding-right:15px}#buddypress table.forum tr>td:last-child,#buddypress table.forum tr>th:last-child{padding-left:15px}#buddypress table.forum td.td-group,#buddypress table.forum td.td-poster,#buddypress table.forum td.td-title,#buddypress table.forum tr th#th-group,#buddypress table.forum tr th#th-poster,#buddypress table.forum tr th#th-title{text-align:right}#buddypress table.forum tr td.td-title a.topic-title{font-size:110%}#buddypress table.forum td.td-freshness{white-space:nowrap}#buddypress table.forum td.td-freshness span.time-since{font-size:80%;color:#888}#buddypress table.forum td img.avatar{float:none;margin:0 0 -8px 5px}#buddypress table.forum td.td-group,#buddypress table.forum td.td-poster{min-width:140px}#buddypress table.forum th#th-title{width:80%}#buddypress table.forum th#th-freshness{width:25%}#buddypress table.forum th#th-postcount{width:15%}#buddypress table.forum p.topic-meta{font-size:80%;margin:5px 0 0}#buddypress .item-body{margin:20px 0}#buddypress span.activity{display:inline-block;font-size:small;opacity:.8;padding:0}#buddypress span.user-nicename{color:#777;display:inline-block;font-size:120%;font-weight:700}#buddypress div#message p,#sitewide-notice p{font-weight:400;margin-top:3px;text-decoration:none;background-color:#ffd;border:1px solid #cb2;color:#440}#buddypress ul.single-line li,body.activity-permalink #buddypress ul.item-list,body.activity-permalink #buddypress ul.item-list li.activity-item{border:none}#buddypress div#item-header{overflow:hidden}#buddypress div#item-header div#item-header-content{float:right;margin-right:0}#buddypress div#item-header h2{line-height:120%;margin:0 0 15px}#buddypress div#item-header h2 a{color:#777;text-decoration:none}#buddypress div#item-header img.avatar{float:right;margin:0 0 19px 15px}#buddypress div#item-header h2{margin-bottom:5px}#buddypress div#item-header h2 span.highlight{font-size:60%;font-weight:400;line-height:170%;vertical-align:middle;display:inline-block}#buddypress div#item-header h2 span.highlight span{background:#a1dcfa;color:#fff;cursor:pointer;font-weight:700;font-size:80%;margin-bottom:2px;padding:1px 4px;position:relative;left:-2px;top:-2px;vertical-align:middle}#buddypress div#item-header div#item-meta{font-size:80%;color:#aaa;overflow:hidden;margin:15px 0 5px;padding-bottom:10px}#buddypress div#item-header div#item-actions{float:left;margin:0 15px 15px 0;text-align:left;width:20%}#buddypress div#item-header div#item-actions h3{margin:0 0 5px}#buddypress div#item-header ul{margin-bottom:15px;overflow:hidden}#buddypress div#item-header ul h5,#buddypress div#item-header ul hr,#buddypress div#item-header ul span{display:none}#buddypress div#item-header ul li{float:left;list-style:none}#buddypress div#item-header ul img.avatar,#buddypress div#item-header ul.avatars img.avatar{height:30px;margin:2px;width:30px}#buddypress div#item-header a.button,#buddypress div#item-header div.generic-button{float:right;margin:10px 0 0 10px}#buddypress div#item-header div#message.info{line-height:80%}#buddypress ul.item-list{border-top:1px solid #eaeaea;width:100%;list-style:none;clear:both;margin:0;padding:0}#buddypress ul.item-list li{border-bottom:1px solid #eaeaea;padding:15px 0;margin:0;position:relative;list-style:none}#buddypress ul.item-list li img.avatar{float:right;margin:0 0 0 10px}#buddypress ul.item-list li div.item-title,#buddypress ul.item-list li h4{font-weight:400;font-size:90%;margin:0;width:75%}#buddypress ul.item-list li div.item-title span{color:#999;font-size:80%}#buddypress ul.item-list li div.item-desc{color:#888;font-size:80%;margin:10px 60px 0 0;width:50%}#buddypress ul.item-list li.group-no-avatar div.item-desc{margin-right:0}#buddypress ul.item-list li div.action{position:absolute;top:15px;left:0;text-align:left}#buddypress ul.item-list li div.meta{color:#888;font-size:80%;margin-top:10px}#buddypress ul.item-list li h5 span.small{float:left;font-size:80%;font-weight:400}#buddypress div.item-list-tabs{background:0 0;clear:right;overflow:hidden}#buddypress div.item-list-tabs ul{margin:0;padding:0}#buddypress div.item-list-tabs ul li{float:right;margin:0;list-style:none}#buddypress div.item-list-tabs#subnav ul li{margin-top:0}#buddypress div.item-list-tabs ul li.last{float:left;margin:7px 0 0}#buddypress div.item-list-tabs#subnav ul li.last{margin-top:4px}#buddypress div.item-list-tabs ul li.last select{max-width:185px}#buddypress div.item-list-tabs ul li a,#buddypress div.item-list-tabs ul li span{display:block;padding:5px 10px;text-decoration:none}#buddypress div.item-list-tabs ul li a span{background:#eee;border-radius:50%;border:1px solid #ccc;color:#999;display:inline;font-size:70%;margin-right:2px;padding:3px 6px;text-align:center;vertical-align:middle}#buddypress div.item-list-tabs ul li.current a,#buddypress div.item-list-tabs ul li.selected a{background-color:#eee;color:#555;opacity:.8;font-weight:700}#buddypress div.item-list-tabs ul li a:hover span,#buddypress div.item-list-tabs ul li.current a span,#buddypress div.item-list-tabs ul li.selected a span{background-color:#eee}#buddypress div.item-list-tabs ul li.current a span,#buddypress div.item-list-tabs ul li.selected a span{background-color:#fff}#buddypress div#item-nav ul li.loading a{background-position:12% 50%}#buddypress div.item-list-tabs#object-nav{margin-top:0}#buddypress div.item-list-tabs#subnav{background:0 0;margin:10px 0;overflow:hidden}#buddypress #admins-list li,#buddypress #members-list li,#buddypress #mods-list li{overflow:auto;list-style:none}#buddypress div#message-thread div.message-metadata,.widget.buddypress div.avatar-block{overflow:hidden}#buddypress table#message-threads tr.unread td{background:#fff9db;border-top:1px solid #ffe8c4;border-bottom:1px solid #ffe8c4;font-weight:700}#buddypress table#message-threads tr.unread td .activity,#buddypress table#message-threads tr.unread td .thread-excerpt,#buddypress table#message-threads tr.unread td.thread-options{font-weight:400}#buddypress li span.unread-count,#buddypress tr.unread span.unread-count{background:#d00;color:#fff;font-weight:700;padding:2px 8px}#buddypress div.item-list-tabs ul li a span.unread-count{padding:1px 6px;color:#fff}#buddypress div#message-thread div.message-box{margin:0;padding:15px}#buddypress div#message-thread div.alt{background:#f4f4f4}#buddypress div#message-thread p#message-recipients{margin:10px 0 20px}#buddypress div#message-thread img.avatar{float:right;margin:0 0 0 10px;vertical-align:middle}#buddypress div#message-thread strong{font-size:100%;margin:0}#buddypress div#message-thread strong a{text-decoration:none}#buddypress div#message-thread strong span.activity{margin-top:4px}#buddypress div#message-thread div.message-content{margin-right:45px}#buddypress div#message-thread div.message-options{text-align:left}#buddypress #message-threads img.avatar{max-width:none}#buddypress div.message-search{float:left;margin:0 20px}.message-metadata{position:relative}.message-star-actions{position:absolute;left:0;top:0}a.message-action-star,a.message-action-unstar{text-decoration:none;outline:0}a.message-action-star{opacity:.7}a.message-action-star:hover{opacity:1}.message-action-star span.icon:before,.message-action-unstar span.icon:before{font-family:dashicons;font-size:18px}.message-action-star span.icon:before{color:#aaa;content:"\f154"}.message-action-unstar span.icon:before{color:#FCDD77;content:"\f155"}#buddypress div.profile h4{margin-bottom:auto;margin-top:15px}#buddypress #profile-edit-form ul.button-nav{margin-top:15px}body.no-js #buddypress .field-visibility-settings-close,body.no-js #buddypress .field-visibility-settings-toggle{display:none}#buddypress .field-visibility-settings{display:none;margin-top:10px}body.no-js #buddypress .field-visibility-settings{display:block}#buddypress .current-visibility-level{font-weight:700;font-style:normal}#buddypress .field-visibility-settings,#buddypress .field-visibility-settings-notoggle,#buddypress .field-visibility-settings-toggle{color:#888}#buddypress .field-visibility-settings a,#buddypress .field-visibility-settings-toggle a{font-size:80%}body.register #buddypress div.page ul{list-style:none}#buddypress .standard-form .field-visibility-settings label{margin:0;font-weight:400}#buddypress .field-visibility-settings legend,#buddypress .field-visibility-settings-toggle{font-style:italic}#buddypress .field-visibility-settings .radio{list-style:none;margin-bottom:0}#buddypress .field-visibility select{margin:0}.widget.buddypress div.item-avatar img.avatar{float:right;margin:0 0 15px 10px}.widget.buddypress span.activity{display:inline-block;font-size:small;opacity:.8;padding:0}.widget.buddypress div.item-options{font-size:90%;margin:0 0 1em;padding:1em 0}.widget.buddypress div.item{margin:0 0 1em}.widget.buddypress div.item-content,.widget.buddypress div.item-meta{font-size:11px;margin-right:50px}.widget.buddypress ul.item-list img.avatar{height:40px;margin-left:10px;width:40px}.widget.buddypress div.item-avatar img{height:40px;margin:1px;width:40px}.widget.buddypress #bp-login-widget-form label{display:block;margin:1rem 0 .5rem}.widget.buddypress #bp-login-widget-form #bp-login-widget-submit{margin-left:10px}.widget.buddypress .bp-login-widget-user-avatar{float:right}.bp-login-widget-user-avatar img.avatar{height:40px;width:40px}.widget.buddypress .bp-login-widget-user-links>div{padding-right:60px;margin-bottom:.5rem}.widget.buddypress .bp-login-widget-user-links>div.bp-login-widget-user-link a{font-weight:700}.widget.buddypress #friends-list,.widget.buddypress #groups-list,.widget.buddypress #members-list{margin-right:0;padding-right:0}.widget.buddypress #friends-list li,.widget.buddypress #groups-list li,.widget.buddypress #members-list li{clear:both;list-style-type:none}@media only screen and (max-width:480px){#buddypress div.dir-search{float:left;margin-top:-50px;text-align:left}#buddypress div.dir-search input[type=text]{margin-bottom:1em;width:50%}a.bp-title-button{margin-right:10px}#buddypress form.standard-form .main-column div.action{position:relative;margin-bottom:1em}#buddypress form.standard-form .main-column ul#friend-list h4{width:100%}}@media only screen and (max-width:320px){#buddypress div.dir-search{clear:right;float:right;margin-top:0;text-align:right}#buddypress li#groups-order-select{clear:right;float:right}#buddypress ul.item-list li div.action{clear:right;float:right;margin-top:0;margin-right:70px;position:relative;top:0;left:0;text-align:right}#buddypress ul.item-list li div.item-desc{clear:right;float:right;margin:10px 0 0;width:auto}#buddypress li div.item{margin-right:70px;width:auto}#buddypress ul.item-list li div.meta{margin-top:0}#buddypress .item-desc p{margin:0 0 10px}#buddypress div.pagination .pag-count{margin-right:0}}@media only screen and (max-width:240px){#buddypress div.dir-search{float:right;margin:0}#buddypress div.dir-search input[type=text]{width:50%}#buddypress li#groups-order-select{float:right}#buddypress ul.item-list li img.avatar{width:30px;height:auto}#buddypress li div.item,#buddypress ul.item-list li div.action{margin-right:45px}h1 a.bp-title-button{clear:right;float:right;margin:10px 0 20px}}
1
+ #buddypress div.pagination .pagination-links a:hover,#buddypress ul.button-nav li.current a{font-weight:700}#buddypress div.pagination{background:0 0;border:none;color:#888;font-size:small;margin:0;position:relative;display:block;float:right;width:100%;padding:10px 0}#buddypress div.pagination .pag-count{float:right;margin-right:10px}#buddypress div.pagination .pagination-links{float:left;margin-left:10px}#buddypress div.pagination .pagination-links a,#buddypress div.pagination .pagination-links span{font-size:90%;padding:0 5px}#buddypress noscript div.pagination{margin-bottom:15px}#buddypress #nav-above{display:none}#buddypress .paged #nav-above{display:block}#buddypress img.wp-smiley{border:none!important;clear:none!important;float:none!important;margin:0!important;padding:0!important}#buddypress .clear{clear:right}#buddypress #activity-stream{margin-top:-5px}#buddypress #activity-stream p{margin:5px 0}#buddypress #item-body form#whats-new-form{margin:0;padding:0}#buddypress .home-page form#whats-new-form{border-bottom:none;padding-bottom:0}#buddypress form#whats-new-form #whats-new-avatar{float:right}#buddypress form#whats-new-form #whats-new-content{margin-right:55px;padding:0 20px 20px 0}#buddypress form#whats-new-form p.activity-greeting{line-height:.5em;margin-bottom:15px;margin-right:75px}#buddypress form#whats-new-form textarea{background:#fff;color:#555;font-family:inherit;font-size:medium;height:20px;padding:6px;width:98%}body.no-js #buddypress form#whats-new-form textarea{height:50px}#buddypress form#whats-new-form #whats-new-options select{max-width:200px;margin-top:12px}#buddypress form#whats-new-form #whats-new-submit{float:left;margin-top:12px}#buddypress #whats-new-options{overflow:auto;height:0}body.no-js #buddypress #whats-new-options{height:auto}#buddypress #whats-new:focus{border-color:rgba(31,179,221,.9)!important;outline-color:rgba(31,179,221,.9)}#buddypress ul.activity-list li{overflow:hidden;padding:15px 0 0;list-style:none}#buddypress .activity-list .activity-avatar{float:right}#buddypress ul.item-list.activity-list li.has-comments{padding-bottom:15px}body.activity-permalink #buddypress ul.activity-list li.has-comments{padding-bottom:0}#buddypress .activity-list li.mini{font-size:80%;position:relative}#buddypress .activity-list li.mini .activity-avatar img.FB_profile_pic,#buddypress .activity-list li.mini .activity-avatar img.avatar{height:20px;margin-right:30px;width:20px}#buddypress .activity-permalink .activity-list li.mini .activity-avatar img.FB_profile_pic,#buddypress .activity-permalink .activity-list li.mini .activity-avatar img.avatar{height:auto;margin-right:0;width:auto}body.activity-permalink #buddypress .activity-list>li:first-child{padding-top:0}#buddypress .activity-list li .activity-content{position:relative}#buddypress .activity-list li.mini .activity-content p{margin:0}#buddypress .activity-list li.mini