update
This commit is contained in:
@@ -44,7 +44,6 @@ class Yacht_List_Table extends \WP_List_Table {
|
||||
return array(
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'title' => __( 'Nazwa jachtu', 'yacht-booking' ),
|
||||
'gcal' => __( 'Google Calendar', 'yacht-booking' ),
|
||||
'bookings' => __( 'Rezerwacje', 'yacht-booking' ),
|
||||
'date' => __( 'Data utworzenia', 'yacht-booking' ),
|
||||
);
|
||||
@@ -163,28 +162,6 @@ class Yacht_List_Table extends \WP_List_Table {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Column Google Calendar
|
||||
*
|
||||
* @param object $item Item.
|
||||
* @return string
|
||||
*/
|
||||
public function column_gcal( $item ) {
|
||||
$gcal_id = Yacht::get_gcal_id( $item->ID );
|
||||
|
||||
if ( $gcal_id ) {
|
||||
return sprintf(
|
||||
'<span class="gcal-status connected"><span class="dashicons dashicons-yes-alt"></span> %s</span>',
|
||||
esc_html__( 'Połączony', 'yacht-booking' )
|
||||
);
|
||||
}
|
||||
|
||||
return sprintf(
|
||||
'<span class="gcal-status disconnected"><span class="dashicons dashicons-dismiss"></span> %s</span>',
|
||||
esc_html__( 'Niepołączony', 'yacht-booking' )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Column bookings count
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user