X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/7688c6ba71852cd89123b62b2d57683535e4702a..refs/tags/wordpress-2.9:/wp-admin/link-manager.php?ds=sidebyside diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index ade31431..e818e392 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -1,22 +1,47 @@ - +} ?> + +
'; + echo '
'; $deleted = (int) $_GET['deleted']; - printf(__ngettext('%s link deleted.', '%s links deleted', $deleted), $deleted); + printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted); echo '
+ | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
'; + break; case 'name': - ?> | link_name; ?> link_description . " | ";
+
+ echo "link_name)) . "'>$link->link_name "; + $actions = array(); + $actions['edit'] = '' . __('Edit') . ''; + $actions['delete'] = "link_id) . "' onclick=\"if ( confirm('" . esc_js(sprintf( __("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete') . ""; + $action_count = count($actions); + $i = 0; + echo ' ';
+ foreach ( $actions as $action => $linkaction ) {
+ ++$i;
+ ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
+ echo "$linkaction$sep";
+ }
+ echo ' ';
+ echo ' | ';
break;
case 'url':
- echo "link_name)."'>$short_url | "; + echo "link_name)."'>$short_url | "; break; case 'categories': - ?>>link_category as $category) { $cat = get_term($category, 'link_category', OBJECT, 'display'); @@ -167,17 +226,16 @@ if ( $links ) { $cat_names[] = $cat_name; } echo implode(', ', $cat_names); - ?> | link_rel; ?> | >link_rel) ? ' ' : $link->link_rel; ?> | > | '.__('Edit').''; - echo 'link_id , '".js_escape(sprintf(__("You are about to delete the '%s' link to %s.\n'Cancel' to stop, 'OK' to delete."), $link->link_name, $link->link_url )).'\' );" class="delete">'.__('Delete').' | '; + case 'rating': + ?>> | @@ -187,20 +245,34 @@ if ( $links ) { } } - echo ''; echo "\n |
')" />
- + - +