#24863 closed defect (bug) (fixed)
Twenty Fourteen: add a Contributors page template to highlight authors
Reported by: | lancewillett | Owned by: | |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | 3.8 |
Component: | Bundled Theme | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
For example: http://www.aeonmagazine.com/contributors/
- Page template should list all authors with at least 1 published post.
- Link to authors archive.
Attachments (13)
Change History (47)
#5
@
11 years ago
- Cc mdhansen@… added
A few ideas I have for this page are to also show the users gravatar if they have one and to still allow the page content to be displayed either below or above the authors. I have a template I have been playing with but it still needs a little work before I post it. Hopefully today sometime.
#8
@
11 years ago
I'd like to wait with that until iamtakashi had a chance to come up with a design for the page.
#9
@
11 years ago
The patch could easily be updated to meet a new design. Let's wait to get some input from iamtakashi.
#12
@
11 years ago
I've worked on a mockup for the contributors page.
http://f.cl.ly/items/1C261Z3C3b3q2O3G2033/2014-contributors.jpg
I think it's the best to order contibutors on the page by their number of published articles. Plus, to make the ordering clear, it would be good to print the number of articles on the button that takes to the author archive page. I used the document icon from Genericons in the mockup but it could say "Read xx Articles" or "View xx Articles" or whatever we think most appropriate. What do you guys think?
#13
follow-up:
↓ 14
@
11 years ago
I like it! What made you go with a one-column layout instead of a two- or three-column layout for example?
#14
in reply to:
↑ 13
@
11 years ago
Replying to obenland:
I like it! What made you go with a one-column layout instead of a two- or three-column layout for example?
Although we can use the Masonry, I found the layout can be messy with various text lengthes of biographies in two- or three-column layout and the readability will definitely suffer, and also the ordering will be obscured with multi-column Masonry powered layout.
Another reason was that, for that page, I wanted to use a good size of avatars, not like the ones in comments because these are more important on the page.
In my opinion, this one-column layout is cleaner and safer especially when a site has only a few contributors. Even a site has few dozens of contributors, the page wouldn't look horrible because it's clean and airy.
I'm glad you like it!
#15
@
11 years ago
I like it a lot, too, and I agree with the design decisions you made re: one column layout.
#17
@
11 years ago
24863.diff uses author-page.2.php. It still allows for content if there is any. It will likely need more tuning, it is missing the icon in the button also.
#21
@
11 years ago
Mike, could you see where using get_users() gets you? You can set it to order by post count and it should give you all the user information we need.
I'm not sure we actually need the .contributor-info
div, we should be fine without it. .contributor-button
should be outside the bio, see it more like meta info to the bio content. We might also be able to do all that in a page template.
#23
follow-up:
↓ 25
@
11 years ago
24863.4.diff is based on MikeHansenMe's work and iamtakashi's mockup.
Takashi, could you make sure I got the colors, font-sizes, and widths/margins right?
#26
in reply to:
↑ 25
;
follow-up:
↓ 27
@
11 years ago
Replying to iamtakashi:
Adjusted slightly some styles. We can improve its responsive pattern when the patch in #25332 is committed.
Your patch is missing the page template :(
#27
in reply to:
↑ 26
@
11 years ago
Replying to obenland:
Your patch is missing the page template :(
Oops. Sorry about that! Added a patch with the page template.
#28
follow-up:
↓ 29
@
11 years ago
Patch is looking great. One thing I noticed, and can be fixed in a later patch, is the word "Articles" isn't set up for translating numbers like 0, 1, n in various languages.
<?php printf( __( '%d Articles', 'twentyfourteen' ), $post_count ); ?>
and when an author has only 1 post, it still says "0 Articles" plural.
#29
in reply to:
↑ 28
@
11 years ago
Replying to lancewillett:
Patch is looking great. One thing I noticed, and can be fixed in a later patch, is the word "Articles" isn't set up for translating numbers like 0, 1, n in various languages.
Good catch, let me update real quick.
#30
@
11 years ago
Noting also the Genericons class should probably be removed and use CSS instead, as per changes in #25085. For adding the "document" icon.
Contributors page template