Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/26/2022 02:08:37 PM (4 years ago)
Author:
imath
Message:

Improve the new_blog_post activity type layout

These type of activities are generated when a blog post is published. If [13298] already brought some improvements making the included post featured image clickable, this changeset complement the first one:

  • by adding the post title into the activity content and linking it as well as the "read more" ellipsis to the post permalink. This "read more" link is generated using the WordPress the_content_more_link filter which means if your theme is using this filter to adapt the "read more" link, these adaptations will also be applied to the activity "read more" link.
  • by changing the markup used into these activities and by adding some CSS rules to make them looks more like WordPress embeds.

Props teeboy4real

Fixes #8052

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/common-styles/_bp_activity_entries.scss

    r13182 r13305  
    9090                        }
    9191                } // close li forum elements
     92
     93                &.new_blog_post {
     94
     95                        .activity-inner {
     96
     97                                strong {
     98                                        display: block;
     99                                        margin-bottom: 0.8em;
     100                                }
     101
     102                                img {
     103                                        float: left;
     104                                        margin-right: 0.8em;
     105                                }
     106                        }
     107                } // close li blog post elements
    92108
    93109
Note: See TracChangeset for help on using the changeset viewer.