Show actions on hover for links and media.

git-svn-id: https://develop.svn.wordpress.org/trunk@10012 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-12-02 19:00:48 +00:00
parent 93269fad46
commit 339b9f015d
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -86,11 +86,13 @@ foreach ($posts_columns as $column_name => $column_display_name ) {
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
$action_count = count($actions);
$i = 0;
echo '<div class="row-actions">';
foreach ( $actions as $action => $link ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
echo "<span class='$action'>$link$sep</span>";
}
echo '</div>';
?></p></td>
<?php
break;