[wp-trac] [WordPress Trac] #5172: Adding classes to
wp_generate_tag_cloud
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 9 17:09:15 GMT 2007
#5172: Adding classes to wp_generate_tag_cloud
-------------------------+--------------------------------------------------
Reporter: chmac | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4
Component: Template | Version:
Severity: normal | Keywords: wp_generate_tag_cloudk, wp_tag_cloud
-------------------------+--------------------------------------------------
The attached patch changes 2 things on the [source:/trunk/wp-includes
/category-template.php#L330 wp_generate_tag_cloud] function.
1) The current code uses single quotes instead of double quotes, I believe
the standard is to use double quotes. I've converted single quotes to
double quotes.
2) I've rounded the tag size to a whole number (no decimal places).
3) I've added a class "tag-cloud-item-X" where X is the number in the list
and a second class "tag-cloud-size-X" where X is the size of the tag. .
This will allow theme designers to apply different styles to tags. For
example changing the colour from cold to hot depending on order or size.
--
Ticket URL: <http://trac.wordpress.org/ticket/5172>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list