bbPress - Version 2.5.2

Version Description

  • Fix BuddyPress (1.9.1) Notification integration
Download this release

Release Info

Developer johnjamesjacoby
Plugin Icon 128x128 bbPress
Version 2.5.2
Comparing to
See all releases

Code changes from version 2.5.1 to 2.5.2

bbpress.php CHANGED
@@ -5,7 +5,7 @@
5
  *
6
  * bbPress is forum software with a twist from the creators of WordPress.
7
  *
8
- * $Id: bbpress.php 5217 2013-12-04 21:14:22Z johnjamesjacoby $
9
  *
10
  * @package bbPress
11
  * @subpackage Main
@@ -17,7 +17,7 @@
17
  * Description: bbPress is forum software with a twist from the creators of WordPress.
18
  * Author: The bbPress Community
19
  * Author URI: http://bbpress.org
20
- * Version: 2.5.1
21
  * Text Domain: bbpress
22
  * Domain Path: /languages/
23
  */
@@ -190,7 +190,7 @@ final class bbPress {
190
 
191
  /** Versions **********************************************************/
192
 
193
- $this->version = '2.5.1-5217';
194
  $this->db_version = '250';
195
 
196
  /** Paths *************************************************************/
5
  *
6
  * bbPress is forum software with a twist from the creators of WordPress.
7
  *
8
+ * $Id: bbpress.php 5234 2013-12-27 22:14:18Z johnjamesjacoby $
9
  *
10
  * @package bbPress
11
  * @subpackage Main
17
  * Description: bbPress is forum software with a twist from the creators of WordPress.
18
  * Author: The bbPress Community
19
  * Author URI: http://bbpress.org
20
+ * Version: 2.5.2
21
  * Text Domain: bbpress
22
  * Domain Path: /languages/
23
  */
190
 
191
  /** Versions **********************************************************/
192
 
193
+ $this->version = '2.5.2-5234';
194
  $this->db_version = '250';
195
 
196
  /** Paths *************************************************************/
includes/admin/css/admin.css ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* Kludge for too-wide forums dropdown */
3
+ #poststuff #bbp_forum_attributes select#parent_id,
4
+ #poststuff #bbp_topic_attributes select#parent_id,
5
+ #poststuff #bbp_reply_attributes select#bbp_forum_id {
6
+ max-width: 170px;
7
+ }
8
+
9
+ /* Version Badge */
10
+
11
+ .bbp-badge {
12
+ padding-top: 142px;
13
+ height: 50px;
14
+ width: 173px;
15
+ color: #fafafa;
16
+ font-weight: bold;
17
+ font-size: 14px;
18
+ text-align: center;
19
+ margin: 0 -5px;
20
+ background: url('../images/badge.png') no-repeat;
21
+ }
22
+
23
+ .about-wrap .bbp-badge {
24
+ position: absolute;
25
+ top: 0;
26
+ right: 0;
27
+ }
28
+ body.rtl .about-wrap .bbp-badge {
29
+ right: auto;
30
+ left: 0;
31
+ }
32
+
33
+ #bbp-dashboard-right-now p.sub,
34
+ #bbp-dashboard-right-now .table,
35
+ #bbp-dashboard-right-now .versions {
36
+ margin: -12px;
37
+ }
38
+
39
+ #bbp-dashboard-right-now .inside {
40
+ font-size: 12px;
41
+ padding-top: 20px;
42
+ margin-bottom: 0;
43
+ }
44
+
45
+ #bbp-dashboard-right-now p.sub {
46
+ padding: 5px 0 15px;
47
+ color: #8f8f8f;
48
+ font-size: 14px;
49
+ position: absolute;
50
+ top: -17px;
51
+ left: 15px;
52
+ }
53
+ body.rtl #bbp-dashboard-right-now p.sub {
54
+ right: 15px;
55
+ left: 0;
56
+ }
57
+
58
+ #bbp-dashboard-right-now .table {
59
+ margin: 0;
60
+ padding: 0;
61
+ position: relative;
62
+ }
63
+
64
+ #bbp-dashboard-right-now .table_content {
65
+ float: left;
66
+ border-top: #ececec 1px solid;
67
+ width: 45%;
68
+ }
69
+ body.rtl #bbp-dashboard-right-now .table_content {
70
+ float: right;
71
+ }
72
+
73
+ #bbp-dashboard-right-now .table_discussion {
74
+ float: right;
75
+ border-top: #ececec 1px solid;
76
+ width: 45%;
77
+ }
78
+ body.rtl #bbp-dashboard-right-now .table_discussion {
79
+ float: left;
80
+ }
81
+
82
+ #bbp-dashboard-right-now table td {
83
+ padding: 3px 0;
84
+ white-space: nowrap;
85
+ }
86
+
87
+ #bbp-dashboard-right-now table tr.first td {
88
+ border-top: none;
89
+ }
90
+
91
+ #bbp-dashboard-right-now td.b {
92
+ padding-right: 6px;
93
+ text-align: right;
94
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
95
+ font-size: 14px;
96
+ width: 1%;
97
+ }
98
+ body.rtl #bbp-dashboard-right-now td.b {
99
+ padding-left: 6px;
100
+ padding-right: 0;
101
+ }
102
+
103
+ #bbp-dashboard-right-now td.b a {
104
+ font-size: 18px;
105
+ }
106
+
107
+ #bbp-dashboard-right-now td.b a:hover {
108
+ color: #d54e21;
109
+ }
110
+
111
+ #bbp-dashboard-right-now .t {
112
+ font-size: 12px;
113
+ padding-right: 12px;
114
+ padding-top: 6px;
115
+ color: #777;
116
+ }
117
+ body.rtl #bbp-dashboard-right-now .t {
118
+ padding-left: 12px;
119
+ padding-right: 0;
120
+ }
121
+
122
+ #bbp-dashboard-right-now .t a {
123
+ white-space: nowrap;
124
+ }
125
+
126
+ #bbp-dashboard-right-now .spam {
127
+ color: red;
128
+ }
129
+
130
+ #bbp-dashboard-right-now .waiting {
131
+ color: #e66f00;
132
+ }
133
+
134
+ #bbp-dashboard-right-now .approved {
135
+ color: green;
136
+ }
137
+
138
+ #bbp-dashboard-right-now .versions {
139
+ padding: 6px 10px 12px;
140
+ clear: both;
141
+ }
142
+
143
+ #bbp-dashboard-right-now .versions .b {
144
+ font-weight: bold;
145
+ }
146
+
147
+ #bbp-dashboard-right-now a.button {
148
+ float: right;
149
+ clear: right;
150
+ position: relative;
151
+ top: -5px;
152
+ }
153
+ body.rtl #bbp-dashboard-right-now a.button {
154
+ float: left;
155
+ clear: left;
156
+ }
157
+
158
+ /* Dashicons */
159
+ #adminmenu #menu-posts-forum .wp-menu-image:before {
160
+ content: "\f449";
161
+ }
162
+
163
+ #adminmenu #menu-posts-topic .wp-menu-image:before {
164
+ content: "\f450";
165
+ }
166
+
167
+ #adminmenu #menu-posts-reply .wp-menu-image:before {
168
+ content: "\f451";
169
+ }
170
+
171
+ /* Ratio 2x */
172
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
173
+ .bbp-badge {
174
+ background-image: url('../images/badge-2x.png');
175
+ background-size: 173px 194px;
176
+ }
177
+ }
includes/admin/js/common.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( document ).ready( function() {
2
+
3
+ var bbp_author_id = jQuery( '#bbp_author_id' );
4
+
5
+ bbp_author_id.suggest( ajaxurl + '?action=bbp_suggest_user', {
6
+ onSelect: function() {
7
+ var value = this.value;
8
+ bbp_author_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
9
+ }
10
+ } );
11
+ } );
includes/admin/js/replies.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery( document ).ready(function() {
2
+
3
+ var bbp_topic_id = jQuery( '#bbp_topic_id' );
4
+
5
+ bbp_topic_id.suggest( ajaxurl + '?action=bbp_suggest_topic', {
6
+ onSelect: function() {
7
+ var value = this.value;
8
+ bbp_topic_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
9
+ }
10
+ } );
11
+ } );
includes/admin/js/topics.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ jQuery( document ).ready( function() {
2
+ jQuery( '#misc-publishing-actions' ).find( '.misc-pub-section' ).first().remove();
3
+ jQuery( '#save-action' ).remove();
4
+ } );
includes/admin/styles/evergreen-rtl.css ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Dashicons mixin use: @include dashicons( '\f140' ); */
2
+ /* Button mixin- creates 3d-ish button effect with correct highlights/shadows, based on a base color. */
3
+ html { background: #f2f2f2; }
4
+
5
+ /* Links */
6
+ a { color: #0074a2; }
7
+ a:hover, a:active, a:focus { color: #0099d5; }
8
+
9
+ #rightnow a:hover, #media-upload a.del-link:hover, div.dashboard-widget-submit input:hover, .subsubsub a:hover, .subsubsub a.current:hover, .ui-tabs-nav a:hover { color: #0099d5; }
10
+
11
+ /* Forms */
12
+ input[type=checkbox]:checked:before { color: #56b274; }
13
+
14
+ input[type=radio]:checked:before { background: #56b274; }
15
+
16
+ .wp-core-ui input[type="reset"]:hover, .wp-core-ui input[type="reset"]:active { color: #0099d5; }
17
+
18
+ /* Core UI */
19
+ .wp-core-ui .button-primary { background: #56b274; border-color: #43925d; color: white; -webkit-box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); }
20
+ .wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus { background: #469961; border-color: #3b8152; color: white; -webkit-box-shadow: inset 0 1px 0 #79c291, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #79c291, 0 1px 0 rgba(0, 0, 0, 0.15); }
21
+ .wp-core-ui .button-primary:active { background: #469961; border-color: #3b8152; color: white; -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); }
22
+ .wp-core-ui .button-primary[disabled], .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.button-primary-disabled { color: #c7d1ca !important; background: #469961 !important; border-color: #3b8152 !important; text-shadow: none !important; }
23
+ .wp-core-ui .wp-ui-primary { color: white; background-color: #446950; }
24
+ .wp-core-ui .wp-ui-text-primary { color: #446950; }
25
+ .wp-core-ui .wp-ui-highlight { color: white; background-color: #56b274; }
26
+ .wp-core-ui .wp-ui-text-highlight { color: #56b274; }
27
+ .wp-core-ui .wp-ui-notification { color: white; background-color: #36b360; }
28
+ .wp-core-ui .wp-ui-text-notification { color: #36b360; }
29
+ .wp-core-ui .wp-ui-text-icon { color: #f1f3f2; }
30
+
31
+ /* List tables */
32
+ .wrap .add-new-h2:hover, #add-new-comment a:hover, .tablenav .tablenav-pages a:hover, .tablenav .tablenav-pages a:focus { color: white; background-color: #446950; }
33
+
34
+ .view-switch a.current:before { color: #446950; }
35
+
36
+ .view-switch a:hover:before { color: #36b360; }
37
+
38
+ .post-com-count:hover:after { border-top-color: #446950; }
39
+
40
+ .post-com-count:hover span { color: white; background-color: #446950; }
41
+
42
+ strong .post-com-count:after { border-top-color: #36b360; }
43
+
44
+ strong .post-com-count span { background-color: #36b360; }
45
+
46
+ /* Admin Menu */
47
+ #adminmenuback, #adminmenuwrap, #adminmenu { background: #446950; }
48
+
49
+ #adminmenu a { color: white; }
50
+
51
+ #adminmenu div.wp-menu-image:before { color: #f1f3f2; }
52
+
53
+ #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: white; background-color: #56b274; }
54
+
55
+ #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: white; }
56
+
57
+ /* Admin Menu: submenu */
58
+ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #36533f; }
59
+
60
+ #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { border-left-color: #36533f; }
61
+
62
+ #adminmenu .wp-submenu .wp-submenu-head { color: #c6d2ca; }
63
+
64
+ #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, .folded #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: #c6d2ca; }
65
+ #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #56b274; }
66
+
67
+ /* Admin Menu: current */
68
+ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: white; }
69
+ #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #56b274; }
70
+
71
+ ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #eeeeee; }
72
+
73
+ #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: white; background: #56b274; }
74
+
75
+ #adminmenu li.wp-has-current-submenu div.wp-menu-image:before { color: white; }
76
+
77
+ /* Admin Menu: bubble */
78
+ #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: white; background: #36b360; }
79
+
80
+ #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: white; background: #36533f; }
81
+
82
+ /* Admin Menu: collapse button */
83
+ #collapse-menu { color: #f1f3f2; }
84
+
85
+ #collapse-menu:hover { color: white; }
86
+
87
+ #collapse-button div:after { color: #f1f3f2; }
88
+
89
+ #collapse-menu:hover #collapse-button div:after { color: white; }
90
+
91
+ /* Admin Bar */
92
+ #wpadminbar { color: white; background: #446950; }
93
+
94
+ #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: white; }
95
+
96
+ #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #f1f3f2; }
97
+
98
+ #wpadminbar .ab-top-menu > li:hover > .ab-item, #wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar-nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #56b274; background: #36533f; }
99
+
100
+ #wpadminbar > #wp-toolbar li:hover span.ab-label, #wpadminbar > #wp-toolbar li.hover span.ab-label, #wpadminbar > #wp-toolbar a:focus span.ab-label { color: #56b274; }
101
+
102
+ #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: white; }
103
+
104
+ /* Admin Bar: submenu */
105
+ #wpadminbar .menupop .ab-sub-wrapper { background: #36533f; }
106
+
107
+ #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: #597763; }
108
+
109
+ #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar-nojs .quicklinks .menupop:hover ul li a { color: #c6d2ca; }
110
+
111
+ #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #f1f3f2; }
112
+
113
+ #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li.hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: #56b274; }
114
+
115
+ #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before { color: #56b274; }
116
+
117
+ /* Admin Bar: search */
118
+ #wpadminbar #adminbarsearch:before { color: #f1f3f2; }
119
+
120
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: white; background: #527f61; }
121
+
122
+ #wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { color: white; opacity: .7; }
123
+
124
+ #wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { color: white; opacity: .7; }
125
+
126
+ #wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { color: white; opacity: .7; }
127
+
128
+ #wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { color: white; opacity: .7; }
129
+
130
+ /* Admin Bar: my account */
131
+ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: #527f61; background-color: #527f61; }
132
+
133
+ #wpadminbar #wp-admin-bar-user-info .display-name { color: white; }
134
+
135
+ #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #56b274; }
136
+
137
+ #wpadminbar #wp-admin-bar-user-info .username { color: #c6d2ca; }
138
+
139
+ /* Pointers */
140
+ .wp-pointer .wp-pointer-content h3 { background-color: #56b274; }
141
+
142
+ .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow { border-bottom-color: #56b274; }
143
+
144
+ /* Media Uploader */
145
+ .media-item .bar, .media-progress-bar div { background-color: #56b274; }
146
+
147
+ .details.attachment { box-shadow: 0 0 0 1px white, 0 0 0 5px #56b274; }
148
+
149
+ .attachment.details .check { background-color: #56b274; box-shadow: 0 0 0 1px white, 0 0 0 2px #56b274; }
150
+
151
+ /* Themes */
152
+ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme:hover:after { background: #56b274; }
153
+
154
+ .theme-browser .theme.add-new-theme:hover span:after { color: #56b274; }
155
+
156
+ .theme-overlay .theme-header .close:hover, .theme-overlay .theme-header .right:hover, .theme-overlay .theme-header .left:hover { background: #56b274; }
157
+
158
+ /* jQuery UI Slider */
159
+ .wp-slider .ui-slider-handle, .wp-slider .ui-slider-handle.ui-state-hover, .wp-slider .ui-slider-handle.focus { background: #56b274; border-color: #43925d; -webkit-box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); }
160
+
161
+ /* Responsive Component */
162
+ div#wp-responsive-toggle a:before { color: #f1f3f2; }
163
+
164
+ .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #56b274; }
165
+
166
+ .star-rating .star { color: #56b274; }
167
+
168
+ .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #36533f; }
includes/admin/styles/evergreen.css ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Dashicons mixin use: @include dashicons( '\f140' ); */
2
+ /* Button mixin- creates 3d-ish button effect with correct highlights/shadows, based on a base color. */
3
+ html { background: #f2f2f2; }
4
+
5
+ /* Links */
6
+ a { color: #0074a2; }
7
+ a:hover, a:active, a:focus { color: #0099d5; }
8
+
9
+ #rightnow a:hover, #media-upload a.del-link:hover, div.dashboard-widget-submit input:hover, .subsubsub a:hover, .subsubsub a.current:hover, .ui-tabs-nav a:hover { color: #0099d5; }
10
+
11
+ /* Forms */
12
+ input[type=checkbox]:checked:before { color: #56b274; }
13
+
14
+ input[type=radio]:checked:before { background: #56b274; }
15
+
16
+ .wp-core-ui input[type="reset"]:hover, .wp-core-ui input[type="reset"]:active { color: #0099d5; }
17
+
18
+ /* Core UI */
19
+ .wp-core-ui .button-primary { background: #56b274; border-color: #43925d; color: white; -webkit-box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); }
20
+ .wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus { background: #469961; border-color: #3b8152; color: white; -webkit-box-shadow: inset 0 1px 0 #79c291, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #79c291, 0 1px 0 rgba(0, 0, 0, 0.15); }
21
+ .wp-core-ui .button-primary:active { background: #469961; border-color: #3b8152; color: white; -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); }
22
+ .wp-core-ui .button-primary[disabled], .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.button-primary-disabled { color: #c7d1ca !important; background: #469961 !important; border-color: #3b8152 !important; text-shadow: none !important; }
23
+ .wp-core-ui .wp-ui-primary { color: white; background-color: #446950; }
24
+ .wp-core-ui .wp-ui-text-primary { color: #446950; }
25
+ .wp-core-ui .wp-ui-highlight { color: white; background-color: #56b274; }
26
+ .wp-core-ui .wp-ui-text-highlight { color: #56b274; }
27
+ .wp-core-ui .wp-ui-notification { color: white; background-color: #36b360; }
28
+ .wp-core-ui .wp-ui-text-notification { color: #36b360; }
29
+ .wp-core-ui .wp-ui-text-icon { color: #f1f3f2; }
30
+
31
+ /* List tables */
32
+ .wrap .add-new-h2:hover, #add-new-comment a:hover, .tablenav .tablenav-pages a:hover, .tablenav .tablenav-pages a:focus { color: white; background-color: #446950; }
33
+
34
+ .view-switch a.current:before { color: #446950; }
35
+
36
+ .view-switch a:hover:before { color: #36b360; }
37
+
38
+ .post-com-count:hover:after { border-top-color: #446950; }
39
+
40
+ .post-com-count:hover span { color: white; background-color: #446950; }
41
+
42
+ strong .post-com-count:after { border-top-color: #36b360; }
43
+
44
+ strong .post-com-count span { background-color: #36b360; }
45
+
46
+ /* Admin Menu */
47
+ #adminmenuback, #adminmenuwrap, #adminmenu { background: #446950; }
48
+
49
+ #adminmenu a { color: white; }
50
+
51
+ #adminmenu div.wp-menu-image:before { color: #f1f3f2; }
52
+
53
+ #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: white; background-color: #56b274; }
54
+
55
+ #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: white; }
56
+
57
+ /* Admin Menu: submenu */
58
+ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #36533f; }
59
+
60
+ #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { border-right-color: #36533f; }
61
+
62
+ #adminmenu .wp-submenu .wp-submenu-head { color: #c6d2ca; }
63
+
64
+ #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, .folded #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: #c6d2ca; }
65
+ #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #56b274; }
66
+
67
+ /* Admin Menu: current */
68
+ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: white; }
69
+ #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #56b274; }
70
+
71
+ ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #eeeeee; }
72
+
73
+ #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: white; background: #56b274; }
74
+
75
+ #adminmenu li.wp-has-current-submenu div.wp-menu-image:before { color: white; }
76
+
77
+ /* Admin Menu: bubble */
78
+ #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: white; background: #36b360; }
79
+
80
+ #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: white; background: #36533f; }
81
+
82
+ /* Admin Menu: collapse button */
83
+ #collapse-menu { color: #f1f3f2; }
84
+
85
+ #collapse-menu:hover { color: white; }
86
+
87
+ #collapse-button div:after { color: #f1f3f2; }
88
+
89
+ #collapse-menu:hover #collapse-button div:after { color: white; }
90
+
91
+ /* Admin Bar */
92
+ #wpadminbar { color: white; background: #446950; }
93
+
94
+ #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: white; }
95
+
96
+ #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #f1f3f2; }
97
+
98
+ #wpadminbar .ab-top-menu > li:hover > .ab-item, #wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar-nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #56b274; background: #36533f; }
99
+
100
+ #wpadminbar > #wp-toolbar li:hover span.ab-label, #wpadminbar > #wp-toolbar li.hover span.ab-label, #wpadminbar > #wp-toolbar a:focus span.ab-label { color: #56b274; }
101
+
102
+ #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: white; }
103
+
104
+ /* Admin Bar: submenu */
105
+ #wpadminbar .menupop .ab-sub-wrapper { background: #36533f; }
106
+
107
+ #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: #597763; }
108
+
109
+ #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar-nojs .quicklinks .menupop:hover ul li a { color: #c6d2ca; }
110
+
111
+ #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #f1f3f2; }
112
+
113
+ #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li.hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: #56b274; }
114
+
115
+ #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before { color: #56b274; }
116
+
117
+ /* Admin Bar: search */
118
+ #wpadminbar #adminbarsearch:before { color: #f1f3f2; }
119
+
120
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: white; background: #527f61; }
121
+
122
+ #wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { color: white; opacity: .7; }
123
+
124
+ #wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { color: white; opacity: .7; }
125
+
126
+ #wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { color: white; opacity: .7; }
127
+
128
+ #wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { color: white; opacity: .7; }
129
+
130
+ /* Admin Bar: my account */
131
+ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: #527f61; background-color: #527f61; }
132
+
133
+ #wpadminbar #wp-admin-bar-user-info .display-name { color: white; }
134
+
135
+ #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #56b274; }
136
+
137
+ #wpadminbar #wp-admin-bar-user-info .username { color: #c6d2ca; }
138
+
139
+ /* Pointers */
140
+ .wp-pointer .wp-pointer-content h3 { background-color: #56b274; }
141
+
142
+ .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow { border-bottom-color: #56b274; }
143
+
144
+ /* Media Uploader */
145
+ .media-item .bar, .media-progress-bar div { background-color: #56b274; }
146
+
147
+ .details.attachment { box-shadow: 0 0 0 1px white, 0 0 0 5px #56b274; }
148
+
149
+ .attachment.details .check { background-color: #56b274; box-shadow: 0 0 0 1px white, 0 0 0 2px #56b274; }
150
+
151
+ /* Themes */
152
+ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme:hover:after { background: #56b274; }
153
+
154
+ .theme-browser .theme.add-new-theme:hover span:after { color: #56b274; }
155
+
156
+ .theme-overlay .theme-header .close:hover, .theme-overlay .theme-header .right:hover, .theme-overlay .theme-header .left:hover { background: #56b274; }
157
+
158
+ /* jQuery UI Slider */
159
+ .wp-slider .ui-slider-handle, .wp-slider .ui-slider-handle.ui-state-hover, .wp-slider .ui-slider-handle.focus { background: #56b274; border-color: #43925d; -webkit-box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #8bca9f, 0 1px 0 rgba(0, 0, 0, 0.15); }
160
+
161
+ /* Responsive Component */
162
+ div#wp-responsive-toggle a:before { color: #f1f3f2; }
163
+
164
+ .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #56b274; }
165
+
166
+ .star-rating .star { color: #56b274; }
167
+
168
+ .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #36533f; }
includes/admin/styles/mint-rtl.css ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Dashicons mixin use: @include dashicons( '\f140' ); */
2
+ /* Button mixin- creates 3d-ish button effect with correct highlights/shadows, based on a base color. */
3
+ html { background: #f2f2f2; }
4
+
5
+ /* Links */
6
+ a { color: #0074a2; }
7
+ a:hover, a:active, a:focus { color: #0099d5; }
8
+
9
+ #rightnow a:hover, #media-upload a.del-link:hover, div.dashboard-widget-submit input:hover, .subsubsub a:hover, .subsubsub a.current:hover, .ui-tabs-nav a:hover { color: #0099d5; }
10
+
11
+ /* Forms */
12
+ input[type=checkbox]:checked:before { color: #4f6d59; }
13
+
14
+ input[type=radio]:checked:before { background: #4f6d59; }
15
+
16
+ .wp-core-ui input[type="reset"]:hover, .wp-core-ui input[type="reset"]:active { color: #0099d5; }
17
+
18
+ /* Core UI */
19
+ .wp-core-ui .button-primary { background: #4f6d59; border-color: #3a4f41; color: white; -webkit-box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); }
20
+ .wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus { background: #3e5546; border-color: #2f4035; color: white; -webkit-box-shadow: inset 0 1px 0 #658a71, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #658a71, 0 1px 0 rgba(0, 0, 0, 0.15); }
21
+ .wp-core-ui .button-primary:active { background: #3e5546; border-color: #2f4035; color: white; -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); }
22
+ .wp-core-ui .button-primary[disabled], .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.button-primary-disabled { color: #c7d1ca !important; background: #3e5546 !important; border-color: #2f4035 !important; text-shadow: none !important; }
23
+ .wp-core-ui .wp-ui-primary { color: white; background-color: #5fb37c; }
24
+ .wp-core-ui .wp-ui-text-primary { color: #5fb37c; }
25
+ .wp-core-ui .wp-ui-highlight { color: white; background-color: #4f6d59; }
26
+ .wp-core-ui .wp-ui-text-highlight { color: #4f6d59; }
27
+ .wp-core-ui .wp-ui-notification { color: white; background-color: #33834e; }
28
+ .wp-core-ui .wp-ui-text-notification { color: #33834e; }
29
+ .wp-core-ui .wp-ui-text-icon { color: #f1f3f2; }
30
+
31
+ /* List tables */
32
+ .wrap .add-new-h2:hover, #add-new-comment a:hover, .tablenav .tablenav-pages a:hover, .tablenav .tablenav-pages a:focus { color: white; background-color: #5fb37c; }
33
+
34
+ .view-switch a.current:before { color: #5fb37c; }
35
+
36
+ .view-switch a:hover:before { color: #33834e; }
37
+
38
+ .post-com-count:hover:after { border-top-color: #5fb37c; }
39
+
40
+ .post-com-count:hover span { color: white; background-color: #5fb37c; }
41
+
42
+ strong .post-com-count:after { border-top-color: #33834e; }
43
+
44
+ strong .post-com-count span { background-color: #33834e; }
45
+
46
+ /* Admin Menu */
47
+ #adminmenuback, #adminmenuwrap, #adminmenu { background: #5fb37c; }
48
+
49
+ #adminmenu a { color: white; }
50
+
51
+ #adminmenu div.wp-menu-image:before { color: #f1f3f2; }
52
+
53
+ #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: white; background-color: #4f6d59; }
54
+
55
+ #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: white; }
56
+
57
+ /* Admin Menu: submenu */
58
+ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #4ca26a; }
59
+
60
+ #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { border-left-color: #4ca26a; }
61
+
62
+ #adminmenu .wp-submenu .wp-submenu-head { color: #cfe8d7; }
63
+
64
+ #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, .folded #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: #cfe8d7; }
65
+ #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #4f6d59; }
66
+
67
+ /* Admin Menu: current */
68
+ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: white; }
69
+ #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #4f6d59; }
70
+
71
+ ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #eeeeee; }
72
+
73
+ #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: white; background: #4f6d59; }
74
+
75
+ #adminmenu li.wp-has-current-submenu div.wp-menu-image:before { color: white; }
76
+
77
+ /* Admin Menu: bubble */
78
+ #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: white; background: #33834e; }
79
+
80
+ #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: white; background: #4ca26a; }
81
+
82
+ /* Admin Menu: collapse button */
83
+ #collapse-menu { color: #f1f3f2; }
84
+
85
+ #collapse-menu:hover { color: white; }
86
+
87
+ #collapse-button div:after { color: #f1f3f2; }
88
+
89
+ #collapse-menu:hover #collapse-button div:after { color: white; }
90
+
91
+ /* Admin Bar */
92
+ #wpadminbar { color: white; background: #5fb37c; }
93
+
94
+ #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: white; }
95
+
96
+ #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #f1f3f2; }
97
+
98
+ #wpadminbar .ab-top-menu > li:hover > .ab-item, #wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar-nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #4f6d59; background: #4ca26a; }
99
+
100
+ #wpadminbar > #wp-toolbar li:hover span.ab-label, #wpadminbar > #wp-toolbar li.hover span.ab-label, #wpadminbar > #wp-toolbar a:focus span.ab-label { color: #4f6d59; }
101
+
102
+ #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: white; }
103
+
104
+ /* Admin Bar: submenu */
105
+ #wpadminbar .menupop .ab-sub-wrapper { background: #4ca26a; }
106
+
107
+ #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: #7eb892; }
108
+
109
+ #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar-nojs .quicklinks .menupop:hover ul li a { color: #cfe8d7; }
110
+
111
+ #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #f1f3f2; }
112
+
113
+ #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li.hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: #4f6d59; }
114
+
115
+ #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before { color: #4f6d59; }
116
+
117
+ /* Admin Bar: search */
118
+ #wpadminbar #adminbarsearch:before { color: #f1f3f2; }
119
+
120
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: white; background: #77bf8f; }
121
+
122
+ #wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { color: white; opacity: .7; }
123
+
124
+ #wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { color: white; opacity: .7; }
125
+
126
+ #wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { color: white; opacity: .7; }
127
+
128
+ #wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { color: white; opacity: .7; }
129
+
130
+ /* Admin Bar: my account */
131
+ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: #77bf8f; background-color: #77bf8f; }
132
+
133
+ #wpadminbar #wp-admin-bar-user-info .display-name { color: white; }
134
+
135
+ #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #4f6d59; }
136
+
137
+ #wpadminbar #wp-admin-bar-user-info .username { color: #cfe8d7; }
138
+
139
+ /* Pointers */
140
+ .wp-pointer .wp-pointer-content h3 { background-color: #4f6d59; }
141
+
142
+ .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow { border-bottom-color: #4f6d59; }
143
+
144
+ /* Media Uploader */
145
+ .media-item .bar, .media-progress-bar div { background-color: #4f6d59; }
146
+
147
+ .details.attachment { box-shadow: 0 0 0 1px white, 0 0 0 5px #4f6d59; }
148
+
149
+ .attachment.details .check { background-color: #4f6d59; box-shadow: 0 0 0 1px white, 0 0 0 2px #4f6d59; }
150
+
151
+ /* Themes */
152
+ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme:hover:after { background: #4f6d59; }
153
+
154
+ .theme-browser .theme.add-new-theme:hover span:after { color: #4f6d59; }
155
+
156
+ .theme-overlay .theme-header .close:hover, .theme-overlay .theme-header .right:hover, .theme-overlay .theme-header .left:hover { background: #4f6d59; }
157
+
158
+ /* jQuery UI Slider */
159
+ .wp-slider .ui-slider-handle, .wp-slider .ui-slider-handle.ui-state-hover, .wp-slider .ui-slider-handle.focus { background: #4f6d59; border-color: #3a4f41; -webkit-box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); }
160
+
161
+ /* Responsive Component */
162
+ div#wp-responsive-toggle a:before { color: #f1f3f2; }
163
+
164
+ .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #4f6d59; }
165
+
166
+ .star-rating .star { color: #4f6d59; }
167
+
168
+ .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #4ca26a; }
includes/admin/styles/mint.css ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Dashicons mixin use: @include dashicons( '\f140' ); */
2
+ /* Button mixin- creates 3d-ish button effect with correct highlights/shadows, based on a base color. */
3
+ html { background: #f2f2f2; }
4
+
5
+ /* Links */
6
+ a { color: #0074a2; }
7
+ a:hover, a:active, a:focus { color: #0099d5; }
8
+
9
+ #rightnow a:hover, #media-upload a.del-link:hover, div.dashboard-widget-submit input:hover, .subsubsub a:hover, .subsubsub a.current:hover, .ui-tabs-nav a:hover { color: #0099d5; }
10
+
11
+ /* Forms */
12
+ input[type=checkbox]:checked:before { color: #4f6d59; }
13
+
14
+ input[type=radio]:checked:before { background: #4f6d59; }
15
+
16
+ .wp-core-ui input[type="reset"]:hover, .wp-core-ui input[type="reset"]:active { color: #0099d5; }
17
+
18
+ /* Core UI */
19
+ .wp-core-ui .button-primary { background: #4f6d59; border-color: #3a4f41; color: white; -webkit-box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); }
20
+ .wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus { background: #3e5546; border-color: #2f4035; color: white; -webkit-box-shadow: inset 0 1px 0 #658a71, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #658a71, 0 1px 0 rgba(0, 0, 0, 0.15); }
21
+ .wp-core-ui .button-primary:active { background: #3e5546; border-color: #2f4035; color: white; -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); }
22
+ .wp-core-ui .button-primary[disabled], .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.button-primary-disabled { color: #c7d1ca !important; background: #3e5546 !important; border-color: #2f4035 !important; text-shadow: none !important; }
23
+ .wp-core-ui .wp-ui-primary { color: white; background-color: #5fb37c; }
24
+ .wp-core-ui .wp-ui-text-primary { color: #5fb37c; }
25
+ .wp-core-ui .wp-ui-highlight { color: white; background-color: #4f6d59; }
26
+ .wp-core-ui .wp-ui-text-highlight { color: #4f6d59; }
27
+ .wp-core-ui .wp-ui-notification { color: white; background-color: #33834e; }
28
+ .wp-core-ui .wp-ui-text-notification { color: #33834e; }
29
+ .wp-core-ui .wp-ui-text-icon { color: #f1f3f2; }
30
+
31
+ /* List tables */
32
+ .wrap .add-new-h2:hover, #add-new-comment a:hover, .tablenav .tablenav-pages a:hover, .tablenav .tablenav-pages a:focus { color: white; background-color: #5fb37c; }
33
+
34
+ .view-switch a.current:before { color: #5fb37c; }
35
+
36
+ .view-switch a:hover:before { color: #33834e; }
37
+
38
+ .post-com-count:hover:after { border-top-color: #5fb37c; }
39
+
40
+ .post-com-count:hover span { color: white; background-color: #5fb37c; }
41
+
42
+ strong .post-com-count:after { border-top-color: #33834e; }
43
+
44
+ strong .post-com-count span { background-color: #33834e; }
45
+
46
+ /* Admin Menu */
47
+ #adminmenuback, #adminmenuwrap, #adminmenu { background: #5fb37c; }
48
+
49
+ #adminmenu a { color: white; }
50
+
51
+ #adminmenu div.wp-menu-image:before { color: #f1f3f2; }
52
+
53
+ #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: white; background-color: #4f6d59; }
54
+
55
+ #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: white; }
56
+
57
+ /* Admin Menu: submenu */
58
+ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #4ca26a; }
59
+
60
+ #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { border-right-color: #4ca26a; }
61
+
62
+ #adminmenu .wp-submenu .wp-submenu-head { color: #cfe8d7; }
63
+
64
+ #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, .folded #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: #cfe8d7; }
65
+ #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus, .folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #4f6d59; }
66
+
67
+ /* Admin Menu: current */
68
+ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: white; }
69
+ #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #4f6d59; }
70
+
71
+ ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #eeeeee; }
72
+
73
+ #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: white; background: #4f6d59; }
74
+
75
+ #adminmenu li.wp-has-current-submenu div.wp-menu-image:before { color: white; }
76
+
77
+ /* Admin Menu: bubble */
78
+ #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: white; background: #33834e; }
79
+
80
+ #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: white; background: #4ca26a; }
81
+
82
+ /* Admin Menu: collapse button */
83
+ #collapse-menu { color: #f1f3f2; }
84
+
85
+ #collapse-menu:hover { color: white; }
86
+
87
+ #collapse-button div:after { color: #f1f3f2; }
88
+
89
+ #collapse-menu:hover #collapse-button div:after { color: white; }
90
+
91
+ /* Admin Bar */
92
+ #wpadminbar { color: white; background: #5fb37c; }
93
+
94
+ #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: white; }
95
+
96
+ #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #f1f3f2; }
97
+
98
+ #wpadminbar .ab-top-menu > li:hover > .ab-item, #wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar-nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #4f6d59; background: #4ca26a; }
99
+
100
+ #wpadminbar > #wp-toolbar li:hover span.ab-label, #wpadminbar > #wp-toolbar li.hover span.ab-label, #wpadminbar > #wp-toolbar a:focus span.ab-label { color: #4f6d59; }
101
+
102
+ #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: white; }
103
+
104
+ /* Admin Bar: submenu */
105
+ #wpadminbar .menupop .ab-sub-wrapper { background: #4ca26a; }
106
+
107
+ #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: #7eb892; }
108
+
109
+ #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar-nojs .quicklinks .menupop:hover ul li a { color: #cfe8d7; }
110
+
111
+ #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #f1f3f2; }
112
+
113
+ #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover .ab-item:after, #wpadminbar li.hover .ab-item:after, #wpadminbar li:hover #adminbarsearch:before { color: #4f6d59; }
114
+
115
+ #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before { color: #4f6d59; }
116
+
117
+ /* Admin Bar: search */
118
+ #wpadminbar #adminbarsearch:before { color: #f1f3f2; }
119
+
120
+ #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: white; background: #77bf8f; }
121
+
122
+ #wpadminbar #adminbarsearch .adminbar-input::-webkit-input-placeholder { color: white; opacity: .7; }
123
+
124
+ #wpadminbar #adminbarsearch .adminbar-input:-moz-placeholder { color: white; opacity: .7; }
125
+
126
+ #wpadminbar #adminbarsearch .adminbar-input::-moz-placeholder { color: white; opacity: .7; }
127
+
128
+ #wpadminbar #adminbarsearch .adminbar-input:-ms-input-placeholder { color: white; opacity: .7; }
129
+
130
+ /* Admin Bar: my account */
131
+ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: #77bf8f; background-color: #77bf8f; }
132
+
133
+ #wpadminbar #wp-admin-bar-user-info .display-name { color: white; }
134
+
135
+ #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #4f6d59; }
136
+
137
+ #wpadminbar #wp-admin-bar-user-info .username { color: #cfe8d7; }
138
+
139
+ /* Pointers */
140
+ .wp-pointer .wp-pointer-content h3 { background-color: #4f6d59; }
141
+
142
+ .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow { border-bottom-color: #4f6d59; }
143
+
144
+ /* Media Uploader */
145
+ .media-item .bar, .media-progress-bar div { background-color: #4f6d59; }
146
+
147
+ .details.attachment { box-shadow: 0 0 0 1px white, 0 0 0 5px #4f6d59; }
148
+
149
+ .attachment.details .check { background-color: #4f6d59; box-shadow: 0 0 0 1px white, 0 0 0 2px #4f6d59; }
150
+
151
+ /* Themes */
152
+ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme:hover:after { background: #4f6d59; }
153
+
154
+ .theme-browser .theme.add-new-theme:hover span:after { color: #4f6d59; }
155
+
156
+ .theme-overlay .theme-header .close:hover, .theme-overlay .theme-header .right:hover, .theme-overlay .theme-header .left:hover { background: #4f6d59; }
157
+
158
+ /* jQuery UI Slider */
159
+ .wp-slider .ui-slider-handle, .wp-slider .ui-slider-handle.ui-state-hover, .wp-slider .ui-slider-handle.focus { background: #4f6d59; border-color: #3a4f41; -webkit-box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 1px 0 #71977e, 0 1px 0 rgba(0, 0, 0, 0.15); }
160
+
161
+ /* Responsive Component */
162
+ div#wp-responsive-toggle a:before { color: #f1f3f2; }
163
+
164
+ .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #4f6d59; }
165
+
166
+ .star-rating .star { color: #4f6d59; }
167
+
168
+ .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #4ca26a; }
includes/extend/buddypress/functions.php CHANGED
@@ -13,6 +13,28 @@ if ( !defined( 'ABSPATH' ) ) exit;
13
 
14
  /** BuddyPress Helpers ********************************************************/
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  /**
17
  * Filter the current bbPress user ID with the current BuddyPress user ID
18
  *
13
 
14
  /** BuddyPress Helpers ********************************************************/
15
 
16
+ /**
17
+ * Return bbPress's component name/ID ('forums' by default)
18
+ *
19
+ * This is used primarily for Notifications integration.
20
+ *
21
+ * @since bbPress (r5232)
22
+ * @return string
23
+ */
24
+ function bbp_get_component_name() {
25
+
26
+ // Use existing ID
27
+ if ( !empty( bbpress()->extend->buddypress->id ) ) {
28
+ $retval = bbpress()->extend->buddypress->id;
29
+
30
+ // Use default
31
+ } else {
32
+ $retval = 'forums';
33
+ }
34
+
35
+ return apply_filters( 'bbp_get_component_name', $retval );
36
+ }
37
+
38
  /**
39
  * Filter the current bbPress user ID with the current BuddyPress user ID
40
  *
includes/extend/buddypress/notifications.php CHANGED
@@ -1,5 +1,30 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  /**
4
  * Format the BuddyBar/Toolbar notifications
5
  *
@@ -84,20 +109,27 @@ function bbp_buddypress_add_notification( $reply_id = 0, $topic_id = 0, $forum_i
84
  }
85
 
86
  // Get some reply information
87
- $date_notified = get_post( $reply_id )->post_date;
88
- $item_id = $topic_id;
89
- $component_name = 'forums';
90
- $component_action = 'bbp_new_reply';
91
-
92
- // Notify the topic author if not the current reply author
93
- if ( $author_id !== $topic_author_id ) {
94
- bp_core_add_notification( $item_id, $topic_author_id, $component_name, $component_action, $secondary_item_id, $date_notified );
95
- }
96
-
97
- // Notify the immediate reply author if not the current reply author
98
- if ( !empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) {
99
- bp_core_add_notification( $item_id, $topic_author_id, $component_name, $component_action, $reply_to_item_id, $date_notified );
100
- }
 
 
 
 
 
 
 
101
  }
102
  add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );
103
 
@@ -137,7 +169,7 @@ function bbp_buddypress_mark_notifications( $action = '' ) {
137
  if ( ! bbp_has_errors() ) {
138
 
139
  // Attempt to clear notifications for the current user from this topic
140
- $success = bp_core_mark_notifications_by_item_id( $user_id, $topic_id, 'forums', 'bbp_new_reply' );
141
 
142
  // Do additional subscriptions actions
143
  do_action( 'bbp_notifications_handler', $success, $user_id, $topic_id, $action );
1
  <?php
2
 
3
+ /**
4
+ * Filter registered notifications components, and add 'forums' to the queried
5
+ * 'component_name' array.
6
+ *
7
+ * @since bbPress (r5232)
8
+ *
9
+ * @see BP_Notifications_Notification::get()
10
+ * @param array $component_names
11
+ * @return array
12
+ */
13
+ function bbp_filter_notifications_get_registered_components( $component_names = array() ) {
14
+
15
+ // Force $component_names to be an array
16
+ if ( ! is_array( $component_names ) ) {
17
+ $component_names = array();
18
+ }
19
+
20
+ // Add 'forums' component to registered components array
21
+ array_push( $component_names, bbp_get_component_name() );
22
+
23
+ // Return component's with 'forums' appended
24
+ return $component_names;
25
+ }
26
+ add_filter( 'bp_notifications_get_registered_components', 'bbp_filter_notifications_get_registered_components', 10 );
27
+
28
  /**
29
  * Format the BuddyBar/Toolbar notifications
30
  *
109
  }
110
 
111
  // Get some reply information
112
+ $args = array(
113
+ 'user_id' => $topic_author_id,
114
+ 'item_id' => $topic_id,
115
+ 'component_name' => bbp_get_component_name(),
116
+ 'component_action' => 'bbp_new_reply',
117
+ 'date_notified' => get_post( $reply_id )->post_date,
118
+ );
119
+
120
+ // Notify the topic author if not the current reply author
121
+ if ( $author_id !== $topic_author_id ) {
122
+ $args['secondary_item_id'] = $secondary_item_id ;
123
+
124
+ bp_notifications_add_notification( $args );
125
+ }
126
+
127
+ // Notify the immediate reply author if not the current reply author
128
+ if ( !empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) {
129
+ $args['secondary_item_id'] = $reply_to_item_id ;
130
+
131
+ bp_notifications_add_notification( $args );
132
+ }
133
  }
134
  add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );
135
 
169
  if ( ! bbp_has_errors() ) {
170
 
171
  // Attempt to clear notifications for the current user from this topic
172
+ $success = bp_notifications_mark_notifications_by_item_id( $user_id, $topic_id, bbp_get_component_name(), 'bbp_new_reply' );
173
 
174
  // Do additional subscriptions actions
175
  do_action( 'bbp_notifications_handler', $success, $user_id, $topic_id, $action );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: matt, johnjamesjacoby, jmdodd, netweb
3
  Tags: forums, discussion, support, theme, akismet, multisite
4
  Requires at least: 3.6
5
- Tested up to: 3.6
6
- Stable tag: 2.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -42,6 +42,9 @@ We're keeping things as small and light as possible while still allowing for gre
42
 
43
  == Changelog ==
44
 
 
 
 
45
  = 2.5.1 =
46
  * Updated subscriptions setting description
47
  * Fix forum subscriptions not appearing on profiles for some users
2
  Contributors: matt, johnjamesjacoby, jmdodd, netweb
3
  Tags: forums, discussion, support, theme, akismet, multisite
4
  Requires at least: 3.6
5
+ Tested up to: 3.8
6
+ Stable tag: 2.5.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
42
 
43
  == Changelog ==
44
 
45
+ = 2.5.2 =
46
+ * Fix BuddyPress (1.9.1) Notification integration
47
+
48
  = 2.5.1 =
49
  * Updated subscriptions setting description
50
  * Fix forum subscriptions not appearing on profiles for some users