";
list( $columns, $hidden ) = $this->get_column_info();
foreach ( $columns as $column_name => $column_display_name ) {
$style = '';
if ( in_array( $column_name, $hidden ) )
$style = ' style="display:none;"';
switch ( $column_name ) {
case 'cb':
echo "| $checkbox | ";
break;
case 'name':
echo "" . $theme->display('Name') . "";
echo $this->row_actions( $actions, true );
echo " | ";
break;
case 'description':
echo "";
if ( $theme->errors() ) {
$pre = $status == 'broken' ? '' : __( 'Broken Theme:' ) . ' ';
echo ' ' . $pre . $theme->errors()->get_error_message() . ' ';
}
echo "" . $theme->display( 'Description' ) . "
";
$theme_meta = array();
if ( $theme->get('Version') )
$theme_meta[] = sprintf( __( 'Version %s' ), $theme->display('Version') );
$theme_meta[] = sprintf( __( 'By %s' ), $theme->display('Author') );
if ( $theme->get('ThemeURI') )
$theme_meta[] = ' ' . __( 'Visit Theme Site' ) . '';
$theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );
echo implode( ' | ', $theme_meta );
echo " | ";
break;
default:
echo "";
do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme );
echo " | ";
}
}
echo "
";
if ( $this->is_site_themes )
remove_action( "after_theme_row_$stylesheet", 'wp_theme_update_row' );
do_action( 'after_theme_row', $stylesheet, $theme, $status );
do_action( "after_theme_row_$stylesheet", $stylesheet, $theme, $status );
}
}