Here's the diff:
Index: dynamic-classes.php
===================================================================
--- dynamic-classes.php (revisione 259)
+++ dynamic-classes.php (copia locale)
@@ -25,6 +25,9 @@
$postID = $wp_query->post->ID;
the_post();
+ // Adds post slug class, prefixed by 'slug-'
+ $c[] = 'slug-' . $wp_query->post->post_name;
+
// Adds 'single' class and class with the post ID
$c[] = 'single postid-' . $postID;
@@ -80,6 +83,10 @@
$pageID = $wp_query->post->ID;
$page_children = wp_list_pages("child_of=$pageID&echo=0");
the_post();
+
+ // Adds post slug class, prefixed by 'slug-'
+ $c[] = 'slug-' . $wp_query->post->post_name;
+
$c[] = 'page pageid-' . $pageID;
$c[] = 'page-author-' . sanitize_title_with_dashes(strtolower(get_the_author('login')));
// Checks to see if the page has children and/or is a child page; props to Adam
@@ -171,6 +178,9 @@
if ( ++$thematic_post_alt % 2 )
$c[] = 'alt';
+ // Adds post slug class, prefixed by 'slug-'
+ $c[] = 'slug-' . $post->post_name;
+
// Separates classes with a single space, collates classes for post DIV
$c = join( ' ', apply_filters( 'post_class', $c ) ); // Available filter: post_class