>$column_display_name) {
$class = "class=\"column-$column_name\"";
$style = '';
if ( in_array($column_name, $hidden) )
$style = ' style="display:none;"';
if ( 'visible' == $column_name )
$style = empty($style) ? ' style="text-align: center;"' : ' style="text-align: center; display: none;"';
$attributes = "$class$style";
switch($column_name) {
case 'cb':
echo ' | ';
break;
case 'name':
echo "link_name)) . "'>$link->link_name ";
$actions = array();
$actions['edit'] = '' . __('Edit') . '';
$actions['delete'] = "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') . "";
$action_count = count($actions);
$i = 0;
foreach ( $actions as $action => $linkaction ) {
++$i;
( $i == $action_count ) ? $sep = '' : $sep = ' | ';
echo "$linkaction$sep";
}
echo ' | ';
break;
case 'url':
echo "link_name)."'>$short_url | ";
break;
case 'categories':
?>>link_category as $category) {
$cat = get_term($category, 'link_category', OBJECT, 'display');
if ( is_wp_error( $cat ) )
echo $cat->get_error_message();
$cat_name = $cat->name;
if ( $cat_id != $category )
$cat_name = "$cat_name";
$cat_names[] = $cat_name;
}
echo implode(', ', $cat_names);
?> | >link_rel; ?> | > |
link_id); ?> |
\n";
}
?>