This commit is contained in:
2026-05-06 23:16:47 +02:00
parent ea77c8ea35
commit c4a485e530
23 changed files with 2141 additions and 1772 deletions

View File

@@ -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
*