Skip to:
Content

BuddyPress.org

Changeset 13790


Ignore:
Timestamp:
04/11/2024 06:18:21 PM (14 months ago)
Author:
imath
Message:

BP Hello screen: only display it to Community Site Admins

This screen targets Community Site Admins to inform them about the top features included in a new version of the plugin, its full change log as well as to explain how they can get involved into the BuddyPress open source project.

About this last point, the "Get Involved" subpage layout has also been improved so that warnings about how we can contribute to BuddyPress docs are better displayed.

Props emaralive

Fixes #9111 (branch 12.0)

Location:
branches/12.0/src/bp-core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-core/admin/css/hello-rtl.css

    r13710 r13790  
    3434}
    3535
     36.bp-hello-content p.has-white-color.has-text-color.has-background.has-medium-font-size {
     37    color: #fff;
     38    padding: 1.25em 2.375em !important;
     39}
     40
     41.bp-hello-content p a {
     42    text-decoration: none;
     43}
     44
     45.bp-hello-content p a:hover {
     46    color: #dd823b;
     47    text-decoration: underline;
     48}
     49
     50.bp-hello-content p a mark.has-inline-color.has-white-color {
     51    color: #fff;
     52}
     53
    3654.bp-hello-content ul,
    3755.bp-hello-content ol {
     
    4664    font-size: 1.1em;
    4765    font-weight: 500;
     66}
     67
     68.bp-hello-content .wp-container-core-buttons-is-layout-1 {
     69    display: flex;
     70    justify-content: center;
     71}
     72
     73.bp-hello-content .has-vivid-red-background-color {
     74    background-color: #be3631;
     75}
     76
     77.bp-hello-content .wp-block-button.is-style-fill a:hover {
     78    text-decoration: underline;
     79}
     80
     81.bp-hello-content .wp-block-button__link {
     82    color: #fff;
     83    box-shadow: none;
     84    text-decoration: none;
     85    padding: calc(0.667em + 2px) calc(1.333em + 2px);
     86    font-size: 1.125em;
    4887}
    4988
  • branches/12.0/src/bp-core/admin/css/hello.css

    r13710 r13790  
    3434}
    3535
     36.bp-hello-content p.has-white-color.has-text-color.has-background.has-medium-font-size {
     37    color: #fff;
     38    padding: 1.25em 2.375em !important;
     39}
     40
     41.bp-hello-content p a {
     42    text-decoration: none;
     43}
     44
     45.bp-hello-content p a:hover {
     46    color: #dd823b;
     47    text-decoration: underline;
     48}
     49
     50.bp-hello-content p a mark.has-inline-color.has-white-color {
     51    color: #fff;
     52}
     53
    3654.bp-hello-content ul,
    3755.bp-hello-content ol {
     
    4664    font-size: 1.1em;
    4765    font-weight: 500;
     66}
     67
     68.bp-hello-content .wp-container-core-buttons-is-layout-1 {
     69    display: flex;
     70    justify-content: center;
     71}
     72
     73.bp-hello-content .has-vivid-red-background-color {
     74    background-color: #be3631;
     75}
     76
     77.bp-hello-content .wp-block-button.is-style-fill a:hover {
     78    text-decoration: underline;
     79}
     80
     81.bp-hello-content .wp-block-button__link {
     82    color: #fff;
     83    box-shadow: none;
     84    text-decoration: none;
     85    padding: calc(0.667em + 2px) calc(1.333em + 2px);
     86    font-size: 1.125em;
    4887}
    4988
  • branches/12.0/src/bp-core/admin/sass/hello.scss

    r13710 r13790  
    3535    p {
    3636        font-size: 16px;
     37
     38        &.has-white-color.has-text-color.has-background.has-medium-font-size {
     39            color: #fff;
     40            padding: 1.25em 2.375em !important;
     41        }
     42
     43        a {
     44            text-decoration: none;
     45
     46            &:hover {
     47                color: #dd823b;
     48                text-decoration: underline;
     49            }
     50
     51            mark {
     52
     53                &.has-inline-color.has-white-color {
     54                    color: #fff;
     55                }
     56            }
     57        }
    3758    }
    3859
     
    4970        font-size: 1.1em;
    5071        font-weight: 500;
     72    }
     73
     74    .wp-container-core-buttons-is-layout-1 {
     75        display: flex;
     76        justify-content: center;
     77    }
     78
     79    .has-vivid-red-background-color {
     80        background-color: #be3631;
     81    }
     82
     83    .wp-block-button.is-style-fill a:hover {
     84        text-decoration: underline;
     85    }
     86
     87    .wp-block-button__link {
     88        color: #fff;
     89        box-shadow: none;
     90        text-decoration: none;
     91        padding: calc(0.667em + 2px) calc(1.333em + 2px);
     92        font-size: 1.125em;
    5193    }
    5294}
  • branches/12.0/src/bp-core/classes/class-bp-admin.php

    r13710 r13790  
    186186
    187187        // Add a link to BuddyPress Hello in the admin bar.
    188         add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 100 );
     188        if ( bp_current_user_can( 'bp_moderate' ) ) {
     189            add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 100 );
     190        }
    189191
    190192        // Add a description of BuddyPress tools in the available tools page.
Note: See TracChangeset for help on using the changeset viewer.