Version Description
See: https://codex.buddypress.org/releases/
Download this release
Release Info
Developer | johnjamesjacoby |
Plugin | BuddyPress |
Version | 2.9.0-beta2 |
Comparing to | |
See all releases |
Code changes from version 2.8.2 to 2.9.0-beta2
- bp-activity/admin/css/admin-rtl.css +23 -5
- bp-activity/admin/css/admin-rtl.min.css +1 -1
- bp-activity/admin/css/admin.css +23 -5
- bp-activity/admin/css/admin.min.css +1 -1
- bp-activity/admin/js/admin.min.js +1 -1
- bp-activity/bp-activity-admin.php +1 -1
- bp-activity/bp-activity-embeds.php +1 -1
- bp-activity/bp-activity-filters.php +9 -5
- bp-activity/bp-activity-functions.php +16 -5
- bp-activity/bp-activity-notifications.php +1 -1
- bp-activity/bp-activity-template.php +5 -5
- bp-activity/classes/class-bp-activity-activity.php +50 -46
- bp-activity/classes/class-bp-activity-list-table.php +2 -3
- bp-activity/css/mentions-rtl.css +24 -10
- bp-activity/css/mentions-rtl.min.css +1 -1
- bp-activity/css/mentions.css +25 -10
- bp-activity/css/mentions.min.css +1 -1
- bp-activity/js/mentions.min.js +1 -1
- bp-blogs/bp-blogs-activity.php +2 -2
- bp-blogs/bp-blogs-functions.php +3 -3
- bp-blogs/bp-blogs-template.php +4 -2
- bp-core/admin/bp-core-admin-functions.php +1 -1
- bp-core/admin/bp-core-admin-settings.php +33 -1
- bp-core/admin/bp-core-admin-slugs.php +0 -1
- bp-core/admin/bp-core-admin-tools.php +1 -1
- bp-core/admin/css/common-rtl.css +50 -16
- bp-core/admin/css/common-rtl.min.css +1 -1
- bp-core/admin/css/common.css +50 -16
- bp-core/admin/css/common.min.css +1 -1
- bp-core/admin/css/customizer-controls-rtl.css +3 -3
- bp-core/admin/css/customizer-controls-rtl.min.css +1 -1
- bp-core/admin/css/customizer-controls.css +3 -3
- bp-core/admin/css/customizer-controls.min.css +1 -1
- bp-core/admin/images/list-unsubscribe.png +0 -0
- bp-core/admin/images/twenty-seventeen.png +0 -0
- bp-core/admin/js/customizer-controls.min.js +1 -1
- bp-core/admin/js/customizer-receiver-emails.min.js +1 -1
- bp-core/admin/js/dismissible-admin-notices.min.js +1 -1
- bp-core/bp-core-actions.php +1 -0
- bp-core/bp-core-adminbar.php +0 -6
- bp-core/bp-core-attachments.php +2 -2
- bp-core/bp-core-avatars.php +34 -89
- bp-core/bp-core-buddybar.php +12 -12
- bp-core/bp-core-cache.php +9 -6
- bp-core/bp-core-catchuri.php +34 -2
- bp-core/bp-core-cssjs.php +2 -2
- bp-core/bp-core-filters.php +5 -5
- bp-core/bp-core-functions.php +31 -30
- bp-core/bp-core-moderation.php +2 -2
- bp-core/bp-core-options.php +2 -9
- bp-core/bp-core-template-loader.php +5 -5
- bp-core/bp-core-template.php +7 -4
- bp-core/bp-core-wpabstraction.php +5 -5
- bp-core/classes/class-bp-admin.php +5 -1
- bp-core/classes/class-bp-attachment-avatar.php +1 -1
- bp-core/classes/class-bp-attachment-cover-image.php +291 -291
- bp-core/classes/class-bp-attachment.php +32 -24
- bp-core/classes/class-bp-button.php +7 -0
- bp-core/classes/class-bp-core-bp-nav-backcompat.php +1 -1
- bp-core/classes/class-bp-core-nav.php +1 -1
- bp-core/classes/class-bp-core-oembed-extension.php +2 -0
- bp-core/classes/class-bp-core-user.php +4 -4
- bp-core/classes/class-bp-phpmailer.php +1 -1
- bp-core/css/admin-bar-rtl.css +5 -3
- bp-core/css/admin-bar-rtl.min.css +1 -1
- bp-core/css/admin-bar.css +5 -3
- bp-core/css/admin-bar.min.css +1 -1
- bp-core/css/avatar-rtl.css +18 -25
- bp-core/css/avatar-rtl.min.css +1 -1
- bp-core/css/avatar.css +18 -25
- bp-core/css/avatar.min.css +1 -1
- bp-core/css/buddybar-rtl.css +39 -5
- bp-core/css/buddybar-rtl.min.css +1 -1
- bp-core/css/buddybar.css +39 -5
- bp-core/css/buddybar.min.css +1 -1
- bp-core/deprecated/1.2.php +1 -1
- bp-core/deprecated/1.5.php +1 -1
- bp-core/deprecated/1.7.php +1 -1
- bp-core/deprecated/1.9.php +19 -16
- bp-core/deprecated/2.1.php +4 -4
- bp-core/deprecated/2.5.php +1 -1
- bp-core/deprecated/2.9.php +30 -0
- bp-core/js/avatar.min.js +1 -1
- bp-core/js/bp-plupload.js +5 -0
- bp-core/js/bp-plupload.min.js +1 -1
- bp-core/js/cover-image.js +277 -277
- bp-core/js/cover-image.min.js +1 -1
- bp-core/js/jquery-query.min.js +1 -1
- bp-core/js/vendor/jquery-cookie.min.js +1 -1
- bp-core/js/vendor/jquery-scroll-to.min.js +1 -1
- bp-core/js/vendor/jquery.atwho.min.js +1 -1
- bp-core/js/vendor/jquery.caret.min.js +1 -1
- bp-core/js/vendor/livestamp.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/af.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ar-ly.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ar-ma.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ar-sa.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ar-tn.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ar.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/az.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/be.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/bg.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/bn.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/bo.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/br.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/bs.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ca.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/cs.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/cv.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/cy.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/da.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/de-at.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/de.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/dv.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/el.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/en-au.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/en-ca.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/en-gb.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/en-ie.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/en-nz.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/eo.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/es-do.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/es.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/et.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/eu.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/fa.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/fi.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/fo.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/fr-ca.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/fr-ch.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/fr.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/fy.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/gd.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/gl.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/he.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/hi.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/hr.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/hu.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/hy-am.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/id.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/is.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/it.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ja.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/jv.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ka.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/kk.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/km.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ko.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ky.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/lb.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/lo.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/lt.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/lv.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/me.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/mi.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/mk.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ml.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/mr.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ms-my.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ms.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/my.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/nb.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ne.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/nl.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/nn.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/pa-in.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/pl.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/pt-br.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/pt.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ro.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ru.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/se.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/si.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/sk.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/sl.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/sq.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/sr-cyrl.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/sr.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ss.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/sv.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/sw.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/ta.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/te.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/th.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/tl-ph.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/tlh.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/tr.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/tzl.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/tzm-latn.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/tzm.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/uk.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/uz.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/vi.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/x-pseudo.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/zh-cn.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/zh-hk.min.js +1 -1
- bp-core/js/vendor/moment-js/locale/zh-tw.min.js +1 -1
- bp-core/js/vendor/moment-js/moment.min.js +1 -2
- bp-core/js/webcam.min.js +1 -1
- bp-core/js/widget-members.min.js +1 -1
- bp-forums/bp-forums-template.php +1 -1
- bp-friends/bp-friends-actions.php +1 -1
- bp-friends/bp-friends-activity.php +1 -1
- bp-friends/bp-friends-functions.php +10 -4
- bp-friends/bp-friends-template.php +5 -5
- bp-friends/classes/class-bp-core-friends-widget.php +1 -1
- bp-friends/classes/class-bp-friends-friendship.php +5 -5
- bp-friends/js/widget-friends.min.js +1 -1
- bp-groups/admin/css/admin-rtl.css +29 -3
- bp-groups/admin/css/admin-rtl.min.css +1 -1
- bp-groups/admin/css/admin.css +29 -3
- bp-groups/admin/css/admin.min.css +1 -1
- bp-groups/admin/js/admin.min.js +1 -1
- bp-groups/bp-groups-activity.php +16 -6
- bp-groups/bp-groups-admin.php +43 -31
- bp-groups/bp-groups-cache.php +5 -0
- bp-groups/bp-groups-forums.php +1 -1
- bp-groups/bp-groups-functions.php +106 -28
- bp-groups/bp-groups-notifications.php +14 -6
- bp-groups/bp-groups-screens.php +12 -3
- bp-groups/bp-groups-template.php +108 -47
- bp-groups/bp-groups-widgets.php +1 -1
- bp-groups/classes/class-bp-group-extension.php +13 -6
- bp-groups/classes/class-bp-groups-component.php +5 -17
- bp-groups/classes/class-bp-groups-group.php +175 -24
- bp-groups/classes/class-bp-groups-invite-template.php +1 -1
- bp-groups/classes/class-bp-groups-list-table.php +2 -1
- bp-groups/classes/class-bp-groups-member.php +28 -10
- bp-groups/classes/class-bp-groups-widget.php +2 -2
- bp-groups/js/widget-groups.min.js +1 -1
- bp-loader.php +3 -3
- bp-members/admin/css/admin-rtl.css +68 -35
- bp-members/admin/css/admin-rtl.min.css +1 -1
- bp-members/admin/css/admin.css +68 -35
- bp-members/admin/css/admin.min.css +1 -1
- bp-members/admin/js/admin.js +3 -1
- bp-members/admin/js/admin.min.js +1 -1
- bp-members/bp-members-functions.php +18 -9
- bp-members/bp-members-template.php +3 -1
- bp-members/classes/class-bp-core-members-widget.php +1 -1
- bp-members/classes/class-bp-core-recently-active-widget.php +1 -1
- bp-members/classes/class-bp-core-whos-online-widget.php +1 -1
- bp-members/classes/class-bp-members-admin.php +6 -5
- bp-members/classes/class-bp-members-list-table.php +1 -1
- bp-members/classes/class-bp-members-ms-list-table.php +1 -1
- bp-messages/bp-messages-actions.php +13 -8
- bp-messages/bp-messages-cache.php +4 -3
- bp-messages/bp-messages-filters.php +1 -1
- bp-messages/bp-messages-functions.php +7 -9
- bp-messages/bp-messages-notifications.php +9 -1
- bp-messages/bp-messages-screens.php +20 -2
- bp-messages/bp-messages-star.php +4 -4
- bp-messages/bp-messages-template.php +4 -5
bp-activity/admin/css/admin-rtl.css
CHANGED
@@ -1,16 +1,20 @@
|
|
1 |
.akismet-status {
|
2 |
float: left;
|
3 |
}
|
|
|
4 |
.akismet-status a {
|
5 |
-
color: #
|
6 |
font-style: italic;
|
7 |
}
|
|
|
8 |
.akismet-history {
|
9 |
margin: 13px;
|
10 |
}
|
|
|
11 |
.akismet-history div {
|
12 |
margin-bottom: 13px;
|
13 |
}
|
|
|
14 |
.akismet-history span {
|
15 |
color: #999;
|
16 |
}
|
@@ -18,36 +22,43 @@
|
|
18 |
#wp-bp-activities-wrap {
|
19 |
padding: 5px 0;
|
20 |
}
|
|
|
21 |
#bp-activities {
|
22 |
height: 120px;
|
23 |
}
|
|
|
24 |
#bp-replyhead {
|
25 |
font-size: 1em;
|
26 |
-
line-height: 1.
|
27 |
margin: 0;
|
28 |
}
|
|
|
29 |
#bp-replysubmit {
|
30 |
margin: 0;
|
31 |
padding: 0 0 3px;
|
32 |
text-align: center;
|
33 |
}
|
|
|
34 |
#bp-replysubmit .error {
|
35 |
-
color:
|
36 |
line-height: 21px;
|
37 |
text-align: center;
|
38 |
vertical-align: center;
|
39 |
}
|
|
|
40 |
#bp-replysubmit img.waiting {
|
41 |
float: left;
|
42 |
padding: 4px 10px 0;
|
43 |
vertical-align: top;
|
44 |
}
|
|
|
45 |
#bp-activities-form .column-response img {
|
46 |
float: right;
|
47 |
margin-bottom: 5px;
|
48 |
margin-left: 10px;
|
49 |
margin-top: 1px;
|
50 |
}
|
|
|
51 |
.activity-errors {
|
52 |
list-style-type: disc;
|
53 |
margin-right: 2em;
|
@@ -57,31 +68,38 @@
|
|
57 |
#bp_activity_content div.inside {
|
58 |
line-height: 0;
|
59 |
}
|
|
|
60 |
#bp_activity_action h3,
|
61 |
#bp_activity_content h3 {
|
62 |
cursor: auto;
|
63 |
}
|
|
|
64 |
#bp_activity_action td.mceIframeContainer,
|
65 |
#bp_activity_content td.mceIframeContainer {
|
66 |
-
background-color:
|
67 |
}
|
|
|
68 |
#post-body #bp-activities-action_resize,
|
69 |
#post-body #bp-activities-content_resize {
|
70 |
position: inherit;
|
71 |
margin-top: -2px;
|
72 |
}
|
|
|
73 |
#bp_activity_link input {
|
74 |
width: 99%;
|
75 |
}
|
|
|
76 |
#bp-activities-primaryid {
|
77 |
margin-bottom: 1em;
|
78 |
}
|
|
|
79 |
.column-action {
|
80 |
width: 12%;
|
81 |
}
|
82 |
|
83 |
@media screen and (max-width: 782px) {
|
|
|
84 |
body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
|
85 |
display: table-cell;
|
86 |
}
|
87 |
-
}
|
1 |
.akismet-status {
|
2 |
float: left;
|
3 |
}
|
4 |
+
|
5 |
.akismet-status a {
|
6 |
+
color: #aaa;
|
7 |
font-style: italic;
|
8 |
}
|
9 |
+
|
10 |
.akismet-history {
|
11 |
margin: 13px;
|
12 |
}
|
13 |
+
|
14 |
.akismet-history div {
|
15 |
margin-bottom: 13px;
|
16 |
}
|
17 |
+
|
18 |
.akismet-history span {
|
19 |
color: #999;
|
20 |
}
|
22 |
#wp-bp-activities-wrap {
|
23 |
padding: 5px 0;
|
24 |
}
|
25 |
+
|
26 |
#bp-activities {
|
27 |
height: 120px;
|
28 |
}
|
29 |
+
|
30 |
#bp-replyhead {
|
31 |
font-size: 1em;
|
32 |
+
line-height: 1.4;
|
33 |
margin: 0;
|
34 |
}
|
35 |
+
|
36 |
#bp-replysubmit {
|
37 |
margin: 0;
|
38 |
padding: 0 0 3px;
|
39 |
text-align: center;
|
40 |
}
|
41 |
+
|
42 |
#bp-replysubmit .error {
|
43 |
+
color: #f00;
|
44 |
line-height: 21px;
|
45 |
text-align: center;
|
46 |
vertical-align: center;
|
47 |
}
|
48 |
+
|
49 |
#bp-replysubmit img.waiting {
|
50 |
float: left;
|
51 |
padding: 4px 10px 0;
|
52 |
vertical-align: top;
|
53 |
}
|
54 |
+
|
55 |
#bp-activities-form .column-response img {
|
56 |
float: right;
|
57 |
margin-bottom: 5px;
|
58 |
margin-left: 10px;
|
59 |
margin-top: 1px;
|
60 |
}
|
61 |
+
|
62 |
.activity-errors {
|
63 |
list-style-type: disc;
|
64 |
margin-right: 2em;
|
68 |
#bp_activity_content div.inside {
|
69 |
line-height: 0;
|
70 |
}
|
71 |
+
|
72 |
#bp_activity_action h3,
|
73 |
#bp_activity_content h3 {
|
74 |
cursor: auto;
|
75 |
}
|
76 |
+
|
77 |
#bp_activity_action td.mceIframeContainer,
|
78 |
#bp_activity_content td.mceIframeContainer {
|
79 |
+
background-color: #fff;
|
80 |
}
|
81 |
+
|
82 |
#post-body #bp-activities-action_resize,
|
83 |
#post-body #bp-activities-content_resize {
|
84 |
position: inherit;
|
85 |
margin-top: -2px;
|
86 |
}
|
87 |
+
|
88 |
#bp_activity_link input {
|
89 |
width: 99%;
|
90 |
}
|
91 |
+
|
92 |
#bp-activities-primaryid {
|
93 |
margin-bottom: 1em;
|
94 |
}
|
95 |
+
|
96 |
.column-action {
|
97 |
width: 12%;
|
98 |
}
|
99 |
|
100 |
@media screen and (max-width: 782px) {
|
101 |
+
|
102 |
body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
|
103 |
display: table-cell;
|
104 |
}
|
105 |
+
}
|
bp-activity/admin/css/admin-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.akismet-status{float:left}.akismet-status a{color:#
|
1 |
+
.akismet-status{float:left}.akismet-status a{color:#aaa;font-style:italic}.akismet-history{margin:13px}.akismet-history div{margin-bottom:13px}.akismet-history span{color:#999}#wp-bp-activities-wrap{padding:5px 0}#bp-activities{height:120px}#bp-replyhead{font-size:1em;line-height:1.4;margin:0}#bp-replysubmit{margin:0;padding:0 0 3px;text-align:center}#bp-replysubmit .error{color:red;line-height:21px;text-align:center;vertical-align:center}#bp-replysubmit img.waiting{float:left;padding:4px 10px 0;vertical-align:top}#bp-activities-form .column-response img{float:right;margin-bottom:5px;margin-left:10px;margin-top:1px}.activity-errors{list-style-type:disc;margin-right:2em}#bp_activity_action div.inside,#bp_activity_content div.inside{line-height:0}#bp_activity_action h3,#bp_activity_content h3{cursor:auto}#bp_activity_action td.mceIframeContainer,#bp_activity_content td.mceIframeContainer{background-color:#fff}#post-body #bp-activities-action_resize,#post-body #bp-activities-content_resize{position:inherit;margin-top:-2px}#bp_activity_link input{width:99%}#bp-activities-primaryid{margin-bottom:1em}.column-action{width:12%}@media screen and (max-width:782px){body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){display:table-cell}}
|
bp-activity/admin/css/admin.css
CHANGED
@@ -1,16 +1,20 @@
|
|
1 |
.akismet-status {
|
2 |
float: right;
|
3 |
}
|
|
|
4 |
.akismet-status a {
|
5 |
-
color: #
|
6 |
font-style: italic;
|
7 |
}
|
|
|
8 |
.akismet-history {
|
9 |
margin: 13px;
|
10 |
}
|
|
|
11 |
.akismet-history div {
|
12 |
margin-bottom: 13px;
|
13 |
}
|
|
|
14 |
.akismet-history span {
|
15 |
color: #999;
|
16 |
}
|
@@ -18,36 +22,43 @@
|
|
18 |
#wp-bp-activities-wrap {
|
19 |
padding: 5px 0;
|
20 |
}
|
|
|
21 |
#bp-activities {
|
22 |
height: 120px;
|
23 |
}
|
|
|
24 |
#bp-replyhead {
|
25 |
font-size: 1em;
|
26 |
-
line-height: 1.
|
27 |
margin: 0;
|
28 |
}
|
|
|
29 |
#bp-replysubmit {
|
30 |
margin: 0;
|
31 |
padding: 0 0 3px;
|
32 |
text-align: center;
|
33 |
}
|
|
|
34 |
#bp-replysubmit .error {
|
35 |
-
color:
|
36 |
line-height: 21px;
|
37 |
text-align: center;
|
38 |
vertical-align: center;
|
39 |
}
|
|
|
40 |
#bp-replysubmit img.waiting {
|
41 |
float: right;
|
42 |
padding: 4px 10px 0;
|
43 |
vertical-align: top;
|
44 |
}
|
|
|
45 |
#bp-activities-form .column-response img {
|
46 |
float: left;
|
47 |
margin-bottom: 5px;
|
48 |
margin-right: 10px;
|
49 |
margin-top: 1px;
|
50 |
}
|
|
|
51 |
.activity-errors {
|
52 |
list-style-type: disc;
|
53 |
margin-left: 2em;
|
@@ -57,31 +68,38 @@
|
|
57 |
#bp_activity_content div.inside {
|
58 |
line-height: 0;
|
59 |
}
|
|
|
60 |
#bp_activity_action h3,
|
61 |
#bp_activity_content h3 {
|
62 |
cursor: auto;
|
63 |
}
|
|
|
64 |
#bp_activity_action td.mceIframeContainer,
|
65 |
#bp_activity_content td.mceIframeContainer {
|
66 |
-
background-color:
|
67 |
}
|
|
|
68 |
#post-body #bp-activities-action_resize,
|
69 |
#post-body #bp-activities-content_resize {
|
70 |
position: inherit;
|
71 |
margin-top: -2px;
|
72 |
}
|
|
|
73 |
#bp_activity_link input {
|
74 |
width: 99%;
|
75 |
}
|
|
|
76 |
#bp-activities-primaryid {
|
77 |
margin-bottom: 1em;
|
78 |
}
|
|
|
79 |
.column-action {
|
80 |
width: 12%;
|
81 |
}
|
82 |
|
83 |
@media screen and (max-width: 782px) {
|
|
|
84 |
body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
|
85 |
display: table-cell;
|
86 |
}
|
87 |
-
}
|
1 |
.akismet-status {
|
2 |
float: right;
|
3 |
}
|
4 |
+
|
5 |
.akismet-status a {
|
6 |
+
color: #aaa;
|
7 |
font-style: italic;
|
8 |
}
|
9 |
+
|
10 |
.akismet-history {
|
11 |
margin: 13px;
|
12 |
}
|
13 |
+
|
14 |
.akismet-history div {
|
15 |
margin-bottom: 13px;
|
16 |
}
|
17 |
+
|
18 |
.akismet-history span {
|
19 |
color: #999;
|
20 |
}
|
22 |
#wp-bp-activities-wrap {
|
23 |
padding: 5px 0;
|
24 |
}
|
25 |
+
|
26 |
#bp-activities {
|
27 |
height: 120px;
|
28 |
}
|
29 |
+
|
30 |
#bp-replyhead {
|
31 |
font-size: 1em;
|
32 |
+
line-height: 1.4;
|
33 |
margin: 0;
|
34 |
}
|
35 |
+
|
36 |
#bp-replysubmit {
|
37 |
margin: 0;
|
38 |
padding: 0 0 3px;
|
39 |
text-align: center;
|
40 |
}
|
41 |
+
|
42 |
#bp-replysubmit .error {
|
43 |
+
color: #f00;
|
44 |
line-height: 21px;
|
45 |
text-align: center;
|
46 |
vertical-align: center;
|
47 |
}
|
48 |
+
|
49 |
#bp-replysubmit img.waiting {
|
50 |
float: right;
|
51 |
padding: 4px 10px 0;
|
52 |
vertical-align: top;
|
53 |
}
|
54 |
+
|
55 |
#bp-activities-form .column-response img {
|
56 |
float: left;
|
57 |
margin-bottom: 5px;
|
58 |
margin-right: 10px;
|
59 |
margin-top: 1px;
|
60 |
}
|
61 |
+
|
62 |
.activity-errors {
|
63 |
list-style-type: disc;
|
64 |
margin-left: 2em;
|
68 |
#bp_activity_content div.inside {
|
69 |
line-height: 0;
|
70 |
}
|
71 |
+
|
72 |
#bp_activity_action h3,
|
73 |
#bp_activity_content h3 {
|
74 |
cursor: auto;
|
75 |
}
|
76 |
+
|
77 |
#bp_activity_action td.mceIframeContainer,
|
78 |
#bp_activity_content td.mceIframeContainer {
|
79 |
+
background-color: #fff;
|
80 |
}
|
81 |
+
|
82 |
#post-body #bp-activities-action_resize,
|
83 |
#post-body #bp-activities-content_resize {
|
84 |
position: inherit;
|
85 |
margin-top: -2px;
|
86 |
}
|
87 |
+
|
88 |
#bp_activity_link input {
|
89 |
width: 99%;
|
90 |
}
|
91 |
+
|
92 |
#bp-activities-primaryid {
|
93 |
margin-bottom: 1em;
|
94 |
}
|
95 |
+
|
96 |
.column-action {
|
97 |
width: 12%;
|
98 |
}
|
99 |
|
100 |
@media screen and (max-width: 782px) {
|
101 |
+
|
102 |
body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
|
103 |
display: table-cell;
|
104 |
}
|
105 |
+
}
|
bp-activity/admin/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.akismet-status{float:right}.akismet-status a{color:#
|
1 |
+
.akismet-status{float:right}.akismet-status a{color:#aaa;font-style:italic}.akismet-history{margin:13px}.akismet-history div{margin-bottom:13px}.akismet-history span{color:#999}#wp-bp-activities-wrap{padding:5px 0}#bp-activities{height:120px}#bp-replyhead{font-size:1em;line-height:1.4;margin:0}#bp-replysubmit{margin:0;padding:0 0 3px;text-align:center}#bp-replysubmit .error{color:red;line-height:21px;text-align:center;vertical-align:center}#bp-replysubmit img.waiting{float:right;padding:4px 10px 0;vertical-align:top}#bp-activities-form .column-response img{float:left;margin-bottom:5px;margin-right:10px;margin-top:1px}.activity-errors{list-style-type:disc;margin-left:2em}#bp_activity_action div.inside,#bp_activity_content div.inside{line-height:0}#bp_activity_action h3,#bp_activity_content h3{cursor:auto}#bp_activity_action td.mceIframeContainer,#bp_activity_content td.mceIframeContainer{background-color:#fff}#post-body #bp-activities-action_resize,#post-body #bp-activities-content_resize{position:inherit;margin-top:-2px}#bp_activity_link input{width:99%}#bp-activities-primaryid{margin-bottom:1em}.column-action{width:12%}@media screen and (max-width:782px){body.toplevel_page_bp-activity .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){display:table-cell}}
|
bp-activity/admin/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(i){var t={init:function(){i(document).on("click",".row-actions a.reply",t.open),i(document).on("click","#bp-activities-container a.cancel",t.close),i(document).on("click","#bp-activities-container a.save",t.send),i(document).on("keyup","#bp-activities:visible",function(i){27===i.which&&t.close()})},open:function(){var t=i("#bp-activities-container").hide();return i(this).parents("tr").after(t),t.fadeIn("300"),i("#bp-activities").focus(),!1},close:function(){return i("#bp-activities-container").fadeOut("200",function(){i("#bp-activities").val("").blur(),i("#bp-replysubmit .error").html("").hide(),i("#bp-replysubmit .waiting").hide()}),!1},send:function(){i("#bp-replysubmit .error").hide(),i("#bp-replysubmit .waiting").show();var e={};return e["_ajax_nonce-bp-activity-admin-reply"]=i('#bp-activities-container input[name="_ajax_nonce-bp-activity-admin-reply"]').val(),e.action="bp-activity-admin-reply",e.content=i("#bp-activities").val(),e.parent_id=i("#bp-activities-container").prev().data("parent_id"),e.root_id=i("#bp-activities-container").prev().data("root_id"),i.ajax({data:e,type:"POST",url:ajaxurl,error:function(i){t.error(i)},success:function(i){t.show(i)}}),!1},error:function(t){var e=t.statusText;i("#bp-replysubmit .waiting").hide(),t.responseText&&(e=t.responseText.replace(/<.[^<>]*?>/g,"")),e&&i("#bp-replysubmit .error").html(e).show()},show:function(e){var n,a,r;return"string"==typeof e?(t.error({responseText:e}),!1):(r=wpAjax.parseAjaxResponse(e)).errors?(t.error({responseText:wpAjax.broken}),!1):(r=r.responses[0],void i("#bp-activities-container").fadeOut("200",function(){i("#bp-activities").val("").blur(),i("#bp-replysubmit .error").html("").hide(),i("#bp-replysubmit .waiting").hide(),i("#bp-activities-container").before(r.data),a=i("#activity-"+r.id),n=a.closest(".widefat").css("backgroundColor"),a.animate({backgroundColor:"#CEB"},300).animate({backgroundColor:n},300)}))}};i(document).ready(function(){t.init(),i("#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-admin.php
CHANGED
@@ -141,7 +141,7 @@ add_action( 'wp_ajax_bp-activity-admin-reply', 'bp_activity_admin_reply' );
|
|
141 |
* @param string $value Will always be false unless another plugin filters it first.
|
142 |
* @param string $option Screen option name.
|
143 |
* @param string $new_value Screen option form value.
|
144 |
-
* @return string Option value. False to abandon update.
|
145 |
*/
|
146 |
function bp_activity_admin_screen_options( $value, $option, $new_value ) {
|
147 |
if ( 'toplevel_page_bp_activity_per_page' != $option && 'toplevel_page_bp_activity_network_per_page' != $option )
|
141 |
* @param string $value Will always be false unless another plugin filters it first.
|
142 |
* @param string $option Screen option name.
|
143 |
* @param string $new_value Screen option form value.
|
144 |
+
* @return string|int Option value. False to abandon update.
|
145 |
*/
|
146 |
function bp_activity_admin_screen_options( $value, $option, $new_value ) {
|
147 |
if ( 'toplevel_page_bp_activity_per_page' != $option && 'toplevel_page_bp_activity_network_per_page' != $option )
|
bp-activity/bp-activity-embeds.php
CHANGED
@@ -123,7 +123,7 @@ function bp_activity_embed_has_activity( $activity_id = 0 ) {
|
|
123 |
* @since 2.6.0
|
124 |
*/
|
125 |
function bp_activity_embed_excerpt( $content = '' ) {
|
126 |
-
echo bp_activity_get_embed_excerpt( $content
|
127 |
}
|
128 |
|
129 |
/**
|
123 |
* @since 2.6.0
|
124 |
*/
|
125 |
function bp_activity_embed_excerpt( $content = '' ) {
|
126 |
+
echo bp_activity_get_embed_excerpt( $content );
|
127 |
}
|
128 |
|
129 |
/**
|
bp-activity/bp-activity-filters.php
CHANGED
@@ -207,10 +207,12 @@ function bp_activity_filter_kses( $content ) {
|
|
207 |
global $allowedtags;
|
208 |
|
209 |
$activity_allowedtags = $allowedtags;
|
210 |
-
$activity_allowedtags['a']['
|
211 |
-
$activity_allowedtags['a']['
|
212 |
-
$activity_allowedtags['a']['
|
213 |
-
$activity_allowedtags['a']['
|
|
|
|
|
214 |
|
215 |
$activity_allowedtags['b'] = array();
|
216 |
$activity_allowedtags['code'] = array();
|
@@ -223,12 +225,14 @@ function bp_activity_filter_kses( $content ) {
|
|
223 |
$activity_allowedtags['img']['height'] = array();
|
224 |
$activity_allowedtags['img']['class'] = array();
|
225 |
$activity_allowedtags['img']['id'] = array();
|
226 |
-
$activity_allowedtags['img']['title'] = array();
|
227 |
|
228 |
$activity_allowedtags['span'] = array();
|
229 |
$activity_allowedtags['span']['class'] = array();
|
230 |
$activity_allowedtags['span']['data-livestamp'] = array();
|
231 |
|
|
|
|
|
|
|
232 |
|
233 |
/**
|
234 |
* Filters the allowed HTML tags for BuddyPress Activity content.
|
207 |
global $allowedtags;
|
208 |
|
209 |
$activity_allowedtags = $allowedtags;
|
210 |
+
$activity_allowedtags['a']['aria-label'] = array();
|
211 |
+
$activity_allowedtags['a']['class'] = array();
|
212 |
+
$activity_allowedtags['a']['data-bp-tooltip'] = array();
|
213 |
+
$activity_allowedtags['a']['id'] = array();
|
214 |
+
$activity_allowedtags['a']['rel'] = array();
|
215 |
+
$activity_allowedtags['a']['title'] = array();
|
216 |
|
217 |
$activity_allowedtags['b'] = array();
|
218 |
$activity_allowedtags['code'] = array();
|
225 |
$activity_allowedtags['img']['height'] = array();
|
226 |
$activity_allowedtags['img']['class'] = array();
|
227 |
$activity_allowedtags['img']['id'] = array();
|
|
|
228 |
|
229 |
$activity_allowedtags['span'] = array();
|
230 |
$activity_allowedtags['span']['class'] = array();
|
231 |
$activity_allowedtags['span']['data-livestamp'] = array();
|
232 |
|
233 |
+
$activity_allowedtags['ul'] = array();
|
234 |
+
$activity_allowedtags['ol'] = array();
|
235 |
+
$activity_allowedtags['li'] = array();
|
236 |
|
237 |
/**
|
238 |
* Filters the allowed HTML tags for BuddyPress Activity content.
|
bp-activity/bp-activity-functions.php
CHANGED
@@ -1845,7 +1845,7 @@ function bp_activity_get_specific( $args = '' ) {
|
|
1845 |
* @type bool $is_spam Should the item be marked as spam? Default: false.
|
1846 |
* @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'.
|
1847 |
* }
|
1848 |
-
* @return
|
1849 |
*/
|
1850 |
function bp_activity_add( $args = '' ) {
|
1851 |
|
@@ -2026,7 +2026,7 @@ function bp_activity_post_update( $args = '' ) {
|
|
2026 |
* @param int $post_id ID of the new post.
|
2027 |
* @param WP_Post|null $post Post object.
|
2028 |
* @param int $user_id ID of the post author.
|
2029 |
-
* @return
|
2030 |
*/
|
2031 |
function bp_activity_post_type_publish( $post_id = 0, $post = null, $user_id = 0 ) {
|
2032 |
|
@@ -2161,7 +2161,7 @@ function bp_activity_post_type_publish( $post_id = 0, $post = null, $user_id = 0
|
|
2161 |
* @since 2.2.0
|
2162 |
*
|
2163 |
* @param WP_Post|null $post Post item.
|
2164 |
-
* @return bool True on success, false on failure.
|
2165 |
*/
|
2166 |
function bp_activity_post_type_update( $post = null ) {
|
2167 |
|
@@ -2283,7 +2283,7 @@ function bp_activity_post_type_unpublish( $post_id = 0, $post = null ) {
|
|
2283 |
* @param int $comment_id ID of the comment.
|
2284 |
* @param bool $is_approved Whether the comment is approved or not.
|
2285 |
* @param object|null $activity_post_object The post type tracking args object.
|
2286 |
-
* @return
|
2287 |
*/
|
2288 |
function bp_activity_post_type_comment( $comment_id = 0, $is_approved = true, $activity_post_object = null ) {
|
2289 |
// Get the users comment
|
@@ -2557,7 +2557,7 @@ add_action( 'delete_comment', 'bp_activity_post_type_remove_comment', 10, 1 );
|
|
2557 |
* Defaults to false.
|
2558 |
* @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'.
|
2559 |
* }
|
2560 |
-
* @return
|
2561 |
*/
|
2562 |
function bp_activity_new_comment( $args = '' ) {
|
2563 |
$bp = buddypress();
|
@@ -2963,6 +2963,12 @@ function bp_activity_delete_comment( $activity_id, $comment_id ) {
|
|
2963 |
return $deleted;
|
2964 |
}
|
2965 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2966 |
// Delete any children of this comment.
|
2967 |
bp_activity_delete_children( $activity_id, $comment_id );
|
2968 |
|
@@ -3003,6 +3009,11 @@ function bp_activity_delete_comment( $activity_id, $comment_id ) {
|
|
3003 |
* @param int $comment_id The ID of the comment to be deleted.
|
3004 |
*/
|
3005 |
function bp_activity_delete_children( $activity_id, $comment_id ) {
|
|
|
|
|
|
|
|
|
|
|
3006 |
|
3007 |
// Get activity children to delete.
|
3008 |
$children = BP_Activity_Activity::get_child_comments( $comment_id );
|
1845 |
* @type bool $is_spam Should the item be marked as spam? Default: false.
|
1846 |
* @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'.
|
1847 |
* }
|
1848 |
+
* @return WP_Error|bool|int The ID of the activity on success. False on error.
|
1849 |
*/
|
1850 |
function bp_activity_add( $args = '' ) {
|
1851 |
|
2026 |
* @param int $post_id ID of the new post.
|
2027 |
* @param WP_Post|null $post Post object.
|
2028 |
* @param int $user_id ID of the post author.
|
2029 |
+
* @return null|WP_Error|bool|int The ID of the activity on success. False on error.
|
2030 |
*/
|
2031 |
function bp_activity_post_type_publish( $post_id = 0, $post = null, $user_id = 0 ) {
|
2032 |
|
2161 |
* @since 2.2.0
|
2162 |
*
|
2163 |
* @param WP_Post|null $post Post item.
|
2164 |
+
* @return null|WP_Error|bool True on success, false on failure.
|
2165 |
*/
|
2166 |
function bp_activity_post_type_update( $post = null ) {
|
2167 |
|
2283 |
* @param int $comment_id ID of the comment.
|
2284 |
* @param bool $is_approved Whether the comment is approved or not.
|
2285 |
* @param object|null $activity_post_object The post type tracking args object.
|
2286 |
+
* @return null|WP_Error|bool|int The ID of the activity on success. False on error.
|
2287 |
*/
|
2288 |
function bp_activity_post_type_comment( $comment_id = 0, $is_approved = true, $activity_post_object = null ) {
|
2289 |
// Get the users comment
|
2557 |
* Defaults to false.
|
2558 |
* @type string $error_type Optional. Error type. Either 'bool' or 'wp_error'. Default: 'bool'.
|
2559 |
* }
|
2560 |
+
* @return WP_Error|bool|int The ID of the comment on success, otherwise false.
|
2561 |
*/
|
2562 |
function bp_activity_new_comment( $args = '' ) {
|
2563 |
$bp = buddypress();
|
2963 |
return $deleted;
|
2964 |
}
|
2965 |
|
2966 |
+
// Check if comment still exists.
|
2967 |
+
$comment = new BP_Activity_Activity( $comment_id );
|
2968 |
+
if ( empty( $comment->id ) ) {
|
2969 |
+
return false;
|
2970 |
+
}
|
2971 |
+
|
2972 |
// Delete any children of this comment.
|
2973 |
bp_activity_delete_children( $activity_id, $comment_id );
|
2974 |
|
3009 |
* @param int $comment_id The ID of the comment to be deleted.
|
3010 |
*/
|
3011 |
function bp_activity_delete_children( $activity_id, $comment_id ) {
|
3012 |
+
// Check if comment still exists.
|
3013 |
+
$comment = new BP_Activity_Activity( $comment_id );
|
3014 |
+
if ( empty( $comment->id ) ) {
|
3015 |
+
return;
|
3016 |
+
}
|
3017 |
|
3018 |
// Get activity children to delete.
|
3019 |
$children = BP_Activity_Activity::get_child_comments( $comment_id );
|
bp-activity/bp-activity-notifications.php
CHANGED
@@ -94,7 +94,7 @@ function bp_activity_format_notifications( $action, $item_id, $secondary_item_id
|
|
94 |
* @param int $activity_id ID of the activity item being formatted.
|
95 |
* @param int $user_id ID of the user who inited the interaction.
|
96 |
*/
|
97 |
-
$return = apply_filters( 'bp_activity_' . $amount . '_' . $action_filter . '_notification', '<a href="' . esc_url( $link ) . '"
|
98 |
} else {
|
99 |
|
100 |
/**
|
94 |
* @param int $activity_id ID of the activity item being formatted.
|
95 |
* @param int $user_id ID of the user who inited the interaction.
|
96 |
*/
|
97 |
+
$return = apply_filters( 'bp_activity_' . $amount . '_' . $action_filter . '_notification', '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>', $link, (int) $total_items, $activity_id, $user_id );
|
98 |
} else {
|
99 |
|
100 |
/**
|
bp-activity/bp-activity-template.php
CHANGED
@@ -1493,7 +1493,7 @@ function bp_insert_activity_meta( $content = '' ) {
|
|
1493 |
|
1494 |
// Setup variables for activity meta.
|
1495 |
$activity_permalink = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity );
|
1496 |
-
$activity_meta = sprintf( '%1$s <a href="%2$s" class="view activity-time-since"
|
1497 |
$new_content,
|
1498 |
$activity_permalink,
|
1499 |
esc_attr__( 'View Discussion', 'buddypress' ),
|
@@ -1533,7 +1533,7 @@ function bp_insert_activity_meta( $content = '' ) {
|
|
1533 |
*
|
1534 |
* @global object $activities_template {@link BP_Activity_Template}
|
1535 |
*
|
1536 |
-
* @param BP_Activity_Activity $activity Optional. Falls back on the current item in the loop.
|
1537 |
* @return bool True if can delete, false otherwise.
|
1538 |
*/
|
1539 |
function bp_activity_user_can_delete( $activity = false ) {
|
@@ -2090,7 +2090,7 @@ function bp_activity_comment_delete_link() {
|
|
2090 |
* activity comment.
|
2091 |
*/
|
2092 |
function bp_get_activity_comment_delete_link() {
|
2093 |
-
$link = wp_nonce_url( bp_get_activity_directory_permalink() . 'delete/' . bp_get_activity_comment_id() . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_delete_link' );
|
2094 |
|
2095 |
/**
|
2096 |
* Filters the link used for deleting the activity comment currently being displayed.
|
@@ -2342,8 +2342,8 @@ function bp_activity_comment_form_nojs_display() {
|
|
2342 |
*
|
2343 |
* @global object $activities_template {@link BP_Activity_Template}
|
2344 |
*
|
2345 |
-
* @return string|
|
2346 |
-
*
|
2347 |
*/
|
2348 |
function bp_get_activity_comment_form_nojs_display() {
|
2349 |
global $activities_template;
|
1493 |
|
1494 |
// Setup variables for activity meta.
|
1495 |
$activity_permalink = bp_activity_get_permalink( $activities_template->activity->id, $activities_template->activity );
|
1496 |
+
$activity_meta = sprintf( '%1$s <a href="%2$s" class="view activity-time-since bp-tooltip" data-bp-tooltip="%3$s">%4$s</a>',
|
1497 |
$new_content,
|
1498 |
$activity_permalink,
|
1499 |
esc_attr__( 'View Discussion', 'buddypress' ),
|
1533 |
*
|
1534 |
* @global object $activities_template {@link BP_Activity_Template}
|
1535 |
*
|
1536 |
+
* @param false|BP_Activity_Activity $activity Optional. Falls back on the current item in the loop.
|
1537 |
* @return bool True if can delete, false otherwise.
|
1538 |
*/
|
1539 |
function bp_activity_user_can_delete( $activity = false ) {
|
2090 |
* activity comment.
|
2091 |
*/
|
2092 |
function bp_get_activity_comment_delete_link() {
|
2093 |
+
$link = wp_nonce_url( trailingslashit( bp_get_activity_directory_permalink() . 'delete/' . bp_get_activity_comment_id() ) . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_delete_link' );
|
2094 |
|
2095 |
/**
|
2096 |
* Filters the link used for deleting the activity comment currently being displayed.
|
2342 |
*
|
2343 |
* @global object $activities_template {@link BP_Activity_Template}
|
2344 |
*
|
2345 |
+
* @return string|false The activity comment form no JavaScript
|
2346 |
+
* display CSS. False on failure.
|
2347 |
*/
|
2348 |
function bp_get_activity_comment_form_nojs_display() {
|
2349 |
global $activities_template;
|
bp-activity/classes/class-bp-activity-activity.php
CHANGED
@@ -226,7 +226,7 @@ class BP_Activity_Activity {
|
|
226 |
*
|
227 |
* @since 1.0.0
|
228 |
*
|
229 |
-
* @return bool True on success.
|
230 |
*/
|
231 |
public function save() {
|
232 |
global $wpdb;
|
@@ -320,6 +320,7 @@ class BP_Activity_Activity {
|
|
320 |
*
|
321 |
* @since 1.2.0
|
322 |
* @since 2.4.0 Introduced the `$fields` parameter.
|
|
|
323 |
*
|
324 |
* @see BP_Activity_Activity::get_filter_sql() for a description of the
|
325 |
* 'filter' parameter.
|
@@ -335,6 +336,7 @@ class BP_Activity_Activity {
|
|
335 |
* @type string $fields Activity fields to return. Pass 'ids' to get only the activity IDs.
|
336 |
* 'all' returns full activity objects.
|
337 |
* @type string $sort ASC or DESC. Default: 'DESC'.
|
|
|
338 |
* @type array $exclude Array of activity IDs to exclude. Default: false.
|
339 |
* @type array $in Array of ids to limit query by (IN). Default: false.
|
340 |
* @type array $meta_query Array of meta_query conditions. See WP_Meta_Query::queries.
|
@@ -381,24 +383,25 @@ class BP_Activity_Activity {
|
|
381 |
|
382 |
$bp = buddypress();
|
383 |
$r = wp_parse_args( $args, array(
|
384 |
-
'page' => 1,
|
385 |
-
'per_page' => 25,
|
386 |
-
'max' => false,
|
387 |
-
'fields' => 'all',
|
388 |
-
'sort' => 'DESC',
|
389 |
-
'
|
390 |
-
'
|
391 |
-
'
|
392 |
-
'
|
393 |
-
'
|
394 |
-
'
|
395 |
-
'
|
396 |
-
'
|
397 |
-
'
|
398 |
-
'
|
399 |
-
'
|
400 |
-
'
|
401 |
-
'
|
|
|
402 |
) );
|
403 |
|
404 |
// Select conditions.
|
@@ -461,6 +464,29 @@ class BP_Activity_Activity {
|
|
461 |
$sort = 'DESC';
|
462 |
}
|
463 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
464 |
// Hide Hidden Items?
|
465 |
if ( ! $r['show_hidden'] ) {
|
466 |
$where_conditions['hidden_sql'] = "a.hide_sitewide = 0";
|
@@ -544,28 +570,6 @@ class BP_Activity_Activity {
|
|
544 |
*/
|
545 |
$join_sql = apply_filters( 'bp_activity_get_join_sql', $join_sql, $r, $select_sql, $from_sql, $where_sql );
|
546 |
|
547 |
-
/**
|
548 |
-
* Filters the preferred order of indexes for activity item.
|
549 |
-
*
|
550 |
-
* @since 1.6.0
|
551 |
-
*
|
552 |
-
* @param array $value Array of indexes in preferred order.
|
553 |
-
*/
|
554 |
-
$indexes = apply_filters( 'bp_activity_preferred_index_order', array( 'user_id', 'item_id', 'secondary_item_id', 'date_recorded', 'component', 'type', 'hide_sitewide', 'is_spam' ) );
|
555 |
-
|
556 |
-
foreach( $indexes as $key => $index ) {
|
557 |
-
if ( false !== strpos( $where_sql, $index ) ) {
|
558 |
-
$the_index = $index;
|
559 |
-
break; // Take the first one we find.
|
560 |
-
}
|
561 |
-
}
|
562 |
-
|
563 |
-
if ( !empty( $the_index ) ) {
|
564 |
-
$index_hint_sql = "USE INDEX ({$the_index})";
|
565 |
-
} else {
|
566 |
-
$index_hint_sql = '';
|
567 |
-
}
|
568 |
-
|
569 |
// Sanitize page and per_page parameters.
|
570 |
$page = absint( $r['page'] );
|
571 |
$per_page = absint( $r['per_page'] );
|
@@ -629,7 +633,7 @@ class BP_Activity_Activity {
|
|
629 |
|
630 |
} else {
|
631 |
// Query first for activity IDs.
|
632 |
-
$activity_ids_sql = "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY
|
633 |
|
634 |
if ( ! empty( $per_page ) && ! empty( $page ) ) {
|
635 |
// We query for $per_page + 1 items in order to
|
@@ -983,7 +987,7 @@ class BP_Activity_Activity {
|
|
983 |
* @param mixed $scope The activity scope. Accepts string or array of scopes.
|
984 |
* @param array $r Current activity arguments. Same as those of BP_Activity_Activity::get(),
|
985 |
* but merged with defaults.
|
986 |
-
* @return array 'sql' WHERE SQL string and 'override' activity args.
|
987 |
*/
|
988 |
public static function get_scope_query_sql( $scope = false, $r = array() ) {
|
989 |
|
@@ -1112,7 +1116,7 @@ class BP_Activity_Activity {
|
|
1112 |
* @param string $action Action to filter by.
|
1113 |
* @param string $content Content to filter by.
|
1114 |
* @param string $date_recorded Date to filter by.
|
1115 |
-
* @return int|
|
1116 |
*/
|
1117 |
public static function get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content, $date_recorded ) {
|
1118 |
global $wpdb;
|
@@ -1693,7 +1697,7 @@ class BP_Activity_Activity {
|
|
1693 |
*
|
1694 |
* @param string $field The database field.
|
1695 |
* @param array|bool $items The values for the IN clause, or false when none are found.
|
1696 |
-
* @return string|
|
1697 |
*/
|
1698 |
public static function get_in_operator_sql( $field, $items ) {
|
1699 |
global $wpdb;
|
@@ -1841,7 +1845,7 @@ class BP_Activity_Activity {
|
|
1841 |
* @since 1.1.0
|
1842 |
*
|
1843 |
* @param string $content The content to filter by.
|
1844 |
-
* @return int|
|
1845 |
*/
|
1846 |
public static function check_exists_by_content( $content ) {
|
1847 |
global $wpdb;
|
226 |
*
|
227 |
* @since 1.0.0
|
228 |
*
|
229 |
+
* @return WP_Error|bool True on success.
|
230 |
*/
|
231 |
public function save() {
|
232 |
global $wpdb;
|
320 |
*
|
321 |
* @since 1.2.0
|
322 |
* @since 2.4.0 Introduced the `$fields` parameter.
|
323 |
+
* @since 2.9.0 Introduced the `$order_by` parameter.
|
324 |
*
|
325 |
* @see BP_Activity_Activity::get_filter_sql() for a description of the
|
326 |
* 'filter' parameter.
|
336 |
* @type string $fields Activity fields to return. Pass 'ids' to get only the activity IDs.
|
337 |
* 'all' returns full activity objects.
|
338 |
* @type string $sort ASC or DESC. Default: 'DESC'.
|
339 |
+
* @type string $order_by Column to order results by.
|
340 |
* @type array $exclude Array of activity IDs to exclude. Default: false.
|
341 |
* @type array $in Array of ids to limit query by (IN). Default: false.
|
342 |
* @type array $meta_query Array of meta_query conditions. See WP_Meta_Query::queries.
|
383 |
|
384 |
$bp = buddypress();
|
385 |
$r = wp_parse_args( $args, array(
|
386 |
+
'page' => 1, // The current page.
|
387 |
+
'per_page' => 25, // Activity items per page.
|
388 |
+
'max' => false, // Max number of items to return.
|
389 |
+
'fields' => 'all', // Fields to include.
|
390 |
+
'sort' => 'DESC', // ASC or DESC.
|
391 |
+
'order_by' => 'date_recorded', // Column to order by.
|
392 |
+
'exclude' => false, // Array of ids to exclude.
|
393 |
+
'in' => false, // Array of ids to limit query by (IN).
|
394 |
+
'meta_query' => false, // Filter by activitymeta.
|
395 |
+
'date_query' => false, // Filter by date.
|
396 |
+
'filter_query' => false, // Advanced filtering - see BP_Activity_Query.
|
397 |
+
'filter' => false, // See self::get_filter_sql().
|
398 |
+
'scope' => false, // Preset activity arguments.
|
399 |
+
'search_terms' => false, // Terms to search by.
|
400 |
+
'display_comments' => false, // Whether to include activity comments.
|
401 |
+
'show_hidden' => false, // Show items marked hide_sitewide.
|
402 |
+
'spam' => 'ham_only', // Spam status.
|
403 |
+
'update_meta_cache' => true, // Whether or not to update meta cache.
|
404 |
+
'count_total' => false, // Whether or not to use count_total.
|
405 |
) );
|
406 |
|
407 |
// Select conditions.
|
464 |
$sort = 'DESC';
|
465 |
}
|
466 |
|
467 |
+
switch( $r['order_by'] ) {
|
468 |
+
case 'id' :
|
469 |
+
case 'user_id' :
|
470 |
+
case 'component' :
|
471 |
+
case 'type' :
|
472 |
+
case 'action' :
|
473 |
+
case 'content' :
|
474 |
+
case 'primary_link' :
|
475 |
+
case 'item_id' :
|
476 |
+
case 'secondary_item_id' :
|
477 |
+
case 'date_recorded' :
|
478 |
+
case 'hide_sitewide' :
|
479 |
+
case 'mptt_left' :
|
480 |
+
case 'mptt_right' :
|
481 |
+
case 'is_spam' :
|
482 |
+
break;
|
483 |
+
|
484 |
+
default :
|
485 |
+
$r['order_by'] = 'date_recorded';
|
486 |
+
break;
|
487 |
+
}
|
488 |
+
$order_by = 'a.' . $r['order_by'];
|
489 |
+
|
490 |
// Hide Hidden Items?
|
491 |
if ( ! $r['show_hidden'] ) {
|
492 |
$where_conditions['hidden_sql'] = "a.hide_sitewide = 0";
|
570 |
*/
|
571 |
$join_sql = apply_filters( 'bp_activity_get_join_sql', $join_sql, $r, $select_sql, $from_sql, $where_sql );
|
572 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
// Sanitize page and per_page parameters.
|
574 |
$page = absint( $r['page'] );
|
575 |
$per_page = absint( $r['per_page'] );
|
633 |
|
634 |
} else {
|
635 |
// Query first for activity IDs.
|
636 |
+
$activity_ids_sql = "{$select_sql} {$from_sql} {$join_sql} {$where_sql} ORDER BY {$order_by} {$sort}, a.id {$sort}";
|
637 |
|
638 |
if ( ! empty( $per_page ) && ! empty( $page ) ) {
|
639 |
// We query for $per_page + 1 items in order to
|
987 |
* @param mixed $scope The activity scope. Accepts string or array of scopes.
|
988 |
* @param array $r Current activity arguments. Same as those of BP_Activity_Activity::get(),
|
989 |
* but merged with defaults.
|
990 |
+
* @return false|array 'sql' WHERE SQL string and 'override' activity args.
|
991 |
*/
|
992 |
public static function get_scope_query_sql( $scope = false, $r = array() ) {
|
993 |
|
1116 |
* @param string $action Action to filter by.
|
1117 |
* @param string $content Content to filter by.
|
1118 |
* @param string $date_recorded Date to filter by.
|
1119 |
+
* @return int|false Activity ID on success, false if none is found.
|
1120 |
*/
|
1121 |
public static function get_id( $user_id, $component, $type, $item_id, $secondary_item_id, $action, $content, $date_recorded ) {
|
1122 |
global $wpdb;
|
1697 |
*
|
1698 |
* @param string $field The database field.
|
1699 |
* @param array|bool $items The values for the IN clause, or false when none are found.
|
1700 |
+
* @return string|false
|
1701 |
*/
|
1702 |
public static function get_in_operator_sql( $field, $items ) {
|
1703 |
global $wpdb;
|
1845 |
* @since 1.1.0
|
1846 |
*
|
1847 |
* @param string $content The content to filter by.
|
1848 |
+
* @return int|false The ID of the first matching item if found, otherwise false.
|
1849 |
*/
|
1850 |
public static function check_exists_by_content( $content ) {
|
1851 |
global $wpdb;
|
bp-activity/classes/class-bp-activity-list-table.php
CHANGED
@@ -592,7 +592,7 @@ class BP_Activity_List_Table extends WP_List_Table {
|
|
592 |
if ( $this->can_comment( $item ) ) {
|
593 |
$actions['reply'] = sprintf( '<a href="#" class="reply hide-if-no-js">%s</a>', __( 'Reply', 'buddypress' ) );
|
594 |
} else {
|
595 |
-
$actions['reply'] = sprintf( '<span class="form-input-tip"
|
596 |
}
|
597 |
|
598 |
// Edit.
|
@@ -706,8 +706,7 @@ class BP_Activity_List_Table extends WP_List_Table {
|
|
706 |
|
707 |
// If the activity has comments, display a link to the activity's permalink, with its comment count in a speech bubble.
|
708 |
if ( $comment_count ) {
|
709 |
-
|
710 |
-
printf( '<a href="%1$s" title="%2$s" class="post-com-count post-com-count-approved"><span class="comment-count comment-count-approved">%3$s</span></a>', esc_url( $root_activity_url ), esc_attr( $title_attr ), number_format_i18n( $comment_count ) );
|
711 |
}
|
712 |
|
713 |
// For non-root activities, display a link to the replied-to activity's author's profile.
|
592 |
if ( $this->can_comment( $item ) ) {
|
593 |
$actions['reply'] = sprintf( '<a href="#" class="reply hide-if-no-js">%s</a>', __( 'Reply', 'buddypress' ) );
|
594 |
} else {
|
595 |
+
$actions['reply'] = sprintf( '<span class="form-input-tip">%s</span>', __( 'Replies disabled', 'buddypress' ) );
|
596 |
}
|
597 |
|
598 |
// Edit.
|
706 |
|
707 |
// If the activity has comments, display a link to the activity's permalink, with its comment count in a speech bubble.
|
708 |
if ( $comment_count ) {
|
709 |
+
printf( '<a href="%1$s" class="post-com-count post-com-count-approved"><span class="comment-count comment-count-approved">%2$s</span></a>', esc_url( $root_activity_url ), number_format_i18n( $comment_count ) );
|
|
|
710 |
}
|
711 |
|
712 |
// For non-root activities, display a link to the replied-to activity's author's profile.
|
bp-activity/css/mentions-rtl.css
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
background: rgba(204, 204, 204, 0.8);
|
3 |
border-radius: 2px;
|
4 |
border: 1px solid rgb(204, 204, 204);
|
5 |
-
box-shadow: 0 0 5px rgba(204, 204, 204, 0.25), 0 0 1px #
|
6 |
-
color: #
|
7 |
display: none;
|
8 |
font-family: sans-serif;
|
9 |
margin-top: 18px;
|
@@ -14,14 +14,16 @@
|
|
14 |
.atwho-view {
|
15 |
left: 0;
|
16 |
}
|
|
|
17 |
.atwho-view ul {
|
18 |
-
background: #
|
19 |
list-style: none;
|
20 |
margin: auto;
|
21 |
padding: 0;
|
22 |
}
|
|
|
23 |
.atwho-view ul li {
|
24 |
-
border-bottom: 1px solid #
|
25 |
box-sizing: content-box;
|
26 |
cursor: pointer;
|
27 |
display: block;
|
@@ -32,59 +34,71 @@
|
|
32 |
overflow: hidden;
|
33 |
padding: 5px 10px;
|
34 |
}
|
|
|
35 |
.atwho-view img {
|
36 |
border-radius: 2px;
|
37 |
float: left;
|
38 |
height: 20px;
|
39 |
-
margin-top:0;
|
40 |
width: 20px;
|
41 |
}
|
|
|
42 |
.atwho-view strong {
|
43 |
-
background: #
|
44 |
-
font-weight:
|
45 |
}
|
|
|
46 |
.atwho-view .username strong {
|
47 |
-
color: #
|
48 |
}
|
|
|
49 |
.atwho-view small {
|
50 |
-
color: #
|
51 |
float: left;
|
52 |
font-size: smaller;
|
53 |
-
font-weight:
|
54 |
margin: 0 40px 0 10px;
|
55 |
}
|
|
|
56 |
.atwho-view .cur {
|
57 |
background: rgba(239, 239, 239, 0.5);
|
58 |
}
|
59 |
|
60 |
@media (max-width: 900px) {
|
|
|
61 |
.atwho-view img {
|
62 |
float: right;
|
63 |
margin: 0 0 0 10px;
|
64 |
}
|
65 |
}
|
|
|
66 |
@media (max-width: 400px) {
|
|
|
67 |
.atwho-view ul li {
|
68 |
font-size: 16px;
|
69 |
line-height: 23px;
|
70 |
padding: 13px;
|
71 |
}
|
|
|
72 |
.atwho-view ul li img {
|
73 |
height: 30px;
|
74 |
margin-top: -5px;
|
75 |
width: 30px;
|
76 |
}
|
|
|
77 |
.atwho-view {
|
78 |
border-radius: 0;
|
79 |
height: 100%;
|
80 |
right: 0 !important;
|
81 |
width: 100%;
|
82 |
}
|
|
|
83 |
.atwho-view ul li .username {
|
84 |
display: inline-block;
|
85 |
margin: -10px 0 0 0;
|
86 |
padding: 10px 0;
|
87 |
}
|
|
|
88 |
.atwho-view ul li small {
|
89 |
display: inline-block;
|
90 |
margin-right: 20px;
|
2 |
background: rgba(204, 204, 204, 0.8);
|
3 |
border-radius: 2px;
|
4 |
border: 1px solid rgb(204, 204, 204);
|
5 |
+
box-shadow: 0 0 5px rgba(204, 204, 204, 0.25), 0 0 1px #fff;
|
6 |
+
color: #d84800;
|
7 |
display: none;
|
8 |
font-family: sans-serif;
|
9 |
margin-top: 18px;
|
14 |
.atwho-view {
|
15 |
left: 0;
|
16 |
}
|
17 |
+
|
18 |
.atwho-view ul {
|
19 |
+
background: #fff;
|
20 |
list-style: none;
|
21 |
margin: auto;
|
22 |
padding: 0;
|
23 |
}
|
24 |
+
|
25 |
.atwho-view ul li {
|
26 |
+
border-bottom: 1px solid #efefef;
|
27 |
box-sizing: content-box;
|
28 |
cursor: pointer;
|
29 |
display: block;
|
34 |
overflow: hidden;
|
35 |
padding: 5px 10px;
|
36 |
}
|
37 |
+
|
38 |
.atwho-view img {
|
39 |
border-radius: 2px;
|
40 |
float: left;
|
41 |
height: 20px;
|
42 |
+
margin-top: 0;
|
43 |
width: 20px;
|
44 |
}
|
45 |
+
|
46 |
.atwho-view strong {
|
47 |
+
background: #efefef;
|
48 |
+
font-weight: 700;
|
49 |
}
|
50 |
+
|
51 |
.atwho-view .username strong {
|
52 |
+
color: #d54e21;
|
53 |
}
|
54 |
+
|
55 |
.atwho-view small {
|
56 |
+
color: #aaa;
|
57 |
float: left;
|
58 |
font-size: smaller;
|
59 |
+
font-weight: 400;
|
60 |
margin: 0 40px 0 10px;
|
61 |
}
|
62 |
+
|
63 |
.atwho-view .cur {
|
64 |
background: rgba(239, 239, 239, 0.5);
|
65 |
}
|
66 |
|
67 |
@media (max-width: 900px) {
|
68 |
+
|
69 |
.atwho-view img {
|
70 |
float: right;
|
71 |
margin: 0 0 0 10px;
|
72 |
}
|
73 |
}
|
74 |
+
|
75 |
@media (max-width: 400px) {
|
76 |
+
|
77 |
.atwho-view ul li {
|
78 |
font-size: 16px;
|
79 |
line-height: 23px;
|
80 |
padding: 13px;
|
81 |
}
|
82 |
+
|
83 |
.atwho-view ul li img {
|
84 |
height: 30px;
|
85 |
margin-top: -5px;
|
86 |
width: 30px;
|
87 |
}
|
88 |
+
|
89 |
.atwho-view {
|
90 |
border-radius: 0;
|
91 |
height: 100%;
|
92 |
right: 0 !important;
|
93 |
width: 100%;
|
94 |
}
|
95 |
+
|
96 |
.atwho-view ul li .username {
|
97 |
display: inline-block;
|
98 |
margin: -10px 0 0 0;
|
99 |
padding: 10px 0;
|
100 |
}
|
101 |
+
|
102 |
.atwho-view ul li small {
|
103 |
display: inline-block;
|
104 |
margin-right: 20px;
|
bp-activity/css/mentions-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.atwho-view{background:rgba(204,204,204,.8);border-radius:2px;border:1px solid #ccc;box-shadow:0 0 5px rgba(204,204,204,.25),0 0 1px #
|
1 |
+
.atwho-view{background:rgba(204,204,204,.8);border-radius:2px;border:1px solid #ccc;box-shadow:0 0 5px rgba(204,204,204,.25),0 0 1px #fff;color:#d84800;display:none;font-family:sans-serif;margin-top:18px;position:absolute;top:0;z-index:1000}.atwho-view{left:0}.atwho-view ul{background:#fff;list-style:none;margin:auto;padding:0}.atwho-view ul li{border-bottom:1px solid #efefef;box-sizing:content-box;cursor:pointer;display:block;font-size:14px;height:20px;line-height:20px;margin:0;overflow:hidden;padding:5px 10px}.atwho-view img{border-radius:2px;float:left;height:20px;margin-top:0;width:20px}.atwho-view strong{background:#efefef;font-weight:700}.atwho-view .username strong{color:#d54e21}.atwho-view small{color:#aaa;float:left;font-size:smaller;font-weight:400;margin:0 40px 0 10px}.atwho-view .cur{background:rgba(239,239,239,.5)}@media (max-width:900px){.atwho-view img{float:right;margin:0 0 0 10px}}@media (max-width:400px){.atwho-view ul li{font-size:16px;line-height:23px;padding:13px}.atwho-view ul li img{height:30px;margin-top:-5px;width:30px}.atwho-view{border-radius:0;height:100%;right:0!important;width:100%}.atwho-view ul li .username{display:inline-block;margin:-10px 0 0 0;padding:10px 0}.atwho-view ul li small{display:inline-block;margin-right:20px}}
|
bp-activity/css/mentions.css
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
background: rgba(204, 204, 204, 0.8);
|
3 |
border-radius: 2px;
|
4 |
border: 1px solid rgb(204, 204, 204);
|
5 |
-
box-shadow: 0 0 5px rgba(204, 204, 204, 0.25), 0 0 1px #
|
6 |
-
color: #
|
7 |
display: none;
|
8 |
font-family: sans-serif;
|
9 |
margin-top: 18px;
|
@@ -11,18 +11,21 @@
|
|
11 |
top: 0;
|
12 |
z-index: 1000; /* >999 for wp-admin */
|
13 |
}
|
|
|
14 |
/* rtl:ignore */
|
15 |
.atwho-view {
|
16 |
left: 0;
|
17 |
}
|
|
|
18 |
.atwho-view ul {
|
19 |
-
background: #
|
20 |
list-style: none;
|
21 |
margin: auto;
|
22 |
padding: 0;
|
23 |
}
|
|
|
24 |
.atwho-view ul li {
|
25 |
-
border-bottom: 1px solid #
|
26 |
box-sizing: content-box;
|
27 |
cursor: pointer;
|
28 |
display: block;
|
@@ -33,59 +36,71 @@
|
|
33 |
overflow: hidden;
|
34 |
padding: 5px 10px;
|
35 |
}
|
|
|
36 |
.atwho-view img {
|
37 |
border-radius: 2px;
|
38 |
float: right;
|
39 |
height: 20px;
|
40 |
-
margin-top:0;
|
41 |
width: 20px;
|
42 |
}
|
|
|
43 |
.atwho-view strong {
|
44 |
-
background: #
|
45 |
-
font-weight:
|
46 |
}
|
|
|
47 |
.atwho-view .username strong {
|
48 |
-
color: #
|
49 |
}
|
|
|
50 |
.atwho-view small {
|
51 |
-
color: #
|
52 |
float: right;
|
53 |
font-size: smaller;
|
54 |
-
font-weight:
|
55 |
margin: 0 10px 0 40px;
|
56 |
}
|
|
|
57 |
.atwho-view .cur {
|
58 |
background: rgba(239, 239, 239, 0.5);
|
59 |
}
|
60 |
|
61 |
@media (max-width: 900px) {
|
|
|
62 |
.atwho-view img {
|
63 |
float: left;
|
64 |
margin: 0 10px 0 0;
|
65 |
}
|
66 |
}
|
|
|
67 |
@media (max-width: 400px) {
|
|
|
68 |
.atwho-view ul li {
|
69 |
font-size: 16px;
|
70 |
line-height: 23px;
|
71 |
padding: 13px;
|
72 |
}
|
|
|
73 |
.atwho-view ul li img {
|
74 |
height: 30px;
|
75 |
margin-top: -5px;
|
76 |
width: 30px;
|
77 |
}
|
|
|
78 |
.atwho-view {
|
79 |
border-radius: 0;
|
80 |
height: 100%;
|
81 |
left: 0 !important;
|
82 |
width: 100%;
|
83 |
}
|
|
|
84 |
.atwho-view ul li .username {
|
85 |
display: inline-block;
|
86 |
margin: -10px 0 0 0;
|
87 |
padding: 10px 0;
|
88 |
}
|
|
|
89 |
.atwho-view ul li small {
|
90 |
display: inline-block;
|
91 |
margin-left: 20px;
|
2 |
background: rgba(204, 204, 204, 0.8);
|
3 |
border-radius: 2px;
|
4 |
border: 1px solid rgb(204, 204, 204);
|
5 |
+
box-shadow: 0 0 5px rgba(204, 204, 204, 0.25), 0 0 1px #fff;
|
6 |
+
color: #d84800;
|
7 |
display: none;
|
8 |
font-family: sans-serif;
|
9 |
margin-top: 18px;
|
11 |
top: 0;
|
12 |
z-index: 1000; /* >999 for wp-admin */
|
13 |
}
|
14 |
+
|
15 |
/* rtl:ignore */
|
16 |
.atwho-view {
|
17 |
left: 0;
|
18 |
}
|
19 |
+
|
20 |
.atwho-view ul {
|
21 |
+
background: #fff;
|
22 |
list-style: none;
|
23 |
margin: auto;
|
24 |
padding: 0;
|
25 |
}
|
26 |
+
|
27 |
.atwho-view ul li {
|
28 |
+
border-bottom: 1px solid #efefef;
|
29 |
box-sizing: content-box;
|
30 |
cursor: pointer;
|
31 |
display: block;
|
36 |
overflow: hidden;
|
37 |
padding: 5px 10px;
|
38 |
}
|
39 |
+
|
40 |
.atwho-view img {
|
41 |
border-radius: 2px;
|
42 |
float: right;
|
43 |
height: 20px;
|
44 |
+
margin-top: 0;
|
45 |
width: 20px;
|
46 |
}
|
47 |
+
|
48 |
.atwho-view strong {
|
49 |
+
background: #efefef;
|
50 |
+
font-weight: 700;
|
51 |
}
|
52 |
+
|
53 |
.atwho-view .username strong {
|
54 |
+
color: #d54e21;
|
55 |
}
|
56 |
+
|
57 |
.atwho-view small {
|
58 |
+
color: #aaa;
|
59 |
float: right;
|
60 |
font-size: smaller;
|
61 |
+
font-weight: 400;
|
62 |
margin: 0 10px 0 40px;
|
63 |
}
|
64 |
+
|
65 |
.atwho-view .cur {
|
66 |
background: rgba(239, 239, 239, 0.5);
|
67 |
}
|
68 |
|
69 |
@media (max-width: 900px) {
|
70 |
+
|
71 |
.atwho-view img {
|
72 |
float: left;
|
73 |
margin: 0 10px 0 0;
|
74 |
}
|
75 |
}
|
76 |
+
|
77 |
@media (max-width: 400px) {
|
78 |
+
|
79 |
.atwho-view ul li {
|
80 |
font-size: 16px;
|
81 |
line-height: 23px;
|
82 |
padding: 13px;
|
83 |
}
|
84 |
+
|
85 |
.atwho-view ul li img {
|
86 |
height: 30px;
|
87 |
margin-top: -5px;
|
88 |
width: 30px;
|
89 |
}
|
90 |
+
|
91 |
.atwho-view {
|
92 |
border-radius: 0;
|
93 |
height: 100%;
|
94 |
left: 0 !important;
|
95 |
width: 100%;
|
96 |
}
|
97 |
+
|
98 |
.atwho-view ul li .username {
|
99 |
display: inline-block;
|
100 |
margin: -10px 0 0 0;
|
101 |
padding: 10px 0;
|
102 |
}
|
103 |
+
|
104 |
.atwho-view ul li small {
|
105 |
display: inline-block;
|
106 |
margin-left: 20px;
|
bp-activity/css/mentions.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.atwho-view{background:rgba(204,204,204,.8);border-radius:2px;border:1px solid #ccc;box-shadow:0 0 5px rgba(204,204,204,.25),0 0 1px #
|
1 |
+
.atwho-view{background:rgba(204,204,204,.8);border-radius:2px;border:1px solid #ccc;box-shadow:0 0 5px rgba(204,204,204,.25),0 0 1px #fff;color:#d84800;display:none;font-family:sans-serif;margin-top:18px;position:absolute;top:0;z-index:1000}.atwho-view{left:0}.atwho-view ul{background:#fff;list-style:none;margin:auto;padding:0}.atwho-view ul li{border-bottom:1px solid #efefef;box-sizing:content-box;cursor:pointer;display:block;font-size:14px;height:20px;line-height:20px;margin:0;overflow:hidden;padding:5px 10px}.atwho-view img{border-radius:2px;float:right;height:20px;margin-top:0;width:20px}.atwho-view strong{background:#efefef;font-weight:700}.atwho-view .username strong{color:#d54e21}.atwho-view small{color:#aaa;float:right;font-size:smaller;font-weight:400;margin:0 10px 0 40px}.atwho-view .cur{background:rgba(239,239,239,.5)}@media (max-width:900px){.atwho-view img{float:left;margin:0 10px 0 0}}@media (max-width:400px){.atwho-view ul li{font-size:16px;line-height:23px;padding:13px}.atwho-view ul li img{height:30px;margin-top:-5px;width:30px}.atwho-view{border-radius:0;height:100%;left:0!important;width:100%}.atwho-view ul li .username{display:inline-block;margin:-10px 0 0 0;padding:10px 0}.atwho-view ul li small{display:inline-block;margin-left:20px}}
|
bp-activity/js/mentions.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.bp=window.bp||{},function(
|
1 |
+
window.bp=window.bp||{},function(t,e,i){var n,s=[];t.mentions=t.mentions||{},t.mentions.users=window.bp.mentions.users||[],"object"==typeof window.BP_Suggestions&&(t.mentions.users=window.BP_Suggestions.friends||t.mentions.users),e.fn.bp_mentions=function(t){e.isArray(t)&&(t={data:t});var i={delay:200,hide_without_suffix:!0,insert_tpl:"</>${atwho-data-value}</>",limit:10,start_with_space:!1,suffix:"",callbacks:{filter:function(t,e,i){var n,s,r,o=[],a=new RegExp("^"+t+"| "+t,"ig");for(s=0,r=e.length;s<r;s++)(n=e[s])[i].toLowerCase().match(a)&&o.push(n);return o},highlighter:function(t,e){if(!e)return t;var i=new RegExp(">(\\s*|[\\w\\s]*)("+this.at.replace("+","\\+")+"?"+e.replace("+","\\+")+")([\\w ]*)\\s*<","ig");return t.replace(i,function(t,e,i,n){return">"+e+"<strong>"+i+"</strong>"+n+"<"})},before_reposition:function(t){var i,n,s,r,o=e("#atwho-ground-"+this.id+" .atwho-view"),a=e("body"),u=this.$inputor.data("atwho");"undefined"!==u&&"undefined"!==u.iframe&&null!==u.iframe?(i=this.$inputor.caret("offset",{iframe:u.iframe}),"undefined"!==(s=e(u.iframe).offset())&&(i.left+=s.left,i.top+=s.top)):i=this.$inputor.caret("offset"),i.left>a.width()/2?(o.addClass("right"),r=i.left-t.left-this.view.$el.width()):(o.removeClass("right"),r=i.left-t.left+1),a.width()<=400&&e(document).scrollTop(i.top-6),(!(n=parseInt(this.$inputor.css("line-height").substr(0,this.$inputor.css("line-height").length-2),10))||n<5)&&(n=19),t.top=i.top+n,t.left+=r},inserting_wrapper:function(t,e,i){return""+e+i}}},r={callbacks:{remote_filter:function(t,i){var r=e(this),o={};"object"!=typeof(n=s[t])?(r.xhr&&r.xhr.abort(),o={action:"bp_get_suggestions",term:t,type:"members"},e.isNumeric(this.$inputor.data("suggestions-group-id"))&&(o["group-id"]=parseInt(this.$inputor.data("suggestions-group-id"),10)),r.xhr=e.getJSON(ajaxurl,o).done(function(n){if(n.success){var r=e.map(n.data,function(t){return t.search=t.search||t.ID+" "+t.name,t});s[t]=r,i(r)}})):i(n)}},data:e.map(t.data,function(t){return t.search=t.search||t.ID+" "+t.name,t}),at:"@",search_key:"search",tpl:'<li data-value="@${ID}"><img src="${image}" /><span class="username">@${ID}</span><small>${name}</small></li>'},o=e.extend(!0,{},i,r,t);return e.fn.atwho.call(this,o)},e(document).ready(function(){e(".bp-suggestions, #comments form textarea, .wp-editor-area").bp_mentions(t.mentions.users)}),t.mentions.tinyMCEinit=function(){void 0!==window.tinyMCE&&null!==window.tinyMCE.activeEditor&&void 0!==window.tinyMCE.activeEditor&&e(window.tinyMCE.activeEditor.contentDocument.activeElement).atwho("setIframe",e(".wp-editor-wrap iframe")[0]).bp_mentions(t.mentions.users)}}(bp,jQuery);
|
bp-blogs/bp-blogs-activity.php
CHANGED
@@ -48,7 +48,7 @@ add_action( 'bp_register_activity_actions', 'bp_blogs_register_activity_actions'
|
|
48 |
*
|
49 |
* @param object|null $params Tracking arguments.
|
50 |
* @param string|int $post_type Post type to track.
|
51 |
-
* @return object
|
52 |
*/
|
53 |
function bp_blogs_register_post_tracking_args( $params = null, $post_type = 0 ) {
|
54 |
|
@@ -435,7 +435,7 @@ add_filter( 'bp_activity_prefetch_object_data', 'bp_blogs_prefetch_activity_obje
|
|
435 |
* bp_activity_add().
|
436 |
* @type string $component Default: 'blogs'.
|
437 |
* }
|
438 |
-
* @return
|
439 |
*/
|
440 |
function bp_blogs_record_activity( $args = '' ) {
|
441 |
$defaults = array(
|
48 |
*
|
49 |
* @param object|null $params Tracking arguments.
|
50 |
* @param string|int $post_type Post type to track.
|
51 |
+
* @return object|null
|
52 |
*/
|
53 |
function bp_blogs_register_post_tracking_args( $params = null, $post_type = 0 ) {
|
54 |
|
435 |
* bp_activity_add().
|
436 |
* @type string $component Default: 'blogs'.
|
437 |
* }
|
438 |
+
* @return WP_Error|bool|int On success, returns the activity ID. False on failure.
|
439 |
*/
|
440 |
function bp_blogs_record_activity( $args = '' ) {
|
441 |
$defaults = array(
|
bp-blogs/bp-blogs-functions.php
CHANGED
@@ -341,7 +341,7 @@ function bp_blogs_is_blog_trackable( $blog_id, $user_id = 0 ) {
|
|
341 |
* @param int $user_id ID of the user for whom the blog is being recorded.
|
342 |
* @param bool $no_activity Optional. Whether to skip recording an activity
|
343 |
* item about this blog creation. Default: false.
|
344 |
-
* @return
|
345 |
*/
|
346 |
function bp_blogs_record_blog( $blog_id, $user_id, $no_activity = false ) {
|
347 |
|
@@ -694,7 +694,7 @@ add_action( 'bp_activity_post_type_updated', 'bp_blogs_update_post_activity_meta
|
|
694 |
* @param WP_Comment|null $comment The comment object.
|
695 |
* @param array $activity_args Array of activity arguments.
|
696 |
* @param object|null $activity_post_object The post type tracking args object.
|
697 |
-
* @return
|
698 |
*/
|
699 |
function bp_blogs_comment_sync_activity_comment( &$activity_id, $comment = null, $activity_args = array(), $activity_post_object = null ) {
|
700 |
if ( empty( $activity_args ) || empty( $comment->post->ID ) || empty( $activity_post_object->comment_action_id ) ) {
|
@@ -834,7 +834,7 @@ add_action( 'bp_activity_post_type_comment', 'bp_blogs_comment_sync_activity_com
|
|
834 |
* @param int $user_id The ID of the user.
|
835 |
* @param string|bool $role User's WordPress role for this blog ID.
|
836 |
* @param int $blog_id Blog ID user is being added to.
|
837 |
-
* @return
|
838 |
*/
|
839 |
function bp_blogs_add_user_to_blog( $user_id, $role = false, $blog_id = 0 ) {
|
840 |
global $wpdb;
|
341 |
* @param int $user_id ID of the user for whom the blog is being recorded.
|
342 |
* @param bool $no_activity Optional. Whether to skip recording an activity
|
343 |
* item about this blog creation. Default: false.
|
344 |
+
* @return false|null Returns false on failure.
|
345 |
*/
|
346 |
function bp_blogs_record_blog( $blog_id, $user_id, $no_activity = false ) {
|
347 |
|
694 |
* @param WP_Comment|null $comment The comment object.
|
695 |
* @param array $activity_args Array of activity arguments.
|
696 |
* @param object|null $activity_post_object The post type tracking args object.
|
697 |
+
* @return WP_Error|bool|int Returns false if no activity, the activity id otherwise.
|
698 |
*/
|
699 |
function bp_blogs_comment_sync_activity_comment( &$activity_id, $comment = null, $activity_args = array(), $activity_post_object = null ) {
|
700 |
if ( empty( $activity_args ) || empty( $comment->post->ID ) || empty( $activity_post_object->comment_action_id ) ) {
|
834 |
* @param int $user_id The ID of the user.
|
835 |
* @param string|bool $role User's WordPress role for this blog ID.
|
836 |
* @param int $blog_id Blog ID user is being added to.
|
837 |
+
* @return false|null False on failure.
|
838 |
*/
|
839 |
function bp_blogs_add_user_to_blog( $user_id, $role = false, $blog_id = 0 ) {
|
840 |
global $wpdb;
|
bp-blogs/bp-blogs-template.php
CHANGED
@@ -228,6 +228,8 @@ function bp_blogs_pagination_count() {
|
|
228 |
* @since 2.7.0
|
229 |
*
|
230 |
* @global object $blogs_template {@link BP_Blogs_Template}
|
|
|
|
|
231 |
*/
|
232 |
function bp_get_blogs_pagination_count() {
|
233 |
global $blogs_template;
|
@@ -1336,7 +1338,7 @@ function bp_blog_create_button() {
|
|
1336 |
*
|
1337 |
* @since 2.0.0
|
1338 |
*
|
1339 |
-
* @return string
|
1340 |
*/
|
1341 |
function bp_get_blog_create_button() {
|
1342 |
if ( ! is_user_logged_in() ) {
|
@@ -1410,7 +1412,7 @@ function bp_blog_create_nav_item() {
|
|
1410 |
*
|
1411 |
* @since 2.2.0
|
1412 |
*
|
1413 |
-
* @return string HTML Output
|
1414 |
*/
|
1415 |
function bp_blog_backcompat_create_nav_item() {
|
1416 |
// Bail if Blogs nav item is already used by bp-legacy.
|
228 |
* @since 2.7.0
|
229 |
*
|
230 |
* @global object $blogs_template {@link BP_Blogs_Template}
|
231 |
+
*
|
232 |
+
* @return string
|
233 |
*/
|
234 |
function bp_get_blogs_pagination_count() {
|
235 |
global $blogs_template;
|
1338 |
*
|
1339 |
* @since 2.0.0
|
1340 |
*
|
1341 |
+
* @return false|string
|
1342 |
*/
|
1343 |
function bp_get_blog_create_button() {
|
1344 |
if ( ! is_user_logged_in() ) {
|
1412 |
*
|
1413 |
* @since 2.2.0
|
1414 |
*
|
1415 |
+
* @return string|null HTML Output
|
1416 |
*/
|
1417 |
function bp_blog_backcompat_create_nav_item() {
|
1418 |
// Bail if Blogs nav item is already used by bp-legacy.
|
bp-core/admin/bp-core-admin-functions.php
CHANGED
@@ -314,7 +314,7 @@ function bp_core_activation_notice() {
|
|
314 |
|
315 |
// BP components cannot share a single WP page. Check for duplicate assignments, and post a message if found.
|
316 |
$dupe_names = array();
|
317 |
-
$page_ids =
|
318 |
$dupes = array_diff_assoc( $page_ids, array_unique( $page_ids ) );
|
319 |
|
320 |
if ( !empty( $dupes ) ) {
|
314 |
|
315 |
// BP components cannot share a single WP page. Check for duplicate assignments, and post a message if found.
|
316 |
$dupe_names = array();
|
317 |
+
$page_ids = bp_core_get_directory_page_ids();
|
318 |
$dupes = array_diff_assoc( $page_ids, array_unique( $page_ids ) );
|
319 |
|
320 |
if ( !empty( $dupes ) ) {
|
bp-core/admin/bp-core-admin-settings.php
CHANGED
@@ -47,6 +47,38 @@ function bp_admin_setting_callback_account_deletion() {
|
|
47 |
<?php
|
48 |
}
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
/** Activity *******************************************************************/
|
51 |
|
52 |
/**
|
@@ -239,7 +271,7 @@ function bp_admin_setting_callback_bbpress_configuration() {
|
|
239 |
|
240 |
<?php if ( false === $file_exists ) : ?>
|
241 |
|
242 |
-
<a class="button" href="<?php bp_admin_url( 'admin.php?page=bb-forums-setup&repair=1' ); ?>"
|
243 |
<span class="attention"><?php _e( 'File does not exist', 'buddypress' ); ?></span>
|
244 |
|
245 |
<?php endif; ?>
|
47 |
<?php
|
48 |
}
|
49 |
|
50 |
+
/**
|
51 |
+
* Form element to change the active template pack.
|
52 |
+
*/
|
53 |
+
function bp_admin_setting_callback_theme_package_id() {
|
54 |
+
$options = '';
|
55 |
+
|
56 |
+
/*
|
57 |
+
* Note: This should never be empty. /bp-templates/ is the
|
58 |
+
* canonical backup if no other packages exist. If there's an error here,
|
59 |
+
* something else is wrong.
|
60 |
+
*
|
61 |
+
* See BuddyPress::register_theme_packages()
|
62 |
+
*/
|
63 |
+
foreach ( (array) buddypress()->theme_compat->packages as $id => $theme ) {
|
64 |
+
$options .= sprintf(
|
65 |
+
'<option value="%1$s" %2$s>%3$s</option>',
|
66 |
+
esc_attr( $id ),
|
67 |
+
selected( $theme->id, bp_get_theme_package_id(), false ),
|
68 |
+
esc_html( $theme->name )
|
69 |
+
);
|
70 |
+
}
|
71 |
+
|
72 |
+
if ( $options ) : ?>
|
73 |
+
<select name="_bp_theme_package_id" id="_bp_theme_package_id"><?php echo $options; ?></select>
|
74 |
+
<p class="description"><label for="_bp_theme_package_id"><?php esc_html_e( 'The selected Template Pack will serve all BuddyPress templates.', 'buddypress' ); ?></label></p>
|
75 |
+
|
76 |
+
<?php else : ?>
|
77 |
+
<p><?php esc_html_e( 'No template packages available.', 'buddypress' ); ?></p>
|
78 |
+
|
79 |
+
<?php endif;
|
80 |
+
}
|
81 |
+
|
82 |
/** Activity *******************************************************************/
|
83 |
|
84 |
/**
|
271 |
|
272 |
<?php if ( false === $file_exists ) : ?>
|
273 |
|
274 |
+
<a class="button" href="<?php bp_admin_url( 'admin.php?page=bb-forums-setup&repair=1' ); ?>"><?php _e( 'Repair', 'buddypress' ) ?></a>
|
275 |
<span class="attention"><?php _e( 'File does not exist', 'buddypress' ); ?></span>
|
276 |
|
277 |
<?php endif; ?>
|
bp-core/admin/bp-core-admin-slugs.php
CHANGED
@@ -109,7 +109,6 @@ function bp_core_admin_get_static_pages() {
|
|
109 |
* @todo Use settings API
|
110 |
*/
|
111 |
function bp_core_admin_slugs_options() {
|
112 |
-
$bp = buddypress();
|
113 |
|
114 |
// Get the existing WP pages
|
115 |
$existing_pages = bp_core_get_directory_page_ids();
|
109 |
* @todo Use settings API
|
110 |
*/
|
111 |
function bp_core_admin_slugs_options() {
|
|
|
112 |
|
113 |
// Get the existing WP pages
|
114 |
$existing_pages = bp_core_get_directory_page_ids();
|
bp-core/admin/bp-core-admin-tools.php
CHANGED
@@ -328,7 +328,7 @@ function bp_admin_repair_last_activity() {
|
|
328 |
*
|
329 |
* @param string $message Feedback message.
|
330 |
* @param string|bool $class Unused.
|
331 |
-
* @return
|
332 |
*/
|
333 |
function bp_admin_tools_feedback( $message, $class = false ) {
|
334 |
if ( is_string( $message ) ) {
|
328 |
*
|
329 |
* @param string $message Feedback message.
|
330 |
* @param string|bool $class Unused.
|
331 |
+
* @return false|Closure
|
332 |
*/
|
333 |
function bp_admin_tools_feedback( $message, $class = false ) {
|
334 |
if ( is_string( $message ) ) {
|
bp-core/admin/css/common-rtl.css
CHANGED
@@ -34,7 +34,7 @@ TABLE OF CONTENTS:
|
|
34 |
.bp-badge {
|
35 |
color: #d84800;
|
36 |
display: inline-block;
|
37 |
-
font:
|
38 |
}
|
39 |
|
40 |
.bp-badge:before {
|
@@ -54,6 +54,7 @@ TABLE OF CONTENTS:
|
|
54 |
}
|
55 |
|
56 |
@media only screen and (max-width: 500px) {
|
|
|
57 |
.about-wrap .bp-badge {
|
58 |
position: relative;
|
59 |
margin: 10px auto;
|
@@ -88,7 +89,7 @@ TABLE OF CONTENTS:
|
|
88 |
float: right;
|
89 |
height: 100px;
|
90 |
line-height: 100px;
|
91 |
-
margin: 0 0 15px 15px
|
92 |
text-align: center;
|
93 |
width: 100px;
|
94 |
}
|
@@ -126,7 +127,7 @@ TABLE OF CONTENTS:
|
|
126 |
float: right;
|
127 |
height: 80px;
|
128 |
line-height: 80px;
|
129 |
-
margin: 0 0 15px 15px
|
130 |
text-align: center;
|
131 |
width: 80px;
|
132 |
}
|
@@ -163,8 +164,8 @@ TABLE OF CONTENTS:
|
|
163 |
line-height: 1.5;
|
164 |
}
|
165 |
|
166 |
-
.buddypress .bp-feature
|
167 |
-
content:
|
168 |
}
|
169 |
|
170 |
.buddypress .bp-feature-imaged .feature-title {
|
@@ -207,8 +208,8 @@ TABLE OF CONTENTS:
|
|
207 |
padding-bottom: 0;
|
208 |
}
|
209 |
|
210 |
-
.buddypress .bp-changelog-section
|
211 |
-
content:
|
212 |
}
|
213 |
|
214 |
.buddypress .bp-changelog-section .changelog-title {
|
@@ -262,6 +263,7 @@ TABLE OF CONTENTS:
|
|
262 |
}
|
263 |
|
264 |
@media screen and ( max-width: 782px ) {
|
|
|
265 |
.bp-headline-feature,
|
266 |
.bp-features-section,
|
267 |
.bp-changelog-section,
|
@@ -269,31 +271,38 @@ TABLE OF CONTENTS:
|
|
269 |
margin-right: 20px;
|
270 |
margin-left: 20px;
|
271 |
}
|
|
|
272 |
.buddypress .bp-headline-feature {
|
273 |
padding: 0;
|
274 |
}
|
|
|
275 |
.buddypress .bp-headline {
|
276 |
margin: 0;
|
277 |
width: 97%;
|
278 |
}
|
|
|
279 |
.buddypress .bp-features-section {
|
280 |
clear: both;
|
281 |
margin-bottom: 0;
|
282 |
margin-top: 2em;
|
283 |
padding-bottom: 2em;
|
284 |
}
|
|
|
285 |
.buddypress .bp-features-section .bp-feature-with-images {
|
286 |
margin-bottom: 2em;
|
287 |
}
|
|
|
288 |
.buddypress .bp-features-section .headline-title {
|
289 |
margin-bottom: 1em;
|
290 |
}
|
|
|
291 |
.buddypress .bp-changelog-section .changelog-title {
|
292 |
font-size: 1.25em;
|
293 |
line-height: 1.5;
|
294 |
margin-bottom: 0.5em;
|
295 |
margin-top: 0.5em;
|
296 |
}
|
|
|
297 |
.buddypress .bp-features-section .feature-title,
|
298 |
.buddypress .bp-changelog-section .title {
|
299 |
font-size: 1.25em;
|
@@ -301,6 +310,7 @@ TABLE OF CONTENTS:
|
|
301 |
margin-top: 0.6em;
|
302 |
text-align: right;
|
303 |
}
|
|
|
304 |
.buddypress .bp-features-section .bp-feature,
|
305 |
.buddypress .bp-features-section .bp-feature-imaged {
|
306 |
clear: both;
|
@@ -311,30 +321,38 @@ TABLE OF CONTENTS:
|
|
311 |
padding-left: 1em;
|
312 |
width: 100%;
|
313 |
}
|
|
|
314 |
.buddypress .bp-features-section .bp-feature-imaged p {
|
315 |
font-size: 1em;
|
316 |
}
|
|
|
317 |
.buddypress .bp-features-section .bp-feature span {
|
318 |
margin-top: 0.33em;
|
319 |
}
|
|
|
320 |
.buddypress .bp-feature.opposite .feature-title,
|
321 |
.buddypress .bp-feature.opposite p {
|
322 |
float: none;
|
323 |
}
|
|
|
324 |
.buddypress .bp-changelog-section {
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
}
|
|
|
329 |
.buddypress .bp-changelog-section .changelog-title {
|
330 |
margin-bottom: 1.5em;
|
331 |
}
|
|
|
332 |
.buddypress .bp-changelog .title {
|
333 |
font-size: 1em;
|
334 |
}
|
|
|
335 |
.buddypress .bp-changelog p {
|
336 |
margin-bottom: 1em;
|
337 |
}
|
|
|
338 |
.buddypress .bp-changelog-section .two-col > div,
|
339 |
.buddypress .bp-changelog-section .three-col .col {
|
340 |
margin-top: 0;
|
@@ -342,10 +360,13 @@ TABLE OF CONTENTS:
|
|
342 |
width: 100%;
|
343 |
}
|
344 |
}
|
|
|
345 |
@media screen and ( max-width: 360px ) {
|
|
|
346 |
.buddypress .bp-headline {
|
347 |
text-align: center;
|
348 |
}
|
|
|
349 |
.buddypress .bp-headline span.dashicons {
|
350 |
clear: none;
|
351 |
font-size: 80px;
|
@@ -355,32 +376,39 @@ TABLE OF CONTENTS:
|
|
355 |
margin: 0 auto;
|
356 |
width: 80px;
|
357 |
}
|
|
|
358 |
.buddypress .bp-headline-feature .headline-title,
|
359 |
.buddypress .bp-features-section .headline-title {
|
360 |
font-size: 1.5em;
|
361 |
line-height: 1.5;
|
362 |
text-align: right;
|
363 |
}
|
|
|
364 |
.buddypress .bp-headline-feature .headline-title {
|
365 |
-
margin: 1em 0 0
|
366 |
}
|
|
|
367 |
.buddypress .bp-headline-feature p {
|
368 |
margin: 1.15em 0 0.6em auto;
|
369 |
text-align: right;
|
370 |
width: auto;
|
371 |
}
|
|
|
372 |
.buddypress .bp-features-section .bp-feature {
|
373 |
text-align: center;
|
374 |
}
|
|
|
375 |
.buddypress .bp-features-section span.dashicons {
|
376 |
float: none;
|
377 |
}
|
|
|
378 |
.buddypress .bp-features-section .feature-title,
|
379 |
.buddypress .bp-features-section p {
|
380 |
margin-right: 0;
|
381 |
text-align: right;
|
382 |
}
|
383 |
}
|
|
|
384 |
/*------------------------------------------------------------------------------
|
385 |
* 2.0 Dashicons
|
386 |
*----------------------------------------------------------------------------*/
|
@@ -414,7 +442,7 @@ TABLE OF CONTENTS:
|
|
414 |
|
415 |
#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,
|
416 |
#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before,
|
417 |
-
#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before{
|
418 |
content: "\f454";
|
419 |
}
|
420 |
|
@@ -440,7 +468,7 @@ TABLE OF CONTENTS:
|
|
440 |
}
|
441 |
|
442 |
.settings_page_bp-components td.plugin-title span:before {
|
443 |
-
font-family:
|
444 |
font-size: 18px;
|
445 |
}
|
446 |
|
@@ -493,13 +521,16 @@ TABLE OF CONTENTS:
|
|
493 |
}
|
494 |
|
495 |
@media screen and ( max-width: 782px ) {
|
|
|
496 |
.settings_page_bp-components td.plugin-title span {
|
497 |
margin-top: 5px;
|
498 |
}
|
|
|
499 |
#bp-admin-component-form .wp-list-table.plugins .plugin-title {
|
500 |
display: block;
|
501 |
width: auto;
|
502 |
}
|
|
|
503 |
#bp-admin-component-form .subsubsub {
|
504 |
margin-bottom: 0;
|
505 |
padding-bottom: 35px;
|
@@ -550,7 +581,7 @@ body.users_page_bp-signups td.count_sent {
|
|
550 |
}
|
551 |
|
552 |
.bp-signups-list .column-fields {
|
553 |
-
font-weight:
|
554 |
}
|
555 |
|
556 |
/*------------------------------------------------------------------------------
|
@@ -593,27 +624,30 @@ body.post-type-bp-email .categorydiv label {
|
|
593 |
.tools_page_bp-tools legend {
|
594 |
color: #23282d;
|
595 |
font-size: 1.3em;
|
596 |
-
font-weight:
|
597 |
margin: 1em 0;
|
598 |
}
|
599 |
|
600 |
.tools_page_bp-tools label {
|
601 |
clear: right;
|
602 |
display: block;
|
603 |
-
line-height: 1.
|
604 |
margin: 0 0 1em;
|
605 |
vertical-align: middle;
|
606 |
}
|
607 |
|
608 |
@media screen and (max-width: 782px) {
|
|
|
609 |
.tools_page_bp-tools p {
|
610 |
line-height: 1.5;
|
611 |
}
|
|
|
612 |
.tools_page_bp-tools label {
|
613 |
margin-bottom: 1em;
|
614 |
padding-left: 25px;
|
615 |
text-indent: -33px;
|
616 |
}
|
|
|
617 |
.tools_page_bp-tools .checkbox {
|
618 |
padding: 0 30px 0 0;
|
619 |
}
|
34 |
.bp-badge {
|
35 |
color: #d84800;
|
36 |
display: inline-block;
|
37 |
+
font: 400 150px/1 dashicons !important;
|
38 |
}
|
39 |
|
40 |
.bp-badge:before {
|
54 |
}
|
55 |
|
56 |
@media only screen and (max-width: 500px) {
|
57 |
+
|
58 |
.about-wrap .bp-badge {
|
59 |
position: relative;
|
60 |
margin: 10px auto;
|
89 |
float: right;
|
90 |
height: 100px;
|
91 |
line-height: 100px;
|
92 |
+
margin: 0 0 15px 15px;
|
93 |
text-align: center;
|
94 |
width: 100px;
|
95 |
}
|
127 |
float: right;
|
128 |
height: 80px;
|
129 |
line-height: 80px;
|
130 |
+
margin: 0 0 15px 15px;
|
131 |
text-align: center;
|
132 |
width: 80px;
|
133 |
}
|
164 |
line-height: 1.5;
|
165 |
}
|
166 |
|
167 |
+
.buddypress .bp-feature:after {
|
168 |
+
content: "";
|
169 |
}
|
170 |
|
171 |
.buddypress .bp-feature-imaged .feature-title {
|
208 |
padding-bottom: 0;
|
209 |
}
|
210 |
|
211 |
+
.buddypress .bp-changelog-section:after {
|
212 |
+
content: "";
|
213 |
}
|
214 |
|
215 |
.buddypress .bp-changelog-section .changelog-title {
|
263 |
}
|
264 |
|
265 |
@media screen and ( max-width: 782px ) {
|
266 |
+
|
267 |
.bp-headline-feature,
|
268 |
.bp-features-section,
|
269 |
.bp-changelog-section,
|
271 |
margin-right: 20px;
|
272 |
margin-left: 20px;
|
273 |
}
|
274 |
+
|
275 |
.buddypress .bp-headline-feature {
|
276 |
padding: 0;
|
277 |
}
|
278 |
+
|
279 |
.buddypress .bp-headline {
|
280 |
margin: 0;
|
281 |
width: 97%;
|
282 |
}
|
283 |
+
|
284 |
.buddypress .bp-features-section {
|
285 |
clear: both;
|
286 |
margin-bottom: 0;
|
287 |
margin-top: 2em;
|
288 |
padding-bottom: 2em;
|
289 |
}
|
290 |
+
|
291 |
.buddypress .bp-features-section .bp-feature-with-images {
|
292 |
margin-bottom: 2em;
|
293 |
}
|
294 |
+
|
295 |
.buddypress .bp-features-section .headline-title {
|
296 |
margin-bottom: 1em;
|
297 |
}
|
298 |
+
|
299 |
.buddypress .bp-changelog-section .changelog-title {
|
300 |
font-size: 1.25em;
|
301 |
line-height: 1.5;
|
302 |
margin-bottom: 0.5em;
|
303 |
margin-top: 0.5em;
|
304 |
}
|
305 |
+
|
306 |
.buddypress .bp-features-section .feature-title,
|
307 |
.buddypress .bp-changelog-section .title {
|
308 |
font-size: 1.25em;
|
310 |
margin-top: 0.6em;
|
311 |
text-align: right;
|
312 |
}
|
313 |
+
|
314 |
.buddypress .bp-features-section .bp-feature,
|
315 |
.buddypress .bp-features-section .bp-feature-imaged {
|
316 |
clear: both;
|
321 |
padding-left: 1em;
|
322 |
width: 100%;
|
323 |
}
|
324 |
+
|
325 |
.buddypress .bp-features-section .bp-feature-imaged p {
|
326 |
font-size: 1em;
|
327 |
}
|
328 |
+
|
329 |
.buddypress .bp-features-section .bp-feature span {
|
330 |
margin-top: 0.33em;
|
331 |
}
|
332 |
+
|
333 |
.buddypress .bp-feature.opposite .feature-title,
|
334 |
.buddypress .bp-feature.opposite p {
|
335 |
float: none;
|
336 |
}
|
337 |
+
|
338 |
.buddypress .bp-changelog-section {
|
339 |
+
clear: both;
|
340 |
+
margin-bottom: 2em;
|
341 |
+
margin-top: 2em;
|
342 |
}
|
343 |
+
|
344 |
.buddypress .bp-changelog-section .changelog-title {
|
345 |
margin-bottom: 1.5em;
|
346 |
}
|
347 |
+
|
348 |
.buddypress .bp-changelog .title {
|
349 |
font-size: 1em;
|
350 |
}
|
351 |
+
|
352 |
.buddypress .bp-changelog p {
|
353 |
margin-bottom: 1em;
|
354 |
}
|
355 |
+
|
356 |
.buddypress .bp-changelog-section .two-col > div,
|
357 |
.buddypress .bp-changelog-section .three-col .col {
|
358 |
margin-top: 0;
|
360 |
width: 100%;
|
361 |
}
|
362 |
}
|
363 |
+
|
364 |
@media screen and ( max-width: 360px ) {
|
365 |
+
|
366 |
.buddypress .bp-headline {
|
367 |
text-align: center;
|
368 |
}
|
369 |
+
|
370 |
.buddypress .bp-headline span.dashicons {
|
371 |
clear: none;
|
372 |
font-size: 80px;
|
376 |
margin: 0 auto;
|
377 |
width: 80px;
|
378 |
}
|
379 |
+
|
380 |
.buddypress .bp-headline-feature .headline-title,
|
381 |
.buddypress .bp-features-section .headline-title {
|
382 |
font-size: 1.5em;
|
383 |
line-height: 1.5;
|
384 |
text-align: right;
|
385 |
}
|
386 |
+
|
387 |
.buddypress .bp-headline-feature .headline-title {
|
388 |
+
margin: 1em 0 0;
|
389 |
}
|
390 |
+
|
391 |
.buddypress .bp-headline-feature p {
|
392 |
margin: 1.15em 0 0.6em auto;
|
393 |
text-align: right;
|
394 |
width: auto;
|
395 |
}
|
396 |
+
|
397 |
.buddypress .bp-features-section .bp-feature {
|
398 |
text-align: center;
|
399 |
}
|
400 |
+
|
401 |
.buddypress .bp-features-section span.dashicons {
|
402 |
float: none;
|
403 |
}
|
404 |
+
|
405 |
.buddypress .bp-features-section .feature-title,
|
406 |
.buddypress .bp-features-section p {
|
407 |
margin-right: 0;
|
408 |
text-align: right;
|
409 |
}
|
410 |
}
|
411 |
+
|
412 |
/*------------------------------------------------------------------------------
|
413 |
* 2.0 Dashicons
|
414 |
*----------------------------------------------------------------------------*/
|
442 |
|
443 |
#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,
|
444 |
#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before,
|
445 |
+
#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before {
|
446 |
content: "\f454";
|
447 |
}
|
448 |
|
468 |
}
|
469 |
|
470 |
.settings_page_bp-components td.plugin-title span:before {
|
471 |
+
font-family: dashicons;
|
472 |
font-size: 18px;
|
473 |
}
|
474 |
|
521 |
}
|
522 |
|
523 |
@media screen and ( max-width: 782px ) {
|
524 |
+
|
525 |
.settings_page_bp-components td.plugin-title span {
|
526 |
margin-top: 5px;
|
527 |
}
|
528 |
+
|
529 |
#bp-admin-component-form .wp-list-table.plugins .plugin-title {
|
530 |
display: block;
|
531 |
width: auto;
|
532 |
}
|
533 |
+
|
534 |
#bp-admin-component-form .subsubsub {
|
535 |
margin-bottom: 0;
|
536 |
padding-bottom: 35px;
|
581 |
}
|
582 |
|
583 |
.bp-signups-list .column-fields {
|
584 |
+
font-weight: 700;
|
585 |
}
|
586 |
|
587 |
/*------------------------------------------------------------------------------
|
624 |
.tools_page_bp-tools legend {
|
625 |
color: #23282d;
|
626 |
font-size: 1.3em;
|
627 |
+
font-weight: 600;
|
628 |
margin: 1em 0;
|
629 |
}
|
630 |
|
631 |
.tools_page_bp-tools label {
|
632 |
clear: right;
|
633 |
display: block;
|
634 |
+
line-height: 1.5;
|
635 |
margin: 0 0 1em;
|
636 |
vertical-align: middle;
|
637 |
}
|
638 |
|
639 |
@media screen and (max-width: 782px) {
|
640 |
+
|
641 |
.tools_page_bp-tools p {
|
642 |
line-height: 1.5;
|
643 |
}
|
644 |
+
|
645 |
.tools_page_bp-tools label {
|
646 |
margin-bottom: 1em;
|
647 |
padding-left: 25px;
|
648 |
text-indent: -33px;
|
649 |
}
|
650 |
+
|
651 |
.tools_page_bp-tools .checkbox {
|
652 |
padding: 0 30px 0 0;
|
653 |
}
|
bp-core/admin/css/common-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.
|
1 |
+
.bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.about-wrap .bp-badge{position:absolute;top:0;left:0}.buddypress code{background-color:#e0e0e0;color:#636363;font-size:1em}@media only screen and (max-width:500px){.about-wrap .bp-badge{position:relative;margin:10px auto;top:auto;left:auto}}.buddypress .bp-headline-feature{margin-bottom:3em;margin-top:3em;padding:2em 3em}.buddypress .bp-headline{margin:0 auto;width:45em}.buddypress .bp-headline span.dashicons{background-color:#f1f1f1;color:#d84800;clear:right;font-size:100px;float:right;height:100px;line-height:100px;margin:0 0 15px 15px;text-align:center;width:100px}.buddypress .bp-headline-feature .headline-title{font-size:2.2em;font-weight:300;line-height:1;margin:0;text-align:center}.buddypress .bp-headline-feature p{font-size:1.15em;margin:1.15em 0 .6em auto}.buddypress .bp-features-section{border-bottom:1px solid #ccc;clear:both;margin-top:3em;overflow:hidden;padding-bottom:0}.buddypress .bp-features-section span.dashicons{background-color:#fff;border-radius:50%;clear:right;color:#d84800;font-size:50px;float:right;height:80px;line-height:80px;margin:0 0 15px 15px;text-align:center;width:80px}.buddypress .bp-features-section .headline-title{font-size:2em;font-weight:300;line-height:1.5;margin:0 auto 2em;text-align:center}.buddypress .bp-features-section .bp-feature-with-images{border-bottom:1px solid #ccc;margin-bottom:5em;padding-bottom:2em}.buddypress .bp-features-section .bp-feature,.buddypress .bp-features-section .bp-feature-imaged{float:right;margin-bottom:3em;margin-left:4.799999999%;width:47.6%}.buddypress .bp-features-section .bp-feature-imaged.anon,.buddypress .bp-features-section .bp-feature.opposite{margin-left:0}.buddypress .bp-features-section .bp-feature code{font-size:.95em;line-height:1.5}.buddypress .bp-feature:after{content:""}.buddypress .bp-feature-imaged .feature-title{color:#23282d;font-size:1.25em;margin-bottom:.6em;margin-top:0}.buddypress .bp-feature-imaged p{clear:right;font-size:1.1em}.buddypress .bp-feature-imaged img{clear:right}.buddypress .bp-feature .feature-title{font-size:1.25em;line-height:1.5;margin-bottom:0;margin-right:110px;margin-top:0;text-align:right}.buddypress .bp-feature p{margin-right:110px}.buddypress .bp-changelog-section{clear:both;margin-bottom:3em;margin-top:3em;overflow:hidden;padding-bottom:0}.buddypress .bp-changelog-section:after{content:""}.buddypress .bp-changelog-section .changelog-title{color:#23282d;font-size:1.25em;line-height:1.5;margin:0 auto 1.5em}.buddypress .bp-changelog-section .two-col div{float:right;margin-left:4.799999999%;position:relative;width:47.6%}.buddypress .bp-changelog-section .three-col .col{float:right;margin-left:5%;position:relative;width:29.95%}.buddypress .three-col .col:nth-of-type(3n),.buddypress .two-col .col:nth-of-type(2n){margin-left:0}.buddypress .bp-changelog{margin-bottom:3em}.buddypress .bp-changelog .title{font-size:1em;margin-bottom:0;margin-top:0}.buddypress .bp-changelog p{margin-bottom:3em}.bp-changelog-url{text-align:center}.bp-assets{clear:both;margin-bottom:2em;margin-top:2em}@media screen and (max-width:782px){.bp-assets,.bp-changelog-section,.bp-features-section,.bp-headline-feature{margin-right:20px;margin-left:20px}.buddypress .bp-headline-feature{padding:0}.buddypress .bp-headline{margin:0;width:97%}.buddypress .bp-features-section{clear:both;margin-bottom:0;margin-top:2em;padding-bottom:2em}.buddypress .bp-features-section .bp-feature-with-images{margin-bottom:2em}.buddypress .bp-features-section .headline-title{margin-bottom:1em}.buddypress .bp-changelog-section .changelog-title{font-size:1.25em;line-height:1.5;margin-bottom:.5em;margin-top:.5em}.buddypress .bp-changelog-section .title,.buddypress .bp-features-section .feature-title{font-size:1.25em;line-height:1.25;margin-top:.6em;text-align:right}.buddypress .bp-features-section .bp-feature,.buddypress .bp-features-section .bp-feature-imaged{clear:both;float:right;margin-bottom:1em;margin-top:1em;margin-left:0;padding-left:1em;width:100%}.buddypress .bp-features-section .bp-feature-imaged p{font-size:1em}.buddypress .bp-features-section .bp-feature span{margin-top:.33em}.buddypress .bp-feature.opposite .feature-title,.buddypress .bp-feature.opposite p{float:none}.buddypress .bp-changelog-section{clear:both;margin-bottom:2em;margin-top:2em}.buddypress .bp-changelog-section .changelog-title{margin-bottom:1.5em}.buddypress .bp-changelog .title{font-size:1em}.buddypress .bp-changelog p{margin-bottom:1em}.buddypress .bp-changelog-section .three-col .col,.buddypress .bp-changelog-section .two-col>div{margin-top:0;padding-bottom:.5em;width:100%}}@media screen and (max-width:360px){.buddypress .bp-headline{text-align:center}.buddypress .bp-headline span.dashicons{clear:none;font-size:80px;float:none;height:80px;line-height:80px;margin:0 auto;width:80px}.buddypress .bp-features-section .headline-title,.buddypress .bp-headline-feature .headline-title{font-size:1.5em;line-height:1.5;text-align:right}.buddypress .bp-headline-feature .headline-title{margin:1em 0 0}.buddypress .bp-headline-feature p{margin:1.15em 0 .6em auto;text-align:right;width:auto}.buddypress .bp-features-section .bp-feature{text-align:center}.buddypress .bp-features-section span.dashicons{float:none}.buddypress .bp-features-section .feature-title,.buddypress .bp-features-section p{margin-right:0;text-align:right}}#adminmenu #toplevel_page_bp-activity .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_user .wp-menu-image:before{content:"\f452"}#adminmenu #toplevel_page_bp-groups .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_user .wp-menu-image:before{content:"\f456"}#adminmenu #toplevel_page_bp-notifications .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_user .wp-menu-image:before{content:"\f439"}#adminmenu #toplevel_page_bp-messages .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_user .wp-menu-image:before{content:"\f457"}#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before{content:"\f454"}#adminmenu #toplevel_page_bp-settings .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_user .wp-menu-image:before{content:"\f108"}#adminmenu li.toplevel_page_bp-components .wp-menu-image,#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image{content:"\f448"}.settings_page_bp-components td.plugin-title span{float:right;width:18px;height:18px;margin-left:5px}.settings_page_bp-components td.plugin-title span:before{font-family:dashicons;font-size:18px}.settings_page_bp-components tr.activity td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.notifications td.plugin-title span:before{content:"\f339"}.settings_page_bp-components tr.xprofile td.plugin-title span:before{content:"\f336"}.settings_page_bp-components tr.settings td.plugin-title span:before{content:"\f108"}.settings_page_bp-components tr.groups td.plugin-title span:before{content:"\f456"}.settings_page_bp-components tr.messages td.plugin-title span:before{content:"\f457"}.settings_page_bp-components tr.forums td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.blogs td.plugin-title span:before{content:"\f120"}.settings_page_bp-components tr.friends td.plugin-title span:before{content:"\f454"}.settings_page_bp-components tr.core td.plugin-title span:before{content:"\f448"}.settings_page_bp-components tr.members td.plugin-title span:before{content:"\f307"}#bp-admin-component-form .wp-list-table.plugins .plugin-title{width:25%}@media screen and (max-width:782px){.settings_page_bp-components td.plugin-title span{margin-top:5px}#bp-admin-component-form .wp-list-table.plugins .plugin-title{display:block;width:auto}#bp-admin-component-form .subsubsub{margin-bottom:0;padding-bottom:35px}}#adminmenu .toplevel_page_network-tools div.wp-menu-image:before{content:""}body.site-users-php th#role,body.users-php th#role,body.users_page_bp-signups th#count_sent{width:10%}body.site-users-php th#email,body.site-users-php th#name,body.users-php th#email,body.users-php th#name,body.users-php th#registered,body.users_page_bp-signups th#date_sent,body.users_page_bp-signups th#email,body.users_page_bp-signups th#name,body.users_page_bp-signups th#registered{width:15%}body.users-php th#blogs,body.users_page_bp-signups th#blogs{width:20%}body.users_page_bp-signups td.count_sent,body.users_page_bp-signups th.column-count_sent{text-align:center}.bp-signups-list table{margin:1em 0}.bp-signups-list .column-fields{font-weight:700}body.post-type-bp-email #excerpt{height:auto}body.post-type-bp-email th#situation{width:20%}body.post-type-bp-email td.column-situation ul{margin:0}body.post-type-bp-email .categorydiv label{display:block;float:right;padding-right:25px;text-indent:-25px}.tools_page_bp-tools .wrap{max-width:950px}.tools_page_bp-tools p{line-height:2}.tools_page_bp-tools fieldset{margin:2em 0 0}.tools_page_bp-tools legend{color:#23282d;font-size:1.3em;font-weight:600;margin:1em 0}.tools_page_bp-tools label{clear:right;display:block;line-height:1.5;margin:0 0 1em;vertical-align:middle}@media screen and (max-width:782px){.tools_page_bp-tools p{line-height:1.5}.tools_page_bp-tools label{margin-bottom:1em;padding-left:25px;text-indent:-33px}.tools_page_bp-tools .checkbox{padding:0 30px 0 0}}#buddypress-update.not-shiny .update-message{border-right:0;padding-right:36px}#buddypress-update.not-shiny .update-message:before{content:"\f534"}
|
bp-core/admin/css/common.css
CHANGED
@@ -34,7 +34,7 @@ TABLE OF CONTENTS:
|
|
34 |
.bp-badge {
|
35 |
color: #d84800;
|
36 |
display: inline-block;
|
37 |
-
font:
|
38 |
}
|
39 |
|
40 |
.bp-badge:before {
|
@@ -54,6 +54,7 @@ TABLE OF CONTENTS:
|
|
54 |
}
|
55 |
|
56 |
@media only screen and (max-width: 500px) {
|
|
|
57 |
.about-wrap .bp-badge {
|
58 |
position: relative;
|
59 |
margin: 10px auto;
|
@@ -88,7 +89,7 @@ TABLE OF CONTENTS:
|
|
88 |
float: left;
|
89 |
height: 100px;
|
90 |
line-height: 100px;
|
91 |
-
margin: 0 15px 15px 0
|
92 |
text-align: center;
|
93 |
width: 100px;
|
94 |
}
|
@@ -126,7 +127,7 @@ TABLE OF CONTENTS:
|
|
126 |
float: left;
|
127 |
height: 80px;
|
128 |
line-height: 80px;
|
129 |
-
margin: 0 15px 15px 0
|
130 |
text-align: center;
|
131 |
width: 80px;
|
132 |
}
|
@@ -163,8 +164,8 @@ TABLE OF CONTENTS:
|
|
163 |
line-height: 1.5;
|
164 |
}
|
165 |
|
166 |
-
.buddypress .bp-feature
|
167 |
-
content:
|
168 |
}
|
169 |
|
170 |
.buddypress .bp-feature-imaged .feature-title {
|
@@ -207,8 +208,8 @@ TABLE OF CONTENTS:
|
|
207 |
padding-bottom: 0;
|
208 |
}
|
209 |
|
210 |
-
.buddypress .bp-changelog-section
|
211 |
-
content:
|
212 |
}
|
213 |
|
214 |
.buddypress .bp-changelog-section .changelog-title {
|
@@ -262,6 +263,7 @@ TABLE OF CONTENTS:
|
|
262 |
}
|
263 |
|
264 |
@media screen and ( max-width: 782px ) {
|
|
|
265 |
.bp-headline-feature,
|
266 |
.bp-features-section,
|
267 |
.bp-changelog-section,
|
@@ -269,31 +271,38 @@ TABLE OF CONTENTS:
|
|
269 |
margin-left: 20px;
|
270 |
margin-right: 20px;
|
271 |
}
|
|
|
272 |
.buddypress .bp-headline-feature {
|
273 |
padding: 0;
|
274 |
}
|
|
|
275 |
.buddypress .bp-headline {
|
276 |
margin: 0;
|
277 |
width: 97%;
|
278 |
}
|
|
|
279 |
.buddypress .bp-features-section {
|
280 |
clear: both;
|
281 |
margin-bottom: 0;
|
282 |
margin-top: 2em;
|
283 |
padding-bottom: 2em;
|
284 |
}
|
|
|
285 |
.buddypress .bp-features-section .bp-feature-with-images {
|
286 |
margin-bottom: 2em;
|
287 |
}
|
|
|
288 |
.buddypress .bp-features-section .headline-title {
|
289 |
margin-bottom: 1em;
|
290 |
}
|
|
|
291 |
.buddypress .bp-changelog-section .changelog-title {
|
292 |
font-size: 1.25em;
|
293 |
line-height: 1.5;
|
294 |
margin-bottom: 0.5em;
|
295 |
margin-top: 0.5em;
|
296 |
}
|
|
|
297 |
.buddypress .bp-features-section .feature-title,
|
298 |
.buddypress .bp-changelog-section .title {
|
299 |
font-size: 1.25em;
|
@@ -301,6 +310,7 @@ TABLE OF CONTENTS:
|
|
301 |
margin-top: 0.6em;
|
302 |
text-align: left;
|
303 |
}
|
|
|
304 |
.buddypress .bp-features-section .bp-feature,
|
305 |
.buddypress .bp-features-section .bp-feature-imaged {
|
306 |
clear: both;
|
@@ -311,30 +321,38 @@ TABLE OF CONTENTS:
|
|
311 |
padding-right: 1em;
|
312 |
width: 100%;
|
313 |
}
|
|
|
314 |
.buddypress .bp-features-section .bp-feature-imaged p {
|
315 |
font-size: 1em;
|
316 |
}
|
|
|
317 |
.buddypress .bp-features-section .bp-feature span {
|
318 |
margin-top: 0.33em;
|
319 |
}
|
|
|
320 |
.buddypress .bp-feature.opposite .feature-title,
|
321 |
.buddypress .bp-feature.opposite p {
|
322 |
float: none;
|
323 |
}
|
|
|
324 |
.buddypress .bp-changelog-section {
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
}
|
|
|
329 |
.buddypress .bp-changelog-section .changelog-title {
|
330 |
margin-bottom: 1.5em;
|
331 |
}
|
|
|
332 |
.buddypress .bp-changelog .title {
|
333 |
font-size: 1em;
|
334 |
}
|
|
|
335 |
.buddypress .bp-changelog p {
|
336 |
margin-bottom: 1em;
|
337 |
}
|
|
|
338 |
.buddypress .bp-changelog-section .two-col > div,
|
339 |
.buddypress .bp-changelog-section .three-col .col {
|
340 |
margin-top: 0;
|
@@ -342,10 +360,13 @@ TABLE OF CONTENTS:
|
|
342 |
width: 100%;
|
343 |
}
|
344 |
}
|
|
|
345 |
@media screen and ( max-width: 360px ) {
|
|
|
346 |
.buddypress .bp-headline {
|
347 |
text-align: center;
|
348 |
}
|
|
|
349 |
.buddypress .bp-headline span.dashicons {
|
350 |
clear: none;
|
351 |
font-size: 80px;
|
@@ -355,32 +376,39 @@ TABLE OF CONTENTS:
|
|
355 |
margin: 0 auto;
|
356 |
width: 80px;
|
357 |
}
|
|
|
358 |
.buddypress .bp-headline-feature .headline-title,
|
359 |
.buddypress .bp-features-section .headline-title {
|
360 |
font-size: 1.5em;
|
361 |
line-height: 1.5;
|
362 |
text-align: left;
|
363 |
}
|
|
|
364 |
.buddypress .bp-headline-feature .headline-title {
|
365 |
-
margin: 1em 0 0
|
366 |
}
|
|
|
367 |
.buddypress .bp-headline-feature p {
|
368 |
margin: 1.15em auto 0.6em 0;
|
369 |
text-align: left;
|
370 |
width: auto;
|
371 |
}
|
|
|
372 |
.buddypress .bp-features-section .bp-feature {
|
373 |
text-align: center;
|
374 |
}
|
|
|
375 |
.buddypress .bp-features-section span.dashicons {
|
376 |
float: none;
|
377 |
}
|
|
|
378 |
.buddypress .bp-features-section .feature-title,
|
379 |
.buddypress .bp-features-section p {
|
380 |
margin-left: 0;
|
381 |
text-align: left;
|
382 |
}
|
383 |
}
|
|
|
384 |
/*------------------------------------------------------------------------------
|
385 |
* 2.0 Dashicons
|
386 |
*----------------------------------------------------------------------------*/
|
@@ -414,7 +442,7 @@ TABLE OF CONTENTS:
|
|
414 |
|
415 |
#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,
|
416 |
#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before,
|
417 |
-
#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before{
|
418 |
content: "\f454";
|
419 |
}
|
420 |
|
@@ -440,7 +468,7 @@ TABLE OF CONTENTS:
|
|
440 |
}
|
441 |
|
442 |
.settings_page_bp-components td.plugin-title span:before {
|
443 |
-
font-family:
|
444 |
font-size: 18px;
|
445 |
}
|
446 |
|
@@ -493,13 +521,16 @@ TABLE OF CONTENTS:
|
|
493 |
}
|
494 |
|
495 |
@media screen and ( max-width: 782px ) {
|
|
|
496 |
.settings_page_bp-components td.plugin-title span {
|
497 |
margin-top: 5px;
|
498 |
}
|
|
|
499 |
#bp-admin-component-form .wp-list-table.plugins .plugin-title {
|
500 |
display: block;
|
501 |
width: auto;
|
502 |
}
|
|
|
503 |
#bp-admin-component-form .subsubsub {
|
504 |
margin-bottom: 0;
|
505 |
padding-bottom: 35px;
|
@@ -550,7 +581,7 @@ body.users_page_bp-signups td.count_sent {
|
|
550 |
}
|
551 |
|
552 |
.bp-signups-list .column-fields {
|
553 |
-
font-weight:
|
554 |
}
|
555 |
|
556 |
/*------------------------------------------------------------------------------
|
@@ -593,27 +624,30 @@ body.post-type-bp-email .categorydiv label {
|
|
593 |
.tools_page_bp-tools legend {
|
594 |
color: #23282d;
|
595 |
font-size: 1.3em;
|
596 |
-
font-weight:
|
597 |
margin: 1em 0;
|
598 |
}
|
599 |
|
600 |
.tools_page_bp-tools label {
|
601 |
clear: left;
|
602 |
display: block;
|
603 |
-
line-height: 1.
|
604 |
margin: 0 0 1em;
|
605 |
vertical-align: middle;
|
606 |
}
|
607 |
|
608 |
@media screen and (max-width: 782px) {
|
|
|
609 |
.tools_page_bp-tools p {
|
610 |
line-height: 1.5;
|
611 |
}
|
|
|
612 |
.tools_page_bp-tools label {
|
613 |
margin-bottom: 1em;
|
614 |
padding-right: 25px;
|
615 |
text-indent: -33px;
|
616 |
}
|
|
|
617 |
.tools_page_bp-tools .checkbox {
|
618 |
padding: 0 0 0 30px;
|
619 |
}
|
34 |
.bp-badge {
|
35 |
color: #d84800;
|
36 |
display: inline-block;
|
37 |
+
font: 400 150px/1 dashicons !important;
|
38 |
}
|
39 |
|
40 |
.bp-badge:before {
|
54 |
}
|
55 |
|
56 |
@media only screen and (max-width: 500px) {
|
57 |
+
|
58 |
.about-wrap .bp-badge {
|
59 |
position: relative;
|
60 |
margin: 10px auto;
|
89 |
float: left;
|
90 |
height: 100px;
|
91 |
line-height: 100px;
|
92 |
+
margin: 0 15px 15px 0;
|
93 |
text-align: center;
|
94 |
width: 100px;
|
95 |
}
|
127 |
float: left;
|
128 |
height: 80px;
|
129 |
line-height: 80px;
|
130 |
+
margin: 0 15px 15px 0;
|
131 |
text-align: center;
|
132 |
width: 80px;
|
133 |
}
|
164 |
line-height: 1.5;
|
165 |
}
|
166 |
|
167 |
+
.buddypress .bp-feature:after {
|
168 |
+
content: "";
|
169 |
}
|
170 |
|
171 |
.buddypress .bp-feature-imaged .feature-title {
|
208 |
padding-bottom: 0;
|
209 |
}
|
210 |
|
211 |
+
.buddypress .bp-changelog-section:after {
|
212 |
+
content: "";
|
213 |
}
|
214 |
|
215 |
.buddypress .bp-changelog-section .changelog-title {
|
263 |
}
|
264 |
|
265 |
@media screen and ( max-width: 782px ) {
|
266 |
+
|
267 |
.bp-headline-feature,
|
268 |
.bp-features-section,
|
269 |
.bp-changelog-section,
|
271 |
margin-left: 20px;
|
272 |
margin-right: 20px;
|
273 |
}
|
274 |
+
|
275 |
.buddypress .bp-headline-feature {
|
276 |
padding: 0;
|
277 |
}
|
278 |
+
|
279 |
.buddypress .bp-headline {
|
280 |
margin: 0;
|
281 |
width: 97%;
|
282 |
}
|
283 |
+
|
284 |
.buddypress .bp-features-section {
|
285 |
clear: both;
|
286 |
margin-bottom: 0;
|
287 |
margin-top: 2em;
|
288 |
padding-bottom: 2em;
|
289 |
}
|
290 |
+
|
291 |
.buddypress .bp-features-section .bp-feature-with-images {
|
292 |
margin-bottom: 2em;
|
293 |
}
|
294 |
+
|
295 |
.buddypress .bp-features-section .headline-title {
|
296 |
margin-bottom: 1em;
|
297 |
}
|
298 |
+
|
299 |
.buddypress .bp-changelog-section .changelog-title {
|
300 |
font-size: 1.25em;
|
301 |
line-height: 1.5;
|
302 |
margin-bottom: 0.5em;
|
303 |
margin-top: 0.5em;
|
304 |
}
|
305 |
+
|
306 |
.buddypress .bp-features-section .feature-title,
|
307 |
.buddypress .bp-changelog-section .title {
|
308 |
font-size: 1.25em;
|
310 |
margin-top: 0.6em;
|
311 |
text-align: left;
|
312 |
}
|
313 |
+
|
314 |
.buddypress .bp-features-section .bp-feature,
|
315 |
.buddypress .bp-features-section .bp-feature-imaged {
|
316 |
clear: both;
|
321 |
padding-right: 1em;
|
322 |
width: 100%;
|
323 |
}
|
324 |
+
|
325 |
.buddypress .bp-features-section .bp-feature-imaged p {
|
326 |
font-size: 1em;
|
327 |
}
|
328 |
+
|
329 |
.buddypress .bp-features-section .bp-feature span {
|
330 |
margin-top: 0.33em;
|
331 |
}
|
332 |
+
|
333 |
.buddypress .bp-feature.opposite .feature-title,
|
334 |
.buddypress .bp-feature.opposite p {
|
335 |
float: none;
|
336 |
}
|
337 |
+
|
338 |
.buddypress .bp-changelog-section {
|
339 |
+
clear: both;
|
340 |
+
margin-bottom: 2em;
|
341 |
+
margin-top: 2em;
|
342 |
}
|
343 |
+
|
344 |
.buddypress .bp-changelog-section .changelog-title {
|
345 |
margin-bottom: 1.5em;
|
346 |
}
|
347 |
+
|
348 |
.buddypress .bp-changelog .title {
|
349 |
font-size: 1em;
|
350 |
}
|
351 |
+
|
352 |
.buddypress .bp-changelog p {
|
353 |
margin-bottom: 1em;
|
354 |
}
|
355 |
+
|
356 |
.buddypress .bp-changelog-section .two-col > div,
|
357 |
.buddypress .bp-changelog-section .three-col .col {
|
358 |
margin-top: 0;
|
360 |
width: 100%;
|
361 |
}
|
362 |
}
|
363 |
+
|
364 |
@media screen and ( max-width: 360px ) {
|
365 |
+
|
366 |
.buddypress .bp-headline {
|
367 |
text-align: center;
|
368 |
}
|
369 |
+
|
370 |
.buddypress .bp-headline span.dashicons {
|
371 |
clear: none;
|
372 |
font-size: 80px;
|
376 |
margin: 0 auto;
|
377 |
width: 80px;
|
378 |
}
|
379 |
+
|
380 |
.buddypress .bp-headline-feature .headline-title,
|
381 |
.buddypress .bp-features-section .headline-title {
|
382 |
font-size: 1.5em;
|
383 |
line-height: 1.5;
|
384 |
text-align: left;
|
385 |
}
|
386 |
+
|
387 |
.buddypress .bp-headline-feature .headline-title {
|
388 |
+
margin: 1em 0 0;
|
389 |
}
|
390 |
+
|
391 |
.buddypress .bp-headline-feature p {
|
392 |
margin: 1.15em auto 0.6em 0;
|
393 |
text-align: left;
|
394 |
width: auto;
|
395 |
}
|
396 |
+
|
397 |
.buddypress .bp-features-section .bp-feature {
|
398 |
text-align: center;
|
399 |
}
|
400 |
+
|
401 |
.buddypress .bp-features-section span.dashicons {
|
402 |
float: none;
|
403 |
}
|
404 |
+
|
405 |
.buddypress .bp-features-section .feature-title,
|
406 |
.buddypress .bp-features-section p {
|
407 |
margin-left: 0;
|
408 |
text-align: left;
|
409 |
}
|
410 |
}
|
411 |
+
|
412 |
/*------------------------------------------------------------------------------
|
413 |
* 2.0 Dashicons
|
414 |
*----------------------------------------------------------------------------*/
|
442 |
|
443 |
#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,
|
444 |
#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before,
|
445 |
+
#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before {
|
446 |
content: "\f454";
|
447 |
}
|
448 |
|
468 |
}
|
469 |
|
470 |
.settings_page_bp-components td.plugin-title span:before {
|
471 |
+
font-family: dashicons;
|
472 |
font-size: 18px;
|
473 |
}
|
474 |
|
521 |
}
|
522 |
|
523 |
@media screen and ( max-width: 782px ) {
|
524 |
+
|
525 |
.settings_page_bp-components td.plugin-title span {
|
526 |
margin-top: 5px;
|
527 |
}
|
528 |
+
|
529 |
#bp-admin-component-form .wp-list-table.plugins .plugin-title {
|
530 |
display: block;
|
531 |
width: auto;
|
532 |
}
|
533 |
+
|
534 |
#bp-admin-component-form .subsubsub {
|
535 |
margin-bottom: 0;
|
536 |
padding-bottom: 35px;
|
581 |
}
|
582 |
|
583 |
.bp-signups-list .column-fields {
|
584 |
+
font-weight: 700;
|
585 |
}
|
586 |
|
587 |
/*------------------------------------------------------------------------------
|
624 |
.tools_page_bp-tools legend {
|
625 |
color: #23282d;
|
626 |
font-size: 1.3em;
|
627 |
+
font-weight: 600;
|
628 |
margin: 1em 0;
|
629 |
}
|
630 |
|
631 |
.tools_page_bp-tools label {
|
632 |
clear: left;
|
633 |
display: block;
|
634 |
+
line-height: 1.5;
|
635 |
margin: 0 0 1em;
|
636 |
vertical-align: middle;
|
637 |
}
|
638 |
|
639 |
@media screen and (max-width: 782px) {
|
640 |
+
|
641 |
.tools_page_bp-tools p {
|
642 |
line-height: 1.5;
|
643 |
}
|
644 |
+
|
645 |
.tools_page_bp-tools label {
|
646 |
margin-bottom: 1em;
|
647 |
padding-right: 25px;
|
648 |
text-indent: -33px;
|
649 |
}
|
650 |
+
|
651 |
.tools_page_bp-tools .checkbox {
|
652 |
padding: 0 0 0 30px;
|
653 |
}
|
bp-core/admin/css/common.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.
|
1 |
+
.bp-badge{color:#d84800;display:inline-block;font:400 150px/1 dashicons!important}.bp-badge:before{content:"\f448"}.about-wrap .bp-badge{position:absolute;top:0;right:0}.buddypress code{background-color:#e0e0e0;color:#636363;font-size:1em}@media only screen and (max-width:500px){.about-wrap .bp-badge{position:relative;margin:10px auto;top:auto;right:auto}}.buddypress .bp-headline-feature{margin-bottom:3em;margin-top:3em;padding:2em 3em}.buddypress .bp-headline{margin:0 auto;width:45em}.buddypress .bp-headline span.dashicons{background-color:#f1f1f1;color:#d84800;clear:left;font-size:100px;float:left;height:100px;line-height:100px;margin:0 15px 15px 0;text-align:center;width:100px}.buddypress .bp-headline-feature .headline-title{font-size:2.2em;font-weight:300;line-height:1;margin:0;text-align:center}.buddypress .bp-headline-feature p{font-size:1.15em;margin:1.15em auto .6em 0}.buddypress .bp-features-section{border-bottom:1px solid #ccc;clear:both;margin-top:3em;overflow:hidden;padding-bottom:0}.buddypress .bp-features-section span.dashicons{background-color:#fff;border-radius:50%;clear:left;color:#d84800;font-size:50px;float:left;height:80px;line-height:80px;margin:0 15px 15px 0;text-align:center;width:80px}.buddypress .bp-features-section .headline-title{font-size:2em;font-weight:300;line-height:1.5;margin:0 auto 2em;text-align:center}.buddypress .bp-features-section .bp-feature-with-images{border-bottom:1px solid #ccc;margin-bottom:5em;padding-bottom:2em}.buddypress .bp-features-section .bp-feature,.buddypress .bp-features-section .bp-feature-imaged{float:left;margin-bottom:3em;margin-right:4.799999999%;width:47.6%}.buddypress .bp-features-section .bp-feature-imaged.anon,.buddypress .bp-features-section .bp-feature.opposite{margin-right:0}.buddypress .bp-features-section .bp-feature code{font-size:.95em;line-height:1.5}.buddypress .bp-feature:after{content:""}.buddypress .bp-feature-imaged .feature-title{color:#23282d;font-size:1.25em;margin-bottom:.6em;margin-top:0}.buddypress .bp-feature-imaged p{clear:left;font-size:1.1em}.buddypress .bp-feature-imaged img{clear:left}.buddypress .bp-feature .feature-title{font-size:1.25em;line-height:1.5;margin-bottom:0;margin-left:110px;margin-top:0;text-align:left}.buddypress .bp-feature p{margin-left:110px}.buddypress .bp-changelog-section{clear:both;margin-bottom:3em;margin-top:3em;overflow:hidden;padding-bottom:0}.buddypress .bp-changelog-section:after{content:""}.buddypress .bp-changelog-section .changelog-title{color:#23282d;font-size:1.25em;line-height:1.5;margin:0 auto 1.5em}.buddypress .bp-changelog-section .two-col div{float:left;margin-right:4.799999999%;position:relative;width:47.6%}.buddypress .bp-changelog-section .three-col .col{float:left;margin-right:5%;position:relative;width:29.95%}.buddypress .three-col .col:nth-of-type(3n),.buddypress .two-col .col:nth-of-type(2n){margin-right:0}.buddypress .bp-changelog{margin-bottom:3em}.buddypress .bp-changelog .title{font-size:1em;margin-bottom:0;margin-top:0}.buddypress .bp-changelog p{margin-bottom:3em}.bp-changelog-url{text-align:center}.bp-assets{clear:both;margin-bottom:2em;margin-top:2em}@media screen and (max-width:782px){.bp-assets,.bp-changelog-section,.bp-features-section,.bp-headline-feature{margin-left:20px;margin-right:20px}.buddypress .bp-headline-feature{padding:0}.buddypress .bp-headline{margin:0;width:97%}.buddypress .bp-features-section{clear:both;margin-bottom:0;margin-top:2em;padding-bottom:2em}.buddypress .bp-features-section .bp-feature-with-images{margin-bottom:2em}.buddypress .bp-features-section .headline-title{margin-bottom:1em}.buddypress .bp-changelog-section .changelog-title{font-size:1.25em;line-height:1.5;margin-bottom:.5em;margin-top:.5em}.buddypress .bp-changelog-section .title,.buddypress .bp-features-section .feature-title{font-size:1.25em;line-height:1.25;margin-top:.6em;text-align:left}.buddypress .bp-features-section .bp-feature,.buddypress .bp-features-section .bp-feature-imaged{clear:both;float:left;margin-bottom:1em;margin-top:1em;margin-right:0;padding-right:1em;width:100%}.buddypress .bp-features-section .bp-feature-imaged p{font-size:1em}.buddypress .bp-features-section .bp-feature span{margin-top:.33em}.buddypress .bp-feature.opposite .feature-title,.buddypress .bp-feature.opposite p{float:none}.buddypress .bp-changelog-section{clear:both;margin-bottom:2em;margin-top:2em}.buddypress .bp-changelog-section .changelog-title{margin-bottom:1.5em}.buddypress .bp-changelog .title{font-size:1em}.buddypress .bp-changelog p{margin-bottom:1em}.buddypress .bp-changelog-section .three-col .col,.buddypress .bp-changelog-section .two-col>div{margin-top:0;padding-bottom:.5em;width:100%}}@media screen and (max-width:360px){.buddypress .bp-headline{text-align:center}.buddypress .bp-headline span.dashicons{clear:none;font-size:80px;float:none;height:80px;line-height:80px;margin:0 auto;width:80px}.buddypress .bp-features-section .headline-title,.buddypress .bp-headline-feature .headline-title{font-size:1.5em;line-height:1.5;text-align:left}.buddypress .bp-headline-feature .headline-title{margin:1em 0 0}.buddypress .bp-headline-feature p{margin:1.15em auto .6em 0;text-align:left;width:auto}.buddypress .bp-features-section .bp-feature{text-align:center}.buddypress .bp-features-section span.dashicons{float:none}.buddypress .bp-features-section .feature-title,.buddypress .bp-features-section p{margin-left:0;text-align:left}}#adminmenu #toplevel_page_bp-activity .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-activity_user .wp-menu-image:before{content:"\f452"}#adminmenu #toplevel_page_bp-groups .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-groups_user .wp-menu-image:before{content:"\f456"}#adminmenu #toplevel_page_bp-notifications .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-notifications_user .wp-menu-image:before{content:"\f439"}#adminmenu #toplevel_page_bp-messages .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-messages_user .wp-menu-image:before{content:"\f457"}#adminmenu #toplevel_page_bp-friends .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-friends_user .wp-menu-image:before{content:"\f454"}#adminmenu #toplevel_page_bp-settings .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_network .wp-menu-image:before,#adminmenu #toplevel_page_bp-settings_user .wp-menu-image:before{content:"\f108"}#adminmenu li.toplevel_page_bp-components .wp-menu-image,#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image{content:"\f448"}.settings_page_bp-components td.plugin-title span{float:left;width:18px;height:18px;margin-right:5px}.settings_page_bp-components td.plugin-title span:before{font-family:dashicons;font-size:18px}.settings_page_bp-components tr.activity td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.notifications td.plugin-title span:before{content:"\f339"}.settings_page_bp-components tr.xprofile td.plugin-title span:before{content:"\f336"}.settings_page_bp-components tr.settings td.plugin-title span:before{content:"\f108"}.settings_page_bp-components tr.groups td.plugin-title span:before{content:"\f456"}.settings_page_bp-components tr.messages td.plugin-title span:before{content:"\f457"}.settings_page_bp-components tr.forums td.plugin-title span:before{content:"\f452"}.settings_page_bp-components tr.blogs td.plugin-title span:before{content:"\f120"}.settings_page_bp-components tr.friends td.plugin-title span:before{content:"\f454"}.settings_page_bp-components tr.core td.plugin-title span:before{content:"\f448"}.settings_page_bp-components tr.members td.plugin-title span:before{content:"\f307"}#bp-admin-component-form .wp-list-table.plugins .plugin-title{width:25%}@media screen and (max-width:782px){.settings_page_bp-components td.plugin-title span{margin-top:5px}#bp-admin-component-form .wp-list-table.plugins .plugin-title{display:block;width:auto}#bp-admin-component-form .subsubsub{margin-bottom:0;padding-bottom:35px}}#adminmenu .toplevel_page_network-tools div.wp-menu-image:before{content:""}body.site-users-php th#role,body.users-php th#role,body.users_page_bp-signups th#count_sent{width:10%}body.site-users-php th#email,body.site-users-php th#name,body.users-php th#email,body.users-php th#name,body.users-php th#registered,body.users_page_bp-signups th#date_sent,body.users_page_bp-signups th#email,body.users_page_bp-signups th#name,body.users_page_bp-signups th#registered{width:15%}body.users-php th#blogs,body.users_page_bp-signups th#blogs{width:20%}body.users_page_bp-signups td.count_sent,body.users_page_bp-signups th.column-count_sent{text-align:center}.bp-signups-list table{margin:1em 0}.bp-signups-list .column-fields{font-weight:700}body.post-type-bp-email #excerpt{height:auto}body.post-type-bp-email th#situation{width:20%}body.post-type-bp-email td.column-situation ul{margin:0}body.post-type-bp-email .categorydiv label{display:block;float:left;padding-left:25px;text-indent:-25px}.tools_page_bp-tools .wrap{max-width:950px}.tools_page_bp-tools p{line-height:2}.tools_page_bp-tools fieldset{margin:2em 0 0}.tools_page_bp-tools legend{color:#23282d;font-size:1.3em;font-weight:600;margin:1em 0}.tools_page_bp-tools label{clear:left;display:block;line-height:1.5;margin:0 0 1em;vertical-align:middle}@media screen and (max-width:782px){.tools_page_bp-tools p{line-height:1.5}.tools_page_bp-tools label{margin-bottom:1em;padding-right:25px;text-indent:-33px}.tools_page_bp-tools .checkbox{padding:0 0 0 30px}}#buddypress-update.not-shiny .update-message{border-left:0;padding-left:36px}#buddypress-update.not-shiny .update-message:before{content:"\f534"}
|
bp-core/admin/css/customizer-controls-rtl.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
.customize-control-range output {
|
2 |
-
background-color: #
|
3 |
-
border: 1px solid #
|
4 |
-
box-shadow: inset 0 1px 2px rgba(
|
5 |
float: right;
|
6 |
margin-left: 10px;
|
7 |
margin-top: -4px;
|
1 |
.customize-control-range output {
|
2 |
+
background-color: #fff;
|
3 |
+
border: 1px solid #ddd;
|
4 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
|
5 |
float: right;
|
6 |
margin-left: 10px;
|
7 |
margin-top: -4px;
|
bp-core/admin/css/customizer-controls-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.customize-control-range output{background-color:#
|
1 |
+
.customize-control-range output{background-color:#fff;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);float:right;margin-left:10px;margin-top:-4px;min-width:16px;padding:5px}
|
bp-core/admin/css/customizer-controls.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
.customize-control-range output {
|
2 |
-
background-color: #
|
3 |
-
border: 1px solid #
|
4 |
-
box-shadow: inset 0 1px 2px rgba(
|
5 |
float: left;
|
6 |
margin-right: 10px;
|
7 |
margin-top: -4px;
|
1 |
.customize-control-range output {
|
2 |
+
background-color: #fff;
|
3 |
+
border: 1px solid #ddd;
|
4 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
|
5 |
float: left;
|
6 |
margin-right: 10px;
|
7 |
margin-top: -4px;
|
bp-core/admin/css/customizer-controls.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.customize-control-range output{background-color:#
|
1 |
+
.customize-control-range output{background-color:#fff;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.07);float:left;margin-right:10px;margin-top:-4px;min-width:16px;padding:5px}
|
bp-core/admin/images/list-unsubscribe.png
CHANGED
Binary file
|
bp-core/admin/images/twenty-seventeen.png
CHANGED
Binary file
|
bp-core/admin/js/customizer-controls.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(n){n(window).on("load",function(){n(".customize-control-range input").on("input",function(){var t=n(this);t.siblings("output").text(t.val())})})}(jQuery);
|
bp-core/admin/js/customizer-receiver-emails.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(o){wp.customize("bp_email_options[email_bg]",function(t){t.bind(function(t){t.length&&(o(".email_bg").attr("bgcolor",t),o("hr").attr("color",t))})}),wp.customize("bp_email_options[header_bg]",function(t){t.bind(function(t){t.length&&o(".header_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[header_text_size]",function(t){t.bind(function(t){t.length&&o(".header_text_size").css("font-size",t+"px")})}),wp.customize("bp_email_options[header_text_color]",function(t){t.bind(function(t){t.length&&o(".header_text_color").css("color",t)})}),wp.customize("bp_email_options[highlight_color]",function(t){t.bind(function(t){t.length&&(o(".header_bg").css("border-top-color",t),o("a").css("color",t),o("hr").attr("color",t))})}),wp.customize("bp_email_options[body_bg]",function(t){t.bind(function(t){t.length&&o(".body_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[body_text_size]",function(t){t.bind(function(t){t.length&&(o(".body_text_size").css("font-size",t+"px").css("line-height",Math.floor(1.618*t)+"px"),o(".welcome").css("font-size",Math.floor(1.35*t)+"px"))})}),wp.customize("bp_email_options[body_text_color]",function(t){t.bind(function(t){t.length&&o(".body_text_color").css("color",t)})}),wp.customize("bp_email_options[footer_bg]",function(t){t.bind(function(t){t.length&&o(".footer_bg").attr("bgcolor",t)})}),wp.customize("bp_email_options[footer_text_size]",function(t){t.bind(function(t){t.length&&o(".footer_text_size").css("font-size",t+"px").css("line-height",Math.floor(1.618*t)+"px")})}),wp.customize("bp_email_options[footer_text_color]",function(t){t.bind(function(t){t.length&&o(".footer_text_color").css("color",t)})}),wp.customize("bp_email_options[footer_text]",function(t){t.bind(function(t){o(".footer_text").text(t)})})}(jQuery);
|
bp-core/admin/js/dismissible-admin-notices.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(i){i(document).ready(function(){i(".bp-is-dismissible .notice-dismiss").click(function(){var n=i(this).closest(".notice"),s=n.data("noticeid");i.post({url:ajaxurl,data:{action:"bp_dismiss_notice",nonce:i("#bp-dismissible-nonce-"+s).val(),notice_id:n.data("noticeid")}})})})}(jQuery);
|
bp-core/bp-core-actions.php
CHANGED
@@ -55,6 +55,7 @@ add_action( 'generate_rewrite_rules', 'bp_generate_rewrite_rules', 10 );
|
|
55 |
*/
|
56 |
add_action( 'bp_loaded', 'bp_setup_components', 2 );
|
57 |
add_action( 'bp_loaded', 'bp_include', 4 );
|
|
|
58 |
add_action( 'bp_loaded', 'bp_setup_cache_groups', 5 );
|
59 |
add_action( 'bp_loaded', 'bp_setup_widgets', 6 );
|
60 |
add_action( 'bp_loaded', 'bp_register_theme_packages', 12 );
|
55 |
*/
|
56 |
add_action( 'bp_loaded', 'bp_setup_components', 2 );
|
57 |
add_action( 'bp_loaded', 'bp_include', 4 );
|
58 |
+
add_action( 'bp_loaded', 'bp_setup_option_filters', 5 );
|
59 |
add_action( 'bp_loaded', 'bp_setup_cache_groups', 5 );
|
60 |
add_action( 'bp_loaded', 'bp_setup_widgets', 6 );
|
61 |
add_action( 'bp_loaded', 'bp_register_theme_packages', 12 );
|
bp-core/bp-core-adminbar.php
CHANGED
@@ -39,12 +39,6 @@ function bp_admin_bar_my_account_root() {
|
|
39 |
'class' => 'ab-sub-secondary'
|
40 |
)
|
41 |
) );
|
42 |
-
|
43 |
-
// Remove 'Edit' post link as it's not applicable to BP.
|
44 |
-
// Remove when https://core.trac.wordpress.org/ticket/29538 is addressed.
|
45 |
-
if ( is_buddypress() ) {
|
46 |
-
$wp_admin_bar->remove_node( 'edit' );
|
47 |
-
}
|
48 |
}
|
49 |
}
|
50 |
add_action( 'admin_bar_menu', 'bp_admin_bar_my_account_root', 100 );
|
39 |
'class' => 'ab-sub-secondary'
|
40 |
)
|
41 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
}
|
44 |
add_action( 'admin_bar_menu', 'bp_admin_bar_my_account_root', 100 );
|
bp-core/bp-core-attachments.php
CHANGED
@@ -949,7 +949,7 @@ function bp_attachments_get_template_part( $slug ) {
|
|
949 |
* @since 2.4.0
|
950 |
*
|
951 |
* @param string $component The component to get the settings for ("xprofile" for user or "groups").
|
952 |
-
* @return array
|
953 |
*/
|
954 |
function bp_attachments_get_cover_image_settings( $component = 'xprofile' ) {
|
955 |
// Default parameters.
|
@@ -1110,7 +1110,7 @@ function bp_attachments_get_group_has_cover_image( $group_id = 0 ) {
|
|
1110 |
* @type string $cover_image_dir The Cover image dir to write the image into. Required.
|
1111 |
* }
|
1112 |
* @param BP_Attachment_Cover_Image|null $cover_image_class The class to use to fit the cover image.
|
1113 |
-
* @return
|
1114 |
*/
|
1115 |
function bp_attachments_cover_image_generate_file( $args = array(), $cover_image_class = null ) {
|
1116 |
// Bail if an argument is missing.
|
949 |
* @since 2.4.0
|
950 |
*
|
951 |
* @param string $component The component to get the settings for ("xprofile" for user or "groups").
|
952 |
+
* @return false|array The cover image settings in array, false on failure.
|
953 |
*/
|
954 |
function bp_attachments_get_cover_image_settings( $component = 'xprofile' ) {
|
955 |
// Default parameters.
|
1110 |
* @type string $cover_image_dir The Cover image dir to write the image into. Required.
|
1111 |
* }
|
1112 |
* @param BP_Attachment_Cover_Image|null $cover_image_class The class to use to fit the cover image.
|
1113 |
+
* @return false|array An array containing cover image data on success, false otherwise.
|
1114 |
*/
|
1115 |
function bp_attachments_cover_image_generate_file( $args = array(), $cover_image_class = null ) {
|
1116 |
// Bail if an argument is missing.
|
bp-core/bp-core-avatars.php
CHANGED
@@ -1361,104 +1361,49 @@ function bp_avatar_ajax_set() {
|
|
1361 |
add_action( 'wp_ajax_bp_avatar_set', 'bp_avatar_ajax_set' );
|
1362 |
|
1363 |
/**
|
1364 |
-
*
|
1365 |
*
|
1366 |
-
*
|
1367 |
*
|
1368 |
-
* @
|
1369 |
-
* @
|
1370 |
-
*
|
1371 |
-
* @param
|
1372 |
-
* @
|
1373 |
-
* @param int $size Size of the avatar image ('thumb' or 'full').
|
1374 |
-
* @param string $default URL to a default image to use if no avatar is available.
|
1375 |
-
* @param string $alt Alternate text to use in image tag. Default: ''.
|
1376 |
-
* @param array $args Arguments passed to get_avatar_data(), after processing.
|
1377 |
-
* @return string BP avatar path, if found; else the original avatar path.
|
1378 |
*/
|
1379 |
-
function
|
1380 |
-
|
1381 |
-
|
1382 |
-
//
|
1383 |
-
if (
|
1384 |
-
|
1385 |
-
}
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
//
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
// If passed a string and that string returns a user, get the $id.
|
1400 |
-
} elseif ( is_string( $user ) && ( $user_by_email = get_user_by( 'email', $user ) ) ) {
|
1401 |
-
$id = $user_by_email->ID;
|
1402 |
-
}
|
1403 |
-
|
1404 |
-
// If somehow $id hasn't been assigned, return the result of get_avatar.
|
1405 |
-
if ( empty( $id ) ) {
|
1406 |
-
return !empty( $avatar ) ? $avatar : $default;
|
1407 |
-
}
|
1408 |
-
|
1409 |
-
// Image alt tag.
|
1410 |
-
if ( empty( $alt ) ) {
|
1411 |
-
$alt = sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $id ) );
|
1412 |
-
}
|
1413 |
-
|
1414 |
-
// Use the 'thumb' type, unless the requested width is bigger than
|
1415 |
-
// BP's thumb width.
|
1416 |
-
$type = 'thumb';
|
1417 |
-
if ( (int) $size > bp_core_avatar_thumb_width() ) {
|
1418 |
-
$type = 'full';
|
1419 |
}
|
1420 |
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
'width' => $size,
|
1425 |
-
'height' => $size,
|
1426 |
-
'alt' => $alt,
|
1427 |
-
);
|
1428 |
|
1429 |
-
//
|
1430 |
-
if (
|
1431 |
-
|
1432 |
-
}
|
1433 |
-
if ( ! empty( $args['height'] ) ) {
|
1434 |
-
$avatar_args['height'] = $args['height'];
|
1435 |
-
}
|
1436 |
-
if ( ! empty( $args['class'] ) ) {
|
1437 |
-
$avatar_args['class'] = $args['class'];
|
1438 |
-
}
|
1439 |
-
if ( ! empty( $args['class'] ) ) {
|
1440 |
-
$avatar_args['class'] = $args['class'];
|
1441 |
}
|
1442 |
-
if ( ! empty( $args['extra_attr'] ) ) {
|
1443 |
-
$avatar_args['extra_attr'] = $args['extra_attr'];
|
1444 |
-
}
|
1445 |
-
if ( ! empty( $args['scheme'] ) ) {
|
1446 |
-
$avatar_args['scheme'] = $args['scheme'];
|
1447 |
-
}
|
1448 |
-
if ( ! empty( $args['force_default'] ) ) {
|
1449 |
-
$avatar_args['force_default'] = $args['force_default'];
|
1450 |
-
}
|
1451 |
-
if ( ! empty( $args['rating'] ) ) {
|
1452 |
-
$avatar_args['rating'] = $args['rating'];
|
1453 |
-
}
|
1454 |
-
|
1455 |
-
// Let BuddyPress handle the fetching of the avatar.
|
1456 |
-
$bp_avatar = bp_core_fetch_avatar( $avatar_args );
|
1457 |
|
1458 |
-
|
1459 |
-
return ( !$bp_avatar ) ? $avatar : $bp_avatar;
|
1460 |
}
|
1461 |
-
add_filter( '
|
1462 |
|
1463 |
/**
|
1464 |
* Is the current avatar upload error-free?
|
1361 |
add_action( 'wp_ajax_bp_avatar_set', 'bp_avatar_ajax_set' );
|
1362 |
|
1363 |
/**
|
1364 |
+
* Filter {@link get_avatar_url()} to use the BuddyPress user avatar URL.
|
1365 |
*
|
1366 |
+
* @since 2.9.0
|
1367 |
*
|
1368 |
+
* @param string $retval The URL of the avatar.
|
1369 |
+
* @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash,
|
1370 |
+
* user email, WP_User object, WP_Post object, or WP_Comment object.
|
1371 |
+
* @param array $args Arguments passed to get_avatar_data(), after processing.
|
1372 |
+
* @return string
|
|
|
|
|
|
|
|
|
|
|
1373 |
*/
|
1374 |
+
function bp_core_get_avatar_data_url_filter( $retval, $id_or_email, $args ) {
|
1375 |
+
$user = null;
|
1376 |
+
|
1377 |
+
// Ugh, hate duplicating code; process the user identifier.
|
1378 |
+
if ( is_numeric( $id_or_email ) ) {
|
1379 |
+
$user = get_user_by( 'id', absint( $id_or_email ) );
|
1380 |
+
} elseif ( $id_or_email instanceof WP_User ) {
|
1381 |
+
// User Object
|
1382 |
+
$user = $id_or_email;
|
1383 |
+
} elseif ( $id_or_email instanceof WP_Post ) {
|
1384 |
+
// Post Object
|
1385 |
+
$user = get_user_by( 'id', (int) $id_or_email->post_author );
|
1386 |
+
} elseif ( $id_or_email instanceof WP_Comment && ! empty( $id_or_email->user_id ) ) {
|
1387 |
+
$user = get_user_by( 'id', (int) $id_or_email->user_id );
|
1388 |
+
}
|
1389 |
+
|
1390 |
+
// No user, so bail.
|
1391 |
+
if ( null === $user ) {
|
1392 |
+
return $retval;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1393 |
}
|
1394 |
|
1395 |
+
// Set BuddyPress-specific avatar args.
|
1396 |
+
$args['item_id'] = $user->ID;
|
1397 |
+
$args['html'] = false;
|
|
|
|
|
|
|
|
|
1398 |
|
1399 |
+
// Get the BuddyPress avatar URL.
|
1400 |
+
if ( $bp_avatar = bp_core_fetch_avatar( $args ) ) {
|
1401 |
+
return $bp_avatar;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1402 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1403 |
|
1404 |
+
return $retval;
|
|
|
1405 |
}
|
1406 |
+
add_filter( 'get_avatar_url', 'bp_core_get_avatar_data_url_filter', 10, 3 );
|
1407 |
|
1408 |
/**
|
1409 |
* Is the current avatar upload error-free?
|
bp-core/bp-core-buddybar.php
CHANGED
@@ -34,7 +34,7 @@ defined( 'ABSPATH' ) || exit;
|
|
34 |
* item is clicked.
|
35 |
* }
|
36 |
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
37 |
-
* @return
|
38 |
*/
|
39 |
function bp_core_new_nav_item( $args, $component = 'members' ) {
|
40 |
if ( ! bp_is_active( $component ) ) {
|
@@ -108,7 +108,7 @@ function bp_core_new_nav_item( $args, $component = 'members' ) {
|
|
108 |
* item is clicked.
|
109 |
* }
|
110 |
* @param string $component Optional. Component that the nav belongs to.
|
111 |
-
* @return
|
112 |
*/
|
113 |
function bp_core_create_nav_link( $args = '', $component = 'members' ) {
|
114 |
$bp = buddypress();
|
@@ -190,7 +190,7 @@ function bp_core_create_nav_link( $args = '', $component = 'members' ) {
|
|
190 |
* @type bool|string $default_subnav_slug Optional. The slug of the default subnav item to select when the nav
|
191 |
* item is clicked.
|
192 |
* }
|
193 |
-
* @return
|
194 |
*/
|
195 |
function bp_core_register_nav_screen_function( $args = '' ) {
|
196 |
$bp = buddypress();
|
@@ -394,8 +394,8 @@ function bp_core_new_nav_default( $args = '' ) {
|
|
394 |
* @type bool $show_in_admin_bar Optional. Whether the nav item should be added into the group's "Edit"
|
395 |
* Admin Bar menu for group admins. Default: false.
|
396 |
* }
|
397 |
-
* @param string
|
398 |
-
* @return
|
399 |
*/
|
400 |
function bp_core_new_subnav_item( $args, $component = null ) {
|
401 |
// Backward compatibility for plugins using `bp_core_new_subnav_item()` without `$component`
|
@@ -475,7 +475,7 @@ function bp_core_new_subnav_item( $args, $component = null ) {
|
|
475 |
* Default: false.
|
476 |
* }
|
477 |
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
478 |
-
* @return
|
479 |
*/
|
480 |
function bp_core_create_subnav_link( $args = '', $component = 'members' ) {
|
481 |
$bp = buddypress();
|
@@ -571,7 +571,7 @@ function bp_core_create_subnav_link( $args = '', $component = 'members' ) {
|
|
571 |
* Default: false.
|
572 |
* }
|
573 |
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
574 |
-
* @return
|
575 |
*/
|
576 |
function bp_core_register_subnav_screen_function( $args = '', $component = 'members' ) {
|
577 |
$bp = buddypress();
|
@@ -775,8 +775,8 @@ function bp_nav_item_has_subnav( $nav_item = '', $component = 'members' ) {
|
|
775 |
* @since 1.0.0
|
776 |
* @since 2.6.0 Introduced the `$component` parameter.
|
777 |
*
|
778 |
-
* @param string
|
779 |
-
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
780 |
* @return bool Returns false on failure, True on success.
|
781 |
*/
|
782 |
function bp_core_remove_nav_item( $slug, $component = null ) {
|
@@ -823,9 +823,9 @@ function bp_core_remove_nav_item( $slug, $component = null ) {
|
|
823 |
* @since 1.0.0
|
824 |
* @since 2.6.0 Introduced the `$component` parameter.
|
825 |
*
|
826 |
-
* @param string
|
827 |
-
* @param string
|
828 |
-
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
829 |
* @return bool Returns false on failure, True on success.
|
830 |
*/
|
831 |
function bp_core_remove_subnav_item( $parent_slug, $slug, $component = null ) {
|
34 |
* item is clicked.
|
35 |
* }
|
36 |
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
37 |
+
* @return null|false Returns false on failure.
|
38 |
*/
|
39 |
function bp_core_new_nav_item( $args, $component = 'members' ) {
|
40 |
if ( ! bp_is_active( $component ) ) {
|
108 |
* item is clicked.
|
109 |
* }
|
110 |
* @param string $component Optional. Component that the nav belongs to.
|
111 |
+
* @return false|array Returns false on failure, new nav item on success.
|
112 |
*/
|
113 |
function bp_core_create_nav_link( $args = '', $component = 'members' ) {
|
114 |
$bp = buddypress();
|
190 |
* @type bool|string $default_subnav_slug Optional. The slug of the default subnav item to select when the nav
|
191 |
* item is clicked.
|
192 |
* }
|
193 |
+
* @return false|null Returns false on failure.
|
194 |
*/
|
195 |
function bp_core_register_nav_screen_function( $args = '' ) {
|
196 |
$bp = buddypress();
|
394 |
* @type bool $show_in_admin_bar Optional. Whether the nav item should be added into the group's "Edit"
|
395 |
* Admin Bar menu for group admins. Default: false.
|
396 |
* }
|
397 |
+
* @param string|null $component The component the navigation is attached to. Defaults to 'members'.
|
398 |
+
* @return null|false Returns false on failure.
|
399 |
*/
|
400 |
function bp_core_new_subnav_item( $args, $component = null ) {
|
401 |
// Backward compatibility for plugins using `bp_core_new_subnav_item()` without `$component`
|
475 |
* Default: false.
|
476 |
* }
|
477 |
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
478 |
+
* @return false|array Returns false on failure, new BP_Core_Nav_Item instance on success.
|
479 |
*/
|
480 |
function bp_core_create_subnav_link( $args = '', $component = 'members' ) {
|
481 |
$bp = buddypress();
|
571 |
* Default: false.
|
572 |
* }
|
573 |
* @param string $component The component the navigation is attached to. Defaults to 'members'.
|
574 |
+
* @return null|false Returns false on failure.
|
575 |
*/
|
576 |
function bp_core_register_subnav_screen_function( $args = '', $component = 'members' ) {
|
577 |
$bp = buddypress();
|
775 |
* @since 1.0.0
|
776 |
* @since 2.6.0 Introduced the `$component` parameter.
|
777 |
*
|
778 |
+
* @param string $slug The slug of the primary navigation item.
|
779 |
+
* @param string|null $component The component the navigation is attached to. Defaults to 'members'.
|
780 |
* @return bool Returns false on failure, True on success.
|
781 |
*/
|
782 |
function bp_core_remove_nav_item( $slug, $component = null ) {
|
823 |
* @since 1.0.0
|
824 |
* @since 2.6.0 Introduced the `$component` parameter.
|
825 |
*
|
826 |
+
* @param string $parent_slug The slug of the primary navigation item.
|
827 |
+
* @param string $slug The slug of the secondary item to be removed.
|
828 |
+
* @param string|null $component The component the navigation is attached to. Defaults to 'members'.
|
829 |
* @return bool Returns false on failure, True on success.
|
830 |
*/
|
831 |
function bp_core_remove_subnav_item( $parent_slug, $slug, $component = null ) {
|
bp-core/bp-core-cache.php
CHANGED
@@ -73,19 +73,22 @@ add_action( 'deleted_user', 'bp_core_clear_member_count_caches
|
|
73 |
*
|
74 |
* @param int $post_id ID of the page that was saved.
|
75 |
*/
|
76 |
-
function bp_core_clear_directory_pages_cache_page_edit( $post_id ) {
|
77 |
-
if ( ! bp_is_root_blog() ) {
|
78 |
-
return;
|
79 |
-
}
|
80 |
|
81 |
// Bail if BP is not defined here.
|
82 |
if ( ! buddypress() ) {
|
83 |
return;
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
|
|
86 |
$page_ids = bp_core_get_directory_page_ids( 'all' );
|
87 |
|
88 |
-
|
|
|
89 |
return;
|
90 |
}
|
91 |
|
@@ -191,7 +194,7 @@ function bp_get_non_cached_ids( $item_ids, $cache_group ) {
|
|
191 |
* @type string $cache_key_prefix Optional. The prefix to use when creating
|
192 |
* cache key names. Default: the value of $meta_table.
|
193 |
* }
|
194 |
-
* @return array
|
195 |
*/
|
196 |
function bp_update_meta_cache( $args = array() ) {
|
197 |
global $wpdb;
|
73 |
*
|
74 |
* @param int $post_id ID of the page that was saved.
|
75 |
*/
|
76 |
+
function bp_core_clear_directory_pages_cache_page_edit( $post_id = 0 ) {
|
|
|
|
|
|
|
77 |
|
78 |
// Bail if BP is not defined here.
|
79 |
if ( ! buddypress() ) {
|
80 |
return;
|
81 |
}
|
82 |
|
83 |
+
// Bail if not on the root blog
|
84 |
+
if ( ! bp_is_root_blog() ) {
|
85 |
+
return;
|
86 |
+
}
|
87 |
+
|
88 |
$page_ids = bp_core_get_directory_page_ids( 'all' );
|
89 |
|
90 |
+
// Bail if post ID is not a directory page
|
91 |
+
if ( ! in_array( $post_id, $page_ids ) ) {
|
92 |
return;
|
93 |
}
|
94 |
|
194 |
* @type string $cache_key_prefix Optional. The prefix to use when creating
|
195 |
* cache key names. Default: the value of $meta_table.
|
196 |
* }
|
197 |
+
* @return false|array Metadata cache for the specified objects, or false on failure.
|
198 |
*/
|
199 |
function bp_update_meta_cache( $args = array() ) {
|
200 |
global $wpdb;
|
bp-core/bp-core-catchuri.php
CHANGED
@@ -670,7 +670,10 @@ function bp_core_no_access( $args = '' ) {
|
|
670 |
// Error message is displayed with bp_core_no_access_wp_login_error().
|
671 |
case 2 :
|
672 |
if ( !empty( $redirect ) ) {
|
673 |
-
bp_core_redirect( add_query_arg( array(
|
|
|
|
|
|
|
674 |
} else {
|
675 |
bp_core_redirect( $root );
|
676 |
}
|
@@ -697,6 +700,35 @@ function bp_core_no_access( $args = '' ) {
|
|
697 |
}
|
698 |
}
|
699 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
700 |
/**
|
701 |
* Add a custom BuddyPress no access error message to wp-login.php.
|
702 |
*
|
@@ -996,7 +1028,7 @@ add_action( 'bp_init', '_bp_maybe_remove_redirect_canonical' );
|
|
996 |
* @link https://buddypress.trac.wordpress.org/ticket/4415
|
997 |
*/
|
998 |
function _bp_rehook_maybe_redirect_404() {
|
999 |
-
if ( defined( 'NOBLOGREDIRECT' ) ) {
|
1000 |
remove_action( 'template_redirect', 'maybe_redirect_404' );
|
1001 |
add_action( 'template_redirect', 'maybe_redirect_404', 100 );
|
1002 |
}
|
670 |
// Error message is displayed with bp_core_no_access_wp_login_error().
|
671 |
case 2 :
|
672 |
if ( !empty( $redirect ) ) {
|
673 |
+
bp_core_redirect( add_query_arg( array(
|
674 |
+
'bp-auth' => 1,
|
675 |
+
'action' => 'bpnoaccess'
|
676 |
+
), wp_login_url( $redirect ) ) );
|
677 |
} else {
|
678 |
bp_core_redirect( $root );
|
679 |
}
|
700 |
}
|
701 |
}
|
702 |
|
703 |
+
/**
|
704 |
+
* Login redirector.
|
705 |
+
*
|
706 |
+
* If a link is not publicly available, we can send members from external
|
707 |
+
* locations, like following links in an email, through the login screen.
|
708 |
+
*
|
709 |
+
* If a user clicks on this link and is already logged in, we should attempt
|
710 |
+
* to redirect the user to the authorized content instead of forcing the user
|
711 |
+
* to re-authenticate.
|
712 |
+
*
|
713 |
+
* @since 2.9.0
|
714 |
+
*/
|
715 |
+
function bp_login_redirector() {
|
716 |
+
// Redirect links must include the `redirect_to` and `bp-auth` parameters.
|
717 |
+
if ( empty( $_GET['redirect_to'] ) || empty( $_GET['bp-auth'] ) ) {
|
718 |
+
return;
|
719 |
+
}
|
720 |
+
|
721 |
+
/*
|
722 |
+
* If the user is already logged in,
|
723 |
+
* skip the login form and redirect them to the content.
|
724 |
+
*/
|
725 |
+
if ( bp_loggedin_user_id() ) {
|
726 |
+
wp_safe_redirect( esc_url_raw( $_GET['redirect_to'] ) );
|
727 |
+
exit;
|
728 |
+
}
|
729 |
+
}
|
730 |
+
add_action( 'login_init', 'bp_login_redirector', 1 );
|
731 |
+
|
732 |
/**
|
733 |
* Add a custom BuddyPress no access error message to wp-login.php.
|
734 |
*
|
1028 |
* @link https://buddypress.trac.wordpress.org/ticket/4415
|
1029 |
*/
|
1030 |
function _bp_rehook_maybe_redirect_404() {
|
1031 |
+
if ( defined( 'NOBLOGREDIRECT' ) && is_multisite() ) {
|
1032 |
remove_action( 'template_redirect', 'maybe_redirect_404' );
|
1033 |
add_action( 'template_redirect', 'maybe_redirect_404', 100 );
|
1034 |
}
|
bp-core/bp-core-cssjs.php
CHANGED
@@ -410,8 +410,8 @@ function bp_core_get_js_dependencies() {
|
|
410 |
* @since 2.4.0
|
411 |
*
|
412 |
* @param bool $return True to get the inline css.
|
413 |
-
* @return
|
414 |
-
*
|
415 |
*/
|
416 |
function bp_add_cover_image_inline_css( $return = false ) {
|
417 |
$bp = buddypress();
|
410 |
* @since 2.4.0
|
411 |
*
|
412 |
* @param bool $return True to get the inline css.
|
413 |
+
* @return null|array|false The inline css or an associative array containing
|
414 |
+
* the css rules and the style handle.
|
415 |
*/
|
416 |
function bp_add_cover_image_inline_css( $return = false ) {
|
417 |
$bp = buddypress();
|
bp-core/bp-core-filters.php
CHANGED
@@ -352,7 +352,7 @@ add_filter( 'bp_login_redirect', 'bp_core_login_redirect', 10, 3 );
|
|
352 |
* @param string $retval Current email content.
|
353 |
* @param string $prop Email property to check against.
|
354 |
* @param string $transform Either 'raw' or 'replace-tokens'.
|
355 |
-
* @return string $retval Modified email content.
|
356 |
*/
|
357 |
function bp_email_plaintext_entity_decode( $retval, $prop, $transform ) {
|
358 |
switch ( $prop ) {
|
@@ -467,7 +467,7 @@ function bp_core_activation_signup_blog_notification( $domain, $path, $title, $u
|
|
467 |
'domain' => $domain,
|
468 |
'key_blog' => $key,
|
469 |
'path' => $path,
|
470 |
-
'user-site.url' => esc_url( "http://{$domain}{$path}" ),
|
471 |
'title' => $title,
|
472 |
'user.email' => $user_email,
|
473 |
),
|
@@ -490,7 +490,7 @@ add_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_not
|
|
490 |
* @param string $user_email The user's email address.
|
491 |
* @param string $key The activation key created in wpmu_signup_user().
|
492 |
* @param array $meta By default, an empty array.
|
493 |
-
* @return
|
494 |
*/
|
495 |
function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
|
496 |
if ( is_admin() ) {
|
@@ -858,8 +858,8 @@ function bp_filter_metaid_column_name( $q ) {
|
|
858 |
*
|
859 |
* @param string $edit_link The edit link.
|
860 |
* @param int $post_id Post ID.
|
861 |
-
* @return
|
862 |
-
*
|
863 |
*/
|
864 |
function bp_core_filter_edit_post_link( $edit_link = '', $post_id = 0 ) {
|
865 |
if ( 0 === $post_id ) {
|
352 |
* @param string $retval Current email content.
|
353 |
* @param string $prop Email property to check against.
|
354 |
* @param string $transform Either 'raw' or 'replace-tokens'.
|
355 |
+
* @return string|null $retval Modified email content.
|
356 |
*/
|
357 |
function bp_email_plaintext_entity_decode( $retval, $prop, $transform ) {
|
358 |
switch ( $prop ) {
|
467 |
'domain' => $domain,
|
468 |
'key_blog' => $key,
|
469 |
'path' => $path,
|
470 |
+
'user-site.url' => esc_url( set_url_scheme( "http://{$domain}{$path}" ) ),
|
471 |
'title' => $title,
|
472 |
'user.email' => $user_email,
|
473 |
),
|
490 |
* @param string $user_email The user's email address.
|
491 |
* @param string $key The activation key created in wpmu_signup_user().
|
492 |
* @param array $meta By default, an empty array.
|
493 |
+
* @return false|string Returns false to stop original WPMU function from continuing.
|
494 |
*/
|
495 |
function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
|
496 |
if ( is_admin() ) {
|
858 |
*
|
859 |
* @param string $edit_link The edit link.
|
860 |
* @param int $post_id Post ID.
|
861 |
+
* @return false|string Will be a boolean (false) if $post_id is 0. Will be a string (the unchanged edit link)
|
862 |
+
* otherwise
|
863 |
*/
|
864 |
function bp_core_filter_edit_post_link( $edit_link = '', $post_id = 0 ) {
|
865 |
if ( 0 === $post_id ) {
|
bp-core/bp-core-functions.php
CHANGED
@@ -488,30 +488,29 @@ function bp_core_get_packaged_component_ids() {
|
|
488 |
* empty string if the list is not found.
|
489 |
*/
|
490 |
function bp_core_get_directory_page_ids( $status = 'active' ) {
|
491 |
-
$page_ids = bp_get_option( 'bp-pages' );
|
492 |
|
493 |
-
//
|
494 |
-
|
495 |
-
foreach( (array) $page_ids as $component_name => $page_id ) {
|
496 |
-
if ( empty( $component_name ) || empty( $page_id ) ) {
|
497 |
-
unset( $page_ids[ $component_name ] );
|
498 |
-
}
|
499 |
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
|
505 |
-
|
506 |
-
|
507 |
-
|
|
|
508 |
|
509 |
-
|
|
|
|
|
|
|
510 |
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
}
|
515 |
}
|
516 |
}
|
517 |
|
@@ -519,10 +518,12 @@ function bp_core_get_directory_page_ids( $status = 'active' ) {
|
|
519 |
* Filters the list of BP directory pages from the appropriate meta table.
|
520 |
*
|
521 |
* @since 1.5.0
|
|
|
522 |
*
|
523 |
-
* @param array
|
|
|
524 |
*/
|
525 |
-
return apply_filters( 'bp_core_get_directory_page_ids', $page_ids );
|
526 |
}
|
527 |
|
528 |
/**
|
@@ -530,8 +531,8 @@ function bp_core_get_directory_page_ids( $status = 'active' ) {
|
|
530 |
*
|
531 |
* @since 2.6.0
|
532 |
*
|
533 |
-
* @param string $component The slug representing the component. Defaults to the current component.
|
534 |
-
* @return int|
|
535 |
*/
|
536 |
function bp_core_get_directory_page_id( $component = null ) {
|
537 |
if ( ! $component ) {
|
@@ -662,7 +663,7 @@ function bp_core_add_page_mappings( $components, $existing = 'keep' ) {
|
|
662 |
|
663 |
// Delete any existing pages.
|
664 |
if ( 'delete' === $existing ) {
|
665 |
-
foreach (
|
666 |
wp_delete_post( $page_id, true );
|
667 |
}
|
668 |
|
@@ -854,7 +855,7 @@ function bp_core_add_root_component( $slug ) {
|
|
854 |
|
855 |
// If there was no match, add a page for this root component.
|
856 |
if ( empty( $match ) ) {
|
857 |
-
$add_root_items = $bp->add_root
|
858 |
$add_root_items[] = $slug;
|
859 |
$bp->add_root = $add_root_items;
|
860 |
}
|
@@ -888,7 +889,7 @@ function bp_core_create_root_component_page() {
|
|
888 |
) );
|
889 |
}
|
890 |
|
891 |
-
$page_ids = array_merge(
|
892 |
bp_core_update_directory_page_ids( $page_ids );
|
893 |
}
|
894 |
|
@@ -912,7 +913,7 @@ function bp_core_add_illegal_names() {
|
|
912 |
* @since 2.7.0 The `$component` parameter was made optional, with the current component
|
913 |
* as the fallback value.
|
914 |
*
|
915 |
-
* @param string $component Optional. Component name. Defaults to current component.
|
916 |
* @return string|bool Query argument on success. False on failure.
|
917 |
*/
|
918 |
function bp_core_get_component_search_query_arg( $component = null ) {
|
@@ -1329,7 +1330,7 @@ function bp_core_time_since( $older_date, $newer_date = false ) {
|
|
1329 |
* @since 2.7.0
|
1330 |
*
|
1331 |
* @param string String of date to convert. Timezone should be UTC before using this.
|
1332 |
-
* @return string
|
1333 |
*/
|
1334 |
function bp_core_iso8601_date( $timestamp = '' ) {
|
1335 |
echo bp_core_get_iso8601_date( $timestamp );
|
@@ -1488,7 +1489,7 @@ function bp_core_render_message() {
|
|
1488 |
*
|
1489 |
* usermeta table.
|
1490 |
*
|
1491 |
-
* @return
|
1492 |
*/
|
1493 |
function bp_core_record_activity() {
|
1494 |
|
@@ -1776,7 +1777,7 @@ function bp_use_embed_in_private_messages() {
|
|
1776 |
* @param string $content The content to check.
|
1777 |
* @param string|int $type The type to check. Can also use a bitmask. See the class constants in the
|
1778 |
* BP_Media_Extractor class for more info.
|
1779 |
-
* @return array
|
1780 |
*/
|
1781 |
function bp_core_extract_media_from_content( $content = '', $type = 'all' ) {
|
1782 |
if ( is_string( $type ) ) {
|
488 |
* empty string if the list is not found.
|
489 |
*/
|
490 |
function bp_core_get_directory_page_ids( $status = 'active' ) {
|
491 |
+
$page_ids = bp_get_option( 'bp-pages', array() );
|
492 |
|
493 |
+
// Loop through pages
|
494 |
+
foreach ( $page_ids as $component_name => $page_id ) {
|
|
|
|
|
|
|
|
|
495 |
|
496 |
+
// Ensure that empty indexes are unset. Should only matter in edge cases.
|
497 |
+
if ( empty( $component_name ) || empty( $page_id ) ) {
|
498 |
+
unset( $page_ids[ $component_name ] );
|
499 |
+
}
|
500 |
|
501 |
+
// Trashed pages should never appear in results.
|
502 |
+
if ( 'trash' == get_post_status( $page_id ) ) {
|
503 |
+
unset( $page_ids[ $component_name ] );
|
504 |
+
}
|
505 |
|
506 |
+
// 'register' and 'activate' do not have components, but should be whitelisted.
|
507 |
+
if ( in_array( $component_name, array( 'register', 'activate' ), true ) ) {
|
508 |
+
continue;
|
509 |
+
}
|
510 |
|
511 |
+
// Remove inactive component pages.
|
512 |
+
if ( ( 'active' === $status ) && ! bp_is_active( $component_name ) ) {
|
513 |
+
unset( $page_ids[ $component_name ] );
|
|
|
514 |
}
|
515 |
}
|
516 |
|
518 |
* Filters the list of BP directory pages from the appropriate meta table.
|
519 |
*
|
520 |
* @since 1.5.0
|
521 |
+
* @since 2.9.0 Add $status parameter
|
522 |
*
|
523 |
+
* @param array $page_ids Array of directory pages.
|
524 |
+
* @param string $status Page status to limit results to
|
525 |
*/
|
526 |
+
return (array) apply_filters( 'bp_core_get_directory_page_ids', $page_ids, $status );
|
527 |
}
|
528 |
|
529 |
/**
|
531 |
*
|
532 |
* @since 2.6.0
|
533 |
*
|
534 |
+
* @param string|null $component The slug representing the component. Defaults to the current component.
|
535 |
+
* @return int|false The ID of the directory page associated with the component. False if none is found.
|
536 |
*/
|
537 |
function bp_core_get_directory_page_id( $component = null ) {
|
538 |
if ( ! $component ) {
|
663 |
|
664 |
// Delete any existing pages.
|
665 |
if ( 'delete' === $existing ) {
|
666 |
+
foreach ( $pages as $page_id ) {
|
667 |
wp_delete_post( $page_id, true );
|
668 |
}
|
669 |
|
855 |
|
856 |
// If there was no match, add a page for this root component.
|
857 |
if ( empty( $match ) ) {
|
858 |
+
$add_root_items = $bp->add_root;
|
859 |
$add_root_items[] = $slug;
|
860 |
$bp->add_root = $add_root_items;
|
861 |
}
|
889 |
) );
|
890 |
}
|
891 |
|
892 |
+
$page_ids = array_merge( $new_page_ids, bp_core_get_directory_page_ids( 'all' ) );
|
893 |
bp_core_update_directory_page_ids( $page_ids );
|
894 |
}
|
895 |
|
913 |
* @since 2.7.0 The `$component` parameter was made optional, with the current component
|
914 |
* as the fallback value.
|
915 |
*
|
916 |
+
* @param string|null $component Optional. Component name. Defaults to current component.
|
917 |
* @return string|bool Query argument on success. False on failure.
|
918 |
*/
|
919 |
function bp_core_get_component_search_query_arg( $component = null ) {
|
1330 |
* @since 2.7.0
|
1331 |
*
|
1332 |
* @param string String of date to convert. Timezone should be UTC before using this.
|
1333 |
+
* @return string|null
|
1334 |
*/
|
1335 |
function bp_core_iso8601_date( $timestamp = '' ) {
|
1336 |
echo bp_core_get_iso8601_date( $timestamp );
|
1489 |
*
|
1490 |
* usermeta table.
|
1491 |
*
|
1492 |
+
* @return false|null Returns false if there is nothing to do.
|
1493 |
*/
|
1494 |
function bp_core_record_activity() {
|
1495 |
|
1777 |
* @param string $content The content to check.
|
1778 |
* @param string|int $type The type to check. Can also use a bitmask. See the class constants in the
|
1779 |
* BP_Media_Extractor class for more info.
|
1780 |
+
* @return false|array If media exists, will return array of media metadata. Else, boolean false.
|
1781 |
*/
|
1782 |
function bp_core_extract_media_from_content( $content = '', $type = 'all' ) {
|
1783 |
if ( is_string( $type ) ) {
|
bp-core/bp-core-moderation.php
CHANGED
@@ -53,7 +53,7 @@ function bp_core_check_for_flood( $user_id = 0 ) {
|
|
53 |
* @param string $title The title of the content.
|
54 |
* @param string $content The content being posted.
|
55 |
* @param string $error_type The error type to return. Either 'bool' or 'wp_error'.
|
56 |
-
* @return bool True if test is passed, false if fail.
|
57 |
*/
|
58 |
function bp_core_check_for_moderation( $user_id = 0, $title = '', $content = '', $error_type = 'bool' ) {
|
59 |
|
@@ -196,7 +196,7 @@ function bp_core_check_for_moderation( $user_id = 0, $title = '', $content = '',
|
|
196 |
* @param string $title The title of the content.
|
197 |
* @param string $content The content being posted.
|
198 |
* @param string $error_type The error type to return. Either 'bool' or 'wp_error'.
|
199 |
-
* @return bool True if test is passed, false if fail.
|
200 |
*/
|
201 |
function bp_core_check_for_blacklist( $user_id = 0, $title = '', $content = '', $error_type = 'bool' ) {
|
202 |
|
53 |
* @param string $title The title of the content.
|
54 |
* @param string $content The content being posted.
|
55 |
* @param string $error_type The error type to return. Either 'bool' or 'wp_error'.
|
56 |
+
* @return bool|WP_Error True if test is passed, false if fail.
|
57 |
*/
|
58 |
function bp_core_check_for_moderation( $user_id = 0, $title = '', $content = '', $error_type = 'bool' ) {
|
59 |
|
196 |
* @param string $title The title of the content.
|
197 |
* @param string $content The content being posted.
|
198 |
* @param string $error_type The error type to return. Either 'bool' or 'wp_error'.
|
199 |
+
* @return bool|WP_Error True if test is passed, false if fail.
|
200 |
*/
|
201 |
function bp_core_check_for_blacklist( $user_id = 0, $title = '', $content = '', $error_type = 'bool' ) {
|
202 |
|
bp-core/bp-core-options.php
CHANGED
@@ -188,8 +188,6 @@ function bp_delete_options() {
|
|
188 |
/**
|
189 |
* Add filters to each BP option, allowing them to be overloaded from inside the $bp->options array.
|
190 |
*
|
191 |
-
* Currently unused.
|
192 |
-
*
|
193 |
* @since 1.6.0
|
194 |
*/
|
195 |
function bp_setup_option_filters() {
|
@@ -215,8 +213,6 @@ function bp_setup_option_filters() {
|
|
215 |
/**
|
216 |
* Filter default options and allow them to be overloaded from inside the $bp->options array.
|
217 |
*
|
218 |
-
* Currently unused.
|
219 |
-
*
|
220 |
* @since 1.6.0
|
221 |
*
|
222 |
* @param bool $value Optional. Default value false.
|
@@ -225,11 +221,8 @@ function bp_setup_option_filters() {
|
|
225 |
function bp_pre_get_option( $value = false ) {
|
226 |
$bp = buddypress();
|
227 |
|
228 |
-
// Get the name of the current filter so we can manipulate it.
|
229 |
-
$filter = current_filter();
|
230 |
-
|
231 |
// Remove the filter prefix.
|
232 |
-
$option = str_replace( 'pre_option_', '',
|
233 |
|
234 |
// Check the options global for preset value.
|
235 |
if ( ! empty( $bp->options[ $option ] ) ) {
|
@@ -294,7 +287,7 @@ function bp_add_option( $option_name, $value ) {
|
|
294 |
* @since 1.5.0
|
295 |
*
|
296 |
* @param string $option_name The option key to be set.
|
297 |
-
* @param
|
298 |
* @return bool True on success, false on failure.
|
299 |
*/
|
300 |
function bp_update_option( $option_name, $value ) {
|
188 |
/**
|
189 |
* Add filters to each BP option, allowing them to be overloaded from inside the $bp->options array.
|
190 |
*
|
|
|
|
|
191 |
* @since 1.6.0
|
192 |
*/
|
193 |
function bp_setup_option_filters() {
|
213 |
/**
|
214 |
* Filter default options and allow them to be overloaded from inside the $bp->options array.
|
215 |
*
|
|
|
|
|
216 |
* @since 1.6.0
|
217 |
*
|
218 |
* @param bool $value Optional. Default value false.
|
221 |
function bp_pre_get_option( $value = false ) {
|
222 |
$bp = buddypress();
|
223 |
|
|
|
|
|
|
|
224 |
// Remove the filter prefix.
|
225 |
+
$option = str_replace( 'pre_option_', '', current_filter() );
|
226 |
|
227 |
// Check the options global for preset value.
|
228 |
if ( ! empty( $bp->options[ $option ] ) ) {
|
287 |
* @since 1.5.0
|
288 |
*
|
289 |
* @param string $option_name The option key to be set.
|
290 |
+
* @param mixed $value The value to be set.
|
291 |
* @return bool True on success, false on failure.
|
292 |
*/
|
293 |
function bp_update_option( $option_name, $value ) {
|
bp-core/bp-core-template-loader.php
CHANGED
@@ -23,7 +23,7 @@ defined( 'ABSPATH' ) || exit;
|
|
23 |
* eg 'friends' for 'friends.php'.
|
24 |
* @param string|null $name Optional. Template part name. Used to generate
|
25 |
* secondary filenames, eg 'personal' for 'activity-personal.php'.
|
26 |
-
* @return string Path to located template. See {@link bp_locate_template()}.
|
27 |
*/
|
28 |
function bp_get_template_part( $slug, $name = null ) {
|
29 |
|
@@ -73,7 +73,7 @@ function bp_get_template_part( $slug, $name = null ) {
|
|
73 |
*
|
74 |
* @param string $slug Template slug.
|
75 |
* @param string|null $name Template name.
|
76 |
-
* @return string
|
77 |
*/
|
78 |
function bp_get_asset_template_part( $slug, $name = null ) {
|
79 |
return bp_get_template_part( "assets/{$slug}", $name );
|
@@ -166,8 +166,8 @@ function bp_locate_template( $template_names, $load = false, $require_once = tru
|
|
166 |
* @since 2.6.0
|
167 |
*
|
168 |
* @param string $filename Relative filename to search for.
|
169 |
-
* @return array
|
170 |
-
*
|
171 |
*/
|
172 |
function bp_locate_template_asset( $filename ) {
|
173 |
// Ensure assets can be located when running from /src/.
|
@@ -605,7 +605,7 @@ function bp_load_theme_functions() {
|
|
605 |
* @since 1.7.0
|
606 |
* @since 2.4.0 Added singular.php to stack
|
607 |
*
|
608 |
-
* @return
|
609 |
*/
|
610 |
function bp_get_theme_compat_templates() {
|
611 |
return bp_get_query_template( 'buddypress', array(
|
23 |
* eg 'friends' for 'friends.php'.
|
24 |
* @param string|null $name Optional. Template part name. Used to generate
|
25 |
* secondary filenames, eg 'personal' for 'activity-personal.php'.
|
26 |
+
* @return false|string Path to located template. See {@link bp_locate_template()}.
|
27 |
*/
|
28 |
function bp_get_template_part( $slug, $name = null ) {
|
29 |
|
73 |
*
|
74 |
* @param string $slug Template slug.
|
75 |
* @param string|null $name Template name.
|
76 |
+
* @return false|string
|
77 |
*/
|
78 |
function bp_get_asset_template_part( $slug, $name = null ) {
|
79 |
return bp_get_template_part( "assets/{$slug}", $name );
|
166 |
* @since 2.6.0
|
167 |
*
|
168 |
* @param string $filename Relative filename to search for.
|
169 |
+
* @return false|array Array of asset data if one is located (includes absolute filepath and URI).
|
170 |
+
* Boolean false on failure.
|
171 |
*/
|
172 |
function bp_locate_template_asset( $filename ) {
|
173 |
// Ensure assets can be located when running from /src/.
|
605 |
* @since 1.7.0
|
606 |
* @since 2.4.0 Added singular.php to stack
|
607 |
*
|
608 |
+
* @return string Possible root level wrapper template files.
|
609 |
*/
|
610 |
function bp_get_theme_compat_templates() {
|
611 |
return bp_get_query_template( 'buddypress', array(
|
bp-core/bp-core-template.php
CHANGED
@@ -2683,7 +2683,7 @@ function bp_is_user_settings_profile() {
|
|
2683 |
*
|
2684 |
* @since 2.0.0
|
2685 |
*
|
2686 |
-
* @return True if the current page is the groups directory.
|
2687 |
*/
|
2688 |
function bp_is_groups_directory() {
|
2689 |
if ( bp_is_groups_component() && ! bp_is_group() && ( ! bp_current_action() || ( bp_action_variable() && bp_is_current_action( bp_get_groups_group_type_base() ) ) ) ) {
|
@@ -2785,7 +2785,7 @@ function bp_is_group_forum() {
|
|
2785 |
*
|
2786 |
* @since 1.2.1
|
2787 |
*
|
2788 |
-
* @return True if the current page is a group's activity page.
|
2789 |
*/
|
2790 |
function bp_is_group_activity() {
|
2791 |
$retval = false;
|
@@ -2930,7 +2930,7 @@ function bp_is_create_blog() {
|
|
2930 |
*
|
2931 |
* @since 2.0.0
|
2932 |
*
|
2933 |
-
* @return True if the current page is the blogs directory.
|
2934 |
*/
|
2935 |
function bp_is_blogs_directory() {
|
2936 |
if ( is_multisite() && bp_is_blogs_component() && ! bp_current_action() ) {
|
@@ -3470,6 +3470,9 @@ function bp_the_body_class() {
|
|
3470 |
$bp_classes[] = 'buddypress';
|
3471 |
}
|
3472 |
|
|
|
|
|
|
|
3473 |
// Merge WP classes with BuddyPress classes and remove any duplicates.
|
3474 |
$classes = array_unique( array_merge( (array) $bp_classes, (array) $wp_classes ) );
|
3475 |
|
@@ -3608,7 +3611,7 @@ function bp_get_nav_menu_items( $component = 'members' ) {
|
|
3608 |
$submenu->parent = $nav_menu->slug;
|
3609 |
|
3610 |
// If we're viewing this item's screen, record that we need to mark its parent menu to be selected.
|
3611 |
-
if ( $sub_menu->slug
|
3612 |
$menu->class[] = 'current-menu-parent';
|
3613 |
$submenu->class[] = 'current-menu-item';
|
3614 |
}
|
2683 |
*
|
2684 |
* @since 2.0.0
|
2685 |
*
|
2686 |
+
* @return bool True if the current page is the groups directory.
|
2687 |
*/
|
2688 |
function bp_is_groups_directory() {
|
2689 |
if ( bp_is_groups_component() && ! bp_is_group() && ( ! bp_current_action() || ( bp_action_variable() && bp_is_current_action( bp_get_groups_group_type_base() ) ) ) ) {
|
2785 |
*
|
2786 |
* @since 1.2.1
|
2787 |
*
|
2788 |
+
* @return bool True if the current page is a group's activity page.
|
2789 |
*/
|
2790 |
function bp_is_group_activity() {
|
2791 |
$retval = false;
|
2930 |
*
|
2931 |
* @since 2.0.0
|
2932 |
*
|
2933 |
+
* @return bool True if the current page is the blogs directory.
|
2934 |
*/
|
2935 |
function bp_is_blogs_directory() {
|
2936 |
if ( is_multisite() && bp_is_blogs_component() && ! bp_current_action() ) {
|
3470 |
$bp_classes[] = 'buddypress';
|
3471 |
}
|
3472 |
|
3473 |
+
// Add the theme name/id to the body classes
|
3474 |
+
$bp_classes[] = 'bp-' . bp_get_theme_compat_id();
|
3475 |
+
|
3476 |
// Merge WP classes with BuddyPress classes and remove any duplicates.
|
3477 |
$classes = array_unique( array_merge( (array) $bp_classes, (array) $wp_classes ) );
|
3478 |
|
3611 |
$submenu->parent = $nav_menu->slug;
|
3612 |
|
3613 |
// If we're viewing this item's screen, record that we need to mark its parent menu to be selected.
|
3614 |
+
if ( bp_is_current_action( $sub_menu->slug ) && bp_is_current_component( $nav_menu->slug ) ) {
|
3615 |
$menu->class[] = 'current-menu-parent';
|
3616 |
$submenu->class[] = 'current-menu-item';
|
3617 |
}
|
bp-core/bp-core-wpabstraction.php
CHANGED
@@ -23,7 +23,7 @@ defined( 'ABSPATH' ) || exit;
|
|
23 |
*
|
24 |
* @global string $wp_version
|
25 |
*
|
26 |
-
* @return
|
27 |
*/
|
28 |
function bp_get_major_wp_version() {
|
29 |
global $wp_version;
|
@@ -160,7 +160,7 @@ if ( !is_multisite() ) {
|
|
160 |
*
|
161 |
* @param int $user_id ID of the user. Not used.
|
162 |
* @param bool $all Whether or not to return all. Not used.
|
163 |
-
* @return
|
164 |
*/
|
165 |
function get_blogs_of_user( $user_id, $all = false ) {
|
166 |
return false;
|
@@ -180,7 +180,7 @@ if ( !is_multisite() ) {
|
|
180 |
* @param mixed $pref Preference. Not used.
|
181 |
* @param string $value Value. Not used.
|
182 |
* @param null $deprecated Whether or not deprecated. Not used.
|
183 |
-
* @return
|
184 |
*/
|
185 |
function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
|
186 |
return true;
|
@@ -266,7 +266,7 @@ if ( !function_exists( 'mb_strpos' ) ) {
|
|
266 |
* @param string $needle String to search for.
|
267 |
* @param int $offset Optional. Start position for the search. Default: 0.
|
268 |
* @param string $encoding Optional. Encoding type. Ignored.
|
269 |
-
* @return int|
|
270 |
*/
|
271 |
function mb_strpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
|
272 |
$needle = preg_quote( $needle, '/' );
|
@@ -291,7 +291,7 @@ if ( !function_exists( 'mb_strrpos' ) ) {
|
|
291 |
* @param string $needle String to search for.
|
292 |
* @param int $offset Optional. Start position for the search. Default: 0.
|
293 |
* @param string $encoding Optional. Encoding type. Ignored.
|
294 |
-
* @return
|
295 |
*/
|
296 |
function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
|
297 |
$needle = preg_quote( $needle, '/' );
|
23 |
*
|
24 |
* @global string $wp_version
|
25 |
*
|
26 |
+
* @return double $wp_version
|
27 |
*/
|
28 |
function bp_get_major_wp_version() {
|
29 |
global $wp_version;
|
160 |
*
|
161 |
* @param int $user_id ID of the user. Not used.
|
162 |
* @param bool $all Whether or not to return all. Not used.
|
163 |
+
* @return bool
|
164 |
*/
|
165 |
function get_blogs_of_user( $user_id, $all = false ) {
|
166 |
return false;
|
180 |
* @param mixed $pref Preference. Not used.
|
181 |
* @param string $value Value. Not used.
|
182 |
* @param null $deprecated Whether or not deprecated. Not used.
|
183 |
+
* @return bool
|
184 |
*/
|
185 |
function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
|
186 |
return true;
|
266 |
* @param string $needle String to search for.
|
267 |
* @param int $offset Optional. Start position for the search. Default: 0.
|
268 |
* @param string $encoding Optional. Encoding type. Ignored.
|
269 |
+
* @return int|false Position of needle in haystack if found, else false.
|
270 |
*/
|
271 |
function mb_strpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
|
272 |
$needle = preg_quote( $needle, '/' );
|
291 |
* @param string $needle String to search for.
|
292 |
* @param int $offset Optional. Start position for the search. Default: 0.
|
293 |
* @param string $encoding Optional. Encoding type. Ignored.
|
294 |
+
* @return string|false Position of last needle in haystack if found, else false.
|
295 |
*/
|
296 |
function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
|
297 |
$needle = preg_quote( $needle, '/' );
|
bp-core/classes/class-bp-admin.php
CHANGED
@@ -395,6 +395,10 @@ class BP_Admin {
|
|
395 |
add_settings_field( 'bp-disable-account-deletion', __( 'Account Deletion', 'buddypress' ), 'bp_admin_setting_callback_account_deletion', 'buddypress', 'bp_main' );
|
396 |
register_setting( 'buddypress', 'bp-disable-account-deletion', 'intval' );
|
397 |
|
|
|
|
|
|
|
|
|
398 |
/* XProfile Section **************************************************/
|
399 |
|
400 |
if ( bp_is_active( 'xprofile' ) ) {
|
@@ -928,7 +932,7 @@ class BP_Admin {
|
|
928 |
|
929 |
// Switch welcome text based on whether this is a new installation or not.
|
930 |
$welcome_text = ( self::is_new_install() )
|
931 |
-
? __( 'Thank you for installing BuddyPress! BuddyPress
|
932 |
: __( 'Thank you for updating! BuddyPress %s has many new improvements that you will enjoy.', 'buddypress' );
|
933 |
|
934 |
?>
|
395 |
add_settings_field( 'bp-disable-account-deletion', __( 'Account Deletion', 'buddypress' ), 'bp_admin_setting_callback_account_deletion', 'buddypress', 'bp_main' );
|
396 |
register_setting( 'buddypress', 'bp-disable-account-deletion', 'intval' );
|
397 |
|
398 |
+
// Template pack picker.
|
399 |
+
add_settings_field( '_bp_theme_package_id', __( 'Template Pack', 'buddypress' ), 'bp_admin_setting_callback_theme_package_id', 'buddypress', 'bp_main' );
|
400 |
+
register_setting( 'buddypress', '_bp_theme_package_id', 'sanitize_text_field' );
|
401 |
+
|
402 |
/* XProfile Section **************************************************/
|
403 |
|
404 |
if ( bp_is_active( 'xprofile' ) ) {
|
932 |
|
933 |
// Switch welcome text based on whether this is a new installation or not.
|
934 |
$welcome_text = ( self::is_new_install() )
|
935 |
+
? __( 'Thank you for installing BuddyPress! BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!', 'buddypress' )
|
936 |
: __( 'Thank you for updating! BuddyPress %s has many new improvements that you will enjoy.', 'buddypress' );
|
937 |
|
938 |
?>
|
bp-core/classes/class-bp-attachment-avatar.php
CHANGED
@@ -110,7 +110,7 @@ class BP_Attachment_Avatar extends BP_Attachment {
|
|
110 |
*
|
111 |
* @param string $file The absolute path to the file.
|
112 |
* @param int $ui_available_width Available width for the UI.
|
113 |
-
* @return
|
114 |
*/
|
115 |
public static function shrink( $file = '', $ui_available_width = 0 ) {
|
116 |
// Get image size.
|
110 |
*
|
111 |
* @param string $file The absolute path to the file.
|
112 |
* @param int $ui_available_width Available width for the UI.
|
113 |
+
* @return false|string|WP_Image_Editor|WP_Error
|
114 |
*/
|
115 |
public static function shrink( $file = '', $ui_available_width = 0 ) {
|
116 |
// Get image size.
|
bp-core/classes/class-bp-attachment-cover-image.php
CHANGED
@@ -1,291 +1,291 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Core Cover Image attachment class.
|
4 |
-
*
|
5 |
-
* @package BuddyPress
|
6 |
-
* @subpackage Core
|
7 |
-
* @since 2.4.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
// Exit if accessed directly.
|
11 |
-
defined( 'ABSPATH' ) || exit;
|
12 |
-
|
13 |
-
/**
|
14 |
-
* BP Attachment Cover Image class.
|
15 |
-
*
|
16 |
-
* Extends BP Attachment to manage the cover images uploads.
|
17 |
-
*
|
18 |
-
* @since 2.4.0
|
19 |
-
*/
|
20 |
-
class BP_Attachment_Cover_Image extends BP_Attachment {
|
21 |
-
/**
|
22 |
-
* The constuctor.
|
23 |
-
*
|
24 |
-
* @since 2.4.0
|
25 |
-
*/
|
26 |
-
public function __construct() {
|
27 |
-
// Allowed cover image types & upload size.
|
28 |
-
$allowed_types = bp_attachments_get_allowed_types( 'cover_image' );
|
29 |
-
$max_upload_file_size = bp_attachments_get_max_upload_file_size( 'cover_image' );
|
30 |
-
|
31 |
-
parent::__construct( array(
|
32 |
-
'action' => 'bp_cover_image_upload',
|
33 |
-
'file_input' => 'file',
|
34 |
-
'original_max_filesize' => $max_upload_file_size,
|
35 |
-
'base_dir' => bp_attachments_uploads_dir_get( 'dir' ),
|
36 |
-
'required_wp_files' => array( 'file', 'image' ),
|
37 |
-
|
38 |
-
// Specific errors for cover images.
|
39 |
-
'upload_error_strings' => array(
|
40 |
-
11 => sprintf( __( 'That image is too big. Please upload one smaller than %s', 'buddypress' ), size_format( $max_upload_file_size ) ),
|
41 |
-
12 => sprintf( _n( 'Please upload only this file type: %s.', 'Please upload only these file types: %s.', count( $allowed_types ), 'buddypress' ), self::get_cover_image_types( $allowed_types ) ),
|
42 |
-
),
|
43 |
-
) );
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* Gets the available cover image types.
|
48 |
-
*
|
49 |
-
* @since 2.4.0
|
50 |
-
*
|
51 |
-
* @param array $allowed_types Array of allowed cover image types.
|
52 |
-
* @return string $value Comma-separated list of allowed cover image types.
|
53 |
-
*/
|
54 |
-
public static function get_cover_image_types( $allowed_types = array() ) {
|
55 |
-
$types = array_map( 'strtoupper', $allowed_types );
|
56 |
-
$comma = _x( ',', 'cover image types separator', 'buddypress' );
|
57 |
-
return join( $comma . ' ', $types );
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Cover image specific rules.
|
62 |
-
*
|
63 |
-
* Adds an error if the cover image size or type don't match BuddyPress needs.
|
64 |
-
* The error code is the index of $upload_error_strings.
|
65 |
-
*
|
66 |
-
* @since 2.4.0
|
67 |
-
*
|
68 |
-
* @param array $file The temporary file attributes (before it has been moved).
|
69 |
-
* @return array $file The file with extra errors if needed.
|
70 |
-
*/
|
71 |
-
public function validate_upload( $file = array() ) {
|
72 |
-
// Bail if already an error.
|
73 |
-
if ( ! empty( $file['error'] ) ) {
|
74 |
-
return $file;
|
75 |
-
}
|
76 |
-
|
77 |
-
// File size is too big.
|
78 |
-
if ( $file['size'] > $this->original_max_filesize ) {
|
79 |
-
$file['error'] = 11;
|
80 |
-
|
81 |
-
// File is of invalid type.
|
82 |
-
} elseif ( ! bp_attachments_check_filetype( $file['tmp_name'], $file['name'], bp_attachments_get_allowed_mimes( 'cover_image' ) ) ) {
|
83 |
-
$file['error'] = 12;
|
84 |
-
}
|
85 |
-
|
86 |
-
// Return with error code attached.
|
87 |
-
return $file;
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Set the directory when uploading a file.
|
92 |
-
*
|
93 |
-
* @since 2.4.0
|
94 |
-
*
|
95 |
-
* @param array $upload_dir The original Uploads dir.
|
96 |
-
* @return array $value Upload data (path, url, basedir...).
|
97 |
-
*/
|
98 |
-
public function upload_dir_filter( $upload_dir = array() ) {
|
99 |
-
// Default values are for profiles.
|
100 |
-
$object_id = bp_displayed_user_id();
|
101 |
-
|
102 |
-
if ( empty( $object_id ) ) {
|
103 |
-
$object_id = bp_loggedin_user_id();
|
104 |
-
}
|
105 |
-
|
106 |
-
$object_directory = 'members';
|
107 |
-
|
108 |
-
// We're in a group, edit default values.
|
109 |
-
if ( bp_is_group() || bp_is_group_create() ) {
|
110 |
-
$object_id = bp_get_current_group_id();
|
111 |
-
$object_directory = 'groups';
|
112 |
-
}
|
113 |
-
|
114 |
-
// Set the subdir.
|
115 |
-
$subdir = '/' . $object_directory . '/' . $object_id . '/cover-image';
|
116 |
-
|
117 |
-
/**
|
118 |
-
* Filters the cover image upload directory.
|
119 |
-
*
|
120 |
-
* @since 2.4.0
|
121 |
-
*
|
122 |
-
* @param array $value Array containing the path, URL, and other helpful settings.
|
123 |
-
* @param array $upload_dir The original Uploads dir.
|
124 |
-
*/
|
125 |
-
return apply_filters( 'bp_attachments_cover_image_upload_dir', array(
|
126 |
-
'path' => $this->upload_path . $subdir,
|
127 |
-
'url' => $this->url . $subdir,
|
128 |
-
'subdir' => $subdir,
|
129 |
-
'basedir' => $this->upload_path,
|
130 |
-
'baseurl' => $this->url,
|
131 |
-
'error' => false
|
132 |
-
), $upload_dir );
|
133 |
-
}
|
134 |
-
|
135 |
-
/**
|
136 |
-
* Adjust the cover image to fit with advised width & height.
|
137 |
-
*
|
138 |
-
* @since 2.4.0
|
139 |
-
*
|
140 |
-
* @param string $file The absolute path to the file.
|
141 |
-
* @param array $dimensions Array of dimensions for the cover image.
|
142 |
-
* @return mixed
|
143 |
-
*/
|
144 |
-
public function fit( $file = '', $dimensions = array() ) {
|
145 |
-
if ( empty( $dimensions['width'] ) || empty( $dimensions['height'] ) ) {
|
146 |
-
return false;
|
147 |
-
}
|
148 |
-
|
149 |
-
// Get image size.
|
150 |
-
$cover_data = parent::get_image_data( $file );
|
151 |
-
|
152 |
-
// Init the edit args.
|
153 |
-
$edit_args = array();
|
154 |
-
|
155 |
-
// Do we need to resize the image?
|
156 |
-
if ( ( isset( $cover_data['width'] ) && $cover_data['width'] > $dimensions['width'] ) ||
|
157 |
-
( isset( $cover_data['height'] ) && $cover_data['height'] > $dimensions['height'] ) ) {
|
158 |
-
$edit_args = array(
|
159 |
-
'max_w' => $dimensions['width'],
|
160 |
-
'max_h' => $dimensions['height'],
|
161 |
-
'crop' => true,
|
162 |
-
);
|
163 |
-
}
|
164 |
-
|
165 |
-
// Do we need to rotate the image?
|
166 |
-
$angles = array(
|
167 |
-
3 => 180,
|
168 |
-
6 => -90,
|
169 |
-
8 => 90,
|
170 |
-
);
|
171 |
-
|
172 |
-
if ( isset( $cover_data['meta']['orientation'] ) && isset( $angles[ $cover_data['meta']['orientation'] ] ) ) {
|
173 |
-
$edit_args['rotate'] = $angles[ $cover_data['meta']['orientation'] ];
|
174 |
-
}
|
175 |
-
|
176 |
-
// No need to edit the avatar, original file will be used.
|
177 |
-
if ( empty( $edit_args ) ) {
|
178 |
-
return false;
|
179 |
-
|
180 |
-
// Add the file to the edit arguments.
|
181 |
-
} else {
|
182 |
-
$edit_args = array_merge( $edit_args, array( 'file' => $file, 'save' => false ) );
|
183 |
-
}
|
184 |
-
|
185 |
-
// Get the editor so that we can use a specific save method.
|
186 |
-
$editor = parent::edit_image( 'cover_image', $edit_args );
|
187 |
-
|
188 |
-
if ( is_wp_error( $editor ) ) {
|
189 |
-
return $editor;
|
190 |
-
} elseif ( ! is_a( $editor, 'WP_Image_Editor' ) ) {
|
191 |
-
return false;
|
192 |
-
}
|
193 |
-
|
194 |
-
// Save the new image file.
|
195 |
-
return $editor->save( $this->generate_filename( $file ) );
|
196 |
-
}
|
197 |
-
|
198 |
-
/**
|
199 |
-
* Generate a filename for the cover image.
|
200 |
-
*
|
201 |
-
* @since 2.4.0
|
202 |
-
*
|
203 |
-
* @param string $file The absolute path to the file.
|
204 |
-
* @return string $value The absolute path to the new file name.
|
205 |
-
*/
|
206 |
-
public function generate_filename( $file = '' ) {
|
207 |
-
if ( empty( $file ) || ! file_exists( $file ) ) {
|
208 |
-
return false;
|
209 |
-
}
|
210 |
-
|
211 |
-
$info = pathinfo( $file );
|
212 |
-
$ext = strtolower( $info['extension'] );
|
213 |
-
$name = wp_unique_filename( $info['dirname'], uniqid() . "-bp-cover-image.$ext" );
|
214 |
-
|
215 |
-
return trailingslashit( $info['dirname'] ) . $name;
|
216 |
-
}
|
217 |
-
|
218 |
-
/**
|
219 |
-
* Build script datas for the Uploader UI.
|
220 |
-
*
|
221 |
-
* @since 2.4.0
|
222 |
-
*
|
223 |
-
* @return array The javascript localization data
|
224 |
-
*/
|
225 |
-
public function script_data() {
|
226 |
-
// Get default script data.
|
227 |
-
$script_data = parent::script_data();
|
228 |
-
|
229 |
-
if ( bp_is_user() ) {
|
230 |
-
$item_id = bp_displayed_user_id();
|
231 |
-
|
232 |
-
$script_data['bp_params'] = array(
|
233 |
-
'object' => 'user',
|
234 |
-
'item_id' => $item_id,
|
235 |
-
'has_cover_image' => bp_attachments_get_user_has_cover_image( $item_id ),
|
236 |
-
'nonces' => array(
|
237 |
-
'remove' => wp_create_nonce( 'bp_delete_cover_image' ),
|
238 |
-
),
|
239 |
-
);
|
240 |
-
|
241 |
-
// Set feedback messages.
|
242 |
-
$script_data['feedback_messages'] = array(
|
243 |
-
1 => __( 'Your new cover image was uploaded successfully.', 'buddypress' ),
|
244 |
-
2 => __( 'There was a problem deleting your cover image. Please try again.', 'buddypress' ),
|
245 |
-
3 => __( 'Your cover image was deleted successfully!', 'buddypress' ),
|
246 |
-
);
|
247 |
-
} elseif ( bp_is_group() ) {
|
248 |
-
$item_id = bp_get_current_group_id();
|
249 |
-
|
250 |
-
$script_data['bp_params'] = array(
|
251 |
-
'object' => 'group',
|
252 |
-
'item_id' => bp_get_current_group_id(),
|
253 |
-
'has_cover_image' => bp_attachments_get_group_has_cover_image( $item_id ),
|
254 |
-
'nonces' => array(
|
255 |
-
'remove' => wp_create_nonce( 'bp_delete_cover_image' ),
|
256 |
-
),
|
257 |
-
);
|
258 |
-
|
259 |
-
// Set feedback messages.
|
260 |
-
$script_data['feedback_messages'] = array(
|
261 |
-
1 => __( 'The group cover image was uploaded successfully.', 'buddypress' ),
|
262 |
-
2 => __( 'There was a problem deleting the group cover image. Please try again.', 'buddypress' ),
|
263 |
-
3 => __( 'The group cover image was deleted successfully!', 'buddypress' ),
|
264 |
-
);
|
265 |
-
} else {
|
266 |
-
|
267 |
-
/**
|
268 |
-
* Filters the cover image params to include specific BuddyPress params for your object.
|
269 |
-
* e.g. Cover image for blogs single item.
|
270 |
-
*
|
271 |
-
* @since 2.4.0
|
272 |
-
*
|
273 |
-
* @param array $value The cover image specific BuddyPress parameters.
|
274 |
-
*/
|
275 |
-
$script_data['bp_params'] = apply_filters( 'bp_attachment_cover_image_params', array() );
|
276 |
-
}
|
277 |
-
|
278 |
-
// Include our specific js & css.
|
279 |
-
$script_data['extra_js'] = array( 'bp-cover-image' );
|
280 |
-
$script_data['extra_css'] = array( 'bp-avatar' );
|
281 |
-
|
282 |
-
/**
|
283 |
-
* Filters the cover image script data.
|
284 |
-
*
|
285 |
-
* @since 2.4.0
|
286 |
-
*
|
287 |
-
* @param array $script_data Array of data for the cover image.
|
288 |
-
*/
|
289 |
-
return apply_filters( 'bp_attachments_cover_image_script_data', $script_data );
|
290 |
-
}
|
291 |
-
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Core Cover Image attachment class.
|
4 |
+
*
|
5 |
+
* @package BuddyPress
|
6 |
+
* @subpackage Core
|
7 |
+
* @since 2.4.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
// Exit if accessed directly.
|
11 |
+
defined( 'ABSPATH' ) || exit;
|
12 |
+
|
13 |
+
/**
|
14 |
+
* BP Attachment Cover Image class.
|
15 |
+
*
|
16 |
+
* Extends BP Attachment to manage the cover images uploads.
|
17 |
+
*
|
18 |
+
* @since 2.4.0
|
19 |
+
*/
|
20 |
+
class BP_Attachment_Cover_Image extends BP_Attachment {
|
21 |
+
/**
|
22 |
+
* The constuctor.
|
23 |
+
*
|
24 |
+
* @since 2.4.0
|
25 |
+
*/
|
26 |
+
public function __construct() {
|
27 |
+
// Allowed cover image types & upload size.
|
28 |
+
$allowed_types = bp_attachments_get_allowed_types( 'cover_image' );
|
29 |
+
$max_upload_file_size = bp_attachments_get_max_upload_file_size( 'cover_image' );
|
30 |
+
|
31 |
+
parent::__construct( array(
|
32 |
+
'action' => 'bp_cover_image_upload',
|
33 |
+
'file_input' => 'file',
|
34 |
+
'original_max_filesize' => $max_upload_file_size,
|
35 |
+
'base_dir' => bp_attachments_uploads_dir_get( 'dir' ),
|
36 |
+
'required_wp_files' => array( 'file', 'image' ),
|
37 |
+
|
38 |
+
// Specific errors for cover images.
|
39 |
+
'upload_error_strings' => array(
|
40 |
+
11 => sprintf( __( 'That image is too big. Please upload one smaller than %s', 'buddypress' ), size_format( $max_upload_file_size ) ),
|
41 |
+
12 => sprintf( _n( 'Please upload only this file type: %s.', 'Please upload only these file types: %s.', count( $allowed_types ), 'buddypress' ), self::get_cover_image_types( $allowed_types ) ),
|
42 |
+
),
|
43 |
+
) );
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Gets the available cover image types.
|
48 |
+
*
|
49 |
+
* @since 2.4.0
|
50 |
+
*
|
51 |
+
* @param array $allowed_types Array of allowed cover image types.
|
52 |
+
* @return string $value Comma-separated list of allowed cover image types.
|
53 |
+
*/
|
54 |
+
public static function get_cover_image_types( $allowed_types = array() ) {
|
55 |
+
$types = array_map( 'strtoupper', $allowed_types );
|
56 |
+
$comma = _x( ',', 'cover image types separator', 'buddypress' );
|
57 |
+
return join( $comma . ' ', $types );
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Cover image specific rules.
|
62 |
+
*
|
63 |
+
* Adds an error if the cover image size or type don't match BuddyPress needs.
|
64 |
+
* The error code is the index of $upload_error_strings.
|
65 |
+
*
|
66 |
+
* @since 2.4.0
|
67 |
+
*
|
68 |
+
* @param array $file The temporary file attributes (before it has been moved).
|
69 |
+
* @return array $file The file with extra errors if needed.
|
70 |
+
*/
|
71 |
+
public function validate_upload( $file = array() ) {
|
72 |
+
// Bail if already an error.
|
73 |
+
if ( ! empty( $file['error'] ) ) {
|
74 |
+
return $file;
|
75 |
+
}
|
76 |
+
|
77 |
+
// File size is too big.
|
78 |
+
if ( $file['size'] > $this->original_max_filesize ) {
|
79 |
+
$file['error'] = 11;
|
80 |
+
|
81 |
+
// File is of invalid type.
|
82 |
+
} elseif ( ! bp_attachments_check_filetype( $file['tmp_name'], $file['name'], bp_attachments_get_allowed_mimes( 'cover_image' ) ) ) {
|
83 |
+
$file['error'] = 12;
|
84 |
+
}
|
85 |
+
|
86 |
+
// Return with error code attached.
|
87 |
+
return $file;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Set the directory when uploading a file.
|
92 |
+
*
|
93 |
+
* @since 2.4.0
|
94 |
+
*
|
95 |
+
* @param array $upload_dir The original Uploads dir.
|
96 |
+
* @return array $value Upload data (path, url, basedir...).
|
97 |
+
*/
|
98 |
+
public function upload_dir_filter( $upload_dir = array() ) {
|
99 |
+
// Default values are for profiles.
|
100 |
+
$object_id = bp_displayed_user_id();
|
101 |
+
|
102 |
+
if ( empty( $object_id ) ) {
|
103 |
+
$object_id = bp_loggedin_user_id();
|
104 |
+
}
|
105 |
+
|
106 |
+
$object_directory = 'members';
|
107 |
+
|
108 |
+
// We're in a group, edit default values.
|
109 |
+
if ( bp_is_group() || bp_is_group_create() ) {
|
110 |
+
$object_id = bp_get_current_group_id();
|
111 |
+
$object_directory = 'groups';
|
112 |
+
}
|
113 |
+
|
114 |
+
// Set the subdir.
|
115 |
+
$subdir = '/' . $object_directory . '/' . $object_id . '/cover-image';
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Filters the cover image upload directory.
|
119 |
+
*
|
120 |
+
* @since 2.4.0
|
121 |
+
*
|
122 |
+
* @param array $value Array containing the path, URL, and other helpful settings.
|
123 |
+
* @param array $upload_dir The original Uploads dir.
|
124 |
+
*/
|
125 |
+
return apply_filters( 'bp_attachments_cover_image_upload_dir', array(
|
126 |
+
'path' => $this->upload_path . $subdir,
|
127 |
+
'url' => $this->url . $subdir,
|
128 |
+
'subdir' => $subdir,
|
129 |
+
'basedir' => $this->upload_path,
|
130 |
+
'baseurl' => $this->url,
|
131 |
+
'error' => false
|
132 |
+
), $upload_dir );
|
133 |
+
}
|
134 |
+
|
135 |
+
/**
|
136 |
+
* Adjust the cover image to fit with advised width & height.
|
137 |
+
*
|
138 |
+
* @since 2.4.0
|
139 |
+
*
|
140 |
+
* @param string $file The absolute path to the file.
|
141 |
+
* @param array $dimensions Array of dimensions for the cover image.
|
142 |
+
* @return mixed
|
143 |
+
*/
|
144 |
+
public function fit( $file = '', $dimensions = array() ) {
|
145 |
+
if ( empty( $dimensions['width'] ) || empty( $dimensions['height'] ) ) {
|
146 |
+
return false;
|
147 |
+
}
|
148 |
+
|
149 |
+
// Get image size.
|
150 |
+
$cover_data = parent::get_image_data( $file );
|
151 |
+
|
152 |
+
// Init the edit args.
|
153 |
+
$edit_args = array();
|
154 |
+
|
155 |
+
// Do we need to resize the image?
|
156 |
+
if ( ( isset( $cover_data['width'] ) && $cover_data['width'] > $dimensions['width'] ) ||
|
157 |
+
( isset( $cover_data['height'] ) && $cover_data['height'] > $dimensions['height'] ) ) {
|
158 |
+
$edit_args = array(
|
159 |
+
'max_w' => $dimensions['width'],
|
160 |
+
'max_h' => $dimensions['height'],
|
161 |
+
'crop' => true,
|
162 |
+
);
|
163 |
+
}
|
164 |
+
|
165 |
+
// Do we need to rotate the image?
|
166 |
+
$angles = array(
|
167 |
+
3 => 180,
|
168 |
+
6 => -90,
|
169 |
+
8 => 90,
|
170 |
+
);
|
171 |
+
|
172 |
+
if ( isset( $cover_data['meta']['orientation'] ) && isset( $angles[ $cover_data['meta']['orientation'] ] ) ) {
|
173 |
+
$edit_args['rotate'] = $angles[ $cover_data['meta']['orientation'] ];
|
174 |
+
}
|
175 |
+
|
176 |
+
// No need to edit the avatar, original file will be used.
|
177 |
+
if ( empty( $edit_args ) ) {
|
178 |
+
return false;
|
179 |
+
|
180 |
+
// Add the file to the edit arguments.
|
181 |
+
} else {
|
182 |
+
$edit_args = array_merge( $edit_args, array( 'file' => $file, 'save' => false ) );
|
183 |
+
}
|
184 |
+
|
185 |
+
// Get the editor so that we can use a specific save method.
|
186 |
+
$editor = parent::edit_image( 'cover_image', $edit_args );
|
187 |
+
|
188 |
+
if ( is_wp_error( $editor ) ) {
|
189 |
+
return $editor;
|
190 |
+
} elseif ( ! is_a( $editor, 'WP_Image_Editor' ) ) {
|
191 |
+
return false;
|
192 |
+
}
|
193 |
+
|
194 |
+
// Save the new image file.
|
195 |
+
return $editor->save( $this->generate_filename( $file ) );
|
196 |
+
}
|
197 |
+
|
198 |
+
/**
|
199 |
+
* Generate a filename for the cover image.
|
200 |
+
*
|
201 |
+
* @since 2.4.0
|
202 |
+
*
|
203 |
+
* @param string $file The absolute path to the file.
|
204 |
+
* @return false|string $value The absolute path to the new file name.
|
205 |
+
*/
|
206 |
+
public function generate_filename( $file = '' ) {
|
207 |
+
if ( empty( $file ) || ! file_exists( $file ) ) {
|
208 |
+
return false;
|
209 |
+
}
|
210 |
+
|
211 |
+
$info = pathinfo( $file );
|
212 |
+
$ext = strtolower( $info['extension'] );
|
213 |
+
$name = wp_unique_filename( $info['dirname'], uniqid() . "-bp-cover-image.$ext" );
|
214 |
+
|
215 |
+
return trailingslashit( $info['dirname'] ) . $name;
|
216 |
+
}
|
217 |
+
|
218 |
+
/**
|
219 |
+
* Build script datas for the Uploader UI.
|
220 |
+
*
|
221 |
+
* @since 2.4.0
|
222 |
+
*
|
223 |
+
* @return array The javascript localization data
|
224 |
+
*/
|
225 |
+
public function script_data() {
|
226 |
+
// Get default script data.
|
227 |
+
$script_data = parent::script_data();
|
228 |
+
|
229 |
+
if ( bp_is_user() ) {
|
230 |
+
$item_id = bp_displayed_user_id();
|
231 |
+
|
232 |
+
$script_data['bp_params'] = array(
|
233 |
+
'object' => 'user',
|
234 |
+
'item_id' => $item_id,
|
235 |
+
'has_cover_image' => bp_attachments_get_user_has_cover_image( $item_id ),
|
236 |
+
'nonces' => array(
|
237 |
+
'remove' => wp_create_nonce( 'bp_delete_cover_image' ),
|
238 |
+
),
|
239 |
+
);
|
240 |
+
|
241 |
+
// Set feedback messages.
|
242 |
+
$script_data['feedback_messages'] = array(
|
243 |
+
1 => __( 'Your new cover image was uploaded successfully.', 'buddypress' ),
|
244 |
+
2 => __( 'There was a problem deleting your cover image. Please try again.', 'buddypress' ),
|
245 |
+
3 => __( 'Your cover image was deleted successfully!', 'buddypress' ),
|
246 |
+
);
|
247 |
+
} elseif ( bp_is_group() ) {
|
248 |
+
$item_id = bp_get_current_group_id();
|
249 |
+
|
250 |
+
$script_data['bp_params'] = array(
|
251 |
+
'object' => 'group',
|
252 |
+
'item_id' => bp_get_current_group_id(),
|
253 |
+
'has_cover_image' => bp_attachments_get_group_has_cover_image( $item_id ),
|
254 |
+
'nonces' => array(
|
255 |
+
'remove' => wp_create_nonce( 'bp_delete_cover_image' ),
|
256 |
+
),
|
257 |
+
);
|
258 |
+
|
259 |
+
// Set feedback messages.
|
260 |
+
$script_data['feedback_messages'] = array(
|
261 |
+
1 => __( 'The group cover image was uploaded successfully.', 'buddypress' ),
|
262 |
+
2 => __( 'There was a problem deleting the group cover image. Please try again.', 'buddypress' ),
|
263 |
+
3 => __( 'The group cover image was deleted successfully!', 'buddypress' ),
|
264 |
+
);
|
265 |
+
} else {
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Filters the cover image params to include specific BuddyPress params for your object.
|
269 |
+
* e.g. Cover image for blogs single item.
|
270 |
+
*
|
271 |
+
* @since 2.4.0
|
272 |
+
*
|
273 |
+
* @param array $value The cover image specific BuddyPress parameters.
|
274 |
+
*/
|
275 |
+
$script_data['bp_params'] = apply_filters( 'bp_attachment_cover_image_params', array() );
|
276 |
+
}
|
277 |
+
|
278 |
+
// Include our specific js & css.
|
279 |
+
$script_data['extra_js'] = array( 'bp-cover-image' );
|
280 |
+
$script_data['extra_css'] = array( 'bp-avatar' );
|
281 |
+
|
282 |
+
/**
|
283 |
+
* Filters the cover image script data.
|
284 |
+
*
|
285 |
+
* @since 2.4.0
|
286 |
+
*
|
287 |
+
* @param array $script_data Array of data for the cover image.
|
288 |
+
*/
|
289 |
+
return apply_filters( 'bp_attachments_cover_image_script_data', $script_data );
|
290 |
+
}
|
291 |
+
}
|
bp-core/classes/class-bp-attachment.php
CHANGED
@@ -219,13 +219,6 @@ abstract class BP_Attachment {
|
|
219 |
*/
|
220 |
add_filter( "{$this->action}_prefilter", array( $this, 'validate_upload' ), 10, 1 );
|
221 |
|
222 |
-
/**
|
223 |
-
* The above dynamic filter was introduced in WordPress 4.0, as we support WordPress
|
224 |
-
* back to 3.6, we need to also use the pre 4.0 static filter and remove it after
|
225 |
-
* the upload was processed.
|
226 |
-
*/
|
227 |
-
add_filter( 'wp_handle_upload_prefilter', array( $this, 'validate_upload' ), 10, 1 );
|
228 |
-
|
229 |
// Set Default overrides.
|
230 |
$overrides = array(
|
231 |
'action' => $this->action,
|
@@ -268,21 +261,50 @@ abstract class BP_Attachment {
|
|
268 |
add_filter( 'upload_dir', $upload_dir_filter, 10, $this->upload_dir_filter_args );
|
269 |
}
|
270 |
|
|
|
|
|
|
|
271 |
// Upload the attachment.
|
272 |
$this->attachment = wp_handle_upload( $file[ $this->file_input ], $overrides, $time );
|
273 |
|
|
|
|
|
274 |
// Restore WordPress Uploads data.
|
275 |
if ( ! empty( $upload_dir_filter ) ) {
|
276 |
remove_filter( 'upload_dir', $upload_dir_filter, 10 );
|
277 |
}
|
278 |
|
279 |
-
// Remove the pre WordPress 4.0 static filter.
|
280 |
-
remove_filter( 'wp_handle_upload_prefilter', array( $this, 'validate_upload' ), 10 );
|
281 |
-
|
282 |
// Finally return the uploaded file or the error.
|
283 |
return $this->attachment;
|
284 |
}
|
285 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
/**
|
287 |
* Validate the allowed mime types using WordPress allowed mime types.
|
288 |
*
|
@@ -553,21 +575,7 @@ abstract class BP_Attachment {
|
|
553 |
|
554 |
// Now try to get image's meta data.
|
555 |
$meta = wp_read_image_metadata( $file );
|
556 |
-
|
557 |
if ( ! empty( $meta ) ) {
|
558 |
-
// Before 4.0 the Orientation wasn't included.
|
559 |
-
if ( ! isset( $meta['orientation'] ) &&
|
560 |
-
is_callable( 'exif_read_data' ) &&
|
561 |
-
in_array( $sourceImageType, apply_filters( 'wp_read_image_metadata_types', array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ) )
|
562 |
-
) {
|
563 |
-
$exif = exif_read_data( $file );
|
564 |
-
|
565 |
-
if ( ! empty( $exif['Orientation'] ) ) {
|
566 |
-
$meta['orientation'] = $exif['Orientation'];
|
567 |
-
}
|
568 |
-
}
|
569 |
-
|
570 |
-
// Now add the metas to image data.
|
571 |
$image_data['meta'] = $meta;
|
572 |
}
|
573 |
|
219 |
*/
|
220 |
add_filter( "{$this->action}_prefilter", array( $this, 'validate_upload' ), 10, 1 );
|
221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
// Set Default overrides.
|
223 |
$overrides = array(
|
224 |
'action' => $this->action,
|
261 |
add_filter( 'upload_dir', $upload_dir_filter, 10, $this->upload_dir_filter_args );
|
262 |
}
|
263 |
|
264 |
+
// Helper for utf-8 filenames.
|
265 |
+
add_filter( 'sanitize_file_name', array( $this, 'sanitize_utf8_filename' ) );
|
266 |
+
|
267 |
// Upload the attachment.
|
268 |
$this->attachment = wp_handle_upload( $file[ $this->file_input ], $overrides, $time );
|
269 |
|
270 |
+
remove_filter( 'sanitize_file_name', array( $this, 'sanitize_utf8_filename' ) );
|
271 |
+
|
272 |
// Restore WordPress Uploads data.
|
273 |
if ( ! empty( $upload_dir_filter ) ) {
|
274 |
remove_filter( 'upload_dir', $upload_dir_filter, 10 );
|
275 |
}
|
276 |
|
|
|
|
|
|
|
277 |
// Finally return the uploaded file or the error.
|
278 |
return $this->attachment;
|
279 |
}
|
280 |
|
281 |
+
/**
|
282 |
+
* Helper to convert utf-8 characters in filenames to their ASCII equivalent.
|
283 |
+
*
|
284 |
+
* @since 2.9.0
|
285 |
+
*
|
286 |
+
* @param string $retval Filename.
|
287 |
+
* @return string
|
288 |
+
*/
|
289 |
+
public function sanitize_utf8_filename( $retval ) {
|
290 |
+
// PHP 5.4+ or with PECL intl 2.0+
|
291 |
+
if ( function_exists( 'transliterator_transliterate' ) && seems_utf8( $retval ) ) {
|
292 |
+
$retval = transliterator_transliterate( 'Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove', $retval );
|
293 |
+
|
294 |
+
// Older.
|
295 |
+
} else {
|
296 |
+
// Use WP's built-in function to convert accents to their ASCII equivalent.
|
297 |
+
$retval = remove_accents( $retval );
|
298 |
+
|
299 |
+
// Still here? use iconv().
|
300 |
+
if ( function_exists( 'iconv' ) && seems_utf8( $retval ) ) {
|
301 |
+
$retval = iconv( 'UTF-8', 'ASCII//TRANSLIT//IGNORE', $retval );
|
302 |
+
}
|
303 |
+
}
|
304 |
+
|
305 |
+
return $retval;
|
306 |
+
}
|
307 |
+
|
308 |
/**
|
309 |
* Validate the allowed mime types using WordPress allowed mime types.
|
310 |
*
|
575 |
|
576 |
// Now try to get image's meta data.
|
577 |
$meta = wp_read_image_metadata( $file );
|
|
|
578 |
if ( ! empty( $meta ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
$image_data['meta'] = $meta;
|
580 |
}
|
581 |
|
bp-core/classes/class-bp-button.php
CHANGED
@@ -293,12 +293,19 @@ class BP_Button {
|
|
293 |
|
294 |
// Always add 'generic-button' class.
|
295 |
if ( false === strpos( $r['parent_attr']['class'], 'generic-button' ) ) {
|
|
|
|
|
|
|
296 |
if ( ! empty( $r['parent_attr']['class'] ) ) {
|
297 |
$r['parent_attr']['class'] .= ' ';
|
298 |
}
|
299 |
$r['parent_attr']['class'] .= 'generic-button';
|
300 |
}
|
301 |
|
|
|
|
|
|
|
|
|
302 |
// Render parent element attributes.
|
303 |
$parent_elem = new BP_Core_HTML_Element( array(
|
304 |
'element' => $r['parent_element'],
|
293 |
|
294 |
// Always add 'generic-button' class.
|
295 |
if ( false === strpos( $r['parent_attr']['class'], 'generic-button' ) ) {
|
296 |
+
if ( ! is_array( $r['parent_attr'] ) ) {
|
297 |
+
$r['parent_attr'] = array();
|
298 |
+
}
|
299 |
if ( ! empty( $r['parent_attr']['class'] ) ) {
|
300 |
$r['parent_attr']['class'] .= ' ';
|
301 |
}
|
302 |
$r['parent_attr']['class'] .= 'generic-button';
|
303 |
}
|
304 |
|
305 |
+
// Set parent element props.
|
306 |
+
$this->parent_element = $r['parent_element'];
|
307 |
+
$this->parent_attr = $r['parent_attr'];
|
308 |
+
|
309 |
// Render parent element attributes.
|
310 |
$parent_elem = new BP_Core_HTML_Element( array(
|
311 |
'element' => $r['parent_element'],
|
bp-core/classes/class-bp-core-bp-nav-backcompat.php
CHANGED
@@ -180,7 +180,7 @@ class BP_Core_BP_Nav_BackCompat implements ArrayAccess {
|
|
180 |
* @since 2.6.0
|
181 |
*
|
182 |
* @param mixed $offset Array offset.
|
183 |
-
* @return string
|
184 |
*/
|
185 |
public function get_component( $offset = '' ) {
|
186 |
if ( ! isset( $this->component ) ) {
|
180 |
* @since 2.6.0
|
181 |
*
|
182 |
* @param mixed $offset Array offset.
|
183 |
+
* @return string|array
|
184 |
*/
|
185 |
public function get_component( $offset = '' ) {
|
186 |
if ( ! isset( $this->component ) ) {
|
bp-core/classes/class-bp-core-nav.php
CHANGED
@@ -212,7 +212,7 @@ class BP_Core_Nav {
|
|
212 |
*
|
213 |
* @param string $slug The slug of the main item.
|
214 |
* @param string $parent_slug The slug of the sub item.
|
215 |
-
* @return
|
216 |
*/
|
217 |
public function delete_nav( $slug = '', $parent_slug = '' ) {
|
218 |
|
212 |
*
|
213 |
* @param string $slug The slug of the main item.
|
214 |
* @param string $parent_slug The slug of the sub item.
|
215 |
+
* @return false|callable|array False on failure, the screen function(s) on success.
|
216 |
*/
|
217 |
public function delete_nav( $slug = '', $parent_slug = '' ) {
|
218 |
|
bp-core/classes/class-bp-core-oembed-extension.php
CHANGED
@@ -53,6 +53,8 @@ abstract class BP_Core_oEmbed_Extension {
|
|
53 |
* Add content for your oEmbed response here.
|
54 |
*
|
55 |
* @since 2.6.0
|
|
|
|
|
56 |
*/
|
57 |
abstract protected function content();
|
58 |
|
53 |
* Add content for your oEmbed response here.
|
54 |
*
|
55 |
* @since 2.6.0
|
56 |
+
*
|
57 |
+
* @return null
|
58 |
*/
|
59 |
abstract protected function content();
|
60 |
|
bp-core/classes/class-bp-core-user.php
CHANGED
@@ -157,7 +157,7 @@ class BP_Core_User {
|
|
157 |
|
158 |
$this->user_url = bp_core_get_user_domain( $this->id, $this->profile_data['user_nicename'], $this->profile_data['user_login'] );
|
159 |
$this->fullname = esc_attr( $this->profile_data[$full_name_field_name]['field_data'] );
|
160 |
-
$this->user_link = "<a href='{$this->user_url}'
|
161 |
$this->email = esc_attr( $this->profile_data['user_email'] );
|
162 |
} else {
|
163 |
$this->user_url = bp_core_get_user_domain( $this->id );
|
@@ -230,7 +230,7 @@ class BP_Core_User {
|
|
230 |
* Default: false.
|
231 |
* @param string|bool $meta_value See {@link BP_User_Query}.
|
232 |
* Default: false.
|
233 |
-
* @return array {
|
234 |
* @type int $total_users Total number of users matched by query
|
235 |
* params.
|
236 |
* @type array $paged_users The current page of users matched by
|
@@ -439,7 +439,7 @@ class BP_Core_User {
|
|
439 |
* @param bool $populate_extras If we should populate extra user fields.
|
440 |
* @param string $exclude Comma-separated IDs of users whose results
|
441 |
* aren't to be fetched.
|
442 |
-
* @return
|
443 |
*/
|
444 |
public static function get_users_by_letter( $letter, $limit = null, $page = 1, $populate_extras = true, $exclude = '' ) {
|
445 |
global $wpdb;
|
@@ -767,7 +767,7 @@ class BP_Core_User {
|
|
767 |
* Get last activity data for a user or set of users.
|
768 |
*
|
769 |
* @param int|array $user_id User IDs or multiple user IDs.
|
770 |
-
* @return array
|
771 |
*/
|
772 |
public static function get_last_activity( $user_id ) {
|
773 |
global $wpdb;
|
157 |
|
158 |
$this->user_url = bp_core_get_user_domain( $this->id, $this->profile_data['user_nicename'], $this->profile_data['user_login'] );
|
159 |
$this->fullname = esc_attr( $this->profile_data[$full_name_field_name]['field_data'] );
|
160 |
+
$this->user_link = "<a href='{$this->user_url}'>{$this->fullname}</a>";
|
161 |
$this->email = esc_attr( $this->profile_data['user_email'] );
|
162 |
} else {
|
163 |
$this->user_url = bp_core_get_user_domain( $this->id );
|
230 |
* Default: false.
|
231 |
* @param string|bool $meta_value See {@link BP_User_Query}.
|
232 |
* Default: false.
|
233 |
+
* @return false|array {
|
234 |
* @type int $total_users Total number of users matched by query
|
235 |
* params.
|
236 |
* @type array $paged_users The current page of users matched by
|
439 |
* @param bool $populate_extras If we should populate extra user fields.
|
440 |
* @param string $exclude Comma-separated IDs of users whose results
|
441 |
* aren't to be fetched.
|
442 |
+
* @return false|array False on error, otherwise associative array of results.
|
443 |
*/
|
444 |
public static function get_users_by_letter( $letter, $limit = null, $page = 1, $populate_extras = true, $exclude = '' ) {
|
445 |
global $wpdb;
|
767 |
* Get last activity data for a user or set of users.
|
768 |
*
|
769 |
* @param int|array $user_id User IDs or multiple user IDs.
|
770 |
+
* @return false|array
|
771 |
*/
|
772 |
public static function get_last_activity( $user_id ) {
|
773 |
global $wpdb;
|
bp-core/classes/class-bp-phpmailer.php
CHANGED
@@ -51,7 +51,7 @@ class BP_PHPMailer implements BP_Email_Delivery {
|
|
51 |
/*
|
52 |
* Resets.
|
53 |
*/
|
54 |
-
|
55 |
$phpmailer->clearAllRecipients();
|
56 |
$phpmailer->clearAttachments();
|
57 |
$phpmailer->clearCustomHeaders();
|
51 |
/*
|
52 |
* Resets.
|
53 |
*/
|
54 |
+
$phpmailer->MessageDate = date( 'D, j M Y H:i:s O' );
|
55 |
$phpmailer->clearAllRecipients();
|
56 |
$phpmailer->clearAttachments();
|
57 |
$phpmailer->clearCustomHeaders();
|
bp-core/css/admin-bar-rtl.css
CHANGED
@@ -16,6 +16,7 @@
|
|
16 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul {
|
17 |
right: 0;
|
18 |
}
|
|
|
19 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul {
|
20 |
right: 0;
|
21 |
}
|
@@ -30,7 +31,7 @@
|
|
30 |
display: inline;
|
31 |
padding: 2px 5px;
|
32 |
font-size: 10px;
|
33 |
-
font-weight:
|
34 |
-moz-border-radius: 10px;
|
35 |
-khtml-border-radius: 10px;
|
36 |
-webkit-border-radius: 10px;
|
@@ -40,7 +41,7 @@
|
|
40 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications {
|
41 |
background: #ddd;
|
42 |
color: #333;
|
43 |
-
margin: 0
|
44 |
}
|
45 |
|
46 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert {
|
@@ -49,7 +50,7 @@
|
|
49 |
}
|
50 |
|
51 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications > a {
|
52 |
-
padding: 0 .5em;
|
53 |
}
|
54 |
|
55 |
#wp-admin-bar-user-info img.avatar {
|
@@ -65,6 +66,7 @@
|
|
65 |
}
|
66 |
|
67 |
@media screen and (max-width: 600px) {
|
|
|
68 |
#wpadminbar .wp-admin-bar-arrow-right {
|
69 |
display: block;
|
70 |
}
|
16 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul {
|
17 |
right: 0;
|
18 |
}
|
19 |
+
|
20 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul {
|
21 |
right: 0;
|
22 |
}
|
31 |
display: inline;
|
32 |
padding: 2px 5px;
|
33 |
font-size: 10px;
|
34 |
+
font-weight: 700;
|
35 |
-moz-border-radius: 10px;
|
36 |
-khtml-border-radius: 10px;
|
37 |
-webkit-border-radius: 10px;
|
41 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications {
|
42 |
background: #ddd;
|
43 |
color: #333;
|
44 |
+
margin: 0;
|
45 |
}
|
46 |
|
47 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert {
|
50 |
}
|
51 |
|
52 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications > a {
|
53 |
+
padding: 0 0.5em;
|
54 |
}
|
55 |
|
56 |
#wp-admin-bar-user-info img.avatar {
|
66 |
}
|
67 |
|
68 |
@media screen and (max-width: 600px) {
|
69 |
+
|
70 |
#wpadminbar .wp-admin-bar-arrow-right {
|
71 |
display: block;
|
72 |
}
|
bp-core/css/admin-bar-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px -5px 0 10px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul
|
1 |
+
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px -5px 0 10px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul{right:0}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul{right:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications,#wpadminbar .quicklinks li#wp-admin-bar-my-account a span.count,#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar a span.count{background:#21759b;color:#fff;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:700;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications{background:#ddd;color:#333;margin:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert{background-color:#21759b;color:#fff}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications>a{padding:0 .5em}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}#wpadminbar .wp-admin-bar-arrow-right{display:none}@media screen and (max-width:600px){#wpadminbar .wp-admin-bar-arrow-right{display:block}}
|
bp-core/css/admin-bar.css
CHANGED
@@ -16,6 +16,7 @@
|
|
16 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul {
|
17 |
left: 0;
|
18 |
}
|
|
|
19 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul {
|
20 |
left: 0;
|
21 |
}
|
@@ -30,7 +31,7 @@
|
|
30 |
display: inline;
|
31 |
padding: 2px 5px;
|
32 |
font-size: 10px;
|
33 |
-
font-weight:
|
34 |
-moz-border-radius: 10px;
|
35 |
-khtml-border-radius: 10px;
|
36 |
-webkit-border-radius: 10px;
|
@@ -40,7 +41,7 @@
|
|
40 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications {
|
41 |
background: #ddd;
|
42 |
color: #333;
|
43 |
-
margin: 0
|
44 |
}
|
45 |
|
46 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert {
|
@@ -49,7 +50,7 @@
|
|
49 |
}
|
50 |
|
51 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications > a {
|
52 |
-
padding: 0 .5em;
|
53 |
}
|
54 |
|
55 |
#wp-admin-bar-user-info img.avatar {
|
@@ -65,6 +66,7 @@
|
|
65 |
}
|
66 |
|
67 |
@media screen and (max-width: 600px) {
|
|
|
68 |
#wpadminbar .wp-admin-bar-arrow-right {
|
69 |
display: block;
|
70 |
}
|
16 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul {
|
17 |
left: 0;
|
18 |
}
|
19 |
+
|
20 |
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul {
|
21 |
left: 0;
|
22 |
}
|
31 |
display: inline;
|
32 |
padding: 2px 5px;
|
33 |
font-size: 10px;
|
34 |
+
font-weight: 700;
|
35 |
-moz-border-radius: 10px;
|
36 |
-khtml-border-radius: 10px;
|
37 |
-webkit-border-radius: 10px;
|
41 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications {
|
42 |
background: #ddd;
|
43 |
color: #333;
|
44 |
+
margin: 0;
|
45 |
}
|
46 |
|
47 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert {
|
50 |
}
|
51 |
|
52 |
#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications > a {
|
53 |
+
padding: 0 0.5em;
|
54 |
}
|
55 |
|
56 |
#wp-admin-bar-user-info img.avatar {
|
66 |
}
|
67 |
|
68 |
@media screen and (max-width: 600px) {
|
69 |
+
|
70 |
#wpadminbar .wp-admin-bar-arrow-right {
|
71 |
display: block;
|
72 |
}
|
bp-core/css/admin-bar.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px 10px 0 -5px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul
|
1 |
+
#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar>a img,#wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar>a img{width:16px;height:16px;display:inline;border:1px solid #999;vertical-align:middle;margin:-2px 10px 0 -5px;padding:0;background:#eee;float:none}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul{left:0}#wpadminbar .quicklinks li#wp-admin-bar-group-admin-with-avatar ul ul{left:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications,#wpadminbar .quicklinks li#wp-admin-bar-my-account a span.count,#wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar a span.count{background:#21759b;color:#fff;text-shadow:none;display:inline;padding:2px 5px;font-size:10px;font-weight:700;-moz-border-radius:10px;-khtml-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications{background:#ddd;color:#333;margin:0}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications #ab-pending-notifications.alert{background-color:#21759b;color:#fff}#wpadminbar .quicklinks li#wp-admin-bar-bp-notifications>a{padding:0 .5em}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}#wpadminbar .wp-admin-bar-arrow-right{display:none}@media screen and (max-width:600px){#wpadminbar .wp-admin-bar-arrow-right{display:block}}
|
bp-core/css/avatar-rtl.css
CHANGED
@@ -30,7 +30,7 @@ div.bp-cover-image-status .bp-progress {
|
|
30 |
border: 1px solid #d1d1d1;
|
31 |
float: left;
|
32 |
height: 22px;
|
33 |
-
line-height:
|
34 |
margin: 6px 0 0 10px;
|
35 |
margin-bottom: 2px;
|
36 |
padding: 0;
|
@@ -55,6 +55,7 @@ div.bp-cover-image-status .bp-bar {
|
|
55 |
padding: 10px 15px;
|
56 |
}
|
57 |
|
|
|
58 |
#buddypress p.warning,
|
59 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,
|
60 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
@@ -66,11 +67,12 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
66 |
margin: 1em 0;
|
67 |
padding: 10px 15px;
|
68 |
}
|
|
|
69 |
|
70 |
div.bp-avatar-nav {
|
71 |
background: transparent;
|
72 |
clear: both;
|
73 |
-
margin: 10px 0
|
74 |
overflow: hidden;
|
75 |
}
|
76 |
|
@@ -117,7 +119,7 @@ div.bp-avatar-nav {
|
|
117 |
.bp-avatar-nav li.current a {
|
118 |
background: none;
|
119 |
color: inherit;
|
120 |
-
font-weight:
|
121 |
opacity: 0.8;
|
122 |
outline: 0;
|
123 |
}
|
@@ -145,12 +147,6 @@ div.bp-avatar-nav {
|
|
145 |
text-align: inherit;
|
146 |
}
|
147 |
|
148 |
-
.moxie-shim.moxie-shim-html5 {
|
149 |
-
top: 108px !important;
|
150 |
-
right: 40.1% !important;
|
151 |
-
width: 12em;
|
152 |
-
}
|
153 |
-
|
154 |
.moxie-shim.moxie-shim-html5 input {
|
155 |
cursor: pointer;
|
156 |
}
|
@@ -174,10 +170,6 @@ div.bp-avatar-nav {
|
|
174 |
display: block;
|
175 |
}
|
176 |
|
177 |
-
p.drag-drop-buttons input#bp-browse-button {
|
178 |
-
width: 12em;
|
179 |
-
}
|
180 |
-
|
181 |
.drag-drop .drag-drop-inside p {
|
182 |
color: #767676;
|
183 |
font-size: 110%;
|
@@ -189,14 +181,8 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
189 |
margin-top: 0;
|
190 |
}
|
191 |
|
192 |
-
@supports (-ms-accelerator:true) {
|
193 |
-
.drag-drop-inside p.drag-drop-info {
|
194 |
-
display: block;
|
195 |
-
}
|
196 |
-
}
|
197 |
-
|
198 |
#avatar-to-crop {
|
199 |
-
margin: 0 auto 20px
|
200 |
text-align: right;
|
201 |
}
|
202 |
|
@@ -236,6 +222,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
236 |
}
|
237 |
|
238 |
@media screen and (min-width: 801px) {
|
|
|
239 |
#bp-webcam-avatar #avatar-to-crop {
|
240 |
max-width: 64%;
|
241 |
width: 64%;
|
@@ -248,7 +235,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
248 |
|
249 |
#bp-webcam-avatar #avatar-crop-actions {
|
250 |
float: right;
|
251 |
-
margin: 0 0 20px
|
252 |
width: 50%;
|
253 |
}
|
254 |
|
@@ -313,7 +300,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
313 |
}
|
314 |
|
315 |
.bp-avatar .item {
|
316 |
-
overflow:hidden;
|
317 |
}
|
318 |
|
319 |
.bp-avatar .avatar-crop-management.adjust {
|
@@ -338,7 +325,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
338 |
margin: 0 auto 10px;
|
339 |
}
|
340 |
|
341 |
-
#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions
|
342 |
width: auto;
|
343 |
}
|
344 |
|
@@ -363,7 +350,9 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
363 |
|
364 |
}
|
365 |
|
|
|
366 |
/** Admin Profile **/
|
|
|
367 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent,
|
368 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent {
|
369 |
height: 95% !important;
|
@@ -382,9 +371,11 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
382 |
float: right;
|
383 |
margin: 0;
|
384 |
}
|
|
|
385 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
386 |
margin-bottom: 20px;
|
387 |
}
|
|
|
388 |
@media screen and (min-width: 783px) {
|
389 |
|
390 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management {
|
@@ -399,8 +390,8 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
399 |
}
|
400 |
|
401 |
.wp-admin #TB_window .bp-avatar #avatar-to-crop video {
|
402 |
-
|
403 |
-
|
404 |
|
405 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button {
|
406 |
height: auto;
|
@@ -408,6 +399,7 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
408 |
}
|
409 |
|
410 |
@media screen and (min-width: 810px) {
|
|
|
411 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
412 |
max-width: none;
|
413 |
width: 76%;
|
@@ -418,3 +410,4 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
418 |
width: auto;
|
419 |
}
|
420 |
}
|
|
30 |
border: 1px solid #d1d1d1;
|
31 |
float: left;
|
32 |
height: 22px;
|
33 |
+
line-height: 2;
|
34 |
margin: 6px 0 0 10px;
|
35 |
margin-bottom: 2px;
|
36 |
padding: 0;
|
55 |
padding: 10px 15px;
|
56 |
}
|
57 |
|
58 |
+
/* stylelint-disable selector-id-pattern */
|
59 |
#buddypress p.warning,
|
60 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,
|
61 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
67 |
margin: 1em 0;
|
68 |
padding: 10px 15px;
|
69 |
}
|
70 |
+
/* stylelint-enable */
|
71 |
|
72 |
div.bp-avatar-nav {
|
73 |
background: transparent;
|
74 |
clear: both;
|
75 |
+
margin: 10px 0;
|
76 |
overflow: hidden;
|
77 |
}
|
78 |
|
119 |
.bp-avatar-nav li.current a {
|
120 |
background: none;
|
121 |
color: inherit;
|
122 |
+
font-weight: 700;
|
123 |
opacity: 0.8;
|
124 |
outline: 0;
|
125 |
}
|
147 |
text-align: inherit;
|
148 |
}
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
.moxie-shim.moxie-shim-html5 input {
|
151 |
cursor: pointer;
|
152 |
}
|
170 |
display: block;
|
171 |
}
|
172 |
|
|
|
|
|
|
|
|
|
173 |
.drag-drop .drag-drop-inside p {
|
174 |
color: #767676;
|
175 |
font-size: 110%;
|
181 |
margin-top: 0;
|
182 |
}
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
#avatar-to-crop {
|
185 |
+
margin: 0 auto 20px;
|
186 |
text-align: right;
|
187 |
}
|
188 |
|
222 |
}
|
223 |
|
224 |
@media screen and (min-width: 801px) {
|
225 |
+
|
226 |
#bp-webcam-avatar #avatar-to-crop {
|
227 |
max-width: 64%;
|
228 |
width: 64%;
|
235 |
|
236 |
#bp-webcam-avatar #avatar-crop-actions {
|
237 |
float: right;
|
238 |
+
margin: 0 0 20px;
|
239 |
width: 50%;
|
240 |
}
|
241 |
|
300 |
}
|
301 |
|
302 |
.bp-avatar .item {
|
303 |
+
overflow: hidden;
|
304 |
}
|
305 |
|
306 |
.bp-avatar .avatar-crop-management.adjust {
|
325 |
margin: 0 auto 10px;
|
326 |
}
|
327 |
|
328 |
+
#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions {
|
329 |
width: auto;
|
330 |
}
|
331 |
|
350 |
|
351 |
}
|
352 |
|
353 |
+
|
354 |
/** Admin Profile **/
|
355 |
+
/* stylelint-disable selector-id-pattern */
|
356 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent,
|
357 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent {
|
358 |
height: 95% !important;
|
371 |
float: right;
|
372 |
margin: 0;
|
373 |
}
|
374 |
+
|
375 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
376 |
margin-bottom: 20px;
|
377 |
}
|
378 |
+
|
379 |
@media screen and (min-width: 783px) {
|
380 |
|
381 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management {
|
390 |
}
|
391 |
|
392 |
.wp-admin #TB_window .bp-avatar #avatar-to-crop video {
|
393 |
+
width: 100%;
|
394 |
+
}
|
395 |
|
396 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button {
|
397 |
height: auto;
|
399 |
}
|
400 |
|
401 |
@media screen and (min-width: 810px) {
|
402 |
+
|
403 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
404 |
max-width: none;
|
405 |
width: 76%;
|
410 |
width: auto;
|
411 |
}
|
412 |
}
|
413 |
+
/* stylelint-enable */
|
bp-core/css/avatar-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:left;height:22px;line-height:
|
1 |
+
div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:left;height:22px;line-height:2;margin:6px 0 0 10px;margin-bottom:2px;padding:0;overflow:hidden;width:200px}div.bp-avatar-status .bp-bar,div.bp-cover-image-status .bp-bar{background-color:#c3ff88;width:0;height:100%;z-index:9}.bp-uploader-progress div.error{background-color:#fdc;border:1px solid #a00;color:#800;display:block;font-size:90%;padding:10px 15px}#buddypress p.warning,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{background-color:#ffd;border:1px solid #cb2;color:#440;display:block;font-size:90%;margin:1em 0;padding:10px 15px}div.bp-avatar-nav{background:0 0;clear:both;margin:10px 0;overflow:hidden}.avatar-nav-items{margin:0;padding:0}.bp-avatar-nav .avatar-nav-items li.avatar-nav-item{float:right!important;margin:0;list-style:none}.avatar-nav-items li a{display:block;padding:5px 10px;text-decoration:none}.bp-avatar-nav ul:after,.bp-avatar-nav ul:before{content:" ";display:table}.bp-avatar-nav ul:after{clear:both}.bp-avatar-nav ul{border-bottom:1px solid #ccc;margin-bottom:10px}.bp-avatar-nav ul.avatar-nav-items li.current{border:1px solid #ccc;border-bottom-color:#fff;border-top-right-radius:4px;border-top-left-radius:4px;margin-bottom:-1px}.bp-avatar-nav li.current a{background:0 0;color:inherit;font-weight:700;opacity:.8;outline:0}#drag-drop-area{border:4px dashed #bbb;height:200px}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}.drag-drop-inside p{display:none}.drag-drop-inside p.drag-drop-buttons{margin-top:80px;text-align:center}.drag-drop .drag-drop-inside p.drag-drop-buttons{margin:auto;text-align:inherit}.moxie-shim.moxie-shim-html5 input{cursor:pointer}.drag-drop #drag-drop-area{box-sizing:border-box;display:table;height:100%;width:100%}.drag-drop .drag-drop-inside{display:table-cell;padding:40px 0;text-align:center;vertical-align:middle}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop .drag-drop-inside p{color:#767676;font-size:110%;margin:5px 0;text-align:center}.drag-drop-inside p.drag-drop-info{margin-top:0}#avatar-to-crop{margin:0 auto 20px;text-align:right}#bp-webcam-avatar #avatar-to-crop{float:right;margin:0 0 20px}#avatar-to-crop .jcrop-holder{margin:0 auto}.avatar-crop-management{clear:right;overflow:hidden;padding-top:20px;text-align:center}#bp-webcam-avatar .avatar-crop-management{clear:none;float:none;overflow:visible;padding-top:0;width:auto}#avatar-crop-pane{margin:0 auto;overflow:hidden}#bp-webcam-avatar #avatar-to-crop{border:1px solid #eee;max-width:100%;width:100%}@media screen and (min-width:801px){#bp-webcam-avatar #avatar-to-crop{max-width:64%;width:64%}}#avatar-crop-actions a{display:block}#bp-webcam-avatar #avatar-crop-actions{float:right;margin:0 0 20px;width:50%}#avatar-crop-actions a.button{margin-top:10px}#bp-webcam-avatar #avatar-crop-actions a.button{display:block;margin:0 0 5px;padding:4px 0;width:100%}#avatar-crop-pane canvas,#avatar-crop-pane img,#avatar-to-crop img,#avatar-upload-form img,#create-group-form img,#group-settings-form img{border:none!important;max-width:none!important}#bp-webcam-avatar video{float:right;margin-bottom:0;max-width:100%;width:100%;-webkit-transform:scaleX(-1);transform:scaleX(-1)}#bp-webcam-avatar #avatar-crop-pane{border:2px dashed #bbb;clear:right;float:left;margin:0 0 10px 40px;overflow:hidden}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{max-width:150px;max-height:150px}#avatar-crop-pane canvas{height:auto;width:100%;max-width:100%}.group-avatar .bp-avatar .avatar-crop-management{margin-right:0;padding-top:0;width:auto}.bp-avatar .item{overflow:hidden}.bp-avatar .avatar-crop-management.adjust{float:right;clear:none;padding-top:0}.bp-avatar #avatar-to-crop.adjust{float:right;margin-left:20px}@media screen and (max-width:480px){#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions,#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{width:auto}}@media screen and (min-width:801px){#bp-webcam-avatar .avatar-crop-management{clear:none;float:left}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none;margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{float:right;width:100%}}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent{height:95%!important;width:95%!important}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{display:block;padding:10px 15px}.wp-admin #TB_window .bp-avatar #avatar-to-crop{float:right;margin:0}.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{margin-bottom:20px}@media screen and (min-width:783px){.wp-admin #TB_window .bp-avatar .avatar-crop-management{clear:none;float:right;margin-right:20px;padding-top:0;text-align:center}}.wp-admin #TB_window .bp-avatar #avatar-to-crop video{width:100%}.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button{height:auto;line-height:inherit}@media screen and (min-width:810px){.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{max-width:none;width:76%}.wp-admin #TB_window #bp-webcam-avatar .avatar-crop-management{max-width:none;width:auto}}
|
bp-core/css/avatar.css
CHANGED
@@ -30,7 +30,7 @@ div.bp-cover-image-status .bp-progress {
|
|
30 |
border: 1px solid #d1d1d1;
|
31 |
float: right;
|
32 |
height: 22px;
|
33 |
-
line-height:
|
34 |
margin: 6px 10px 0 0;
|
35 |
margin-bottom: 2px;
|
36 |
padding: 0;
|
@@ -55,6 +55,7 @@ div.bp-cover-image-status .bp-bar {
|
|
55 |
padding: 10px 15px;
|
56 |
}
|
57 |
|
|
|
58 |
#buddypress p.warning,
|
59 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,
|
60 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
@@ -66,11 +67,12 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
66 |
margin: 1em 0;
|
67 |
padding: 10px 15px;
|
68 |
}
|
|
|
69 |
|
70 |
div.bp-avatar-nav {
|
71 |
background: transparent;
|
72 |
clear: both;
|
73 |
-
margin: 10px 0
|
74 |
overflow: hidden;
|
75 |
}
|
76 |
|
@@ -117,7 +119,7 @@ div.bp-avatar-nav {
|
|
117 |
.bp-avatar-nav li.current a {
|
118 |
background: none;
|
119 |
color: inherit;
|
120 |
-
font-weight:
|
121 |
opacity: 0.8;
|
122 |
outline: 0;
|
123 |
}
|
@@ -145,12 +147,6 @@ div.bp-avatar-nav {
|
|
145 |
text-align: inherit;
|
146 |
}
|
147 |
|
148 |
-
.moxie-shim.moxie-shim-html5 {
|
149 |
-
top: 108px !important;
|
150 |
-
left: 40.1% !important;
|
151 |
-
width: 12em;
|
152 |
-
}
|
153 |
-
|
154 |
.moxie-shim.moxie-shim-html5 input {
|
155 |
cursor: pointer;
|
156 |
}
|
@@ -174,10 +170,6 @@ div.bp-avatar-nav {
|
|
174 |
display: block;
|
175 |
}
|
176 |
|
177 |
-
p.drag-drop-buttons input#bp-browse-button {
|
178 |
-
width: 12em;
|
179 |
-
}
|
180 |
-
|
181 |
.drag-drop .drag-drop-inside p {
|
182 |
color: #767676;
|
183 |
font-size: 110%;
|
@@ -189,14 +181,8 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
189 |
margin-top: 0;
|
190 |
}
|
191 |
|
192 |
-
@supports (-ms-accelerator:true) {
|
193 |
-
.drag-drop-inside p.drag-drop-info {
|
194 |
-
display: block;
|
195 |
-
}
|
196 |
-
}
|
197 |
-
|
198 |
#avatar-to-crop {
|
199 |
-
margin: 0 auto 20px
|
200 |
text-align: left;
|
201 |
}
|
202 |
|
@@ -236,6 +222,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
236 |
}
|
237 |
|
238 |
@media screen and (min-width: 801px) {
|
|
|
239 |
#bp-webcam-avatar #avatar-to-crop {
|
240 |
max-width: 64%;
|
241 |
width: 64%;
|
@@ -248,7 +235,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
248 |
|
249 |
#bp-webcam-avatar #avatar-crop-actions {
|
250 |
float: left;
|
251 |
-
margin: 0 0 20px
|
252 |
width: 50%;
|
253 |
}
|
254 |
|
@@ -313,7 +300,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
313 |
}
|
314 |
|
315 |
.bp-avatar .item {
|
316 |
-
overflow:hidden;
|
317 |
}
|
318 |
|
319 |
.bp-avatar .avatar-crop-management.adjust {
|
@@ -338,7 +325,7 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
338 |
margin: 0 auto 10px;
|
339 |
}
|
340 |
|
341 |
-
#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions
|
342 |
width: auto;
|
343 |
}
|
344 |
|
@@ -363,7 +350,9 @@ p.drag-drop-buttons input#bp-browse-button {
|
|
363 |
|
364 |
}
|
365 |
|
|
|
366 |
/** Admin Profile **/
|
|
|
367 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent,
|
368 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent {
|
369 |
height: 95% !important;
|
@@ -382,9 +371,11 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
382 |
float: left;
|
383 |
margin: 0;
|
384 |
}
|
|
|
385 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
386 |
margin-bottom: 20px;
|
387 |
}
|
|
|
388 |
@media screen and (min-width: 783px) {
|
389 |
|
390 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management {
|
@@ -399,8 +390,8 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
399 |
}
|
400 |
|
401 |
.wp-admin #TB_window .bp-avatar #avatar-to-crop video {
|
402 |
-
|
403 |
-
|
404 |
|
405 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button {
|
406 |
height: auto;
|
@@ -408,6 +399,7 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
408 |
}
|
409 |
|
410 |
@media screen and (min-width: 810px) {
|
|
|
411 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
412 |
max-width: none;
|
413 |
width: 76%;
|
@@ -418,3 +410,4 @@ body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
|
418 |
width: auto;
|
419 |
}
|
420 |
}
|
|
30 |
border: 1px solid #d1d1d1;
|
31 |
float: right;
|
32 |
height: 22px;
|
33 |
+
line-height: 2;
|
34 |
margin: 6px 10px 0 0;
|
35 |
margin-bottom: 2px;
|
36 |
padding: 0;
|
55 |
padding: 10px 15px;
|
56 |
}
|
57 |
|
58 |
+
/* stylelint-disable selector-id-pattern */
|
59 |
#buddypress p.warning,
|
60 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,
|
61 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning {
|
67 |
margin: 1em 0;
|
68 |
padding: 10px 15px;
|
69 |
}
|
70 |
+
/* stylelint-enable */
|
71 |
|
72 |
div.bp-avatar-nav {
|
73 |
background: transparent;
|
74 |
clear: both;
|
75 |
+
margin: 10px 0;
|
76 |
overflow: hidden;
|
77 |
}
|
78 |
|
119 |
.bp-avatar-nav li.current a {
|
120 |
background: none;
|
121 |
color: inherit;
|
122 |
+
font-weight: 700;
|
123 |
opacity: 0.8;
|
124 |
outline: 0;
|
125 |
}
|
147 |
text-align: inherit;
|
148 |
}
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
.moxie-shim.moxie-shim-html5 input {
|
151 |
cursor: pointer;
|
152 |
}
|
170 |
display: block;
|
171 |
}
|
172 |
|
|
|
|
|
|
|
|
|
173 |
.drag-drop .drag-drop-inside p {
|
174 |
color: #767676;
|
175 |
font-size: 110%;
|
181 |
margin-top: 0;
|
182 |
}
|
183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
#avatar-to-crop {
|
185 |
+
margin: 0 auto 20px;
|
186 |
text-align: left;
|
187 |
}
|
188 |
|
222 |
}
|
223 |
|
224 |
@media screen and (min-width: 801px) {
|
225 |
+
|
226 |
#bp-webcam-avatar #avatar-to-crop {
|
227 |
max-width: 64%;
|
228 |
width: 64%;
|
235 |
|
236 |
#bp-webcam-avatar #avatar-crop-actions {
|
237 |
float: left;
|
238 |
+
margin: 0 0 20px;
|
239 |
width: 50%;
|
240 |
}
|
241 |
|
300 |
}
|
301 |
|
302 |
.bp-avatar .item {
|
303 |
+
overflow: hidden;
|
304 |
}
|
305 |
|
306 |
.bp-avatar .avatar-crop-management.adjust {
|
325 |
margin: 0 auto 10px;
|
326 |
}
|
327 |
|
328 |
+
#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions {
|
329 |
width: auto;
|
330 |
}
|
331 |
|
350 |
|
351 |
}
|
352 |
|
353 |
+
|
354 |
/** Admin Profile **/
|
355 |
+
/* stylelint-disable selector-id-pattern */
|
356 |
body.users_page_bp-profile-edit.modal-open #TB_ajaxContent,
|
357 |
body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent {
|
358 |
height: 95% !important;
|
371 |
float: left;
|
372 |
margin: 0;
|
373 |
}
|
374 |
+
|
375 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
376 |
margin-bottom: 20px;
|
377 |
}
|
378 |
+
|
379 |
@media screen and (min-width: 783px) {
|
380 |
|
381 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management {
|
390 |
}
|
391 |
|
392 |
.wp-admin #TB_window .bp-avatar #avatar-to-crop video {
|
393 |
+
width: 100%;
|
394 |
+
}
|
395 |
|
396 |
.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button {
|
397 |
height: auto;
|
399 |
}
|
400 |
|
401 |
@media screen and (min-width: 810px) {
|
402 |
+
|
403 |
.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop {
|
404 |
max-width: none;
|
405 |
width: 76%;
|
410 |
width: auto;
|
411 |
}
|
412 |
}
|
413 |
+
/* stylelint-enable */
|
bp-core/css/avatar.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:right;height:22px;line-height:
|
1 |
+
div.bp-avatar-status,div.bp-cover-image-status{clear:both;margin:1em 0}div.bp-avatar-status p.updated,div.bp-cover-image-status p.updated{display:block;padding:10px 15px}div.bp-avatar-status p.success,div.bp-cover-image-status p.success{background-color:#efc;border:1px solid #591;color:#250}div.bp-avatar-status p.error,div.bp-cover-image-status p.error{background-color:#fdc;border:1px solid #a00;color:#800}div.bp-avatar-status .bp-progress,div.bp-cover-image-status .bp-progress{background:0 0;border:1px solid #d1d1d1;float:right;height:22px;line-height:2;margin:6px 10px 0 0;margin-bottom:2px;padding:0;overflow:hidden;width:200px}div.bp-avatar-status .bp-bar,div.bp-cover-image-status .bp-bar{background-color:#c3ff88;width:0;height:100%;z-index:9}.bp-uploader-progress div.error{background-color:#fdc;border:1px solid #a00;color:#800;display:block;font-size:90%;padding:10px 15px}#buddypress p.warning,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{background-color:#ffd;border:1px solid #cb2;color:#440;display:block;font-size:90%;margin:1em 0;padding:10px 15px}div.bp-avatar-nav{background:0 0;clear:both;margin:10px 0;overflow:hidden}.avatar-nav-items{margin:0;padding:0}.bp-avatar-nav .avatar-nav-items li.avatar-nav-item{float:left!important;margin:0;list-style:none}.avatar-nav-items li a{display:block;padding:5px 10px;text-decoration:none}.bp-avatar-nav ul:after,.bp-avatar-nav ul:before{content:" ";display:table}.bp-avatar-nav ul:after{clear:both}.bp-avatar-nav ul{border-bottom:1px solid #ccc;margin-bottom:10px}.bp-avatar-nav ul.avatar-nav-items li.current{border:1px solid #ccc;border-bottom-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;margin-bottom:-1px}.bp-avatar-nav li.current a{background:0 0;color:inherit;font-weight:700;opacity:.8;outline:0}#drag-drop-area{border:4px dashed #bbb;height:200px}.drag-drop.drag-over #drag-drop-area{border-color:#83b4d8}.drag-drop-inside p{display:none}.drag-drop-inside p.drag-drop-buttons{margin-top:80px;text-align:center}.drag-drop .drag-drop-inside p.drag-drop-buttons{margin:auto;text-align:inherit}.moxie-shim.moxie-shim-html5 input{cursor:pointer}.drag-drop #drag-drop-area{box-sizing:border-box;display:table;height:100%;width:100%}.drag-drop .drag-drop-inside{display:table-cell;padding:40px 0;text-align:center;vertical-align:middle}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop .drag-drop-inside p{color:#767676;font-size:110%;margin:5px 0;text-align:center}.drag-drop-inside p.drag-drop-info{margin-top:0}#avatar-to-crop{margin:0 auto 20px;text-align:left}#bp-webcam-avatar #avatar-to-crop{float:left;margin:0 0 20px}#avatar-to-crop .jcrop-holder{margin:0 auto}.avatar-crop-management{clear:left;overflow:hidden;padding-top:20px;text-align:center}#bp-webcam-avatar .avatar-crop-management{clear:none;float:none;overflow:visible;padding-top:0;width:auto}#avatar-crop-pane{margin:0 auto;overflow:hidden}#bp-webcam-avatar #avatar-to-crop{border:1px solid #eee;max-width:100%;width:100%}@media screen and (min-width:801px){#bp-webcam-avatar #avatar-to-crop{max-width:64%;width:64%}}#avatar-crop-actions a{display:block}#bp-webcam-avatar #avatar-crop-actions{float:left;margin:0 0 20px;width:50%}#avatar-crop-actions a.button{margin-top:10px}#bp-webcam-avatar #avatar-crop-actions a.button{display:block;margin:0 0 5px;padding:4px 0;width:100%}#avatar-crop-pane canvas,#avatar-crop-pane img,#avatar-to-crop img,#avatar-upload-form img,#create-group-form img,#group-settings-form img{border:none!important;max-width:none!important}#bp-webcam-avatar video{float:left;margin-bottom:0;max-width:100%;width:100%;-webkit-transform:scaleX(-1);transform:scaleX(-1)}#bp-webcam-avatar #avatar-crop-pane{border:2px dashed #bbb;clear:left;float:right;margin:0 40px 10px 0;overflow:hidden}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{max-width:150px;max-height:150px}#avatar-crop-pane canvas{height:auto;width:100%;max-width:100%}.group-avatar .bp-avatar .avatar-crop-management{margin-left:0;padding-top:0;width:auto}.bp-avatar .item{overflow:hidden}.bp-avatar .avatar-crop-management.adjust{float:left;clear:none;padding-top:0}.bp-avatar #avatar-to-crop.adjust{float:left;margin-right:20px}@media screen and (max-width:480px){#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions,#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{width:auto}}@media screen and (min-width:801px){#bp-webcam-avatar .avatar-crop-management{clear:none;float:right}#bp-webcam-avatar .avatar-crop-management #avatar-crop-pane{float:none;margin:0 auto 10px}#bp-webcam-avatar .avatar-crop-management #avatar-crop-actions{float:left;width:100%}}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent{height:95%!important;width:95%!important}body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.profile_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.updated,body.users_page_bp-profile-edit.modal-open #TB_ajaxContent p.warning{display:block;padding:10px 15px}.wp-admin #TB_window .bp-avatar #avatar-to-crop{float:left;margin:0}.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{margin-bottom:20px}@media screen and (min-width:783px){.wp-admin #TB_window .bp-avatar .avatar-crop-management{clear:none;float:left;margin-left:20px;padding-top:0;text-align:center}}.wp-admin #TB_window .bp-avatar #avatar-to-crop video{width:100%}.wp-admin #TB_window .bp-avatar .avatar-crop-management a.button{height:auto;line-height:inherit}@media screen and (min-width:810px){.wp-admin #TB_window .bp-avatar #bp-webcam-avatar #avatar-to-crop{max-width:none;width:76%}.wp-admin #TB_window #bp-webcam-avatar .avatar-crop-management{max-width:none;width:auto}}
|
bp-core/css/buddybar-rtl.css
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
body:not(.wp-admin) {
|
2 |
padding-top: 25px !important;
|
3 |
}
|
|
|
4 |
#wp-admin-bar {
|
5 |
position: fixed;
|
6 |
top: 0;
|
@@ -10,63 +11,76 @@ body:not(.wp-admin) {
|
|
10 |
width: 100%;
|
11 |
z-index: 9999;
|
12 |
}
|
|
|
13 |
#wp-admin-bar .padder {
|
14 |
position: relative;
|
15 |
padding: 0;
|
16 |
width: 100%;
|
17 |
margin: 0 auto;
|
18 |
-
background: url(
|
19 |
height: 25px;
|
20 |
}
|
|
|
21 |
body#bp-default #wp-admin-bar .padder {
|
22 |
max-width: 1250px;
|
23 |
}
|
|
|
24 |
#wp-admin-bar * {
|
25 |
z-index: 999;
|
26 |
}
|
|
|
27 |
#wp-admin-bar div#admin-bar-logo {
|
28 |
position: absolute;
|
29 |
top: 5px;
|
30 |
right: 10px;
|
31 |
}
|
|
|
32 |
#wp-admin-bar a img {
|
33 |
border: none;
|
34 |
}
|
|
|
35 |
#wp-admin-bar li {
|
36 |
list-style: none;
|
37 |
margin: 0;
|
38 |
padding: 0;
|
39 |
-
line-height:
|
40 |
text-align: right;
|
41 |
}
|
|
|
42 |
#wp-admin-bar li a {
|
43 |
-
padding: 7px 15px
|
44 |
color: #eee;
|
45 |
text-decoration: none;
|
46 |
font-size: 11px;
|
47 |
}
|
|
|
48 |
#wp-admin-bar li.alt {
|
49 |
border: none;
|
50 |
}
|
|
|
51 |
#wp-admin-bar li.no-arrow a {
|
52 |
padding-left: 15px;
|
53 |
}
|
|
|
54 |
#wp-admin-bar ul li ul li a span {
|
55 |
display: none;
|
56 |
}
|
|
|
57 |
#wp-admin-bar li:hover,
|
58 |
#wp-admin-bar li.hover {
|
59 |
position: static;
|
60 |
}
|
|
|
61 |
#admin-bar-logo {
|
62 |
float: right;
|
63 |
-
font-weight:
|
64 |
font-size: 11px;
|
65 |
padding: 5px 8px;
|
66 |
margin: 0;
|
67 |
text-decoration: none;
|
68 |
color: #fff;
|
69 |
}
|
|
|
70 |
body#bp-default #admin-bar-logo {
|
71 |
padding: 2px 8px;
|
72 |
}
|
@@ -86,23 +100,28 @@ body#bp-default #admin-bar-logo {
|
|
86 |
padding: 0;
|
87 |
float: right;
|
88 |
position: relative;
|
89 |
-
background: url(
|
90 |
padding-left: 11px;
|
91 |
}
|
|
|
92 |
#wp-admin-bar ul li.no-arrow {
|
93 |
background: none;
|
94 |
padding-left: 0;
|
95 |
}
|
|
|
96 |
#wp-admin-bar ul li ul li {
|
97 |
background-image: none;
|
98 |
}
|
|
|
99 |
#wp-admin-bar ul li.align-right {
|
100 |
position: absolute;
|
101 |
left: 0;
|
102 |
}
|
|
|
103 |
#wp-admin-bar ul li a {
|
104 |
display: block;
|
105 |
}
|
|
|
106 |
#wp-admin-bar ul.main-nav li:hover,
|
107 |
#wp-admin-bar ul.main-nav li.sfhover,
|
108 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
@@ -126,23 +145,29 @@ body#bp-default #admin-bar-logo {
|
|
126 |
-moz-border-radius-topleft: 0;
|
127 |
-webkit-border-top-left-radius: 0;
|
128 |
}
|
|
|
129 |
#wp-admin-bar ul li > ul {
|
130 |
border-top: none;
|
131 |
}
|
|
|
132 |
#wp-admin-bar ul li ul a {
|
133 |
color: #eee;
|
134 |
}
|
|
|
135 |
#wp-admin-bar ul li ul li {
|
136 |
float: right;
|
137 |
width: 174px;
|
138 |
margin: 0;
|
139 |
}
|
|
|
140 |
#wp-admin-bar ul li ul li:hover a {
|
141 |
color: #fff;
|
142 |
}
|
|
|
143 |
#wp-admin-bar ul li div.admin-bar-clear {
|
144 |
clear: both;
|
145 |
}
|
|
|
146 |
#wp-admin-bar ul.main-nav li ul li:hover,
|
147 |
#wp-admin-bar ul.main-nav li ul li.sfhover,
|
148 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
@@ -155,21 +180,26 @@ body#bp-default #admin-bar-logo {
|
|
155 |
-moz-border-radius: 3px;
|
156 |
-webkit-border-radius: 3px;
|
157 |
}
|
|
|
158 |
#wp-admin-bar ul li ul li:hover ul li a {
|
159 |
color: #eee;
|
160 |
}
|
|
|
161 |
#wp-admin-bar ul li ul li ul li:hover a {
|
162 |
color: #fff;
|
163 |
}
|
|
|
164 |
#wp-admin-bar ul li:hover ul,
|
165 |
#wp-admin-bar ul li ul li:hover ul,
|
166 |
#wp-admin-bar ul li.sfhover ul,
|
167 |
#wp-admin-bar ul li ul li.sfhover ul {
|
168 |
right: auto;
|
169 |
}
|
|
|
170 |
#wp-admin-bar ul li.align-right:hover ul {
|
171 |
left: 0;
|
172 |
}
|
|
|
173 |
#wp-admin-bar ul li:hover ul ul,
|
174 |
#wp-admin-bar li.sfhover ul li ul {
|
175 |
right: -999em;
|
@@ -180,14 +210,17 @@ body#bp-default #admin-bar-logo {
|
|
180 |
float: right;
|
181 |
margin-left: 8px;
|
182 |
}
|
|
|
183 |
#wp-admin-bar span.activity {
|
184 |
display: block;
|
185 |
margin-right: 34px;
|
186 |
padding: 0;
|
187 |
}
|
|
|
188 |
#wp-admin-bar ul.author-list li a {
|
189 |
height: 17px;
|
190 |
}
|
|
|
191 |
#wp-admin-bar ul li#bp-adminbar-notifications-menu a span {
|
192 |
padding: 0 6px;
|
193 |
margin-right: 2px;
|
@@ -197,6 +230,7 @@ body#bp-default #admin-bar-logo {
|
|
197 |
-webkit-border-radius: 3px;
|
198 |
border-radius: 3px;
|
199 |
}
|
|
|
200 |
#wp-admin-bar-user-info img.avatar {
|
201 |
height: 64px;
|
202 |
width: 64px;
|
1 |
body:not(.wp-admin) {
|
2 |
padding-top: 25px !important;
|
3 |
}
|
4 |
+
|
5 |
#wp-admin-bar {
|
6 |
position: fixed;
|
7 |
top: 0;
|
11 |
width: 100%;
|
12 |
z-index: 9999;
|
13 |
}
|
14 |
+
|
15 |
#wp-admin-bar .padder {
|
16 |
position: relative;
|
17 |
padding: 0;
|
18 |
width: 100%;
|
19 |
margin: 0 auto;
|
20 |
+
background: url(../images/60pc_black.png);
|
21 |
height: 25px;
|
22 |
}
|
23 |
+
|
24 |
body#bp-default #wp-admin-bar .padder {
|
25 |
max-width: 1250px;
|
26 |
}
|
27 |
+
|
28 |
#wp-admin-bar * {
|
29 |
z-index: 999;
|
30 |
}
|
31 |
+
|
32 |
#wp-admin-bar div#admin-bar-logo {
|
33 |
position: absolute;
|
34 |
top: 5px;
|
35 |
right: 10px;
|
36 |
}
|
37 |
+
|
38 |
#wp-admin-bar a img {
|
39 |
border: none;
|
40 |
}
|
41 |
+
|
42 |
#wp-admin-bar li {
|
43 |
list-style: none;
|
44 |
margin: 0;
|
45 |
padding: 0;
|
46 |
+
line-height: 1;
|
47 |
text-align: right;
|
48 |
}
|
49 |
+
|
50 |
#wp-admin-bar li a {
|
51 |
+
padding: 7px 15px;
|
52 |
color: #eee;
|
53 |
text-decoration: none;
|
54 |
font-size: 11px;
|
55 |
}
|
56 |
+
|
57 |
#wp-admin-bar li.alt {
|
58 |
border: none;
|
59 |
}
|
60 |
+
|
61 |
#wp-admin-bar li.no-arrow a {
|
62 |
padding-left: 15px;
|
63 |
}
|
64 |
+
|
65 |
#wp-admin-bar ul li ul li a span {
|
66 |
display: none;
|
67 |
}
|
68 |
+
|
69 |
#wp-admin-bar li:hover,
|
70 |
#wp-admin-bar li.hover {
|
71 |
position: static;
|
72 |
}
|
73 |
+
|
74 |
#admin-bar-logo {
|
75 |
float: right;
|
76 |
+
font-weight: 700;
|
77 |
font-size: 11px;
|
78 |
padding: 5px 8px;
|
79 |
margin: 0;
|
80 |
text-decoration: none;
|
81 |
color: #fff;
|
82 |
}
|
83 |
+
|
84 |
body#bp-default #admin-bar-logo {
|
85 |
padding: 2px 8px;
|
86 |
}
|
100 |
padding: 0;
|
101 |
float: right;
|
102 |
position: relative;
|
103 |
+
background: url(../images/admin-menu-arrow.gif) 88% 53% no-repeat;
|
104 |
padding-left: 11px;
|
105 |
}
|
106 |
+
|
107 |
#wp-admin-bar ul li.no-arrow {
|
108 |
background: none;
|
109 |
padding-left: 0;
|
110 |
}
|
111 |
+
|
112 |
#wp-admin-bar ul li ul li {
|
113 |
background-image: none;
|
114 |
}
|
115 |
+
|
116 |
#wp-admin-bar ul li.align-right {
|
117 |
position: absolute;
|
118 |
left: 0;
|
119 |
}
|
120 |
+
|
121 |
#wp-admin-bar ul li a {
|
122 |
display: block;
|
123 |
}
|
124 |
+
|
125 |
#wp-admin-bar ul.main-nav li:hover,
|
126 |
#wp-admin-bar ul.main-nav li.sfhover,
|
127 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
145 |
-moz-border-radius-topleft: 0;
|
146 |
-webkit-border-top-left-radius: 0;
|
147 |
}
|
148 |
+
|
149 |
#wp-admin-bar ul li > ul {
|
150 |
border-top: none;
|
151 |
}
|
152 |
+
|
153 |
#wp-admin-bar ul li ul a {
|
154 |
color: #eee;
|
155 |
}
|
156 |
+
|
157 |
#wp-admin-bar ul li ul li {
|
158 |
float: right;
|
159 |
width: 174px;
|
160 |
margin: 0;
|
161 |
}
|
162 |
+
|
163 |
#wp-admin-bar ul li ul li:hover a {
|
164 |
color: #fff;
|
165 |
}
|
166 |
+
|
167 |
#wp-admin-bar ul li div.admin-bar-clear {
|
168 |
clear: both;
|
169 |
}
|
170 |
+
|
171 |
#wp-admin-bar ul.main-nav li ul li:hover,
|
172 |
#wp-admin-bar ul.main-nav li ul li.sfhover,
|
173 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
180 |
-moz-border-radius: 3px;
|
181 |
-webkit-border-radius: 3px;
|
182 |
}
|
183 |
+
|
184 |
#wp-admin-bar ul li ul li:hover ul li a {
|
185 |
color: #eee;
|
186 |
}
|
187 |
+
|
188 |
#wp-admin-bar ul li ul li ul li:hover a {
|
189 |
color: #fff;
|
190 |
}
|
191 |
+
|
192 |
#wp-admin-bar ul li:hover ul,
|
193 |
#wp-admin-bar ul li ul li:hover ul,
|
194 |
#wp-admin-bar ul li.sfhover ul,
|
195 |
#wp-admin-bar ul li ul li.sfhover ul {
|
196 |
right: auto;
|
197 |
}
|
198 |
+
|
199 |
#wp-admin-bar ul li.align-right:hover ul {
|
200 |
left: 0;
|
201 |
}
|
202 |
+
|
203 |
#wp-admin-bar ul li:hover ul ul,
|
204 |
#wp-admin-bar li.sfhover ul li ul {
|
205 |
right: -999em;
|
210 |
float: right;
|
211 |
margin-left: 8px;
|
212 |
}
|
213 |
+
|
214 |
#wp-admin-bar span.activity {
|
215 |
display: block;
|
216 |
margin-right: 34px;
|
217 |
padding: 0;
|
218 |
}
|
219 |
+
|
220 |
#wp-admin-bar ul.author-list li a {
|
221 |
height: 17px;
|
222 |
}
|
223 |
+
|
224 |
#wp-admin-bar ul li#bp-adminbar-notifications-menu a span {
|
225 |
padding: 0 6px;
|
226 |
margin-right: 2px;
|
230 |
-webkit-border-radius: 3px;
|
231 |
border-radius: 3px;
|
232 |
}
|
233 |
+
|
234 |
#wp-admin-bar-user-info img.avatar {
|
235 |
height: 64px;
|
236 |
width: 64px;
|
bp-core/css/buddybar-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
body:not(.wp-admin){padding-top:25px!important}#wp-admin-bar{position:fixed;top:0;right:0;height:25px;font-size:11px;width:100%;z-index:9999}#wp-admin-bar .padder{position:relative;padding:0;width:100%;margin:0 auto;background:url(../images/60pc_black.png);height:25px}body#bp-default #wp-admin-bar .padder{max-width:1250px}#wp-admin-bar *{z-index:999}#wp-admin-bar div#admin-bar-logo{position:absolute;top:5px;right:10px}#wp-admin-bar a img{border:none}#wp-admin-bar li{list-style:none;margin:0;padding:0;line-height:1;text-align:right}#wp-admin-bar li a{padding:7px 15px;color:#eee;text-decoration:none;font-size:11px}#wp-admin-bar li.alt{border:none}#wp-admin-bar li.no-arrow a{padding-left:15px}#wp-admin-bar ul li ul li a span{display:none}#wp-admin-bar li.hover,#wp-admin-bar li:hover{position:static}#admin-bar-logo{float:right;font-weight:700;font-size:11px;padding:5px 8px;margin:0;text-decoration:none;color:#fff}body#bp-default #admin-bar-logo{padding:2px 8px}#wp-admin-bar ul{margin:0;list-style:none;line-height:1;cursor:pointer;height:auto;padding:0}#wp-admin-bar ul li{padding:0;float:right;position:relative;background:url(../images/admin-menu-arrow.gif) 88% 53% no-repeat;padding-left:11px}#wp-admin-bar ul li.no-arrow{background:0 0;padding-left:0}#wp-admin-bar ul li ul li{background-image:none}#wp-admin-bar ul li.align-right{position:absolute;left:0}#wp-admin-bar ul li a{display:block}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li.sfhover,#wp-admin-bar ul.main-nav li:hover{background-color:#333}#wp-admin-bar ul li ul{position:absolute;width:185px;right:-999em;margin-right:0;background:#333;border:1px solid #222;-moz-box-shadow:0 4px 8px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.1);-moz-border-radius:3px;-webkit-border-radius:3px;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0}#wp-admin-bar ul li>ul{border-top:none}#wp-admin-bar ul li ul a{color:#eee}#wp-admin-bar ul li ul li{float:right;width:174px;margin:0}#wp-admin-bar ul li ul li:hover a{color:#fff}#wp-admin-bar ul li div.admin-bar-clear{clear:both}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li ul li:hover{background-color:#222}#wp-admin-bar ul li ul ul{margin:-25px 184px 0 0;-moz-border-radius:3px;-webkit-border-radius:3px}#wp-admin-bar ul li ul li:hover ul li a{color:#eee}#wp-admin-bar ul li ul li ul li:hover a{color:#fff}#wp-admin-bar ul li ul li.sfhover ul,#wp-admin-bar ul li ul li:hover ul,#wp-admin-bar ul li.sfhover ul,#wp-admin-bar ul li:hover ul{right:auto}#wp-admin-bar ul li.align-right:hover ul{left:0}#wp-admin-bar li.sfhover ul li ul,#wp-admin-bar ul li:hover ul ul{right:-999em}#wp-admin-bar img.avatar{float:right;margin-left:8px}#wp-admin-bar span.activity{display:block;margin-right:34px;padding:0}#wp-admin-bar ul.author-list li a{height:17px}#wp-admin-bar ul li#bp-adminbar-notifications-menu a span{padding:0 6px;margin-right:2px;background:#fff;color:#000;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}
|
bp-core/css/buddybar.css
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
body:not(.wp-admin) {
|
2 |
padding-top: 25px !important;
|
3 |
}
|
|
|
4 |
#wp-admin-bar {
|
5 |
position: fixed;
|
6 |
top: 0;
|
@@ -10,63 +11,76 @@ body:not(.wp-admin) {
|
|
10 |
width: 100%;
|
11 |
z-index: 9999;
|
12 |
}
|
|
|
13 |
#wp-admin-bar .padder {
|
14 |
position: relative;
|
15 |
padding: 0;
|
16 |
width: 100%;
|
17 |
margin: 0 auto;
|
18 |
-
background: url(
|
19 |
height: 25px;
|
20 |
}
|
|
|
21 |
body#bp-default #wp-admin-bar .padder {
|
22 |
max-width: 1250px;
|
23 |
}
|
|
|
24 |
#wp-admin-bar * {
|
25 |
z-index: 999;
|
26 |
}
|
|
|
27 |
#wp-admin-bar div#admin-bar-logo {
|
28 |
position: absolute;
|
29 |
top: 5px;
|
30 |
left: 10px;
|
31 |
}
|
|
|
32 |
#wp-admin-bar a img {
|
33 |
border: none;
|
34 |
}
|
|
|
35 |
#wp-admin-bar li {
|
36 |
list-style: none;
|
37 |
margin: 0;
|
38 |
padding: 0;
|
39 |
-
line-height:
|
40 |
text-align: left;
|
41 |
}
|
|
|
42 |
#wp-admin-bar li a {
|
43 |
-
padding: 7px 15px
|
44 |
color: #eee;
|
45 |
text-decoration: none;
|
46 |
font-size: 11px;
|
47 |
}
|
|
|
48 |
#wp-admin-bar li.alt {
|
49 |
border: none;
|
50 |
}
|
|
|
51 |
#wp-admin-bar li.no-arrow a {
|
52 |
padding-right: 15px;
|
53 |
}
|
|
|
54 |
#wp-admin-bar ul li ul li a span {
|
55 |
display: none;
|
56 |
}
|
|
|
57 |
#wp-admin-bar li:hover,
|
58 |
#wp-admin-bar li.hover {
|
59 |
position: static;
|
60 |
}
|
|
|
61 |
#admin-bar-logo {
|
62 |
float: left;
|
63 |
-
font-weight:
|
64 |
font-size: 11px;
|
65 |
padding: 5px 8px;
|
66 |
margin: 0;
|
67 |
text-decoration: none;
|
68 |
color: #fff;
|
69 |
}
|
|
|
70 |
body#bp-default #admin-bar-logo {
|
71 |
padding: 2px 8px;
|
72 |
}
|
@@ -86,23 +100,28 @@ body#bp-default #admin-bar-logo {
|
|
86 |
padding: 0;
|
87 |
float: left;
|
88 |
position: relative;
|
89 |
-
background: url(
|
90 |
padding-right: 11px;
|
91 |
}
|
|
|
92 |
#wp-admin-bar ul li.no-arrow {
|
93 |
background: none;
|
94 |
padding-right: 0;
|
95 |
}
|
|
|
96 |
#wp-admin-bar ul li ul li {
|
97 |
background-image: none;
|
98 |
}
|
|
|
99 |
#wp-admin-bar ul li.align-right {
|
100 |
position: absolute;
|
101 |
right: 0;
|
102 |
}
|
|
|
103 |
#wp-admin-bar ul li a {
|
104 |
display: block;
|
105 |
}
|
|
|
106 |
#wp-admin-bar ul.main-nav li:hover,
|
107 |
#wp-admin-bar ul.main-nav li.sfhover,
|
108 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
@@ -126,23 +145,29 @@ body#bp-default #admin-bar-logo {
|
|
126 |
-moz-border-radius-topright: 0;
|
127 |
-webkit-border-top-right-radius: 0;
|
128 |
}
|
|
|
129 |
#wp-admin-bar ul li > ul {
|
130 |
border-top: none;
|
131 |
}
|
|
|
132 |
#wp-admin-bar ul li ul a {
|
133 |
color: #eee;
|
134 |
}
|
|
|
135 |
#wp-admin-bar ul li ul li {
|
136 |
float: left;
|
137 |
width: 174px;
|
138 |
margin: 0;
|
139 |
}
|
|
|
140 |
#wp-admin-bar ul li ul li:hover a {
|
141 |
color: #fff;
|
142 |
}
|
|
|
143 |
#wp-admin-bar ul li div.admin-bar-clear {
|
144 |
clear: both;
|
145 |
}
|
|
|
146 |
#wp-admin-bar ul.main-nav li ul li:hover,
|
147 |
#wp-admin-bar ul.main-nav li ul li.sfhover,
|
148 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
@@ -155,21 +180,26 @@ body#bp-default #admin-bar-logo {
|
|
155 |
-moz-border-radius: 3px;
|
156 |
-webkit-border-radius: 3px;
|
157 |
}
|
|
|
158 |
#wp-admin-bar ul li ul li:hover ul li a {
|
159 |
color: #eee;
|
160 |
}
|
|
|
161 |
#wp-admin-bar ul li ul li ul li:hover a {
|
162 |
color: #fff;
|
163 |
}
|
|
|
164 |
#wp-admin-bar ul li:hover ul,
|
165 |
#wp-admin-bar ul li ul li:hover ul,
|
166 |
#wp-admin-bar ul li.sfhover ul,
|
167 |
#wp-admin-bar ul li ul li.sfhover ul {
|
168 |
left: auto;
|
169 |
}
|
|
|
170 |
#wp-admin-bar ul li.align-right:hover ul {
|
171 |
right: 0;
|
172 |
}
|
|
|
173 |
#wp-admin-bar ul li:hover ul ul,
|
174 |
#wp-admin-bar li.sfhover ul li ul {
|
175 |
left: -999em;
|
@@ -180,14 +210,17 @@ body#bp-default #admin-bar-logo {
|
|
180 |
float: left;
|
181 |
margin-right: 8px;
|
182 |
}
|
|
|
183 |
#wp-admin-bar span.activity {
|
184 |
display: block;
|
185 |
margin-left: 34px;
|
186 |
padding: 0;
|
187 |
}
|
|
|
188 |
#wp-admin-bar ul.author-list li a {
|
189 |
height: 17px;
|
190 |
}
|
|
|
191 |
#wp-admin-bar ul li#bp-adminbar-notifications-menu a span {
|
192 |
padding: 0 6px;
|
193 |
margin-left: 2px;
|
@@ -197,6 +230,7 @@ body#bp-default #admin-bar-logo {
|
|
197 |
-webkit-border-radius: 3px;
|
198 |
border-radius: 3px;
|
199 |
}
|
|
|
200 |
#wp-admin-bar-user-info img.avatar {
|
201 |
height: 64px;
|
202 |
width: 64px;
|
1 |
body:not(.wp-admin) {
|
2 |
padding-top: 25px !important;
|
3 |
}
|
4 |
+
|
5 |
#wp-admin-bar {
|
6 |
position: fixed;
|
7 |
top: 0;
|
11 |
width: 100%;
|
12 |
z-index: 9999;
|
13 |
}
|
14 |
+
|
15 |
#wp-admin-bar .padder {
|
16 |
position: relative;
|
17 |
padding: 0;
|
18 |
width: 100%;
|
19 |
margin: 0 auto;
|
20 |
+
background: url(../images/60pc_black.png);
|
21 |
height: 25px;
|
22 |
}
|
23 |
+
|
24 |
body#bp-default #wp-admin-bar .padder {
|
25 |
max-width: 1250px;
|
26 |
}
|
27 |
+
|
28 |
#wp-admin-bar * {
|
29 |
z-index: 999;
|
30 |
}
|
31 |
+
|
32 |
#wp-admin-bar div#admin-bar-logo {
|
33 |
position: absolute;
|
34 |
top: 5px;
|
35 |
left: 10px;
|
36 |
}
|
37 |
+
|
38 |
#wp-admin-bar a img {
|
39 |
border: none;
|
40 |
}
|
41 |
+
|
42 |
#wp-admin-bar li {
|
43 |
list-style: none;
|
44 |
margin: 0;
|
45 |
padding: 0;
|
46 |
+
line-height: 1;
|
47 |
text-align: left;
|
48 |
}
|
49 |
+
|
50 |
#wp-admin-bar li a {
|
51 |
+
padding: 7px 15px;
|
52 |
color: #eee;
|
53 |
text-decoration: none;
|
54 |
font-size: 11px;
|
55 |
}
|
56 |
+
|
57 |
#wp-admin-bar li.alt {
|
58 |
border: none;
|
59 |
}
|
60 |
+
|
61 |
#wp-admin-bar li.no-arrow a {
|
62 |
padding-right: 15px;
|
63 |
}
|
64 |
+
|
65 |
#wp-admin-bar ul li ul li a span {
|
66 |
display: none;
|
67 |
}
|
68 |
+
|
69 |
#wp-admin-bar li:hover,
|
70 |
#wp-admin-bar li.hover {
|
71 |
position: static;
|
72 |
}
|
73 |
+
|
74 |
#admin-bar-logo {
|
75 |
float: left;
|
76 |
+
font-weight: 700;
|
77 |
font-size: 11px;
|
78 |
padding: 5px 8px;
|
79 |
margin: 0;
|
80 |
text-decoration: none;
|
81 |
color: #fff;
|
82 |
}
|
83 |
+
|
84 |
body#bp-default #admin-bar-logo {
|
85 |
padding: 2px 8px;
|
86 |
}
|
100 |
padding: 0;
|
101 |
float: left;
|
102 |
position: relative;
|
103 |
+
background: url(../images/admin-menu-arrow.gif) 88% 53% no-repeat;
|
104 |
padding-right: 11px;
|
105 |
}
|
106 |
+
|
107 |
#wp-admin-bar ul li.no-arrow {
|
108 |
background: none;
|
109 |
padding-right: 0;
|
110 |
}
|
111 |
+
|
112 |
#wp-admin-bar ul li ul li {
|
113 |
background-image: none;
|
114 |
}
|
115 |
+
|
116 |
#wp-admin-bar ul li.align-right {
|
117 |
position: absolute;
|
118 |
right: 0;
|
119 |
}
|
120 |
+
|
121 |
#wp-admin-bar ul li a {
|
122 |
display: block;
|
123 |
}
|
124 |
+
|
125 |
#wp-admin-bar ul.main-nav li:hover,
|
126 |
#wp-admin-bar ul.main-nav li.sfhover,
|
127 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
145 |
-moz-border-radius-topright: 0;
|
146 |
-webkit-border-top-right-radius: 0;
|
147 |
}
|
148 |
+
|
149 |
#wp-admin-bar ul li > ul {
|
150 |
border-top: none;
|
151 |
}
|
152 |
+
|
153 |
#wp-admin-bar ul li ul a {
|
154 |
color: #eee;
|
155 |
}
|
156 |
+
|
157 |
#wp-admin-bar ul li ul li {
|
158 |
float: left;
|
159 |
width: 174px;
|
160 |
margin: 0;
|
161 |
}
|
162 |
+
|
163 |
#wp-admin-bar ul li ul li:hover a {
|
164 |
color: #fff;
|
165 |
}
|
166 |
+
|
167 |
#wp-admin-bar ul li div.admin-bar-clear {
|
168 |
clear: both;
|
169 |
}
|
170 |
+
|
171 |
#wp-admin-bar ul.main-nav li ul li:hover,
|
172 |
#wp-admin-bar ul.main-nav li ul li.sfhover,
|
173 |
#wp-admin-bar ul.main-nav li ul li.sfhover {
|
180 |
-moz-border-radius: 3px;
|
181 |
-webkit-border-radius: 3px;
|
182 |
}
|
183 |
+
|
184 |
#wp-admin-bar ul li ul li:hover ul li a {
|
185 |
color: #eee;
|
186 |
}
|
187 |
+
|
188 |
#wp-admin-bar ul li ul li ul li:hover a {
|
189 |
color: #fff;
|
190 |
}
|
191 |
+
|
192 |
#wp-admin-bar ul li:hover ul,
|
193 |
#wp-admin-bar ul li ul li:hover ul,
|
194 |
#wp-admin-bar ul li.sfhover ul,
|
195 |
#wp-admin-bar ul li ul li.sfhover ul {
|
196 |
left: auto;
|
197 |
}
|
198 |
+
|
199 |
#wp-admin-bar ul li.align-right:hover ul {
|
200 |
right: 0;
|
201 |
}
|
202 |
+
|
203 |
#wp-admin-bar ul li:hover ul ul,
|
204 |
#wp-admin-bar li.sfhover ul li ul {
|
205 |
left: -999em;
|
210 |
float: left;
|
211 |
margin-right: 8px;
|
212 |
}
|
213 |
+
|
214 |
#wp-admin-bar span.activity {
|
215 |
display: block;
|
216 |
margin-left: 34px;
|
217 |
padding: 0;
|
218 |
}
|
219 |
+
|
220 |
#wp-admin-bar ul.author-list li a {
|
221 |
height: 17px;
|
222 |
}
|
223 |
+
|
224 |
#wp-admin-bar ul li#bp-adminbar-notifications-menu a span {
|
225 |
padding: 0 6px;
|
226 |
margin-left: 2px;
|
230 |
-webkit-border-radius: 3px;
|
231 |
border-radius: 3px;
|
232 |
}
|
233 |
+
|
234 |
#wp-admin-bar-user-info img.avatar {
|
235 |
height: 64px;
|
236 |
width: 64px;
|
bp-core/css/buddybar.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
body:not(.wp-admin){padding-top:25px!important}#wp-admin-bar{position:fixed;top:0;left:0;height:25px;font-size:11px;width:100%;z-index:9999}#wp-admin-bar .padder{position:relative;padding:0;width:100%;margin:0 auto;background:url(../images/60pc_black.png);height:25px}body#bp-default #wp-admin-bar .padder{max-width:1250px}#wp-admin-bar *{z-index:999}#wp-admin-bar div#admin-bar-logo{position:absolute;top:5px;left:10px}#wp-admin-bar a img{border:none}#wp-admin-bar li{list-style:none;margin:0;padding:0;line-height:1;text-align:left}#wp-admin-bar li a{padding:7px 15px;color:#eee;text-decoration:none;font-size:11px}#wp-admin-bar li.alt{border:none}#wp-admin-bar li.no-arrow a{padding-right:15px}#wp-admin-bar ul li ul li a span{display:none}#wp-admin-bar li.hover,#wp-admin-bar li:hover{position:static}#admin-bar-logo{float:left;font-weight:700;font-size:11px;padding:5px 8px;margin:0;text-decoration:none;color:#fff}body#bp-default #admin-bar-logo{padding:2px 8px}#wp-admin-bar ul{margin:0;list-style:none;line-height:1;cursor:pointer;height:auto;padding:0}#wp-admin-bar ul li{padding:0;float:left;position:relative;background:url(../images/admin-menu-arrow.gif) 88% 53% no-repeat;padding-right:11px}#wp-admin-bar ul li.no-arrow{background:0 0;padding-right:0}#wp-admin-bar ul li ul li{background-image:none}#wp-admin-bar ul li.align-right{position:absolute;right:0}#wp-admin-bar ul li a{display:block}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li.sfhover,#wp-admin-bar ul.main-nav li:hover{background-color:#333}#wp-admin-bar ul li ul{position:absolute;width:185px;left:-999em;margin-left:0;background:#333;border:1px solid #222;-moz-box-shadow:0 4px 8px rgba(0,0,0,.1);-webkit-box-shadow:0 4px 8px rgba(0,0,0,.1);-moz-border-radius:3px;-webkit-border-radius:3px;-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0}#wp-admin-bar ul li>ul{border-top:none}#wp-admin-bar ul li ul a{color:#eee}#wp-admin-bar ul li ul li{float:left;width:174px;margin:0}#wp-admin-bar ul li ul li:hover a{color:#fff}#wp-admin-bar ul li div.admin-bar-clear{clear:both}#wp-admin-bar ul.main-nav li ul li.sfhover,#wp-admin-bar ul.main-nav li ul li:hover{background-color:#222}#wp-admin-bar ul li ul ul{margin:-25px 0 0 184px;-moz-border-radius:3px;-webkit-border-radius:3px}#wp-admin-bar ul li ul li:hover ul li a{color:#eee}#wp-admin-bar ul li ul li ul li:hover a{color:#fff}#wp-admin-bar ul li ul li.sfhover ul,#wp-admin-bar ul li ul li:hover ul,#wp-admin-bar ul li.sfhover ul,#wp-admin-bar ul li:hover ul{left:auto}#wp-admin-bar ul li.align-right:hover ul{right:0}#wp-admin-bar li.sfhover ul li ul,#wp-admin-bar ul li:hover ul ul{left:-999em}#wp-admin-bar img.avatar{float:left;margin-right:8px}#wp-admin-bar span.activity{display:block;margin-left:34px;padding:0}#wp-admin-bar ul.author-list li a{height:17px}#wp-admin-bar ul li#bp-adminbar-notifications-menu a span{padding:0 6px;margin-left:2px;background:#fff;color:#000;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}#wp-admin-bar-user-info img.avatar{height:64px;width:64px}
|
bp-core/deprecated/1.2.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
* @since 1.0.0
|
15 |
* @deprecated 1.2.0
|
16 |
*
|
17 |
-
* @param array $args
|
18 |
*
|
19 |
* @return object $activity The activity/activities object
|
20 |
*/
|
14 |
* @since 1.0.0
|
15 |
* @deprecated 1.2.0
|
16 |
*
|
17 |
+
* @param string|array $args
|
18 |
*
|
19 |
* @return object $activity The activity/activities object
|
20 |
*/
|
bp-core/deprecated/1.5.php
CHANGED
@@ -508,7 +508,7 @@ function bp_dtheme_deprecated() {
|
|
508 |
* @deprecated No longer required.
|
509 |
* @param string $oldvalue Previous value of get_option( 'page_on_front' )
|
510 |
* @param string $oldvalue New value of get_option( 'page_on_front' )
|
511 |
-
* @return
|
512 |
* @since 1.2.0
|
513 |
*/
|
514 |
function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) {
|
508 |
* @deprecated No longer required.
|
509 |
* @param string $oldvalue Previous value of get_option( 'page_on_front' )
|
510 |
* @param string $oldvalue New value of get_option( 'page_on_front' )
|
511 |
+
* @return false|string
|
512 |
* @since 1.2.0
|
513 |
*/
|
514 |
function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) {
|
bp-core/deprecated/1.7.php
CHANGED
@@ -74,7 +74,7 @@ function bp_get_plugin_sidebar() {
|
|
74 |
* step. It also means that the themes won't show for selection on other blogs.
|
75 |
*
|
76 |
* @deprecated 1.7.0
|
77 |
-
* @
|
78 |
*/
|
79 |
function bp_core_allow_default_theme( $themes ) {
|
80 |
_deprecated_function( __FUNCTION__, '1.7' );
|
74 |
* step. It also means that the themes won't show for selection on other blogs.
|
75 |
*
|
76 |
* @deprecated 1.7.0
|
77 |
+
* @return array
|
78 |
*/
|
79 |
function bp_core_allow_default_theme( $themes ) {
|
80 |
_deprecated_function( __FUNCTION__, '1.7' );
|
bp-core/deprecated/1.9.php
CHANGED
@@ -19,14 +19,14 @@ defined( 'ABSPATH' ) || exit;
|
|
19 |
* bp_notifications_add_notification() instead.
|
20 |
*
|
21 |
* @since 1.0.0
|
22 |
-
* @param string
|
23 |
-
* @param int
|
24 |
-
* @param string
|
25 |
-
* @param string
|
26 |
-
* @param
|
27 |
-
* @param string $date_notified
|
28 |
-
* @param int
|
29 |
-
* @return boolean True on success, false on failure.
|
30 |
*/
|
31 |
function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false, $is_new = 1 ) {
|
32 |
|
@@ -62,8 +62,9 @@ function bp_core_add_notification( $item_id, $user_id, $component_name, $compone
|
|
62 |
* bp_notifications_delete_notification() instead.
|
63 |
*
|
64 |
* @since 1.0.0
|
|
|
65 |
* @param int $id ID of notification.
|
66 |
-
* @return
|
67 |
*/
|
68 |
function bp_core_delete_notification( $id ) {
|
69 |
|
@@ -86,7 +87,7 @@ function bp_core_delete_notification( $id ) {
|
|
86 |
*
|
87 |
* @since 1.0.0
|
88 |
* @param int $id ID of notification.
|
89 |
-
* @return BP_Core_Notification
|
90 |
*/
|
91 |
function bp_core_get_notification( $id ) {
|
92 |
|
@@ -140,7 +141,7 @@ function bp_core_get_notifications_for_user( $user_id, $format = 'string' ) {
|
|
140 |
* @param int $user_id
|
141 |
* @param string $component_name
|
142 |
* @param string $component_action
|
143 |
-
* @return
|
144 |
*/
|
145 |
function bp_core_delete_notifications_by_type( $user_id, $component_name, $component_action ) {
|
146 |
|
@@ -165,10 +166,11 @@ function bp_core_delete_notifications_by_type( $user_id, $component_name, $compo
|
|
165 |
* bp_notifications_delete_notifications_by_item_id() instead.
|
166 |
*
|
167 |
* @since 1.0.0
|
|
|
168 |
* @param int $user_id
|
169 |
* @param string $component_name
|
170 |
* @param string $component_action
|
171 |
-
* @return
|
172 |
*/
|
173 |
function bp_core_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
|
174 |
|
@@ -190,9 +192,10 @@ function bp_core_delete_notifications_by_item_id( $user_id, $item_id, $component
|
|
190 |
* bp_notifications_delete_all_notifications_by_type() instead.
|
191 |
*
|
192 |
* @since 1.0.0
|
193 |
-
*
|
194 |
-
* @param
|
195 |
-
* @param string
|
|
|
196 |
* @return boolean True on success, false on failure.
|
197 |
*/
|
198 |
function bp_core_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {
|
@@ -220,7 +223,7 @@ function bp_core_delete_all_notifications_by_type( $item_id, $component_name, $c
|
|
220 |
* @param int $user_id
|
221 |
* @param string $component_name
|
222 |
* @param string $component_action
|
223 |
-
* @return
|
224 |
*/
|
225 |
function bp_core_delete_notifications_from_user( $user_id, $component_name, $component_action ) {
|
226 |
|
19 |
* bp_notifications_add_notification() instead.
|
20 |
*
|
21 |
* @since 1.0.0
|
22 |
+
* @param string $item_id
|
23 |
+
* @param int $user_id
|
24 |
+
* @param string $component_name
|
25 |
+
* @param string $component_action
|
26 |
+
* @param int $secondary_item_id
|
27 |
+
* @param false|string $date_notified
|
28 |
+
* @param int $is_new
|
29 |
+
* @return int|boolean True on success, false on failure.
|
30 |
*/
|
31 |
function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = 0, $date_notified = false, $is_new = 1 ) {
|
32 |
|
62 |
* bp_notifications_delete_notification() instead.
|
63 |
*
|
64 |
* @since 1.0.0
|
65 |
+
*
|
66 |
* @param int $id ID of notification.
|
67 |
+
* @return false|integer True on success, false on failure.
|
68 |
*/
|
69 |
function bp_core_delete_notification( $id ) {
|
70 |
|
87 |
*
|
88 |
* @since 1.0.0
|
89 |
* @param int $id ID of notification.
|
90 |
+
* @return false|BP_Core_Notification
|
91 |
*/
|
92 |
function bp_core_get_notification( $id ) {
|
93 |
|
141 |
* @param int $user_id
|
142 |
* @param string $component_name
|
143 |
* @param string $component_action
|
144 |
+
* @return false|int True on success, false on failure.
|
145 |
*/
|
146 |
function bp_core_delete_notifications_by_type( $user_id, $component_name, $component_action ) {
|
147 |
|
166 |
* bp_notifications_delete_notifications_by_item_id() instead.
|
167 |
*
|
168 |
* @since 1.0.0
|
169 |
+
*
|
170 |
* @param int $user_id
|
171 |
* @param string $component_name
|
172 |
* @param string $component_action
|
173 |
+
* @return false|int True on success, false on failure.
|
174 |
*/
|
175 |
function bp_core_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
|
176 |
|
192 |
* bp_notifications_delete_all_notifications_by_type() instead.
|
193 |
*
|
194 |
* @since 1.0.0
|
195 |
+
*
|
196 |
+
* @param int $user_id
|
197 |
+
* @param string $component_name
|
198 |
+
* @param false|string $component_action
|
199 |
* @return boolean True on success, false on failure.
|
200 |
*/
|
201 |
function bp_core_delete_all_notifications_by_type( $item_id, $component_name, $component_action = false, $secondary_item_id = false ) {
|
223 |
* @param int $user_id
|
224 |
* @param string $component_name
|
225 |
* @param string $component_action
|
226 |
+
* @return false|int True on success, false on failure.
|
227 |
*/
|
228 |
function bp_core_delete_notifications_from_user( $user_id, $component_name, $component_action ) {
|
229 |
|
bp-core/deprecated/2.1.php
CHANGED
@@ -36,7 +36,7 @@ function bp_core_register_deprecated_styles() {
|
|
36 |
* @since 1.0.0
|
37 |
* @deprecated 2.1.0
|
38 |
*
|
39 |
-
* @return
|
40 |
*/
|
41 |
function bp_adminbar_blogs_menu() {
|
42 |
|
@@ -131,7 +131,7 @@ function bp_admin_sanitize_callback_force_buddybar( $value = false ) {
|
|
131 |
/**
|
132 |
* Wrapper function for rendering the BuddyBar.
|
133 |
*
|
134 |
-
* @return
|
135 |
* @deprecated 2.1.0
|
136 |
*/
|
137 |
function bp_core_admin_bar() {
|
@@ -179,7 +179,7 @@ function bp_adminbar_logo() {
|
|
179 |
*
|
180 |
* @deprecated 2.1.0
|
181 |
*
|
182 |
-
* @return
|
183 |
*/
|
184 |
function bp_adminbar_login_menu() {
|
185 |
|
@@ -200,7 +200,7 @@ function bp_adminbar_login_menu() {
|
|
200 |
*
|
201 |
* @deprecated 2.1.0
|
202 |
*
|
203 |
-
* @return
|
204 |
*/
|
205 |
function bp_adminbar_account_menu() {
|
206 |
$bp = buddypress();
|
36 |
* @since 1.0.0
|
37 |
* @deprecated 2.1.0
|
38 |
*
|
39 |
+
* @return false|null Returns false on failure. Otherwise echoes the menu item.
|
40 |
*/
|
41 |
function bp_adminbar_blogs_menu() {
|
42 |
|
131 |
/**
|
132 |
* Wrapper function for rendering the BuddyBar.
|
133 |
*
|
134 |
+
* @return false|null Returns false if the BuddyBar is disabled.
|
135 |
* @deprecated 2.1.0
|
136 |
*/
|
137 |
function bp_core_admin_bar() {
|
179 |
*
|
180 |
* @deprecated 2.1.0
|
181 |
*
|
182 |
+
* @return false|null Returns false if the current user is logged in.
|
183 |
*/
|
184 |
function bp_adminbar_login_menu() {
|
185 |
|
200 |
*
|
201 |
* @deprecated 2.1.0
|
202 |
*
|
203 |
+
* @return false|null Returns false on failure.
|
204 |
*/
|
205 |
function bp_adminbar_account_menu() {
|
206 |
$bp = buddypress();
|
bp-core/deprecated/2.5.php
CHANGED
@@ -914,7 +914,7 @@ function bp_blogs_transition_activity_status( $new_status, $old_status, $comment
|
|
914 |
* @param int $comment_id ID of the comment being recorded.
|
915 |
* @param bool|string $is_approved Optional. The $is_approved value passed to
|
916 |
* the 'comment_post' action. Default: true.
|
917 |
-
* @return bool|object Returns false on failure, the comment object on success.
|
918 |
*/
|
919 |
function bp_blogs_record_comment( $comment_id, $is_approved = true ) {
|
920 |
_deprecated_function( __FUNCTION__, '2.5.0', 'bp_activity_post_type_comment()' );
|
914 |
* @param int $comment_id ID of the comment being recorded.
|
915 |
* @param bool|string $is_approved Optional. The $is_approved value passed to
|
916 |
* the 'comment_post' action. Default: true.
|
917 |
+
* @return bool|object|null Returns false on failure, the comment object on success.
|
918 |
*/
|
919 |
function bp_blogs_record_comment( $comment_id, $is_approved = true ) {
|
920 |
_deprecated_function( __FUNCTION__, '2.5.0', 'bp_activity_post_type_comment()' );
|
bp-core/deprecated/2.9.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Deprecated functions.
|
4 |
+
*
|
5 |
+
* @deprecated 2.9.0
|
6 |
+
*/
|
7 |
+
|
8 |
+
// Exit if accessed directly.
|
9 |
+
defined( 'ABSPATH' ) || exit;
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Replace default WordPress avatars with BP avatars, if available.
|
13 |
+
*
|
14 |
+
* See 'get_avatar' filter description in wp-includes/pluggable.php.
|
15 |
+
*
|
16 |
+
* @since 1.1.0
|
17 |
+
* @since 2.4.0 Added $args parameter to coincide with WordPress 4.2.0.
|
18 |
+
*
|
19 |
+
* @param string $avatar The avatar path passed to 'get_avatar'.
|
20 |
+
* @param int|string|object $user A user ID, email address, or comment object.
|
21 |
+
* @param int $size Size of the avatar image ('thumb' or 'full').
|
22 |
+
* @param string $default URL to a default image to use if no avatar is available.
|
23 |
+
* @param string $alt Alternate text to use in image tag. Default: ''.
|
24 |
+
* @param array $args Arguments passed to get_avatar_data(), after processing.
|
25 |
+
* @return string BP avatar path, if found; else the original avatar path.
|
26 |
+
*/
|
27 |
+
function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt = '', $args = array() ) {
|
28 |
+
_deprecated_function( __FUNCTION__, '2.9' );
|
29 |
+
return $avatar;
|
30 |
+
}
|
bp-core/js/avatar.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.bp=window.bp||{},function(
|
1 |
+
window.bp=window.bp||{},function(e,t){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.Avatar={start:function(){var e=this;this.removeLegacyUI(),this.views=new Backbone.Collection,this.jcropapi={},this.warning=null,this.setupNav(),this.avatars=bp.Uploader.filesUploaded,this.Attachment=new Backbone.Model,bp.Uploader.filesQueue.on("reset",this.cropView,this),t("body.wp-admin").on("tb_unload","#TB_window",function(){e.resetViews()}),t("body.wp-admin").on("click",".bp-xprofile-avatar-user-edit",function(){e.resetViews()})},removeLegacyUI:function(){t("#avatar-upload-form").length?(t("#avatar-upload").remove(),t("#avatar-upload-form p").remove()):t("#group-settings-form").length?(t("#group-settings-form p").each(function(e){0!==e&&t(this).remove()}),t("#delete-group-avatar-button").length&&t("#delete-group-avatar-button").remove()):t("#group-create-body").length?(t(".main-column p #file").remove(),t(".main-column p #upload").remove()):t("#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin").length&&t("#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin").remove()},setView:function(e){switch(_.isUndefined(this.views.models)||_.each(this.views.models,function(e){e.get("view").remove()},this),this.views.reset(),_.isUndefined(this.avatars)||this.avatars.reset(),_.isEmpty(this.jcropapi)||(this.jcropapi.destroy(),this.jcropapi={}),e){case"upload":this.uploaderView();break;case"delete":this.deleteView()}},resetViews:function(){this.nav.trigger("bp-avatar-view:changed","upload"),_.each(this.navItems.models,function(e){"upload"===e.id?e.set({active:1}):e.set({active:0})})},setupNav:function(){var e,t,a=this;this.navItems=new Backbone.Collection,_.each(BP_Uploader.settings.nav,function(i,s){_.isObject(i)&&(t=0,0===s&&(e=i.id,t=1),a.navItems.add({id:i.id,name:i.caption,href:"#",active:t,hide:_.isUndefined(i.hide)?0:i.hide}))}),this.nav=new bp.Views.Nav({collection:this.navItems}),this.nav.inject(".bp-avatar-nav"),this.setView(e),this.nav.on("bp-avatar-view:changed",_.bind(this.setView,this))},uploaderView:function(){bp.Uploader.filesQueue.on("add",this.uploadProgress,this);var e=new bp.Views.Uploader;this.views.add({id:"upload",view:e}),e.inject(".bp-avatar")},uploadProgress:function(){var e=new bp.Views.uploaderStatus({collection:bp.Uploader.filesQueue});_.isUndefined(this.views.get("status"))?this.views.add({id:"status",view:e}):this.views.set({id:"status",view:e}),e.inject(".bp-avatar-status")},cropView:function(){var e;if(!_.isEmpty(this.avatars.models)){_.isUndefined(this.views.get("status"))||((e=this.views.get("status")).get("view").remove(),this.views.remove({id:"status",view:e}));var t=new bp.Views.Avatars({collection:this.avatars});this.views.add({id:"crop",view:t}),t.inject(".bp-avatar")}},setAvatar:function(e){var a,i=this;_.isUndefined(this.views.get("crop"))||(_.isEmpty(this.jcropapi)||(this.jcropapi.destroy(),this.jcropapi={}),(a=this.views.get("crop")).get("view").remove(),this.views.remove({id:"crop",view:a})),bp.ajax.post("bp_avatar_set",{json:!0,original_file:e.get("url"),crop_w:e.get("w"),crop_h:e.get("h"),crop_x:e.get("x"),crop_y:e.get("y"),item_id:e.get("item_id"),object:e.get("object"),type:_.isUndefined(e.get("type"))?"crop":e.get("type"),nonce:e.get("nonces").set}).done(function(a){var s=new bp.Views.AvatarStatus({value:BP_Uploader.strings.feedback_messages[a.feedback_code],type:"success"});i.views.add({id:"status",view:s}),s.inject(".bp-avatar-status"),t("."+e.get("object")+"-"+a.item_id+"-avatar").each(function(){t(this).prop("src",a.avatar)}),bp.Avatar.navItems.get("delete").set({hide:0}),i.Attachment.set(_.extend(_.pick(e.attributes,["object","item_id"]),{url:a.avatar,action:"uploaded"}))}).fail(function(e){var t=BP_Uploader.strings.default_error;_.isUndefined(e)||(t=BP_Uploader.strings.feedback_messages[e.feedback_code]);var a=new bp.Views.AvatarStatus({value:t,type:"error"});i.views.add({id:"status",view:a}),a.inject(".bp-avatar-status")})},deleteView:function(){var e=new Backbone.Model(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces")),t=new bp.Views.DeleteAvatar({model:e});this.views.add({id:"delete",view:t}),t.inject(".bp-avatar")},deleteAvatar:function(e){var a,i=this;_.isUndefined(this.views.get("delete"))||((a=this.views.get("delete")).get("view").remove(),this.views.remove({id:"delete",view:a})),bp.ajax.post("bp_avatar_delete",{json:!0,item_id:e.get("item_id"),object:e.get("object"),nonce:e.get("nonces").remove}).done(function(a){var s=new bp.Views.AvatarStatus({value:BP_Uploader.strings.feedback_messages[a.feedback_code],type:"success"});i.views.add({id:"status",view:s}),s.inject(".bp-avatar-status"),t("."+e.get("object")+"-"+a.item_id+"-avatar").each(function(){t(this).prop("src",a.avatar)}),bp.Avatar.navItems.get("delete").set({active:0,hide:1}),i.Attachment.set(_.extend(_.pick(e.attributes,["object","item_id"]),{url:a.avatar,action:"deleted"}))}).fail(function(e){var t=BP_Uploader.strings.default_error;_.isUndefined(e)||(t=BP_Uploader.strings.feedback_messages[e.feedback_code]);var a=new bp.Views.AvatarStatus({value:t,type:"error"});i.views.add({id:"status",view:a}),a.inject(".bp-avatar-status")})},removeWarning:function(){_.isNull(this.warning)||this.warning.remove()},displayWarning:function(e){this.removeWarning(),this.warning=new bp.Views.uploaderWarning({value:e}),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(){1!==_.findWhere(this.collection.models,{id:"delete"}).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(e){1!==e.get("hide")&&this.views.add(new bp.Views.NavItem({model:e}))},showHideNavItem:function(e){var t=null;_.each(this.views._views[""],function(a){1===a.model.get("hide")&&a.remove(),e.get("id")===a.model.get("id")&&(t=!0)}),_.isBoolean(t)||this.addNavItem(e)},toggleView:function(e){e.preventDefault(),bp.Avatar.removeWarning();var a=t(e.target).data("nav");_.each(this.collection.models,function(e){e.id===a?(e.set({active:1}),this.trigger("bp-avatar-view:changed",e.id)):e.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(e){1===e.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(e){var t={full_h:150,full_w:150};_.isUndefined(BP_Uploader.settings.crop.full_h)||_.isUndefined(BP_Uploader.settings.crop.full_w)||(t.full_h=BP_Uploader.settings.crop.full_h,t.full_w=BP_Uploader.settings.crop.full_w),e.set(_.extend(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces"),t)),this.views.add(new bp.Views.Avatar({model:e}))}}),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 e,a,i,s,n,o,r=this,d=this.$el.find("#avatar-to-crop img"),l=this.$el.width(),p={};_.isUndefined(this.options.full_h)||_.isUndefined(this.options.full_w)||(this.options.aspectRatio=this.options.full_w/this.options.full_h),p.w=this.model.get("width"),p.h=this.model.get("height"),this.options.full_w+p.w+20<l&&(t("#avatar-to-crop").addClass("adjust"),this.$el.find(".avatar-crop-management").addClass("adjust")),p.h<=p.w?(e=Math.round(p.h/4),a=(n=o=Math.round(p.h/2))+e,s=o+(i=(p.w-o)/2)):(i=Math.round(p.w/4),n=o=Math.round(p.w/2),s=o+i,a=n+(e=(p.h-n)/2)),d.Jcrop({onChange:_.bind(r.showPreview,r),onSelect:_.bind(r.showPreview,r),aspectRatio:r.options.aspectRatio,setSelect:[i,e,s,a]},function(){bp.Avatar.jcropapi=this})},cropAvatar:function(e){e.preventDefault(),bp.Avatar.setAvatar(this.model)},showPreview:function(e){if(e.w&&e.h&&parseInt(e.w,10)>0){var a=this.options.full_w,i=this.options.full_h,s=a/e.w,n=i/e.h;this.model.set({x:e.x,y:e.y,w:e.w,h:e.h}),t("#avatar-crop-preview").css({maxWidth:"none",width:Math.round(s*this.model.get("width"))+"px",height:Math.round(n*this.model.get("height"))+"px",marginLeft:"-"+Math.round(s*this.model.get("x"))+"px",marginTop:"-"+Math.round(n*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(e){e.preventDefault(),bp.Avatar.deleteAvatar(this.model)}}),bp.Avatar.start())}(bp,jQuery);
|
bp-core/js/bp-plupload.js
CHANGED
@@ -97,6 +97,11 @@ window.bp = window.bp || {};
|
|
97 |
|
98 |
} );
|
99 |
|
|
|
|
|
|
|
|
|
|
|
100 |
// Init BuddyPress Uploader
|
101 |
this.uploader.init();
|
102 |
|
97 |
|
98 |
} );
|
99 |
|
100 |
+
// See https://core.trac.wordpress.org/ticket/37039
|
101 |
+
this.uploader.bind( 'postinit', function( up ) {
|
102 |
+
up.refresh();
|
103 |
+
});
|
104 |
+
|
105 |
// Init BuddyPress Uploader
|
106 |
this.uploader.init();
|
107 |
|
bp-core/js/bp-plupload.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.wp=window.wp||{},window.bp=window.bp||{},function(
|
1 |
+
window.wp=window.wp||{},window.bp=window.bp||{},function(e,i){"undefined"!=typeof BP_Uploader&&(_.extend(bp,_.pick(wp,"Backbone","ajax","template")),bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.Uploader={},bp.Uploader.uploader=function(){var e=this,t=-1!==navigator.userAgent.indexOf("Trident/")||-1!==navigator.userAgent.indexOf("MSIE ");this.params=BP_Uploader.settings,this.strings=BP_Uploader.strings,this.supports={upload:this.params.browser.supported},this.supported=this.supports.upload,this.supported?(t||"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(t){var s=i("#"+e.params.defaults.container),a=i("#"+e.params.defaults.drop_element);"html4"===t.runtime&&(t.settings.multipart_params.html4=!0),"bp_avatar_upload"===t.settings.multipart_params.action&&(t.settings.multipart_params.bp_params.ui_available_width=s.width()),t.features.dragdrop&&!e.params.browser.mobile?(s.addClass("drag-drop"),a.bind("dragover.wp-uploader",function(){s.addClass("drag-over")}).bind("dragleave.wp-uploader, drop.wp-uploader",function(){s.removeClass("drag-over")})):(s.removeClass("drag-drop"),a.unbind(".wp-uploader"))}),this.uploader.bind("postinit",function(e){e.refresh()}),this.uploader.init(),this.feedback=function(e,i,t){!_.isNull(t)&&t.item&&t.item.clear(),bp.Uploader.filesError.unshift({message:e,data:i,file:t})},this.uploader.bind("FilesAdded",function(t,s){var a=parseInt(t.settings.max_file_size,10),r=this;if(!t.settings.multi_selection&&s.length>1){for(var n in s)t.removeFile(s[n]);i(e).trigger("bp-uploader-warning",e.strings.unique_file_warning)}else _.each(s,function(e){var i;plupload.FAILED!==e.status&&(a>104857600&&e.size>104857600&&"html5"!==t.runtime?r.uploadSizeError(t,e,!0):(i=_.extend({id:e.id,file:e,uploading:!0,date:new Date,filename:e.name},_.pick(e,"loaded","size","percent")),e.item=new bp.Models.File(i),bp.Uploader.filesQueue.add(e.item)))}),t.refresh(),t.start()}),this.uploader.bind("UploadProgress",function(e,i){i.item.set(_.pick(i,"loaded","percent"))}),this.uploader.bind("FileUploaded",function(i,t,s){var a=e.strings.default_error;try{s=JSON.parse(s.response)}catch(i){return e.feedback(a,i,t)}return!_.isObject(s)||_.isUndefined(s.success)?e.feedback(a,null,t):s.success?(_.each(["file","loaded","size","percent"],function(e){t.item.unset(e)}),t.item.set(_.extend(s.data,{uploading:!1})),void bp.Uploader.filesUploaded.add(t.item)):(s.data&&s.data.message&&(a=s.data.message),e.feedback(a,s.data,t))}),this.uploader.bind("BeforeUpload",function(t,s){i(e).trigger("bp-uploader-new-upload",t,s)}),this.uploader.bind("UploadComplete",function(t,s){i(e).trigger("bp-uploader-upload-complete",t,s),bp.Uploader.filesQueue.reset()}),this.uploader.bind("Error",function(t,s){var a,r=e.strings.default_error,n={FAILED:e.strings.upload_failed,FILE_EXTENSION_ERROR:e.strings.invalid_filetype,IMAGE_FORMAT_ERROR:e.strings.not_an_image,IMAGE_MEMORY_ERROR:e.strings.image_memory_exceeded,IMAGE_DIMENSIONS_ERROR:e.strings.image_dimensions_exceeded,GENERIC_ERROR:e.strings.upload_failed,IO_ERROR:e.strings.io_error,HTTP_ERROR:e.strings.http_error,SECURITY_ERROR:e.strings.security_error,FILE_SIZE_ERROR:e.strings.file_exceeds_size_limit.replace("%s",s.file.name)};for(a in n)if(s.code===plupload[a]){r=n[a];break}i(e).trigger("bp-uploader-warning",r),t.refresh()})):BP_Uploader=void 0},bp.Models.File=Backbone.Model.extend({file:{}}),i.extend(bp.Uploader,{filesQueue:new Backbone.Collection,filesUploaded:new Backbone.Collection,filesError:new Backbone.Collection}),bp.View=bp.Backbone.View.extend({inject:function(e){this.render(),i(e).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.warnings=[],this.model=new Backbone.Model(this.defaults),this.on("ready",this.initUploader)},initUploader:function(){this.uploader=new bp.Uploader.uploader,i(this.uploader).on("bp-uploader-warning",_.bind(this.setWarning,this)),i(this.uploader).on("bp-uploader-new-upload",_.bind(this.resetWarning,this))},setWarning:function(e,i){if(!_.isUndefined(i)){var t=new bp.Views.uploaderWarning({value:i}).render();this.warnings.push(t),this.$el.after(t.el)}},resetWarning:function(){0!==this.warnings.length&&(_.each(this.warnings,function(e){e.remove()}),this.warnings=[])}}),bp.Views.uploaderWarning=bp.View.extend({tagName:"p",className:"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(e){this.views.add(new bp.Views.uploaderProgress({model:e}))},progress:function(e){_.isUndefined(e.get("percent"))||i("#"+e.get("id")+" .bp-progress .bp-bar").css("width",e.get("percent")+"%")},feedback:function(e){_.isUndefined(e.get("message"))||_.isUndefined(e.get("file"))||i("#"+e.get("file").id).html(e.get("message")).addClass("error")}}),bp.Views.uploaderProgress=bp.View.extend({className:"bp-uploader-progress",template:bp.template("progress-window")}))}(bp,jQuery);
|
bp-core/js/cover-image.js
CHANGED
@@ -1,277 +1,277 @@
|
|
1 |
-
/* global bp, BP_Uploader, _, Backbone */
|
2 |
-
|
3 |
-
window.bp = window.bp || {};
|
4 |
-
|
5 |
-
( function( exports, $ ) {
|
6 |
-
|
7 |
-
// Bail if not set
|
8 |
-
if ( typeof BP_Uploader === 'undefined' ) {
|
9 |
-
return;
|
10 |
-
}
|
11 |
-
|
12 |
-
bp.Models = bp.Models || {};
|
13 |
-
bp.Collections = bp.Collections || {};
|
14 |
-
bp.Views = bp.Views || {};
|
15 |
-
|
16 |
-
bp.CoverImage = {
|
17 |
-
start: function() {
|
18 |
-
|
19 |
-
// Init some vars
|
20 |
-
this.views = new Backbone.Collection();
|
21 |
-
this.warning = null;
|
22 |
-
|
23 |
-
// The Cover Image Attachment object.
|
24 |
-
this.Attachment = new Backbone.Model();
|
25 |
-
|
26 |
-
// Set up views
|
27 |
-
this.uploaderView();
|
28 |
-
|
29 |
-
// Inform about the needed dimensions
|
30 |
-
this.displayWarning( BP_Uploader.strings.cover_image_warnings.dimensions );
|
31 |
-
|
32 |
-
// Set up the delete view if needed
|
33 |
-
if ( true === BP_Uploader.settings.defaults.multipart_params.bp_params.has_cover_image ) {
|
34 |
-
this.deleteView();
|
35 |
-
}
|
36 |
-
},
|
37 |
-
|
38 |
-
uploaderView: function() {
|
39 |
-
// Listen to the Queued uploads
|
40 |
-
bp.Uploader.filesQueue.on( 'add', this.uploadProgress, this );
|
41 |
-
|
42 |
-
// Create the BuddyPress Uploader
|
43 |
-
var uploader = new bp.Views.Uploader();
|
44 |
-
|
45 |
-
// Add it to views
|
46 |
-
this.views.add( { id: 'upload', view: uploader } );
|
47 |
-
|
48 |
-
// Display it
|
49 |
-
uploader.inject( '.bp-cover-image' );
|
50 |
-
},
|
51 |
-
|
52 |
-
uploadProgress: function() {
|
53 |
-
// Create the Uploader status view
|
54 |
-
var coverImageUploadProgress = new bp.Views.coverImageUploadProgress( { collection: bp.Uploader.filesQueue } );
|
55 |
-
|
56 |
-
if ( ! _.isUndefined( this.views.get( 'status' ) ) ) {
|
57 |
-
this.views.set( { id: 'status', view: coverImageUploadProgress } );
|
58 |
-
} else {
|
59 |
-
this.views.add( { id: 'status', view: coverImageUploadProgress } );
|
60 |
-
}
|
61 |
-
|
62 |
-
// Display it
|
63 |
-
coverImageUploadProgress.inject( '.bp-cover-image-status' );
|
64 |
-
},
|
65 |
-
|
66 |
-
deleteView: function() {
|
67 |
-
// Create the delete model
|
68 |
-
var delete_model = new Backbone.Model( _.pick( BP_Uploader.settings.defaults.multipart_params.bp_params,
|
69 |
-
['object', 'item_id', 'nonces']
|
70 |
-
) );
|
71 |
-
|
72 |
-
// Do not add it if already there!
|
73 |
-
if ( ! _.isUndefined( this.views.get( 'delete' ) ) ) {
|
74 |
-
return;
|
75 |
-
}
|
76 |
-
|
77 |
-
// Create the delete view
|
78 |
-
var deleteView = new bp.Views.DeleteCoverImage( { model: delete_model } );
|
79 |
-
|
80 |
-
// Add it to views
|
81 |
-
this.views.add( { id: 'delete', view: deleteView } );
|
82 |
-
|
83 |
-
// Display it
|
84 |
-
deleteView.inject( '.bp-cover-image-manage' );
|
85 |
-
},
|
86 |
-
|
87 |
-
deleteCoverImage: function( model ) {
|
88 |
-
var self = this,
|
89 |
-
deleteView;
|
90 |
-
|
91 |
-
// Remove the delete view
|
92 |
-
if ( ! _.isUndefined( this.views.get( 'delete' ) ) ) {
|
93 |
-
deleteView = this.views.get( 'delete' );
|
94 |
-
deleteView.get( 'view' ).remove();
|
95 |
-
this.views.remove( { id: 'delete', view: deleteView } );
|
96 |
-
}
|
97 |
-
|
98 |
-
// Remove the cover image !
|
99 |
-
bp.ajax.post( 'bp_cover_image_delete', {
|
100 |
-
json: true,
|
101 |
-
item_id: model.get( 'item_id' ),
|
102 |
-
object: model.get( 'object' ),
|
103 |
-
nonce: model.get( 'nonces' ).remove
|
104 |
-
} ).done( function( response ) {
|
105 |
-
var coverImageStatus = new bp.Views.CoverImageStatus( {
|
106 |
-
value : BP_Uploader.strings.feedback_messages[ response.feedback_code ],
|
107 |
-
type : 'success'
|
108 |
-
} );
|
109 |
-
|
110 |
-
self.views.add( {
|
111 |
-
id : 'status',
|
112 |
-
view : coverImageStatus
|
113 |
-
} );
|
114 |
-
|
115 |
-
coverImageStatus.inject( '.bp-cover-image-status' );
|
116 |
-
|
117 |
-
// Reset the header of the page
|
118 |
-
if ( '' === response.reset_url ) {
|
119 |
-
$( '#header-cover-image' ).css( {
|
120 |
-
'background-image': 'none'
|
121 |
-
} );
|
122 |
-
} else {
|
123 |
-
$( '#header-cover-image' ).css( {
|
124 |
-
'background-image': 'url( ' + response.reset_url + ' )'
|
125 |
-
} );
|
126 |
-
}
|
127 |
-
|
128 |
-
// Reset the has_cover_image bp_param
|
129 |
-
BP_Uploader.settings.defaults.multipart_params.bp_params.has_cover_image = false;
|
130 |
-
|
131 |
-
/**
|
132 |
-
* Reset the Attachment object
|
133 |
-
*
|
134 |
-
* You can run extra actions once the cover image is set using:
|
135 |
-
* bp.CoverImage.Attachment.on( 'change:url', function( data ) { your code } );
|
136 |
-
*
|
137 |
-
* In this case data.attributes will include the default url for the
|
138 |
-
* cover image (most of the time: ''), the object and the item_id concerned.
|
139 |
-
*/
|
140 |
-
self.Attachment.set( _.extend(
|
141 |
-
_.pick( model.attributes, ['object', 'item_id'] ),
|
142 |
-
{ url: response.reset_url, action: 'deleted' }
|
143 |
-
) );
|
144 |
-
|
145 |
-
} ).fail( function( response ) {
|
146 |
-
var feedback = BP_Uploader.strings.default_error;
|
147 |
-
if ( ! _.isUndefined( response ) ) {
|
148 |
-
feedback = BP_Uploader.strings.feedback_messages[ response.feedback_code ];
|
149 |
-
}
|
150 |
-
|
151 |
-
var coverImageStatus = new bp.Views.CoverImageStatus( {
|
152 |
-
value : feedback,
|
153 |
-
type : 'error'
|
154 |
-
} );
|
155 |
-
|
156 |
-
self.views.add( {
|
157 |
-
id : 'status',
|
158 |
-
view : coverImageStatus
|
159 |
-
} );
|
160 |
-
|
161 |
-
coverImageStatus.inject( '.bp-cover-image-status' );
|
162 |
-
|
163 |
-
// Put back the delete view
|
164 |
-
bp.CoverImage.deleteView();
|
165 |
-
} );
|
166 |
-
},
|
167 |
-
|
168 |
-
removeWarning: function() {
|
169 |
-
if ( ! _.isNull( this.warning ) ) {
|
170 |
-
this.warning.remove();
|
171 |
-
}
|
172 |
-
},
|
173 |
-
|
174 |
-
displayWarning: function( message ) {
|
175 |
-
this.removeWarning();
|
176 |
-
|
177 |
-
this.warning = new bp.Views.uploaderWarning( {
|
178 |
-
value: message
|
179 |
-
} );
|
180 |
-
|
181 |
-
this.warning.inject( '.bp-cover-image-status' );
|
182 |
-
}
|
183 |
-
};
|
184 |
-
|
185 |
-
// Custom Uploader Files view
|
186 |
-
bp.Views.coverImageUploadProgress = bp.Views.uploaderStatus.extend( {
|
187 |
-
className: 'files',
|
188 |
-
|
189 |
-
initialize: function() {
|
190 |
-
bp.Views.uploaderStatus.prototype.initialize.apply( this, arguments );
|
191 |
-
|
192 |
-
this.collection.on( 'change:url', this.uploadResult, this );
|
193 |
-
},
|
194 |
-
|
195 |
-
uploadResult: function( model ) {
|
196 |
-
var message, type;
|
197 |
-
|
198 |
-
if ( ! _.isUndefined( model.get( 'url' ) ) ) {
|
199 |
-
|
200 |
-
// Image is too small
|
201 |
-
if ( 0 === model.get( 'feedback_code' ) ) {
|
202 |
-
message = BP_Uploader.strings.cover_image_warnings.dimensions;
|
203 |
-
type = 'warning';
|
204 |
-
|
205 |
-
// Success, Rock n roll!
|
206 |
-
} else {
|
207 |
-
message = BP_Uploader.strings.feedback_messages[ model.get( 'feedback_code' ) ];
|
208 |
-
type = 'success';
|
209 |
-
}
|
210 |
-
|
211 |
-
this.views.set( '.bp-uploader-progress', new bp.Views.CoverImageStatus( {
|
212 |
-
value : message,
|
213 |
-
type : type
|
214 |
-
} ) );
|
215 |
-
|
216 |
-
// Update the header of the page
|
217 |
-
$( '#header-cover-image' ).css( {
|
218 |
-
'background-image': 'url( ' + model.get( 'url' ) + ' )'
|
219 |
-
} );
|
220 |
-
|
221 |
-
// Add the delete view
|
222 |
-
bp.CoverImage.deleteView();
|
223 |
-
|
224 |
-
/**
|
225 |
-
* Set the Attachment object
|
226 |
-
*
|
227 |
-
* You can run extra actions once the cover image is set using:
|
228 |
-
* bp.CoverImage.Attachment.on( 'change:url', function( data ) { your code } );
|
229 |
-
*
|
230 |
-
* In this case data.attributes will include the url to the newly
|
231 |
-
* uploaded cover image, the object and the item_id concerned.
|
232 |
-
*/
|
233 |
-
bp.CoverImage.Attachment.set( _.extend(
|
234 |
-
_.pick( BP_Uploader.settings.defaults.multipart_params.bp_params, ['object', 'item_id'] ),
|
235 |
-
{ url: model.get( 'url' ), action: 'uploaded' }
|
236 |
-
) );
|
237 |
-
}
|
238 |
-
}
|
239 |
-
} );
|
240 |
-
|
241 |
-
// BuddyPress Cover Image Feedback view
|
242 |
-
bp.Views.CoverImageStatus = bp.View.extend( {
|
243 |
-
tagName: 'p',
|
244 |
-
className: 'updated',
|
245 |
-
id: 'bp-cover-image-feedback',
|
246 |
-
|
247 |
-
initialize: function() {
|
248 |
-
this.el.className += ' ' + this.options.type;
|
249 |
-
this.value = this.options.value;
|
250 |
-
},
|
251 |
-
|
252 |
-
render: function() {
|
253 |
-
this.$el.html( this.value );
|
254 |
-
return this;
|
255 |
-
}
|
256 |
-
} );
|
257 |
-
|
258 |
-
// BuddyPress Cover Image Delete view
|
259 |
-
bp.Views.DeleteCoverImage = bp.View.extend( {
|
260 |
-
tagName: 'div',
|
261 |
-
id: 'bp-delete-cover-image-container',
|
262 |
-
template: bp.template( 'bp-cover-image-delete' ),
|
263 |
-
|
264 |
-
events: {
|
265 |
-
'click #bp-delete-cover-image': 'deleteCoverImage'
|
266 |
-
},
|
267 |
-
|
268 |
-
deleteCoverImage: function( event ) {
|
269 |
-
event.preventDefault();
|
270 |
-
|
271 |
-
bp.CoverImage.deleteCoverImage( this.model );
|
272 |
-
}
|
273 |
-
} );
|
274 |
-
|
275 |
-
bp.CoverImage.start();
|
276 |
-
|
277 |
-
})( bp, jQuery );
|
1 |
+
/* global bp, BP_Uploader, _, Backbone */
|
2 |
+
|
3 |
+
window.bp = window.bp || {};
|
4 |
+
|
5 |
+
( function( exports, $ ) {
|
6 |
+
|
7 |
+
// Bail if not set
|
8 |
+
if ( typeof BP_Uploader === 'undefined' ) {
|
9 |
+
return;
|
10 |
+
}
|
11 |
+
|
12 |
+
bp.Models = bp.Models || {};
|
13 |
+
bp.Collections = bp.Collections || {};
|
14 |
+
bp.Views = bp.Views || {};
|
15 |
+
|
16 |
+
bp.CoverImage = {
|
17 |
+
start: function() {
|
18 |
+
|
19 |
+
// Init some vars
|
20 |
+
this.views = new Backbone.Collection();
|
21 |
+
this.warning = null;
|
22 |
+
|
23 |
+
// The Cover Image Attachment object.
|
24 |
+
this.Attachment = new Backbone.Model();
|
25 |
+
|
26 |
+
// Set up views
|
27 |
+
this.uploaderView();
|
28 |
+
|
29 |
+
// Inform about the needed dimensions
|
30 |
+
this.displayWarning( BP_Uploader.strings.cover_image_warnings.dimensions );
|
31 |
+
|
32 |
+
// Set up the delete view if needed
|
33 |
+
if ( true === BP_Uploader.settings.defaults.multipart_params.bp_params.has_cover_image ) {
|
34 |
+
this.deleteView();
|
35 |
+
}
|
36 |
+
},
|
37 |
+
|
38 |
+
uploaderView: function() {
|
39 |
+
// Listen to the Queued uploads
|
40 |
+
bp.Uploader.filesQueue.on( 'add', this.uploadProgress, this );
|
41 |
+
|
42 |
+
// Create the BuddyPress Uploader
|
43 |
+
var uploader = new bp.Views.Uploader();
|
44 |
+
|
45 |
+
// Add it to views
|
46 |
+
this.views.add( { id: 'upload', view: uploader } );
|
47 |
+
|
48 |
+
// Display it
|
49 |
+
uploader.inject( '.bp-cover-image' );
|
50 |
+
},
|
51 |
+
|
52 |
+
uploadProgress: function() {
|
53 |
+
// Create the Uploader status view
|
54 |
+
var coverImageUploadProgress = new bp.Views.coverImageUploadProgress( { collection: bp.Uploader.filesQueue } );
|
55 |
+
|
56 |
+
if ( ! _.isUndefined( this.views.get( 'status' ) ) ) {
|
57 |
+
this.views.set( { id: 'status', view: coverImageUploadProgress } );
|
58 |
+
} else {
|
59 |
+
this.views.add( { id: 'status', view: coverImageUploadProgress } );
|
60 |
+
}
|
61 |
+
|
62 |
+
// Display it
|
63 |
+
coverImageUploadProgress.inject( '.bp-cover-image-status' );
|
64 |
+
},
|
65 |
+
|
66 |
+
deleteView: function() {
|
67 |
+
// Create the delete model
|
68 |
+
var delete_model = new Backbone.Model( _.pick( BP_Uploader.settings.defaults.multipart_params.bp_params,
|
69 |
+
['object', 'item_id', 'nonces']
|
70 |
+
) );
|
71 |
+
|
72 |
+
// Do not add it if already there!
|
73 |
+
if ( ! _.isUndefined( this.views.get( 'delete' ) ) ) {
|
74 |
+
return;
|
75 |
+
}
|
76 |
+
|
77 |
+
// Create the delete view
|
78 |
+
var deleteView = new bp.Views.DeleteCoverImage( { model: delete_model } );
|
79 |
+
|
80 |
+
// Add it to views
|
81 |
+
this.views.add( { id: 'delete', view: deleteView } );
|
82 |
+
|
83 |
+
// Display it
|
84 |
+
deleteView.inject( '.bp-cover-image-manage' );
|
85 |
+
},
|
86 |
+
|
87 |
+
deleteCoverImage: function( model ) {
|
88 |
+
var self = this,
|
89 |
+
deleteView;
|
90 |
+
|
91 |
+
// Remove the delete view
|
92 |
+
if ( ! _.isUndefined( this.views.get( 'delete' ) ) ) {
|
93 |
+
deleteView = this.views.get( 'delete' );
|
94 |
+
deleteView.get( 'view' ).remove();
|
95 |
+
this.views.remove( { id: 'delete', view: deleteView } );
|
96 |
+
}
|
97 |
+
|
98 |
+
// Remove the cover image !
|
99 |
+
bp.ajax.post( 'bp_cover_image_delete', {
|
100 |
+
json: true,
|
101 |
+
item_id: model.get( 'item_id' ),
|
102 |
+
object: model.get( 'object' ),
|
103 |
+
nonce: model.get( 'nonces' ).remove
|
104 |
+
} ).done( function( response ) {
|
105 |
+
var coverImageStatus = new bp.Views.CoverImageStatus( {
|
106 |
+
value : BP_Uploader.strings.feedback_messages[ response.feedback_code ],
|
107 |
+
type : 'success'
|
108 |
+
} );
|
109 |
+
|
110 |
+
self.views.add( {
|
111 |
+
id : 'status',
|
112 |
+
view : coverImageStatus
|
113 |
+
} );
|
114 |
+
|
115 |
+
coverImageStatus.inject( '.bp-cover-image-status' );
|
116 |
+
|
117 |
+
// Reset the header of the page
|
118 |
+
if ( '' === response.reset_url ) {
|
119 |
+
$( '#header-cover-image' ).css( {
|
120 |
+
'background-image': 'none'
|
121 |
+
} );
|
122 |
+
} else {
|
123 |
+
$( '#header-cover-image' ).css( {
|
124 |
+
'background-image': 'url( ' + response.reset_url + ' )'
|
125 |
+
} );
|
126 |
+
}
|
127 |
+
|
128 |
+
// Reset the has_cover_image bp_param
|
129 |
+
BP_Uploader.settings.defaults.multipart_params.bp_params.has_cover_image = false;
|
130 |
+
|
131 |
+
/**
|
132 |
+
* Reset the Attachment object
|
133 |
+
*
|
134 |
+
* You can run extra actions once the cover image is set using:
|
135 |
+
* bp.CoverImage.Attachment.on( 'change:url', function( data ) { your code } );
|
136 |
+
*
|
137 |
+
* In this case data.attributes will include the default url for the
|
138 |
+
* cover image (most of the time: ''), the object and the item_id concerned.
|
139 |
+
*/
|
140 |
+
self.Attachment.set( _.extend(
|
141 |
+
_.pick( model.attributes, ['object', 'item_id'] ),
|
142 |
+
{ url: response.reset_url, action: 'deleted' }
|
143 |
+
) );
|
144 |
+
|
145 |
+
} ).fail( function( response ) {
|
146 |
+
var feedback = BP_Uploader.strings.default_error;
|
147 |
+
if ( ! _.isUndefined( response ) ) {
|
148 |
+
feedback = BP_Uploader.strings.feedback_messages[ response.feedback_code ];
|
149 |
+
}
|
150 |
+
|
151 |
+
var coverImageStatus = new bp.Views.CoverImageStatus( {
|
152 |
+
value : feedback,
|
153 |
+
type : 'error'
|
154 |
+
} );
|
155 |
+
|
156 |
+
self.views.add( {
|
157 |
+
id : 'status',
|
158 |
+
view : coverImageStatus
|
159 |
+
} );
|
160 |
+
|
161 |
+
coverImageStatus.inject( '.bp-cover-image-status' );
|
162 |
+
|
163 |
+
// Put back the delete view
|
164 |
+
bp.CoverImage.deleteView();
|
165 |
+
} );
|
166 |
+
},
|
167 |
+
|
168 |
+
removeWarning: function() {
|
169 |
+
if ( ! _.isNull( this.warning ) ) {
|
170 |
+
this.warning.remove();
|
171 |
+
}
|
172 |
+
},
|
173 |
+
|
174 |
+
displayWarning: function( message ) {
|
175 |
+
this.removeWarning();
|
176 |
+
|
177 |
+
this.warning = new bp.Views.uploaderWarning( {
|
178 |
+
value: message
|
179 |
+
} );
|
180 |
+
|
181 |
+
this.warning.inject( '.bp-cover-image-status' );
|
182 |
+
}
|
183 |
+
};
|
184 |
+
|
185 |
+
// Custom Uploader Files view
|
186 |
+
bp.Views.coverImageUploadProgress = bp.Views.uploaderStatus.extend( {
|
187 |
+
className: 'files',
|
188 |
+
|
189 |
+
initialize: function() {
|
190 |
+
bp.Views.uploaderStatus.prototype.initialize.apply( this, arguments );
|
191 |
+
|
192 |
+
this.collection.on( 'change:url', this.uploadResult, this );
|
193 |
+
},
|
194 |
+
|
195 |
+
uploadResult: function( model ) {
|
196 |
+
var message, type;
|
197 |
+
|
198 |
+
if ( ! _.isUndefined( model.get( 'url' ) ) ) {
|
199 |
+
|
200 |
+
// Image is too small
|
201 |
+
if ( 0 === model.get( 'feedback_code' ) ) {
|
202 |
+
message = BP_Uploader.strings.cover_image_warnings.dimensions;
|
203 |
+
type = 'warning';
|
204 |
+
|
205 |
+
// Success, Rock n roll!
|
206 |
+
} else {
|
207 |
+
message = BP_Uploader.strings.feedback_messages[ model.get( 'feedback_code' ) ];
|
208 |
+
type = 'success';
|
209 |
+
}
|
210 |
+
|
211 |
+
this.views.set( '.bp-uploader-progress', new bp.Views.CoverImageStatus( {
|
212 |
+
value : message,
|
213 |
+
type : type
|
214 |
+
} ) );
|
215 |
+
|
216 |
+
// Update the header of the page
|
217 |
+
$( '#header-cover-image' ).css( {
|
218 |
+
'background-image': 'url( ' + model.get( 'url' ) + ' )'
|
219 |
+
} );
|
220 |
+
|
221 |
+
// Add the delete view
|
222 |
+
bp.CoverImage.deleteView();
|
223 |
+
|
224 |
+
/**
|
225 |
+
* Set the Attachment object
|
226 |
+
*
|
227 |
+
* You can run extra actions once the cover image is set using:
|
228 |
+
* bp.CoverImage.Attachment.on( 'change:url', function( data ) { your code } );
|
229 |
+
*
|
230 |
+
* In this case data.attributes will include the url to the newly
|
231 |
+
* uploaded cover image, the object and the item_id concerned.
|
232 |
+
*/
|
233 |
+
bp.CoverImage.Attachment.set( _.extend(
|
234 |
+
_.pick( BP_Uploader.settings.defaults.multipart_params.bp_params, ['object', 'item_id'] ),
|
235 |
+
{ url: model.get( 'url' ), action: 'uploaded' }
|
236 |
+
) );
|
237 |
+
}
|
238 |
+
}
|
239 |
+
} );
|
240 |
+
|
241 |
+
// BuddyPress Cover Image Feedback view
|
242 |
+
bp.Views.CoverImageStatus = bp.View.extend( {
|
243 |
+
tagName: 'p',
|
244 |
+
className: 'updated',
|
245 |
+
id: 'bp-cover-image-feedback',
|
246 |
+
|
247 |
+
initialize: function() {
|
248 |
+
this.el.className += ' ' + this.options.type;
|
249 |
+
this.value = this.options.value;
|
250 |
+
},
|
251 |
+
|
252 |
+
render: function() {
|
253 |
+
this.$el.html( this.value );
|
254 |
+
return this;
|
255 |
+
}
|
256 |
+
} );
|
257 |
+
|
258 |
+
// BuddyPress Cover Image Delete view
|
259 |
+
bp.Views.DeleteCoverImage = bp.View.extend( {
|
260 |
+
tagName: 'div',
|
261 |
+
id: 'bp-delete-cover-image-container',
|
262 |
+
template: bp.template( 'bp-cover-image-delete' ),
|
263 |
+
|
264 |
+
events: {
|
265 |
+
'click #bp-delete-cover-image': 'deleteCoverImage'
|
266 |
+
},
|
267 |
+
|
268 |
+
deleteCoverImage: function( event ) {
|
269 |
+
event.preventDefault();
|
270 |
+
|
271 |
+
bp.CoverImage.deleteCoverImage( this.model );
|
272 |
+
}
|
273 |
+
} );
|
274 |
+
|
275 |
+
bp.CoverImage.start();
|
276 |
+
|
277 |
+
})( bp, jQuery );
|
bp-core/js/cover-image.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.bp=window.bp||{},function(
|
1 |
+
window.bp=window.bp||{},function(e,i){"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.CoverImage={start:function(){this.views=new Backbone.Collection,this.warning=null,this.Attachment=new Backbone.Model,this.uploaderView(),this.displayWarning(BP_Uploader.strings.cover_image_warnings.dimensions),!0===BP_Uploader.settings.defaults.multipart_params.bp_params.has_cover_image&&this.deleteView()},uploaderView:function(){bp.Uploader.filesQueue.on("add",this.uploadProgress,this);var e=new bp.Views.Uploader;this.views.add({id:"upload",view:e}),e.inject(".bp-cover-image")},uploadProgress:function(){var e=new bp.Views.coverImageUploadProgress({collection:bp.Uploader.filesQueue});_.isUndefined(this.views.get("status"))?this.views.add({id:"status",view:e}):this.views.set({id:"status",view:e}),e.inject(".bp-cover-image-status")},deleteView:function(){var e=new Backbone.Model(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,["object","item_id","nonces"]));if(_.isUndefined(this.views.get("delete"))){var i=new bp.Views.DeleteCoverImage({model:e});this.views.add({id:"delete",view:i}),i.inject(".bp-cover-image-manage")}},deleteCoverImage:function(e){var t,a=this;_.isUndefined(this.views.get("delete"))||((t=this.views.get("delete")).get("view").remove(),this.views.remove({id:"delete",view:t})),bp.ajax.post("bp_cover_image_delete",{json:!0,item_id:e.get("item_id"),object:e.get("object"),nonce:e.get("nonces").remove}).done(function(t){var s=new bp.Views.CoverImageStatus({value:BP_Uploader.strings.feedback_messages[t.feedback_code],type:"success"});a.views.add({id:"status",view:s}),s.inject(".bp-cover-image-status"),""===t.reset_url?i("#header-cover-image").css({"background-image":"none"}):i("#header-cover-image").css({"background-image":"url( "+t.reset_url+" )"}),BP_Uploader.settings.defaults.multipart_params.bp_params.has_cover_image=!1,a.Attachment.set(_.extend(_.pick(e.attributes,["object","item_id"]),{url:t.reset_url,action:"deleted"}))}).fail(function(e){var i=BP_Uploader.strings.default_error;_.isUndefined(e)||(i=BP_Uploader.strings.feedback_messages[e.feedback_code]);var t=new bp.Views.CoverImageStatus({value:i,type:"error"});a.views.add({id:"status",view:t}),t.inject(".bp-cover-image-status"),bp.CoverImage.deleteView()})},removeWarning:function(){_.isNull(this.warning)||this.warning.remove()},displayWarning:function(e){this.removeWarning(),this.warning=new bp.Views.uploaderWarning({value:e}),this.warning.inject(".bp-cover-image-status")}},bp.Views.coverImageUploadProgress=bp.Views.uploaderStatus.extend({className:"files",initialize:function(){bp.Views.uploaderStatus.prototype.initialize.apply(this,arguments),this.collection.on("change:url",this.uploadResult,this)},uploadResult:function(e){var t,a;_.isUndefined(e.get("url"))||(0===e.get("feedback_code")?(t=BP_Uploader.strings.cover_image_warnings.dimensions,a="warning"):(t=BP_Uploader.strings.feedback_messages[e.get("feedback_code")],a="success"),this.views.set(".bp-uploader-progress",new bp.Views.CoverImageStatus({value:t,type:a})),i("#header-cover-image").css({"background-image":"url( "+e.get("url")+" )"}),bp.CoverImage.deleteView(),bp.CoverImage.Attachment.set(_.extend(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,["object","item_id"]),{url:e.get("url"),action:"uploaded"})))}}),bp.Views.CoverImageStatus=bp.View.extend({tagName:"p",className:"updated",id:"bp-cover-image-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.DeleteCoverImage=bp.View.extend({tagName:"div",id:"bp-delete-cover-image-container",template:bp.template("bp-cover-image-delete"),events:{"click #bp-delete-cover-image":"deleteCoverImage"},deleteCoverImage:function(e){e.preventDefault(),bp.CoverImage.deleteCoverImage(this.model)}}),bp.CoverImage.start())}(bp,jQuery);
|
bp-core/js/jquery-query.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function bp_get_querystring(
|
1 |
+
function bp_get_querystring(n){var t=location.search.split(n+"=")[1];return t?decodeURIComponent(t.split("&")[0]):null}
|
bp-core/js/vendor/jquery-cookie.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function o(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(c," ")),u.json?JSON.parse(e):e}catch(e){}}function t(n,o){var i=u.raw?n:r(n);return e.isFunction(o)?o(i):i}var c=/\+/g,u=e.cookie=function(r,c,f){if(void 0!==c&&!e.isFunction(c)){if("number"==typeof(f=e.extend({},u.defaults,f)).expires){var a=f.expires,d=f.expires=new Date;d.setTime(+d+864e5*a)}return document.cookie=[n(r),"=",i(c),f.expires?"; expires="+f.expires.toUTCString():"",f.path?"; path="+f.path:"",f.domain?"; domain="+f.domain:"",f.secure?"; secure":""].join("")}for(var p=r?void 0:{},s=document.cookie?document.cookie.split("; "):[],m=0,x=s.length;m<x;m++){var v=s[m].split("="),k=o(v.shift()),l=v.join("=");if(r&&r===k){p=t(l,c);break}r||void 0===(l=t(l))||(p[k]=l)}return p};u.defaults={},e.removeCookie=function(n,o){return void 0!==e.cookie(n)&&(e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n))}});
|
bp-core/js/vendor/jquery-scroll-to.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(t){return e.isFunction(t)||"object"==typeof t?t:{top:t,left:t}}var n=e.scrollTo=function(t,n,o){return e(window).scrollTo(t,n,o)};return n.defaults={axis:"xy",duration:parseFloat(e.fn.jquery)>=1.3?0:1,limit:!0},n.window=function(){return e(window)._scrollable()},e.fn._scrollable=function(){return this.map(function(){var t=this;if(!(!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])))return t;var n=(t.contentWindow||t).document||t.ownerDocument||t;return/webkit/i.test(navigator.userAgent)||"BackCompat"===n.compatMode?n.body:n.documentElement})},e.fn.scrollTo=function(o,r,i){return"object"==typeof r&&(i=r,r=0),"function"==typeof i&&(i={onAfter:i}),"max"===o&&(o=9e9),i=e.extend({},n.defaults,i),r=r||i.duration,i.queue=i.queue&&i.axis.length>1,i.queue&&(r/=2),i.offset=t(i.offset),i.over=t(i.over),this._scrollable().each(function(){function s(e){u.animate(l,r,i.easing,e&&function(){e.call(this,c,i)})}if(null!==o){var a,f=this,u=e(f),c=o,l={},d=u.is("html,body");switch(typeof c){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(c)){c=t(c);break}if(!(c=d?e(c):e(c,this)).length)return;case"object":(c.is||c.style)&&(a=(c=e(c)).offset())}var m=e.isFunction(i.offset)&&i.offset(f,c)||i.offset;e.each(i.axis.split(""),function(e,t){var o="x"===t?"Left":"Top",r=o.toLowerCase(),h="scroll"+o,p=f[h],y=n.max(f,t);if(a)l[h]=a[r]+(d?0:p-u.offset()[r]),i.margin&&(l[h]-=parseInt(c.css("margin"+o))||0,l[h]-=parseInt(c.css("border"+o+"Width"))||0),l[h]+=m[r]||0,i.over[r]&&(l[h]+=c["x"===t?"width":"height"]()*i.over[r]);else{var b=c[r];l[h]=b.slice&&"%"===b.slice(-1)?parseFloat(b)/100*y:b}i.limit&&/^\d+$/.test(l[h])&&(l[h]=l[h]<=0?0:Math.min(l[h],y)),!e&&i.queue&&(p!==l[h]&&s(i.onAfterFirst),delete l[h])}),s(i.onAfter)}}).end()},n.max=function(t,n){var o="x"===n?"Width":"Height",r="scroll"+o;if(!e(t).is("html,body"))return t[r]-e(t)[o.toLowerCase()]();var i="client"+o,s=t.ownerDocument.documentElement,a=t.ownerDocument.body;return Math.max(s[r],a[r])-Math.min(s[i],a[i])},n});
|
bp-core/js/vendor/jquery.atwho.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!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){if(0===(this.$el=a("#atwho-container",b)).length)return a(b.body).append(this.$el=a("<div id='atwho-container'></div>"))},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;if(c=a.controller())return c.view.hide(b,c.get_opt("display_timeout"))}}(this)).on("click.atwhoInner",function(a){return function(b){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(){if(b.look_up())return a.set_context_for(b.at)},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(b){return c=b,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,b){var c;try{return this.setting[a]}catch(a){return c=a,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(){if(this.$inputor.is("[contentEditable]"))return this.cur_rect=null},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,c){var d,e,f,g,h,i,j,k,l,m,n,o;if(d=this.$inputor,l=this.callbacks("inserting_wrapper").call(this,d,b,this.get_opt("suffix")),d.is("textarea, input"))i=d.val(),j=i.slice(0,Math.max(this.query.head_pos-this.at.length,0)),k=""+j+l+i.slice(this.query.end_pos||0),d.val(k),d.caret("pos",j.length+l.length,{iframe:this.app.iframe});else if(g=this.range){for(f=g.startOffset-(this.query.end_pos-this.query.head_pos)-this.at.length,g.setStart(g.endContainer,Math.max(f,0)),g.setEnd(g.endContainer,g.endOffset),g.deleteContents(),o=a(l,this.app.document),m=0,n=o.length;m<n;m++)e=o[m],g.insertNode(e),g.setEndAfter(e),g.collapse(!1);h=this.app.window.getSelection(),h.removeAllRanges(),h.addRange(g)}else(g=this.ie8_range)&&(g.moveStart("character",this.query.end_pos-this.query.head_pos-this.at.length),g.pasteHTML(l),g.collapse(!1),g.select());return d.is(":focus")||d.focus(),d.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){if(!this.saved()&&a)return this._load(a)},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;if((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"))return this.stop_showing=!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;h<i;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;d<e;d++)c=b[d],a.isPlainObject(c)?f.push(c):f.push({name:c});return f},matcher:function(a,b,c){var d,e,f,g;return a=a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),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]*)$","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;e<f;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;e<f;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,d){return b[c]})}catch(a){return c=a,""}},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,b){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?" ":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;if(c=this.controller(a))return c.model.load(b)},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 |
+
!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(i){return t.returnExportsGlobal=e(i)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(this,function(t){var e,i,n,r,o,s,a,h=[].slice;i=function(){function e(e){this.current_flag=null,this.controllers={},this.alias_maps={},this.$inputor=t(e),this.setIframe(),this.listen()}return e.prototype.createContainer=function(e){if(0===(this.$el=t("#atwho-container",e)).length)return t(e.body).append(this.$el=t("<div id='atwho-container'></div>"))},e.prototype.setIframe=function(t,e){var i;return null==e&&(e=!1),t?(this.window=t.contentWindow,this.document=t.contentDocument||this.window.document,this.iframe=t):(this.document=document,this.window=window,this.iframe=null),(this.iframeStandalone=e)?(null!=(i=this.$el)&&i.remove(),this.createContainer(this.document)):this.createContainer(document)},e.prototype.controller=function(t){var e,i,n,r;if(this.alias_maps[t])i=this.controllers[this.alias_maps[t]];else{r=this.controllers;for(n in r)if(e=r[n],n===t){i=e;break}}return i||this.controllers[this.current_flag]},e.prototype.set_context_for=function(t){return this.current_flag=t,this},e.prototype.reg=function(t,e){var i,r;return i=(r=this.controllers)[t]||(r[t]=new n(this,t)),e.alias&&(this.alias_maps[e.alias]=t),i.init(e),this},e.prototype.listen=function(){return this.$inputor.on("keyup.atwhoInner",function(t){return function(e){return t.on_keyup(e)}}(this)).on("keydown.atwhoInner",function(t){return function(e){return t.on_keydown(e)}}(this)).on("scroll.atwhoInner",function(t){return function(e){var i;return null!=(i=t.controller())?i.view.hide(e):void 0}}(this)).on("blur.atwhoInner",function(t){return function(e){var i;if(i=t.controller())return i.view.hide(e,i.get_opt("display_timeout"))}}(this)).on("click.atwhoInner",function(t){return function(e){return t.dispatch()}}(this))},e.prototype.shutdown=function(){var t,e;e=this.controllers;for(t in e)e[t].destroy(),delete this.controllers[t];return this.$inputor.off(".atwhoInner"),this.$el.remove()},e.prototype.dispatch=function(){return t.map(this.controllers,function(t){return function(e){var i;return(i=e.get_opt("delay"))?(clearTimeout(t.delayedCallback),t.delayedCallback=setTimeout(function(){if(e.look_up())return t.set_context_for(e.at)},i)):e.look_up()?t.set_context_for(e.at):void 0}}(this))},e.prototype.on_keyup=function(e){var i;switch(e.keyCode){case o.ESC:e.preventDefault(),null!=(i=this.controller())&&i.view.hide();break;case o.DOWN:case o.UP:case o.CTRL:t.noop();break;case o.P:case o.N:e.ctrlKey||this.dispatch();break;default:this.dispatch()}},e.prototype.on_keydown=function(e){var i,n;if((i=null!=(n=this.controller())?n.view:void 0)&&i.visible())switch(e.keyCode){case o.ESC:e.preventDefault(),i.hide(e);break;case o.UP:e.preventDefault(),i.prev();break;case o.DOWN:e.preventDefault(),i.next();break;case o.P:if(!e.ctrlKey)return;e.preventDefault(),i.prev();break;case o.N:if(!e.ctrlKey)return;e.preventDefault(),i.next();break;case o.TAB:case o.ENTER:if(!i.visible())return;e.preventDefault(),i.choose(e);break;default:t.noop()}},e}(),n=function(){function e(e,i){this.app=e,this.at=i,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=t("#atwho-ground-"+this.id,this.app.$el)).length&&this.app.$el.append(this.$el=t("<div id='atwho-ground-"+this.id+"'></div>")),this.model=new s(this),this.view=new a(this)}return e.prototype.uid=function(){return(Math.random().toString(16)+"000000000").substr(2,8)+(new Date).getTime()},e.prototype.init=function(e){return this.setting=t.extend({},this.setting||t.fn.atwho.default,e),this.view.init(),this.model.reload(this.setting.data)},e.prototype.destroy=function(){return this.trigger("beforeDestroy"),this.model.destroy(),this.view.destroy(),this.$el.remove()},e.prototype.call_default=function(){var e,i,n;n=arguments[0],e=2<=arguments.length?h.call(arguments,1):[];try{return r[n].apply(this,e)}catch(e){return i=e,t.error(i+" Or maybe At.js doesn't have function "+n)}},e.prototype.trigger=function(t,e){var i,n;return null==e&&(e=[]),e.push(this),i=this.get_opt("alias"),n=i?t+"-"+i+".atwho":t+".atwho",this.$inputor.trigger(n,e)},e.prototype.callbacks=function(t){return this.get_opt("callbacks")[t]||r[t]},e.prototype.get_opt=function(t,e){try{return this.setting[t]}catch(t){return t,null}},e.prototype.content=function(){var t;if(this.$inputor.is("textarea, input"))return this.$inputor.val();if(t=this.mark_range())return(t.startContainer.textContent||"").slice(0,t.startOffset)},e.prototype.catch_query=function(){var t,e,i,n,r,o;return e=this.content(),t=this.$inputor.caret("pos",{iframe:this.app.iframe}),o=e.slice(0,t),n=this.callbacks("matcher").call(this,this.at,o,this.get_opt("start_with_space")),"string"==typeof n&&n.length<=this.get_opt("max_len",20)?(i=(r=t-n.length)+n.length,this.pos=r,n={text:n,head_pos:r,end_pos:i},this.trigger("matched",[this.at,n.text])):(n=null,this.view.hide()),this.query=n},e.prototype.rect=function(){var e,i,n;if(e=this.$inputor.caret("offset",this.pos-1,{iframe:this.app.iframe}))return this.app.iframe&&!this.app.iframeStandalone&&(i=t(this.app.iframe).offset(),e.left+=i.left,e.top+=i.top),this.$inputor.is("[contentEditable]")&&(e=this.cur_rect||(this.cur_rect=e)),n=this.app.document.selection?0:2,{left:e.left,top:e.top,bottom:e.top+e.height+n}},e.prototype.reset_rect=function(){if(this.$inputor.is("[contentEditable]"))return this.cur_rect=null},e.prototype.mark_range=function(){var t;if(this.$inputor.is("[contentEditable]"))return this.app.window.getSelection&&(t=this.app.window.getSelection()).rangeCount>0?this.range=t.getRangeAt(0):this.app.document.selection?this.ie8_range=this.app.document.selection.createRange():void 0},e.prototype.insert_content_for=function(e){var i,n,r;return n=e.data("value"),r=this.get_opt("insert_tpl"),this.$inputor.is("textarea, input")||!r?n:(i=t.extend({},e.data("item-data"),{"atwho-data-value":n,"atwho-at":this.at}),this.callbacks("tpl_eval").call(this,r,i))},e.prototype.insert=function(e,i){var n,r,o,s,a,h,l,u,c,p,f,d;if(n=this.$inputor,c=this.callbacks("inserting_wrapper").call(this,n,e,this.get_opt("suffix")),n.is("textarea, input"))u=""+(l=(h=n.val()).slice(0,Math.max(this.query.head_pos-this.at.length,0)))+c+h.slice(this.query.end_pos||0),n.val(u),n.caret("pos",l.length+c.length,{iframe:this.app.iframe});else if(s=this.range){for(o=s.startOffset-(this.query.end_pos-this.query.head_pos)-this.at.length,s.setStart(s.endContainer,Math.max(o,0)),s.setEnd(s.endContainer,s.endOffset),s.deleteContents(),p=0,f=(d=t(c,this.app.document)).length;p<f;p++)r=d[p],s.insertNode(r),s.setEndAfter(r),s.collapse(!1);(a=this.app.window.getSelection()).removeAllRanges(),a.addRange(s)}else(s=this.ie8_range)&&(s.moveStart("character",this.query.end_pos-this.query.head_pos-this.at.length),s.pasteHTML(c),s.collapse(!1),s.select());return n.is(":focus")||n.focus(),n.change()},e.prototype.render_view=function(t){var e;return e=this.get_opt("search_key"),t=this.callbacks("sorter").call(this,this.query.text,t.slice(0,1001),e),this.view.render(t.slice(0,this.get_opt("limit")))},e.prototype.look_up=function(){var e,i;if(e=this.catch_query())return i=function(t){return t&&t.length>0?this.render_view(t):this.view.hide()},this.model.query(e.text,t.proxy(i,this)),e},e}(),s=function(){function e(t){this.context=t,this.at=this.context.at,this.storage=this.context.$inputor}return e.prototype.destroy=function(){return this.storage.data(this.at,null)},e.prototype.saved=function(){return this.fetch()>0},e.prototype.query=function(t,e){var i,n,r;return i=this.fetch(),n=this.context.get_opt("search_key"),i=this.context.callbacks("filter").call(this.context,t,i,n)||[],r=this.context.callbacks("remote_filter"),i.length>0||!r&&0===i.length?e(i):r.call(this.context,t,e)},e.prototype.fetch=function(){return this.storage.data(this.at)||[]},e.prototype.save=function(t){return this.storage.data(this.at,this.context.callbacks("before_save").call(this.context,t||[]))},e.prototype.load=function(t){if(!this.saved()&&t)return this._load(t)},e.prototype.reload=function(t){return this._load(t)},e.prototype._load=function(e){return"string"==typeof e?t.ajax(e,{dataType:"json"}).done(function(t){return function(e){return t.save(e)}}(this)):this.save(e)},e}(),a=function(){function e(e){this.context=e,this.$el=t("<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 e.prototype.init=function(){var t;return t=this.context.get_opt("alias")||this.context.at.charCodeAt(0),this.$el.attr({id:"at-view-"+t})},e.prototype.destroy=function(){return this.$el.remove()},e.prototype.bind_event=function(){var e;return(e=this.$el.find("ul")).on("mouseenter.atwho-view","li",function(i){return e.find(".cur").removeClass("cur"),t(i.currentTarget).addClass("cur")}).on("click.atwho-view","li",function(i){return function(n){return e.find(".cur").removeClass("cur"),t(n.currentTarget).addClass("cur"),i.choose(n),n.preventDefault()}}(this))},e.prototype.visible=function(){return this.$el.is(":visible")},e.prototype.choose=function(t){var e,i;if((e=this.$el.find(".cur")).length&&(i=this.context.insert_content_for(e),this.context.insert(this.context.callbacks("before_insert").call(this.context,i,e),e),this.context.trigger("inserted",[e,t]),this.hide(t)),this.context.get_opt("hide_without_suffix"))return this.stop_showing=!0},e.prototype.reposition=function(e){var i,n,r,o;return o=this.context.app.iframeStandalone?this.context.app.window:window,e.bottom+this.$el.height()-t(o).scrollTop()>t(o).height()&&(e.bottom=e.top-this.$el.height()),e.left>(n=t(o).width()-this.$el.width()-5)&&(e.left=n),i={left:e.left,top:e.bottom},null!=(r=this.context.callbacks("before_reposition"))&&r.call(this.context,i),this.$el.offset(i),this.context.trigger("reposition",[i])},e.prototype.next=function(){var t,e;return t=this.$el.find(".cur").removeClass("cur"),(e=t.next()).length||(e=this.$el.find("li:first")),e.addClass("cur"),this.$el.animate({scrollTop:Math.max(0,t.innerHeight()*(e.index()+2)-this.$el.height())},150)},e.prototype.prev=function(){var t,e;return t=this.$el.find(".cur").removeClass("cur"),(e=t.prev()).length||(e=this.$el.find("li:last")),e.addClass("cur"),this.$el.animate({scrollTop:Math.max(0,t.innerHeight()*(e.index()+2)-this.$el.height())},150)},e.prototype.show=function(){var t;{if(!this.stop_showing)return this.context.mark_range(),this.visible()||(this.$el.show(),this.$el.scrollTop(0),this.context.trigger("shown")),(t=this.context.rect())?this.reposition(t):void 0;this.stop_showing=!1}},e.prototype.hide=function(t,e){var i;if(this.visible())return isNaN(e)?(this.context.reset_rect(),this.$el.hide(),this.context.trigger("hidden",[t])):(i=function(t){return function(){return t.hide()}}(this),clearTimeout(this.timeout_id),this.timeout_id=setTimeout(i,e))},e.prototype.render=function(e){var i,n,r,o,s,a,h;{if(t.isArray(e)&&e.length>0){for(this.$el.find("ul").empty(),n=this.$el.find("ul"),s=this.context.get_opt("tpl"),a=0,h=e.length;a<h;a++)r=e[a],r=t.extend({},r,{"atwho-at":this.context.at}),o=this.context.callbacks("tpl_eval").call(this.context,s,r),(i=t(this.context.callbacks("highlighter").call(this.context,o,this.context.query.text))).data("item-data",r),n.append(i);return this.show(),this.context.get_opt("highlight_first")?n.find("li:first").addClass("cur"):void 0}this.hide()}},e}(),o={DOWN:40,UP:38,ESC:27,TAB:9,ENTER:13,CTRL:17,P:80,N:78},r={before_save:function(e){var i,n,r,o;if(!t.isArray(e))return e;for(o=[],n=0,r=e.length;n<r;n++)i=e[n],t.isPlainObject(i)?o.push(i):o.push({name:i});return o},matcher:function(t,e,i){var n,r,o,s;return t=t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),i&&(t="(?:^|\\s)"+t),o=decodeURI("%C3%80"),s=decodeURI("%C3%BF"),r=new RegExp(t+"([A-Za-z"+o+"-"+s+"0-9_+-]*)$|"+t+"([^\\x00-\\xff]*)$","gi"),n=r.exec(e),n?n[2]||n[1]:null},filter:function(t,e,i){var n,r,o,s;for(s=[],r=0,o=e.length;r<o;r++)n=e[r],~new String(n[i]).toLowerCase().indexOf(t.toLowerCase())&&s.push(n);return s},remote_filter:null,sorter:function(t,e,i){var n,r,o,s;if(!t)return e;for(s=[],r=0,o=e.length;r<o;r++)(n=e[r]).atwho_order=new String(n[i]).toLowerCase().indexOf(t.toLowerCase()),n.atwho_order>-1&&s.push(n);return s.sort(function(t,e){return t.atwho_order-e.atwho_order})},tpl_eval:function(t,e){try{return t.replace(/\$\{([^\}]*)\}/g,function(t,i,n){return e[i]})}catch(t){return t,""}},highlighter:function(t,e){var i;return e?(i=new RegExp(">\\s*(\\w*?)("+e.replace("+","\\+")+")(\\w*)\\s*<","ig"),t.replace(i,function(t,e,i,n){return"> "+e+"<strong>"+i+"</strong>"+n+" <"})):t},before_insert:function(t,e){return t},inserting_wrapper:function(t,e,i){var n;return i=""===i?i:i||" ",t.is("textarea, input")?""+e+i:"true"===t.attr("contentEditable")?(i=" "===i?" ":i,n=/firefox/i.test(navigator.userAgent)?"<span>"+e+i+"</span>":"<span contenteditable='false'>"+e+(i="<span contenteditable='false'>"+i+"</span>")+"</span>",this.app.document.selection&&(n="<span contenteditable='true'>"+e+"</span>"),n+"<span></span>"):void 0}},e={load:function(t,e){var i;if(i=this.controller(t))return i.model.load(e)},setIframe:function(t,e){return this.setIframe(t,e),null},run:function(){return this.dispatch()},destroy:function(){return this.shutdown(),this.$inputor.data("atwho",null)}},t.fn.atwho=function(n){var r,o;return o=arguments,r=null,this.filter('textarea, input, [contenteditable=""], [contenteditable=true]').each(function(){var s,a;return(a=(s=t(this)).data("atwho"))||s.data("atwho",a=new i(this)),"object"!=typeof n&&n?e[n]&&a?r=e[n].apply(a,Array.prototype.slice.call(o,1)):t.error("Method "+n+" does not exist on jQuery.caret"):a.reg(n.at,n)}),r||this},t.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:r,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/vendor/jquery.caret.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(o){return t.returnExportsGlobal=e(o)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(this,function(t){"use strict";var e,o,n,r,i,s,a,p,l;e=function(){function e(t){this.$inputor=t,this.domInputor=this.$inputor[0]}return e.prototype.setPos=function(t){return this.domInputor},e.prototype.getIEPosition=function(){return this.getPosition()},e.prototype.getPosition=function(){var t,e;return e=this.getOffset(),t=this.$inputor.offset(),e.left-=t.left,e.top-=t.top,e},e.prototype.getOldIEPos=function(){var t,e;return e=s.selection.createRange(),(t=s.body.createTextRange()).moveToElementText(this.domInputor),t.setEndPoint("EndToEnd",e),t.text.length},e.prototype.getPos=function(){var t,e,o;return(o=this.range())?((t=o.cloneRange()).selectNodeContents(this.domInputor),t.setEnd(o.endContainer,o.endOffset),e=t.toString().length,t.detach(),e):s.selection?this.getOldIEPos():void 0},e.prototype.getOldIEOffset=function(){var t,e;return(t=s.selection.createRange().duplicate()).moveStart("character",-1),e=t.getBoundingClientRect(),{height:e.bottom-e.top,left:e.left,top:e.top}},e.prototype.getOffset=function(e){var o,n,r,i,a;return p.getSelection&&(r=this.range())?(r.endOffset-1>0&&r.endContainer===!this.domInputor&&((o=r.cloneRange()).setStart(r.endContainer,r.endOffset-1),o.setEnd(r.endContainer,r.endOffset),n={height:(i=o.getBoundingClientRect()).height,left:i.left+i.width,top:i.top},o.detach()),n&&0!==(null!=n?n.height:void 0)||(o=r.cloneRange(),a=t(s.createTextNode("|")),o.insertNode(a[0]),o.selectNode(a[0]),n={height:(i=o.getBoundingClientRect()).height,left:i.left,top:i.top},a.remove(),o.detach())):s.selection&&(n=this.getOldIEOffset()),n&&(n.top+=t(p).scrollTop(),n.left+=t(p).scrollLeft()),n},e.prototype.range=function(){var t;if(p.getSelection)return t=p.getSelection(),t.rangeCount>0?t.getRangeAt(0):null},e}(),o=function(){function e(t){this.$inputor=t,this.domInputor=this.$inputor[0]}return e.prototype.getIEPos=function(){var t,e,o,n,r,i;return e=this.domInputor,r=s.selection.createRange(),n=0,r&&r.parentElement()===e&&(o=e.value.replace(/\r\n/g,"\n").length,(i=e.createTextRange()).moveToBookmark(r.getBookmark()),(t=e.createTextRange()).collapse(!1),n=i.compareEndPoints("StartToEnd",t)>-1?o:-i.moveStart("character",-o)),n},e.prototype.getPos=function(){return s.selection?this.getIEPos():this.domInputor.selectionStart},e.prototype.setPos=function(t){var e,o;return e=this.domInputor,s.selection?((o=e.createTextRange()).move("character",t),o.select()):e.setSelectionRange&&e.setSelectionRange(t,t),e},e.prototype.getIEOffset=function(t){var e,o,n,r;return o=this.domInputor.createTextRange(),t||(t=this.getPos()),o.move("character",t),n=o.boundingLeft,r=o.boundingTop,e=o.boundingHeight,{left:n,top:r,height:e}},e.prototype.getOffset=function(e){var o,n,r;return o=this.$inputor,s.selection?(n=this.getIEOffset(e),n.top+=t(p).scrollTop()+o.scrollTop(),n.left+=t(p).scrollLeft()+o.scrollLeft(),n):(n=o.offset(),r=this.getPosition(e),n={left:n.left+r.left-o.scrollLeft(),top:n.top+r.top-o.scrollTop(),height:r.height})},e.prototype.getPosition=function(t){var e,o,r,i,s,a;return e=this.$inputor,r=function(t){return t=t.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"<br/>"),/firefox/i.test(navigator.userAgent)&&(t=t.replace(/\s/g," ")),t},void 0===t&&(t=this.getPos()),a=e.val().slice(0,t),o=e.val().slice(t),i="<span style='position: relative; display: inline;'>"+r(a)+"</span>",i+="<span id='caret' style='position: relative; display: inline;'>|</span>",i+="<span style='position: relative; display: inline;'>"+r(o)+"</span>",s=new n(e),s.create(i).rect()},e.prototype.getIEPosition=function(t){var e,o,n,r,i;return n=this.getIEOffset(t),o=this.$inputor.offset(),r=n.left-o.left,i=n.top-o.top,e=n.height,{left:r,top:i,height:e}},e}(),n=function(){function e(t){this.$inputor=t}return e.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"],e.prototype.mirrorCss=function(){var e,o=this;return e={position:"absolute",left:-9999,top:0,zIndex:-2e4},"TEXTAREA"===this.$inputor.prop("tagName")&&this.css_attr.push("width"),t.each(this.css_attr,function(t,n){return e[n]=o.$inputor.css(n)}),e},e.prototype.create=function(e){return this.$mirror=t("<div></div>"),this.$mirror.css(this.mirrorCss()),this.$mirror.html(e),this.$inputor.after(this.$mirror),this},e.prototype.rect=function(){var t,e,o;return t=this.$mirror.find("#caret"),e=t.position(),o={left:e.left,top:e.top,height:t.height()},this.$mirror.remove(),o},e}(),r={contentEditable:function(t){return!(!t[0].contentEditable||"true"!==t[0].contentEditable)}},i={pos:function(t){return t||0===t?this.setPos(t):this.getPos()},position:function(t){return s.selection?this.getIEPosition(t):this.getPosition(t)},offset:function(t){return this.getOffset(t)}},s=null,p=null,a=null,l=function(t){var e;return(e=null!=t?t.iframe:void 0)?(a=e,p=e.contentWindow,s=e.contentDocument||p.document):(a=void 0,p=window,s=document)},t.fn.caret=function(n,s,a){var p;return i[n]?(t.isPlainObject(s)?(l(s),s=void 0):l(a),p=r.contentEditable(this)?new e(this):new o(this),i[n].apply(p,[s])):t.error("Method "+n+" does not exist on jQuery.caret")},t.fn.caret.EditableCaret=e,t.fn.caret.InputCaret=o,t.fn.caret.Utils=r,t.fn.caret.apis=i});
|
bp-core/js/vendor/livestamp.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(t,a){var e=1e3,i=!1,n=t([]),o=function(){s.resume()},r=function(e,i){var o=e.data("livestampdata");if("number"==typeof i&&(i*=1e3),e.removeAttr("data-livestamp").removeData("livestamp"),i=a(i),a.isMoment(i)&&!isNaN(+i)){var r=t.extend({},{original:e.contents()},o);r.moment=a(i),e.data("livestampdata",r).empty(),n.push(e[0])}},m=function(){i||(s.update(),setTimeout(m,e))},s={update:function(){t("[data-livestamp]").each(function(){var a=t(this);r(a,a.data("livestamp"))});var e=[];n.each(function(){var i=t(this),n=i.data("livestampdata");if(void 0===n)e.push(this);else if(a.isMoment(n.moment)){var o=i.html(),r=n.moment.fromNow();if(o!=r){var m=t.Event("change.livestamp");i.trigger(m,[o,r]),m.isDefaultPrevented()||i.html(r)}}}),n=n.not(e)},pause:function(){i=!0},resume:function(){i=!1,m()},interval:function(t){if(void 0===t)return e;e=t}},u={add:function(e,i){return"number"==typeof i&&(i*=1e3),i=a(i),a.isMoment(i)&&!isNaN(+i)&&(e.each(function(){r(t(this),i)}),s.update()),e},destroy:function(a){return n=n.not(a),a.each(function(){var e=t(this),i=e.data("livestampdata");if(void 0===i)return a;e.html(i.original?i.original:"").removeData("livestampdata")}),a},isLivestamp:function(t){return void 0!==t.data("livestampdata")}};t.livestamp=s,t(o),t.fn.livestamp=function(t,a){return u[t]||(a=t,t="add"),u[t](this,a)}}(jQuery,moment);
|
bp-core/js/vendor/moment-js/locale/af.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,n,a){return e<12?a?"vm":"VM":a?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/ar-ly.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,d){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?d(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],d):d(e.moment)}(this,function(e){"use strict";var d={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(d,r,i,m){var o=t(d),a=n[e][t(d)];return 2===o&&(a=a[r?0:1]),a.replace(/%d/i,d)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,d,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return d[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/ar-ma.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/ar-sa.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},_={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,_){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return _[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/ar-tn.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/ar.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,d){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?d(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],d):d(e.moment)}(this,function(e){"use strict";var d={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},t={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(d,t,i,o){var a=n(d),m=r[e][n(d)];return 2===a&&(m=m[t?0:1]),m.replace(/%d/i,d)}},o=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,d,t){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return t[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return d[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/az.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(n,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(n.moment)}(this,function(n){"use strict";var a={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(n){return/^(gündüz|axşam)$/.test(n)},meridiem:function(n,a,e){return n<4?"gecə":n<12?"səhər":n<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(n){if(0===n)return n+"-ıncı";var e=n%10,i=n%100-e,t=n>=100?100:null;return n+(a[e]||a[i]||a[t])},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/be.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";function _(e,_){var t=e.split("_");return _%10==1&&_%100!=11?t[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?t[1]:t[2]}function t(e,t,n){var s={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+_(s[n],+e)}return e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,_,t){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,_){switch(_){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/bg.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var _=e%10,d=e%100;return 0===e?e+"-ев":0===d?e+"-ен":d>10&&d<20?e+"-ти":1===_?e+"-ви":2===_?e+"-ри":7===_||8===_?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/bn.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},_={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return _[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,_){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/bo.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},_={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return _[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,_){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/br.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,r){return e+" "+a({mm:"munutenn",MM:"miz",dd:"devezh"}[r],e)}function r(e){switch(t(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function t(e){return e>9?t(e%10):e}function a(e,n){return 2===n?u(e):e}function u(e){var n={m:"v",b:"v",d:"z"};return void 0===n[e.charAt(0)]?e:n[e.charAt(0)]+e.substring(1)}return e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:r},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/bs.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";function a(e,a,t){var s=e+" ";switch(t){case"m":return a?"jedna minuta":"jedne minute";case"mm":return s+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return s+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return s+=1===e?"dan":"dana";case"MM":return s+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return s+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/ca.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?s(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],s):s(e.moment)}(this,function(e){"use strict";return e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd D MMMM YYYY H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,s){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==s&&"W"!==s||(n="a"),e+n},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/cs.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e){return e>1&&e<5&&1!=~~(e/10)}function t(e,t,r,s){var u=e+" ";switch(r){case"s":return t||s?"pár sekund":"pár sekundami";case"m":return t?"minuta":s?"minutu":"minutou";case"mm":return t||s?u+(n(e)?"minuty":"minut"):u+"minutami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?u+(n(e)?"hodiny":"hodin"):u+"hodinami";case"d":return t||s?"den":"dnem";case"dd":return t||s?u+(n(e)?"dny":"dní"):u+"dny";case"M":return t||s?"měsíc":"měsícem";case"MM":return t||s?u+(n(e)?"měsíce":"měsíců"):u+"měsíci";case"y":return t||s?"rok":"rokem";case"yy":return t||s?u+(n(e)?"roky":"let"):u+"lety"}}var r="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),s="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return e.defineLocale("cs",{months:r,monthsShort:s,monthsParse:function(e,n){var t,r=[];for(t=0;t<12;t++)r[t]=new RegExp("^"+e[t]+"$|^"+n[t]+"$","i");return r}(r,s),shortMonthsParse:function(e){var n,t=[];for(n=0;n<12;n++)t[n]=new RegExp("^"+e[n]+"$","i");return t}(s),longMonthsParse:function(e){var n,t=[];for(n=0;n<12;n++)t[n]=new RegExp("^"+e[n]+"$","i");return t}(r),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/cv.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},ordinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/cy.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,d){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?d(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],d):d(e.moment)}(this,function(e){"use strict";return e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var d=e,a="",n=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"];return d>20?a=40===d||50===d||60===d||80===d||100===d?"fed":"ain":d>0&&(a=n[d]),e+a},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/da.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,d){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?d(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],d):d(e.moment)}(this,function(e){"use strict";return e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY HH:mm"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/de-at.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,t,a){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return n?r[t][0]:r[t][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/de.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,t,a){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return n?r[t][0]:r[t][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/dv.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],d=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];return e.defineLocale("dv",{months:t,monthsShort:t,weekdays:d,weekdaysShort:d,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,d){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/el.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";function t(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var _=this._calendarEl[e],i=n&&n.hours();return t(_)&&(_=_.apply(n)),_.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/en-au.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/en-ca.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")}})});
|
bp-core/js/vendor/moment-js/locale/en-gb.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/en-ie.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/en-nz.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var a=e%10;return e+(1==~~(e%100/10)?"th":1===a?"st":2===a?"nd":3===a?"rd":"th")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/eo.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?o(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],o):o(e.moment)}(this,function(e){"use strict";return e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-an de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,o,a){return e>11?a?"p.t.m.":"P.T.M.":a?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/es-do.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),o="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return/-MMM-/.test(s)?o[e.month()]:n[e.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/es.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),o="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return/-MMM-/.test(s)?o[e.month()]:n[e.month()]},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/et.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";function a(e,a,t,n){var s={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return a?s[t][2]?s[t][2]:s[t][1]:n?s[t][0]:s[t][1]}return e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d päeva",M:a,MM:a,y:a,yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/eu.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a,
|
1 |
+
!function(a,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],e):e(a.moment)}(this,function(a){"use strict";return a.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/fa.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/fi.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,u){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?u(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],u):u(e.moment)}(this,function(e){"use strict";function u(e,u,t,a){var i="";switch(t){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"m":return a?"minuutin":"minuutti";case"mm":i=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":i=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":i=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":i=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":i=a?"vuoden":"vuotta"}return i=n(e,a)+" "+i}function n(e,u){return e<10?u?a[e]:t[e]:e}var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),a=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];return e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:u,m:u,mm:u,h:u,hh:u,d:u,dd:u,M:u,MM:u,y:u,yy:u},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/fo.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/fr-ca.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")}})});
|
bp-core/js/vendor/moment-js/locale/fr-ch.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";return e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|e)/,ordinal:function(e){return e+(1===e?"er":"e")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/fr.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";return e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/fy.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),t="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,o){return/-MMM-/.test(o)?t[e.month()]:n[e.month()]},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/gd.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a,
|
1 |
+
!function(a,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(a.moment)}(this,function(a){"use strict";var n=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],i=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],e=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],d=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],t=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];return a.defineLocale("gd",{months:n,monthsShort:i,monthsParseExact:!0,weekdays:e,weekdaysShort:d,weekdaysMin:t,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},ordinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(a){return a+(1===a?"d":a%10==2?"na":"mh")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/gl.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?o(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],o):o(e.moment)}(this,function(e){"use strict";return e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/he.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,_){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?_?'לפנה"צ':"לפני הצהריים":e<18?_?'אחה"צ':"אחרי הצהריים":"בערב"}})});
|
bp-core/js/vendor/moment-js/locale/hi.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},_={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return _[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,_){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/hr.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";function a(e,a,s){var t=e+" ";switch(s){case"m":return a?"jedna minuta":"jedne minute";case"mm":return t+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return a?"jedan sat":"jednog sata";case"hh":return t+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return t+=1===e?"dan":"dana";case"MM":return t+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return t+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/hu.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?r(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],r):r(e.moment)}(this,function(e){"use strict";function r(e,r,n,t){var a=e;switch(n){case"s":return t||r?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(t||r?" perc":" perce");case"mm":return a+(t||r?" perc":" perce");case"h":return"egy"+(t||r?" óra":" órája");case"hh":return a+(t||r?" óra":" órája");case"d":return"egy"+(t||r?" nap":" napja");case"dd":return a+(t||r?" nap":" napja");case"M":return"egy"+(t||r?" hónap":" hónapja");case"MM":return a+(t||r?" hónap":" hónapja");case"y":return"egy"+(t||r?" év":" éve");case"yy":return a+(t||r?" év":" éve")}return""}function n(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,r,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return n.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return n.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/hy-am.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,_){switch(_){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/id.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"siang"===a?e>=11?e:e+12:"sore"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/is.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?r(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],r):r(e.moment)}(this,function(e){"use strict";function r(e){return e%100==11||e%10!=1}function u(e,u,n,a){var t=e+" ";switch(n){case"s":return u||a?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return u?"mínúta":"mínútu";case"mm":return r(e)?t+(u||a?"mínútur":"mínútum"):u?t+"mínúta":t+"mínútu";case"hh":return r(e)?t+(u||a?"klukkustundir":"klukkustundum"):t+"klukkustund";case"d":return u?"dagur":a?"dag":"degi";case"dd":return r(e)?u?t+"dagar":t+(a?"daga":"dögum"):u?t+"dagur":t+(a?"dag":"degi");case"M":return u?"mánuður":a?"mánuð":"mánuði";case"MM":return r(e)?u?t+"mánuðir":t+(a?"mánuði":"mánuðum"):u?t+"mánuður":t+(a?"mánuð":"mánuði");case"y":return u||a?"ár":"ári";case"yy":return r(e)?t+(u||a?"ár":"árum"):t+(u||a?"ár":"ári")}}return e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:u,m:u,mm:u,h:"klukkustund",hh:u,d:u,dd:u,M:u,MM:u,y:u,yy:u},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/it.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"Do_Lu_Ma_Me_Gi_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/ja.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,_,t){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},ordinalParse:/\d{1,2}日/,ordinal:function(e,_){switch(_){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})});
|
bp-core/js/vendor/moment-js/locale/jv.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";return e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,n){return 12===e&&(e=0),"enjing"===n?e:"siyang"===n?e>=11?e:e+12:"sonten"===n||"ndalu"===n?e+12:void 0},meridiem:function(e,n,t){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/ka.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/kk.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";var _={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var d=e%10,t=e>=100?100:null;return e+(_[e]||_[d]||_[t])},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/km.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/ko.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"일분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,_,d){return e<12?"오전":"오후"}})});
|
bp-core/js/vendor/moment-js/locale/ky.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";var _={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};return e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},ordinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var d=e%10,t=e>=100?100:null;return e+(_[e]||_[d]||_[t])},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/lb.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,t,r){var u={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return n?u[t][0]:u[t][1]}function t(e){return u(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return u(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function u(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var n=e%10,t=e/10;return u(0===n?t:n)}if(e<1e4){for(;e>=10;)e/=10;return u(e)}return e/=1e3,u(e)}return e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:t,past:r,s:"e puer Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d Méint",y:n,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/lo.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,_,t){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},ordinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})});
|
bp-core/js/vendor/moment-js/locale/lt.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?i(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],i):i(e.moment)}(this,function(e){"use strict";function i(e,i,n,a){return i?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function n(e,i,n,a){return i?s(n)[0]:a?s(n)[1]:s(n)[2]}function a(e){return e%10==0||e>10&&e<20}function s(e){return t[e].split("_")}function d(e,i,d,t){var _=e+" ";return 1===e?_+n(e,i,d[0],t):i?_+(a(e)?s(d)[1]:s(d)[0]):t?_+s(d)[1]:_+(a(e)?s(d)[1]:s(d)[2])}var t={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};return e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?|MMMM?(\[[^\[\]]*\]|\s+)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:i,m:n,mm:d,h:n,hh:d,d:n,dd:d,M:n,MM:d,y:n,yy:d},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/lv.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,s){return s?n%10==1&&n%100!=11?e[2]:e[3]:n%10==1&&n%100!=11?e[0]:e[1]}function s(e,s,t){return e+" "+n(_[t],e,s)}function t(e,s,t){return n(_[t],e,s)}function i(e,n){return n?"dažas sekundes":"dažām sekundēm"}var _={m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};return e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:i,m:t,mm:s,h:t,hh:s,d:t,dd:s,M:t,MM:s,y:t,yy:s},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/me.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";var a={words:{m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,t,n){var r=a.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+a.correctGrammaticalCase(e,r)}};return e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mjesec",MM:a.translate,y:"godinu",yy:a.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/mi.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/mk.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var _=e%10,d=e%100;return 0===e?e+"-ев":0===d?e+"-ен":d>10&&d<20?e+"-ти":1===_?e+"-ви":2===_?e+"-ри":7===_||8===_?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/ml.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,_){return 12===e&&(e=0),"രാത്രി"===_&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===_||"വൈകുന്നേരം"===_?e+12:e},meridiem:function(e,_,t){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})});
|
bp-core/js/vendor/moment-js/locale/mr.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";function a(e,a,r,s){var t="";if(a)switch(r){case"s":t="काही सेकंद";break;case"m":t="एक मिनिट";break;case"mm":t="%d मिनिटे";break;case"h":t="एक तास";break;case"hh":t="%d तास";break;case"d":t="एक दिवस";break;case"dd":t="%d दिवस";break;case"M":t="एक महिना";break;case"MM":t="%d महिने";break;case"y":t="एक वर्ष";break;case"yy":t="%d वर्षे"}else switch(r){case"s":t="काही सेकंदां";break;case"m":t="एका मिनिटा";break;case"mm":t="%d मिनिटां";break;case"h":t="एका तासा";break;case"hh":t="%d तासां";break;case"d":t="एका दिवसा";break;case"dd":t="%d दिवसां";break;case"M":t="एका महिन्या";break;case"MM":t="%d महिन्यां";break;case"y":t="एका वर्षा";break;case"yy":t="%d वर्षां"}return t.replace(/%d/i,e)}var r={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},s={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return s[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return r[e]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,a){return 12===e&&(e=0),"रात्री"===a?e<4?e:e+12:"सकाळी"===a?e:"दुपारी"===a?e>=10?e:e+12:"सायंकाळी"===a?e+12:void 0},meridiem:function(e,a,r){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/ms-my.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/ms.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,a){return 12===e&&(e=0),"pagi"===a?e:"tengahari"===a?e>=11?e:e+12:"petang"===a||"malam"===a?e+12:void 0},meridiem:function(e,a,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/my.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},_={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return _[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/nb.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/ne.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/nl.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";var a="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),t=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?n[e.month()]:a[e.month()]},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/nn.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/pa-in.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},_={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};return e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return _[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,_){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/pl.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";function t(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,i,n){var a=e+" ";switch(n){case"m":return i?"minuta":"minutę";case"mm":return a+(t(e)?"minuty":"minut");case"h":return i?"godzina":"godzinę";case"hh":return a+(t(e)?"godziny":"godzin");case"MM":return a+(t(e)?"miesiące":"miesięcy");case"yy":return a+(t(e)?"lata":"lat")}}var n="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return""===t?"("+a[e.month()]+"|"+n[e.month()]+")":/D MMMM/.test(t)?a[e.month()]:n[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/pt-br.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})});
|
bp-core/js/vendor/moment-js/locale/pt.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,d){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?d(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],d):d(e.moment)}(this,function(e){"use strict";return e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/ro.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?i(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],i):i(e.moment)}(this,function(e){"use strict";function i(e,i,t){var n={mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},a=" ";return(e%100>=20||e>=100&&e%100==0)&&(a=" de "),e+a+n[t]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:i,h:"o oră",hh:i,d:"o zi",dd:i,M:"o lună",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/ru.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";function t(e,t){var _=e.split("_");return t%10==1&&t%100!=11?_[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?_[1]:_[2]}function _(e,_,d){var s={mm:_?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===d?_?"минута":"минуту":e+" "+t(s[d],+e)}var d=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];return e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:d,longMonthsParse:d,shortMonthsParse:d,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:_,mm:_,h:"час",hh:_,d:"день",dd:_,M:"месяц",MM:_,y:"год",yy:_},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,_){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/se.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";return e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/si.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},ordinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,_,t){return e>11?t?"ප.ව.":"පස් වරු":t?"පෙ.ව.":"පෙර වරු"}})});
|
bp-core/js/vendor/moment-js/locale/sk.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";function t(e){return e>1&&e<5}function n(e,n,r,o){var s=e+" ";switch(r){case"s":return n||o?"pár sekúnd":"pár sekundami";case"m":return n?"minúta":o?"minútu":"minútou";case"mm":return n||o?s+(t(e)?"minúty":"minút"):s+"minútami";case"h":return n?"hodina":o?"hodinu":"hodinou";case"hh":return n||o?s+(t(e)?"hodiny":"hodín"):s+"hodinami";case"d":return n||o?"deň":"dňom";case"dd":return n||o?s+(t(e)?"dni":"dní"):s+"dňami";case"M":return n||o?"mesiac":"mesiacom";case"MM":return n||o?s+(t(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return n||o?"rok":"rokom";case"yy":return n||o?s+(t(e)?"roky":"rokov"):s+"rokmi"}}var r="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),o="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return e.defineLocale("sk",{months:r,monthsShort:o,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/sl.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,t,a){var r=e+" ";switch(t){case"s":return n||a?"nekaj sekund":"nekaj sekundami";case"m":return n?"ena minuta":"eno minuto";case"mm":return r+=1===e?n?"minuta":"minuto":2===e?n||a?"minuti":"minutama":e<5?n||a?"minute":"minutami":n||a?"minut":"minutami";case"h":return n?"ena ura":"eno uro";case"hh":return r+=1===e?n?"ura":"uro":2===e?n||a?"uri":"urama":e<5?n||a?"ure":"urami":n||a?"ur":"urami";case"d":return n||a?"en dan":"enim dnem";case"dd":return r+=1===e?n||a?"dan":"dnem":2===e?n||a?"dni":"dnevoma":n||a?"dni":"dnevi";case"M":return n||a?"en mesec":"enim mesecem";case"MM":return r+=1===e?n||a?"mesec":"mesecem":2===e?n||a?"meseca":"mesecema":e<5?n||a?"mesece":"meseci":n||a?"mesecev":"meseci";case"y":return n||a?"eno leto":"enim letom";case"yy":return r+=1===e?n||a?"leto":"letom":2===e?n||a?"leti":"letoma":e<5?n||a?"leta":"leti":n||a?"let":"leti"}}return e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/sq.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";return e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/sr-cyrl.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,a,r){var s=t.words[r];return 1===r.length?a?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};return e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/sr.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";var a={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,a){return 1===e?a[0]:e>=2&&e<=4?a[1]:a[2]},translate:function(e,t,n){var r=a.words[n];return 1===n.length?t?r[0]:r[1]:e+" "+a.correctGrammaticalCase(e,r)}};return e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:a.translate,mm:a.translate,h:a.translate,hh:a.translate,d:"dan",dd:a.translate,M:"mesec",MM:a.translate,y:"godinu",yy:a.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/ss.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(e.moment)}(this,function(e){"use strict";return e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,n,a){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,n){return 12===e&&(e=0),"ekuseni"===n?e:"emini"===n?e>=11?e:e+12:"entsambama"===n||"ebusuku"===n?0===e?0:e+12:void 0},ordinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/sv.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,d){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?d(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],d):d(e.moment)}(this,function(e){"use strict";return e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var d=e%10;return e+(1==~~(e%100/10)?"e":1===d?"a":2===d?"a":"e")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/sw.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a,
|
1 |
+
!function(a,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],e):e(a.moment)}(this,function(a){"use strict";return a.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/ta.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/te.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},ordinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,_){return 12===e&&(e=0),"రాత్రి"===_?e<4?e:e+12:"ఉదయం"===_?e:"మధ్యాహ్నం"===_?e>=10?e:e+12:"సాయంత్రం"===_?e+12:void 0},meridiem:function(e,_,d){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})});
|
bp-core/js/vendor/moment-js/locale/th.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,_,t){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})});
|
bp-core/js/vendor/moment-js/locale/tl-ph.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";return e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/tlh.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a,
|
1 |
+
!function(a,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],e):e(a.moment)}(this,function(a){"use strict";function e(a){var e=a;return e=-1!==a.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==a.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==a.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"}function j(a){var e=a;return e=-1!==a.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==a.indexOf("jar")?e.slice(0,-3)+"wen":-1!==a.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"}function r(a,e,j,r){var n=t(a);switch(j){case"mm":return n+" tup";case"hh":return n+" rep";case"dd":return n+" jaj";case"MM":return n+" jar";case"yy":return n+" DIS"}}function t(a){var e=Math.floor(a%1e3/100),j=Math.floor(a%100/10),r=a%10,t="";return e>0&&(t+=n[e]+"vatlh"),j>0&&(t+=(""!==t?" ":"")+n[j]+"maH"),r>0&&(t+=(""!==t?" ":"")+n[r]),""===t?"pagh":t}var n="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");return a.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:e,past:j,s:"puS lup",m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/tr.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a,
|
1 |
+
!function(a,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],n):n(a.moment)}(this,function(a){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return a.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(a){if(0===a)return a+"'ıncı";var e=a%10,i=a%100-e,t=a>=100?100:null;return a+(n[e]||n[i]||n[t])},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/tzl.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a
|
1 |
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?a(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],a):a(e.moment)}(this,function(e){"use strict";function a(e,a,i,s){var n={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return s?n[i][0]:a?n[i][0]:n[i][1]}return e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,a,i){return e>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/tzm-latn.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a,
|
1 |
+
!function(a,s){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?s(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],s):s(a.moment)}(this,function(a){"use strict";return a.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/tzm.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})});
|
bp-core/js/vendor/moment-js/locale/uk.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";function _(e,_){var t=e.split("_");return _%10==1&&_%100!=11?t[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?t[1]:t[2]}function t(e,t,n){var s={mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+_(s[n],+e)}function n(e,_){return{nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(_)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(_)?"genitive":"nominative"][e.day()]}function s(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:n,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:s("[Сьогодні "),nextDay:s("[Завтра "),lastDay:s("[Вчора "),nextWeek:s("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return s("[Минулої] dddd [").call(this);case 1:case 2:case 4:return s("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,_,t){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,_){switch(_){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/uz.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],_):_(e.moment)}(this,function(e){"use strict";return e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})});
|
bp-core/js/vendor/moment-js/locale/vi.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],e):e(t.moment)}(this,function(t){"use strict";return t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/x-pseudo.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(t,d){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?d(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],d):d(t.moment)}(this,function(t){"use strict";return t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var d=t%10;return t+(1==~~(t%100/10)?"th":1===d?"st":2===d?"nd":3===d?"rd":"th")},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/zh-cn.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";return e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm分",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah点mm分",LLLL:"YYYY年MMMD日ddddAh点mm分",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah点mm分",llll:"YYYY年MMMD日ddddAh点mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.diff(t,"days")>=7?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()<t.unix()?"[上]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})});
|
bp-core/js/vendor/moment-js/locale/zh-hk.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";return e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,d){var _=100*e+t;return _<600?"凌晨":_<900?"早上":_<1130?"上午":_<1230?"中午":_<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})});
|
bp-core/js/vendor/moment-js/locale/zh-tw.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";return e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm分",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日Ah點mm分",LLLL:"YYYY年MMMD日ddddAh點mm分",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日Ah點mm分",llll:"YYYY年MMMD日ddddAh點mm分"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,d){var _=100*e+t;return _<600?"凌晨":_<900?"早上":_<1130?"上午":_<1230?"中午":_<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})});
|
bp-core/js/vendor/moment-js/moment.min.js
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return md.apply(null,arguments)}function b(a){md=a}function c(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function d(a){return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function e(a){var b;for(b in a)return!1;return!0}function f(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function g(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function h(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function i(a,b){for(var c in b)h(b,c)&&(a[c]=b[c]);return h(b,"toString")&&(a.toString=b.toString),h(b,"valueOf")&&(a.valueOf=b.valueOf),a}function j(a,b,c,d){return qb(a,b,c,d,!0).utc()}function k(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function l(a){return null==a._pf&&(a._pf=k()),a._pf}function m(a){if(null==a._isValid){var b=l(a),c=nd.call(b.parsedDateParts,function(a){return null!=a}),d=!isNaN(a._d.getTime())&&b.overflow<0&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&c);if(a._strict&&(d=d&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour),null!=Object.isFrozen&&Object.isFrozen(a))return d;a._isValid=d}return a._isValid}function n(a){var b=j(NaN);return null!=a?i(l(b),a):l(b).userInvalidated=!0,b}function o(a){return void 0===a}function p(a,b){var c,d,e;if(o(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),o(b._i)||(a._i=b._i),o(b._f)||(a._f=b._f),o(b._l)||(a._l=b._l),o(b._strict)||(a._strict=b._strict),o(b._tzm)||(a._tzm=b._tzm),o(b._isUTC)||(a._isUTC=b._isUTC),o(b._offset)||(a._offset=b._offset),o(b._pf)||(a._pf=l(b)),o(b._locale)||(a._locale=b._locale),od.length>0)for(c in od)d=od[c],e=b[d],o(e)||(a[d]=e);return a}function q(b){p(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN),pd===!1&&(pd=!0,a.updateOffset(this),pd=!1)}function r(a){return a instanceof q||null!=a&&null!=a._isAMomentObject}function s(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function t(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=s(b)),c}function u(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;d<e;d++)(c&&a[d]!==b[d]||!c&&t(a[d])!==t(b[d]))&&g++;return g+f}function v(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function w(b,c){var d=!0;return i(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,b),d){for(var e,f=[],g=0;g<arguments.length;g++){if(e="","object"==typeof arguments[g]){e+="\n["+g+"] ";for(var h in arguments[0])e+=h+": "+arguments[0][h]+", ";e=e.slice(0,-2)}else e=arguments[g];f.push(e)}v(b+"\nArguments: "+Array.prototype.slice.call(f).join("")+"\n"+(new Error).stack),d=!1}return c.apply(this,arguments)},c)}function x(b,c){null!=a.deprecationHandler&&a.deprecationHandler(b,c),qd[b]||(v(c),qd[b]=!0)}function y(a){return a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function z(a){var b,c;for(c in a)b=a[c],y(b)?this[c]=b:this["_"+c]=b;this._config=a,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function A(a,b){var c,e=i({},a);for(c in b)h(b,c)&&(d(a[c])&&d(b[c])?(e[c]={},i(e[c],a[c]),i(e[c],b[c])):null!=b[c]?e[c]=b[c]:delete e[c]);for(c in a)h(a,c)&&!h(b,c)&&d(a[c])&&(e[c]=i({},e[c]));return e}function B(a){null!=a&&this.set(a)}function C(a,b,c){var d=this._calendar[a]||this._calendar.sameElse;return y(d)?d.call(b,c):d}function D(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function E(){return this._invalidDate}function F(a){return this._ordinal.replace("%d",a)}function G(a,b,c,d){var e=this._relativeTime[c];return y(e)?e(a,b,c,d):e.replace(/%d/i,a)}function H(a,b){var c=this._relativeTime[a>0?"future":"past"];return y(c)?c(b):c.replace(/%s/i,b)}function I(a,b){var c=a.toLowerCase();zd[c]=zd[c+"s"]=zd[b]=a}function J(a){return"string"==typeof a?zd[a]||zd[a.toLowerCase()]:void 0}function K(a){var b,c,d={};for(c in a)h(a,c)&&(b=J(c),b&&(d[b]=a[c]));return d}function L(a,b){Ad[a]=b}function M(a){var b=[];for(var c in a)b.push({unit:c,priority:Ad[c]});return b.sort(function(a,b){return a.priority-b.priority}),b}function N(b,c){return function(d){return null!=d?(P(this,b,d),a.updateOffset(this,c),this):O(this,b)}}function O(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():NaN}function P(a,b,c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)}function Q(a){return a=J(a),y(this[a])?this[a]():this}function R(a,b){if("object"==typeof a){a=K(a);for(var c=M(a),d=0;d<c.length;d++)this[c[d].unit](a[c[d].unit])}else if(a=J(a),y(this[a]))return this[a](b);return this}function S(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}function T(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Ed[a]=e),b&&(Ed[b[0]]=function(){return S(e.apply(this,arguments),b[1],b[2])}),c&&(Ed[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function U(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function V(a){var b,c,d=a.match(Bd);for(b=0,c=d.length;b<c;b++)Ed[d[b]]?d[b]=Ed[d[b]]:d[b]=U(d[b]);return function(b){var e,f="";for(e=0;e<c;e++)f+=d[e]instanceof Function?d[e].call(b,a):d[e];return f}}function W(a,b){return a.isValid()?(b=X(b,a.localeData()),Dd[b]=Dd[b]||V(b),Dd[b](a)):a.localeData().invalidDate()}function X(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Cd.lastIndex=0;d>=0&&Cd.test(a);)a=a.replace(Cd,c),Cd.lastIndex=0,d-=1;return a}function Y(a,b,c){Wd[a]=y(b)?b:function(a,d){return a&&c?c:b}}function Z(a,b){return h(Wd,a)?Wd[a](b._strict,b._locale):new RegExp($(a))}function $(a){return _(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function _(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function aa(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),"number"==typeof b&&(d=function(a,c){c[b]=t(a)}),c=0;c<a.length;c++)Xd[a[c]]=d}function ba(a,b){aa(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function ca(a,b,c){null!=b&&h(Xd,a)&&Xd[a](b,c._a,c,a)}function da(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function ea(a,b){return a?c(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||fe).test(b)?"format":"standalone"][a.month()]:this._months}function fa(a,b){return a?c(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[fe.test(b)?"format":"standalone"][a.month()]:this._monthsShort}function ga(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;d<12;++d)f=j([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[d]=this.months(f,"").toLocaleLowerCase();return c?"MMM"===b?(e=sd.call(this._shortMonthsParse,g),e!==-1?e:null):(e=sd.call(this._longMonthsParse,g),e!==-1?e:null):"MMM"===b?(e=sd.call(this._shortMonthsParse,g),e!==-1?e:(e=sd.call(this._longMonthsParse,g),e!==-1?e:null)):(e=sd.call(this._longMonthsParse,g),e!==-1?e:(e=sd.call(this._shortMonthsParse,g),e!==-1?e:null))}function ha(a,b,c){var d,e,f;if(this._monthsParseExact)return ga.call(this,a,b,c);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;d<12;d++){if(e=j([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}function ia(a,b){var c;if(!a.isValid())return a;if("string"==typeof b)if(/^\d+$/.test(b))b=t(b);else if(b=a.localeData().monthsParse(b),"number"!=typeof b)return a;return c=Math.min(a.date(),da(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a}function ja(b){return null!=b?(ia(this,b),a.updateOffset(this,!0),this):O(this,"Month")}function ka(){return da(this.year(),this.month())}function la(a){return this._monthsParseExact?(h(this,"_monthsRegex")||na.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function ma(a){return this._monthsParseExact?(h(this,"_monthsRegex")||na.call(this),a?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function na(){function a(a,b){return b.length-a.length}var b,c,d=[],e=[],f=[];for(b=0;b<12;b++)c=j([2e3,b]),d.push(this.monthsShort(c,"")),e.push(this.months(c,"")),f.push(this.months(c,"")),f.push(this.monthsShort(c,""));for(d.sort(a),e.sort(a),f.sort(a),b=0;b<12;b++)d[b]=_(d[b]),e[b]=_(e[b]);for(b=0;b<24;b++)f[b]=_(f[b]);this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}function oa(a){return pa(a)?366:365}function pa(a){return a%4===0&&a%100!==0||a%400===0}function qa(){return pa(this.year())}function ra(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return a<100&&a>=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function sa(a){var b=new Date(Date.UTC.apply(null,arguments));return a<100&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}function ta(a,b,c){var d=7+b-c,e=(7+sa(a,0,d).getUTCDay()-b)%7;return-e+d-1}function ua(a,b,c,d,e){var f,g,h=(7+c-d)%7,i=ta(a,d,e),j=1+7*(b-1)+h+i;return j<=0?(f=a-1,g=oa(f)+j):j>oa(a)?(f=a+1,g=j-oa(a)):(f=a,g=j),{year:f,dayOfYear:g}}function va(a,b,c){var d,e,f=ta(a.year(),b,c),g=Math.floor((a.dayOfYear()-f-1)/7)+1;return g<1?(e=a.year()-1,d=g+wa(e,b,c)):g>wa(a.year(),b,c)?(d=g-wa(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function wa(a,b,c){var d=ta(a,b,c),e=ta(a+1,b,c);return(oa(a)-d+e)/7}function xa(a){return va(a,this._week.dow,this._week.doy).week}function ya(){return this._week.dow}function za(){return this._week.doy}function Aa(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function Ba(a){var b=va(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}function Ca(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Da(a,b){return"string"==typeof a?b.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Ea(a,b){return a?c(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]:this._weekdays}function Fa(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort}function Ga(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin}function Ha(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)f=j([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(f,"").toLocaleLowerCase();return c?"dddd"===b?(e=sd.call(this._weekdaysParse,g),e!==-1?e:null):"ddd"===b?(e=sd.call(this._shortWeekdaysParse,g),e!==-1?e:null):(e=sd.call(this._minWeekdaysParse,g),e!==-1?e:null):"dddd"===b?(e=sd.call(this._weekdaysParse,g),e!==-1?e:(e=sd.call(this._shortWeekdaysParse,g),e!==-1?e:(e=sd.call(this._minWeekdaysParse,g),e!==-1?e:null))):"ddd"===b?(e=sd.call(this._shortWeekdaysParse,g),e!==-1?e:(e=sd.call(this._weekdaysParse,g),e!==-1?e:(e=sd.call(this._minWeekdaysParse,g),e!==-1?e:null))):(e=sd.call(this._minWeekdaysParse,g),e!==-1?e:(e=sd.call(this._weekdaysParse,g),e!==-1?e:(e=sd.call(this._shortWeekdaysParse,g),e!==-1?e:null)))}function Ia(a,b,c){var d,e,f;if(this._weekdaysParseExact)return Ha.call(this,a,b,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){if(e=j([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))return d;if(c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a))return d;if(c&&"dd"===b&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}}function Ja(a){if(!this.isValid())return null!=a?this:NaN;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Ca(a,this.localeData()),this.add(a-b,"d")):b}function Ka(a){if(!this.isValid())return null!=a?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function La(a){if(!this.isValid())return null!=a?this:NaN;if(null!=a){var b=Da(a,this.localeData());return this.day(this.day()%7?b:b-7)}return this.day()||7}function Ma(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=pe),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function Na(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Oa(a){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Pa.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=re),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Pa(){function a(a,b){return b.length-a.length}var b,c,d,e,f,g=[],h=[],i=[],k=[];for(b=0;b<7;b++)c=j([2e3,1]).day(b),d=this.weekdaysMin(c,""),e=this.weekdaysShort(c,""),f=this.weekdays(c,""),g.push(d),h.push(e),i.push(f),k.push(d),k.push(e),k.push(f);for(g.sort(a),h.sort(a),i.sort(a),k.sort(a),b=0;b<7;b++)h[b]=_(h[b]),i[b]=_(i[b]),k[b]=_(k[b]);this._weekdaysRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Qa(){return this.hours()%12||12}function Ra(){return this.hours()||24}function Sa(a,b){T(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function Ta(a,b){return b._meridiemParse}function Ua(a){return"p"===(a+"").toLowerCase().charAt(0)}function Va(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Wa(a){return a?a.toLowerCase().replace("_","-"):a}function Xa(a){for(var b,c,d,e,f=0;f<a.length;){for(e=Wa(a[f]).split("-"),b=e.length,c=Wa(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=Ya(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&u(e,c,!0)>=b-1)break;b--}f++}return null}function Ya(a){var b=null;if(!we[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=se._abbr,require("./locale/"+a),Za(b)}catch(a){}return we[a]}function Za(a,b){var c;return a&&(c=o(b)?ab(a):$a(a,b),c&&(se=c)),se._abbr}function $a(a,b){if(null!==b){var c=ve;return b.abbr=a,null!=we[a]?(x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=we[a]._config):null!=b.parentLocale&&(null!=we[b.parentLocale]?c=we[b.parentLocale]._config:x("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),we[a]=new B(A(c,b)),Za(a),we[a]}return delete we[a],null}function _a(a,b){if(null!=b){var c,d=ve;null!=we[a]&&(d=we[a]._config),b=A(d,b),c=new B(b),c.parentLocale=we[a],we[a]=c,Za(a)}else null!=we[a]&&(null!=we[a].parentLocale?we[a]=we[a].parentLocale:null!=we[a]&&delete we[a]);return we[a]}function ab(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return se;if(!c(a)){if(b=Ya(a))return b;a=[a]}return Xa(a)}function bb(){return rd(we)}function cb(a){var b,c=a._a;return c&&l(a).overflow===-2&&(b=c[Zd]<0||c[Zd]>11?Zd:c[$d]<1||c[$d]>da(c[Yd],c[Zd])?$d:c[_d]<0||c[_d]>24||24===c[_d]&&(0!==c[ae]||0!==c[be]||0!==c[ce])?_d:c[ae]<0||c[ae]>59?ae:c[be]<0||c[be]>59?be:c[ce]<0||c[ce]>999?ce:-1,l(a)._overflowDayOfYear&&(b<Yd||b>$d)&&(b=$d),l(a)._overflowWeeks&&b===-1&&(b=de),l(a)._overflowWeekday&&b===-1&&(b=ee),l(a).overflow=b),a}function db(a){var b,c,d,e,f,g,h=a._i,i=xe.exec(h)||ye.exec(h);if(i){for(l(a).iso=!0,b=0,c=Ae.length;b<c;b++)if(Ae[b][1].exec(i[1])){e=Ae[b][0],d=Ae[b][2]!==!1;break}if(null==e)return void(a._isValid=!1);if(i[3]){for(b=0,c=Be.length;b<c;b++)if(Be[b][1].exec(i[3])){f=(i[2]||" ")+Be[b][0];break}if(null==f)return void(a._isValid=!1)}if(!d&&null!=f)return void(a._isValid=!1);if(i[4]){if(!ze.exec(i[4]))return void(a._isValid=!1);g="Z"}a._f=e+(f||"")+(g||""),jb(a)}else a._isValid=!1}function eb(b){var c=Ce.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(db(b),void(b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b))))}function fb(a,b,c){return null!=a?a:null!=b?b:c}function gb(b){var c=new Date(a.now());return b._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function hb(a){var b,c,d,e,f=[];if(!a._d){for(d=gb(a),a._w&&null==a._a[$d]&&null==a._a[Zd]&&ib(a),a._dayOfYear&&(e=fb(a._a[Yd],d[Yd]),a._dayOfYear>oa(e)&&(l(a)._overflowDayOfYear=!0),c=sa(e,0,a._dayOfYear),a._a[Zd]=c.getUTCMonth(),a._a[$d]=c.getUTCDate()),b=0;b<3&&null==a._a[b];++b)a._a[b]=f[b]=d[b];for(;b<7;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[_d]&&0===a._a[ae]&&0===a._a[be]&&0===a._a[ce]&&(a._nextDay=!0,a._a[_d]=0),a._d=(a._useUTC?sa:ra).apply(null,f),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[_d]=24)}}function ib(a){var b,c,d,e,f,g,h,i;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4,c=fb(b.GG,a._a[Yd],va(rb(),1,4).year),d=fb(b.W,1),e=fb(b.E,1),(e<1||e>7)&&(i=!0)):(f=a._locale._week.dow,g=a._locale._week.doy,c=fb(b.gg,a._a[Yd],va(rb(),f,g).year),d=fb(b.w,1),null!=b.d?(e=b.d,(e<0||e>6)&&(i=!0)):null!=b.e?(e=b.e+f,(b.e<0||b.e>6)&&(i=!0)):e=f),d<1||d>wa(c,f,g)?l(a)._overflowWeeks=!0:null!=i?l(a)._overflowWeekday=!0:(h=ua(c,d,e,f,g),a._a[Yd]=h.year,a._dayOfYear=h.dayOfYear)}function jb(b){if(b._f===a.ISO_8601)return void db(b);b._a=[],l(b).empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=X(b._f,b._locale).match(Bd)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(Z(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&l(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),Ed[f]?(d?l(b).empty=!1:l(b).unusedTokens.push(f),ca(f,d,b)):b._strict&&!d&&l(b).unusedTokens.push(f);l(b).charsLeftOver=i-j,h.length>0&&l(b).unusedInput.push(h),b._a[_d]<=12&&l(b).bigHour===!0&&b._a[_d]>0&&(l(b).bigHour=void 0),l(b).parsedDateParts=b._a.slice(0),l(b).meridiem=b._meridiem,b._a[_d]=kb(b._locale,b._a[_d],b._meridiem),hb(b),cb(b)}function kb(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&b<12&&(b+=12),d||12!==b||(b=0),b):b}function lb(a){var b,c,d,e,f;if(0===a._f.length)return l(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e<a._f.length;e++)f=0,b=p({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],jb(b),m(b)&&(f+=l(b).charsLeftOver,f+=10*l(b).unusedTokens.length,l(b).score=f,(null==d||f<d)&&(d=f,c=b));i(a,c||b)}function mb(a){if(!a._d){var b=K(a._i);a._a=g([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)}),hb(a)}}function nb(a){var b=new q(cb(ob(a)));return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function ob(a){var b=a._i,d=a._f;return a._locale=a._locale||ab(a._l),null===b||void 0===d&&""===b?n({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),r(b)?new q(cb(b)):(c(d)?lb(a):f(b)?a._d=b:d?jb(a):pb(a),m(a)||(a._d=null),a))}function pb(b){var d=b._i;void 0===d?b._d=new Date(a.now()):f(d)?b._d=new Date(d.valueOf()):"string"==typeof d?eb(b):c(d)?(b._a=g(d.slice(0),function(a){return parseInt(a,10)}),hb(b)):"object"==typeof d?mb(b):"number"==typeof d?b._d=new Date(d):a.createFromInputFallback(b)}function qb(a,b,f,g,h){var i={};return"boolean"==typeof f&&(g=f,f=void 0),(d(a)&&e(a)||c(a)&&0===a.length)&&(a=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=h,i._l=f,i._i=a,i._f=b,i._strict=g,nb(i)}function rb(a,b,c,d){return qb(a,b,c,d,!1)}function sb(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return rb();for(d=b[0],e=1;e<b.length;++e)b[e].isValid()&&!b[e][a](d)||(d=b[e]);return d}function tb(){var a=[].slice.call(arguments,0);return sb("isBefore",a)}function ub(){var a=[].slice.call(arguments,0);return sb("isAfter",a)}function vb(a){var b=K(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+1e3*h*60*60,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=ab(),this._bubble()}function wb(a){return a instanceof vb}function xb(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}function yb(a,b){T(a,0,0,function(){var a=this.utcOffset(),c="+";return a<0&&(a=-a,c="-"),c+S(~~(a/60),2)+b+S(~~a%60,2)})}function zb(a,b){var c=(b||"").match(a)||[],d=c[c.length-1]||[],e=(d+"").match(Ge)||["-",0,0],f=+(60*e[1])+t(e[2]);return"+"===e[0]?f:-f}function Ab(b,c){var d,e;return c._isUTC?(d=c.clone(),e=(r(b)||f(b)?b.valueOf():rb(b).valueOf())-d.valueOf(),d._d.setTime(d._d.valueOf()+e),a.updateOffset(d,!1),d):rb(b).local()}function Bb(a){return 15*-Math.round(a._d.getTimezoneOffset()/15)}function Cb(b,c){var d,e=this._offset||0;return this.isValid()?null!=b?("string"==typeof b?b=zb(Td,b):Math.abs(b)<16&&(b=60*b),!this._isUTC&&c&&(d=Bb(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?Sb(this,Nb(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?e:Bb(this):null!=b?this:NaN}function Db(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Eb(a){return this.utcOffset(0,a)}function Fb(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Bb(this),"m")),this}function Gb(){if(this._tzm)this.utcOffset(this._tzm);else if("string"==typeof this._i){var a=zb(Sd,this._i);0===a?this.utcOffset(0,!0):this.utcOffset(zb(Sd,this._i))}return this}function Hb(a){return!!this.isValid()&&(a=a?rb(a).utcOffset():0,(this.utcOffset()-a)%60===0)}function Ib(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Jb(){if(!o(this._isDSTShifted))return this._isDSTShifted;var a={};if(p(a,this),a=ob(a),a._a){var b=a._isUTC?j(a._a):rb(a._a);this._isDSTShifted=this.isValid()&&u(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Kb(){return!!this.isValid()&&!this._isUTC}function Lb(){return!!this.isValid()&&this._isUTC}function Mb(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Nb(a,b){var c,d,e,f=a,g=null;return wb(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(f={},b?f[b]=a:f.milliseconds=a):(g=He.exec(a))?(c="-"===g[1]?-1:1,f={y:0,d:t(g[$d])*c,h:t(g[_d])*c,m:t(g[ae])*c,s:t(g[be])*c,ms:t(xb(1e3*g[ce]))*c}):(g=Ie.exec(a))?(c="-"===g[1]?-1:1,f={y:Ob(g[2],c),M:Ob(g[3],c),w:Ob(g[4],c),d:Ob(g[5],c),h:Ob(g[6],c),m:Ob(g[7],c),s:Ob(g[8],c)}):null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(e=Qb(rb(f.from),rb(f.to)),f={},f.ms=e.milliseconds,f.M=e.months),d=new vb(f),wb(a)&&h(a,"_locale")&&(d._locale=a._locale),d}function Ob(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function Pb(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function Qb(a,b){var c;return a.isValid()&&b.isValid()?(b=Ab(b,a),a.isBefore(b)?c=Pb(a,b):(c=Pb(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function Rb(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(x(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Nb(c,d),Sb(this,e,a),this}}function Sb(b,c,d,e){var f=c._milliseconds,g=xb(c._days),h=xb(c._months);b.isValid()&&(e=null==e||e,f&&b._d.setTime(b._d.valueOf()+f*d),g&&P(b,"Date",O(b,"Date")+g*d),h&&ia(b,O(b,"Month")+h*d),e&&a.updateOffset(b,g||h))}function Tb(a,b){var c=a.diff(b,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function Ub(b,c){var d=b||rb(),e=Ab(d,this).startOf("day"),f=a.calendarFormat(this,e)||"sameElse",g=c&&(y(c[f])?c[f].call(this,d):c[f]);return this.format(g||this.localeData().calendar(f,this,rb(d)))}function Vb(){return new q(this)}function Wb(a,b){var c=r(a)?a:rb(a);return!(!this.isValid()||!c.isValid())&&(b=J(o(b)?"millisecond":b),"millisecond"===b?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(b).valueOf())}function Xb(a,b){var c=r(a)?a:rb(a);return!(!this.isValid()||!c.isValid())&&(b=J(o(b)?"millisecond":b),"millisecond"===b?this.valueOf()<c.valueOf():this.clone().endOf(b).valueOf()<c.valueOf())}function Yb(a,b,c,d){return d=d||"()",("("===d[0]?this.isAfter(a,c):!this.isBefore(a,c))&&(")"===d[1]?this.isBefore(b,c):!this.isAfter(b,c))}function Zb(a,b){var c,d=r(a)?a:rb(a);return!(!this.isValid()||!d.isValid())&&(b=J(b||"millisecond"),"millisecond"===b?this.valueOf()===d.valueOf():(c=d.valueOf(),this.clone().startOf(b).valueOf()<=c&&c<=this.clone().endOf(b).valueOf()))}function $b(a,b){return this.isSame(a,b)||this.isAfter(a,b)}function _b(a,b){return this.isSame(a,b)||this.isBefore(a,b)}function ac(a,b,c){var d,e,f,g;return this.isValid()?(d=Ab(a,this),d.isValid()?(e=6e4*(d.utcOffset()-this.utcOffset()),b=J(b),"year"===b||"month"===b||"quarter"===b?(g=bc(this,d),"quarter"===b?g/=3:"year"===b&&(g/=12)):(f=this-d,g="second"===b?f/1e3:"minute"===b?f/6e4:"hour"===b?f/36e5:"day"===b?(f-e)/864e5:"week"===b?(f-e)/6048e5:f),c?g:s(g)):NaN):NaN}function bc(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return b-f<0?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)||0}function cc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dc(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?y(Date.prototype.toISOString)?this.toDate().toISOString():W(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):W(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ec(b){b||(b=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var c=W(this,b);return this.localeData().postformat(c)}function fc(a,b){return this.isValid()&&(r(a)&&a.isValid()||rb(a).isValid())?Nb({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function gc(a){return this.from(rb(),a)}function hc(a,b){return this.isValid()&&(r(a)&&a.isValid()||rb(a).isValid())?Nb({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function ic(a){return this.to(rb(),a)}function jc(a){var b;return void 0===a?this._locale._abbr:(b=ab(a),null!=b&&(this._locale=b),this)}function kc(){return this._locale}function lc(a){switch(a=J(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function mc(a){return a=J(a),void 0===a||"millisecond"===a?this:("date"===a&&(a="day"),this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms"))}function nc(){return this._d.valueOf()-6e4*(this._offset||0)}function oc(){return Math.floor(this.valueOf()/1e3)}function pc(){return new Date(this.valueOf())}function qc(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function rc(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function sc(){return this.isValid()?this.toISOString():null}function tc(){return m(this)}function uc(){return i({},l(this))}function vc(){return l(this).overflow}function wc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xc(a,b){T(0,[a,a.length],0,b)}function yc(a){return Cc.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zc(a){return Cc.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function Ac(){return wa(this.year(),1,4)}function Bc(){var a=this.localeData()._week;return wa(this.year(),a.dow,a.doy)}function Cc(a,b,c,d,e){var f;return null==a?va(this,d,e).year:(f=wa(a,d,e),b>f&&(b=f),Dc.call(this,a,b,c,d,e))}function Dc(a,b,c,d,e){var f=ua(a,b,c,d,e),g=sa(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}function Ec(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}function Fc(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function Gc(a,b){b[ce]=t(1e3*("0."+a))}function Hc(){return this._isUTC?"UTC":""}function Ic(){return this._isUTC?"Coordinated Universal Time":""}function Jc(a){return rb(1e3*a)}function Kc(){return rb.apply(null,arguments).parseZone()}function Lc(a){return a}function Mc(a,b,c,d){var e=ab(),f=j().set(d,b);return e[c](f,a)}function Nc(a,b,c){if("number"==typeof a&&(b=a,a=void 0),a=a||"",null!=b)return Mc(a,b,c,"month");var d,e=[];for(d=0;d<12;d++)e[d]=Mc(a,d,c,"month");return e}function Oc(a,b,c,d){"boolean"==typeof a?("number"==typeof b&&(c=b,b=void 0),b=b||""):(b=a,c=b,a=!1,"number"==typeof b&&(c=b,b=void 0),b=b||"");var e=ab(),f=a?e._week.dow:0;if(null!=c)return Mc(b,(c+f)%7,d,"day");var g,h=[];for(g=0;g<7;g++)h[g]=Mc(b,(g+f)%7,d,"day");return h}function Pc(a,b){return Nc(a,b,"months")}function Qc(a,b){return Nc(a,b,"monthsShort")}function Rc(a,b,c){return Oc(a,b,c,"weekdays")}function Sc(a,b,c){return Oc(a,b,c,"weekdaysShort")}function Tc(a,b,c){return Oc(a,b,c,"weekdaysMin");
|
2 |
-
}function Uc(){var a=this._data;return this._milliseconds=Ue(this._milliseconds),this._days=Ue(this._days),this._months=Ue(this._months),a.milliseconds=Ue(a.milliseconds),a.seconds=Ue(a.seconds),a.minutes=Ue(a.minutes),a.hours=Ue(a.hours),a.months=Ue(a.months),a.years=Ue(a.years),this}function Vc(a,b,c,d){var e=Nb(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function Wc(a,b){return Vc(this,a,b,1)}function Xc(a,b){return Vc(this,a,b,-1)}function Yc(a){return a<0?Math.floor(a):Math.ceil(a)}function Zc(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;return f>=0&&g>=0&&h>=0||f<=0&&g<=0&&h<=0||(f+=864e5*Yc(_c(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=s(f/1e3),i.seconds=a%60,b=s(a/60),i.minutes=b%60,c=s(b/60),i.hours=c%24,g+=s(c/24),e=s($c(g)),h+=e,g-=Yc(_c(e)),d=s(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function $c(a){return 4800*a/146097}function _c(a){return 146097*a/4800}function ad(a){var b,c,d=this._milliseconds;if(a=J(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+$c(b),"month"===a?c:c/12;switch(b=this._days+Math.round(_c(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}function bd(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*t(this._months/12)}function cd(a){return function(){return this.as(a)}}function dd(a){return a=J(a),this[a+"s"]()}function ed(a){return function(){return this._data[a]}}function fd(){return s(this.days()/7)}function gd(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function hd(a,b,c){var d=Nb(a).abs(),e=jf(d.as("s")),f=jf(d.as("m")),g=jf(d.as("h")),h=jf(d.as("d")),i=jf(d.as("M")),j=jf(d.as("y")),k=e<kf.s&&["s",e]||f<=1&&["m"]||f<kf.m&&["mm",f]||g<=1&&["h"]||g<kf.h&&["hh",g]||h<=1&&["d"]||h<kf.d&&["dd",h]||i<=1&&["M"]||i<kf.M&&["MM",i]||j<=1&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,gd.apply(null,k)}function id(a){return void 0===a?jf:"function"==typeof a&&(jf=a,!0)}function jd(a,b){return void 0!==kf[a]&&(void 0===b?kf[a]:(kf[a]=b,!0))}function kd(a){var b=this.localeData(),c=hd(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function ld(){var a,b,c,d=lf(this._milliseconds)/1e3,e=lf(this._days),f=lf(this._months);a=s(d/60),b=s(a/60),d%=60,a%=60,c=s(f/12),f%=12;var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(m<0?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var md,nd;nd=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;d<c;d++)if(d in b&&a.call(this,b[d],d,b))return!0;return!1};var od=a.momentProperties=[],pd=!1,qd={};a.suppressDeprecationWarnings=!1,a.deprecationHandler=null;var rd;rd=Object.keys?Object.keys:function(a){var b,c=[];for(b in a)h(a,b)&&c.push(b);return c};var sd,td={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ud={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},vd="Invalid date",wd="%d",xd=/\d{1,2}/,yd={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},zd={},Ad={},Bd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Cd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Dd={},Ed={},Fd=/\d/,Gd=/\d\d/,Hd=/\d{3}/,Id=/\d{4}/,Jd=/[+-]?\d{6}/,Kd=/\d\d?/,Ld=/\d\d\d\d?/,Md=/\d\d\d\d\d\d?/,Nd=/\d{1,3}/,Od=/\d{1,4}/,Pd=/[+-]?\d{1,6}/,Qd=/\d+/,Rd=/[+-]?\d+/,Sd=/Z|[+-]\d\d:?\d\d/gi,Td=/Z|[+-]\d\d(?::?\d\d)?/gi,Ud=/[+-]?\d+(\.\d{1,3})?/,Vd=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Wd={},Xd={},Yd=0,Zd=1,$d=2,_d=3,ae=4,be=5,ce=6,de=7,ee=8;sd=Array.prototype.indexOf?Array.prototype.indexOf:function(a){var b;for(b=0;b<this.length;++b)if(this[b]===a)return b;return-1},T("M",["MM",2],"Mo",function(){return this.month()+1}),T("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),T("MMMM",0,0,function(a){return this.localeData().months(this,a)}),I("month","M"),L("month",8),Y("M",Kd),Y("MM",Kd,Gd),Y("MMM",function(a,b){return b.monthsShortRegex(a)}),Y("MMMM",function(a,b){return b.monthsRegex(a)}),aa(["M","MM"],function(a,b){b[Zd]=t(a)-1}),aa(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);null!=e?b[Zd]=e:l(c).invalidMonth=a});var fe=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,ge="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),he="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ie=Vd,je=Vd;T("Y",0,0,function(){var a=this.year();return a<=9999?""+a:"+"+a}),T(0,["YY",2],0,function(){return this.year()%100}),T(0,["YYYY",4],0,"year"),T(0,["YYYYY",5],0,"year"),T(0,["YYYYYY",6,!0],0,"year"),I("year","y"),L("year",1),Y("Y",Rd),Y("YY",Kd,Gd),Y("YYYY",Od,Id),Y("YYYYY",Pd,Jd),Y("YYYYYY",Pd,Jd),aa(["YYYYY","YYYYYY"],Yd),aa("YYYY",function(b,c){c[Yd]=2===b.length?a.parseTwoDigitYear(b):t(b)}),aa("YY",function(b,c){c[Yd]=a.parseTwoDigitYear(b)}),aa("Y",function(a,b){b[Yd]=parseInt(a,10)}),a.parseTwoDigitYear=function(a){return t(a)+(t(a)>68?1900:2e3)};var ke=N("FullYear",!0);T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),L("week",5),L("isoWeek",5),Y("w",Kd),Y("ww",Kd,Gd),Y("W",Kd),Y("WW",Kd,Gd),ba(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=t(a)});var le={dow:0,doy:6};T("d",0,"do","day"),T("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),T("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),T("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),Y("d",Kd),Y("e",Kd),Y("E",Kd),Y("dd",function(a,b){return b.weekdaysMinRegex(a)}),Y("ddd",function(a,b){return b.weekdaysShortRegex(a)}),Y("dddd",function(a,b){return b.weekdaysRegex(a)}),ba(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict);null!=e?b.d=e:l(c).invalidWeekday=a}),ba(["d","e","E"],function(a,b,c,d){b[d]=t(a)});var me="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),pe=Vd,qe=Vd,re=Vd;T("H",["HH",2],0,"hour"),T("h",["hh",2],0,Qa),T("k",["kk",2],0,Ra),T("hmm",0,0,function(){return""+Qa.apply(this)+S(this.minutes(),2)}),T("hmmss",0,0,function(){return""+Qa.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+S(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)}),Sa("a",!0),Sa("A",!1),I("hour","h"),L("hour",13),Y("a",Ta),Y("A",Ta),Y("H",Kd),Y("h",Kd),Y("HH",Kd,Gd),Y("hh",Kd,Gd),Y("hmm",Ld),Y("hmmss",Md),Y("Hmm",Ld),Y("Hmmss",Md),aa(["H","HH"],_d),aa(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),aa(["h","hh"],function(a,b,c){b[_d]=t(a),l(c).bigHour=!0}),aa("hmm",function(a,b,c){var d=a.length-2;b[_d]=t(a.substr(0,d)),b[ae]=t(a.substr(d)),l(c).bigHour=!0}),aa("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[_d]=t(a.substr(0,d)),b[ae]=t(a.substr(d,2)),b[be]=t(a.substr(e)),l(c).bigHour=!0}),aa("Hmm",function(a,b,c){var d=a.length-2;b[_d]=t(a.substr(0,d)),b[ae]=t(a.substr(d))}),aa("Hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[_d]=t(a.substr(0,d)),b[ae]=t(a.substr(d,2)),b[be]=t(a.substr(e))});var se,te=/[ap]\.?m?\.?/i,ue=N("Hours",!0),ve={calendar:td,longDateFormat:ud,invalidDate:vd,ordinal:wd,ordinalParse:xd,relativeTime:yd,months:ge,monthsShort:he,week:le,weekdays:me,weekdaysMin:oe,weekdaysShort:ne,meridiemParse:te},we={},xe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ye=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ze=/Z|[+-]\d\d(?::?\d\d)?/,Ae=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ce=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=w("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),a.ISO_8601=function(){};var De=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=rb.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:n()}),Ee=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=rb.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:n()}),Fe=function(){return Date.now?Date.now():+new Date};yb("Z",":"),yb("ZZ",""),Y("Z",Td),Y("ZZ",Td),aa(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=zb(Td,a)});var Ge=/([\+\-]|\d\d)/gi;a.updateOffset=function(){};var He=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ie=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Nb.fn=vb.prototype;var Je=Rb(1,"add"),Ke=Rb(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Le=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100}),xc("gggg","weekYear"),xc("ggggg","weekYear"),xc("GGGG","isoWeekYear"),xc("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),Y("G",Rd),Y("g",Rd),Y("GG",Kd,Gd),Y("gg",Kd,Gd),Y("GGGG",Od,Id),Y("gggg",Od,Id),Y("GGGGG",Pd,Jd),Y("ggggg",Pd,Jd),ba(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=t(a)}),ba(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),T("Q",0,"Qo","quarter"),I("quarter","Q"),L("quarter",7),Y("Q",Fd),aa("Q",function(a,b){b[Zd]=3*(t(a)-1)}),T("D",["DD",2],"Do","date"),I("date","D"),L("date",9),Y("D",Kd),Y("DD",Kd,Gd),Y("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),aa(["D","DD"],$d),aa("Do",function(a,b){b[$d]=t(a.match(Kd)[0],10)});var Me=N("Date",!0);T("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),L("dayOfYear",4),Y("DDD",Nd),Y("DDDD",Hd),aa(["DDD","DDDD"],function(a,b,c){c._dayOfYear=t(a)}),T("m",["mm",2],0,"minute"),I("minute","m"),L("minute",14),Y("m",Kd),Y("mm",Kd,Gd),aa(["m","mm"],ae);var Ne=N("Minutes",!1);T("s",["ss",2],0,"second"),I("second","s"),L("second",15),Y("s",Kd),Y("ss",Kd,Gd),aa(["s","ss"],be);var Oe=N("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return 10*this.millisecond()}),T(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),T(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),T(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),T(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),T(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),L("millisecond",16),Y("S",Nd,Fd),Y("SS",Nd,Gd),Y("SSS",Nd,Hd);var Pe;for(Pe="SSSS";Pe.length<=9;Pe+="S")Y(Pe,Qd);for(Pe="S";Pe.length<=9;Pe+="S")aa(Pe,Gc);var Qe=N("Milliseconds",!1);T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");var Re=q.prototype;Re.add=Je,Re.calendar=Ub,Re.clone=Vb,Re.diff=ac,Re.endOf=mc,Re.format=ec,Re.from=fc,Re.fromNow=gc,Re.to=hc,Re.toNow=ic,Re.get=Q,Re.invalidAt=vc,Re.isAfter=Wb,Re.isBefore=Xb,Re.isBetween=Yb,Re.isSame=Zb,Re.isSameOrAfter=$b,Re.isSameOrBefore=_b,Re.isValid=tc,Re.lang=Le,Re.locale=jc,Re.localeData=kc,Re.max=Ee,Re.min=De,Re.parsingFlags=uc,Re.set=R,Re.startOf=lc,Re.subtract=Ke,Re.toArray=qc,Re.toObject=rc,Re.toDate=pc,Re.toISOString=dc,Re.toJSON=sc,Re.toString=cc,Re.unix=oc,Re.valueOf=nc,Re.creationData=wc,Re.year=ke,Re.isLeapYear=qa,Re.weekYear=yc,Re.isoWeekYear=zc,Re.quarter=Re.quarters=Ec,Re.month=ja,Re.daysInMonth=ka,Re.week=Re.weeks=Aa,Re.isoWeek=Re.isoWeeks=Ba,Re.weeksInYear=Bc,Re.isoWeeksInYear=Ac,Re.date=Me,Re.day=Re.days=Ja,Re.weekday=Ka,Re.isoWeekday=La,Re.dayOfYear=Fc,Re.hour=Re.hours=ue,Re.minute=Re.minutes=Ne,Re.second=Re.seconds=Oe,Re.millisecond=Re.milliseconds=Qe,Re.utcOffset=Cb,Re.utc=Eb,Re.local=Fb,Re.parseZone=Gb,Re.hasAlignedHourOffset=Hb,Re.isDST=Ib,Re.isLocal=Kb,Re.isUtcOffset=Lb,Re.isUtc=Mb,Re.isUTC=Mb,Re.zoneAbbr=Hc,Re.zoneName=Ic,Re.dates=w("dates accessor is deprecated. Use date instead.",Me),Re.months=w("months accessor is deprecated. Use month instead",ja),Re.years=w("years accessor is deprecated. Use year instead",ke),Re.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Db),Re.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Jb);var Se=Re,Te=B.prototype;Te.calendar=C,Te.longDateFormat=D,Te.invalidDate=E,Te.ordinal=F,Te.preparse=Lc,Te.postformat=Lc,Te.relativeTime=G,Te.pastFuture=H,Te.set=z,Te.months=ea,Te.monthsShort=fa,Te.monthsParse=ha,Te.monthsRegex=ma,Te.monthsShortRegex=la,Te.week=xa,Te.firstDayOfYear=za,Te.firstDayOfWeek=ya,Te.weekdays=Ea,Te.weekdaysMin=Ga,Te.weekdaysShort=Fa,Te.weekdaysParse=Ia,Te.weekdaysRegex=Ma,Te.weekdaysShortRegex=Na,Te.weekdaysMinRegex=Oa,Te.isPM=Ua,Te.meridiem=Va,Za("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===t(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),a.lang=w("moment.lang is deprecated. Use moment.locale instead.",Za),a.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ab);var Ue=Math.abs,Ve=cd("ms"),We=cd("s"),Xe=cd("m"),Ye=cd("h"),Ze=cd("d"),$e=cd("w"),_e=cd("M"),af=cd("y"),bf=ed("milliseconds"),cf=ed("seconds"),df=ed("minutes"),ef=ed("hours"),ff=ed("days"),gf=ed("months"),hf=ed("years"),jf=Math.round,kf={s:45,m:45,h:22,d:26,M:11},lf=Math.abs,mf=vb.prototype;mf.abs=Uc,mf.add=Wc,mf.subtract=Xc,mf.as=ad,mf.asMilliseconds=Ve,mf.asSeconds=We,mf.asMinutes=Xe,mf.asHours=Ye,mf.asDays=Ze,mf.asWeeks=$e,mf.asMonths=_e,mf.asYears=af,mf.valueOf=bd,mf._bubble=Zc,mf.get=dd,mf.milliseconds=bf,mf.seconds=cf,mf.minutes=df,mf.hours=ef,mf.days=ff,mf.weeks=fd,mf.months=gf,mf.years=hf,mf.humanize=kd,mf.toISOString=ld,mf.toString=ld,mf.toJSON=ld,mf.locale=jc,mf.localeData=kc,mf.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ld),mf.lang=Le,T("X",0,0,"unix"),T("x",0,0,"valueOf"),Y("x",Rd),Y("X",Ud),aa("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),aa("x",function(a,b,c){c._d=new Date(t(a))}),a.version="2.15.1",b(rb),a.fn=Se,a.min=tb,a.max=ub,a.now=Fe,a.utc=j,a.unix=Jc,a.months=Pc,a.isDate=f,a.locale=Za,a.invalid=n,a.duration=Nb,a.isMoment=r,a.weekdays=Rc,a.parseZone=Kc,a.localeData=ab,a.isDuration=wb,a.monthsShort=Qc,a.weekdaysMin=Tc,a.defineLocale=$a,a.updateLocale=_a,a.locales=bb,a.weekdaysShort=Sc,a.normalizeUnits=J,a.relativeTimeRounding=id,a.relativeTimeThreshold=jd,a.calendarFormat=Tb,a.prototype=Se;var nf=a;return nf});
|
1 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return cs.apply(null,arguments)}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t;for(t in e)return!1;return!0}function i(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,s){return _t(e,t,n,s,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function l(e){return null==e._pf&&(e._pf=d()),e._pf}function h(e){if(null==e._isValid){var t=l(e),n=fs.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function c(e){var t=u(NaN);return null!=e?o(l(t),e):l(t).userInvalidated=!0,t}function f(e){return void 0===e}function m(e,t){var n,s,i;if(f(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),f(t._i)||(e._i=t._i),f(t._f)||(e._f=t._f),f(t._l)||(e._l=t._l),f(t._strict)||(e._strict=t._strict),f(t._tzm)||(e._tzm=t._tzm),f(t._isUTC)||(e._isUTC=t._isUTC),f(t._offset)||(e._offset=t._offset),f(t._pf)||(e._pf=l(t)),f(t._locale)||(e._locale=t._locale),ms.length>0)for(n in ms)f(i=t[s=ms[n]])||(e[s]=i);return e}function _(t){m(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===_s&&(_s=!0,e.updateOffset(this),_s=!1)}function y(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function g(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function p(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=g(t)),n}function w(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&p(e[s])!==p(t[s]))&&a++;return a+r}function v(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,n){var s=!0;return o(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),s){for(var i,r=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var o in arguments[0])i+=o+": "+arguments[0][o]+", ";i=i.slice(0,-2)}else i=arguments[a];r.push(i)}v(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),s=!1}return n.apply(this,arguments)},n)}function M(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),ys[t]||(v(n),ys[t]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e){var t,n;for(n in e)k(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function Y(e,t){var s,i=o({},e);for(s in t)a(t,s)&&(n(e[s])&&n(t[s])?(i[s]={},o(i[s],e[s]),o(i[s],t[s])):null!=t[s]?i[s]=t[s]:delete i[s]);for(s in e)a(e,s)&&!a(t,s)&&n(e[s])&&(i[s]=o({},i[s]));return i}function x(e){null!=e&&this.set(e)}function O(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return k(s)?s.call(t,n):s}function b(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function T(){return this._invalidDate}function P(e){return this._ordinal.replace("%d",e)}function W(e,t,n,s){var i=this._relativeTime[n];return k(i)?i(e,t,n,s):i.replace(/%d/i,e)}function R(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}function U(e,t){var n=e.toLowerCase();ks[n]=ks[n+"s"]=ks[t]=e}function C(e){return"string"==typeof e?ks[e]||ks[e.toLowerCase()]:void 0}function F(e){var t,n,s={};for(n in e)a(e,n)&&(t=C(n))&&(s[t]=e[n]);return s}function H(e,t){Ds[e]=t}function L(e){var t=[];for(var n in e)t.push({unit:n,priority:Ds[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function G(t,n){return function(s){return null!=s?(j(this,t,s),e.updateOffset(this,n),this):V(this,t)}}function V(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function j(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function A(e){return e=C(e),k(this[e])?this[e]():this}function E(e,t){if("object"==typeof e)for(var n=L(e=F(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(e=C(e),k(this[e]))return this[e](t);return this}function I(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}function N(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(bs[e]=i),t&&(bs[t[0]]=function(){return I(i.apply(this,arguments),t[1],t[2])}),n&&(bs[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e){var t,n,s=e.match(Ys);for(t=0,n=s.length;t<n;t++)bs[s[t]]?s[t]=bs[s[t]]:s[t]=z(s[t]);return function(t){var i,r="";for(i=0;i<n;i++)r+=s[i]instanceof Function?s[i].call(t,e):s[i];return r}}function q(e,t){return e.isValid()?(t=$(t,e.localeData()),Os[t]=Os[t]||Z(t),Os[t](e)):e.localeData().invalidDate()}function $(e,t){function n(e){return t.longDateFormat(e)||e}var s=5;for(xs.lastIndex=0;s>=0&&xs.test(e);)e=e.replace(xs,n),xs.lastIndex=0,s-=1;return e}function B(e,t,n){Zs[e]=k(t)?t:function(e,s){return e&&n?n:t}}function J(e,t){return a(Zs,e)?Zs[e](t._strict,t._locale):new RegExp(Q(e))}function Q(e){return X(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i}))}function X(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e,t){var n,s=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(s=function(e,n){n[t]=p(e)}),n=0;n<e.length;n++)qs[e[n]]=s}function ee(e,t){K(e,function(e,n,s,i){s._w=s._w||{},t(e,s._w,s,i)})}function te(e,t,n){null!=t&&a(qs,e)&&qs[e](t,n._a,n,e)}function ne(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function se(e,n){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||si).test(n)?"format":"standalone"][e.month()]:this._months}function ie(e,n){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[si.test(n)?"format":"standalone"][e.month()]:this._monthsShort}function re(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=u([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=ps.call(this._shortMonthsParse,a),-1!==i?i:null):(i=ps.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?-1!==(i=ps.call(this._shortMonthsParse,a))?i:(i=ps.call(this._longMonthsParse,a),-1!==i?i:null):-1!==(i=ps.call(this._longMonthsParse,a))?i:(i=ps.call(this._shortMonthsParse,a),-1!==i?i:null)}function ae(e,t,n){var s,i,r;if(this._monthsParseExact)return re.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=u([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}}function oe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=p(t);else if("number"!=typeof(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ue(t){return null!=t?(oe(this,t),e.updateOffset(this,!0),this):V(this,"Month")}function de(){return ne(this.year(),this.month())}function le(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=ai),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function he(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=oi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ce(){function e(e,t){return t.length-e.length}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++)n=u([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)s[t]=X(s[t]),i[t]=X(i[t]);for(t=0;t<24;t++)r[t]=X(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function fe(e){return me(e)?366:365}function me(e){return e%4==0&&e%100!=0||e%400==0}function _e(){return me(this.year())}function ye(e,t,n,s,i,r,a){var o=new Date(e,t,n,s,i,r,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}function ge(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function pe(e,t,n){var s=7+t-n;return-((7+ge(e,0,s).getUTCDay()-t)%7)+s-1}function we(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+pe(e,s,i);return o<=0?a=fe(r=e-1)+o:o>fe(e)?(r=e+1,a=o-fe(e)):(r=e,a=o),{year:r,dayOfYear:a}}function ve(e,t,n){var s,i,r=pe(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Se(i=e.year()-1,t,n):a>Se(e.year(),t,n)?(s=a-Se(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Se(e,t,n){var s=pe(e,t,n),i=pe(e+1,t,n);return(fe(e)-s+i)/7}function Me(e){return ve(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function De(){return this._week.doy}function Ye(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xe(e){var t=ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Oe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function be(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Te(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:this._weekdays}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function We(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Re(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=u([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=ps.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=ps.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=ps.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?-1!==(i=ps.call(this._weekdaysParse,a))?i:-1!==(i=ps.call(this._shortWeekdaysParse,a))?i:(i=ps.call(this._minWeekdaysParse,a),-1!==i?i:null):"ddd"===t?-1!==(i=ps.call(this._shortWeekdaysParse,a))?i:-1!==(i=ps.call(this._weekdaysParse,a))?i:(i=ps.call(this._minWeekdaysParse,a),-1!==i?i:null):-1!==(i=ps.call(this._minWeekdaysParse,a))?i:-1!==(i=ps.call(this._weekdaysParse,a))?i:(i=ps.call(this._shortWeekdaysParse,a),-1!==i?i:null)}function Ue(e,t,n){var s,i,r;if(this._weekdaysParseExact)return Re.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=u([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}}function Ce(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Oe(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function He(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=be(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Le(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=fi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ge(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=mi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ve(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_i),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function je(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],d=[],l=[];for(t=0;t<7;t++)n=u([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),d.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),d.sort(e),l.sort(e),t=0;t<7;t++)o[t]=X(o[t]),d[t]=X(d[t]),l[t]=X(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ae(){return this.hours()%12||12}function Ee(){return this.hours()||24}function Ie(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ne(e,t){return t._meridiemParse}function ze(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ze(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function qe(e){return e?e.toLowerCase().replace("_","-"):e}function $e(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=qe(e[r]).split("-")).length,n=(n=qe(e[r+1]))?n.split("-"):null;t>0;){if(s=Be(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}r++}return null}function Be(e){var t=null;if(!vi[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=yi._abbr,require("./locale/"+e),Je(t)}catch(e){}return vi[e]}function Je(e,t){var n;return e&&(n=f(t)?Ke(e):Qe(e,t))&&(yi=n),yi._abbr}function Qe(e,t){if(null!==t){var n=wi;return t.abbr=e,null!=vi[e]?(M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=vi[e]._config):null!=t.parentLocale&&(null!=vi[t.parentLocale]?n=vi[t.parentLocale]._config:M("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),vi[e]=new x(Y(n,t)),Je(e),vi[e]}return delete vi[e],null}function Xe(e,t){if(null!=t){var n,s=wi;null!=vi[e]&&(s=vi[e]._config),(n=new x(t=Y(s,t))).parentLocale=vi[e],vi[e]=n,Je(e)}else null!=vi[e]&&(null!=vi[e].parentLocale?vi[e]=vi[e].parentLocale:null!=vi[e]&&delete vi[e]);return vi[e]}function Ke(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return yi;if(!t(e)){if(n=Be(e))return n;e=[e]}return $e(e)}function et(){return gs(vi)}function tt(e){var t,n=e._a;return n&&-2===l(e).overflow&&(t=n[Bs]<0||n[Bs]>11?Bs:n[Js]<1||n[Js]>ne(n[$s],n[Bs])?Js:n[Qs]<0||n[Qs]>24||24===n[Qs]&&(0!==n[Xs]||0!==n[Ks]||0!==n[ei])?Qs:n[Xs]<0||n[Xs]>59?Xs:n[Ks]<0||n[Ks]>59?Ks:n[ei]<0||n[ei]>999?ei:-1,l(e)._overflowDayOfYear&&(t<$s||t>Js)&&(t=Js),l(e)._overflowWeeks&&-1===t&&(t=ti),l(e)._overflowWeekday&&-1===t&&(t=ni),l(e).overflow=t),e}function nt(e){var t,n,s,i,r,a,o=e._i,u=Si.exec(o)||Mi.exec(o);if(u){for(l(e).iso=!0,t=0,n=Di.length;t<n;t++)if(Di[t][1].exec(u[1])){i=Di[t][0],s=!1!==Di[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Yi.length;t<n;t++)if(Yi[t][1].exec(u[3])){r=(u[2]||" ")+Yi[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!ki.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),ut(e)}else e._isValid=!1}function st(t){var n=xi.exec(t._i);null===n?(nt(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t))):t._d=new Date(+n[1])}function it(e,t,n){return null!=e?e:null!=t?t:n}function rt(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function at(e){var t,n,s,i,r=[];if(!e._d){for(s=rt(e),e._w&&null==e._a[Js]&&null==e._a[Bs]&&ot(e),e._dayOfYear&&(i=it(e._a[$s],s[$s]),e._dayOfYear>fe(i)&&(l(e)._overflowDayOfYear=!0),n=ge(i,0,e._dayOfYear),e._a[Bs]=n.getUTCMonth(),e._a[Js]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Qs]&&0===e._a[Xs]&&0===e._a[Ks]&&0===e._a[ei]&&(e._nextDay=!0,e._a[Qs]=0),e._d=(e._useUTC?ge:ye).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Qs]=24)}}function ot(e){var t,n,s,i,r,a,o,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,a=4,n=it(t.GG,e._a[$s],ve(yt(),1,4).year),s=it(t.W,1),((i=it(t.E,1))<1||i>7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,n=it(t.gg,e._a[$s],ve(yt(),r,a).year),s=it(t.w,1),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r),s<1||s>Se(n,r,a)?l(e)._overflowWeeks=!0:null!=u?l(e)._overflowWeekday=!0:(o=we(n,s,i,r,a),e._a[$s]=o.year,e._dayOfYear=o.dayOfYear)}function ut(t){if(t._f!==e.ISO_8601){t._a=[],l(t).empty=!0;var n,s,i,r,a,o=""+t._i,u=o.length,d=0;for(i=$(t._f,t._locale).match(Ys)||[],n=0;n<i.length;n++)r=i[n],(s=(o.match(J(r,t))||[])[0])&&((a=o.substr(0,o.indexOf(s))).length>0&&l(t).unusedInput.push(a),o=o.slice(o.indexOf(s)+s.length),d+=s.length),bs[r]?(s?l(t).empty=!1:l(t).unusedTokens.push(r),te(r,s,t)):t._strict&&!s&&l(t).unusedTokens.push(r);l(t).charsLeftOver=u-d,o.length>0&&l(t).unusedInput.push(o),t._a[Qs]<=12&&!0===l(t).bigHour&&t._a[Qs]>0&&(l(t).bigHour=void 0),l(t).parsedDateParts=t._a.slice(0),l(t).meridiem=t._meridiem,t._a[Qs]=dt(t._locale,t._a[Qs],t._meridiem),at(t),tt(t)}else nt(t)}function dt(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}function lt(e){var t,n,s,i,r;if(0===e._f.length)return l(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)r=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],ut(t),h(t)&&(r+=l(t).charsLeftOver,r+=10*l(t).unusedTokens.length,l(t).score=r,(null==s||r<s)&&(s=r,n=t));o(e,n||t)}function ht(e){if(!e._d){var t=F(e._i);e._a=r([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),at(e)}}function ct(e){var t=new _(tt(ft(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ft(e){var n=e._i,s=e._f;return e._locale=e._locale||Ke(e._l),null===n||void 0===s&&""===n?c({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),y(n)?new _(tt(n)):(t(s)?lt(e):i(n)?e._d=n:s?ut(e):mt(e),h(e)||(e._d=null),e))}function mt(n){var s=n._i;void 0===s?n._d=new Date(e.now()):i(s)?n._d=new Date(s.valueOf()):"string"==typeof s?st(n):t(s)?(n._a=r(s.slice(0),function(e){return parseInt(e,10)}),at(n)):"object"==typeof s?ht(n):"number"==typeof s?n._d=new Date(s):e.createFromInputFallback(n)}function _t(e,i,r,a,o){var u={};return"boolean"==typeof r&&(a=r,r=void 0),(n(e)&&s(e)||t(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=r,u._i=e,u._f=i,u._strict=a,ct(u)}function yt(e,t,n,s){return _t(e,t,n,s,!1)}function gt(e,n){var s,i;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return yt();for(s=n[0],i=1;i<n.length;++i)n[i].isValid()&&!n[i][e](s)||(s=n[i]);return s}function pt(){return gt("isBefore",[].slice.call(arguments,0))}function wt(){return gt("isAfter",[].slice.call(arguments,0))}function vt(e){var t=F(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||0,a=t.day||0,o=t.hour||0,u=t.minute||0,d=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*d+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=Ke(),this._bubble()}function St(e){return e instanceof vt}function Mt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function kt(e,t){N(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)})}function Dt(e,t){var n=(t||"").match(e)||[],s=((n[n.length-1]||[])+"").match(Pi)||["-",0,0],i=60*s[1]+p(s[2]);return"+"===s[0]?i:-i}function Yt(t,n){var s,r;return n._isUTC?(s=n.clone(),r=(y(t)||i(t)?t.valueOf():yt(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),e.updateOffset(s,!1),s):yt(t).local()}function xt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ot(t,n){var s,i=this._offset||0;return this.isValid()?null!=t?("string"==typeof t?t=Dt(Is,t):Math.abs(t)<16&&(t*=60),!this._isUTC&&n&&(s=xt(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==t&&(!n||this._changeInProgress?It(this,Gt(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:xt(this):null!=t?this:NaN}function bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Tt(e){return this.utcOffset(0,e)}function Pt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(xt(this),"m")),this}function Wt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&(0===Dt(Es,this._i)?this.utcOffset(0,!0):this.utcOffset(Dt(Es,this._i))),this}function Rt(e){return!!this.isValid()&&(e=e?yt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ut(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ct(){if(!f(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),(e=ft(e))._a){var t=e._isUTC?u(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ft(){return!!this.isValid()&&!this._isUTC}function Ht(){return!!this.isValid()&&this._isUTC}function Lt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Gt(e,t){var n,s,i,r=e,o=null;return St(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(r={},t?r[t]=e:r.milliseconds=e):(o=Wi.exec(e))?(n="-"===o[1]?-1:1,r={y:0,d:p(o[Js])*n,h:p(o[Qs])*n,m:p(o[Xs])*n,s:p(o[Ks])*n,ms:p(Mt(1e3*o[ei]))*n}):(o=Ri.exec(e))?(n="-"===o[1]?-1:1,r={y:Vt(o[2],n),M:Vt(o[3],n),w:Vt(o[4],n),d:Vt(o[5],n),h:Vt(o[6],n),m:Vt(o[7],n),s:Vt(o[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=At(yt(r.from),yt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new vt(r),St(e)&&a(e,"_locale")&&(s._locale=e._locale),s}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function jt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function At(e,t){var n;return e.isValid()&&t.isValid()?(t=Yt(t,e),e.isBefore(t)?n=jt(e,t):((n=jt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Et(e,t){return function(n,s){var i,r;return null===s||isNaN(+s)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),n="string"==typeof n?+n:n,i=Gt(n,s),It(this,i,e),this}}function It(t,n,s,i){var r=n._milliseconds,a=Mt(n._days),o=Mt(n._months);t.isValid()&&(i=null==i||i,r&&t._d.setTime(t._d.valueOf()+r*s),a&&j(t,"Date",V(t,"Date")+a*s),o&&oe(t,V(t,"Month")+o*s),i&&e.updateOffset(t,a||o))}function Nt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zt(t,n){var s=t||yt(),i=Yt(s,this).startOf("day"),r=e.calendarFormat(this,i)||"sameElse",a=n&&(k(n[r])?n[r].call(this,s):n[r]);return this.format(a||this.localeData().calendar(r,this,yt(s)))}function Zt(){return new _(this)}function qt(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=C(f(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function $t(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=C(f(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Bt(e,t,n,s){return s=s||"()",("("===s[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Jt(e,t){var n,s=y(e)?e:yt(e);return!(!this.isValid()||!s.isValid())&&(t=C(t||"millisecond"),"millisecond"===t?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Qt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kt(e,t,n){var s,i,r,a;return this.isValid()&&(s=Yt(e,this)).isValid()?(i=6e4*(s.utcOffset()-this.utcOffset()),t=C(t),"year"===t||"month"===t||"quarter"===t?(a=en(this,s),"quarter"===t?a/=3:"year"===t&&(a/=12)):(r=this-s,a="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-i)/864e5:"week"===t?(r-i)/6048e5:r),n?a:g(a)):NaN}function en(e,t){var n,s=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(s,"months");return n=t-i<0?(t-i)/(i-e.clone().add(s-1,"months")):(t-i)/(e.clone().add(s+1,"months")-i),-(s+n)||0}function tn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nn(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?k(Date.prototype.toISOString)?this.toDate().toISOString():q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function sn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=q(this,t);return this.localeData().postformat(n)}function rn(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function an(e){return this.from(yt(),e)}function on(e,t){return this.isValid()&&(y(e)&&e.isValid()||yt(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function un(e){return this.to(yt(),e)}function dn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=Ke(e))&&(this._locale=t),this)}function ln(){return this._locale}function hn(e){switch(e=C(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function cn(e){return void 0===(e=C(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function fn(){return this._d.valueOf()-6e4*(this._offset||0)}function mn(){return Math.floor(this.valueOf()/1e3)}function _n(){return new Date(this.valueOf())}function yn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function gn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function pn(){return this.isValid()?this.toISOString():null}function wn(){return h(this)}function vn(){return o({},l(this))}function Sn(){return l(this).overflow}function Mn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function kn(e,t){N(0,[e,e.length],0,t)}function Dn(e){return bn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Yn(e){return bn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function xn(){return Se(this.year(),1,4)}function On(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function bn(e,t,n,s,i){var r;return null==e?ve(this,s,i).year:(r=Se(e,s,i),t>r&&(t=r),Tn.call(this,e,t,n,s,i))}function Tn(e,t,n,s,i){var r=we(e,t,n,s,i),a=ge(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Pn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Wn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Rn(e,t){t[ei]=p(1e3*("0."+e))}function Un(){return this._isUTC?"UTC":""}function Cn(){return this._isUTC?"Coordinated Universal Time":""}function Fn(e){return yt(1e3*e)}function Hn(){return yt.apply(null,arguments).parseZone()}function Ln(e){return e}function Gn(e,t,n,s){var i=Ke(),r=u().set(s,t);return i[n](r,e)}function Vn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Gn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=Gn(e,s,n,"month");return i}function jn(e,t,n,s){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var i=Ke(),r=e?i._week.dow:0;if(null!=n)return Gn(t,(n+r)%7,s,"day");var a,o=[];for(a=0;a<7;a++)o[a]=Gn(t,(a+r)%7,s,"day");return o}function An(e,t){return Vn(e,t,"months")}function En(e,t){return Vn(e,t,"monthsShort")}function In(e,t,n){return jn(e,t,n,"weekdays")}function Nn(e,t,n){return jn(e,t,n,"weekdaysShort")}function zn(e,t,n){return jn(e,t,n,"weekdaysMin")}function Zn(){var e=this._data;return this._milliseconds=Ni(this._milliseconds),this._days=Ni(this._days),this._months=Ni(this._months),e.milliseconds=Ni(e.milliseconds),e.seconds=Ni(e.seconds),e.minutes=Ni(e.minutes),e.hours=Ni(e.hours),e.months=Ni(e.months),e.years=Ni(e.years),this}function qn(e,t,n,s){var i=Gt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function $n(e,t){return qn(this,e,t,1)}function Bn(e,t){return qn(this,e,t,-1)}function Jn(e){return e<0?Math.floor(e):Math.ceil(e)}function Qn(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*Jn(Kn(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=g(r/1e3),u.seconds=e%60,t=g(e/60),u.minutes=t%60,n=g(t/60),u.hours=n%24,a+=g(n/24),i=g(Xn(a)),o+=i,a-=Jn(Kn(i)),s=g(o/12),o%=12,u.days=a,u.months=o,u.years=s,this}function Xn(e){return 4800*e/146097}function Kn(e){return 146097*e/4800}function es(e){var t,n,s=this._milliseconds;if("month"===(e=C(e))||"year"===e)return t=this._days+s/864e5,n=this._months+Xn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Kn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}}function ts(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*p(this._months/12)}function ns(e){return function(){return this.as(e)}}function ss(e){return e=C(e),this[e+"s"]()}function is(e){return function(){return this._data[e]}}function rs(){return g(this.days()/7)}function as(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function os(e,t,n){var s=Gt(e).abs(),i=ar(s.as("s")),r=ar(s.as("m")),a=ar(s.as("h")),o=ar(s.as("d")),u=ar(s.as("M")),d=ar(s.as("y")),l=i<or.s&&["s",i]||r<=1&&["m"]||r<or.m&&["mm",r]||a<=1&&["h"]||a<or.h&&["hh",a]||o<=1&&["d"]||o<or.d&&["dd",o]||u<=1&&["M"]||u<or.M&&["MM",u]||d<=1&&["y"]||["yy",d];return l[2]=t,l[3]=+e>0,l[4]=n,as.apply(null,l)}function us(e){return void 0===e?ar:"function"==typeof e&&(ar=e,!0)}function ds(e,t){return void 0!==or[e]&&(void 0===t?or[e]:(or[e]=t,!0))}function ls(e){var t=this.localeData(),n=os(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function hs(){var e,t,n,s=ur(this._milliseconds)/1e3,i=ur(this._days),r=ur(this._months);t=g((e=g(s/60))/60),s%=60,e%=60;var a=n=g(r/12),o=r%=12,u=i,d=t,l=e,h=s,c=this.asSeconds();return c?(c<0?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(u?u+"D":"")+(d||l||h?"T":"")+(d?d+"H":"")+(l?l+"M":"")+(h?h+"S":""):"P0D"}var cs,fs;fs=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var ms=e.momentProperties=[],_s=!1,ys={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var gs;gs=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var ps,ws={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},vs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ss=/\d{1,2}/,Ms={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ks={},Ds={},Ys=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,xs=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Os={},bs={},Ts=/\d/,Ps=/\d\d/,Ws=/\d{3}/,Rs=/\d{4}/,Us=/[+-]?\d{6}/,Cs=/\d\d?/,Fs=/\d\d\d\d?/,Hs=/\d\d\d\d\d\d?/,Ls=/\d{1,3}/,Gs=/\d{1,4}/,Vs=/[+-]?\d{1,6}/,js=/\d+/,As=/[+-]?\d+/,Es=/Z|[+-]\d\d:?\d\d/gi,Is=/Z|[+-]\d\d(?::?\d\d)?/gi,Ns=/[+-]?\d+(\.\d{1,3})?/,zs=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Zs={},qs={},$s=0,Bs=1,Js=2,Qs=3,Xs=4,Ks=5,ei=6,ti=7,ni=8;ps=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),U("month","M"),H("month",8),B("M",Cs),B("MM",Cs,Ps),B("MMM",function(e,t){return t.monthsShortRegex(e)}),B("MMMM",function(e,t){return t.monthsRegex(e)}),K(["M","MM"],function(e,t){t[Bs]=p(e)-1}),K(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[Bs]=i:l(n).invalidMonth=e});var si=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,ii="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ri="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ai=zs,oi=zs;N("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),U("year","y"),H("year",1),B("Y",As),B("YY",Cs,Ps),B("YYYY",Gs,Rs),B("YYYYY",Vs,Us),B("YYYYYY",Vs,Us),K(["YYYYY","YYYYYY"],$s),K("YYYY",function(t,n){n[$s]=2===t.length?e.parseTwoDigitYear(t):p(t)}),K("YY",function(t,n){n[$s]=e.parseTwoDigitYear(t)}),K("Y",function(e,t){t[$s]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return p(e)+(p(e)>68?1900:2e3)};var ui=G("FullYear",!0);N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),U("week","w"),U("isoWeek","W"),H("week",5),H("isoWeek",5),B("w",Cs),B("ww",Cs,Ps),B("W",Cs),B("WW",Cs,Ps),ee(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=p(e)});var di={dow:0,doy:6};N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),U("day","d"),U("weekday","e"),U("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),B("d",Cs),B("e",Cs),B("E",Cs),B("dd",function(e,t){return t.weekdaysMinRegex(e)}),B("ddd",function(e,t){return t.weekdaysShortRegex(e)}),B("dddd",function(e,t){return t.weekdaysRegex(e)}),ee(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:l(n).invalidWeekday=e}),ee(["d","e","E"],function(e,t,n,s){t[s]=p(e)});var li="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ci="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),fi=zs,mi=zs,_i=zs;N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Ae),N("k",["kk",2],0,Ee),N("hmm",0,0,function(){return""+Ae.apply(this)+I(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Ae.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Ie("a",!0),Ie("A",!1),U("hour","h"),H("hour",13),B("a",Ne),B("A",Ne),B("H",Cs),B("h",Cs),B("HH",Cs,Ps),B("hh",Cs,Ps),B("hmm",Fs),B("hmmss",Hs),B("Hmm",Fs),B("Hmmss",Hs),K(["H","HH"],Qs),K(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),K(["h","hh"],function(e,t,n){t[Qs]=p(e),l(n).bigHour=!0}),K("hmm",function(e,t,n){var s=e.length-2;t[Qs]=p(e.substr(0,s)),t[Xs]=p(e.substr(s)),l(n).bigHour=!0}),K("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Qs]=p(e.substr(0,s)),t[Xs]=p(e.substr(s,2)),t[Ks]=p(e.substr(i)),l(n).bigHour=!0}),K("Hmm",function(e,t,n){var s=e.length-2;t[Qs]=p(e.substr(0,s)),t[Xs]=p(e.substr(s))}),K("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Qs]=p(e.substr(0,s)),t[Xs]=p(e.substr(s,2)),t[Ks]=p(e.substr(i))});var yi,gi=/[ap]\.?m?\.?/i,pi=G("Hours",!0),wi={calendar:ws,longDateFormat:vs,invalidDate:"Invalid date",ordinal:"%d",ordinalParse:Ss,relativeTime:Ms,months:ii,monthsShort:ri,week:di,weekdays:li,weekdaysMin:ci,weekdaysShort:hi,meridiemParse:gi},vi={},Si=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Mi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ki=/Z|[+-]\d\d(?::?\d\d)?/,Di=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Yi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xi=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=S("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Oi=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:c()}),bi=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:c()}),Ti=function(){return Date.now?Date.now():+new Date};kt("Z",":"),kt("ZZ",""),B("Z",Is),B("ZZ",Is),K(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Dt(Is,e)});var Pi=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Wi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ri=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Gt.fn=vt.prototype;var Ui=Et(1,"add"),Ci=Et(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Fi=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),kn("gggg","weekYear"),kn("ggggg","weekYear"),kn("GGGG","isoWeekYear"),kn("GGGGG","isoWeekYear"),U("weekYear","gg"),U("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),B("G",As),B("g",As),B("GG",Cs,Ps),B("gg",Cs,Ps),B("GGGG",Gs,Rs),B("gggg",Gs,Rs),B("GGGGG",Vs,Us),B("ggggg",Vs,Us),ee(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=p(e)}),ee(["gg","GG"],function(t,n,s,i){n[i]=e.parseTwoDigitYear(t)}),N("Q",0,"Qo","quarter"),U("quarter","Q"),H("quarter",7),B("Q",Ts),K("Q",function(e,t){t[Bs]=3*(p(e)-1)}),N("D",["DD",2],"Do","date"),U("date","D"),H("date",9),B("D",Cs),B("DD",Cs,Ps),B("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),K(["D","DD"],Js),K("Do",function(e,t){t[Js]=p(e.match(Cs)[0],10)});var Hi=G("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),U("dayOfYear","DDD"),H("dayOfYear",4),B("DDD",Ls),B("DDDD",Ws),K(["DDD","DDDD"],function(e,t,n){n._dayOfYear=p(e)}),N("m",["mm",2],0,"minute"),U("minute","m"),H("minute",14),B("m",Cs),B("mm",Cs,Ps),K(["m","mm"],Xs);var Li=G("Minutes",!1);N("s",["ss",2],0,"second"),U("second","s"),H("second",15),B("s",Cs),B("ss",Cs,Ps),K(["s","ss"],Ks);var Gi=G("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),U("millisecond","ms"),H("millisecond",16),B("S",Ls,Ts),B("SS",Ls,Ps),B("SSS",Ls,Ws);var Vi;for(Vi="SSSS";Vi.length<=9;Vi+="S")B(Vi,js);for(Vi="S";Vi.length<=9;Vi+="S")K(Vi,Rn);var ji=G("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Ai=_.prototype;Ai.add=Ui,Ai.calendar=zt,Ai.clone=Zt,Ai.diff=Kt,Ai.endOf=cn,Ai.format=sn,Ai.from=rn,Ai.fromNow=an,Ai.to=on,Ai.toNow=un,Ai.get=A,Ai.invalidAt=Sn,Ai.isAfter=qt,Ai.isBefore=$t,Ai.isBetween=Bt,Ai.isSame=Jt,Ai.isSameOrAfter=Qt,Ai.isSameOrBefore=Xt,Ai.isValid=wn,Ai.lang=Fi,Ai.locale=dn,Ai.localeData=ln,Ai.max=bi,Ai.min=Oi,Ai.parsingFlags=vn,Ai.set=E,Ai.startOf=hn,Ai.subtract=Ci,Ai.toArray=yn,Ai.toObject=gn,Ai.toDate=_n,Ai.toISOString=nn,Ai.toJSON=pn,Ai.toString=tn,Ai.unix=mn,Ai.valueOf=fn,Ai.creationData=Mn,Ai.year=ui,Ai.isLeapYear=_e,Ai.weekYear=Dn,Ai.isoWeekYear=Yn,Ai.quarter=Ai.quarters=Pn,Ai.month=ue,Ai.daysInMonth=de,Ai.week=Ai.weeks=Ye,Ai.isoWeek=Ai.isoWeeks=xe,Ai.weeksInYear=On,Ai.isoWeeksInYear=xn,Ai.date=Hi,Ai.day=Ai.days=Ce,Ai.weekday=Fe,Ai.isoWeekday=He,Ai.dayOfYear=Wn,Ai.hour=Ai.hours=pi,Ai.minute=Ai.minutes=Li,Ai.second=Ai.seconds=Gi,Ai.millisecond=Ai.milliseconds=ji,Ai.utcOffset=Ot,Ai.utc=Tt,Ai.local=Pt,Ai.parseZone=Wt,Ai.hasAlignedHourOffset=Rt,Ai.isDST=Ut,Ai.isLocal=Ft,Ai.isUtcOffset=Ht,Ai.isUtc=Lt,Ai.isUTC=Lt,Ai.zoneAbbr=Un,Ai.zoneName=Cn,Ai.dates=S("dates accessor is deprecated. Use date instead.",Hi),Ai.months=S("months accessor is deprecated. Use month instead",ue),Ai.years=S("years accessor is deprecated. Use year instead",ui),Ai.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bt),Ai.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ct);var Ei=Ai,Ii=x.prototype;Ii.calendar=O,Ii.longDateFormat=b,Ii.invalidDate=T,Ii.ordinal=P,Ii.preparse=Ln,Ii.postformat=Ln,Ii.relativeTime=W,Ii.pastFuture=R,Ii.set=D,Ii.months=se,Ii.monthsShort=ie,Ii.monthsParse=ae,Ii.monthsRegex=he,Ii.monthsShortRegex=le,Ii.week=Me,Ii.firstDayOfYear=De,Ii.firstDayOfWeek=ke,Ii.weekdays=Te,Ii.weekdaysMin=We,Ii.weekdaysShort=Pe,Ii.weekdaysParse=Ue,Ii.weekdaysRegex=Le,Ii.weekdaysShortRegex=Ge,Ii.weekdaysMinRegex=Ve,Ii.isPM=ze,Ii.meridiem=Ze,Je("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===p(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",Ke);var Ni=Math.abs,zi=ns("ms"),Zi=ns("s"),qi=ns("m"),$i=ns("h"),Bi=ns("d"),Ji=ns("w"),Qi=ns("M"),Xi=ns("y"),Ki=is("milliseconds"),er=is("seconds"),tr=is("minutes"),nr=is("hours"),sr=is("days"),ir=is("months"),rr=is("years"),ar=Math.round,or={s:45,m:45,h:22,d:26,M:11},ur=Math.abs,dr=vt.prototype;return dr.abs=Zn,dr.add=$n,dr.subtract=Bn,dr.as=es,dr.asMilliseconds=zi,dr.asSeconds=Zi,dr.asMinutes=qi,dr.asHours=$i,dr.asDays=Bi,dr.asWeeks=Ji,dr.asMonths=Qi,dr.asYears=Xi,dr.valueOf=ts,dr._bubble=Qn,dr.get=ss,dr.milliseconds=Ki,dr.seconds=er,dr.minutes=tr,dr.hours=nr,dr.days=sr,dr.weeks=rs,dr.months=ir,dr.years=rr,dr.humanize=ls,dr.toISOString=hs,dr.toString=hs,dr.toJSON=hs,dr.locale=dn,dr.localeData=ln,dr.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hs),dr.lang=Fi,N("X",0,0,"unix"),N("x",0,0,"valueOf"),B("x",As),B("X",Ns),K("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),K("x",function(e,t,n){n._d=new Date(p(e))}),e.version="2.15.1",function(e){cs=e}(yt),e.fn=Ei,e.min=pt,e.max=wt,e.now=Ti,e.utc=u,e.unix=Fn,e.months=An,e.isDate=i,e.locale=Je,e.invalid=c,e.duration=Gt,e.isMoment=y,e.weekdays=In,e.parseZone=Hn,e.localeData=Ke,e.isDuration=St,e.monthsShort=En,e.weekdaysMin=zn,e.defineLocale=Qe,e.updateLocale=Xe,e.locales=et,e.weekdaysShort=Nn,e.normalizeUnits=C,e.relativeTimeRounding=us,e.relativeTimeThreshold=ds,e.calendarFormat=Nt,e.prototype=Ei,e});
|
|
bp-core/js/webcam.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
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(
|
1 |
+
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(e){if("camera"===e){var a=new bp.Views.WebCamAvatar({model:new Backbone.Model({user_media:!1})});this.params.flipped=!1,bp.Avatar.views.add({id:"camera",view:a}),a.inject(".bp-avatar")}else _.isNull(this.params.video)||(this.stop(),this.removeWarning())},removeView:function(){var e;_.isUndefined(bp.Avatar.views.get("camera"))||((e=bp.Avatar.views.get("camera")).get("view").remove(),bp.Avatar.views.remove({id:"camera",view:e}))},gotStream:function(e){var a=bp.WebCam.params.video;bp.WebCam.params.videoStream=e,bp.WebCam.displayWarning("loaded"),a.onerror=function(){bp.WebCam.displayWarning("videoerror"),a&&bp.WebCam.stop()},e.onended=bp.WebCam.noStream(),void 0!==a.mozSrcObject?(a.mozSrcObject=e,a.play()):navigator.mozGetUserMedia?(a.src=e,a.play()):void 0!==a.srcObject?a.srcObject=e:window.URL?a.src=window.URL.createObjectURL(e):a.src=e,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(e){e.get("url")||bp.WebCam.displayWarning("nocapture"),bp.WebCam.removeView(),bp.Avatar.setAvatar(e)},removeWarning:function(){_.isNull(this.params.warning)||this.params.warning.remove()},displayWarning:function(e){this.removeWarning(),this.params.warning=new bp.Views.uploaderWarning({value:BP_Uploader.strings.camera_warnings[e]}),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 e;(navigator.getUserMedia||navigator.oGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia)&&(e=_.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(e)),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.WebCam.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(e){var a,t;e.preventDefault(),bp.WebCam.params.capture_enable?this.model.get("h")>this.options.video.el.videoHeight||this.model.get("w")>this.options.video.el.videoWidth?bp.WebCam.displayWarning("videoerror"):(t=this.options.video.el.videoHeight,a=(this.options.video.el.videoWidth-t)/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,a,0,t,t,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),bp.WebCam.displayWarning("ready")):bp.WebCam.displayWarning("loading")},saveCapture:function(e){e.preventDefault(),bp.WebCam.params.capture?(bp.WebCam.stop(),bp.WebCam.setAvatar(this.model)):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 +1 @@
|
|
1 |
-
function member_widget_click_handler(){jQuery(".widget div#members-list-options a").on("click",function(){var
|
1 |
+
function member_widget_click_handler(){jQuery(".widget div#members-list-options a").on("click",function(){var e=this;return jQuery(e).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(t){jQuery(e).removeClass("loading"),member_widget_response(t)}),!1})}function member_widget_response(e){e=e.substr(0,e.length-1),"-1"!==(e=e.split("[[SPLIT]]"))[0]?jQuery(".widget ul#members-list").fadeOut(200,function(){jQuery(".widget ul#members-list").html(e[1]),jQuery(".widget ul#members-list").fadeIn(200)}):jQuery(".widget ul#members-list").fadeOut(200,function(){var t="<p>"+e[1]+"</p>";jQuery(".widget ul#members-list").html(t),jQuery(".widget ul#members-list").fadeIn(200)})}jQuery(document).ready(function(){member_widget_click_handler(),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){member_widget_click_handler()})});
|
bp-forums/bp-forums-template.php
CHANGED
@@ -2652,7 +2652,7 @@ function bp_the_topic_post_poster_name() {
|
|
2652 |
*
|
2653 |
* @param string $value HTML link for the poster's name.
|
2654 |
*/
|
2655 |
-
return apply_filters( 'bp_get_the_topic_post_poster_name', '<a href="' . $link
|
2656 |
}
|
2657 |
|
2658 |
/**
|
2652 |
*
|
2653 |
* @param string $value HTML link for the poster's name.
|
2654 |
*/
|
2655 |
+
return apply_filters( 'bp_get_the_topic_post_poster_name', '<a href="' . esc_url( $link ) . '">' . esc_html( $topic_template->post->poster_name ) . '</a>' );
|
2656 |
}
|
2657 |
|
2658 |
/**
|
bp-friends/bp-friends-actions.php
CHANGED
@@ -82,7 +82,7 @@ function friends_action_remove_friend() {
|
|
82 |
bp_core_add_message( __( 'Friendship canceled', 'buddypress' ) );
|
83 |
}
|
84 |
|
85 |
-
} elseif ( '
|
86 |
bp_core_add_message( __( 'You are not yet friends with this user', 'buddypress' ), 'error' );
|
87 |
} else {
|
88 |
bp_core_add_message( __( 'You have a pending friendship request with this user', 'buddypress' ), 'error' );
|
82 |
bp_core_add_message( __( 'Friendship canceled', 'buddypress' ) );
|
83 |
}
|
84 |
|
85 |
+
} elseif ( 'not_friends' == $friendship_status ) {
|
86 |
bp_core_add_message( __( 'You are not yet friends with this user', 'buddypress' ), 'error' );
|
87 |
} else {
|
88 |
bp_core_add_message( __( 'You have a pending friendship request with this user', 'buddypress' ), 'error' );
|
bp-friends/bp-friends-activity.php
CHANGED
@@ -31,7 +31,7 @@ defined( 'ABSPATH' ) || exit;
|
|
31 |
* @type string $component Default: the id of your Friends component
|
32 |
* (usually 'friends').
|
33 |
* }
|
34 |
-
* @return bool See {@link bp_activity_add()}.
|
35 |
*/
|
36 |
function friends_record_activity( $args = '' ) {
|
37 |
|
31 |
* @type string $component Default: the id of your Friends component
|
32 |
* (usually 'friends').
|
33 |
* }
|
34 |
+
* @return WP_Error|bool|int See {@link bp_activity_add()}.
|
35 |
*/
|
36 |
function friends_record_activity( $args = '' ) {
|
37 |
|
bp-friends/bp-friends-functions.php
CHANGED
@@ -44,8 +44,8 @@ function friends_add_friend( $initiator_userid, $friend_userid, $force_accept =
|
|
44 |
|
45 |
// Setup the friendship data.
|
46 |
$friendship = new BP_Friends_Friendship;
|
47 |
-
$friendship->initiator_user_id = $initiator_userid;
|
48 |
-
$friendship->friend_user_id = $friend_userid;
|
49 |
$friendship->is_confirmed = 0;
|
50 |
$friendship->is_limited = 0;
|
51 |
$friendship->date_created = bp_core_current_time();
|
@@ -348,7 +348,7 @@ function friends_check_user_has_friends( $user_id ) {
|
|
348 |
*
|
349 |
* @param int $initiator_user_id ID of the first user.
|
350 |
* @param int $friend_user_id ID of the second user.
|
351 |
-
* @return int|
|
352 |
*/
|
353 |
function friends_get_friendship_id( $initiator_user_id, $friend_user_id ) {
|
354 |
return BP_Friends_Friendship::get_friendship_id( $initiator_user_id, $friend_user_id );
|
@@ -773,6 +773,12 @@ add_action( 'bp_make_spam_user', 'friends_remove_data' );
|
|
773 |
* @see bp_activity_mentions_script()
|
774 |
*/
|
775 |
function bp_friends_prime_mentions_results() {
|
|
|
|
|
|
|
|
|
|
|
|
|
776 |
if ( ! bp_activity_maybe_load_mentions_scripts() ) {
|
777 |
return;
|
778 |
}
|
@@ -890,4 +896,4 @@ function friends_notification_accepted_request( $friendship_id, $initiator_id, $
|
|
890 |
);
|
891 |
bp_send_email( 'friends-request-accepted', $initiator_id, $args );
|
892 |
}
|
893 |
-
add_action( 'friends_friendship_accepted', 'friends_notification_accepted_request', 10, 3 );
|
44 |
|
45 |
// Setup the friendship data.
|
46 |
$friendship = new BP_Friends_Friendship;
|
47 |
+
$friendship->initiator_user_id = (int) $initiator_userid;
|
48 |
+
$friendship->friend_user_id = (int) $friend_userid;
|
49 |
$friendship->is_confirmed = 0;
|
50 |
$friendship->is_limited = 0;
|
51 |
$friendship->date_created = bp_core_current_time();
|
348 |
*
|
349 |
* @param int $initiator_user_id ID of the first user.
|
350 |
* @param int $friend_user_id ID of the second user.
|
351 |
+
* @return int|null ID of the friendship if found, otherwise false.
|
352 |
*/
|
353 |
function friends_get_friendship_id( $initiator_user_id, $friend_user_id ) {
|
354 |
return BP_Friends_Friendship::get_friendship_id( $initiator_user_id, $friend_user_id );
|
773 |
* @see bp_activity_mentions_script()
|
774 |
*/
|
775 |
function bp_friends_prime_mentions_results() {
|
776 |
+
|
777 |
+
// Stop here if user is not logged in.
|
778 |
+
if ( ! is_user_logged_in() ) {
|
779 |
+
return;
|
780 |
+
}
|
781 |
+
|
782 |
if ( ! bp_activity_maybe_load_mentions_scripts() ) {
|
783 |
return;
|
784 |
}
|
896 |
);
|
897 |
bp_send_email( 'friends-request-accepted', $initiator_id, $args );
|
898 |
}
|
899 |
+
add_action( 'friends_friendship_accepted', 'friends_notification_accepted_request', 10, 3 );
|
bp-friends/bp-friends-template.php
CHANGED
@@ -346,7 +346,7 @@ function bp_add_friend_button( $potential_friend_id = 0, $friend_status = false
|
|
346 |
* @param int $potential_friend_id ID of the user to whom the button
|
347 |
* applies. Default: value of {@link bp_get_potential_friend_id()}.
|
348 |
* @param bool $friend_status Not currently used.
|
349 |
-
* @return string HTML for the Add Friend button.
|
350 |
*/
|
351 |
function bp_get_add_friend_button( $potential_friend_id = 0, $friend_status = false ) {
|
352 |
|
@@ -441,8 +441,8 @@ function bp_add_friend_button( $potential_friend_id = 0, $friend_status = false
|
|
441 |
*
|
442 |
* @param int $user_id Optional. Default: the displayed user's ID, or the
|
443 |
* logged-in user's ID.
|
444 |
-
* @return string
|
445 |
-
*
|
446 |
*/
|
447 |
function bp_get_friend_ids( $user_id = 0 ) {
|
448 |
|
@@ -563,7 +563,7 @@ function bp_friend_accept_request_link() {
|
|
563 |
* @param string $value Accept-friendship URL.
|
564 |
* @param int $friendship_id ID of the friendship.
|
565 |
*/
|
566 |
-
return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/accept/' . $friendship_id, 'friends_accept_friendship' ), $friendship_id );
|
567 |
}
|
568 |
|
569 |
/**
|
@@ -598,7 +598,7 @@ function bp_friend_reject_request_link() {
|
|
598 |
* @param string $value Reject-friendship URL.
|
599 |
* @param int $friendship_id ID of the friendship.
|
600 |
*/
|
601 |
-
return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ), $friendship_id );
|
602 |
}
|
603 |
|
604 |
/**
|
346 |
* @param int $potential_friend_id ID of the user to whom the button
|
347 |
* applies. Default: value of {@link bp_get_potential_friend_id()}.
|
348 |
* @param bool $friend_status Not currently used.
|
349 |
+
* @return false|string HTML for the Add Friend button.
|
350 |
*/
|
351 |
function bp_get_add_friend_button( $potential_friend_id = 0, $friend_status = false ) {
|
352 |
|
441 |
*
|
442 |
* @param int $user_id Optional. Default: the displayed user's ID, or the
|
443 |
* logged-in user's ID.
|
444 |
+
* @return false|string A comma-separated list of friend IDs if any are found,
|
445 |
+
* otherwise false.
|
446 |
*/
|
447 |
function bp_get_friend_ids( $user_id = 0 ) {
|
448 |
|
563 |
* @param string $value Accept-friendship URL.
|
564 |
* @param int $friendship_id ID of the friendship.
|
565 |
*/
|
566 |
+
return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/accept/' . $friendship_id ), 'friends_accept_friendship' ), $friendship_id );
|
567 |
}
|
568 |
|
569 |
/**
|
598 |
* @param string $value Reject-friendship URL.
|
599 |
* @param int $friendship_id ID of the friendship.
|
600 |
*/
|
601 |
+
return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/reject/' . $friendship_id ), 'friends_reject_friendship' ), $friendship_id );
|
602 |
}
|
603 |
|
604 |
/**
|
bp-friends/classes/class-bp-core-friends-widget.php
CHANGED
@@ -111,7 +111,7 @@ class BP_Core_Friends_Widget extends WP_Widget {
|
|
111 |
<?php while ( bp_members() ) : bp_the_member(); ?>
|
112 |
<li class="vcard">
|
113 |
<div class="item-avatar">
|
114 |
-
<a href="<?php bp_member_permalink(); ?>"
|
115 |
</div>
|
116 |
|
117 |
<div class="item">
|
111 |
<?php while ( bp_members() ) : bp_the_member(); ?>
|
112 |
<li class="vcard">
|
113 |
<div class="item-avatar">
|
114 |
+
<a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>
|
115 |
</div>
|
116 |
|
117 |
<div class="item">
|
bp-friends/classes/class-bp-friends-friendship.php
CHANGED
@@ -588,8 +588,8 @@ class BP_Friends_Friendship {
|
|
588 |
* of the potential friendship/request.
|
589 |
* @param int $possible_friend_userid The ID of the user who is the
|
590 |
* recipient of the potential friendship/request.
|
591 |
-
* @return string $value The friendship status, from among 'not_friends',
|
592 |
-
*
|
593 |
*/
|
594 |
public static function check_is_friend( $initiator_userid, $possible_friend_userid ) {
|
595 |
global $wpdb;
|
@@ -825,8 +825,8 @@ class BP_Friends_Friendship {
|
|
825 |
* @param int $user_id ID of the user whose friends are being retrieved.
|
826 |
* @param int $total_friends Optional. Number of random friends to get.
|
827 |
* Default: 5.
|
828 |
-
* @return array|
|
829 |
-
*
|
830 |
*/
|
831 |
public static function get_random_friends( $user_id, $total_friends = 5 ) {
|
832 |
global $wpdb;
|
@@ -916,7 +916,7 @@ class BP_Friends_Friendship {
|
|
916 |
* @since 1.0.0
|
917 |
*
|
918 |
* @param int $friendship_id ID of the friendship.
|
919 |
-
* @return
|
920 |
*/
|
921 |
public static function get_user_ids_for_friendship( $friendship_id ) {
|
922 |
|
588 |
* of the potential friendship/request.
|
589 |
* @param int $possible_friend_userid The ID of the user who is the
|
590 |
* recipient of the potential friendship/request.
|
591 |
+
* @return string|false $value The friendship status, from among 'not_friends',
|
592 |
+
* 'is_friend', 'pending', and 'awaiting_response'.
|
593 |
*/
|
594 |
public static function check_is_friend( $initiator_userid, $possible_friend_userid ) {
|
595 |
global $wpdb;
|
825 |
* @param int $user_id ID of the user whose friends are being retrieved.
|
826 |
* @param int $total_friends Optional. Number of random friends to get.
|
827 |
* Default: 5.
|
828 |
+
* @return array|false An array of random friend user IDs on success;
|
829 |
+
* false if none are found.
|
830 |
*/
|
831 |
public static function get_random_friends( $user_id, $total_friends = 5 ) {
|
832 |
global $wpdb;
|
916 |
* @since 1.0.0
|
917 |
*
|
918 |
* @param int $friendship_id ID of the friendship.
|
919 |
+
* @return null|stdClass friend_user_id and initiator_user_id.
|
920 |
*/
|
921 |
public static function get_user_ids_for_friendship( $friendship_id ) {
|
922 |
|
bp-friends/js/widget-friends.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function friend_widget_click_handler(){jQuery(".widget div#friends-list-options a").on("click",function(){var
|
1 |
+
function friend_widget_click_handler(){jQuery(".widget div#friends-list-options a").on("click",function(){var e=this;return jQuery(e).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(i){jQuery(e).removeClass("loading"),friend_widget_response(i)}),!1})}function friend_widget_response(e){e=e.substr(0,e.length-1),"-1"!==(e=e.split("[[SPLIT]]"))[0]?jQuery(".widget ul#friends-list").fadeOut(200,function(){jQuery(".widget ul#friends-list").html(e[1]),jQuery(".widget ul#friends-list").fadeIn(200)}):jQuery(".widget ul#friends-list").fadeOut(200,function(){var i="<p>"+e[1]+"</p>";jQuery(".widget ul#friends-list").html(i),jQuery(".widget ul#friends-list").fadeIn(200)})}jQuery(document).ready(function(){friend_widget_click_handler(),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){friend_widget_click_handler()})});
|
bp-groups/admin/css/admin-rtl.css
CHANGED
@@ -12,50 +12,66 @@ body.toplevel_page_bp-groups table.groups th#last_active {
|
|
12 |
margin-left: 10px;
|
13 |
margin-top: 1px;
|
14 |
}
|
|
|
15 |
#bp-groups-edit-form input {
|
16 |
outline: medium none;
|
17 |
}
|
|
|
18 |
#bp-groups-edit-form input#bp-groups-name {
|
19 |
font-size: 1.7em;
|
20 |
width: 100%;
|
21 |
margin-bottom: 6px;
|
22 |
}
|
|
|
23 |
#bp-groups-edit-form input#bp-groups-new-members {
|
24 |
border: 1px solid #e5e5e5;
|
25 |
margin-top: 6px;
|
26 |
width: 100%;
|
27 |
}
|
|
|
28 |
#bp-groups-new-members-list {
|
29 |
margin: 0;
|
30 |
}
|
|
|
31 |
.bp-groups-settings-section {
|
32 |
margin-top: 10px;
|
33 |
-
line-height:
|
34 |
}
|
|
|
35 |
.bp-groups-settings-section legend {
|
36 |
margin-top: 10px;
|
37 |
-
font-weight:
|
38 |
}
|
|
|
39 |
.bp-groups-settings-section label {
|
40 |
clear: right;
|
41 |
display: block;
|
42 |
float: right;
|
43 |
vertical-align: middle;
|
44 |
}
|
|
|
45 |
#bp-groups-permalink-box {
|
46 |
line-height: 24px;
|
47 |
color: #666;
|
48 |
}
|
|
|
|
|
|
|
|
|
|
|
49 |
.bp-groups-member-type {
|
50 |
position: relative;
|
51 |
}
|
|
|
52 |
.bp-groups-member-type > h4 {
|
53 |
-
margin-bottom: .5em;
|
54 |
}
|
|
|
55 |
ul.bp-group-delete-list {
|
56 |
list-style-type: disc;
|
57 |
margin: 4px 26px;
|
58 |
}
|
|
|
59 |
/*
|
60 |
* Members Pagination
|
61 |
*/
|
@@ -64,21 +80,26 @@ ul.bp-group-delete-list {
|
|
64 |
text-align: left;
|
65 |
width: 100%;
|
66 |
}
|
|
|
67 |
.bp-group-admin-pagination.table-top {
|
68 |
top: 0;
|
69 |
}
|
|
|
70 |
.bp-group-admin-pagination.table-bottom {
|
71 |
bottom: 0;
|
72 |
}
|
|
|
73 |
.bp-group-admin-pagination-viewing {
|
74 |
color: #777;
|
75 |
font-size: 12px;
|
76 |
font-style: italic;
|
77 |
}
|
|
|
78 |
.bp-group-admin-pagination-links {
|
79 |
white-space: nowrap;
|
80 |
padding-right: 15px;
|
81 |
}
|
|
|
82 |
.bp-group-admin-pagination-links .page-numbers {
|
83 |
display: inline-block;
|
84 |
min-width: 12px;
|
@@ -90,9 +111,11 @@ ul.bp-group-delete-list {
|
|
90 |
text-align: center;
|
91 |
text-decoration: none;
|
92 |
}
|
|
|
93 |
.bp-group-admin-pagination-links a.page-numbers:hover {
|
94 |
text-decoration: underline;
|
95 |
}
|
|
|
96 |
.bp-group-admin-pagination-links .page-numbers.current,
|
97 |
.bp-group-admin-pagination-links .page-numbers.dots {
|
98 |
border-color: #ddd;
|
@@ -107,15 +130,18 @@ table.bp-group-members .uid-column {
|
|
107 |
padding-right: 20px;
|
108 |
padding-left: 20px;
|
109 |
}
|
|
|
110 |
table.bp-group-members .uname-column {
|
111 |
width: 70%;
|
112 |
}
|
|
|
113 |
table.bp-group-members .urole-column {
|
114 |
padding-right: 20px;
|
115 |
padding-left: 20px;
|
116 |
}
|
117 |
|
118 |
@media screen and (max-width: 782px) {
|
|
|
119 |
.bp-groups-settings-section label {
|
120 |
margin: 0.25em 0;
|
121 |
}
|
12 |
margin-left: 10px;
|
13 |
margin-top: 1px;
|
14 |
}
|
15 |
+
|
16 |
#bp-groups-edit-form input {
|
17 |
outline: medium none;
|
18 |
}
|
19 |
+
|
20 |
#bp-groups-edit-form input#bp-groups-name {
|
21 |
font-size: 1.7em;
|
22 |
width: 100%;
|
23 |
margin-bottom: 6px;
|
24 |
}
|
25 |
+
|
26 |
#bp-groups-edit-form input#bp-groups-new-members {
|
27 |
border: 1px solid #e5e5e5;
|
28 |
margin-top: 6px;
|
29 |
width: 100%;
|
30 |
}
|
31 |
+
|
32 |
#bp-groups-new-members-list {
|
33 |
margin: 0;
|
34 |
}
|
35 |
+
|
36 |
.bp-groups-settings-section {
|
37 |
margin-top: 10px;
|
38 |
+
line-height: 2;
|
39 |
}
|
40 |
+
|
41 |
.bp-groups-settings-section legend {
|
42 |
margin-top: 10px;
|
43 |
+
font-weight: 700;
|
44 |
}
|
45 |
+
|
46 |
.bp-groups-settings-section label {
|
47 |
clear: right;
|
48 |
display: block;
|
49 |
float: right;
|
50 |
vertical-align: middle;
|
51 |
}
|
52 |
+
|
53 |
#bp-groups-permalink-box {
|
54 |
line-height: 24px;
|
55 |
color: #666;
|
56 |
}
|
57 |
+
|
58 |
+
#bp-groups-permalink {
|
59 |
+
margin-left: 24px;
|
60 |
+
}
|
61 |
+
|
62 |
.bp-groups-member-type {
|
63 |
position: relative;
|
64 |
}
|
65 |
+
|
66 |
.bp-groups-member-type > h4 {
|
67 |
+
margin-bottom: 0.5em;
|
68 |
}
|
69 |
+
|
70 |
ul.bp-group-delete-list {
|
71 |
list-style-type: disc;
|
72 |
margin: 4px 26px;
|
73 |
}
|
74 |
+
|
75 |
/*
|
76 |
* Members Pagination
|
77 |
*/
|
80 |
text-align: left;
|
81 |
width: 100%;
|
82 |
}
|
83 |
+
|
84 |
.bp-group-admin-pagination.table-top {
|
85 |
top: 0;
|
86 |
}
|
87 |
+
|
88 |
.bp-group-admin-pagination.table-bottom {
|
89 |
bottom: 0;
|
90 |
}
|
91 |
+
|
92 |
.bp-group-admin-pagination-viewing {
|
93 |
color: #777;
|
94 |
font-size: 12px;
|
95 |
font-style: italic;
|
96 |
}
|
97 |
+
|
98 |
.bp-group-admin-pagination-links {
|
99 |
white-space: nowrap;
|
100 |
padding-right: 15px;
|
101 |
}
|
102 |
+
|
103 |
.bp-group-admin-pagination-links .page-numbers {
|
104 |
display: inline-block;
|
105 |
min-width: 12px;
|
111 |
text-align: center;
|
112 |
text-decoration: none;
|
113 |
}
|
114 |
+
|
115 |
.bp-group-admin-pagination-links a.page-numbers:hover {
|
116 |
text-decoration: underline;
|
117 |
}
|
118 |
+
|
119 |
.bp-group-admin-pagination-links .page-numbers.current,
|
120 |
.bp-group-admin-pagination-links .page-numbers.dots {
|
121 |
border-color: #ddd;
|
130 |
padding-right: 20px;
|
131 |
padding-left: 20px;
|
132 |
}
|
133 |
+
|
134 |
table.bp-group-members .uname-column {
|
135 |
width: 70%;
|
136 |
}
|
137 |
+
|
138 |
table.bp-group-members .urole-column {
|
139 |
padding-right: 20px;
|
140 |
padding-left: 20px;
|
141 |
}
|
142 |
|
143 |
@media screen and (max-width: 782px) {
|
144 |
+
|
145 |
.bp-groups-settings-section label {
|
146 |
margin: 0.25em 0;
|
147 |
}
|
bp-groups/admin/css/admin-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
body.toplevel_page_bp-groups table.groups th#members,body.toplevel_page_bp-groups table.groups th#status{width:10%}body.toplevel_page_bp-groups table.groups th#last_active{width:15%}#bp-groups-form .avatar{float:right;margin-left:10px;margin-top:1px}#bp-groups-edit-form input{outline:
|
1 |
+
body.toplevel_page_bp-groups table.groups th#members,body.toplevel_page_bp-groups table.groups th#status{width:10%}body.toplevel_page_bp-groups table.groups th#last_active{width:15%}#bp-groups-form .avatar{float:right;margin-left:10px;margin-top:1px}#bp-groups-edit-form input{outline:medium none}#bp-groups-edit-form input#bp-groups-name{font-size:1.7em;width:100%;margin-bottom:6px}#bp-groups-edit-form input#bp-groups-new-members{border:1px solid #e5e5e5;margin-top:6px;width:100%}#bp-groups-new-members-list{margin:0}.bp-groups-settings-section{margin-top:10px;line-height:2}.bp-groups-settings-section legend{margin-top:10px;font-weight:700}.bp-groups-settings-section label{clear:right;display:block;float:right;vertical-align:middle}#bp-groups-permalink-box{line-height:24px;color:#666}#bp-groups-permalink{margin-left:24px}.bp-groups-member-type{position:relative}.bp-groups-member-type>h4{margin-bottom:.5em}ul.bp-group-delete-list{list-style-type:disc;margin:4px 26px}.bp-group-admin-pagination{position:absolute;text-align:left;width:100%}.bp-group-admin-pagination.table-top{top:0}.bp-group-admin-pagination.table-bottom{bottom:0}.bp-group-admin-pagination-viewing{color:#777;font-size:12px;font-style:italic}.bp-group-admin-pagination-links{white-space:nowrap;padding-right:15px}.bp-group-admin-pagination-links .page-numbers{display:inline-block;min-width:12px;border:1px solid #ccc;padding:2px 4px 4px;background:#e5e5e5;line-height:1;font-weight:400;text-align:center;text-decoration:none}.bp-group-admin-pagination-links a.page-numbers:hover{text-decoration:underline}.bp-group-admin-pagination-links .page-numbers.current,.bp-group-admin-pagination-links .page-numbers.dots{border-color:#ddd;background:#f7f7f7;color:#a0a5aa}table.bp-group-members .uid-column{padding-right:20px;padding-left:20px}table.bp-group-members .uname-column{width:70%}table.bp-group-members .urole-column{padding-right:20px;padding-left:20px}@media screen and (max-width:782px){.bp-groups-settings-section label{margin:.25em 0}}
|
bp-groups/admin/css/admin.css
CHANGED
@@ -12,50 +12,66 @@ body.toplevel_page_bp-groups table.groups th#last_active {
|
|
12 |
margin-right: 10px;
|
13 |
margin-top: 1px;
|
14 |
}
|
|
|
15 |
#bp-groups-edit-form input {
|
16 |
outline: medium none;
|
17 |
}
|
|
|
18 |
#bp-groups-edit-form input#bp-groups-name {
|
19 |
font-size: 1.7em;
|
20 |
width: 100%;
|
21 |
margin-bottom: 6px;
|
22 |
}
|
|
|
23 |
#bp-groups-edit-form input#bp-groups-new-members {
|
24 |
border: 1px solid #e5e5e5;
|
25 |
margin-top: 6px;
|
26 |
width: 100%;
|
27 |
}
|
|
|
28 |
#bp-groups-new-members-list {
|
29 |
margin: 0;
|
30 |
}
|
|
|
31 |
.bp-groups-settings-section {
|
32 |
margin-top: 10px;
|
33 |
-
line-height:
|
34 |
}
|
|
|
35 |
.bp-groups-settings-section legend {
|
36 |
margin-top: 10px;
|
37 |
-
font-weight:
|
38 |
}
|
|
|
39 |
.bp-groups-settings-section label {
|
40 |
clear: left;
|
41 |
display: block;
|
42 |
float: left;
|
43 |
vertical-align: middle;
|
44 |
}
|
|
|
45 |
#bp-groups-permalink-box {
|
46 |
line-height: 24px;
|
47 |
color: #666;
|
48 |
}
|
|
|
|
|
|
|
|
|
|
|
49 |
.bp-groups-member-type {
|
50 |
position: relative;
|
51 |
}
|
|
|
52 |
.bp-groups-member-type > h4 {
|
53 |
-
margin-bottom: .5em;
|
54 |
}
|
|
|
55 |
ul.bp-group-delete-list {
|
56 |
list-style-type: disc;
|
57 |
margin: 4px 26px;
|
58 |
}
|
|
|
59 |
/*
|
60 |
* Members Pagination
|
61 |
*/
|
@@ -64,21 +80,26 @@ ul.bp-group-delete-list {
|
|
64 |
text-align: right;
|
65 |
width: 100%;
|
66 |
}
|
|
|
67 |
.bp-group-admin-pagination.table-top {
|
68 |
top: 0;
|
69 |
}
|
|
|
70 |
.bp-group-admin-pagination.table-bottom {
|
71 |
bottom: 0;
|
72 |
}
|
|
|
73 |
.bp-group-admin-pagination-viewing {
|
74 |
color: #777;
|
75 |
font-size: 12px;
|
76 |
font-style: italic;
|
77 |
}
|
|
|
78 |
.bp-group-admin-pagination-links {
|
79 |
white-space: nowrap;
|
80 |
padding-left: 15px;
|
81 |
}
|
|
|
82 |
.bp-group-admin-pagination-links .page-numbers {
|
83 |
display: inline-block;
|
84 |
min-width: 12px;
|
@@ -90,9 +111,11 @@ ul.bp-group-delete-list {
|
|
90 |
text-align: center;
|
91 |
text-decoration: none;
|
92 |
}
|
|
|
93 |
.bp-group-admin-pagination-links a.page-numbers:hover {
|
94 |
text-decoration: underline;
|
95 |
}
|
|
|
96 |
.bp-group-admin-pagination-links .page-numbers.current,
|
97 |
.bp-group-admin-pagination-links .page-numbers.dots {
|
98 |
border-color: #ddd;
|
@@ -107,15 +130,18 @@ table.bp-group-members .uid-column {
|
|
107 |
padding-left: 20px;
|
108 |
padding-right: 20px;
|
109 |
}
|
|
|
110 |
table.bp-group-members .uname-column {
|
111 |
width: 70%;
|
112 |
}
|
|
|
113 |
table.bp-group-members .urole-column {
|
114 |
padding-left: 20px;
|
115 |
padding-right: 20px;
|
116 |
}
|
117 |
|
118 |
@media screen and (max-width: 782px) {
|
|
|
119 |
.bp-groups-settings-section label {
|
120 |
margin: 0.25em 0;
|
121 |
}
|
12 |
margin-right: 10px;
|
13 |
margin-top: 1px;
|
14 |
}
|
15 |
+
|
16 |
#bp-groups-edit-form input {
|
17 |
outline: medium none;
|
18 |
}
|
19 |
+
|
20 |
#bp-groups-edit-form input#bp-groups-name {
|
21 |
font-size: 1.7em;
|
22 |
width: 100%;
|
23 |
margin-bottom: 6px;
|
24 |
}
|
25 |
+
|
26 |
#bp-groups-edit-form input#bp-groups-new-members {
|
27 |
border: 1px solid #e5e5e5;
|
28 |
margin-top: 6px;
|
29 |
width: 100%;
|
30 |
}
|
31 |
+
|
32 |
#bp-groups-new-members-list {
|
33 |
margin: 0;
|
34 |
}
|
35 |
+
|
36 |
.bp-groups-settings-section {
|
37 |
margin-top: 10px;
|
38 |
+
line-height: 2;
|
39 |
}
|
40 |
+
|
41 |
.bp-groups-settings-section legend {
|
42 |
margin-top: 10px;
|
43 |
+
font-weight: 700;
|
44 |
}
|
45 |
+
|
46 |
.bp-groups-settings-section label {
|
47 |
clear: left;
|
48 |
display: block;
|
49 |
float: left;
|
50 |
vertical-align: middle;
|
51 |
}
|
52 |
+
|
53 |
#bp-groups-permalink-box {
|
54 |
line-height: 24px;
|
55 |
color: #666;
|
56 |
}
|
57 |
+
|
58 |
+
#bp-groups-permalink {
|
59 |
+
margin-right: 24px;
|
60 |
+
}
|
61 |
+
|
62 |
.bp-groups-member-type {
|
63 |
position: relative;
|
64 |
}
|
65 |
+
|
66 |
.bp-groups-member-type > h4 {
|
67 |
+
margin-bottom: 0.5em;
|
68 |
}
|
69 |
+
|
70 |
ul.bp-group-delete-list {
|
71 |
list-style-type: disc;
|
72 |
margin: 4px 26px;
|
73 |
}
|
74 |
+
|
75 |
/*
|
76 |
* Members Pagination
|
77 |
*/
|
80 |
text-align: right;
|
81 |
width: 100%;
|
82 |
}
|
83 |
+
|
84 |
.bp-group-admin-pagination.table-top {
|
85 |
top: 0;
|
86 |
}
|
87 |
+
|
88 |
.bp-group-admin-pagination.table-bottom {
|
89 |
bottom: 0;
|
90 |
}
|
91 |
+
|
92 |
.bp-group-admin-pagination-viewing {
|
93 |
color: #777;
|
94 |
font-size: 12px;
|
95 |
font-style: italic;
|
96 |
}
|
97 |
+
|
98 |
.bp-group-admin-pagination-links {
|
99 |
white-space: nowrap;
|
100 |
padding-left: 15px;
|
101 |
}
|
102 |
+
|
103 |
.bp-group-admin-pagination-links .page-numbers {
|
104 |
display: inline-block;
|
105 |
min-width: 12px;
|
111 |
text-align: center;
|
112 |
text-decoration: none;
|
113 |
}
|
114 |
+
|
115 |
.bp-group-admin-pagination-links a.page-numbers:hover {
|
116 |
text-decoration: underline;
|
117 |
}
|
118 |
+
|
119 |
.bp-group-admin-pagination-links .page-numbers.current,
|
120 |
.bp-group-admin-pagination-links .page-numbers.dots {
|
121 |
border-color: #ddd;
|
130 |
padding-left: 20px;
|
131 |
padding-right: 20px;
|
132 |
}
|
133 |
+
|
134 |
table.bp-group-members .uname-column {
|
135 |
width: 70%;
|
136 |
}
|
137 |
+
|
138 |
table.bp-group-members .urole-column {
|
139 |
padding-left: 20px;
|
140 |
padding-right: 20px;
|
141 |
}
|
142 |
|
143 |
@media screen and (max-width: 782px) {
|
144 |
+
|
145 |
.bp-groups-settings-section label {
|
146 |
margin: 0.25em 0;
|
147 |
}
|
bp-groups/admin/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
body.toplevel_page_bp-groups table.groups th#members,body.toplevel_page_bp-groups table.groups th#status{width:10%}body.toplevel_page_bp-groups table.groups th#last_active{width:15%}#bp-groups-form .avatar{float:left;margin-right:10px;margin-top:1px}#bp-groups-edit-form input{outline:
|
1 |
+
body.toplevel_page_bp-groups table.groups th#members,body.toplevel_page_bp-groups table.groups th#status{width:10%}body.toplevel_page_bp-groups table.groups th#last_active{width:15%}#bp-groups-form .avatar{float:left;margin-right:10px;margin-top:1px}#bp-groups-edit-form input{outline:medium none}#bp-groups-edit-form input#bp-groups-name{font-size:1.7em;width:100%;margin-bottom:6px}#bp-groups-edit-form input#bp-groups-new-members{border:1px solid #e5e5e5;margin-top:6px;width:100%}#bp-groups-new-members-list{margin:0}.bp-groups-settings-section{margin-top:10px;line-height:2}.bp-groups-settings-section legend{margin-top:10px;font-weight:700}.bp-groups-settings-section label{clear:left;display:block;float:left;vertical-align:middle}#bp-groups-permalink-box{line-height:24px;color:#666}#bp-groups-permalink{margin-right:24px}.bp-groups-member-type{position:relative}.bp-groups-member-type>h4{margin-bottom:.5em}ul.bp-group-delete-list{list-style-type:disc;margin:4px 26px}.bp-group-admin-pagination{position:absolute;text-align:right;width:100%}.bp-group-admin-pagination.table-top{top:0}.bp-group-admin-pagination.table-bottom{bottom:0}.bp-group-admin-pagination-viewing{color:#777;font-size:12px;font-style:italic}.bp-group-admin-pagination-links{white-space:nowrap;padding-left:15px}.bp-group-admin-pagination-links .page-numbers{display:inline-block;min-width:12px;border:1px solid #ccc;padding:2px 4px 4px;background:#e5e5e5;line-height:1;font-weight:400;text-align:center;text-decoration:none}.bp-group-admin-pagination-links a.page-numbers:hover{text-decoration:underline}.bp-group-admin-pagination-links .page-numbers.current,.bp-group-admin-pagination-links .page-numbers.dots{border-color:#ddd;background:#f7f7f7;color:#a0a5aa}table.bp-group-members .uid-column{padding-left:20px;padding-right:20px}table.bp-group-members .uname-column{width:70%}table.bp-group-members .urole-column{padding-left:20px;padding-right:20px}@media screen and (max-width:782px){.bp-groups-settings-section label{margin:.25em 0}}
|
bp-groups/admin/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e){function n(n,o){e("#bp-groups-new-members-list").append('<li data-login="'+o.item.value+'"><a href="#" class="bp-groups-remove-new-member">x</a> '+o.item.label+"</li>")}var o="undefined"!=typeof group_id?"&group_id="+group_id:"";e(document).ready(function(){window.warn_on_leave=!1,e(".bp-suggest-user").autocomplete({source:ajaxurl+"?action=bp_group_admin_member_autocomplete"+o,delay:500,minLength:2,position:"undefined"!=typeof isRtl&&isRtl?{my:"right top",at:"right bottom",offset:"0, -1"}:{offset:"0, -1"},open:function(){e(this).addClass("open")},close:function(){e(this).removeClass("open"),e(this).val("")},select:function(e,o){n(e,o)}}),e("#bp-groups-new-members").prop("placeholder",BP_Group_Admin.add_member_placeholder),e("#bp_group_add_members").on("click",".bp-groups-remove-new-member",function(n){n.preventDefault(),e(n.target.parentNode).remove()}),e(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}),e("input#save").on("click",function(){var n=[];e("#bp-groups-new-members-list li").each(function(){n.push(e(this).data("login"))}),n.length&&e("#bp-groups-new-members").val("").val(n.join(", ")),window.warn_on_leave=!1}),window.onbeforeunload=function(){if(window.warn_on_leave)return BP_Group_Admin.warn_on_leave}})}(jQuery);
|
bp-groups/bp-groups-activity.php
CHANGED
@@ -18,7 +18,7 @@ defined( 'ABSPATH' ) || exit;
|
|
18 |
*
|
19 |
* @since 1.1.0
|
20 |
*
|
21 |
-
* @return
|
22 |
*/
|
23 |
function groups_register_activity_actions() {
|
24 |
$bp = buddypress();
|
@@ -190,6 +190,9 @@ function bp_groups_format_activity_action_group_details_updated( $action, $activ
|
|
190 |
} elseif ( ! empty( $changed['description']['old'] ) && ! empty( $changed['description']['new'] ) ) {
|
191 |
$action = sprintf( __( '%1$s changed the description of the group %2$s from "%3$s" to "%4$s"', 'buddypress' ), $user_link, $group_link, esc_html( $changed['description']['old'] ), esc_html( $changed['description']['new'] ) );
|
192 |
|
|
|
|
|
|
|
193 |
}
|
194 |
|
195 |
/**
|
@@ -337,7 +340,7 @@ add_filter( 'bp_activity_set_groups_scope_args', 'bp_groups_filter_activity_scop
|
|
337 |
* @type bool $hide_sitewide Default: True if the current group is not
|
338 |
* public, otherwise false.
|
339 |
* }
|
340 |
-
* @return bool See {@link bp_activity_add()}.
|
341 |
*/
|
342 |
function groups_record_activity( $args = '' ) {
|
343 |
|
@@ -384,7 +387,7 @@ function groups_record_activity( $args = '' ) {
|
|
384 |
*
|
385 |
* @param int $group_id Optional. The ID of the group whose last_activity is
|
386 |
* being updated. Default: the current group's ID.
|
387 |
-
* @return
|
388 |
*/
|
389 |
function groups_update_last_activity( $group_id = 0 ) {
|
390 |
|
@@ -411,7 +414,7 @@ add_action( 'groups_new_forum_topic_post', 'groups_update_last_activity' );
|
|
411 |
*
|
412 |
* @param int $user_id ID of the user joining the group.
|
413 |
* @param int $group_id ID of the group.
|
414 |
-
* @return
|
415 |
*/
|
416 |
function bp_groups_membership_accepted_add_activity( $user_id, $group_id ) {
|
417 |
|
@@ -452,7 +455,7 @@ add_action( 'groups_membership_accepted', 'bp_groups_membership_accepted_add_act
|
|
452 |
* @param int $group_id ID of the group.
|
453 |
* @param BP_Groups_Group $old_group Group object before the details had been changed.
|
454 |
* @param bool $notify_members True if the admin has opted to notify group members, otherwise false.
|
455 |
-
* @return
|
456 |
*/
|
457 |
function bp_groups_group_details_updated_add_activity( $group_id, $old_group, $notify_members ) {
|
458 |
|
@@ -461,7 +464,7 @@ function bp_groups_group_details_updated_add_activity( $group_id, $old_group, $n
|
|
461 |
return false;
|
462 |
}
|
463 |
|
464 |
-
if ( ! isset( $old_group->name ) || ! isset( $old_group->description ) ) {
|
465 |
return false;
|
466 |
}
|
467 |
|
@@ -489,6 +492,13 @@ function bp_groups_group_details_updated_add_activity( $group_id, $old_group, $n
|
|
489 |
);
|
490 |
}
|
491 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
if ( $group->description !== $old_group->description ) {
|
493 |
$changed['description'] = array(
|
494 |
'old' => $old_group->description,
|
18 |
*
|
19 |
* @since 1.1.0
|
20 |
*
|
21 |
+
* @return false|null False on failure.
|
22 |
*/
|
23 |
function groups_register_activity_actions() {
|
24 |
$bp = buddypress();
|
190 |
} elseif ( ! empty( $changed['description']['old'] ) && ! empty( $changed['description']['new'] ) ) {
|
191 |
$action = sprintf( __( '%1$s changed the description of the group %2$s from "%3$s" to "%4$s"', 'buddypress' ), $user_link, $group_link, esc_html( $changed['description']['old'] ), esc_html( $changed['description']['new'] ) );
|
192 |
|
193 |
+
} elseif ( ! empty( $changed['slug']['old'] ) && ! empty( $changed['slug']['new'] ) ) {
|
194 |
+
$action = sprintf( __( '%1$s changed the permalink of the group %2$s.', 'buddypress' ), $user_link, $group_link );
|
195 |
+
|
196 |
}
|
197 |
|
198 |
/**
|
340 |
* @type bool $hide_sitewide Default: True if the current group is not
|
341 |
* public, otherwise false.
|
342 |
* }
|
343 |
+
* @return WP_Error|bool|int See {@link bp_activity_add()}.
|
344 |
*/
|
345 |
function groups_record_activity( $args = '' ) {
|
346 |
|
387 |
*
|
388 |
* @param int $group_id Optional. The ID of the group whose last_activity is
|
389 |
* being updated. Default: the current group's ID.
|
390 |
+
* @return false|null False on failure.
|
391 |
*/
|
392 |
function groups_update_last_activity( $group_id = 0 ) {
|
393 |
|
414 |
*
|
415 |
* @param int $user_id ID of the user joining the group.
|
416 |
* @param int $group_id ID of the group.
|
417 |
+
* @return false|null False on failure.
|
418 |
*/
|
419 |
function bp_groups_membership_accepted_add_activity( $user_id, $group_id ) {
|
420 |
|
455 |
* @param int $group_id ID of the group.
|
456 |
* @param BP_Groups_Group $old_group Group object before the details had been changed.
|
457 |
* @param bool $notify_members True if the admin has opted to notify group members, otherwise false.
|
458 |
+
* @return null|WP_Error|bool|int The ID of the activity on success. False on error.
|
459 |
*/
|
460 |
function bp_groups_group_details_updated_add_activity( $group_id, $old_group, $notify_members ) {
|
461 |
|
464 |
return false;
|
465 |
}
|
466 |
|
467 |
+
if ( ! isset( $old_group->name ) || ! isset( $old_group->slug ) || ! isset( $old_group->description ) ) {
|
468 |
return false;
|
469 |
}
|
470 |
|
492 |
);
|
493 |
}
|
494 |
|
495 |
+
if ( $group->slug !== $old_group->slug ) {
|
496 |
+
$changed['slug'] = array(
|
497 |
+
'old' => $old_group->slug,
|
498 |
+
'new' => $group->slug,
|
499 |
+
);
|
500 |
+
}
|
501 |
+
|
502 |
if ( $group->description !== $old_group->description ) {
|
503 |
$changed['description'] = array(
|
504 |
'old' => $old_group->description,
|
bp-groups/bp-groups-admin.php
CHANGED
@@ -236,19 +236,29 @@ function bp_groups_admin_load() {
|
|
236 |
$error = 0;
|
237 |
$success_new = $error_new = $success_modified = $error_modified = array();
|
238 |
|
239 |
-
//
|
240 |
-
|
241 |
-
|
242 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
$
|
251 |
-
|
|
|
|
|
|
|
|
|
252 |
}
|
253 |
|
254 |
// Enable discussion forum.
|
@@ -454,7 +464,7 @@ function bp_groups_admin_load() {
|
|
454 |
* @param string $value Will always be false unless another plugin filters it first.
|
455 |
* @param string $option Screen option name.
|
456 |
* @param string $new_value Screen option form value.
|
457 |
-
* @return string Option value. False to abandon update.
|
458 |
*/
|
459 |
function bp_groups_admin_screen_options( $value, $option, $new_value ) {
|
460 |
if ( 'toplevel_page_bp_groups_per_page' != $option && 'toplevel_page_bp_groups_network_per_page' != $option )
|
@@ -518,22 +528,10 @@ function bp_groups_admin_edit() {
|
|
518 |
}
|
519 |
|
520 |
if ( ! empty( $errors ) ) {
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
case -2 :
|
527 |
-
$messages[] = __( 'Group description cannot be empty.', 'buddypress' );
|
528 |
-
break;
|
529 |
-
|
530 |
-
case -3 :
|
531 |
-
$messages[] = __( 'Group name and description cannot be empty.', 'buddypress' );
|
532 |
-
break;
|
533 |
-
|
534 |
-
default :
|
535 |
-
$messages[] = __( 'An error occurred when trying to update your group details.', 'buddypress' );
|
536 |
-
break;
|
537 |
}
|
538 |
|
539 |
} elseif ( ! empty( $updated ) ) {
|
@@ -612,7 +610,11 @@ function bp_groups_admin_edit() {
|
|
612 |
?></label>
|
613 |
<input type="text" name="bp-groups-name" id="bp-groups-name" value="<?php echo esc_attr( stripslashes( $group_name ) ) ?>" />
|
614 |
<div id="bp-groups-permalink-box">
|
615 |
-
<strong><?php esc_html_e( 'Permalink:', 'buddypress' ) ?></strong>
|
|
|
|
|
|
|
|
|
616 |
</div>
|
617 |
|
618 |
<label for="bp-groups-description" class="screen-reader-text"><?php
|
@@ -873,6 +875,14 @@ function bp_groups_admin_edit_metabox_members( $item ) {
|
|
873 |
'group_id' => $item->id,
|
874 |
'group_role' => array( $type ),
|
875 |
'type' => 'alphabetical',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
876 |
'per_page' => apply_filters( 'bp_groups_admin_members_type_per_page', 10, $type ),
|
877 |
'page' => $current_type_page,
|
878 |
) );
|
@@ -1029,7 +1039,7 @@ function bp_groups_admin_edit_metabox_status( $item ) {
|
|
1029 |
*
|
1030 |
* @since 2.6.0
|
1031 |
*
|
1032 |
-
* @param BP_Groups_Group|null $
|
1033 |
*/
|
1034 |
function bp_groups_admin_edit_metabox_group_type( BP_Groups_Group $group = null ) {
|
1035 |
|
@@ -1075,6 +1085,8 @@ function bp_groups_admin_edit_metabox_group_type( BP_Groups_Group $group = null
|
|
1075 |
* Process changes from the Group Type metabox.
|
1076 |
*
|
1077 |
* @since 2.6.0
|
|
|
|
|
1078 |
*/
|
1079 |
function bp_groups_process_group_type_update( $group_id ) {
|
1080 |
if ( ! isset( $_POST['bp-group-type-nonce'] ) ) {
|
236 |
$error = 0;
|
237 |
$success_new = $error_new = $success_modified = $error_modified = array();
|
238 |
|
239 |
+
// Name, description and slug must not be empty.
|
240 |
+
if ( empty( $_POST['bp-groups-name'] ) ) {
|
241 |
+
$error = $error - 1;
|
242 |
+
}
|
243 |
+
if ( empty( $_POST['bp-groups-description'] ) ) {
|
244 |
+
$error = $error - 2;
|
245 |
+
}
|
246 |
+
if ( empty( $_POST['bp-groups-slug'] ) ) {
|
247 |
+
$error = $error - 4;
|
248 |
+
}
|
249 |
|
250 |
+
/*
|
251 |
+
* Group name, slug, and description are handled with
|
252 |
+
* groups_edit_base_group_details().
|
253 |
+
*/
|
254 |
+
if ( ! $error && ! groups_edit_base_group_details( array(
|
255 |
+
'group_id' => $group_id,
|
256 |
+
'name' => $_POST['bp-groups-name'],
|
257 |
+
'slug' => $_POST['bp-groups-slug'],
|
258 |
+
'description' => $_POST['bp-groups-description'],
|
259 |
+
'notify_members' => false,
|
260 |
+
) ) ) {
|
261 |
+
$error = $group_id;
|
262 |
}
|
263 |
|
264 |
// Enable discussion forum.
|
464 |
* @param string $value Will always be false unless another plugin filters it first.
|
465 |
* @param string $option Screen option name.
|
466 |
* @param string $new_value Screen option form value.
|
467 |
+
* @return string|int Option value. False to abandon update.
|
468 |
*/
|
469 |
function bp_groups_admin_screen_options( $value, $option, $new_value ) {
|
470 |
if ( 'toplevel_page_bp_groups_per_page' != $option && 'toplevel_page_bp_groups_network_per_page' != $option )
|
528 |
}
|
529 |
|
530 |
if ( ! empty( $errors ) ) {
|
531 |
+
if ( $errors < 0 ) {
|
532 |
+
$messages[] = __( 'Group name, slug, and description are all required fields.', 'buddypress' );
|
533 |
+
} else {
|
534 |
+
$messages[] = __( 'An error occurred when trying to update your group details.', 'buddypress' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
}
|
536 |
|
537 |
} elseif ( ! empty( $updated ) ) {
|
610 |
?></label>
|
611 |
<input type="text" name="bp-groups-name" id="bp-groups-name" value="<?php echo esc_attr( stripslashes( $group_name ) ) ?>" />
|
612 |
<div id="bp-groups-permalink-box">
|
613 |
+
<strong><?php esc_html_e( 'Permalink:', 'buddypress' ) ?></strong>
|
614 |
+
<span id="bp-groups-permalink">
|
615 |
+
<?php bp_groups_directory_permalink(); ?> <input type="text" id="bp-groups-slug" name="bp-groups-slug" value="<?php bp_group_slug( $group ); ?>" autocomplete="off"> /
|
616 |
+
</span>
|
617 |
+
<a href="<?php echo bp_group_permalink( $group ) ?>" class="button button-small" id="bp-groups-visit-group"><?php esc_html_e( 'Visit Group', 'buddypress' ) ?></a>
|
618 |
</div>
|
619 |
|
620 |
<label for="bp-groups-description" class="screen-reader-text"><?php
|
875 |
'group_id' => $item->id,
|
876 |
'group_role' => array( $type ),
|
877 |
'type' => 'alphabetical',
|
878 |
+
/**
|
879 |
+
* Filters the admin members type per page value.
|
880 |
+
*
|
881 |
+
* @since 2.8.0
|
882 |
+
*
|
883 |
+
* @param int $value Member types per page. Default 10.
|
884 |
+
* @param string $type Member type.
|
885 |
+
*/
|
886 |
'per_page' => apply_filters( 'bp_groups_admin_members_type_per_page', 10, $type ),
|
887 |
'page' => $current_type_page,
|
888 |
) );
|
1039 |
*
|
1040 |
* @since 2.6.0
|
1041 |
*
|
1042 |
+
* @param BP_Groups_Group|null $group The BP_Groups_Group object corresponding to the group being edited.
|
1043 |
*/
|
1044 |
function bp_groups_admin_edit_metabox_group_type( BP_Groups_Group $group = null ) {
|
1045 |
|
1085 |
* Process changes from the Group Type metabox.
|
1086 |
*
|
1087 |
* @since 2.6.0
|
1088 |
+
*
|
1089 |
+
* @param int $group_id Group ID.
|
1090 |
*/
|
1091 |
function bp_groups_process_group_type_update( $group_id ) {
|
1092 |
if ( ! isset( $_POST['bp-group-type-nonce'] ) ) {
|
bp-groups/bp-groups-cache.php
CHANGED
@@ -231,6 +231,8 @@ add_action( 'groups_delete_group', 'groups_clear_group_type_cache' );
|
|
231 |
* Clear caches on membership save.
|
232 |
*
|
233 |
* @since 2.6.0
|
|
|
|
|
234 |
*/
|
235 |
function bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member ) {
|
236 |
wp_cache_delete( $member->user_id, 'bp_groups_memberships_for_user' );
|
@@ -243,6 +245,9 @@ add_action( 'groups_member_before_remove', 'bp_groups_clear_user_group_cache_on_
|
|
243 |
* Clear group memberships cache on miscellaneous actions not covered by the 'after_save' hook.
|
244 |
*
|
245 |
* @since 2.6.0
|
|
|
|
|
|
|
246 |
*/
|
247 |
function bp_groups_clear_user_group_cache_on_other_events( $user_id, $group_id ) {
|
248 |
wp_cache_delete( $user_id, 'bp_groups_memberships_for_user' );
|
231 |
* Clear caches on membership save.
|
232 |
*
|
233 |
* @since 2.6.0
|
234 |
+
*
|
235 |
+
* @param BP_Groups_Member $member BP Groups Member instance.
|
236 |
*/
|
237 |
function bp_groups_clear_user_group_cache_on_membership_save( BP_Groups_Member $member ) {
|
238 |
wp_cache_delete( $member->user_id, 'bp_groups_memberships_for_user' );
|
245 |
* Clear group memberships cache on miscellaneous actions not covered by the 'after_save' hook.
|
246 |
*
|
247 |
* @since 2.6.0
|
248 |
+
*
|
249 |
+
* @param int $user_id Current user ID.
|
250 |
+
* @param int $group_id Current group ID.
|
251 |
*/
|
252 |
function bp_groups_clear_user_group_cache_on_other_events( $user_id, $group_id ) {
|
253 |
wp_cache_delete( $user_id, 'bp_groups_memberships_for_user' );
|
bp-groups/bp-groups-forums.php
CHANGED
@@ -66,7 +66,7 @@ function groups_new_group_forum( $group_id = 0, $group_name = '', $group_desc =
|
|
66 |
* @since 1.1.0
|
67 |
*
|
68 |
* @param int $group_id Group id, passed from groups_details_updated.
|
69 |
-
* @return
|
70 |
*/
|
71 |
function groups_update_group_forum( $group_id ) {
|
72 |
|
66 |
* @since 1.1.0
|
67 |
*
|
68 |
* @param int $group_id Group id, passed from groups_details_updated.
|
69 |
+
* @return false|null
|
70 |
*/
|
71 |
function groups_update_group_forum( $group_id ) {
|
72 |
|
bp-groups/bp-groups-functions.php
CHANGED
@@ -218,28 +218,76 @@ function groups_create_group( $args = '' ) {
|
|
218 |
*
|
219 |
* @since 1.0.0
|
220 |
*
|
221 |
-
* @param
|
222 |
-
*
|
223 |
-
*
|
224 |
-
*
|
225 |
-
*
|
|
|
|
|
|
|
|
|
226 |
* @return bool True on success, false on failure.
|
227 |
*/
|
228 |
-
function groups_edit_base_group_details( $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
|
230 |
-
if (
|
231 |
return false;
|
|
|
232 |
|
233 |
-
$group = groups_get_group( $group_id );
|
234 |
$old_group = clone $group;
|
235 |
|
236 |
-
|
237 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
-
if (
|
240 |
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
|
242 |
-
if ( $notify_members ) {
|
243 |
groups_notification_group_updated( $group->id, $old_group );
|
244 |
}
|
245 |
|
@@ -252,7 +300,7 @@ function groups_edit_base_group_details( $group_id, $group_name, $group_desc, $n
|
|
252 |
* @param BP_Groups_Group $old_group Group object, before being modified.
|
253 |
* @param bool $notify_members Whether to send an email notification to members about the change.
|
254 |
*/
|
255 |
-
do_action( 'groups_details_updated', $group->id, $old_group, $notify_members );
|
256 |
|
257 |
return true;
|
258 |
}
|
@@ -270,6 +318,7 @@ function groups_edit_base_group_details( $group_id, $group_name, $group_desc, $n
|
|
270 |
* @param string $status Group status. 'public', 'private', 'hidden'.
|
271 |
* @param string|bool $invite_status Optional. Who is allowed to send invitations
|
272 |
* to the group. 'members', 'mods', or 'admins'.
|
|
|
273 |
* @return bool True on success, false on failure.
|
274 |
*/
|
275 |
function groups_edit_group_settings( $group_id, $enable_forum, $status, $invite_status = false, $parent_id = false ) {
|
@@ -387,6 +436,9 @@ function groups_is_valid_status( $status ) {
|
|
387 |
function groups_check_slug( $slug ) {
|
388 |
$bp = buddypress();
|
389 |
|
|
|
|
|
|
|
390 |
if ( 'wp' == substr( $slug, 0, 2 ) )
|
391 |
$slug = substr( $slug, 2, strlen( $slug ) - 2 );
|
392 |
|
@@ -428,6 +480,18 @@ function groups_get_id( $group_slug ) {
|
|
428 |
return BP_Groups_Group::group_exists( $group_slug );
|
429 |
}
|
430 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
/** User Actions **************************************************************/
|
432 |
|
433 |
/**
|
@@ -594,7 +658,7 @@ function groups_get_group_mods( $group_id ) {
|
|
594 |
* 'first_joined', or any of the $type params available
|
595 |
* in {@link BP_User_Query}. Default: 'last_joined'.
|
596 |
* }
|
597 |
-
* @return array Multi-d array of 'members' list and 'count'.
|
598 |
*/
|
599 |
function groups_get_group_members( $args = array() ) {
|
600 |
|
@@ -703,11 +767,12 @@ function groups_get_groups( $args = '' ) {
|
|
703 |
$defaults = array(
|
704 |
'type' => false, // Active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts.
|
705 |
'order' => 'DESC', // 'ASC' or 'DESC'
|
706 |
-
'orderby' => 'date_created', // date_created, last_activity, total_member_count, name, random.
|
707 |
'user_id' => false, // Pass a user_id to limit to only groups that this user is a member of.
|
708 |
'include' => false, // Only include these specific groups (group_ids).
|
709 |
'exclude' => false, // Do not include these specific groups (group_ids).
|
710 |
'parent_id' => null, // Get groups that are children of the specified group(s).
|
|
|
711 |
'search_terms' => false, // Limit to groups that match these search terms.
|
712 |
'search_columns' => array(), // Select which columns to search.
|
713 |
'group_type' => '', // Array or comma-separated list of group types to limit results to.
|
@@ -715,6 +780,7 @@ function groups_get_groups( $args = '' ) {
|
|
715 |
'group_type__not_in' => '', // Array or comma-separated list of group types that will be excluded from results.
|
716 |
'meta_query' => false, // Filter by groupmeta. See WP_Meta_Query for syntax.
|
717 |
'show_hidden' => false, // Show hidden groups to non-admins.
|
|
|
718 |
'per_page' => 20, // The number of results to return per page.
|
719 |
'page' => 1, // The page to return if limiting per page.
|
720 |
'update_meta_cache' => true, // Pre-fetch groupmeta for queried groups.
|
@@ -728,6 +794,7 @@ function groups_get_groups( $args = '' ) {
|
|
728 |
'user_id' => $r['user_id'],
|
729 |
'include' => $r['include'],
|
730 |
'exclude' => $r['exclude'],
|
|
|
731 |
'parent_id' => $r['parent_id'],
|
732 |
'search_terms' => $r['search_terms'],
|
733 |
'search_columns' => $r['search_columns'],
|
@@ -736,6 +803,7 @@ function groups_get_groups( $args = '' ) {
|
|
736 |
'group_type__not_in' => $r['group_type__not_in'],
|
737 |
'meta_query' => $r['meta_query'],
|
738 |
'show_hidden' => $r['show_hidden'],
|
|
|
739 |
'per_page' => $r['per_page'],
|
740 |
'page' => $r['page'],
|
741 |
'update_meta_cache' => $r['update_meta_cache'],
|
@@ -1162,7 +1230,7 @@ function groups_is_user_pending( $user_id, $group_id ) {
|
|
1162 |
*
|
1163 |
* @param int $user_id ID of the user.
|
1164 |
* @param int $group_id ID of the group.
|
1165 |
-
* @return
|
1166 |
*/
|
1167 |
function groups_is_user_creator( $user_id, $group_id ) {
|
1168 |
return BP_Groups_Member::check_is_creator( $user_id, $group_id );
|
@@ -1184,7 +1252,7 @@ function groups_is_user_creator( $user_id, $group_id ) {
|
|
1184 |
* @type int $group_id Optional. ID of the group to be affiliated with the
|
1185 |
* update. Default: ID of the current group.
|
1186 |
* }
|
1187 |
-
* @return
|
1188 |
*/
|
1189 |
function groups_post_update( $args = '' ) {
|
1190 |
if ( ! bp_is_active( 'activity' ) ) {
|
@@ -1528,6 +1596,11 @@ function groups_send_invites( $user_id, $group_id ) {
|
|
1528 |
for ( $i = 0, $count = count( $invited_users ); $i < $count; ++$i ) {
|
1529 |
$member = new BP_Groups_Member( $invited_users[$i], $group_id );
|
1530 |
|
|
|
|
|
|
|
|
|
|
|
1531 |
// Send the actual invite.
|
1532 |
groups_notification_group_invites( $group, $member, $user_id );
|
1533 |
|
@@ -1552,14 +1625,19 @@ function groups_send_invites( $user_id, $group_id ) {
|
|
1552 |
* Get IDs of users with outstanding invites to a given group from a specified user.
|
1553 |
*
|
1554 |
* @since 1.0.0
|
|
|
1555 |
*
|
1556 |
-
* @param
|
1557 |
-
* @param
|
1558 |
-
* @
|
1559 |
-
*
|
|
|
|
|
|
|
|
|
1560 |
*/
|
1561 |
-
function groups_get_invites_for_group( $user_id, $group_id ) {
|
1562 |
-
return BP_Groups_Group::get_invites( $user_id, $group_id );
|
1563 |
}
|
1564 |
|
1565 |
/**
|
@@ -1921,7 +1999,7 @@ function groups_reject_membership_request( $membership_id, $user_id = 0, $group_
|
|
1921 |
* @param int $group_id Optional. ID of the group to which membership is being
|
1922 |
* requested. Provide this value along with $user_id to
|
1923 |
* override $membership_id.
|
1924 |
-
* @return
|
1925 |
*/
|
1926 |
function groups_delete_membership_request( $membership_id, $user_id = 0, $group_id = 0 ) {
|
1927 |
if ( !empty( $user_id ) && !empty( $group_id ) )
|
@@ -2308,11 +2386,11 @@ function bp_groups_get_group_type_object( $group_type ) {
|
|
2308 |
* @since 2.6.0
|
2309 |
* @since 2.7.0 $group_type parameter also accepts an array of group types now.
|
2310 |
*
|
2311 |
-
* @param int $
|
2312 |
* @param string|array $group_type Group type or array of group types to set.
|
2313 |
* @param bool $append Optional. True to append this to existing types for group,
|
2314 |
* false to replace. Default: false.
|
2315 |
-
* @return array $retval See bp_set_object_terms().
|
2316 |
*/
|
2317 |
function bp_groups_set_group_type( $group_id, $group_type, $append = false ) {
|
2318 |
// Pass an empty group type to remove group's type.
|
@@ -2409,7 +2487,7 @@ function bp_groups_get_group_type( $group_id, $single = true ) {
|
|
2409 |
*
|
2410 |
* @since 2.6.0
|
2411 |
*
|
2412 |
-
* @param int $
|
2413 |
* @param string $group_type Group type.
|
2414 |
* @return bool|WP_Error $deleted True on success. False or WP_Error on failure.
|
2415 |
*/
|
@@ -2487,7 +2565,7 @@ function bp_get_current_group_directory_type() {
|
|
2487 |
* @since 2.6.0
|
2488 |
*
|
2489 |
* @param int $group_id ID of the group.
|
2490 |
-
* @return array $value See {@see bp_groups_set_group_type()}.
|
2491 |
*/
|
2492 |
function bp_remove_group_type_on_group_delete( $group_id = 0 ) {
|
2493 |
bp_groups_set_group_type( $group_id, '' );
|
218 |
*
|
219 |
* @since 1.0.0
|
220 |
*
|
221 |
+
* @param array $args {
|
222 |
+
* An array of optional arguments.
|
223 |
+
* @type int $group_id ID of the group.
|
224 |
+
* @type string $name Name of the group.
|
225 |
+
* @type string $slug Slug of the group.
|
226 |
+
* @type string $description Description of the group.
|
227 |
+
* @type bool $notify_members Whether to send an email notification to group
|
228 |
+
* members about changes in these details.
|
229 |
+
* }
|
230 |
* @return bool True on success, false on failure.
|
231 |
*/
|
232 |
+
function groups_edit_base_group_details( $args = array() ) {
|
233 |
+
|
234 |
+
// Backward compatibility with old method of passing arguments.
|
235 |
+
if ( ! is_array( $args ) || func_num_args() > 1 ) {
|
236 |
+
_deprecated_argument( __METHOD__, '2.9.0', sprintf( __( 'Arguments passed to %1$s should be in an associative array. See the inline documentation at %2$s for more details.', 'buddypress' ), __METHOD__, __FILE__ ) );
|
237 |
+
|
238 |
+
$old_args_keys = array(
|
239 |
+
0 => 'group_id',
|
240 |
+
1 => 'name',
|
241 |
+
2 => 'description',
|
242 |
+
3 => 'notify_members',
|
243 |
+
);
|
244 |
+
|
245 |
+
$args = bp_core_parse_args_array( $old_args_keys, func_get_args() );
|
246 |
+
}
|
247 |
+
|
248 |
+
$r = wp_parse_args( $args, array(
|
249 |
+
'group_id' => bp_get_current_group_id(),
|
250 |
+
'name' => null,
|
251 |
+
'slug' => null,
|
252 |
+
'description' => null,
|
253 |
+
'notify_members' => false,
|
254 |
+
) );
|
255 |
|
256 |
+
if ( ! $r['group_id'] ) {
|
257 |
return false;
|
258 |
+
}
|
259 |
|
260 |
+
$group = groups_get_group( $r['group_id'] );
|
261 |
$old_group = clone $group;
|
262 |
|
263 |
+
// Group name, slug and description can never be empty. Update only if provided.
|
264 |
+
if ( $r['name'] ) {
|
265 |
+
$group->name = $r['name'];
|
266 |
+
}
|
267 |
+
if ( $r['slug'] && $r['slug'] != $group->slug ) {
|
268 |
+
$group->slug = groups_check_slug( $r['slug'] );
|
269 |
+
}
|
270 |
+
if ( $r['description'] ) {
|
271 |
+
$group->description = $r['description'];
|
272 |
+
}
|
273 |
|
274 |
+
if ( ! $group->save() ) {
|
275 |
return false;
|
276 |
+
}
|
277 |
+
|
278 |
+
// Maybe update the "previous_slug" groupmeta.
|
279 |
+
if ( $group->slug != $old_group->slug ) {
|
280 |
+
/*
|
281 |
+
* If the old slug exists in this group's past, delete that entry.
|
282 |
+
* Recent previous_slugs are preferred when selecting the current group
|
283 |
+
* from an old group slug, so we want the previous slug to be
|
284 |
+
* saved "now" in the groupmeta table and don't need the old record.
|
285 |
+
*/
|
286 |
+
groups_delete_groupmeta( $group->id, 'previous_slug', $old_group->slug );
|
287 |
+
groups_add_groupmeta( $group->id, 'previous_slug', $old_group->slug );
|
288 |
+
}
|
289 |
|
290 |
+
if ( $r['notify_members'] ) {
|
291 |
groups_notification_group_updated( $group->id, $old_group );
|
292 |
}
|
293 |
|
300 |
* @param BP_Groups_Group $old_group Group object, before being modified.
|
301 |
* @param bool $notify_members Whether to send an email notification to members about the change.
|
302 |
*/
|
303 |
+
do_action( 'groups_details_updated', $group->id, $old_group, $r['notify_members'] );
|
304 |
|
305 |
return true;
|
306 |
}
|
318 |
* @param string $status Group status. 'public', 'private', 'hidden'.
|
319 |
* @param string|bool $invite_status Optional. Who is allowed to send invitations
|
320 |
* to the group. 'members', 'mods', or 'admins'.
|
321 |
+
* @param int|bool $parent_id Parent group ID.
|
322 |
* @return bool True on success, false on failure.
|
323 |
*/
|
324 |
function groups_edit_group_settings( $group_id, $enable_forum, $status, $invite_status = false, $parent_id = false ) {
|
436 |
function groups_check_slug( $slug ) {
|
437 |
$bp = buddypress();
|
438 |
|
439 |
+
// First, make the proposed slug work in a URL.
|
440 |
+
$slug = sanitize_title( $slug );
|
441 |
+
|
442 |
if ( 'wp' == substr( $slug, 0, 2 ) )
|
443 |
$slug = substr( $slug, 2, strlen( $slug ) - 2 );
|
444 |
|
480 |
return BP_Groups_Group::group_exists( $group_slug );
|
481 |
}
|
482 |
|
483 |
+
/**
|
484 |
+
* Get a group ID by checking against old (not currently active) slugs.
|
485 |
+
*
|
486 |
+
* @since 2.9.0
|
487 |
+
*
|
488 |
+
* @param string $group_slug The group's slug.
|
489 |
+
* @return int|null The group ID on success; null on failure.
|
490 |
+
*/
|
491 |
+
function groups_get_id_by_previous_slug( $group_slug ) {
|
492 |
+
return BP_Groups_Group::get_id_by_previous_slug( $group_slug );
|
493 |
+
}
|
494 |
+
|
495 |
/** User Actions **************************************************************/
|
496 |
|
497 |
/**
|
658 |
* 'first_joined', or any of the $type params available
|
659 |
* in {@link BP_User_Query}. Default: 'last_joined'.
|
660 |
* }
|
661 |
+
* @return false|array Multi-d array of 'members' list and 'count'.
|
662 |
*/
|
663 |
function groups_get_group_members( $args = array() ) {
|
664 |
|
767 |
$defaults = array(
|
768 |
'type' => false, // Active, newest, alphabetical, random, popular, most-forum-topics or most-forum-posts.
|
769 |
'order' => 'DESC', // 'ASC' or 'DESC'
|
770 |
+
'orderby' => 'date_created', // date_created, last_activity, total_member_count, name, random, meta_id.
|
771 |
'user_id' => false, // Pass a user_id to limit to only groups that this user is a member of.
|
772 |
'include' => false, // Only include these specific groups (group_ids).
|
773 |
'exclude' => false, // Do not include these specific groups (group_ids).
|
774 |
'parent_id' => null, // Get groups that are children of the specified group(s).
|
775 |
+
'slug' => array(), // Find a group or groups by slug.
|
776 |
'search_terms' => false, // Limit to groups that match these search terms.
|
777 |
'search_columns' => array(), // Select which columns to search.
|
778 |
'group_type' => '', // Array or comma-separated list of group types to limit results to.
|
780 |
'group_type__not_in' => '', // Array or comma-separated list of group types that will be excluded from results.
|
781 |
'meta_query' => false, // Filter by groupmeta. See WP_Meta_Query for syntax.
|
782 |
'show_hidden' => false, // Show hidden groups to non-admins.
|
783 |
+
'status' => array(), // Array or comma-separated list of group statuses to limit results to.
|
784 |
'per_page' => 20, // The number of results to return per page.
|
785 |
'page' => 1, // The page to return if limiting per page.
|
786 |
'update_meta_cache' => true, // Pre-fetch groupmeta for queried groups.
|
794 |
'user_id' => $r['user_id'],
|
795 |
'include' => $r['include'],
|
796 |
'exclude' => $r['exclude'],
|
797 |
+
'slug' => $r['slug'],
|
798 |
'parent_id' => $r['parent_id'],
|
799 |
'search_terms' => $r['search_terms'],
|
800 |
'search_columns' => $r['search_columns'],
|
803 |
'group_type__not_in' => $r['group_type__not_in'],
|
804 |
'meta_query' => $r['meta_query'],
|
805 |
'show_hidden' => $r['show_hidden'],
|
806 |
+
'status' => $r['status'],
|
807 |
'per_page' => $r['per_page'],
|
808 |
'page' => $r['page'],
|
809 |
'update_meta_cache' => $r['update_meta_cache'],
|
1230 |
*
|
1231 |
* @param int $user_id ID of the user.
|
1232 |
* @param int $group_id ID of the group.
|
1233 |
+
* @return int|null
|
1234 |
*/
|
1235 |
function groups_is_user_creator( $user_id, $group_id ) {
|
1236 |
return BP_Groups_Member::check_is_creator( $user_id, $group_id );
|
1252 |
* @type int $group_id Optional. ID of the group to be affiliated with the
|
1253 |
* update. Default: ID of the current group.
|
1254 |
* }
|
1255 |
+
* @return WP_Error|bool|int Returns the ID of the new activity item on success, or false on failure.
|
1256 |
*/
|
1257 |
function groups_post_update( $args = '' ) {
|
1258 |
if ( ! bp_is_active( 'activity' ) ) {
|
1596 |
for ( $i = 0, $count = count( $invited_users ); $i < $count; ++$i ) {
|
1597 |
$member = new BP_Groups_Member( $invited_users[$i], $group_id );
|
1598 |
|
1599 |
+
// Skip if we've already sent an invite to this user.
|
1600 |
+
if ( $member->invite_sent ) {
|
1601 |
+
continue;
|
1602 |
+
}
|
1603 |
+
|
1604 |
// Send the actual invite.
|
1605 |
groups_notification_group_invites( $group, $member, $user_id );
|
1606 |
|
1625 |
* Get IDs of users with outstanding invites to a given group from a specified user.
|
1626 |
*
|
1627 |
* @since 1.0.0
|
1628 |
+
* @since 2.9.0 Added $sent as a parameter.
|
1629 |
*
|
1630 |
+
* @param int $user_id ID of the inviting user.
|
1631 |
+
* @param int $group_id ID of the group.
|
1632 |
+
* @param int|null $sent Query for a specific invite sent status. If 0, this will query for users
|
1633 |
+
* that haven't had an invite sent to them yet. If 1, this will query for
|
1634 |
+
* users that have had an invite sent to them. If null, no invite status will
|
1635 |
+
* queried. Default: null.
|
1636 |
+
* @return array IDs of users who have been invited to the group by the user but have not
|
1637 |
+
* yet accepted.
|
1638 |
*/
|
1639 |
+
function groups_get_invites_for_group( $user_id, $group_id, $sent = null ) {
|
1640 |
+
return BP_Groups_Group::get_invites( $user_id, $group_id, $sent );
|
1641 |
}
|
1642 |
|
1643 |
/**
|
1999 |
* @param int $group_id Optional. ID of the group to which membership is being
|
2000 |
* requested. Provide this value along with $user_id to
|
2001 |
* override $membership_id.
|
2002 |
+
* @return false|BP_Groups_Member True on success, false on failure.
|
2003 |
*/
|
2004 |
function groups_delete_membership_request( $membership_id, $user_id = 0, $group_id = 0 ) {
|
2005 |
if ( !empty( $user_id ) && !empty( $group_id ) )
|
2386 |
* @since 2.6.0
|
2387 |
* @since 2.7.0 $group_type parameter also accepts an array of group types now.
|
2388 |
*
|
2389 |
+
* @param int $group_id ID of the group.
|
2390 |
* @param string|array $group_type Group type or array of group types to set.
|
2391 |
* @param bool $append Optional. True to append this to existing types for group,
|
2392 |
* false to replace. Default: false.
|
2393 |
+
* @return false|array $retval See bp_set_object_terms().
|
2394 |
*/
|
2395 |
function bp_groups_set_group_type( $group_id, $group_type, $append = false ) {
|
2396 |
// Pass an empty group type to remove group's type.
|
2487 |
*
|
2488 |
* @since 2.6.0
|
2489 |
*
|
2490 |
+
* @param int $group_id ID of the user.
|
2491 |
* @param string $group_type Group type.
|
2492 |
* @return bool|WP_Error $deleted True on success. False or WP_Error on failure.
|
2493 |
*/
|
2565 |
* @since 2.6.0
|
2566 |
*
|
2567 |
* @param int $group_id ID of the group.
|
2568 |
+
* @return array|null $value See {@see bp_groups_set_group_type()}.
|
2569 |
*/
|
2570 |
function bp_remove_group_type_on_group_delete( $group_id = 0 ) {
|
2571 |
bp_groups_set_group_type( $group_id, '' );
|
bp-groups/bp-groups-notifications.php
CHANGED
@@ -44,6 +44,14 @@ function groups_notification_group_updated( $group_id = 0, $old_group = null ) {
|
|
44 |
esc_html( $group->description )
|
45 |
);
|
46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
/**
|
@@ -385,7 +393,7 @@ function groups_format_notifications( $action, $item_id, $secondary_item_id, $to
|
|
385 |
* @param string $text Notification content.
|
386 |
* @param string $notification_link The permalink for notification.
|
387 |
*/
|
388 |
-
return apply_filters( 'bp_groups_' . $amount . '_' . $action . 's_notification', '<a href="' . $notification_link . '"
|
389 |
} else {
|
390 |
|
391 |
/**
|
@@ -483,7 +491,7 @@ function groups_format_notifications( $action, $item_id, $secondary_item_id, $to
|
|
483 |
* @param string $text Notification content.
|
484 |
* @param string $notification_link The permalink for notification.
|
485 |
*/
|
486 |
-
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '"
|
487 |
} else {
|
488 |
|
489 |
/**
|
@@ -572,7 +580,7 @@ function groups_format_notifications( $action, $item_id, $secondary_item_id, $to
|
|
572 |
* @param string $text Notification content.
|
573 |
* @param string $notification_link The permalink for notification.
|
574 |
*/
|
575 |
-
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '"
|
576 |
} else {
|
577 |
|
578 |
/**
|
@@ -658,7 +666,7 @@ function groups_format_notifications( $action, $item_id, $secondary_item_id, $to
|
|
658 |
* @param string $text Notification content.
|
659 |
* @param string $notification_link The permalink for notification.
|
660 |
*/
|
661 |
-
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '"
|
662 |
} else {
|
663 |
/**
|
664 |
* Filters multiple promoted to group admin notification for non-string format.
|
@@ -740,7 +748,7 @@ function groups_format_notifications( $action, $item_id, $secondary_item_id, $to
|
|
740 |
* @param string $text Notification content.
|
741 |
* @param string $notification_link The permalink for notification.
|
742 |
*/
|
743 |
-
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '"
|
744 |
} else {
|
745 |
/**
|
746 |
* Filters multiple promoted to group mod notification for non-string format.
|
@@ -822,7 +830,7 @@ function groups_format_notifications( $action, $item_id, $secondary_item_id, $to
|
|
822 |
* @param string $text Notification content.
|
823 |
* @param string $notification_link The permalink for notification.
|
824 |
*/
|
825 |
-
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '"
|
826 |
} else {
|
827 |
/**
|
828 |
* Filters multiple group invitation notification for non-string format.
|
44 |
esc_html( $group->description )
|
45 |
);
|
46 |
}
|
47 |
+
|
48 |
+
if ( $group->slug !== $old_group->slug ) {
|
49 |
+
$changed[] = sprintf(
|
50 |
+
_x( '* Permalink changed from "%s" to "%s".', 'Group update email text', 'buddypress' ),
|
51 |
+
esc_url( bp_get_group_permalink( $old_group ) ),
|
52 |
+
esc_url( bp_get_group_permalink( $group ) )
|
53 |
+
);
|
54 |
+
}
|
55 |
}
|
56 |
|
57 |
/**
|
393 |
* @param string $text Notification content.
|
394 |
* @param string $notification_link The permalink for notification.
|
395 |
*/
|
396 |
+
return apply_filters( 'bp_groups_' . $amount . '_' . $action . 's_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $total_items, $group->name, $text, $notification_link );
|
397 |
} else {
|
398 |
|
399 |
/**
|
491 |
* @param string $text Notification content.
|
492 |
* @param string $notification_link The permalink for notification.
|
493 |
*/
|
494 |
+
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link );
|
495 |
} else {
|
496 |
|
497 |
/**
|
580 |
* @param string $text Notification content.
|
581 |
* @param string $notification_link The permalink for notification.
|
582 |
*/
|
583 |
+
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $group->name );
|
584 |
} else {
|
585 |
|
586 |
/**
|
666 |
* @param string $text Notification content.
|
667 |
* @param string $notification_link The permalink for notification.
|
668 |
*/
|
669 |
+
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $text, $notification_link );
|
670 |
} else {
|
671 |
/**
|
672 |
* Filters multiple promoted to group admin notification for non-string format.
|
748 |
* @param string $text Notification content.
|
749 |
* @param string $notification_link The permalink for notification.
|
750 |
*/
|
751 |
+
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $text, $notification_link );
|
752 |
} else {
|
753 |
/**
|
754 |
* Filters multiple promoted to group mod notification for non-string format.
|
830 |
* @param string $text Notification content.
|
831 |
* @param string $notification_link The permalink for notification.
|
832 |
*/
|
833 |
+
return apply_filters( 'bp_groups_' . $amount . '_' . $action . '_notification', '<a href="' . $notification_link . '">' . $text . '</a>', $total_items, $text, $notification_link );
|
834 |
} else {
|
835 |
/**
|
836 |
* Filters multiple group invitation notification for non-string format.
|
bp-groups/bp-groups-screens.php
CHANGED
@@ -82,11 +82,11 @@ function groups_screen_group_invites() {
|
|
82 |
if ( !groups_accept_invite( bp_loggedin_user_id(), $group_id ) ) {
|
83 |
bp_core_add_message( __('Group invite could not be accepted', 'buddypress'), 'error' );
|
84 |
} else {
|
85 |
-
bp_core_add_message( __('Group invite accepted', 'buddypress') );
|
86 |
-
|
87 |
// Record this in activity streams.
|
88 |
$group = groups_get_group( $group_id );
|
89 |
|
|
|
|
|
90 |
groups_record_activity( array(
|
91 |
'type' => 'joined_group',
|
92 |
'item_id' => $group->id
|
@@ -839,7 +839,16 @@ function groups_screen_group_admin_edit_details() {
|
|
839 |
|
840 |
$group_notify_members = isset( $_POST['group-notify-members'] ) ? (int) $_POST['group-notify-members'] : 0;
|
841 |
|
842 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
843 |
bp_core_add_message( __( 'There was an error updating group details. Please try again.', 'buddypress' ), 'error' );
|
844 |
} else {
|
845 |
bp_core_add_message( __( 'Group details were successfully updated.', 'buddypress' ) );
|
82 |
if ( !groups_accept_invite( bp_loggedin_user_id(), $group_id ) ) {
|
83 |
bp_core_add_message( __('Group invite could not be accepted', 'buddypress'), 'error' );
|
84 |
} else {
|
|
|
|
|
85 |
// Record this in activity streams.
|
86 |
$group = groups_get_group( $group_id );
|
87 |
|
88 |
+
bp_core_add_message( sprintf( __( 'Group invite accepted. Visit %s.', 'buddypress' ), bp_get_group_link( $group ) ) );
|
89 |
+
|
90 |
groups_record_activity( array(
|
91 |
'type' => 'joined_group',
|
92 |
'item_id' => $group->id
|
839 |
|
840 |
$group_notify_members = isset( $_POST['group-notify-members'] ) ? (int) $_POST['group-notify-members'] : 0;
|
841 |
|
842 |
+
// Name and description are required and may not be empty.
|
843 |
+
if ( empty( $_POST['group-name'] ) || empty( $_POST['group-desc'] ) ) {
|
844 |
+
bp_core_add_message( __( 'Groups must have a name and a description. Please try again.', 'buddypress' ), 'error' );
|
845 |
+
} elseif ( ! groups_edit_base_group_details( array(
|
846 |
+
'group_id' => $_POST['group-id'],
|
847 |
+
'name' => $_POST['group-name'],
|
848 |
+
'slug' => null, // @TODO: Add to settings pane? If yes, editable by site admin only, or allow group admins to do this?
|
849 |
+
'description' => $_POST['group-desc'],
|
850 |
+
'notify_members' => $group_notify_members,
|
851 |
+
) ) ) {
|
852 |
bp_core_add_message( __( 'There was an error updating group details. Please try again.', 'buddypress' ), 'error' );
|
853 |
} else {
|
854 |
bp_core_add_message( __( 'Group details were successfully updated.', 'buddypress' ) );
|
bp-groups/bp-groups-template.php
CHANGED
@@ -208,7 +208,7 @@ function bp_group_type_list( $group_id = 0, $r = array() ) {
|
|
208 |
* @since 2.7.0
|
209 |
*
|
210 |
* @param int $group_id Group ID. Defaults to current group ID if on a group page.
|
211 |
-
* @param array|string $
|
212 |
* Array of parameters. All items are optional.
|
213 |
* @type string $parent_element Element to wrap around the list. Defaults to 'p'.
|
214 |
* @type array $parent_attr Element attributes for parent element. Defaults to
|
@@ -471,7 +471,7 @@ function bp_the_group() {
|
|
471 |
*
|
472 |
* @since 1.0.0
|
473 |
*
|
474 |
-
* @param BP_Groups_Group $group Optional. Group object. Default: current group in loop.
|
475 |
* @return bool
|
476 |
*/
|
477 |
function bp_group_is_visible( $group = null ) {
|
@@ -962,7 +962,7 @@ function bp_group_last_active( $group = false, $args = array() ) {
|
|
962 |
*
|
963 |
* @since 1.0.0
|
964 |
*
|
965 |
-
* @param BP_Groups_Group $group Optional. Group object. Default: current group in loop.
|
966 |
*/
|
967 |
function bp_group_permalink( $group = null ) {
|
968 |
echo bp_get_group_permalink( $group );
|
@@ -972,7 +972,7 @@ function bp_group_permalink( $group = null ) {
|
|
972 |
*
|
973 |
* @since 1.0.0
|
974 |
*
|
975 |
-
* @param BP_Groups_Group $group Optional. Group object. Default: current group in loop.
|
976 |
* @return string
|
977 |
*/
|
978 |
function bp_get_group_permalink( $group = null ) {
|
@@ -994,6 +994,52 @@ function bp_group_permalink( $group = null ) {
|
|
994 |
return apply_filters( 'bp_get_group_permalink', trailingslashit( bp_get_groups_directory_permalink() . bp_get_group_slug( $group ) . '/' ), $group );
|
995 |
}
|
996 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
997 |
/**
|
998 |
* Output the permalink for the admin section of the current group in the loop.
|
999 |
*
|
@@ -1162,24 +1208,28 @@ function bp_group_description_editable( $group = false ) {
|
|
1162 |
*
|
1163 |
* @since 1.0.0
|
1164 |
*
|
1165 |
-
* @param object|bool $group
|
1166 |
-
*
|
1167 |
-
*
|
|
|
|
|
1168 |
*/
|
1169 |
-
function bp_group_description_excerpt( $group = false ) {
|
1170 |
-
echo bp_get_group_description_excerpt( $group );
|
1171 |
}
|
1172 |
/**
|
1173 |
* Get an excerpt of a group description.
|
1174 |
*
|
1175 |
* @since 1.0.0
|
1176 |
*
|
1177 |
-
* @param object|bool $group
|
1178 |
-
*
|
1179 |
-
*
|
|
|
|
|
1180 |
* @return string Excerpt.
|
1181 |
*/
|
1182 |
-
function bp_get_group_description_excerpt( $group = false ) {
|
1183 |
global $groups_template;
|
1184 |
|
1185 |
if ( empty( $group ) ) {
|
@@ -1194,7 +1244,7 @@ function bp_group_description_excerpt( $group = false ) {
|
|
1194 |
* @param string $value Excerpt of a group description.
|
1195 |
* @param object $group Object for group whose description is made into an excerpt.
|
1196 |
*/
|
1197 |
-
return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description ), $group );
|
1198 |
}
|
1199 |
|
1200 |
/**
|
@@ -1451,8 +1501,8 @@ function bp_group_creator_permalink( $group = false ) {
|
|
1451 |
*
|
1452 |
* @since 1.7.0
|
1453 |
*
|
1454 |
-
* @param BP_Groups_Group $group Optional. Group object. Default: current group in loop.
|
1455 |
-
* @param int
|
1456 |
* @return bool
|
1457 |
*/
|
1458 |
function bp_is_group_creator( $group = null, $user_id = 0 ) {
|
@@ -1582,7 +1632,7 @@ function bp_group_list_admins( $group = false ) {
|
|
1582 |
<ul id="group-admins">
|
1583 |
<?php foreach( (array) $group->admins as $admin ) { ?>
|
1584 |
<li>
|
1585 |
-
<a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a>
|
1586 |
</li>
|
1587 |
<?php } ?>
|
1588 |
</ul>
|
@@ -1614,7 +1664,7 @@ function bp_group_list_mods( $group = false ) {
|
|
1614 |
<?php foreach( (array) $group->mods as $mod ) { ?>
|
1615 |
|
1616 |
<li>
|
1617 |
-
<a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a>
|
1618 |
</li>
|
1619 |
|
1620 |
<?php } ?>
|
@@ -1750,7 +1800,7 @@ function bp_group_all_members_permalink() {
|
|
1750 |
* @param string $value Permalink of the Members page for the current group.
|
1751 |
* @param object $group Group object.
|
1752 |
*/
|
1753 |
-
return apply_filters( 'bp_get_group_all_members_permalink', bp_get_group_permalink( $group ) . 'members', $group );
|
1754 |
}
|
1755 |
|
1756 |
/**
|
@@ -2010,7 +2060,7 @@ function bp_group_forum_permalink() {
|
|
2010 |
* @param string $value URL permalink for the Forum Page.
|
2011 |
* @param object $group Group object.
|
2012 |
*/
|
2013 |
-
return apply_filters( 'bp_get_group_forum_permalink', bp_get_group_permalink( $group ) . 'forum', $group );
|
2014 |
}
|
2015 |
|
2016 |
/**
|
@@ -2570,7 +2620,7 @@ function bp_group_member_promote_mod_link( $args = '' ) {
|
|
2570 |
*
|
2571 |
* @param string $value URL to use for promoting a user to moderator.
|
2572 |
*/
|
2573 |
-
return apply_filters( 'bp_get_group_member_promote_mod_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/mod/' . $user_id, 'groups_promote_member' ) );
|
2574 |
}
|
2575 |
|
2576 |
/**
|
@@ -2613,7 +2663,7 @@ function bp_group_member_promote_admin_link( $args = '' ) {
|
|
2613 |
*
|
2614 |
* @param string $value URL to use for promoting a user to admin.
|
2615 |
*/
|
2616 |
-
return apply_filters( 'bp_get_group_member_promote_admin_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/admin/' . $user_id, 'groups_promote_member' ) );
|
2617 |
}
|
2618 |
|
2619 |
/**
|
@@ -2663,7 +2713,7 @@ function bp_group_member_demote_link( $user_id = 0 ) {
|
|
2663 |
* @param string $value URL to use for demoting a user to member.
|
2664 |
* @param object $group Group object.
|
2665 |
*/
|
2666 |
-
return apply_filters( 'bp_get_group_member_demote_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/demote/' . $user_id, 'groups_demote_member' ), $group );
|
2667 |
}
|
2668 |
|
2669 |
/**
|
@@ -2707,7 +2757,7 @@ function bp_group_member_ban_link( $user_id = 0 ) {
|
|
2707 |
*
|
2708 |
* @param string $value URL to use for banning a member.
|
2709 |
*/
|
2710 |
-
return apply_filters( 'bp_get_group_member_ban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/ban/' . $user_id, 'groups_ban_member' ) );
|
2711 |
}
|
2712 |
|
2713 |
/**
|
@@ -2755,7 +2805,7 @@ function bp_group_member_unban_link( $user_id = 0 ) {
|
|
2755 |
*
|
2756 |
* @param string $value URL to use for unbanning a member.
|
2757 |
*/
|
2758 |
-
return apply_filters( 'bp_get_group_member_unban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/unban/' . $user_id, 'groups_unban_member' ) );
|
2759 |
}
|
2760 |
|
2761 |
/**
|
@@ -2801,7 +2851,7 @@ function bp_group_member_remove_link( $user_id = 0 ) {
|
|
2801 |
* @param string $value URL to use for removing a member.
|
2802 |
* @param object $group Group object.
|
2803 |
*/
|
2804 |
-
return apply_filters( 'bp_get_group_member_remove_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/remove/' . $user_id, 'groups_remove_member' ), $group );
|
2805 |
}
|
2806 |
|
2807 |
/**
|
@@ -2928,7 +2978,7 @@ function bp_group_form_action( $page ) {
|
|
2928 |
* @param string $value Action attribute for a group form.
|
2929 |
* @param object $group Group object.
|
2930 |
*/
|
2931 |
-
return apply_filters( 'bp_group_form_action', bp_get_group_permalink( $group ) . $page, $group );
|
2932 |
}
|
2933 |
|
2934 |
/**
|
@@ -2971,7 +3021,7 @@ function bp_group_admin_form_action( $page = false ) {
|
|
2971 |
* @param string $value Action attribute for a group admin form.
|
2972 |
* @param object $group Group object.
|
2973 |
*/
|
2974 |
-
return apply_filters( 'bp_group_admin_form_action', bp_get_group_permalink( $group ) . 'admin/' . $page, $group );
|
2975 |
}
|
2976 |
|
2977 |
/**
|
@@ -3233,7 +3283,7 @@ function bp_group_leave_confirm_link() {
|
|
3233 |
* @param string $value URL for confirming a request to leave a group.
|
3234 |
* @param object $group Group object.
|
3235 |
*/
|
3236 |
-
return apply_filters( 'bp_group_leave_confirm_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group/yes', 'groups_leave_group' ), $group );
|
3237 |
}
|
3238 |
|
3239 |
/**
|
@@ -3305,7 +3355,7 @@ function bp_group_send_invite_form_action() {
|
|
3305 |
* @param string $value Action attribute for a group send invite form.
|
3306 |
* @param object $group Group object.
|
3307 |
*/
|
3308 |
-
return apply_filters( 'bp_group_send_invite_form_action', bp_get_group_permalink( $group ) . 'send-invites/send', $group );
|
3309 |
}
|
3310 |
|
3311 |
/**
|
@@ -3354,7 +3404,7 @@ function bp_group_new_topic_button( $group = false ) {
|
|
3354 |
*
|
3355 |
* @param BP_Groups_Group|bool $group The BP Groups_Group object if
|
3356 |
* passed, boolean false if not passed.
|
3357 |
-
* @return string HTML code for the button.
|
3358 |
*/
|
3359 |
function bp_get_group_new_topic_button( $group = false ) {
|
3360 |
global $groups_template;
|
@@ -3444,7 +3494,7 @@ function bp_group_join_button( $group = false ) {
|
|
3444 |
'block_self' => false,
|
3445 |
'wrapper_class' => 'group-button ' . $group->status,
|
3446 |
'wrapper_id' => 'groupbutton-' . $group->id,
|
3447 |
-
'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ),
|
3448 |
'link_text' => __( 'Leave Group', 'buddypress' ),
|
3449 |
'link_class' => 'group-button leave-group',
|
3450 |
);
|
@@ -3465,7 +3515,7 @@ function bp_group_join_button( $group = false ) {
|
|
3465 |
'block_self' => false,
|
3466 |
'wrapper_class' => 'group-button ' . $group->status,
|
3467 |
'wrapper_id' => 'groupbutton-' . $group->id,
|
3468 |
-
'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ),
|
3469 |
'link_text' => __( 'Join Group', 'buddypress' ),
|
3470 |
'link_class' => 'group-button join-group',
|
3471 |
);
|
@@ -3513,7 +3563,7 @@ function bp_group_join_button( $group = false ) {
|
|
3513 |
'block_self' => false,
|
3514 |
'wrapper_class' => 'group-button ' . $group->status,
|
3515 |
'wrapper_id' => 'groupbutton-' . $group->id,
|
3516 |
-
'link_href' => wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ),
|
3517 |
'link_text' => __( 'Request Membership', 'buddypress' ),
|
3518 |
'link_class' => 'group-button request-membership',
|
3519 |
);
|
@@ -3548,7 +3598,7 @@ function bp_group_create_button() {
|
|
3548 |
*
|
3549 |
* @since 2.0.0
|
3550 |
*
|
3551 |
-
* @return string
|
3552 |
*/
|
3553 |
function bp_get_group_create_button() {
|
3554 |
if ( ! is_user_logged_in() ) {
|
@@ -3622,7 +3672,7 @@ function bp_group_create_nav_item() {
|
|
3622 |
*
|
3623 |
* @since 2.2.0
|
3624 |
*
|
3625 |
-
* @return string HTML Output
|
3626 |
*/
|
3627 |
function bp_group_backcompat_create_nav_item() {
|
3628 |
// Bail if the Groups nav item is already used by bp-legacy.
|
@@ -3740,7 +3790,7 @@ function bp_total_group_count() {
|
|
3740 |
*
|
3741 |
* @since 1.0.0
|
3742 |
*
|
3743 |
-
* @return
|
3744 |
*/
|
3745 |
function bp_get_total_group_count() {
|
3746 |
|
@@ -3814,7 +3864,7 @@ function bp_total_group_count_for_user( $user_id = 0 ) {
|
|
3814 |
* {@link BP_User_Query}. Default: 'last_joined'.
|
3815 |
* @type string $search_terms Optional. Search terms to match. Pass an
|
3816 |
* empty string to force-disable search, even in
|
3817 |
-
* the presence of $_REQUEST['s']. Default:
|
3818 |
* }
|
3819 |
*
|
3820 |
* @return bool
|
@@ -3828,7 +3878,11 @@ function bp_group_has_members( $args = '' ) {
|
|
3828 |
$exclude_admins_mods = 0;
|
3829 |
}
|
3830 |
|
3831 |
-
|
|
|
|
|
|
|
|
|
3832 |
$search_query_arg = bp_core_get_component_search_query_arg( 'members' );
|
3833 |
if ( ! empty( $_REQUEST[ $search_query_arg ] ) ) {
|
3834 |
$search_terms_default = stripslashes( $_REQUEST[ $search_query_arg ] );
|
@@ -3847,7 +3901,14 @@ function bp_group_has_members( $args = '' ) {
|
|
3847 |
'type' => 'last_joined',
|
3848 |
) );
|
3849 |
|
3850 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3851 |
$r['search_terms'] = $_REQUEST['s'];
|
3852 |
}
|
3853 |
|
@@ -4191,7 +4252,7 @@ function bp_group_member_css_class() {
|
|
4191 |
* @since 2.7.0 Added $args as a parameter.
|
4192 |
*
|
4193 |
* @param array|string $args {@see bp_get_group_member_joined_since()}
|
4194 |
-
* @return string
|
4195 |
*/
|
4196 |
function bp_group_member_joined_since( $args = array() ) {
|
4197 |
echo bp_get_group_member_joined_since( $args );
|
@@ -4776,7 +4837,7 @@ function bp_new_group_id() {
|
|
4776 |
/**
|
4777 |
* @since 1.1.0
|
4778 |
*
|
4779 |
-
* @return
|
4780 |
*/
|
4781 |
function bp_get_new_group_id() {
|
4782 |
$bp = buddypress();
|
@@ -5455,7 +5516,7 @@ function bp_group_avatar_delete_link() {
|
|
5455 |
*
|
5456 |
* @param string $value URL to delete the group avatar.
|
5457 |
*/
|
5458 |
-
return apply_filters( 'bp_get_group_avatar_delete_link', wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/group-avatar/delete', 'bp_group_avatar_delete' ) );
|
5459 |
}
|
5460 |
|
5461 |
/**
|
@@ -5586,7 +5647,7 @@ function bp_group_request_reject_link() {
|
|
5586 |
*
|
5587 |
* @param string $value URL to use to reject a membership request.
|
5588 |
*/
|
5589 |
-
return apply_filters( 'bp_get_group_request_reject_link', wp_nonce_url( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/reject/' . $requests_template->request->membership_id, 'groups_reject_membership_request' ) );
|
5590 |
}
|
5591 |
|
5592 |
/**
|
@@ -5610,7 +5671,7 @@ function bp_group_request_accept_link() {
|
|
5610 |
*
|
5611 |
* @param string $value URL to use to accept a membership request.
|
5612 |
*/
|
5613 |
-
return apply_filters( 'bp_get_group_request_accept_link', wp_nonce_url( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/accept/' . $requests_template->request->membership_id, 'groups_accept_membership_request' ) );
|
5614 |
}
|
5615 |
|
5616 |
/**
|
@@ -5932,7 +5993,7 @@ function bp_group_invite_user_remove_invite_url() {
|
|
5932 |
if ( bp_is_current_action( 'create' ) ) {
|
5933 |
$uninvite_url = bp_get_groups_directory_permalink() . 'create/step/group-invites/?user_id=' . $user_id;
|
5934 |
} else {
|
5935 |
-
$uninvite_url = bp_get_group_permalink( groups_get_current_group() ) . 'send-invites/remove/' . $user_id;
|
5936 |
}
|
5937 |
|
5938 |
return wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' );
|
@@ -6191,7 +6252,7 @@ function bp_current_group_description() {
|
|
6191 |
* @param string $action
|
6192 |
* @param string $query_args
|
6193 |
* @param bool $nonce
|
6194 |
-
* @return string
|
6195 |
*/
|
6196 |
function bp_groups_action_link( $action = '', $query_args = '', $nonce = false ) {
|
6197 |
echo bp_get_groups_action_link( $action, $query_args, $nonce );
|
208 |
* @since 2.7.0
|
209 |
*
|
210 |
* @param int $group_id Group ID. Defaults to current group ID if on a group page.
|
211 |
+
* @param array|string $r {
|
212 |
* Array of parameters. All items are optional.
|
213 |
* @type string $parent_element Element to wrap around the list. Defaults to 'p'.
|
214 |
* @type array $parent_attr Element attributes for parent element. Defaults to
|
471 |
*
|
472 |
* @since 1.0.0
|
473 |
*
|
474 |
+
* @param BP_Groups_Group|null $group Optional. Group object. Default: current group in loop.
|
475 |
* @return bool
|
476 |
*/
|
477 |
function bp_group_is_visible( $group = null ) {
|
962 |
*
|
963 |
* @since 1.0.0
|
964 |
*
|
965 |
+
* @param BP_Groups_Group|null $group Optional. Group object. Default: current group in loop.
|
966 |
*/
|
967 |
function bp_group_permalink( $group = null ) {
|
968 |
echo bp_get_group_permalink( $group );
|
972 |
*
|
973 |
* @since 1.0.0
|
974 |
*
|
975 |
+
* @param BP_Groups_Group|null $group Optional. Group object. Default: current group in loop.
|
976 |
* @return string
|
977 |
*/
|
978 |
function bp_get_group_permalink( $group = null ) {
|
994 |
return apply_filters( 'bp_get_group_permalink', trailingslashit( bp_get_groups_directory_permalink() . bp_get_group_slug( $group ) . '/' ), $group );
|
995 |
}
|
996 |
|
997 |
+
/**
|
998 |
+
* Output an HTML-formatted link for the current group in the loop.
|
999 |
+
*
|
1000 |
+
* @since 2.9.0
|
1001 |
+
*
|
1002 |
+
* @param BP_Groups_Group|null $group Optional. Group object.
|
1003 |
+
* Default: current group in loop.
|
1004 |
+
*/
|
1005 |
+
function bp_group_link( $group = null ) {
|
1006 |
+
echo bp_get_group_link( $group );
|
1007 |
+
}
|
1008 |
+
/**
|
1009 |
+
* Return an HTML-formatted link for the current group in the loop.
|
1010 |
+
*
|
1011 |
+
* @since 2.9.0
|
1012 |
+
*
|
1013 |
+
* @param BP_Groups_Group|null $group Optional. Group object.
|
1014 |
+
* Default: current group in loop.
|
1015 |
+
* @return string
|
1016 |
+
*/
|
1017 |
+
function bp_get_group_link( $group = null ) {
|
1018 |
+
global $groups_template;
|
1019 |
+
|
1020 |
+
if ( empty( $group ) ) {
|
1021 |
+
$group =& $groups_template->group;
|
1022 |
+
}
|
1023 |
+
|
1024 |
+
$link = sprintf(
|
1025 |
+
'<a href="%s" class="bp-group-home-link %s-home-link">%s</a>',
|
1026 |
+
esc_url( bp_get_group_permalink( $group ) ),
|
1027 |
+
esc_attr( bp_get_group_slug( $group ) ),
|
1028 |
+
esc_html( bp_get_group_name( $group ) )
|
1029 |
+
);
|
1030 |
+
|
1031 |
+
/**
|
1032 |
+
* Filters the HTML-formatted link for the current group in the loop.
|
1033 |
+
*
|
1034 |
+
* @since 2.9.0
|
1035 |
+
*
|
1036 |
+
* @param string $value HTML-formatted link for the
|
1037 |
+
* current group in the loop.
|
1038 |
+
* @param BP_Groups_Group $group The current group object.
|
1039 |
+
*/
|
1040 |
+
return apply_filters( 'bp_get_group_link', $link, $group );
|
1041 |
+
}
|
1042 |
+
|
1043 |
/**
|
1044 |
* Output the permalink for the admin section of the current group in the loop.
|
1045 |
*
|
1208 |
*
|
1209 |
* @since 1.0.0
|
1210 |
*
|
1211 |
+
* @param object|bool $group Optional. The group being referenced.
|
1212 |
+
* Defaults to the group currently being
|
1213 |
+
* iterated on in the groups loop.
|
1214 |
+
* @param int $length Optional. Length of returned string, including ellipsis.
|
1215 |
+
* Default: 225.
|
1216 |
*/
|
1217 |
+
function bp_group_description_excerpt( $group = false, $length = false ) {
|
1218 |
+
echo bp_get_group_description_excerpt( $group, $length );
|
1219 |
}
|
1220 |
/**
|
1221 |
* Get an excerpt of a group description.
|
1222 |
*
|
1223 |
* @since 1.0.0
|
1224 |
*
|
1225 |
+
* @param object|bool $group Optional. The group being referenced.
|
1226 |
+
* Defaults to the group currently being
|
1227 |
+
* iterated on in the groups loop.
|
1228 |
+
* @param int $length Optional. Length of returned string, including ellipsis.
|
1229 |
+
* Default: 225.
|
1230 |
* @return string Excerpt.
|
1231 |
*/
|
1232 |
+
function bp_get_group_description_excerpt( $group = false, $length = false ) {
|
1233 |
global $groups_template;
|
1234 |
|
1235 |
if ( empty( $group ) ) {
|
1244 |
* @param string $value Excerpt of a group description.
|
1245 |
* @param object $group Object for group whose description is made into an excerpt.
|
1246 |
*/
|
1247 |
+
return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description, $length ), $group );
|
1248 |
}
|
1249 |
|
1250 |
/**
|
1501 |
*
|
1502 |
* @since 1.7.0
|
1503 |
*
|
1504 |
+
* @param BP_Groups_Group|null $group Optional. Group object. Default: current group in loop.
|
1505 |
+
* @param int $user_id ID of the user.
|
1506 |
* @return bool
|
1507 |
*/
|
1508 |
function bp_is_group_creator( $group = null, $user_id = 0 ) {
|
1632 |
<ul id="group-admins">
|
1633 |
<?php foreach( (array) $group->admins as $admin ) { ?>
|
1634 |
<li>
|
1635 |
+
<a href="<?php echo bp_core_get_user_domain( $admin->user_id, $admin->user_nicename, $admin->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'), bp_core_get_user_displayname( $admin->user_id ) ); ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $admin->user_id, 'email' => $admin->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $admin->user_id ) ) ) ) ?></a>
|
1636 |
</li>
|
1637 |
<?php } ?>
|
1638 |
</ul>
|
1664 |
<?php foreach( (array) $group->mods as $mod ) { ?>
|
1665 |
|
1666 |
<li>
|
1667 |
+
<a href="<?php echo bp_core_get_user_domain( $mod->user_id, $mod->user_nicename, $mod->user_login ) ?>" class="bp-tooltip" data-bp-tooltip="<?php printf( ('%s'), bp_core_get_user_displayname( $mod->user_id ) ); ?>"><?php echo bp_core_fetch_avatar( array( 'item_id' => $mod->user_id, 'email' => $mod->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $mod->user_id ) ) ) ) ?></a>
|
1668 |
</li>
|
1669 |
|
1670 |
<?php } ?>
|
1800 |
* @param string $value Permalink of the Members page for the current group.
|
1801 |
* @param object $group Group object.
|
1802 |
*/
|
1803 |
+
return apply_filters( 'bp_get_group_all_members_permalink', trailingslashit( bp_get_group_permalink( $group ) . 'members' ), $group );
|
1804 |
}
|
1805 |
|
1806 |
/**
|
2060 |
* @param string $value URL permalink for the Forum Page.
|
2061 |
* @param object $group Group object.
|
2062 |
*/
|
2063 |
+
return apply_filters( 'bp_get_group_forum_permalink', trailingslashit( bp_get_group_permalink( $group ) . 'forum' ), $group );
|
2064 |
}
|
2065 |
|
2066 |
/**
|
2620 |
*
|
2621 |
* @param string $value URL to use for promoting a user to moderator.
|
2622 |
*/
|
2623 |
+
return apply_filters( 'bp_get_group_member_promote_mod_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/mod/' . $user_id ), 'groups_promote_member' ) );
|
2624 |
}
|
2625 |
|
2626 |
/**
|
2663 |
*
|
2664 |
* @param string $value URL to use for promoting a user to admin.
|
2665 |
*/
|
2666 |
+
return apply_filters( 'bp_get_group_member_promote_admin_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/admin/' . $user_id ), 'groups_promote_member' ) );
|
2667 |
}
|
2668 |
|
2669 |
/**
|
2713 |
* @param string $value URL to use for demoting a user to member.
|
2714 |
* @param object $group Group object.
|
2715 |
*/
|
2716 |
+
return apply_filters( 'bp_get_group_member_demote_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/demote/' . $user_id ), 'groups_demote_member' ), $group );
|
2717 |
}
|
2718 |
|
2719 |
/**
|
2757 |
*
|
2758 |
* @param string $value URL to use for banning a member.
|
2759 |
*/
|
2760 |
+
return apply_filters( 'bp_get_group_member_ban_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/ban/' . $user_id ), 'groups_ban_member' ) );
|
2761 |
}
|
2762 |
|
2763 |
/**
|
2805 |
*
|
2806 |
* @param string $value URL to use for unbanning a member.
|
2807 |
*/
|
2808 |
+
return apply_filters( 'bp_get_group_member_unban_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/unban/' . $user_id ), 'groups_unban_member' ) );
|
2809 |
}
|
2810 |
|
2811 |
/**
|
2851 |
* @param string $value URL to use for removing a member.
|
2852 |
* @param object $group Group object.
|
2853 |
*/
|
2854 |
+
return apply_filters( 'bp_get_group_member_remove_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'admin/manage-members/remove/' . $user_id ), 'groups_remove_member' ), $group );
|
2855 |
}
|
2856 |
|
2857 |
/**
|
2978 |
* @param string $value Action attribute for a group form.
|
2979 |
* @param object $group Group object.
|
2980 |
*/
|
2981 |
+
return apply_filters( 'bp_group_form_action', trailingslashit( bp_get_group_permalink( $group ) . $page ), $group );
|
2982 |
}
|
2983 |
|
2984 |
/**
|
3021 |
* @param string $value Action attribute for a group admin form.
|
3022 |
* @param object $group Group object.
|
3023 |
*/
|
3024 |
+
return apply_filters( 'bp_group_admin_form_action', trailingslashit( bp_get_group_permalink( $group ) . 'admin/' . $page ), $group );
|
3025 |
}
|
3026 |
|
3027 |
/**
|
3283 |
* @param string $value URL for confirming a request to leave a group.
|
3284 |
* @param object $group Group object.
|
3285 |
*/
|
3286 |
+
return apply_filters( 'bp_group_leave_confirm_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'leave-group/yes' ), 'groups_leave_group' ), $group );
|
3287 |
}
|
3288 |
|
3289 |
/**
|
3355 |
* @param string $value Action attribute for a group send invite form.
|
3356 |
* @param object $group Group object.
|
3357 |
*/
|
3358 |
+
return apply_filters( 'bp_group_send_invite_form_action', trailingslashit( bp_get_group_permalink( $group ) . 'send-invites/send' ), $group );
|
3359 |
}
|
3360 |
|
3361 |
/**
|
3404 |
*
|
3405 |
* @param BP_Groups_Group|bool $group The BP Groups_Group object if
|
3406 |
* passed, boolean false if not passed.
|
3407 |
+
* @return false|string HTML code for the button.
|
3408 |
*/
|
3409 |
function bp_get_group_new_topic_button( $group = false ) {
|
3410 |
global $groups_template;
|
3494 |
'block_self' => false,
|
3495 |
'wrapper_class' => 'group-button ' . $group->status,
|
3496 |
'wrapper_id' => 'groupbutton-' . $group->id,
|
3497 |
+
'link_href' => wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'leave-group' ), 'groups_leave_group' ),
|
3498 |
'link_text' => __( 'Leave Group', 'buddypress' ),
|
3499 |
'link_class' => 'group-button leave-group',
|
3500 |
);
|
3515 |
'block_self' => false,
|
3516 |
'wrapper_class' => 'group-button ' . $group->status,
|
3517 |
'wrapper_id' => 'groupbutton-' . $group->id,
|
3518 |
+
'link_href' => wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'join' ), 'groups_join_group' ),
|
3519 |
'link_text' => __( 'Join Group', 'buddypress' ),
|
3520 |
'link_class' => 'group-button join-group',
|
3521 |
);
|
3563 |
'block_self' => false,
|
3564 |
'wrapper_class' => 'group-button ' . $group->status,
|
3565 |
'wrapper_id' => 'groupbutton-' . $group->id,
|
3566 |
+
'link_href' => wp_nonce_url( trailingslashit( bp_get_group_permalink( $group ) . 'request-membership' ), 'groups_request_membership' ),
|
3567 |
'link_text' => __( 'Request Membership', 'buddypress' ),
|
3568 |
'link_class' => 'group-button request-membership',
|
3569 |
);
|
3598 |
*
|
3599 |
* @since 2.0.0
|
3600 |
*
|
3601 |
+
* @return false|string
|
3602 |
*/
|
3603 |
function bp_get_group_create_button() {
|
3604 |
if ( ! is_user_logged_in() ) {
|
3672 |
*
|
3673 |
* @since 2.2.0
|
3674 |
*
|
3675 |
+
* @return string|null HTML Output
|
3676 |
*/
|
3677 |
function bp_group_backcompat_create_nav_item() {
|
3678 |
// Bail if the Groups nav item is already used by bp-legacy.
|
3790 |
*
|
3791 |
* @since 1.0.0
|
3792 |
*
|
3793 |
+
* @return int
|
3794 |
*/
|
3795 |
function bp_get_total_group_count() {
|
3796 |
|
3864 |
* {@link BP_User_Query}. Default: 'last_joined'.
|
3865 |
* @type string $search_terms Optional. Search terms to match. Pass an
|
3866 |
* empty string to force-disable search, even in
|
3867 |
+
* the presence of $_REQUEST['s']. Default: false.
|
3868 |
* }
|
3869 |
*
|
3870 |
* @return bool
|
3878 |
$exclude_admins_mods = 0;
|
3879 |
}
|
3880 |
|
3881 |
+
/*
|
3882 |
+
* Use false as the search_terms default so that BP_User_Query
|
3883 |
+
* doesn't add a search clause.
|
3884 |
+
*/
|
3885 |
+
$search_terms_default = false;
|
3886 |
$search_query_arg = bp_core_get_component_search_query_arg( 'members' );
|
3887 |
if ( ! empty( $_REQUEST[ $search_query_arg ] ) ) {
|
3888 |
$search_terms_default = stripslashes( $_REQUEST[ $search_query_arg ] );
|
3901 |
'type' => 'last_joined',
|
3902 |
) );
|
3903 |
|
3904 |
+
/*
|
3905 |
+
* If an empty search_terms string has been passed,
|
3906 |
+
* the developer is force-disabling search.
|
3907 |
+
*/
|
3908 |
+
if ( '' === $r['search_terms'] ) {
|
3909 |
+
// Set the search_terms to false for BP_User_Query efficiency.
|
3910 |
+
$r['search_terms'] = false;
|
3911 |
+
} elseif ( ! empty( $_REQUEST['s'] ) ) {
|
3912 |
$r['search_terms'] = $_REQUEST['s'];
|
3913 |
}
|
3914 |
|
4252 |
* @since 2.7.0 Added $args as a parameter.
|
4253 |
*
|
4254 |
* @param array|string $args {@see bp_get_group_member_joined_since()}
|
4255 |
+
* @return string|null
|
4256 |
*/
|
4257 |
function bp_group_member_joined_since( $args = array() ) {
|
4258 |
echo bp_get_group_member_joined_since( $args );
|
4837 |
/**
|
4838 |
* @since 1.1.0
|
4839 |
*
|
4840 |
+
* @return int
|
4841 |
*/
|
4842 |
function bp_get_new_group_id() {
|
4843 |
$bp = buddypress();
|
5516 |
*
|
5517 |
* @param string $value URL to delete the group avatar.
|
5518 |
*/
|
5519 |
+
return apply_filters( 'bp_get_group_avatar_delete_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/group-avatar/delete' ), 'bp_group_avatar_delete' ) );
|
5520 |
}
|
5521 |
|
5522 |
/**
|
5647 |
*
|
5648 |
* @param string $value URL to use to reject a membership request.
|
5649 |
*/
|
5650 |
+
return apply_filters( 'bp_get_group_request_reject_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/reject/' . $requests_template->request->membership_id ), 'groups_reject_membership_request' ) );
|
5651 |
}
|
5652 |
|
5653 |
/**
|
5671 |
*
|
5672 |
* @param string $value URL to use to accept a membership request.
|
5673 |
*/
|
5674 |
+
return apply_filters( 'bp_get_group_request_accept_link', wp_nonce_url( trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . 'admin/membership-requests/accept/' . $requests_template->request->membership_id ), 'groups_accept_membership_request' ) );
|
5675 |
}
|
5676 |
|
5677 |
/**
|
5993 |
if ( bp_is_current_action( 'create' ) ) {
|
5994 |
$uninvite_url = bp_get_groups_directory_permalink() . 'create/step/group-invites/?user_id=' . $user_id;
|
5995 |
} else {
|
5996 |
+
$uninvite_url = trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . 'send-invites/remove/' . $user_id );
|
5997 |
}
|
5998 |
|
5999 |
return wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' );
|
6252 |
* @param string $action
|
6253 |
* @param string $query_args
|
6254 |
* @param bool $nonce
|
6255 |
+
* @return string|null
|
6256 |
*/
|
6257 |
function bp_groups_action_link( $action = '', $query_args = '', $nonce = false ) {
|
6258 |
echo bp_get_groups_action_link( $action, $query_args, $nonce );
|
bp-groups/bp-groups-widgets.php
CHANGED
@@ -62,7 +62,7 @@ function groups_ajax_widget_groups_list() {
|
|
62 |
</div>
|
63 |
|
64 |
<div class="item">
|
65 |
-
<div class="item-title"
|
66 |
<div class="item-meta">
|
67 |
<?php if ( 'newest-groups' === $_POST['filter'] ) : ?>
|
68 |
<span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_date_created( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'created %s', 'buddypress' ), bp_get_group_date_created() ); ?></span>
|
62 |
</div>
|
63 |
|
64 |
<div class="item">
|
65 |
+
<div class="item-title"><?php bp_group_link(); ?></div>
|
66 |
<div class="item-meta">
|
67 |
<?php if ( 'newest-groups' === $_POST['filter'] ) : ?>
|
68 |
<span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_date_created( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'created %s', 'buddypress' ), bp_get_group_date_created() ); ?></span>
|
bp-groups/classes/class-bp-group-extension.php
CHANGED
@@ -564,6 +564,7 @@ class BP_Group_Extension {
|
|
564 |
* @since 2.1.0
|
565 |
*/
|
566 |
protected function setup_access_settings() {
|
|
|
567 |
// Bail if no group ID is available.
|
568 |
if ( empty( $this->group_id ) ) {
|
569 |
return;
|
@@ -580,7 +581,7 @@ class BP_Group_Extension {
|
|
580 |
// Backward compatibility for components that do not provide
|
581 |
// explicit 'access' parameter.
|
582 |
if ( empty( $this->params['access'] ) ) {
|
583 |
-
if ( false === $this->enable_nav_item ) {
|
584 |
$this->params['access'] = 'noone';
|
585 |
} else {
|
586 |
$group = groups_get_group( $this->group_id );
|
@@ -666,7 +667,6 @@ class BP_Group_Extension {
|
|
666 |
* @return bool
|
667 |
*/
|
668 |
protected function user_meets_access_condition( $access_condition ) {
|
669 |
-
$group = groups_get_group( $this->group_id );
|
670 |
|
671 |
switch ( $access_condition ) {
|
672 |
case 'admin' :
|
@@ -806,7 +806,9 @@ class BP_Group_Extension {
|
|
806 |
* @return bool
|
807 |
*/
|
808 |
public function user_can_see_nav_item( $user_can_see_nav_item = false ) {
|
809 |
-
|
|
|
|
|
810 |
return true;
|
811 |
}
|
812 |
|
@@ -816,13 +818,18 @@ class BP_Group_Extension {
|
|
816 |
/**
|
817 |
* Determine whether the current user has access to visit this tab.
|
818 |
*
|
|
|
|
|
|
|
819 |
* @since 2.1.0
|
820 |
*
|
821 |
* @param bool $user_can_visit Whether or not the user can visit the tab.
|
822 |
* @return bool
|
823 |
*/
|
824 |
public function user_can_visit( $user_can_visit = false ) {
|
825 |
-
|
|
|
|
|
826 |
return true;
|
827 |
}
|
828 |
|
@@ -943,13 +950,13 @@ class BP_Group_Extension {
|
|
943 |
$position += 40;
|
944 |
|
945 |
$current_group = groups_get_current_group();
|
946 |
-
$admin_link
|
947 |
|
948 |
$subnav_args = array(
|
949 |
'name' => $screen['name'],
|
950 |
'slug' => $screen['slug'],
|
951 |
'parent_slug' => $current_group->slug . '_manage',
|
952 |
-
'parent_url' =>
|
953 |
'user_has_access' => bp_is_item_admin(),
|
954 |
'position' => $position,
|
955 |
'screen_function' => 'groups_screen_group_admin',
|
564 |
* @since 2.1.0
|
565 |
*/
|
566 |
protected function setup_access_settings() {
|
567 |
+
|
568 |
// Bail if no group ID is available.
|
569 |
if ( empty( $this->group_id ) ) {
|
570 |
return;
|
581 |
// Backward compatibility for components that do not provide
|
582 |
// explicit 'access' parameter.
|
583 |
if ( empty( $this->params['access'] ) ) {
|
584 |
+
if ( false === $this->params['enable_nav_item'] ) {
|
585 |
$this->params['access'] = 'noone';
|
586 |
} else {
|
587 |
$group = groups_get_group( $this->group_id );
|
667 |
* @return bool
|
668 |
*/
|
669 |
protected function user_meets_access_condition( $access_condition ) {
|
|
|
670 |
|
671 |
switch ( $access_condition ) {
|
672 |
case 'admin' :
|
806 |
* @return bool
|
807 |
*/
|
808 |
public function user_can_see_nav_item( $user_can_see_nav_item = false ) {
|
809 |
+
|
810 |
+
// Always allow moderators to see nav items, even if explicitly 'noone'
|
811 |
+
if ( ( 'noone' !== $this->params['show_tab'] ) && current_user_can( 'bp_moderate' ) ) {
|
812 |
return true;
|
813 |
}
|
814 |
|
818 |
/**
|
819 |
* Determine whether the current user has access to visit this tab.
|
820 |
*
|
821 |
+
* Note that this controls the ability of a user to access a tab.
|
822 |
+
* Display of the navigation item is controlled by user_can_see_nav_item().
|
823 |
+
*
|
824 |
* @since 2.1.0
|
825 |
*
|
826 |
* @param bool $user_can_visit Whether or not the user can visit the tab.
|
827 |
* @return bool
|
828 |
*/
|
829 |
public function user_can_visit( $user_can_visit = false ) {
|
830 |
+
|
831 |
+
// Always allow moderators to visit a tab, even if explicitly 'noone'
|
832 |
+
if ( ( 'noone' !== $this->params['access'] ) && current_user_can( 'bp_moderate' ) ) {
|
833 |
return true;
|
834 |
}
|
835 |
|
950 |
$position += 40;
|
951 |
|
952 |
$current_group = groups_get_current_group();
|
953 |
+
$admin_link = trailingslashit( bp_get_group_permalink( $current_group ) . 'admin' );
|
954 |
|
955 |
$subnav_args = array(
|
956 |
'name' => $screen['name'],
|
957 |
'slug' => $screen['slug'],
|
958 |
'parent_slug' => $current_group->slug . '_manage',
|
959 |
+
'parent_url' => $admin_link,
|
960 |
'user_has_access' => bp_is_item_admin(),
|
961 |
'position' => $position,
|
962 |
'screen_function' => 'groups_screen_group_admin',
|
bp-groups/classes/class-bp-groups-component.php
CHANGED
@@ -196,8 +196,10 @@ class BP_Groups_Component extends BP_Component {
|
|
196 |
/* Single Group Globals **********************************************/
|
197 |
|
198 |
// Are we viewing a single group?
|
199 |
-
if ( bp_is_groups_component()
|
200 |
-
|
|
|
|
|
201 |
$bp->is_single_item = true;
|
202 |
|
203 |
/**
|
@@ -242,20 +244,6 @@ class BP_Groups_Component extends BP_Component {
|
|
242 |
bp_update_is_item_mod ( groups_is_user_mod ( bp_loggedin_user_id(), $this->current_group->id ), 'groups' );
|
243 |
}
|
244 |
|
245 |
-
// Is the logged in user a member of the group?
|
246 |
-
if ( ( is_user_logged_in() && groups_is_user_member( bp_loggedin_user_id(), $this->current_group->id ) ) ) {
|
247 |
-
$this->current_group->is_user_member = true;
|
248 |
-
} else {
|
249 |
-
$this->current_group->is_user_member = false;
|
250 |
-
}
|
251 |
-
|
252 |
-
// Should this group be visible to the logged in user?
|
253 |
-
if ( 'public' == $this->current_group->status || $this->current_group->is_user_member ) {
|
254 |
-
$this->current_group->is_visible = true;
|
255 |
-
} else {
|
256 |
-
$this->current_group->is_visible = false;
|
257 |
-
}
|
258 |
-
|
259 |
// Check once if the current group has a custom front template.
|
260 |
$this->current_group->front_template = bp_groups_get_front_template( $this->current_group );
|
261 |
|
@@ -557,7 +545,7 @@ class BP_Groups_Component extends BP_Component {
|
|
557 |
// member and does not have an outstanding invitation,
|
558 |
// show a "Request Membership" nav item.
|
559 |
if ( is_user_logged_in() &&
|
560 |
-
! $this->current_group->
|
561 |
! groups_check_for_membership_request( bp_loggedin_user_id(), $this->current_group->id ) &&
|
562 |
$this->current_group->status == 'private' &&
|
563 |
! groups_check_user_has_invite( bp_loggedin_user_id(), $this->current_group->id )
|
196 |
/* Single Group Globals **********************************************/
|
197 |
|
198 |
// Are we viewing a single group?
|
199 |
+
if ( bp_is_groups_component()
|
200 |
+
&& ( ( $group_id = BP_Groups_Group::group_exists( bp_current_action() ) )
|
201 |
+
|| ( $group_id = BP_Groups_Group::get_id_by_previous_slug( bp_current_action() ) ) )
|
202 |
+
) {
|
203 |
$bp->is_single_item = true;
|
204 |
|
205 |
/**
|
244 |
bp_update_is_item_mod ( groups_is_user_mod ( bp_loggedin_user_id(), $this->current_group->id ), 'groups' );
|
245 |
}
|
246 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
// Check once if the current group has a custom front template.
|
248 |
$this->current_group->front_template = bp_groups_get_front_template( $this->current_group );
|
249 |
|
545 |
// member and does not have an outstanding invitation,
|
546 |
// show a "Request Membership" nav item.
|
547 |
if ( is_user_logged_in() &&
|
548 |
+
! $this->current_group->is_member &&
|
549 |
! groups_check_for_membership_request( bp_loggedin_user_id(), $this->current_group->id ) &&
|
550 |
$this->current_group->status == 'private' &&
|
551 |
! groups_check_user_has_invite( bp_loggedin_user_id(), $this->current_group->id )
|
bp-groups/classes/class-bp-groups-group.php
CHANGED
@@ -125,6 +125,15 @@ class BP_Groups_Group {
|
|
125 |
*/
|
126 |
protected $is_member;
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
/**
|
129 |
* Does the current user have an outstanding invitation to this group?
|
130 |
*
|
@@ -157,6 +166,14 @@ class BP_Groups_Group {
|
|
157 |
*/
|
158 |
protected $user_has_access;
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
/**
|
161 |
* Raw arguments passed to the constructor.
|
162 |
*
|
@@ -416,6 +433,7 @@ class BP_Groups_Group {
|
|
416 |
return $this->get_mods();
|
417 |
|
418 |
case 'is_member' :
|
|
|
419 |
return $this->get_is_member();
|
420 |
|
421 |
case 'is_invited' :
|
@@ -427,6 +445,9 @@ class BP_Groups_Group {
|
|
427 |
case 'user_has_access' :
|
428 |
return $this->get_user_has_access();
|
429 |
|
|
|
|
|
|
|
430 |
default :
|
431 |
return isset( $this->{$key} ) ? $this->{$key} : null;
|
432 |
}
|
@@ -448,11 +469,13 @@ class BP_Groups_Group {
|
|
448 |
case 'admins' :
|
449 |
case 'is_invited' :
|
450 |
case 'is_member' :
|
|
|
451 |
case 'is_pending' :
|
452 |
case 'last_activity' :
|
453 |
case 'mods' :
|
454 |
case 'total_member_count' :
|
455 |
case 'user_has_access' :
|
|
|
456 |
case 'forum_id' :
|
457 |
return true;
|
458 |
|
@@ -469,7 +492,9 @@ class BP_Groups_Group {
|
|
469 |
*
|
470 |
* @since 2.7.0
|
471 |
*
|
472 |
-
* @param string $key
|
|
|
|
|
473 |
*/
|
474 |
public function __set( $key, $value ) {
|
475 |
switch ( $key ) {
|
@@ -489,7 +514,7 @@ class BP_Groups_Group {
|
|
489 |
*
|
490 |
* @since 2.7.0
|
491 |
*
|
492 |
-
* @return array
|
493 |
*/
|
494 |
protected function get_admins() {
|
495 |
if ( isset( $this->admins ) ) {
|
@@ -508,7 +533,7 @@ class BP_Groups_Group {
|
|
508 |
*
|
509 |
* @since 2.7.0
|
510 |
*
|
511 |
-
* @return array
|
512 |
*/
|
513 |
protected function get_mods() {
|
514 |
if ( isset( $this->mods ) ) {
|
@@ -535,6 +560,7 @@ class BP_Groups_Group {
|
|
535 |
|
536 |
$admin_mod_users = get_users( array(
|
537 |
'include' => array_merge( $admin_ids_plucked, $mod_ids_plucked ),
|
|
|
538 |
) );
|
539 |
|
540 |
$admin_objects = $mod_objects = array();
|
@@ -565,7 +591,7 @@ class BP_Groups_Group {
|
|
565 |
*
|
566 |
* @since 2.7.0
|
567 |
*
|
568 |
-
* @return bool
|
569 |
*/
|
570 |
protected function get_is_member() {
|
571 |
if ( isset( $this->is_member ) ) {
|
@@ -604,6 +630,34 @@ class BP_Groups_Group {
|
|
604 |
return $this->user_has_access;
|
605 |
}
|
606 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
607 |
/** Static Methods ****************************************************/
|
608 |
|
609 |
/**
|
@@ -612,22 +666,32 @@ class BP_Groups_Group {
|
|
612 |
* @since 1.6.0
|
613 |
*
|
614 |
* @param string $slug Slug to check.
|
615 |
-
* @param string|bool $table_name
|
616 |
-
* against. Default: $bp->groups->table_name.
|
617 |
* @return int|null Group ID if found; null if not.
|
618 |
*/
|
619 |
public static function group_exists( $slug, $table_name = false ) {
|
620 |
global $wpdb;
|
621 |
|
622 |
-
if ( empty( $
|
623 |
-
$table_name = buddypress()->groups->table_name;
|
624 |
-
|
625 |
-
if ( empty( $slug ) )
|
626 |
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
627 |
|
628 |
-
$
|
|
|
|
|
|
|
|
|
|
|
629 |
|
630 |
-
return
|
631 |
}
|
632 |
|
633 |
/**
|
@@ -638,28 +702,79 @@ class BP_Groups_Group {
|
|
638 |
* @since 1.6.0
|
639 |
*
|
640 |
* @param string $slug See {@link BP_Groups_Group::group_exists()}.
|
641 |
-
* @return
|
642 |
*/
|
643 |
public static function get_id_from_slug( $slug ) {
|
644 |
return BP_Groups_Group::group_exists( $slug );
|
645 |
}
|
646 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
/**
|
648 |
* Get IDs of users with outstanding invites to a given group from a specified user.
|
649 |
*
|
650 |
* @since 1.6.0
|
651 |
-
*
|
652 |
-
*
|
653 |
-
* @param
|
654 |
-
* @
|
655 |
-
*
|
|
|
|
|
|
|
|
|
|
|
656 |
*/
|
657 |
-
public static function get_invites( $user_id, $group_id ) {
|
658 |
global $wpdb;
|
659 |
|
660 |
-
$bp
|
|
|
|
|
|
|
|
|
|
|
|
|
661 |
|
662 |
-
return $wpdb->get_col( $
|
663 |
}
|
664 |
|
665 |
/**
|
@@ -860,6 +975,8 @@ class BP_Groups_Group {
|
|
860 |
* @since 1.6.0
|
861 |
* @since 2.6.0 Added `$group_type`, `$group_type__in`, and `$group_type__not_in` parameters.
|
862 |
* @since 2.7.0 Added `$update_admin_cache` and `$parent_id` parameters.
|
|
|
|
|
863 |
*
|
864 |
* @param array $args {
|
865 |
* Array of parameters. All items are optional.
|
@@ -868,7 +985,8 @@ class BP_Groups_Group {
|
|
868 |
* When present, will override orderby and order params.
|
869 |
* Default: null.
|
870 |
* @type string $orderby Optional. Property to sort by. 'date_created', 'last_activity',
|
871 |
-
* 'total_member_count', 'name', 'random'
|
|
|
872 |
* @type string $order Optional. Sort order. 'ASC' or 'DESC'. Default: 'DESC'.
|
873 |
* @type int $per_page Optional. Number of items to return per page of results.
|
874 |
* Default: null (no limit).
|
@@ -876,7 +994,10 @@ class BP_Groups_Group {
|
|
876 |
* Default: null (no limit).
|
877 |
* @type int $user_id Optional. If provided, results will be limited to groups
|
878 |
* of which the specified user is a member. Default: null.
|
879 |
-
* @type string
|
|
|
|
|
|
|
880 |
* match the search terms will be returned. Allows specifying the
|
881 |
* wildcard position using a '*' character before or after the
|
882 |
* string or both. Works in concert with $search_columns.
|
@@ -901,6 +1022,9 @@ class BP_Groups_Group {
|
|
901 |
* @type bool $update_admin_cache Whether to pre-fetch administrator IDs for the returned
|
902 |
* groups. Default: false.
|
903 |
* @type bool $show_hidden Whether to include hidden groups in results. Default: false.
|
|
|
|
|
|
|
904 |
* }
|
905 |
* @return array {
|
906 |
* @type array $groups Array of group objects returned by the
|
@@ -938,6 +1062,7 @@ class BP_Groups_Group {
|
|
938 |
'per_page' => null,
|
939 |
'page' => null,
|
940 |
'user_id' => 0,
|
|
|
941 |
'search_terms' => false,
|
942 |
'search_columns' => array(),
|
943 |
'group_type' => '',
|
@@ -950,6 +1075,7 @@ class BP_Groups_Group {
|
|
950 |
'update_admin_cache' => false,
|
951 |
'exclude' => false,
|
952 |
'show_hidden' => false,
|
|
|
953 |
);
|
954 |
|
955 |
$r = wp_parse_args( $args, $defaults );
|
@@ -970,10 +1096,26 @@ class BP_Groups_Group {
|
|
970 |
|
971 |
$where_conditions = array();
|
972 |
|
973 |
-
if ( empty( $r['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
$where_conditions['hidden'] = "g.status != 'hidden'";
|
975 |
}
|
976 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
977 |
$search = '';
|
978 |
if ( isset( $r['search_terms'] ) ) {
|
979 |
$search = trim( $r['search_terms'] );
|
@@ -1100,6 +1242,11 @@ class BP_Groups_Group {
|
|
1100 |
$where_conditions['last_activity'] = "gm_last_activity.meta_key = 'last_activity'";
|
1101 |
}
|
1102 |
|
|
|
|
|
|
|
|
|
|
|
1103 |
// Sanitize 'order'.
|
1104 |
$order = bp_esc_sql_order( $order );
|
1105 |
|
@@ -1402,6 +1549,10 @@ class BP_Groups_Group {
|
|
1402 |
case 'random' :
|
1403 |
$order_by_term = 'rand()';
|
1404 |
break;
|
|
|
|
|
|
|
|
|
1405 |
}
|
1406 |
|
1407 |
return $order_by_term;
|
125 |
*/
|
126 |
protected $is_member;
|
127 |
|
128 |
+
/**
|
129 |
+
* Is the current user a member of this group?
|
130 |
+
* Alias of $is_member for backward compatibility.
|
131 |
+
*
|
132 |
+
* @since 2.9.0
|
133 |
+
* @var bool
|
134 |
+
*/
|
135 |
+
protected $is_user_member;
|
136 |
+
|
137 |
/**
|
138 |
* Does the current user have an outstanding invitation to this group?
|
139 |
*
|
166 |
*/
|
167 |
protected $user_has_access;
|
168 |
|
169 |
+
/**
|
170 |
+
* Can the current user know that this group exists?
|
171 |
+
*
|
172 |
+
* @since 2.9.0
|
173 |
+
* @var bool
|
174 |
+
*/
|
175 |
+
protected $is_visible;
|
176 |
+
|
177 |
/**
|
178 |
* Raw arguments passed to the constructor.
|
179 |
*
|
433 |
return $this->get_mods();
|
434 |
|
435 |
case 'is_member' :
|
436 |
+
case 'is_user_member' :
|
437 |
return $this->get_is_member();
|
438 |
|
439 |
case 'is_invited' :
|
445 |
case 'user_has_access' :
|
446 |
return $this->get_user_has_access();
|
447 |
|
448 |
+
case 'is_visible' :
|
449 |
+
return $this->is_visible();
|
450 |
+
|
451 |
default :
|
452 |
return isset( $this->{$key} ) ? $this->{$key} : null;
|
453 |
}
|
469 |
case 'admins' :
|
470 |
case 'is_invited' :
|
471 |
case 'is_member' :
|
472 |
+
case 'is_user_member' :
|
473 |
case 'is_pending' :
|
474 |
case 'last_activity' :
|
475 |
case 'mods' :
|
476 |
case 'total_member_count' :
|
477 |
case 'user_has_access' :
|
478 |
+
case 'is_visible' :
|
479 |
case 'forum_id' :
|
480 |
return true;
|
481 |
|
492 |
*
|
493 |
* @since 2.7.0
|
494 |
*
|
495 |
+
* @param string $key Property name.
|
496 |
+
* @param mixed $value Property value.
|
497 |
+
* @return bool
|
498 |
*/
|
499 |
public function __set( $key, $value ) {
|
500 |
switch ( $key ) {
|
514 |
*
|
515 |
* @since 2.7.0
|
516 |
*
|
517 |
+
* @return array|null
|
518 |
*/
|
519 |
protected function get_admins() {
|
520 |
if ( isset( $this->admins ) ) {
|
533 |
*
|
534 |
* @since 2.7.0
|
535 |
*
|
536 |
+
* @return array|null
|
537 |
*/
|
538 |
protected function get_mods() {
|
539 |
if ( isset( $this->mods ) ) {
|
560 |
|
561 |
$admin_mod_users = get_users( array(
|
562 |
'include' => array_merge( $admin_ids_plucked, $mod_ids_plucked ),
|
563 |
+
'blog_id' => null,
|
564 |
) );
|
565 |
|
566 |
$admin_objects = $mod_objects = array();
|
591 |
*
|
592 |
* @since 2.7.0
|
593 |
*
|
594 |
+
* @return bool|int
|
595 |
*/
|
596 |
protected function get_is_member() {
|
597 |
if ( isset( $this->is_member ) ) {
|
630 |
return $this->user_has_access;
|
631 |
}
|
632 |
|
633 |
+
/**
|
634 |
+
* Checks whether the current user can know the group exists.
|
635 |
+
*
|
636 |
+
* @since 2.9.0
|
637 |
+
*
|
638 |
+
* @return bool
|
639 |
+
*/
|
640 |
+
protected function is_visible() {
|
641 |
+
if ( isset( $this->is_visible ) ) {
|
642 |
+
return $this->is_visible;
|
643 |
+
}
|
644 |
+
|
645 |
+
if ( 'hidden' === $this->status ) {
|
646 |
+
|
647 |
+
// Assume user can not know about hidden groups.
|
648 |
+
$this->is_visible = false;
|
649 |
+
|
650 |
+
// Group members or community moderators have access.
|
651 |
+
if ( ( is_user_logged_in() && $this->get_is_member() ) || bp_current_user_can( 'bp_moderate' ) ) {
|
652 |
+
$this->is_visible = true;
|
653 |
+
}
|
654 |
+
} else {
|
655 |
+
$this->is_visible = true;
|
656 |
+
}
|
657 |
+
|
658 |
+
return $this->is_visible;
|
659 |
+
}
|
660 |
+
|
661 |
/** Static Methods ****************************************************/
|
662 |
|
663 |
/**
|
666 |
* @since 1.6.0
|
667 |
*
|
668 |
* @param string $slug Slug to check.
|
669 |
+
* @param string|bool $table_name Deprecated.
|
|
|
670 |
* @return int|null Group ID if found; null if not.
|
671 |
*/
|
672 |
public static function group_exists( $slug, $table_name = false ) {
|
673 |
global $wpdb;
|
674 |
|
675 |
+
if ( empty( $slug ) ) {
|
|
|
|
|
|
|
676 |
return false;
|
677 |
+
}
|
678 |
+
|
679 |
+
$args = array(
|
680 |
+
'slug' => $slug,
|
681 |
+
'per_page' => 1,
|
682 |
+
'page' => 1,
|
683 |
+
'update_meta_cache' => false,
|
684 |
+
'show_hidden' => true,
|
685 |
+
);
|
686 |
|
687 |
+
$groups = BP_Groups_Group::get( $args );
|
688 |
+
|
689 |
+
$group_id = null;
|
690 |
+
if ( $groups['groups'] ) {
|
691 |
+
$group_id = current( $groups['groups'] )->id;
|
692 |
+
}
|
693 |
|
694 |
+
return $group_id;
|
695 |
}
|
696 |
|
697 |
/**
|
702 |
* @since 1.6.0
|
703 |
*
|
704 |
* @param string $slug See {@link BP_Groups_Group::group_exists()}.
|
705 |
+
* @return int|null See {@link BP_Groups_Group::group_exists()}.
|
706 |
*/
|
707 |
public static function get_id_from_slug( $slug ) {
|
708 |
return BP_Groups_Group::group_exists( $slug );
|
709 |
}
|
710 |
|
711 |
+
/**
|
712 |
+
* Get whether a group exists for an old slug.
|
713 |
+
*
|
714 |
+
* @since 2.9.0
|
715 |
+
*
|
716 |
+
* @param string $slug Slug to check.
|
717 |
+
*
|
718 |
+
* @return int|null|false Group ID if found; null if not; false if missing parameters.
|
719 |
+
*/
|
720 |
+
public static function get_id_by_previous_slug( $slug ) {
|
721 |
+
global $wpdb;
|
722 |
+
|
723 |
+
if ( empty( $slug ) ) {
|
724 |
+
return false;
|
725 |
+
}
|
726 |
+
|
727 |
+
$args = array(
|
728 |
+
'meta_query' => array(
|
729 |
+
array(
|
730 |
+
'key' => 'previous_slug',
|
731 |
+
'value' => $slug
|
732 |
+
),
|
733 |
+
),
|
734 |
+
'orderby' => 'meta_id',
|
735 |
+
'order' => 'DESC',
|
736 |
+
'per_page' => 1,
|
737 |
+
'page' => 1,
|
738 |
+
'update_meta_cache' => false,
|
739 |
+
'show_hidden' => true,
|
740 |
+
);
|
741 |
+
$groups = BP_Groups_Group::get( $args );
|
742 |
+
|
743 |
+
$group_id = null;
|
744 |
+
if ( $groups['groups'] ) {
|
745 |
+
$group_id = current( $groups['groups'] )->id;
|
746 |
+
}
|
747 |
+
|
748 |
+
return $group_id;
|
749 |
+
}
|
750 |
+
|
751 |
/**
|
752 |
* Get IDs of users with outstanding invites to a given group from a specified user.
|
753 |
*
|
754 |
* @since 1.6.0
|
755 |
+
* @since 2.9.0 Added $sent as a parameter.
|
756 |
+
*
|
757 |
+
* @param int $user_id ID of the inviting user.
|
758 |
+
* @param int $group_id ID of the group.
|
759 |
+
* @param int|null $sent Query for a specific invite sent status. If 0, this will query for users
|
760 |
+
* that haven't had an invite sent to them yet. If 1, this will query for
|
761 |
+
* users that have had an invite sent to them. If null, no invite status will
|
762 |
+
* queried. Default: null.
|
763 |
+
* @return array IDs of users who have been invited to the group by the user but have not
|
764 |
+
* yet accepted.
|
765 |
*/
|
766 |
+
public static function get_invites( $user_id, $group_id, $sent = null ) {
|
767 |
global $wpdb;
|
768 |
|
769 |
+
$bp = buddypress();
|
770 |
+
$sql = $wpdb->prepare( "SELECT user_id FROM {$bp->groups->table_name_members} WHERE group_id = %d and is_confirmed = 0 AND inviter_id = %d", $group_id, $user_id );
|
771 |
+
|
772 |
+
// Query for a specific invite sent status.
|
773 |
+
if ( ! is_null( $sent ) ) {
|
774 |
+
$sql .= $wpdb->prepare( ' AND invite_sent = %d', $sent );
|
775 |
+
}
|
776 |
|
777 |
+
return $wpdb->get_col( $sql );
|
778 |
}
|
779 |
|
780 |
/**
|
975 |
* @since 1.6.0
|
976 |
* @since 2.6.0 Added `$group_type`, `$group_type__in`, and `$group_type__not_in` parameters.
|
977 |
* @since 2.7.0 Added `$update_admin_cache` and `$parent_id` parameters.
|
978 |
+
* @since 2.8.0 Changed `$search_terms` parameter handling and added `$search_columns` parameter.
|
979 |
+
* @since 2.9.0 Added `$slug` parameter.
|
980 |
*
|
981 |
* @param array $args {
|
982 |
* Array of parameters. All items are optional.
|
985 |
* When present, will override orderby and order params.
|
986 |
* Default: null.
|
987 |
* @type string $orderby Optional. Property to sort by. 'date_created', 'last_activity',
|
988 |
+
* 'total_member_count', 'name', 'random', 'meta_id'.
|
989 |
+
* Default: 'date_created'.
|
990 |
* @type string $order Optional. Sort order. 'ASC' or 'DESC'. Default: 'DESC'.
|
991 |
* @type int $per_page Optional. Number of items to return per page of results.
|
992 |
* Default: null (no limit).
|
994 |
* Default: null (no limit).
|
995 |
* @type int $user_id Optional. If provided, results will be limited to groups
|
996 |
* of which the specified user is a member. Default: null.
|
997 |
+
* @type array|string $slug Optional. Array or comma-separated list of group slugs to limit
|
998 |
+
* results to.
|
999 |
+
* Default: false.
|
1000 |
+
* @type string $search_terms Optional. If provided, only groups whose names or descriptions
|
1001 |
* match the search terms will be returned. Allows specifying the
|
1002 |
* wildcard position using a '*' character before or after the
|
1003 |
* string or both. Works in concert with $search_columns.
|
1022 |
* @type bool $update_admin_cache Whether to pre-fetch administrator IDs for the returned
|
1023 |
* groups. Default: false.
|
1024 |
* @type bool $show_hidden Whether to include hidden groups in results. Default: false.
|
1025 |
+
* @type array|string $status Optional. Array or comma-separated list of group statuses to limit
|
1026 |
+
* results to. If specified, $show_hidden is ignored.
|
1027 |
+
* Default: empty array.
|
1028 |
* }
|
1029 |
* @return array {
|
1030 |
* @type array $groups Array of group objects returned by the
|
1062 |
'per_page' => null,
|
1063 |
'page' => null,
|
1064 |
'user_id' => 0,
|
1065 |
+
'slug' => array(),
|
1066 |
'search_terms' => false,
|
1067 |
'search_columns' => array(),
|
1068 |
'group_type' => '',
|
1075 |
'update_admin_cache' => false,
|
1076 |
'exclude' => false,
|
1077 |
'show_hidden' => false,
|
1078 |
+
'status' => array()
|
1079 |
);
|
1080 |
|
1081 |
$r = wp_parse_args( $args, $defaults );
|
1096 |
|
1097 |
$where_conditions = array();
|
1098 |
|
1099 |
+
if ( ! empty( $r['status'] ) ) {
|
1100 |
+
if ( ! is_array( $r['status'] ) ) {
|
1101 |
+
$r['status'] = preg_split( '/[\s,]+/', $r['status'] );
|
1102 |
+
}
|
1103 |
+
$r['status'] = array_map( 'sanitize_title', $r['status'] );
|
1104 |
+
$status_in = "'" . implode( "','", $r['status'] ) . "'";
|
1105 |
+
$where_conditions['status'] = "g.status IN ({$status_in})";
|
1106 |
+
} elseif ( empty( $r['show_hidden'] ) ) {
|
1107 |
$where_conditions['hidden'] = "g.status != 'hidden'";
|
1108 |
}
|
1109 |
|
1110 |
+
if ( ! empty( $r['slug'] ) ) {
|
1111 |
+
if ( ! is_array( $r['slug'] ) ) {
|
1112 |
+
$r['slug'] = preg_split( '/[\s,]+/', $r['slug'] );
|
1113 |
+
}
|
1114 |
+
$r['slug'] = array_map( 'sanitize_title', $r['slug'] );
|
1115 |
+
$slug_in = "'" . implode( "','", $r['slug'] ) . "'";
|
1116 |
+
$where_conditions['slug'] = "g.slug IN ({$slug_in})";
|
1117 |
+
}
|
1118 |
+
|
1119 |
$search = '';
|
1120 |
if ( isset( $r['search_terms'] ) ) {
|
1121 |
$search = trim( $r['search_terms'] );
|
1242 |
$where_conditions['last_activity'] = "gm_last_activity.meta_key = 'last_activity'";
|
1243 |
}
|
1244 |
|
1245 |
+
// If 'meta_id' is the requested order, and there's no meta query, fall back to the default.
|
1246 |
+
if ( 'meta_id' === $orderby && empty( $meta_query_sql['join'] ) ) {
|
1247 |
+
$orderby = 'date_created';
|
1248 |
+
}
|
1249 |
+
|
1250 |
// Sanitize 'order'.
|
1251 |
$order = bp_esc_sql_order( $order );
|
1252 |
|
1549 |
case 'random' :
|
1550 |
$order_by_term = 'rand()';
|
1551 |
break;
|
1552 |
+
|
1553 |
+
case 'meta_id' :
|
1554 |
+
$order_by_term = buddypress()->groups->table_name_groupmeta . '.id';
|
1555 |
+
break;
|
1556 |
}
|
1557 |
|
1558 |
return $order_by_term;
|
bp-groups/classes/class-bp-groups-invite-template.php
CHANGED
@@ -236,7 +236,7 @@ class BP_Groups_Invite_Template {
|
|
236 |
$this->invite->user->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->invite->user->fullname ), 'width' => 30, 'height' => 30 ) );
|
237 |
$this->invite->user->email = $this->invite->user->user_email;
|
238 |
$this->invite->user->user_url = bp_core_get_user_domain( $user_id, $this->invite->user->user_nicename, $this->invite->user->user_login );
|
239 |
-
$this->invite->user->user_link = "<a href='{$this->invite->user->user_url}'
|
240 |
$this->invite->user->last_active = bp_core_get_last_activity( $this->invite->user->last_activity, __( 'active %s', 'buddypress' ) );
|
241 |
|
242 |
if ( bp_is_active( 'groups' ) ) {
|
236 |
$this->invite->user->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->invite->user->fullname ), 'width' => 30, 'height' => 30 ) );
|
237 |
$this->invite->user->email = $this->invite->user->user_email;
|
238 |
$this->invite->user->user_url = bp_core_get_user_domain( $user_id, $this->invite->user->user_nicename, $this->invite->user->user_login );
|
239 |
+
$this->invite->user->user_link = "<a href='{$this->invite->user->user_url}'>{$this->invite->user->fullname}</a>";
|
240 |
$this->invite->user->last_active = bp_core_get_last_activity( $this->invite->user->last_activity, __( 'active %s', 'buddypress' ) );
|
241 |
|
242 |
if ( bp_is_active( 'groups' ) ) {
|
bp-groups/classes/class-bp-groups-list-table.php
CHANGED
@@ -706,9 +706,10 @@ class BP_Groups_List_Table extends WP_List_Table {
|
|
706 |
*
|
707 |
* @since 2.7.0
|
708 |
*
|
709 |
-
* @param string $
|
710 |
* @param string $column_name Name of the column being rendered.
|
711 |
* @param array $item The current group item in the loop.
|
|
|
712 |
*/
|
713 |
public function column_content_group_type( $retval = '', $column_name, $item ) {
|
714 |
if ( 'bp_group_type' !== $column_name ) {
|
706 |
*
|
707 |
* @since 2.7.0
|
708 |
*
|
709 |
+
* @param string $retval Empty string.
|
710 |
* @param string $column_name Name of the column being rendered.
|
711 |
* @param array $item The current group item in the loop.
|
712 |
+
* @return string
|
713 |
*/
|
714 |
public function column_content_group_type( $retval = '', $column_name, $item ) {
|
715 |
if ( 'bp_group_type' !== $column_name ) {
|
bp-groups/classes/class-bp-groups-member.php
CHANGED
@@ -206,7 +206,7 @@ class BP_Groups_Member {
|
|
206 |
* @since 2.8.0
|
207 |
*
|
208 |
* @param string $key Key.
|
209 |
-
* @return
|
210 |
*/
|
211 |
public function __get( $key ) {
|
212 |
switch ( $key ) {
|
@@ -221,7 +221,7 @@ class BP_Groups_Member {
|
|
221 |
* @since 2.8.0
|
222 |
*
|
223 |
* @param string $key Key.
|
224 |
-
* @return
|
225 |
*/
|
226 |
public function __isset( $key ) {
|
227 |
switch ( $key ) {
|
@@ -482,7 +482,7 @@ class BP_Groups_Member {
|
|
482 |
* @since 1.8.0
|
483 |
*
|
484 |
* @param int $group_id ID of the group.
|
485 |
-
* @return bool True on success, false on failure.
|
486 |
*/
|
487 |
public static function refresh_total_member_count_for_group( $group_id ) {
|
488 |
return groups_update_groupmeta( $group_id, 'total_member_count', (int) BP_Groups_Group::get_total_member_count( $group_id ) );
|
@@ -1088,6 +1088,10 @@ class BP_Groups_Member {
|
|
1088 |
public static function get_group_administrator_ids( $group_id ) {
|
1089 |
global $wpdb;
|
1090 |
|
|
|
|
|
|
|
|
|
1091 |
$group_admins = wp_cache_get( $group_id, 'bp_group_admins' );
|
1092 |
|
1093 |
if ( false === $group_admins ) {
|
@@ -1095,9 +1099,14 @@ class BP_Groups_Member {
|
|
1095 |
$group_admins = wp_cache_get( $group_id, 'bp_group_admins' );
|
1096 |
}
|
1097 |
|
1098 |
-
|
1099 |
-
|
1100 |
-
$group_admins
|
|
|
|
|
|
|
|
|
|
|
1101 |
}
|
1102 |
|
1103 |
return $group_admins;
|
@@ -1158,6 +1167,10 @@ class BP_Groups_Member {
|
|
1158 |
public static function get_group_moderator_ids( $group_id ) {
|
1159 |
global $wpdb;
|
1160 |
|
|
|
|
|
|
|
|
|
1161 |
$group_mods = wp_cache_get( $group_id, 'bp_group_mods' );
|
1162 |
|
1163 |
if ( false === $group_mods ) {
|
@@ -1165,9 +1178,14 @@ class BP_Groups_Member {
|
|
1165 |
$group_mods = wp_cache_get( $group_id, 'bp_group_mods' );
|
1166 |
}
|
1167 |
|
1168 |
-
|
1169 |
-
|
1170 |
-
$group_mods
|
|
|
|
|
|
|
|
|
|
|
1171 |
}
|
1172 |
|
1173 |
return $group_mods;
|
@@ -1217,7 +1235,7 @@ class BP_Groups_Member {
|
|
1217 |
* @param bool $exclude_admins_mods Whether or not to exclude admins and moderators.
|
1218 |
* @param bool $exclude_banned Whether or not to exclude banned members.
|
1219 |
* @param bool|array $exclude Array of user IDs to exclude.
|
1220 |
-
* @return
|
1221 |
*/
|
1222 |
public static function get_all_for_group( $group_id, $limit = false, $page = false, $exclude_admins_mods = true, $exclude_banned = true, $exclude = false ) {
|
1223 |
global $wpdb;
|
206 |
* @since 2.8.0
|
207 |
*
|
208 |
* @param string $key Key.
|
209 |
+
* @return BP_Core_User|null
|
210 |
*/
|
211 |
public function __get( $key ) {
|
212 |
switch ( $key ) {
|
221 |
* @since 2.8.0
|
222 |
*
|
223 |
* @param string $key Key.
|
224 |
+
* @return bool
|
225 |
*/
|
226 |
public function __isset( $key ) {
|
227 |
switch ( $key ) {
|
482 |
* @since 1.8.0
|
483 |
*
|
484 |
* @param int $group_id ID of the group.
|
485 |
+
* @return bool|int True on success, false on failure.
|
486 |
*/
|
487 |
public static function refresh_total_member_count_for_group( $group_id ) {
|
488 |
return groups_update_groupmeta( $group_id, 'total_member_count', (int) BP_Groups_Group::get_total_member_count( $group_id ) );
|
1088 |
public static function get_group_administrator_ids( $group_id ) {
|
1089 |
global $wpdb;
|
1090 |
|
1091 |
+
if ( empty( $group_id ) ) {
|
1092 |
+
return array();
|
1093 |
+
}
|
1094 |
+
|
1095 |
$group_admins = wp_cache_get( $group_id, 'bp_group_admins' );
|
1096 |
|
1097 |
if ( false === $group_admins ) {
|
1099 |
$group_admins = wp_cache_get( $group_id, 'bp_group_admins' );
|
1100 |
}
|
1101 |
|
1102 |
+
if ( false === $group_admins ) {
|
1103 |
+
// The wp_cache_get is still coming up empty. Return an empty array.
|
1104 |
+
$group_admins = array();
|
1105 |
+
} else {
|
1106 |
+
// Cast the user_id property as an integer.
|
1107 |
+
foreach ( (array) $group_admins as $key => $data ) {
|
1108 |
+
$group_admins[ $key ]->user_id = (int) $group_admins[ $key ]->user_id;
|
1109 |
+
}
|
1110 |
}
|
1111 |
|
1112 |
return $group_admins;
|
1167 |
public static function get_group_moderator_ids( $group_id ) {
|
1168 |
global $wpdb;
|
1169 |
|
1170 |
+
if ( empty( $group_id ) ) {
|
1171 |
+
return array();
|
1172 |
+
}
|
1173 |
+
|
1174 |
$group_mods = wp_cache_get( $group_id, 'bp_group_mods' );
|
1175 |
|
1176 |
if ( false === $group_mods ) {
|
1178 |
$group_mods = wp_cache_get( $group_id, 'bp_group_mods' );
|
1179 |
}
|
1180 |
|
1181 |
+
if ( false === $group_mods ) {
|
1182 |
+
// The wp_cache_get is still coming up empty. Return an empty array.
|
1183 |
+
$group_mods = array();
|
1184 |
+
} else {
|
1185 |
+
// Cast the user_id property as an integer.
|
1186 |
+
foreach ( (array) $group_mods as $key => $data ) {
|
1187 |
+
$group_mods[ $key ]->user_id = (int) $group_mods[ $key ]->user_id;
|
1188 |
+
}
|
1189 |
}
|
1190 |
|
1191 |
return $group_mods;
|
1235 |
* @param bool $exclude_admins_mods Whether or not to exclude admins and moderators.
|
1236 |
* @param bool $exclude_banned Whether or not to exclude banned members.
|
1237 |
* @param bool|array $exclude Array of user IDs to exclude.
|
1238 |
+
* @return false|array
|
1239 |
*/
|
1240 |
public static function get_all_for_group( $group_id, $limit = false, $page = false, $exclude_admins_mods = true, $exclude_banned = true, $exclude = false ) {
|
1241 |
global $wpdb;
|
bp-groups/classes/class-bp-groups-widget.php
CHANGED
@@ -131,11 +131,11 @@ class BP_Groups_Widget extends WP_Widget {
|
|
131 |
<?php while ( bp_groups() ) : bp_the_group(); ?>
|
132 |
<li <?php bp_group_class(); ?>>
|
133 |
<div class="item-avatar">
|
134 |
-
<a href="<?php bp_group_permalink() ?>"
|
135 |
</div>
|
136 |
|
137 |
<div class="item">
|
138 |
-
<div class="item-title"
|
139 |
<div class="item-meta">
|
140 |
<span class="activity">
|
141 |
<?php
|
131 |
<?php while ( bp_groups() ) : bp_the_group(); ?>
|
132 |
<li <?php bp_group_class(); ?>>
|
133 |
<div class="item-avatar">
|
134 |
+
<a href="<?php bp_group_permalink() ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_group_name() ?>"><?php bp_group_avatar_thumb() ?></a>
|
135 |
</div>
|
136 |
|
137 |
<div class="item">
|
138 |
+
<div class="item-title"><?php bp_group_link(); ?></div>
|
139 |
<div class="item-meta">
|
140 |
<span class="activity">
|
141 |
<?php
|
bp-groups/js/widget-groups.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function groups_widget_click_handler(){jQuery(".widget div#groups-list-options a").on("click",function(){var
|
1 |
+
function groups_widget_click_handler(){jQuery(".widget div#groups-list-options a").on("click",function(){var e=this;return jQuery(e).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(t){jQuery(e).removeClass("loading"),groups_widget_response(t)}),!1})}function groups_widget_response(e){e=e.substr(0,e.length-1),"-1"!==(e=e.split("[[SPLIT]]"))[0]?jQuery(".widget ul#groups-list").fadeOut(200,function(){jQuery(".widget ul#groups-list").html(e[1]),jQuery(".widget ul#groups-list").fadeIn(200)}):jQuery(".widget ul#groups-list").fadeOut(200,function(){var t="<p>"+e[1]+"</p>";jQuery(".widget ul#groups-list").html(t),jQuery(".widget ul#groups-list").fadeIn(200)})}jQuery(document).ready(function(){groups_widget_click_handler(),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){groups_widget_click_handler()})});
|
bp-loader.php
CHANGED
@@ -12,10 +12,10 @@
|
|
12 |
/**
|
13 |
* Plugin Name: BuddyPress
|
14 |
* Plugin URI: https://buddypress.org/
|
15 |
-
* Description: BuddyPress
|
16 |
* Author: The BuddyPress Community
|
17 |
* Author URI: https://buddypress.org/
|
18 |
-
* Version: 2.
|
19 |
* Text Domain: buddypress
|
20 |
* Domain Path: /bp-languages/
|
21 |
* License: GPLv2 or later (license.txt)
|
@@ -40,7 +40,7 @@ define( 'BP_REQUIRED_PHP_VERSION', '5.3.0' );
|
|
40 |
*
|
41 |
* Example: <?php $bp = buddypress(); ?>
|
42 |
*
|
43 |
-
* @return BuddyPress The one true BuddyPress Instance.
|
44 |
*/
|
45 |
function buddypress() {
|
46 |
return BuddyPress::instance();
|
12 |
/**
|
13 |
* Plugin Name: BuddyPress
|
14 |
* Plugin URI: https://buddypress.org/
|
15 |
+
* Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
|
16 |
* Author: The BuddyPress Community
|
17 |
* Author URI: https://buddypress.org/
|
18 |
+
* Version: 2.9.0-beta2
|
19 |
* Text Domain: buddypress
|
20 |
* Domain Path: /bp-languages/
|
21 |
* License: GPLv2 or later (license.txt)
|
40 |
*
|
41 |
* Example: <?php $bp = buddypress(); ?>
|
42 |
*
|
43 |
+
* @return BuddyPress|null The one true BuddyPress Instance.
|
44 |
*/
|
45 |
function buddypress() {
|
46 |
return BuddyPress::instance();
|
bp-members/admin/css/admin-rtl.css
CHANGED
@@ -8,7 +8,7 @@ div#profile-page.wrap form#your-profile {
|
|
8 |
}
|
9 |
|
10 |
div#profile-page.wrap form#your-profile h3:first-of-type {
|
11 |
-
margin-top:5em;
|
12 |
}
|
13 |
|
14 |
div#profile-page.wrap form#your-profile #profile-nav {
|
@@ -24,13 +24,14 @@ div#community-profile-page #profile-nav {
|
|
24 |
#bp_members_admin_user_stats ul {
|
25 |
margin-bottom: 0;
|
26 |
}
|
|
|
27 |
div#community-profile-page li.bp-members-profile-stats:before,
|
28 |
div#community-profile-page li.bp-friends-profile-stats:before,
|
29 |
div#community-profile-page li.bp-groups-profile-stats:before,
|
30 |
div#community-profile-page li.bp-blogs-profile-stats:before,
|
31 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before,
|
32 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
33 |
-
font:
|
34 |
speak: none;
|
35 |
display: inline-block;
|
36 |
padding: 0 0 0 2px;
|
@@ -61,7 +62,7 @@ div#community-profile-page li.bp-blogs-profile-stats:before {
|
|
61 |
}
|
62 |
|
63 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before {
|
64 |
-
content:"\f182";
|
65 |
}
|
66 |
|
67 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
@@ -69,8 +70,8 @@ div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
|
69 |
}
|
70 |
|
71 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar {
|
72 |
-
width:150px;
|
73 |
-
margin:0 auto;
|
74 |
}
|
75 |
|
76 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img {
|
@@ -79,13 +80,13 @@ div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img {
|
|
79 |
}
|
80 |
|
81 |
div#community-profile-page div#bp_xprofile_user_admin_avatar a {
|
82 |
-
display:block;
|
83 |
-
margin:1em 0;
|
84 |
}
|
85 |
|
86 |
div#community-profile-page p.not-activated {
|
87 |
-
margin:1em 1em 0;
|
88 |
-
color:
|
89 |
}
|
90 |
|
91 |
#community-profile-page #submitdiv #publishing-action {
|
@@ -100,97 +101,122 @@ div#community-profile-page p.not-activated {
|
|
100 |
.alt {
|
101 |
background: none;
|
102 |
}
|
|
|
103 |
.bp-profile-field {
|
104 |
border-bottom: dotted 1px #ccc;
|
105 |
font-size: 14px;
|
106 |
margin: 15px 0;
|
107 |
padding: 10px;
|
108 |
}
|
|
|
109 |
.bp-profile-field:last-child {
|
110 |
border-bottom: 0;
|
111 |
}
|
|
|
112 |
.bp-profile-field p {
|
113 |
font-size: 14px;
|
114 |
}
|
115 |
|
116 |
-
.
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
vertical-align: middle;
|
121 |
-
width: 200px;
|
122 |
-
}
|
123 |
-
|
124 |
-
.field_type_textarea > label,
|
125 |
-
.field_type_multiselectbox > label,
|
126 |
-
.field_type_radio .radio > label,
|
127 |
-
.field_type_checkbox .checkbox > label { /* these fields are usually pretty tall, so align the label for better consistency */
|
128 |
vertical-align: top;
|
129 |
}
|
|
|
130 |
.bp-profile-field .description { /* description also sits in the right side column */
|
131 |
margin: 10px 200px 12px 0;
|
132 |
text-align: right;
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
.clear-value { /* 'clear value' option also sits in the right side column */
|
135 |
display: block;
|
136 |
font-size: 12px;
|
137 |
margin-right: 200px;
|
138 |
}
|
139 |
-
|
|
|
|
|
|
|
140 |
display: block;
|
|
|
141 |
margin-right: 200px;
|
142 |
width: auto;
|
143 |
}
|
|
|
|
|
|
|
|
|
|
|
144 |
.field_type_radio .radio .input-options label,
|
145 |
.field_type_checkbox .checkbox .input-options label {
|
|
|
146 |
/* force checkboxes and radio buttons to new lines */
|
147 |
display: block;
|
148 |
}
|
|
|
149 |
.field_type_checkbox .checkbox .input-options,
|
150 |
.field_type_datebox .datebox .input-options,
|
151 |
.field_type_radio .radio .input-options {
|
152 |
-
|
|
|
|
|
153 |
display: inline-block;
|
154 |
}
|
|
|
155 |
.field-visibility-settings-notoggle,
|
156 |
.field-visibility-settings-toggle { /* visibility settings go in the left column */
|
157 |
margin: 10px 200px 10px 0;
|
158 |
text-align: right;
|
159 |
}
|
|
|
160 |
.field-visibility-settings { /* visibility settings go in the left column */
|
161 |
display: none;
|
162 |
margin-right: 200px;
|
163 |
}
|
|
|
164 |
.field-visibility-settings .button { /* visibility setting close button */
|
165 |
margin-bottom: 15px;
|
166 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
#normal-sortables .field-visibility-settings legend { /* id required for css selector weight */
|
168 |
font-size: 14px;
|
169 |
-
font-weight:600;
|
170 |
}
|
171 |
|
172 |
-
#your-profile .bp-profile-field
|
173 |
-
|
174 |
-
#your-profile .bp-profile-field .radio legend {
|
175 |
-
float:right; /* Firefox will not apply display: inline-block to legends */
|
176 |
font-size: 14px;
|
177 |
font-weight: 600;
|
178 |
-
line-height: 1.
|
|
|
179 |
text-align: right;
|
180 |
vertical-align: middle;
|
181 |
width: 192px;
|
182 |
}
|
183 |
|
184 |
-
#your-profile .bp-profile-field .radio legend,
|
185 |
-
#your-profile .bp-profile-field .checkbox legend {
|
186 |
-
margin-bottom: 20px;
|
187 |
-
}
|
188 |
-
|
189 |
.bp-profile-field .radio .clear-value {
|
190 |
margin-top: 10px;
|
191 |
}
|
192 |
|
193 |
@media screen and (max-width: 782px) {
|
|
|
194 |
#your-profile .bp-profile-field .checkbox legend,
|
195 |
#your-profile .bp-profile-field .datebox legend,
|
196 |
#your-profile .bp-profile-field .radio legend,
|
@@ -200,16 +226,19 @@ div#community-profile-page p.not-activated {
|
|
200 |
display: block;
|
201 |
margin-bottom: 12px;
|
202 |
}
|
|
|
203 |
.bp-profile-field .checkbox label,
|
204 |
.bp-profile-field .radio label {
|
205 |
-
line-height: 1.
|
206 |
margin-bottom: 12px;
|
207 |
vertical-align: middle;
|
208 |
}
|
|
|
209 |
.bp-profile-field .checkbox input[type="checkbox"],
|
210 |
.bp-profile-field .radio input[type="radio"] {
|
211 |
vertical-align: top;
|
212 |
}
|
|
|
213 |
.bp-profile-field .clear-value,
|
214 |
.bp-profile-field .description,
|
215 |
.bp-profile-field input[type="checkbox"],
|
@@ -225,15 +254,18 @@ div#community-profile-page p.not-activated {
|
|
225 |
clear: right;
|
226 |
margin-right: 50px;
|
227 |
}
|
|
|
228 |
.field-visibility-settings {
|
229 |
margin-right: 100px;
|
230 |
}
|
|
|
231 |
#your-profile .field_multiselectbox select {
|
232 |
height: auto;
|
233 |
}
|
234 |
}
|
235 |
|
236 |
@media screen and (max-width: 480px) {
|
|
|
237 |
.bp-profile-field .clear-value,
|
238 |
.bp-profile-field .description,
|
239 |
.bp-profile-field input[type="checkbox"],
|
@@ -248,6 +280,7 @@ div#community-profile-page p.not-activated {
|
|
248 |
.field-visibility-settings-toggle {
|
249 |
margin-right: 0;
|
250 |
}
|
|
|
251 |
.field-visibility-settings {
|
252 |
margin-right: 50px;
|
253 |
}
|
8 |
}
|
9 |
|
10 |
div#profile-page.wrap form#your-profile h3:first-of-type {
|
11 |
+
margin-top: 5em;
|
12 |
}
|
13 |
|
14 |
div#profile-page.wrap form#your-profile #profile-nav {
|
24 |
#bp_members_admin_user_stats ul {
|
25 |
margin-bottom: 0;
|
26 |
}
|
27 |
+
|
28 |
div#community-profile-page li.bp-members-profile-stats:before,
|
29 |
div#community-profile-page li.bp-friends-profile-stats:before,
|
30 |
div#community-profile-page li.bp-groups-profile-stats:before,
|
31 |
div#community-profile-page li.bp-blogs-profile-stats:before,
|
32 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before,
|
33 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
34 |
+
font: 400 20px/1 dashicons;
|
35 |
speak: none;
|
36 |
display: inline-block;
|
37 |
padding: 0 0 0 2px;
|
62 |
}
|
63 |
|
64 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before {
|
65 |
+
content: "\f182";
|
66 |
}
|
67 |
|
68 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
70 |
}
|
71 |
|
72 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar {
|
73 |
+
width: 150px;
|
74 |
+
margin: 0 auto;
|
75 |
}
|
76 |
|
77 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img {
|
80 |
}
|
81 |
|
82 |
div#community-profile-page div#bp_xprofile_user_admin_avatar a {
|
83 |
+
display: block;
|
84 |
+
margin: 1em 0;
|
85 |
}
|
86 |
|
87 |
div#community-profile-page p.not-activated {
|
88 |
+
margin: 1em 1em 0;
|
89 |
+
color: #f00;
|
90 |
}
|
91 |
|
92 |
#community-profile-page #submitdiv #publishing-action {
|
101 |
.alt {
|
102 |
background: none;
|
103 |
}
|
104 |
+
|
105 |
.bp-profile-field {
|
106 |
border-bottom: dotted 1px #ccc;
|
107 |
font-size: 14px;
|
108 |
margin: 15px 0;
|
109 |
padding: 10px;
|
110 |
}
|
111 |
+
|
112 |
.bp-profile-field:last-child {
|
113 |
border-bottom: 0;
|
114 |
}
|
115 |
+
|
116 |
.bp-profile-field p {
|
117 |
font-size: 14px;
|
118 |
}
|
119 |
|
120 |
+
.field_type_textarea legend,
|
121 |
+
.field_type_multiselectbox legend,
|
122 |
+
.field_type_radio .radio legend,
|
123 |
+
.field_type_checkbox .checkbox legend { /* these fields are usually pretty tall, so align the label for better consistency */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
vertical-align: top;
|
125 |
}
|
126 |
+
|
127 |
.bp-profile-field .description { /* description also sits in the right side column */
|
128 |
margin: 10px 200px 12px 0;
|
129 |
text-align: right;
|
130 |
}
|
131 |
+
|
132 |
+
.bp-profile-field .wp-editor-wrap {
|
133 |
+
margin-right: 200px;
|
134 |
+
}
|
135 |
+
|
136 |
+
.field_type_checkbox .description,
|
137 |
+
.field_type_datebox .description,
|
138 |
+
.field_type_radio .description {
|
139 |
+
margin-top: 0;
|
140 |
+
}
|
141 |
+
|
142 |
.clear-value { /* 'clear value' option also sits in the right side column */
|
143 |
display: block;
|
144 |
font-size: 12px;
|
145 |
margin-right: 200px;
|
146 |
}
|
147 |
+
|
148 |
+
/* force checkboxes to new lines, in the right side column */
|
149 |
+
.field_type_checkbox label,
|
150 |
+
.field_type_radio label {
|
151 |
display: block;
|
152 |
+
margin-bottom: 1em;
|
153 |
margin-right: 200px;
|
154 |
width: auto;
|
155 |
}
|
156 |
+
|
157 |
+
.field_type_datebox select:nth-of-type(1) {
|
158 |
+
margin-right: 200px;
|
159 |
+
}
|
160 |
+
|
161 |
.field_type_radio .radio .input-options label,
|
162 |
.field_type_checkbox .checkbox .input-options label {
|
163 |
+
|
164 |
/* force checkboxes and radio buttons to new lines */
|
165 |
display: block;
|
166 |
}
|
167 |
+
|
168 |
.field_type_checkbox .checkbox .input-options,
|
169 |
.field_type_datebox .datebox .input-options,
|
170 |
.field_type_radio .radio .input-options {
|
171 |
+
|
172 |
+
/* make the checkboxes, select menus, and radio buttons sit in the
|
173 |
+
right side column */
|
174 |
display: inline-block;
|
175 |
}
|
176 |
+
|
177 |
.field-visibility-settings-notoggle,
|
178 |
.field-visibility-settings-toggle { /* visibility settings go in the left column */
|
179 |
margin: 10px 200px 10px 0;
|
180 |
text-align: right;
|
181 |
}
|
182 |
+
|
183 |
.field-visibility-settings { /* visibility settings go in the left column */
|
184 |
display: none;
|
185 |
margin-right: 200px;
|
186 |
}
|
187 |
+
|
188 |
.field-visibility-settings .button { /* visibility setting close button */
|
189 |
margin-bottom: 15px;
|
190 |
}
|
191 |
+
|
192 |
+
.field-visibility-settings label {
|
193 |
+
clear: right;
|
194 |
+
display: block;
|
195 |
+
margin-bottom: 1em;
|
196 |
+
}
|
197 |
+
|
198 |
#normal-sortables .field-visibility-settings legend { /* id required for css selector weight */
|
199 |
font-size: 14px;
|
200 |
+
font-weight: 600;
|
201 |
}
|
202 |
|
203 |
+
#your-profile .bp-profile-field legend {
|
204 |
+
float: right; /* Firefox will not apply display: inline-block to legends */
|
|
|
|
|
205 |
font-size: 14px;
|
206 |
font-weight: 600;
|
207 |
+
line-height: 1.4;
|
208 |
+
margin-bottom: 1em;
|
209 |
text-align: right;
|
210 |
vertical-align: middle;
|
211 |
width: 192px;
|
212 |
}
|
213 |
|
|
|
|
|
|
|
|
|
|
|
214 |
.bp-profile-field .radio .clear-value {
|
215 |
margin-top: 10px;
|
216 |
}
|
217 |
|
218 |
@media screen and (max-width: 782px) {
|
219 |
+
|
220 |
#your-profile .bp-profile-field .checkbox legend,
|
221 |
#your-profile .bp-profile-field .datebox legend,
|
222 |
#your-profile .bp-profile-field .radio legend,
|
226 |
display: block;
|
227 |
margin-bottom: 12px;
|
228 |
}
|
229 |
+
|
230 |
.bp-profile-field .checkbox label,
|
231 |
.bp-profile-field .radio label {
|
232 |
+
line-height: 1.4;
|
233 |
margin-bottom: 12px;
|
234 |
vertical-align: middle;
|
235 |
}
|
236 |
+
|
237 |
.bp-profile-field .checkbox input[type="checkbox"],
|
238 |
.bp-profile-field .radio input[type="radio"] {
|
239 |
vertical-align: top;
|
240 |
}
|
241 |
+
|
242 |
.bp-profile-field .clear-value,
|
243 |
.bp-profile-field .description,
|
244 |
.bp-profile-field input[type="checkbox"],
|
254 |
clear: right;
|
255 |
margin-right: 50px;
|
256 |
}
|
257 |
+
|
258 |
.field-visibility-settings {
|
259 |
margin-right: 100px;
|
260 |
}
|
261 |
+
|
262 |
#your-profile .field_multiselectbox select {
|
263 |
height: auto;
|
264 |
}
|
265 |
}
|
266 |
|
267 |
@media screen and (max-width: 480px) {
|
268 |
+
|
269 |
.bp-profile-field .clear-value,
|
270 |
.bp-profile-field .description,
|
271 |
.bp-profile-field input[type="checkbox"],
|
280 |
.field-visibility-settings-toggle {
|
281 |
margin-right: 0;
|
282 |
}
|
283 |
+
|
284 |
.field-visibility-settings {
|
285 |
margin-right: 50px;
|
286 |
}
|
bp-members/admin/css/admin-rtl.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div#profile-page.wrap form#your-profile{position:relative;padding-top:50px}div#profile-page.wrap form#your-profile h3:first-of-type{margin-top:5em}div#profile-page.wrap form#your-profile #profile-nav{position:absolute;top:0;width:97%}div#community-profile-page #profile-nav{margin-bottom:1em}#bp_members_admin_user_stats ul{margin-bottom:0}div#community-profile-page a.bp-xprofile-avatar-user-admin:before,div#community-profile-page a.bp-xprofile-avatar-user-edit:before,div#community-profile-page li.bp-blogs-profile-stats:before,div#community-profile-page li.bp-friends-profile-stats:before,div#community-profile-page li.bp-groups-profile-stats:before,div#community-profile-page li.bp-members-profile-stats:before{font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 0 0 2px;top:0;right:-1px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#888}div#community-profile-page li.bp-members-profile-stats:before{content:"\f130"}div#community-profile-page li.bp-friends-profile-stats:before{content:"\f454"}div#community-profile-page li.bp-groups-profile-stats:before{content:"\f456"}div#community-profile-page li.bp-blogs-profile-stats:before{content:"\f120"}div#community-profile-page a.bp-xprofile-avatar-user-admin:before{content:"\f182"}div#community-profile-page a.bp-xprofile-avatar-user-edit:before{content:"\f107"}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar{width:150px;margin:0 auto}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img{max-width:100%;height:auto}div#community-profile-page div#bp_xprofile_user_admin_avatar a{display:block;margin:1em 0}div#community-profile-page p.not-activated{margin:1em 1em 0;color:red}#community-profile-page #submitdiv #publishing-action{float:none;width:100%}.bp-view-profile{float:right}.alt{background:0 0}.bp-profile-field{border-bottom:dotted 1px #ccc;font-size:14px;margin:15px 0;padding:10px}.bp-profile-field:last-child{border-bottom:0}.bp-profile-field p{font-size:14px}.
|
1 |
+
div#profile-page.wrap form#your-profile{position:relative;padding-top:50px}div#profile-page.wrap form#your-profile h3:first-of-type{margin-top:5em}div#profile-page.wrap form#your-profile #profile-nav{position:absolute;top:0;width:97%}div#community-profile-page #profile-nav{margin-bottom:1em}#bp_members_admin_user_stats ul{margin-bottom:0}div#community-profile-page a.bp-xprofile-avatar-user-admin:before,div#community-profile-page a.bp-xprofile-avatar-user-edit:before,div#community-profile-page li.bp-blogs-profile-stats:before,div#community-profile-page li.bp-friends-profile-stats:before,div#community-profile-page li.bp-groups-profile-stats:before,div#community-profile-page li.bp-members-profile-stats:before{font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 0 0 2px;top:0;right:-1px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#888}div#community-profile-page li.bp-members-profile-stats:before{content:"\f130"}div#community-profile-page li.bp-friends-profile-stats:before{content:"\f454"}div#community-profile-page li.bp-groups-profile-stats:before{content:"\f456"}div#community-profile-page li.bp-blogs-profile-stats:before{content:"\f120"}div#community-profile-page a.bp-xprofile-avatar-user-admin:before{content:"\f182"}div#community-profile-page a.bp-xprofile-avatar-user-edit:before{content:"\f107"}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar{width:150px;margin:0 auto}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img{max-width:100%;height:auto}div#community-profile-page div#bp_xprofile_user_admin_avatar a{display:block;margin:1em 0}div#community-profile-page p.not-activated{margin:1em 1em 0;color:red}#community-profile-page #submitdiv #publishing-action{float:none;width:100%}.bp-view-profile{float:right}.alt{background:0 0}.bp-profile-field{border-bottom:dotted 1px #ccc;font-size:14px;margin:15px 0;padding:10px}.bp-profile-field:last-child{border-bottom:0}.bp-profile-field p{font-size:14px}.field_type_checkbox .checkbox legend,.field_type_multiselectbox legend,.field_type_radio .radio legend,.field_type_textarea legend{vertical-align:top}.bp-profile-field .description{margin:10px 200px 12px 0;text-align:right}.bp-profile-field .wp-editor-wrap{margin-right:200px}.field_type_checkbox .description,.field_type_datebox .description,.field_type_radio .description{margin-top:0}.clear-value{display:block;font-size:12px;margin-right:200px}.field_type_checkbox label,.field_type_radio label{display:block;margin-bottom:1em;margin-right:200px;width:auto}.field_type_datebox select:nth-of-type(1){margin-right:200px}.field_type_checkbox .checkbox .input-options label,.field_type_radio .radio .input-options label{display:block}.field_type_checkbox .checkbox .input-options,.field_type_datebox .datebox .input-options,.field_type_radio .radio .input-options{display:inline-block}.field-visibility-settings-notoggle,.field-visibility-settings-toggle{margin:10px 200px 10px 0;text-align:right}.field-visibility-settings{display:none;margin-right:200px}.field-visibility-settings .button{margin-bottom:15px}.field-visibility-settings label{clear:right;display:block;margin-bottom:1em}#normal-sortables .field-visibility-settings legend{font-size:14px;font-weight:600}#your-profile .bp-profile-field legend{float:right;font-size:14px;font-weight:600;line-height:1.4;margin-bottom:1em;text-align:right;vertical-align:middle;width:192px}.bp-profile-field .radio .clear-value{margin-top:10px}@media screen and (max-width:782px){#your-profile .bp-profile-field .checkbox legend,#your-profile .bp-profile-field .datebox legend,#your-profile .bp-profile-field .radio legend,.bp-profile-field label{float:none;clear:right;display:block;margin-bottom:12px}.bp-profile-field .checkbox label,.bp-profile-field .radio label{line-height:1.4;margin-bottom:12px;vertical-align:middle}.bp-profile-field .checkbox input[type=checkbox],.bp-profile-field .radio input[type=radio]{vertical-align:top}.bp-profile-field .clear-value,.bp-profile-field .description,.bp-profile-field .wp-editor-wrap,.bp-profile-field input[type=checkbox],.bp-profile-field input[type=email],.bp-profile-field input[type=number],.bp-profile-field input[type=radio],.bp-profile-field input[type=text],.bp-profile-field input[type=url],.bp-profile-field select:nth-of-type(1),.field-visibility-settings-notoggle,.field-visibility-settings-toggle{clear:right;margin-right:50px}.field-visibility-settings{margin-right:100px}#your-profile .field_multiselectbox select{height:auto}}@media screen and (max-width:480px){.bp-profile-field .clear-value,.bp-profile-field .description,.bp-profile-field .wp-editor-wrap,.bp-profile-field input[type=checkbox],.bp-profile-field input[type=email],.bp-profile-field input[type=number],.bp-profile-field input[type=radio],.bp-profile-field input[type=text],.bp-profile-field input[type=url],.bp-profile-field select:nth-of-type(1),.field-visibility-settings-notoggle,.field-visibility-settings-toggle{margin-right:0}.field-visibility-settings{margin-right:50px}}
|
bp-members/admin/css/admin.css
CHANGED
@@ -8,7 +8,7 @@ div#profile-page.wrap form#your-profile {
|
|
8 |
}
|
9 |
|
10 |
div#profile-page.wrap form#your-profile h3:first-of-type {
|
11 |
-
margin-top:5em;
|
12 |
}
|
13 |
|
14 |
div#profile-page.wrap form#your-profile #profile-nav {
|
@@ -24,13 +24,14 @@ div#community-profile-page #profile-nav {
|
|
24 |
#bp_members_admin_user_stats ul {
|
25 |
margin-bottom: 0;
|
26 |
}
|
|
|
27 |
div#community-profile-page li.bp-members-profile-stats:before,
|
28 |
div#community-profile-page li.bp-friends-profile-stats:before,
|
29 |
div#community-profile-page li.bp-groups-profile-stats:before,
|
30 |
div#community-profile-page li.bp-blogs-profile-stats:before,
|
31 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before,
|
32 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
33 |
-
font:
|
34 |
speak: none;
|
35 |
display: inline-block;
|
36 |
padding: 0 2px 0 0;
|
@@ -61,7 +62,7 @@ div#community-profile-page li.bp-blogs-profile-stats:before {
|
|
61 |
}
|
62 |
|
63 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before {
|
64 |
-
content:"\f182";
|
65 |
}
|
66 |
|
67 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
@@ -69,8 +70,8 @@ div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
|
69 |
}
|
70 |
|
71 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar {
|
72 |
-
width:150px;
|
73 |
-
margin:0 auto;
|
74 |
}
|
75 |
|
76 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img {
|
@@ -79,13 +80,13 @@ div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img {
|
|
79 |
}
|
80 |
|
81 |
div#community-profile-page div#bp_xprofile_user_admin_avatar a {
|
82 |
-
display:block;
|
83 |
-
margin:1em 0;
|
84 |
}
|
85 |
|
86 |
div#community-profile-page p.not-activated {
|
87 |
-
margin:1em 1em 0;
|
88 |
-
color:
|
89 |
}
|
90 |
|
91 |
#community-profile-page #submitdiv #publishing-action {
|
@@ -100,97 +101,122 @@ div#community-profile-page p.not-activated {
|
|
100 |
.alt {
|
101 |
background: none;
|
102 |
}
|
|
|
103 |
.bp-profile-field {
|
104 |
border-bottom: dotted 1px #ccc;
|
105 |
font-size: 14px;
|
106 |
margin: 15px 0;
|
107 |
padding: 10px;
|
108 |
}
|
|
|
109 |
.bp-profile-field:last-child {
|
110 |
border-bottom: 0;
|
111 |
}
|
|
|
112 |
.bp-profile-field p {
|
113 |
font-size: 14px;
|
114 |
}
|
115 |
|
116 |
-
.
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
vertical-align: middle;
|
121 |
-
width: 200px;
|
122 |
-
}
|
123 |
-
|
124 |
-
.field_type_textarea > label,
|
125 |
-
.field_type_multiselectbox > label,
|
126 |
-
.field_type_radio .radio > label,
|
127 |
-
.field_type_checkbox .checkbox > label { /* these fields are usually pretty tall, so align the label for better consistency */
|
128 |
vertical-align: top;
|
129 |
}
|
|
|
130 |
.bp-profile-field .description { /* description also sits in the right side column */
|
131 |
margin: 10px 0 12px 200px;
|
132 |
text-align: left;
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
.clear-value { /* 'clear value' option also sits in the right side column */
|
135 |
display: block;
|
136 |
font-size: 12px;
|
137 |
margin-left: 200px;
|
138 |
}
|
139 |
-
|
|
|
|
|
|
|
140 |
display: block;
|
|
|
141 |
margin-left: 200px;
|
142 |
width: auto;
|
143 |
}
|
|
|
|
|
|
|
|
|
|
|
144 |
.field_type_radio .radio .input-options label,
|
145 |
.field_type_checkbox .checkbox .input-options label {
|
|
|
146 |
/* force checkboxes and radio buttons to new lines */
|
147 |
display: block;
|
148 |
}
|
|
|
149 |
.field_type_checkbox .checkbox .input-options,
|
150 |
.field_type_datebox .datebox .input-options,
|
151 |
.field_type_radio .radio .input-options {
|
152 |
-
|
|
|
|
|
153 |
display: inline-block;
|
154 |
}
|
|
|
155 |
.field-visibility-settings-notoggle,
|
156 |
.field-visibility-settings-toggle { /* visibility settings go in the left column */
|
157 |
margin: 10px 0 10px 200px;
|
158 |
text-align: left;
|
159 |
}
|
|
|
160 |
.field-visibility-settings { /* visibility settings go in the left column */
|
161 |
display: none;
|
162 |
margin-left: 200px;
|
163 |
}
|
|
|
164 |
.field-visibility-settings .button { /* visibility setting close button */
|
165 |
margin-bottom: 15px;
|
166 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
#normal-sortables .field-visibility-settings legend { /* id required for css selector weight */
|
168 |
font-size: 14px;
|
169 |
-
font-weight:600;
|
170 |
}
|
171 |
|
172 |
-
#your-profile .bp-profile-field
|
173 |
-
|
174 |
-
#your-profile .bp-profile-field .radio legend {
|
175 |
-
float:left; /* Firefox will not apply display: inline-block to legends */
|
176 |
font-size: 14px;
|
177 |
font-weight: 600;
|
178 |
-
line-height: 1.
|
|
|
179 |
text-align: left;
|
180 |
vertical-align: middle;
|
181 |
width: 192px;
|
182 |
}
|
183 |
|
184 |
-
#your-profile .bp-profile-field .radio legend,
|
185 |
-
#your-profile .bp-profile-field .checkbox legend {
|
186 |
-
margin-bottom: 20px;
|
187 |
-
}
|
188 |
-
|
189 |
.bp-profile-field .radio .clear-value {
|
190 |
margin-top: 10px;
|
191 |
}
|
192 |
|
193 |
@media screen and (max-width: 782px) {
|
|
|
194 |
#your-profile .bp-profile-field .checkbox legend,
|
195 |
#your-profile .bp-profile-field .datebox legend,
|
196 |
#your-profile .bp-profile-field .radio legend,
|
@@ -200,16 +226,19 @@ div#community-profile-page p.not-activated {
|
|
200 |
display: block;
|
201 |
margin-bottom: 12px;
|
202 |
}
|
|
|
203 |
.bp-profile-field .checkbox label,
|
204 |
.bp-profile-field .radio label {
|
205 |
-
line-height: 1.
|
206 |
margin-bottom: 12px;
|
207 |
vertical-align: middle;
|
208 |
}
|
|
|
209 |
.bp-profile-field .checkbox input[type="checkbox"],
|
210 |
.bp-profile-field .radio input[type="radio"] {
|
211 |
vertical-align: top;
|
212 |
}
|
|
|
213 |
.bp-profile-field .clear-value,
|
214 |
.bp-profile-field .description,
|
215 |
.bp-profile-field input[type="checkbox"],
|
@@ -225,15 +254,18 @@ div#community-profile-page p.not-activated {
|
|
225 |
clear: left;
|
226 |
margin-left: 50px;
|
227 |
}
|
|
|
228 |
.field-visibility-settings {
|
229 |
margin-left: 100px;
|
230 |
}
|
|
|
231 |
#your-profile .field_multiselectbox select {
|
232 |
height: auto;
|
233 |
}
|
234 |
}
|
235 |
|
236 |
@media screen and (max-width: 480px) {
|
|
|
237 |
.bp-profile-field .clear-value,
|
238 |
.bp-profile-field .description,
|
239 |
.bp-profile-field input[type="checkbox"],
|
@@ -248,6 +280,7 @@ div#community-profile-page p.not-activated {
|
|
248 |
.field-visibility-settings-toggle {
|
249 |
margin-left: 0;
|
250 |
}
|
|
|
251 |
.field-visibility-settings {
|
252 |
margin-left: 50px;
|
253 |
}
|
8 |
}
|
9 |
|
10 |
div#profile-page.wrap form#your-profile h3:first-of-type {
|
11 |
+
margin-top: 5em;
|
12 |
}
|
13 |
|
14 |
div#profile-page.wrap form#your-profile #profile-nav {
|
24 |
#bp_members_admin_user_stats ul {
|
25 |
margin-bottom: 0;
|
26 |
}
|
27 |
+
|
28 |
div#community-profile-page li.bp-members-profile-stats:before,
|
29 |
div#community-profile-page li.bp-friends-profile-stats:before,
|
30 |
div#community-profile-page li.bp-groups-profile-stats:before,
|
31 |
div#community-profile-page li.bp-blogs-profile-stats:before,
|
32 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before,
|
33 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
34 |
+
font: 400 20px/1 dashicons;
|
35 |
speak: none;
|
36 |
display: inline-block;
|
37 |
padding: 0 2px 0 0;
|
62 |
}
|
63 |
|
64 |
div#community-profile-page a.bp-xprofile-avatar-user-admin:before {
|
65 |
+
content: "\f182";
|
66 |
}
|
67 |
|
68 |
div#community-profile-page a.bp-xprofile-avatar-user-edit:before {
|
70 |
}
|
71 |
|
72 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar {
|
73 |
+
width: 150px;
|
74 |
+
margin: 0 auto;
|
75 |
}
|
76 |
|
77 |
div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img {
|
80 |
}
|
81 |
|
82 |
div#community-profile-page div#bp_xprofile_user_admin_avatar a {
|
83 |
+
display: block;
|
84 |
+
margin: 1em 0;
|
85 |
}
|
86 |
|
87 |
div#community-profile-page p.not-activated {
|
88 |
+
margin: 1em 1em 0;
|
89 |
+
color: #f00;
|
90 |
}
|
91 |
|
92 |
#community-profile-page #submitdiv #publishing-action {
|
101 |
.alt {
|
102 |
background: none;
|
103 |
}
|
104 |
+
|
105 |
.bp-profile-field {
|
106 |
border-bottom: dotted 1px #ccc;
|
107 |
font-size: 14px;
|
108 |
margin: 15px 0;
|
109 |
padding: 10px;
|
110 |
}
|
111 |
+
|
112 |
.bp-profile-field:last-child {
|
113 |
border-bottom: 0;
|
114 |
}
|
115 |
+
|
116 |
.bp-profile-field p {
|
117 |
font-size: 14px;
|
118 |
}
|
119 |
|
120 |
+
.field_type_textarea legend,
|
121 |
+
.field_type_multiselectbox legend,
|
122 |
+
.field_type_radio .radio legend,
|
123 |
+
.field_type_checkbox .checkbox legend { /* these fields are usually pretty tall, so align the label for better consistency */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
vertical-align: top;
|
125 |
}
|
126 |
+
|
127 |
.bp-profile-field .description { /* description also sits in the right side column */
|
128 |
margin: 10px 0 12px 200px;
|
129 |
text-align: left;
|
130 |
}
|
131 |
+
|
132 |
+
.bp-profile-field .wp-editor-wrap {
|
133 |
+
margin-left: 200px;
|
134 |
+
}
|
135 |
+
|
136 |
+
.field_type_checkbox .description,
|
137 |
+
.field_type_datebox .description,
|
138 |
+
.field_type_radio .description {
|
139 |
+
margin-top: 0;
|
140 |
+
}
|
141 |
+
|
142 |
.clear-value { /* 'clear value' option also sits in the right side column */
|
143 |
display: block;
|
144 |
font-size: 12px;
|
145 |
margin-left: 200px;
|
146 |
}
|
147 |
+
|
148 |
+
/* force checkboxes to new lines, in the right side column */
|
149 |
+
.field_type_checkbox label,
|
150 |
+
.field_type_radio label {
|
151 |
display: block;
|
152 |
+
margin-bottom: 1em;
|
153 |
margin-left: 200px;
|
154 |
width: auto;
|
155 |
}
|
156 |
+
|
157 |
+
.field_type_datebox select:nth-of-type(1) {
|
158 |
+
margin-left: 200px;
|
159 |
+
}
|
160 |
+
|
161 |
.field_type_radio .radio .input-options label,
|
162 |
.field_type_checkbox .checkbox .input-options label {
|
163 |
+
|
164 |
/* force checkboxes and radio buttons to new lines */
|
165 |
display: block;
|
166 |
}
|
167 |
+
|
168 |
.field_type_checkbox .checkbox .input-options,
|
169 |
.field_type_datebox .datebox .input-options,
|
170 |
.field_type_radio .radio .input-options {
|
171 |
+
|
172 |
+
/* make the checkboxes, select menus, and radio buttons sit in the
|
173 |
+
right side column */
|
174 |
display: inline-block;
|
175 |
}
|
176 |
+
|
177 |
.field-visibility-settings-notoggle,
|
178 |
.field-visibility-settings-toggle { /* visibility settings go in the left column */
|
179 |
margin: 10px 0 10px 200px;
|
180 |
text-align: left;
|
181 |
}
|
182 |
+
|
183 |
.field-visibility-settings { /* visibility settings go in the left column */
|
184 |
display: none;
|
185 |
margin-left: 200px;
|
186 |
}
|
187 |
+
|
188 |
.field-visibility-settings .button { /* visibility setting close button */
|
189 |
margin-bottom: 15px;
|
190 |
}
|
191 |
+
|
192 |
+
.field-visibility-settings label {
|
193 |
+
clear: left;
|
194 |
+
display: block;
|
195 |
+
margin-bottom: 1em;
|
196 |
+
}
|
197 |
+
|
198 |
#normal-sortables .field-visibility-settings legend { /* id required for css selector weight */
|
199 |
font-size: 14px;
|
200 |
+
font-weight: 600;
|
201 |
}
|
202 |
|
203 |
+
#your-profile .bp-profile-field legend {
|
204 |
+
float: left; /* Firefox will not apply display: inline-block to legends */
|
|
|
|
|
205 |
font-size: 14px;
|
206 |
font-weight: 600;
|
207 |
+
line-height: 1.4;
|
208 |
+
margin-bottom: 1em;
|
209 |
text-align: left;
|
210 |
vertical-align: middle;
|
211 |
width: 192px;
|
212 |
}
|
213 |
|
|
|
|
|
|
|
|
|
|
|
214 |
.bp-profile-field .radio .clear-value {
|
215 |
margin-top: 10px;
|
216 |
}
|
217 |
|
218 |
@media screen and (max-width: 782px) {
|
219 |
+
|
220 |
#your-profile .bp-profile-field .checkbox legend,
|
221 |
#your-profile .bp-profile-field .datebox legend,
|
222 |
#your-profile .bp-profile-field .radio legend,
|
226 |
display: block;
|
227 |
margin-bottom: 12px;
|
228 |
}
|
229 |
+
|
230 |
.bp-profile-field .checkbox label,
|
231 |
.bp-profile-field .radio label {
|
232 |
+
line-height: 1.4;
|
233 |
margin-bottom: 12px;
|
234 |
vertical-align: middle;
|
235 |
}
|
236 |
+
|
237 |
.bp-profile-field .checkbox input[type="checkbox"],
|
238 |
.bp-profile-field .radio input[type="radio"] {
|
239 |
vertical-align: top;
|
240 |
}
|
241 |
+
|
242 |
.bp-profile-field .clear-value,
|
243 |
.bp-profile-field .description,
|
244 |
.bp-profile-field input[type="checkbox"],
|
254 |
clear: left;
|
255 |
margin-left: 50px;
|
256 |
}
|
257 |
+
|
258 |
.field-visibility-settings {
|
259 |
margin-left: 100px;
|
260 |
}
|
261 |
+
|
262 |
#your-profile .field_multiselectbox select {
|
263 |
height: auto;
|
264 |
}
|
265 |
}
|
266 |
|
267 |
@media screen and (max-width: 480px) {
|
268 |
+
|
269 |
.bp-profile-field .clear-value,
|
270 |
.bp-profile-field .description,
|
271 |
.bp-profile-field input[type="checkbox"],
|
280 |
.field-visibility-settings-toggle {
|
281 |
margin-left: 0;
|
282 |
}
|
283 |
+
|
284 |
.field-visibility-settings {
|
285 |
margin-left: 50px;
|
286 |
}
|
bp-members/admin/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div#profile-page.wrap form#your-profile{position:relative;padding-top:50px}div#profile-page.wrap form#your-profile h3:first-of-type{margin-top:5em}div#profile-page.wrap form#your-profile #profile-nav{position:absolute;top:0;width:97%}div#community-profile-page #profile-nav{margin-bottom:1em}#bp_members_admin_user_stats ul{margin-bottom:0}div#community-profile-page a.bp-xprofile-avatar-user-admin:before,div#community-profile-page a.bp-xprofile-avatar-user-edit:before,div#community-profile-page li.bp-blogs-profile-stats:before,div#community-profile-page li.bp-friends-profile-stats:before,div#community-profile-page li.bp-groups-profile-stats:before,div#community-profile-page li.bp-members-profile-stats:before{font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 2px 0 0;top:0;left:-1px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#888}div#community-profile-page li.bp-members-profile-stats:before{content:"\f130"}div#community-profile-page li.bp-friends-profile-stats:before{content:"\f454"}div#community-profile-page li.bp-groups-profile-stats:before{content:"\f456"}div#community-profile-page li.bp-blogs-profile-stats:before{content:"\f120"}div#community-profile-page a.bp-xprofile-avatar-user-admin:before{content:"\f182"}div#community-profile-page a.bp-xprofile-avatar-user-edit:before{content:"\f107"}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar{width:150px;margin:0 auto}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img{max-width:100%;height:auto}div#community-profile-page div#bp_xprofile_user_admin_avatar a{display:block;margin:1em 0}div#community-profile-page p.not-activated{margin:1em 1em 0;color:red}#community-profile-page #submitdiv #publishing-action{float:none;width:100%}.bp-view-profile{float:left}.alt{background:0 0}.bp-profile-field{border-bottom:dotted 1px #ccc;font-size:14px;margin:15px 0;padding:10px}.bp-profile-field:last-child{border-bottom:0}.bp-profile-field p{font-size:14px}.
|
1 |
+
div#profile-page.wrap form#your-profile{position:relative;padding-top:50px}div#profile-page.wrap form#your-profile h3:first-of-type{margin-top:5em}div#profile-page.wrap form#your-profile #profile-nav{position:absolute;top:0;width:97%}div#community-profile-page #profile-nav{margin-bottom:1em}#bp_members_admin_user_stats ul{margin-bottom:0}div#community-profile-page a.bp-xprofile-avatar-user-admin:before,div#community-profile-page a.bp-xprofile-avatar-user-edit:before,div#community-profile-page li.bp-blogs-profile-stats:before,div#community-profile-page li.bp-friends-profile-stats:before,div#community-profile-page li.bp-groups-profile-stats:before,div#community-profile-page li.bp-members-profile-stats:before{font:400 20px/1 dashicons;speak:none;display:inline-block;padding:0 2px 0 0;top:0;left:-1px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#888}div#community-profile-page li.bp-members-profile-stats:before{content:"\f130"}div#community-profile-page li.bp-friends-profile-stats:before{content:"\f454"}div#community-profile-page li.bp-groups-profile-stats:before{content:"\f456"}div#community-profile-page li.bp-blogs-profile-stats:before{content:"\f120"}div#community-profile-page a.bp-xprofile-avatar-user-admin:before{content:"\f182"}div#community-profile-page a.bp-xprofile-avatar-user-edit:before{content:"\f107"}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar{width:150px;margin:0 auto}div#community-profile-page div#bp_xprofile_user_admin_avatar div.avatar img{max-width:100%;height:auto}div#community-profile-page div#bp_xprofile_user_admin_avatar a{display:block;margin:1em 0}div#community-profile-page p.not-activated{margin:1em 1em 0;color:red}#community-profile-page #submitdiv #publishing-action{float:none;width:100%}.bp-view-profile{float:left}.alt{background:0 0}.bp-profile-field{border-bottom:dotted 1px #ccc;font-size:14px;margin:15px 0;padding:10px}.bp-profile-field:last-child{border-bottom:0}.bp-profile-field p{font-size:14px}.field_type_checkbox .checkbox legend,.field_type_multiselectbox legend,.field_type_radio .radio legend,.field_type_textarea legend{vertical-align:top}.bp-profile-field .description{margin:10px 0 12px 200px;text-align:left}.bp-profile-field .wp-editor-wrap{margin-left:200px}.field_type_checkbox .description,.field_type_datebox .description,.field_type_radio .description{margin-top:0}.clear-value{display:block;font-size:12px;margin-left:200px}.field_type_checkbox label,.field_type_radio label{display:block;margin-bottom:1em;margin-left:200px;width:auto}.field_type_datebox select:nth-of-type(1){margin-left:200px}.field_type_checkbox .checkbox .input-options label,.field_type_radio .radio .input-options label{display:block}.field_type_checkbox .checkbox .input-options,.field_type_datebox .datebox .input-options,.field_type_radio .radio .input-options{display:inline-block}.field-visibility-settings-notoggle,.field-visibility-settings-toggle{margin:10px 0 10px 200px;text-align:left}.field-visibility-settings{display:none;margin-left:200px}.field-visibility-settings .button{margin-bottom:15px}.field-visibility-settings label{clear:left;display:block;margin-bottom:1em}#normal-sortables .field-visibility-settings legend{font-size:14px;font-weight:600}#your-profile .bp-profile-field legend{float:left;font-size:14px;font-weight:600;line-height:1.4;margin-bottom:1em;text-align:left;vertical-align:middle;width:192px}.bp-profile-field .radio .clear-value{margin-top:10px}@media screen and (max-width:782px){#your-profile .bp-profile-field .checkbox legend,#your-profile .bp-profile-field .datebox legend,#your-profile .bp-profile-field .radio legend,.bp-profile-field label{float:none;clear:left;display:block;margin-bottom:12px}.bp-profile-field .checkbox label,.bp-profile-field .radio label{line-height:1.4;margin-bottom:12px;vertical-align:middle}.bp-profile-field .checkbox input[type=checkbox],.bp-profile-field .radio input[type=radio]{vertical-align:top}.bp-profile-field .clear-value,.bp-profile-field .description,.bp-profile-field .wp-editor-wrap,.bp-profile-field input[type=checkbox],.bp-profile-field input[type=email],.bp-profile-field input[type=number],.bp-profile-field input[type=radio],.bp-profile-field input[type=text],.bp-profile-field input[type=url],.bp-profile-field select:nth-of-type(1),.field-visibility-settings-notoggle,.field-visibility-settings-toggle{clear:left;margin-left:50px}.field-visibility-settings{margin-left:100px}#your-profile .field_multiselectbox select{height:auto}}@media screen and (max-width:480px){.bp-profile-field .clear-value,.bp-profile-field .description,.bp-profile-field .wp-editor-wrap,.bp-profile-field input[type=checkbox],.bp-profile-field input[type=email],.bp-profile-field input[type=number],.bp-profile-field input[type=radio],.bp-profile-field input[type=text],.bp-profile-field input[type=url],.bp-profile-field select:nth-of-type(1),.field-visibility-settings-notoggle,.field-visibility-settings-toggle{margin-left:0}.field-visibility-settings{margin-left:50px}}
|
bp-members/admin/js/admin.js
CHANGED
@@ -6,13 +6,15 @@
|
|
6 |
$( '.visibility-toggle-link' ).on( 'click', function( event ) {
|
7 |
event.preventDefault();
|
8 |
|
9 |
-
$( this ).parent().hide()
|
10 |
.siblings( '.field-visibility-settings' ).show();
|
11 |
} );
|
12 |
|
13 |
$( '.field-visibility-settings-close' ).on( 'click', function( event ) {
|
14 |
event.preventDefault();
|
15 |
|
|
|
|
|
16 |
var settings_div = $(this).parent(),
|
17 |
vis_setting_text = settings_div.find( 'input:checked' ).parent().text();
|
18 |
|
6 |
$( '.visibility-toggle-link' ).on( 'click', function( event ) {
|
7 |
event.preventDefault();
|
8 |
|
9 |
+
$( this ).attr( 'aria-expanded', 'true' ).parent().hide()
|
10 |
.siblings( '.field-visibility-settings' ).show();
|
11 |
} );
|
12 |
|
13 |
$( '.field-visibility-settings-close' ).on( 'click', function( event ) {
|
14 |
event.preventDefault();
|
15 |
|
16 |
+
$( '.visibility-toggle-link' ).attr( 'aria-expanded', 'false' );
|
17 |
+
|
18 |
var settings_div = $(this).parent(),
|
19 |
vis_setting_text = settings_div.find( 'input:checked' ).parent().text();
|
20 |
|
bp-members/admin/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function clear(
|
1 |
+
function clear(e){if(e=document.getElementById(e)){var i=e.getElementsByTagName("INPUT"),t=e.getElementsByTagName("OPTION"),n=0;if(i)for(n=0;n<i.length;n++)i[n].checked="";if(t)for(n=0;n<t.length;n++)t[n].selected=!1}}!function(e){e(".visibility-toggle-link").on("click",function(i){i.preventDefault(),e(this).attr("aria-expanded","true").parent().hide().siblings(".field-visibility-settings").show()}),e(".field-visibility-settings-close").on("click",function(i){i.preventDefault(),e(".visibility-toggle-link").attr("aria-expanded","false");var t=e(this).parent(),n=t.find("input:checked").parent().text();t.hide().siblings(".field-visibility-settings-toggle").children(".current-visibility-level").text(n).end().show()})}(jQuery);
|
bp-members/bp-members-functions.php
CHANGED
@@ -206,17 +206,26 @@ function bp_core_get_user_domain( $user_id = 0, $user_nicename = false, $user_lo
|
|
206 |
*
|
207 |
* @since 1.2.0
|
208 |
*
|
209 |
-
* @param
|
210 |
-
* @return array
|
211 |
*/
|
212 |
function bp_core_get_core_userdata( $user_id = 0 ) {
|
213 |
if ( empty( $user_id ) ) {
|
214 |
return false;
|
215 |
}
|
216 |
|
217 |
-
|
|
|
|
|
|
|
218 |
$userdata = BP_Core_User::get_core_userdata( $user_id );
|
219 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
}
|
221 |
|
222 |
/**
|
@@ -224,7 +233,7 @@ function bp_core_get_core_userdata( $user_id = 0 ) {
|
|
224 |
*
|
225 |
* @since 1.2.0
|
226 |
*
|
227 |
-
* @param array $userdata Array of user data for a passed user.
|
228 |
*/
|
229 |
return apply_filters( 'bp_core_get_core_userdata', $userdata );
|
230 |
}
|
@@ -1186,7 +1195,7 @@ function bp_update_user_last_activity( $user_id = 0, $time = '' ) {
|
|
1186 |
* @param null $retval Null retval value.
|
1187 |
* @param int $object_id ID of the user.
|
1188 |
* @param string $meta_key Meta key being fetched.
|
1189 |
-
* @return
|
1190 |
*/
|
1191 |
function _bp_get_user_meta_last_activity_warning( $retval, $object_id, $meta_key ) {
|
1192 |
static $warned = false;
|
@@ -1819,7 +1828,7 @@ function bp_core_validate_blog_signup( $blog_url, $blog_title ) {
|
|
1819 |
* @param string $user_email Email address entered by the user.
|
1820 |
* @param array $usermeta Miscellaneous metadata about the user (blog-specific
|
1821 |
* signup data, xprofile data, etc).
|
1822 |
-
* @return
|
1823 |
*/
|
1824 |
function bp_core_signup_user( $user_login, $user_password, $user_email, $usermeta ) {
|
1825 |
$bp = buddypress();
|
@@ -2700,7 +2709,7 @@ function bp_get_member_types( $args = array(), $output = 'names', $operator = 'a
|
|
2700 |
* @param string $member_type Member type.
|
2701 |
* @param bool $append Optional. True to append this to existing types for user,
|
2702 |
* false to replace. Default: false.
|
2703 |
-
* @return array $retval See {@see bp_set_object_terms()}.
|
2704 |
*/
|
2705 |
function bp_set_member_type( $user_id, $member_type, $append = false ) {
|
2706 |
// Pass an empty $member_type to remove a user's type.
|
@@ -2847,7 +2856,7 @@ function bp_has_member_type( $user_id, $member_type ) {
|
|
2847 |
* @since 2.2.0
|
2848 |
*
|
2849 |
* @param int $user_id ID of the user.
|
2850 |
-
* @return array $value See {@see bp_set_member_type()}.
|
2851 |
*/
|
2852 |
function bp_remove_member_type_on_user_delete( $user_id ) {
|
2853 |
return bp_set_member_type( $user_id, '' );
|
206 |
*
|
207 |
* @since 1.2.0
|
208 |
*
|
209 |
+
* @param int $user_id The ID of the user.
|
210 |
+
* @return array|bool Array of data on success, boolean false on failure.
|
211 |
*/
|
212 |
function bp_core_get_core_userdata( $user_id = 0 ) {
|
213 |
if ( empty( $user_id ) ) {
|
214 |
return false;
|
215 |
}
|
216 |
|
217 |
+
$userdata = wp_cache_get( 'bp_core_userdata_' . $user_id, 'bp' );
|
218 |
+
|
219 |
+
// No cache.
|
220 |
+
if ( false === $userdata ) {
|
221 |
$userdata = BP_Core_User::get_core_userdata( $user_id );
|
222 |
+
|
223 |
+
// Cache data; no-result is cached as integer 0.
|
224 |
+
wp_cache_set( 'bp_core_userdata_' . $user_id, false === $userdata ? 0 : $userdata, 'bp' );
|
225 |
+
|
226 |
+
// Cached no-result, so set return value as false as expected.
|
227 |
+
} elseif ( 0 === $userdata ) {
|
228 |
+
$userdata = false;
|
229 |
}
|
230 |
|
231 |
/**
|
233 |
*
|
234 |
* @since 1.2.0
|
235 |
*
|
236 |
+
* @param array|bool $userdata Array of user data for a passed user on success, boolean false on failure.
|
237 |
*/
|
238 |
return apply_filters( 'bp_core_get_core_userdata', $userdata );
|
239 |
}
|
1195 |
* @param null $retval Null retval value.
|
1196 |
* @param int $object_id ID of the user.
|
1197 |
* @param string $meta_key Meta key being fetched.
|
1198 |
+
* @return string|null
|
1199 |
*/
|
1200 |
function _bp_get_user_meta_last_activity_warning( $retval, $object_id, $meta_key ) {
|
1201 |
static $warned = false;
|
1828 |
* @param string $user_email Email address entered by the user.
|
1829 |
* @param array $usermeta Miscellaneous metadata about the user (blog-specific
|
1830 |
* signup data, xprofile data, etc).
|
1831 |
+
* @return int|false True on success, WP_Error on failure.
|
1832 |
*/
|
1833 |
function bp_core_signup_user( $user_login, $user_password, $user_email, $usermeta ) {
|
1834 |
$bp = buddypress();
|
2709 |
* @param string $member_type Member type.
|
2710 |
* @param bool $append Optional. True to append this to existing types for user,
|
2711 |
* false to replace. Default: false.
|
2712 |
+
* @return false|array $retval See {@see bp_set_object_terms()}.
|
2713 |
*/
|
2714 |
function bp_set_member_type( $user_id, $member_type, $append = false ) {
|
2715 |
// Pass an empty $member_type to remove a user's type.
|
2856 |
* @since 2.2.0
|
2857 |
*
|
2858 |
* @param int $user_id ID of the user.
|
2859 |
+
* @return false|array $value See {@see bp_set_member_type()}.
|
2860 |
*/
|
2861 |
function bp_remove_member_type_on_user_delete( $user_id ) {
|
2862 |
return bp_set_member_type( $user_id, '' );
|
bp-members/bp-members-template.php
CHANGED
@@ -1159,7 +1159,9 @@ function bp_member_profile_data( $args = '' ) {
|
|
1159 |
* @param string|bool $data Profile data if found, otherwise false.
|
1160 |
* @param array $r Array of parsed arguments.
|
1161 |
*/
|
1162 |
-
|
|
|
|
|
1163 |
|
1164 |
return $data;
|
1165 |
}
|
1159 |
* @param string|bool $data Profile data if found, otherwise false.
|
1160 |
* @param array $r Array of parsed arguments.
|
1161 |
*/
|
1162 |
+
if ( ! empty( $profile_data[ $r['field'] ]['field_type'] ) ) {
|
1163 |
+
$data = apply_filters( 'bp_get_member_profile_data_' . $profile_data[ $r['field'] ]['field_type'], $data, $r );
|
1164 |
+
}
|
1165 |
|
1166 |
return $data;
|
1167 |
}
|
bp-members/classes/class-bp-core-members-widget.php
CHANGED
@@ -126,7 +126,7 @@ class BP_Core_Members_Widget extends WP_Widget {
|
|
126 |
|
127 |
<li class="vcard">
|
128 |
<div class="item-avatar">
|
129 |
-
<a href="<?php bp_member_permalink() ?>"
|
130 |
</div>
|
131 |
|
132 |
<div class="item">
|
126 |
|
127 |
<li class="vcard">
|
128 |
<div class="item-avatar">
|
129 |
+
<a href="<?php bp_member_permalink() ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>
|
130 |
</div>
|
131 |
|
132 |
<div class="item">
|
bp-members/classes/class-bp-core-recently-active-widget.php
CHANGED
@@ -85,7 +85,7 @@ class BP_Core_Recently_Active_Widget extends WP_Widget {
|
|
85 |
<?php while ( bp_members() ) : bp_the_member(); ?>
|
86 |
|
87 |
<div class="item-avatar">
|
88 |
-
<a href="<?php bp_member_permalink(); ?>"
|
89 |
</div>
|
90 |
|
91 |
<?php endwhile; ?>
|
85 |
<?php while ( bp_members() ) : bp_the_member(); ?>
|
86 |
|
87 |
<div class="item-avatar">
|
88 |
+
<a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>
|
89 |
</div>
|
90 |
|
91 |
<?php endwhile; ?>
|
bp-members/classes/class-bp-core-whos-online-widget.php
CHANGED
@@ -84,7 +84,7 @@ class BP_Core_Whos_Online_Widget extends WP_Widget {
|
|
84 |
<?php while ( bp_members() ) : bp_the_member(); ?>
|
85 |
|
86 |
<div class="item-avatar">
|
87 |
-
<a href="<?php bp_member_permalink(); ?>"
|
88 |
</div>
|
89 |
|
90 |
<?php endwhile; ?>
|
84 |
<?php while ( bp_members() ) : bp_the_member(); ?>
|
85 |
|
86 |
<div class="item-avatar">
|
87 |
+
<a href="<?php bp_member_permalink(); ?>" class="bp-tooltip" data-bp-tooltip="<?php bp_member_name(); ?>"><?php bp_member_avatar(); ?></a>
|
88 |
</div>
|
89 |
|
90 |
<?php endwhile; ?>
|
bp-members/classes/class-bp-members-admin.php
CHANGED
@@ -65,6 +65,7 @@ class BP_Members_Admin {
|
|
65 |
*
|
66 |
* @since 2.0.0
|
67 |
*
|
|
|
68 |
*/
|
69 |
public static function register_members_admin() {
|
70 |
if ( ! is_admin() ) {
|
@@ -661,7 +662,7 @@ class BP_Members_Admin {
|
|
661 |
*
|
662 |
* @param object|null $user User to create profile navigation for.
|
663 |
* @param string $active Which profile to highlight.
|
664 |
-
* @return string
|
665 |
*/
|
666 |
public function profile_nav( $user = null, $active = 'WordPress' ) {
|
667 |
|
@@ -1222,7 +1223,7 @@ class BP_Members_Admin {
|
|
1222 |
*
|
1223 |
* @param array|string $actions WordPress row actions (edit, delete).
|
1224 |
* @param object|null $user The object for the user row.
|
1225 |
-
* @return array Merged actions.
|
1226 |
*/
|
1227 |
public function row_actions( $actions = '', $user = null ) {
|
1228 |
|
@@ -1344,7 +1345,7 @@ class BP_Members_Admin {
|
|
1344 |
* @since 2.0.0
|
1345 |
*
|
1346 |
* @param WP_User_Query|null $query The users query.
|
1347 |
-
* @return WP_User_Query The users query without the signups.
|
1348 |
*/
|
1349 |
public function remove_signups_from_user_query( $query = null ) {
|
1350 |
global $wpdb;
|
@@ -1422,7 +1423,7 @@ class BP_Members_Admin {
|
|
1422 |
*
|
1423 |
* @param string $class The name of the class to use.
|
1424 |
* @param string $required The parent class.
|
1425 |
-
* @return WP_List_Table The List table.
|
1426 |
*/
|
1427 |
public static function get_list_table_class( $class = '', $required = '' ) {
|
1428 |
if ( empty( $class ) ) {
|
@@ -1958,7 +1959,7 @@ class BP_Members_Admin {
|
|
1958 |
*
|
1959 |
* @param string $action Delete, activate, or resend activation link.
|
1960 |
*
|
1961 |
-
* @return
|
1962 |
*/
|
1963 |
public function signups_admin_manage( $action = '' ) {
|
1964 |
if ( ! current_user_can( $this->capability ) || empty( $action ) ) {
|
65 |
*
|
66 |
* @since 2.0.0
|
67 |
*
|
68 |
+
* @return BP_Members_Admin
|
69 |
*/
|
70 |
public static function register_members_admin() {
|
71 |
if ( ! is_admin() ) {
|
662 |
*
|
663 |
* @param object|null $user User to create profile navigation for.
|
664 |
* @param string $active Which profile to highlight.
|
665 |
+
* @return string|null
|
666 |
*/
|
667 |
public function profile_nav( $user = null, $active = 'WordPress' ) {
|
668 |
|
1223 |
*
|
1224 |
* @param array|string $actions WordPress row actions (edit, delete).
|
1225 |
* @param object|null $user The object for the user row.
|
1226 |
+
* @return null|string|array Merged actions.
|
1227 |
*/
|
1228 |
public function row_actions( $actions = '', $user = null ) {
|
1229 |
|
1345 |
* @since 2.0.0
|
1346 |
*
|
1347 |
* @param WP_User_Query|null $query The users query.
|
1348 |
+
* @return WP_User_Query|null The users query without the signups.
|
1349 |
*/
|
1350 |
public function remove_signups_from_user_query( $query = null ) {
|
1351 |
global $wpdb;
|
1423 |
*
|
1424 |
* @param string $class The name of the class to use.
|
1425 |
* @param string $required The parent class.
|
1426 |
+
* @return WP_List_Table|null The List table.
|
1427 |
*/
|
1428 |
public static function get_list_table_class( $class = '', $required = '' ) {
|
1429 |
if ( empty( $class ) ) {
|
1959 |
*
|
1960 |
* @param string $action Delete, activate, or resend activation link.
|
1961 |
*
|
1962 |
+
* @return null|false
|
1963 |
*/
|
1964 |
public function signups_admin_manage( $action = '' ) {
|
1965 |
if ( ! current_user_can( $this->capability ) || empty( $action ) ) {
|
bp-members/classes/class-bp-members-list-table.php
CHANGED
@@ -308,7 +308,7 @@ class BP_Members_List_Table extends WP_Users_List_Table {
|
|
308 |
bp_get_admin_url( 'users.php' )
|
309 |
);
|
310 |
|
311 |
-
echo $avatar . sprintf( '<strong><a href="%1$s" class="edit"
|
312 |
|
313 |
$actions = array();
|
314 |
|
308 |
bp_get_admin_url( 'users.php' )
|
309 |
);
|
310 |
|
311 |
+
echo $avatar . sprintf( '<strong><a href="%1$s" class="edit">%2$s</a></strong><br/>', esc_url( $activate_link ), $signup_object->user_login );
|
312 |
|
313 |
$actions = array();
|
314 |
|
bp-members/classes/class-bp-members-ms-list-table.php
CHANGED
@@ -301,7 +301,7 @@ class BP_Members_MS_List_Table extends WP_MS_Users_List_Table {
|
|
301 |
network_admin_url( 'users.php' )
|
302 |
);
|
303 |
|
304 |
-
echo $avatar . sprintf( '<strong><a href="%1$s" class="edit"
|
305 |
|
306 |
$actions = array();
|
307 |
|
301 |
network_admin_url( 'users.php' )
|
302 |
);
|
303 |
|
304 |
+
echo $avatar . sprintf( '<strong><a href="%1$s" class="edit">%2$s</a></strong><br/>', esc_url( $activate_link ), $signup_object->user_login );
|
305 |
|
306 |
$actions = array();
|
307 |
|
bp-messages/bp-messages-actions.php
CHANGED
@@ -222,7 +222,7 @@ function messages_action_conversation() {
|
|
222 |
$thread_id = (int) bp_action_variable( 0 );
|
223 |
|
224 |
if ( ! messages_is_valid_thread( $thread_id ) || ( ! messages_check_thread_access( $thread_id ) && ! bp_current_user_can( 'bp_moderate' ) ) ) {
|
225 |
-
|
226 |
}
|
227 |
|
228 |
// Check if a new reply has been submitted.
|
@@ -247,8 +247,13 @@ function messages_action_conversation() {
|
|
247 |
bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id . '/' );
|
248 |
}
|
249 |
|
250 |
-
|
251 |
-
|
|
|
|
|
|
|
|
|
|
|
252 |
|
253 |
/**
|
254 |
* Fires after processing a view request for a single message thread.
|
@@ -295,7 +300,7 @@ add_action( 'bp_actions', 'messages_action_delete_message' );
|
|
295 |
*
|
296 |
* @since 2.2.0
|
297 |
*
|
298 |
-
* @return
|
299 |
* message box URL.
|
300 |
*/
|
301 |
function bp_messages_action_mark_read() {
|
@@ -319,7 +324,7 @@ function bp_messages_action_mark_read() {
|
|
319 |
}
|
320 |
|
321 |
// Check access to the message and mark as read.
|
322 |
-
if ( messages_check_thread_access( $id ) ) {
|
323 |
messages_mark_thread_read( $id );
|
324 |
bp_core_add_message( __( 'Message marked as read.', 'buddypress' ) );
|
325 |
} else {
|
@@ -336,7 +341,7 @@ add_action( 'bp_actions', 'bp_messages_action_mark_read' );
|
|
336 |
*
|
337 |
* @since 2.2.0
|
338 |
*
|
339 |
-
* @return
|
340 |
* message box URL.
|
341 |
*/
|
342 |
function bp_messages_action_mark_unread() {
|
@@ -360,7 +365,7 @@ function bp_messages_action_mark_unread() {
|
|
360 |
}
|
361 |
|
362 |
// Check access to the message and mark unread.
|
363 |
-
if ( messages_check_thread_access( $id ) ) {
|
364 |
messages_mark_thread_unread( $id );
|
365 |
bp_core_add_message( __( 'Message marked unread.', 'buddypress' ) );
|
366 |
} else {
|
@@ -404,7 +409,7 @@ function bp_messages_action_bulk_manage() {
|
|
404 |
|
405 |
// Make sure the user has access to all notifications before managing them.
|
406 |
foreach ( $messages as $message ) {
|
407 |
-
if ( ! messages_check_thread_access( $message ) ) {
|
408 |
bp_core_add_message( __( 'There was a problem managing your messages.', 'buddypress' ), 'error' );
|
409 |
bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' );
|
410 |
}
|
222 |
$thread_id = (int) bp_action_variable( 0 );
|
223 |
|
224 |
if ( ! messages_is_valid_thread( $thread_id ) || ( ! messages_check_thread_access( $thread_id ) && ! bp_current_user_can( 'bp_moderate' ) ) ) {
|
225 |
+
return;
|
226 |
}
|
227 |
|
228 |
// Check if a new reply has been submitted.
|
247 |
bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id . '/' );
|
248 |
}
|
249 |
|
250 |
+
/*
|
251 |
+
* Mark message read, but only run on the logged-in user's profile.
|
252 |
+
* If an admin visits a thread, it shouldn't change the read status.
|
253 |
+
*/
|
254 |
+
if ( bp_is_my_profile() ) {
|
255 |
+
messages_mark_thread_read( $thread_id );
|
256 |
+
}
|
257 |
|
258 |
/**
|
259 |
* Fires after processing a view request for a single message thread.
|
300 |
*
|
301 |
* @since 2.2.0
|
302 |
*
|
303 |
+
* @return false|null Returns false on failure. Otherwise redirects back to the
|
304 |
* message box URL.
|
305 |
*/
|
306 |
function bp_messages_action_mark_read() {
|
324 |
}
|
325 |
|
326 |
// Check access to the message and mark as read.
|
327 |
+
if ( messages_check_thread_access( $id ) || bp_current_user_can( 'bp_moderate' ) ) {
|
328 |
messages_mark_thread_read( $id );
|
329 |
bp_core_add_message( __( 'Message marked as read.', 'buddypress' ) );
|
330 |
} else {
|
341 |
*
|
342 |
* @since 2.2.0
|
343 |
*
|
344 |
+
* @return false|null Returns false on failure. Otherwise redirects back to the
|
345 |
* message box URL.
|
346 |
*/
|
347 |
function bp_messages_action_mark_unread() {
|
365 |
}
|
366 |
|
367 |
// Check access to the message and mark unread.
|
368 |
+
if ( messages_check_thread_access( $id ) || bp_current_user_can( 'bp_moderate' ) ) {
|
369 |
messages_mark_thread_unread( $id );
|
370 |
bp_core_add_message( __( 'Message marked unread.', 'buddypress' ) );
|
371 |
} else {
|
409 |
|
410 |
// Make sure the user has access to all notifications before managing them.
|
411 |
foreach ( $messages as $message ) {
|
412 |
+
if ( ! messages_check_thread_access( $message ) && ! bp_current_user_can( 'bp_moderate' ) ) {
|
413 |
bp_core_add_message( __( 'There was a problem managing your messages.', 'buddypress' ), 'error' );
|
414 |
bp_core_redirect( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' );
|
415 |
}
|
bp-messages/bp-messages-cache.php
CHANGED
@@ -74,8 +74,9 @@ add_action( 'messages_message_after_save', 'bp_messages_clear_cache_on_message_s
|
|
74 |
*
|
75 |
* @param int|array $thread_ids If single thread, the thread ID.
|
76 |
* Otherwise, an array of thread IDs.
|
|
|
77 |
*/
|
78 |
-
function bp_messages_clear_cache_on_message_delete( $thread_ids ) {
|
79 |
// Delete thread and thread recipient cache.
|
80 |
foreach( (array) $thread_ids as $thread_id ) {
|
81 |
wp_cache_delete( $thread_id, 'bp_messages_threads' );
|
@@ -83,9 +84,9 @@ function bp_messages_clear_cache_on_message_delete( $thread_ids ) {
|
|
83 |
}
|
84 |
|
85 |
// Delete unread count for logged-in user.
|
86 |
-
wp_cache_delete(
|
87 |
}
|
88 |
-
add_action( 'messages_delete_thread', 'bp_messages_clear_cache_on_message_delete' );
|
89 |
|
90 |
/**
|
91 |
* Invalidate cache for notices.
|
74 |
*
|
75 |
* @param int|array $thread_ids If single thread, the thread ID.
|
76 |
* Otherwise, an array of thread IDs.
|
77 |
+
* @param int $user_id ID of the user that the threads were deleted for.
|
78 |
*/
|
79 |
+
function bp_messages_clear_cache_on_message_delete( $thread_ids, $user_id ) {
|
80 |
// Delete thread and thread recipient cache.
|
81 |
foreach( (array) $thread_ids as $thread_id ) {
|
82 |
wp_cache_delete( $thread_id, 'bp_messages_threads' );
|
84 |
}
|
85 |
|
86 |
// Delete unread count for logged-in user.
|
87 |
+
wp_cache_delete( $user_id, 'bp_messages_unread_count' );
|
88 |
}
|
89 |
+
add_action( 'messages_delete_thread', 'bp_messages_clear_cache_on_message_delete', 10, 2 );
|
90 |
|
91 |
/**
|
92 |
* Invalidate cache for notices.
|
bp-messages/bp-messages-filters.php
CHANGED
@@ -82,7 +82,7 @@ add_filter( 'bp_get_the_thread_subject', 'stripslashes_deep' );
|
|
82 |
* @see bp_has_message_threads() for description of parameters
|
83 |
*
|
84 |
* @param array|string $args See {@link bp_has_message_threads()}.
|
85 |
-
* @return array
|
86 |
*/
|
87 |
function bp_messages_enforce_current_user( $args = array() ) {
|
88 |
|
82 |
* @see bp_has_message_threads() for description of parameters
|
83 |
*
|
84 |
* @param array|string $args See {@link bp_has_message_threads()}.
|
85 |
+
* @return array|string
|
86 |
*/
|
87 |
function bp_messages_enforce_current_user( $args = array() ) {
|
88 |
|
bp-messages/bp-messages-functions.php
CHANGED
@@ -254,7 +254,10 @@ function messages_send_notice( $subject, $message ) {
|
|
254 |
function messages_delete_thread( $thread_ids, $user_id = 0 ) {
|
255 |
|
256 |
if ( empty( $user_id ) ) {
|
257 |
-
$user_id =
|
|
|
|
|
|
|
258 |
}
|
259 |
|
260 |
/**
|
@@ -380,10 +383,6 @@ function messages_remove_callback_values() {
|
|
380 |
* @return int
|
381 |
*/
|
382 |
function messages_get_unread_count( $user_id = 0 ) {
|
383 |
-
if ( empty( $user_id ) ) {
|
384 |
-
$user_id = bp_loggedin_user_id();
|
385 |
-
}
|
386 |
-
|
387 |
return BP_Messages_Thread::get_inbox_count( $user_id );
|
388 |
}
|
389 |
|
@@ -413,7 +412,7 @@ function messages_get_message_sender( $message_id ) {
|
|
413 |
* Check whether a message thread exists.
|
414 |
*
|
415 |
* @param int $thread_id ID of the thread.
|
416 |
-
* @return int|null The message thread ID on success, null on failure.
|
417 |
*/
|
418 |
function messages_is_valid_thread( $thread_id ) {
|
419 |
return BP_Messages_Thread::is_valid( $thread_id );
|
@@ -603,7 +602,7 @@ function messages_notification_new_message( $raw_args = array() ) {
|
|
603 |
'notification_type' => 'messages-unread',
|
604 |
);
|
605 |
|
606 |
-
$
|
607 |
'tokens' => array(
|
608 |
'usermessage' => wp_strip_all_tags( stripslashes( $message ) ),
|
609 |
'message.url' => esc_url( bp_core_get_user_domain( $recipient->user_id ) . bp_get_messages_slug() . '/view/' . $thread_id . '/' ),
|
@@ -611,8 +610,7 @@ function messages_notification_new_message( $raw_args = array() ) {
|
|
611 |
'usersubject' => sanitize_text_field( stripslashes( $subject ) ),
|
612 |
'unsubscribe' => esc_url( bp_email_get_unsubscribe_link( $unsubscribe_args ) ),
|
613 |
),
|
614 |
-
);
|
615 |
-
bp_send_email( 'messages-unread', $ud, $args );
|
616 |
}
|
617 |
|
618 |
/**
|
254 |
function messages_delete_thread( $thread_ids, $user_id = 0 ) {
|
255 |
|
256 |
if ( empty( $user_id ) ) {
|
257 |
+
$user_id =
|
258 |
+
bp_displayed_user_id() ?
|
259 |
+
bp_displayed_user_id() :
|
260 |
+
bp_loggedin_user_id();
|
261 |
}
|
262 |
|
263 |
/**
|
383 |
* @return int
|
384 |
*/
|
385 |
function messages_get_unread_count( $user_id = 0 ) {
|
|
|
|
|
|
|
|
|
386 |
return BP_Messages_Thread::get_inbox_count( $user_id );
|
387 |
}
|
388 |
|
412 |
* Check whether a message thread exists.
|
413 |
*
|
414 |
* @param int $thread_id ID of the thread.
|
415 |
+
* @return false|int|null The message thread ID on success, null on failure.
|
416 |
*/
|
417 |
function messages_is_valid_thread( $thread_id ) {
|
418 |
return BP_Messages_Thread::is_valid( $thread_id );
|
602 |
'notification_type' => 'messages-unread',
|
603 |
);
|
604 |
|
605 |
+
bp_send_email( 'messages-unread', $ud, array(
|
606 |
'tokens' => array(
|
607 |
'usermessage' => wp_strip_all_tags( stripslashes( $message ) ),
|
608 |
'message.url' => esc_url( bp_core_get_user_domain( $recipient->user_id ) . bp_get_messages_slug() . '/view/' . $thread_id . '/' ),
|
610 |
'usersubject' => sanitize_text_field( stripslashes( $subject ) ),
|
611 |
'unsubscribe' => esc_url( bp_email_get_unsubscribe_link( $unsubscribe_args ) ),
|
612 |
),
|
613 |
+
) );
|
|
|
614 |
}
|
615 |
|
616 |
/**
|
bp-messages/bp-messages-notifications.php
CHANGED
@@ -53,7 +53,7 @@ function messages_format_notifications( $action, $item_id, $secondary_item_id, $
|
|
53 |
|
54 |
if ( 'string' === $format ) {
|
55 |
if ( ! empty( $link ) ) {
|
56 |
-
$return = '<a href="' . esc_url( $link ) . '"
|
57 |
} else {
|
58 |
$return = esc_html( $text );
|
59 |
}
|
@@ -171,6 +171,14 @@ add_action( 'messages_message_sent', 'bp_messages_message_sent_add_notification'
|
|
171 |
function bp_messages_screen_conversation_mark_notifications() {
|
172 |
global $thread_template;
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
// Get unread PM notifications for the user.
|
175 |
$new_pm_notifications = BP_Notifications_Notification::get( array(
|
176 |
'user_id' => bp_loggedin_user_id(),
|
53 |
|
54 |
if ( 'string' === $format ) {
|
55 |
if ( ! empty( $link ) ) {
|
56 |
+
$return = '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>';
|
57 |
} else {
|
58 |
$return = esc_html( $text );
|
59 |
}
|
171 |
function bp_messages_screen_conversation_mark_notifications() {
|
172 |
global $thread_template;
|
173 |
|
174 |
+
/*
|
175 |
+
* Only run on the logged-in user's profile.
|
176 |
+
* If an admin visits a thread, it shouldn't change the read status.
|
177 |
+
*/
|
178 |
+
if ( ! bp_is_my_profile() ) {
|
179 |
+
return;
|
180 |
+
}
|
181 |
+
|
182 |
// Get unread PM notifications for the user.
|
183 |
$new_pm_notifications = BP_Notifications_Notification::get( array(
|
184 |
'user_id' => bp_loggedin_user_id(),
|
bp-messages/bp-messages-screens.php
CHANGED
@@ -109,7 +109,7 @@ function messages_screen_compose() {
|
|
109 |
*
|
110 |
* @since 1.0.0
|
111 |
*
|
112 |
-
* @return
|
113 |
*/
|
114 |
function messages_screen_conversation() {
|
115 |
|
@@ -120,10 +120,28 @@ function messages_screen_conversation() {
|
|
120 |
|
121 |
$thread_id = (int) bp_action_variable( 0 );
|
122 |
|
123 |
-
if ( empty( $thread_id ) || ! messages_is_valid_thread( $thread_id )
|
|
|
|
|
|
|
|
|
124 |
bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ) );
|
125 |
}
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
// Load up BuddyPress one time.
|
128 |
$bp = buddypress();
|
129 |
|
109 |
*
|
110 |
* @since 1.0.0
|
111 |
*
|
112 |
+
* @return false|null False on failure.
|
113 |
*/
|
114 |
function messages_screen_conversation() {
|
115 |
|
120 |
|
121 |
$thread_id = (int) bp_action_variable( 0 );
|
122 |
|
123 |
+
if ( empty( $thread_id ) || ! messages_is_valid_thread( $thread_id ) ) {
|
124 |
+
if ( is_user_logged_in() ) {
|
125 |
+
bp_core_add_message( __( 'The conversation you tried to access is no longer available', 'buddypress' ), 'error' );
|
126 |
+
}
|
127 |
+
|
128 |
bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ) );
|
129 |
}
|
130 |
|
131 |
+
// No access.
|
132 |
+
if ( ! messages_check_thread_access( $thread_id ) && ! bp_current_user_can( 'bp_moderate' ) ) {
|
133 |
+
// If not logged in, prompt for login.
|
134 |
+
if ( ! is_user_logged_in() ) {
|
135 |
+
bp_core_no_access();
|
136 |
+
return;
|
137 |
+
|
138 |
+
// Redirect away.
|
139 |
+
} else {
|
140 |
+
bp_core_add_message( __( 'You do not have access to that conversation.', 'buddypress' ), 'error' );
|
141 |
+
bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() ) );
|
142 |
+
}
|
143 |
+
}
|
144 |
+
|
145 |
// Load up BuddyPress one time.
|
146 |
$bp = buddypress();
|
147 |
|
bp-messages/bp-messages-star.php
CHANGED
@@ -41,7 +41,7 @@ function bp_get_messages_starred_slug() {
|
|
41 |
*/
|
42 |
function bp_messages_is_message_starred( $mid = 0, $user_id = 0 ) {
|
43 |
if ( empty( $user_id ) ) {
|
44 |
-
$user_id =
|
45 |
}
|
46 |
|
47 |
if ( empty( $mid ) ) {
|
@@ -229,7 +229,7 @@ function bp_the_message_star_action_link( $args = array() ) {
|
|
229 |
* @param string $retval Link for starring / unstarring a message, including markup.
|
230 |
* @param array $r Parsed link arguments. See $args in bp_get_the_message_star_action_link().
|
231 |
*/
|
232 |
-
return apply_filters( 'bp_get_the_message_star_action_link', '<a
|
233 |
}
|
234 |
|
235 |
/**
|
@@ -254,7 +254,7 @@ function bp_messages_star_set_action( $args = array() ) {
|
|
254 |
'action' => 'star',
|
255 |
'thread_id' => 0,
|
256 |
'message_id' => 0,
|
257 |
-
'user_id' =>
|
258 |
'bulk' => false
|
259 |
) );
|
260 |
|
@@ -397,7 +397,7 @@ function bp_messages_star_action_handler() {
|
|
397 |
) );
|
398 |
|
399 |
// Redirect back to previous screen.
|
400 |
-
$redirect = wp_get_referer() ? wp_get_referer() :
|
401 |
bp_core_redirect( $redirect );
|
402 |
die();
|
403 |
}
|
41 |
*/
|
42 |
function bp_messages_is_message_starred( $mid = 0, $user_id = 0 ) {
|
43 |
if ( empty( $user_id ) ) {
|
44 |
+
$user_id = bp_displayed_user_id();
|
45 |
}
|
46 |
|
47 |
if ( empty( $mid ) ) {
|
229 |
* @param string $retval Link for starring / unstarring a message, including markup.
|
230 |
* @param array $r Parsed link arguments. See $args in bp_get_the_message_star_action_link().
|
231 |
*/
|
232 |
+
return apply_filters( 'bp_get_the_message_star_action_link', '<a data-bp-tooltip="' . esc_attr( $title ) . '" class="bp-tooltip message-action-' . esc_attr( $action ) . '" data-star-status="' . esc_attr( $action ) .'" data-star-nonce="' . esc_attr( $nonce ) . '"' . $bulk_attr . ' data-message-id="' . esc_attr( (int) $message_id ) . '" href="' . $retval . '" role="button" aria-pressed="false"><span class="icon"></span> <span class="bp-screen-reader-text">' . $r['text_' . $action] . '</span></a>', $r );
|
233 |
}
|
234 |
|
235 |
/**
|
254 |
'action' => 'star',
|
255 |
'thread_id' => 0,
|
256 |
'message_id' => 0,
|
257 |
+
'user_id' => bp_displayed_user_id(),
|
258 |
'bulk' => false
|
259 |
) );
|
260 |
|
397 |
) );
|
398 |
|
399 |
// Redirect back to previous screen.
|
400 |
+
$redirect = wp_get_referer() ? wp_get_referer() : bp_displayed_user_domain() . bp_get_messages_slug();
|
401 |
bp_core_redirect( $redirect );
|
402 |
die();
|
403 |
}
|
bp-messages/bp-messages-template.php
CHANGED
@@ -58,7 +58,7 @@ function bp_has_message_threads( $args = array() ) {
|
|
58 |
|
59 |
// User ID
|
60 |
// @todo displayed user for moderators that get this far?
|
61 |
-
$user_id =
|
62 |
|
63 |
// Search Terms.
|
64 |
$search_terms = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
|
@@ -304,7 +304,7 @@ function bp_message_thread_view_link( $thread_id = 0 ) {
|
|
304 |
* @param string $value Permalink of a particular thread.
|
305 |
* @param int $thread_id ID of the thread.
|
306 |
*/
|
307 |
-
return apply_filters( 'bp_get_message_thread_view_link', trailingslashit(
|
308 |
}
|
309 |
|
310 |
/**
|
@@ -329,7 +329,7 @@ function bp_message_thread_delete_link() {
|
|
329 |
* @param string $value URL for deleting the current thread.
|
330 |
* @param string $value Text indicating action being executed.
|
331 |
*/
|
332 |
-
return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( trailingslashit(
|
333 |
}
|
334 |
|
335 |
/**
|
@@ -361,7 +361,7 @@ function bp_the_message_thread_mark_unread_url() {
|
|
361 |
);
|
362 |
|
363 |
// Base unread URL.
|
364 |
-
$url = trailingslashit(
|
365 |
|
366 |
// Add the args to the URL.
|
367 |
$url = add_query_arg( $args, $url );
|
@@ -408,7 +408,7 @@ function bp_the_message_thread_mark_read_url() {
|
|
408 |
);
|
409 |
|
410 |
// Base read URL.
|
411 |
-
$url = trailingslashit( bp_loggedin_user_domain() . b
|
58 |
|
59 |
// User ID
|
60 |
// @todo displayed user for moderators that get this far?
|
61 |
+
$user_id = bp_displayed_user_id();
|
62 |
|
63 |
// Search Terms.
|
64 |
$search_terms = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
|
304 |
* @param string $value Permalink of a particular thread.
|
305 |
* @param int $thread_id ID of the thread.
|
306 |
*/
|
307 |
+
return apply_filters( 'bp_get_message_thread_view_link', trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id ), $thread_id );
|
308 |
}
|
309 |
|
310 |
/**
|
329 |
* @param string $value URL for deleting the current thread.
|
330 |
* @param string $value Text indicating action being executed.
|
331 |
*/
|
332 |
+
return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/delete/' . $messages_template->thread->thread_id ), 'messages_delete_thread' ) );
|
333 |
}
|
334 |
|
335 |
/**
|
361 |
);
|
362 |
|
363 |
// Base unread URL.
|
364 |
+
$url = trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/unread' );
|
365 |
|
366 |
// Add the args to the URL.
|
367 |
$url = add_query_arg( $args, $url );
|
408 |
);
|
409 |
|
410 |
// Base read URL.
|
|