greenpeace / planet4

Built on top of Wordpress tech, Greenpeace Planet 4 powers digital platforms to engage with millions and win campaigns around the world.
https://planet4.greenpeace.org
Creative Commons Attribution Share Alike 4.0 International
66 stars 27 forks source link

PLANET-6188 Add an author image to Posts #133

Closed IlBrizzo closed 2 years ago

IlBrizzo commented 3 years ago

We'd like to replicate the Medium approach, by pulling out the Author's profile image in Posts (see for ex. https://medium.com/planet4/the-2020-planet-4-community-feedback-e0aa75a861b9) image

This will add a nice human touch to the content, by associating a name to a picture. In general, the picture should be cropped into a circle. Main concerns were about the eventual change of behavior of the author profile link at the bottom of the posts and what would happen if there's an author override or the author has no profile image (perhaps pulling a generic image, like GP NL?).

The issue should be delivered with the option to decide for which posts you want to activate (community don't really see the point of this for publications or PRs, for ex..)

Brief summary of task:

This task should have a low complexity for design, we'd only have to pull out the author's profile image, style it rounded and add it to the post. 

On the tech side, giving the option to choose which post types should get this feature slightly increases the complexity, but it could be an option under Planet 4 settings. Not recommended to do this on a post-by-post basis. For users with no image we could have a default one (like GP NL), and for "Author Override" we could completely skip the avatar, useful for cases when the Author is not a person (eg. Greenpeace International)

Objectives of task:

Relevant documentation:

Check out this idea in the P4 handbook --> https://planet4.greenpeace.org/idea/add-an-author-image-in-blog/ and make sure you get in touch with the P4 team for any guidance --> planet4-pm-group@greenpeace.org

Dependencies on other work:

Should link to a command in P4 Settings to determine for which post type this feature should be activated

Example of similar work:

https://medium.com/planet4/the-2020-planet-4-community-feedback-e0aa75a861b9

Help:

yehee commented 3 years ago

Hi! Can I work on this?

sagarsdeshmukh commented 3 years ago

Hi! Can I work on this?

Hello @yehee , Sure. 💚

comzeradd commented 2 years ago

Closing this. Code is merged and scheduled to be released.