diff --git src/bp-templates/bp-nouveau/buddypress/common/nav/directory-nav.php src/bp-templates/bp-nouveau/buddypress/common/nav/directory-nav.php
index a9fb58d4a..0afd37aef 100644
|
|
|
22 | 22 | <?php bp_nouveau_nav_link_text(); ?> |
23 | 23 | |
24 | 24 | <?php if ( bp_nouveau_nav_has_count() ) : ?> |
25 | | <span><?php bp_nouveau_nav_count(); ?></span> |
| 25 | <span class="count"><?php bp_nouveau_nav_count(); ?></span> |
26 | 26 | <?php endif; ?> |
27 | 27 | </a> |
28 | 28 | </li> |
diff --git src/bp-templates/bp-nouveau/buddypress/groups/create.php src/bp-templates/bp-nouveau/buddypress/groups/create.php
index b1469f989..546378b9d 100644
|
|
bp_nouveau_groups_create_hook( 'before', 'page' ); ?> |
20 | 20 | <nav class="<?php bp_nouveau_groups_create_steps_classes(); ?>" id="group-create-tabs" role="navigation" aria-label="<?php esc_attr_e( 'Group creation menu', 'buddypress' ); ?>"> |
21 | 21 | <ul class="group-create-buttons button-tabs"> |
22 | 22 | |
23 | | <?php bp_nouveau_group_creation_tabs(); ?> |
| 23 | <?php bp_group_creation_tabs(); ?> |
24 | 24 | |
25 | 25 | </ul> |
26 | 26 | </nav> |
diff --git src/bp-templates/bp-nouveau/buddypress/groups/single/parts/admin-subnav.php src/bp-templates/bp-nouveau/buddypress/groups/single/parts/admin-subnav.php
index 546a121cf..fe3637c6e 100644
|
|
|
22 | 22 | <?php bp_nouveau_nav_link_text(); ?> |
23 | 23 | |
24 | 24 | <?php if ( bp_nouveau_nav_has_count() ) : ?> |
25 | | <span><?php bp_nouveau_nav_count(); ?></span> |
| 25 | <span class="count"><?php bp_nouveau_nav_count(); ?></span> |
26 | 26 | <?php endif; ?> |
27 | 27 | </a> |
28 | 28 | </li> |
diff --git src/bp-templates/bp-nouveau/buddypress/groups/single/parts/item-nav.php src/bp-templates/bp-nouveau/buddypress/groups/single/parts/item-nav.php
index 60841afdb..ca0185c8b 100644
|
|
|
22 | 22 | <?php bp_nouveau_nav_link_text(); ?> |
23 | 23 | |
24 | 24 | <?php if ( bp_nouveau_nav_has_count() ) : ?> |
25 | | <span><?php bp_nouveau_nav_count(); ?></span> |
| 25 | <span class="count"><?php bp_nouveau_nav_count(); ?></span> |
26 | 26 | <?php endif; ?> |
27 | 27 | </a> |
28 | 28 | </li> |
diff --git src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-nav.php src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-nav.php
index 20a57a9b6..a15924f15 100644
|
|
|
22 | 22 | <?php bp_nouveau_nav_link_text(); ?> |
23 | 23 | |
24 | 24 | <?php if ( bp_nouveau_nav_has_count() ) : ?> |
25 | | <span><?php bp_nouveau_nav_count(); ?></span> |
| 25 | <span class="count"><?php bp_nouveau_nav_count(); ?></span> |
26 | 26 | <?php endif; ?> |
27 | 27 | </a> |
28 | 28 | </li> |
diff --git src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-subnav.php src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-subnav.php
index ca1aeecec..cf926e939 100644
|
|
|
18 | 18 | <?php bp_nouveau_nav_link_text(); ?> |
19 | 19 | |
20 | 20 | <?php if ( bp_nouveau_nav_has_count() ) : ?> |
21 | | <span><?php bp_nouveau_nav_count(); ?></span> |
| 21 | <span class="count"><?php bp_nouveau_nav_count(); ?></span> |
22 | 22 | <?php endif; ?> |
23 | 23 | </a> |
24 | 24 | </li> |
diff --git src/bp-templates/bp-nouveau/common-styles/_bp-mixins.scss src/bp-templates/bp-nouveau/common-styles/_bp-mixins.scss
index f96ec08c0..dd1ba9f48 100644
|
|
|
373 | 373 | border-top-right-radius: 4px; |
374 | 374 | border-width: 1px; |
375 | 375 | margin-bottom: -1px; |
| 376 | margin-top: 1px; |
376 | 377 | padding: 0 $pad-sml; |
377 | 378 | |
378 | 379 | a { |
diff --git src/bp-templates/bp-nouveau/common-styles/_bp_navigation.scss src/bp-templates/bp-nouveau/common-styles/_bp_navigation.scss
index 179ada813..be6b39e0f 100644
|
|
|
32 | 32 | text-decoration: none; |
33 | 33 | } |
34 | 34 | |
35 | | span { |
| 35 | .count { |
36 | 36 | background: $light-grey; |
37 | 37 | border: 1px solid $bp-border-dark; |
38 | 38 | border-radius: 50%; |
… |
… |
|
92 | 92 | |
93 | 93 | a { |
94 | 94 | |
95 | | span { |
| 95 | .count { |
96 | 96 | background-color: $grey; |
97 | 97 | } |
98 | 98 | } |
… |
… |
|
117 | 117 | background: $dark-grey; |
118 | 118 | color: $off-white; |
119 | 119 | |
120 | | span { |
| 120 | .count { |
121 | 121 | border-color: $off-white; |
122 | 122 | } |
123 | 123 | } |
… |
… |
|
310 | 310 | |
311 | 311 | a { |
312 | 312 | |
313 | | span { |
| 313 | .count { |
314 | 314 | background-color: $white; |
315 | 315 | } |
316 | 316 | } |
… |
… |
|
322 | 322 | |
323 | 323 | a { |
324 | 324 | |
325 | | span { |
| 325 | .count { |
326 | 326 | background-color: $highlight; |
327 | 327 | border: 0; |
328 | 328 | color: $off-white; |
… |
… |
|
334 | 334 | |
335 | 335 | a:hover { |
336 | 336 | |
337 | | span { |
| 337 | .count { |
338 | 338 | background-color: $highlight; |
339 | 339 | border: 0; |
340 | 340 | color: $white; |
… |
… |
|
346 | 346 | |
347 | 347 | a { |
348 | 348 | |
349 | | span:empty { |
| 349 | .count:empty { |
350 | 350 | display: none; |
351 | 351 | } |
352 | 352 | } |
… |
… |
|
359 | 359 | ul { |
360 | 360 | |
361 | 361 | li:not(.current) { |
362 | | |
| 362 | color: $light-text; |
363 | 363 | a { |
364 | 364 | color: $light-text; |
365 | 365 | |
… |
… |
|
436 | 436 | |
437 | 437 | a { |
438 | 438 | |
439 | | span { |
| 439 | .count { |
440 | 440 | display: inline-block; |
441 | 441 | float: right; |
442 | 442 | } |
… |
… |
|
458 | 458 | |
459 | 459 | a { |
460 | 460 | |
461 | | span { |
| 461 | .count { |
462 | 462 | float: right; |
463 | 463 | |
464 | 464 | } |
diff --git src/bp-templates/bp-nouveau/css/buddypress-rtl.css src/bp-templates/bp-nouveau/css/buddypress-rtl.css
index f14cd39ca..53ee25fa8 100644
|
|
body.buddypress article.page > .entry-header .entry-title { |
302 | 302 | text-decoration: none; |
303 | 303 | } |
304 | 304 | |
305 | | .bp-navs ul li span { |
| 305 | .bp-navs ul li .count { |
306 | 306 | background: #eaeaea; |
307 | 307 | border: 1px solid #ccc; |
308 | 308 | border-radius: 50%; |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
330 | 330 | margin-bottom: 20px; |
331 | 331 | } |
332 | 332 | |
333 | | .buddypress-wrap .bp-navs li.selected a span, |
334 | | .buddypress-wrap .bp-navs li.current a span, |
335 | | .buddypress-wrap .bp-navs li a:hover a span { |
| 333 | .buddypress-wrap .bp-navs li.selected a .count, |
| 334 | .buddypress-wrap .bp-navs li.current a .count, |
| 335 | .buddypress-wrap .bp-navs li a:hover a .count { |
336 | 336 | background-color: #ccc; |
337 | 337 | } |
338 | 338 | |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
354 | 354 | color: #fafafa; |
355 | 355 | } |
356 | 356 | |
357 | | .buddypress-wrap .bp-navs li.selected a span, |
358 | | .buddypress-wrap .bp-navs li.selected a:focus span, |
359 | | .buddypress-wrap .bp-navs li.selected a:hover span, |
360 | | .buddypress-wrap .bp-navs li.current a span, |
361 | | .buddypress-wrap .bp-navs li.current a:focus span, |
362 | | .buddypress-wrap .bp-navs li.current a:hover span { |
| 357 | .buddypress-wrap .bp-navs li.selected a .count, |
| 358 | .buddypress-wrap .bp-navs li.selected a:focus .count, |
| 359 | .buddypress-wrap .bp-navs li.selected a:hover .count, |
| 360 | .buddypress-wrap .bp-navs li.current a .count, |
| 361 | .buddypress-wrap .bp-navs li.current a:focus .count, |
| 362 | .buddypress-wrap .bp-navs li.current a:hover .count { |
363 | 363 | border-color: #fafafa; |
364 | 364 | } |
365 | 365 | |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
461 | 461 | } |
462 | 462 | } |
463 | 463 | |
464 | | .buddypress_object_nav .bp-navs li.selected a span, |
465 | | .buddypress_object_nav .bp-navs li.current a span, |
466 | | .buddypress-wrap .bp-navs li.selected a span, |
467 | | .buddypress-wrap .bp-navs li.current a span { |
| 464 | .buddypress_object_nav .bp-navs li.selected a .count, |
| 465 | .buddypress_object_nav .bp-navs li.current a .count, |
| 466 | .buddypress-wrap .bp-navs li.selected a .count, |
| 467 | .buddypress-wrap .bp-navs li.current a .count { |
468 | 468 | background-color: #fff; |
469 | 469 | } |
470 | 470 | |
471 | | .buddypress_object_nav .bp-navs li.dynamic a span, |
472 | | .buddypress_object_nav .bp-navs li.dynamic.selected a span, |
473 | | .buddypress_object_nav .bp-navs li.dynamic.current a span, |
474 | | .buddypress-wrap .bp-navs li.dynamic a span, |
475 | | .buddypress-wrap .bp-navs li.dynamic.selected a span, |
476 | | .buddypress-wrap .bp-navs li.dynamic.current a span { |
| 471 | .buddypress_object_nav .bp-navs li.dynamic a .count, |
| 472 | .buddypress_object_nav .bp-navs li.dynamic.selected a .count, |
| 473 | .buddypress_object_nav .bp-navs li.dynamic.current a .count, |
| 474 | .buddypress-wrap .bp-navs li.dynamic a .count, |
| 475 | .buddypress-wrap .bp-navs li.dynamic.selected a .count, |
| 476 | .buddypress-wrap .bp-navs li.dynamic.current a .count { |
477 | 477 | background-color: #5087e5; |
478 | 478 | border: 0; |
479 | 479 | color: #fafafa; |
480 | 480 | } |
481 | 481 | |
482 | | .buddypress_object_nav .bp-navs li.dynamic a:hover span, |
483 | | .buddypress-wrap .bp-navs li.dynamic a:hover span { |
| 482 | .buddypress_object_nav .bp-navs li.dynamic a:hover .count, |
| 483 | .buddypress-wrap .bp-navs li.dynamic a:hover .count { |
484 | 484 | background-color: #5087e5; |
485 | 485 | border: 0; |
486 | 486 | color: #fff; |
487 | 487 | } |
488 | 488 | |
489 | | .buddypress_object_nav .bp-navs li a span:empty, |
490 | | .buddypress-wrap .bp-navs li a span:empty { |
| 489 | .buddypress_object_nav .bp-navs li a .count:empty, |
| 490 | .buddypress-wrap .bp-navs li a .count:empty { |
491 | 491 | display: none; |
492 | 492 | } |
493 | 493 | |
| 494 | .buddypress_object_nav .bp-navs.group-create-links ul li:not(.current), |
| 495 | .buddypress-wrap .bp-navs.group-create-links ul li:not(.current) { |
| 496 | color: #767676; |
| 497 | } |
| 498 | |
494 | 499 | .buddypress_object_nav .bp-navs.group-create-links ul li:not(.current) a, |
495 | 500 | .buddypress-wrap .bp-navs.group-create-links ul li:not(.current) a { |
496 | 501 | color: #767676; |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
532 | 537 | } |
533 | 538 | } |
534 | 539 | |
535 | | .buddypress_object_nav .bp-navs li a span { |
| 540 | .buddypress_object_nav .bp-navs li a .count { |
536 | 541 | display: inline-block; |
537 | 542 | float: left; |
538 | 543 | } |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
541 | 546 | .bp-dir-vert-nav .bp-navs.dir-navs { |
542 | 547 | background: none; |
543 | 548 | } |
544 | | .bp-dir-vert-nav .bp-navs.dir-navs a span { |
| 549 | .bp-dir-vert-nav .bp-navs.dir-navs a .count { |
545 | 550 | float: left; |
546 | 551 | } |
547 | 552 | } |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
577 | 582 | border-top-left-radius: 4px; |
578 | 583 | border-width: 1px; |
579 | 584 | margin-bottom: -1px; |
| 585 | margin-top: 1px; |
580 | 586 | padding: 0 0.5em; |
581 | 587 | } |
582 | 588 | .buddypress-wrap .item-body .tabbed-links ul li.current a { |
diff --git src/bp-templates/bp-nouveau/css/buddypress.css src/bp-templates/bp-nouveau/css/buddypress.css
index ed3d9cdde..3e8d04758 100644
|
|
body.buddypress article.page > .entry-header .entry-title { |
302 | 302 | text-decoration: none; |
303 | 303 | } |
304 | 304 | |
305 | | .bp-navs ul li span { |
| 305 | .bp-navs ul li .count { |
306 | 306 | background: #eaeaea; |
307 | 307 | border: 1px solid #ccc; |
308 | 308 | border-radius: 50%; |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
330 | 330 | margin-bottom: 20px; |
331 | 331 | } |
332 | 332 | |
333 | | .buddypress-wrap .bp-navs li.selected a span, |
334 | | .buddypress-wrap .bp-navs li.current a span, |
335 | | .buddypress-wrap .bp-navs li a:hover a span { |
| 333 | .buddypress-wrap .bp-navs li.selected a .count, |
| 334 | .buddypress-wrap .bp-navs li.current a .count, |
| 335 | .buddypress-wrap .bp-navs li a:hover a .count { |
336 | 336 | background-color: #ccc; |
337 | 337 | } |
338 | 338 | |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
354 | 354 | color: #fafafa; |
355 | 355 | } |
356 | 356 | |
357 | | .buddypress-wrap .bp-navs li.selected a span, |
358 | | .buddypress-wrap .bp-navs li.selected a:focus span, |
359 | | .buddypress-wrap .bp-navs li.selected a:hover span, |
360 | | .buddypress-wrap .bp-navs li.current a span, |
361 | | .buddypress-wrap .bp-navs li.current a:focus span, |
362 | | .buddypress-wrap .bp-navs li.current a:hover span { |
| 357 | .buddypress-wrap .bp-navs li.selected a .count, |
| 358 | .buddypress-wrap .bp-navs li.selected a:focus .count, |
| 359 | .buddypress-wrap .bp-navs li.selected a:hover .count, |
| 360 | .buddypress-wrap .bp-navs li.current a .count, |
| 361 | .buddypress-wrap .bp-navs li.current a:focus .count, |
| 362 | .buddypress-wrap .bp-navs li.current a:hover .count { |
363 | 363 | border-color: #fafafa; |
364 | 364 | } |
365 | 365 | |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
461 | 461 | } |
462 | 462 | } |
463 | 463 | |
464 | | .buddypress_object_nav .bp-navs li.selected a span, |
465 | | .buddypress_object_nav .bp-navs li.current a span, |
466 | | .buddypress-wrap .bp-navs li.selected a span, |
467 | | .buddypress-wrap .bp-navs li.current a span { |
| 464 | .buddypress_object_nav .bp-navs li.selected a .count, |
| 465 | .buddypress_object_nav .bp-navs li.current a .count, |
| 466 | .buddypress-wrap .bp-navs li.selected a .count, |
| 467 | .buddypress-wrap .bp-navs li.current a .count { |
468 | 468 | background-color: #fff; |
469 | 469 | } |
470 | 470 | |
471 | | .buddypress_object_nav .bp-navs li.dynamic a span, |
472 | | .buddypress_object_nav .bp-navs li.dynamic.selected a span, |
473 | | .buddypress_object_nav .bp-navs li.dynamic.current a span, |
474 | | .buddypress-wrap .bp-navs li.dynamic a span, |
475 | | .buddypress-wrap .bp-navs li.dynamic.selected a span, |
476 | | .buddypress-wrap .bp-navs li.dynamic.current a span { |
| 471 | .buddypress_object_nav .bp-navs li.dynamic a .count, |
| 472 | .buddypress_object_nav .bp-navs li.dynamic.selected a .count, |
| 473 | .buddypress_object_nav .bp-navs li.dynamic.current a .count, |
| 474 | .buddypress-wrap .bp-navs li.dynamic a .count, |
| 475 | .buddypress-wrap .bp-navs li.dynamic.selected a .count, |
| 476 | .buddypress-wrap .bp-navs li.dynamic.current a .count { |
477 | 477 | background-color: #5087e5; |
478 | 478 | border: 0; |
479 | 479 | color: #fafafa; |
480 | 480 | } |
481 | 481 | |
482 | | .buddypress_object_nav .bp-navs li.dynamic a:hover span, |
483 | | .buddypress-wrap .bp-navs li.dynamic a:hover span { |
| 482 | .buddypress_object_nav .bp-navs li.dynamic a:hover .count, |
| 483 | .buddypress-wrap .bp-navs li.dynamic a:hover .count { |
484 | 484 | background-color: #5087e5; |
485 | 485 | border: 0; |
486 | 486 | color: #fff; |
487 | 487 | } |
488 | 488 | |
489 | | .buddypress_object_nav .bp-navs li a span:empty, |
490 | | .buddypress-wrap .bp-navs li a span:empty { |
| 489 | .buddypress_object_nav .bp-navs li a .count:empty, |
| 490 | .buddypress-wrap .bp-navs li a .count:empty { |
491 | 491 | display: none; |
492 | 492 | } |
493 | 493 | |
| 494 | .buddypress_object_nav .bp-navs.group-create-links ul li:not(.current), |
| 495 | .buddypress-wrap .bp-navs.group-create-links ul li:not(.current) { |
| 496 | color: #767676; |
| 497 | } |
| 498 | |
494 | 499 | .buddypress_object_nav .bp-navs.group-create-links ul li:not(.current) a, |
495 | 500 | .buddypress-wrap .bp-navs.group-create-links ul li:not(.current) a { |
496 | 501 | color: #767676; |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
532 | 537 | } |
533 | 538 | } |
534 | 539 | |
535 | | .buddypress_object_nav .bp-navs li a span { |
| 540 | .buddypress_object_nav .bp-navs li a .count { |
536 | 541 | display: inline-block; |
537 | 542 | float: right; |
538 | 543 | } |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
541 | 546 | .bp-dir-vert-nav .bp-navs.dir-navs { |
542 | 547 | background: none; |
543 | 548 | } |
544 | | .bp-dir-vert-nav .bp-navs.dir-navs a span { |
| 549 | .bp-dir-vert-nav .bp-navs.dir-navs a .count { |
545 | 550 | float: right; |
546 | 551 | } |
547 | 552 | } |
… |
… |
body.buddypress article.page > .entry-header .entry-title { |
577 | 582 | border-top-right-radius: 4px; |
578 | 583 | border-width: 1px; |
579 | 584 | margin-bottom: -1px; |
| 585 | margin-top: 1px; |
580 | 586 | padding: 0 0.5em; |
581 | 587 | } |
582 | 588 | .buddypress-wrap .item-body .tabbed-links ul li.current a { |
diff --git src/bp-templates/bp-nouveau/includes/groups/template-tags.php src/bp-templates/bp-nouveau/includes/groups/template-tags.php
index bd004f4b6..f50e36bad 100644
|
|
function bp_nouveau_groups_get_group_invites_setting() { |
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |
202 | | * Outputs the group creation numbered steps navbar |
203 | | * |
204 | | * @since 3.0.0 |
205 | | * |
206 | | * @todo This output isn't localised correctly. |
207 | | */ |
208 | | function bp_nouveau_group_creation_tabs() { |
209 | | $bp = buddypress(); |
210 | | |
211 | | if ( ! is_array( $bp->groups->group_creation_steps ) ) { |
212 | | return; |
213 | | } |
214 | | |
215 | | if ( ! bp_get_groups_current_create_step() ) { |
216 | | $keys = array_keys( $bp->groups->group_creation_steps ); |
217 | | $bp->groups->current_create_step = array_shift( $keys ); |
218 | | } |
219 | | |
220 | | $counter = 1; |
221 | | |
222 | | foreach ( (array) $bp->groups->group_creation_steps as $slug => $step ) { |
223 | | $is_enabled = bp_are_previous_group_creation_steps_complete( $slug ); ?> |
224 | | |
225 | | <li<?php if ( bp_get_groups_current_create_step() === $slug ) : ?> class="current"<?php endif; ?>> |
226 | | <?php if ( $is_enabled ) : ?> |
227 | | <a href="<?php echo esc_url( bp_groups_directory_permalink() . 'create/step/' . $slug . '/' ); ?>"> |
228 | | <?php echo (int) $counter; ?> <?php echo esc_html( $step['name'] ); ?> |
229 | | </a> |
230 | | <?php else : ?> |
231 | | <a disabled="disabled"><?php echo (int) $counter; ?>. <?php echo esc_html( $step['name'] ); ?></a> |
232 | | <?php endif ?> |
233 | | </li> |
234 | | <?php |
235 | | $counter++; |
236 | | } |
237 | | |
238 | | unset( $is_enabled ); |
239 | | |
240 | | /** |
241 | | * Fires at the end of the creation of the group tabs. |
242 | | * |
243 | | * @since 1.0.0 |
244 | | */ |
245 | | do_action( 'groups_creation_tabs' ); |
246 | | } |
247 | | |
248 | | /** |
249 | 202 | * Load the requested Create Screen for the new group. |
250 | 203 | * |
251 | 204 | * @since 3.0.0 |