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:
parent
93269fad46
commit
339b9f015d
@ -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>';
|
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attribute_escape(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||||
$action_count = count($actions);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
echo '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $link ) {
|
foreach ( $actions as $action => $link ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
echo "<span class='$action'>$link$sep</span>";
|
echo "<span class='$action'>$link$sep</span>";
|
||||||
}
|
}
|
||||||
|
echo '</div>';
|
||||||
?></p></td>
|
?></p></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
@ -197,11 +197,13 @@ if ( $links ) {
|
|||||||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf( __("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
|
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf( __("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
|
||||||
$action_count = count($actions);
|
$action_count = count($actions);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
echo '<div class="row-actions">';
|
||||||
foreach ( $actions as $action => $linkaction ) {
|
foreach ( $actions as $action => $linkaction ) {
|
||||||
++$i;
|
++$i;
|
||||||
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
|
||||||
echo "<span class='$action'>$linkaction$sep</span>";
|
echo "<span class='$action'>$linkaction$sep</span>";
|
||||||
}
|
}
|
||||||
|
echo '</div>';
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
break;
|
break;
|
||||||
case 'url':
|
case 'url':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user