Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -32,8 +32,7 @@ class Customers_Payment_List_Table extends Payment_List_Table {
);
return $columns;
} // end get_columns;
}
/**
* Renders the inside column responsive.
@ -45,33 +44,37 @@ class Customers_Payment_List_Table extends Payment_List_Table {
*/
public function column_responsive($item) {
echo wu_responsive_table_row(array(
'id' => $item->get_id(),
'title' => $item->get_hash(),
'url' => wu_network_admin_url('wp-ultimo-edit-payment', array(
'id' => $item->get_id(),
)),
'status' => $this->column_status($item),
), array(
'total' => array(
'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1',
'label' => __('Payment Total', 'wp-ultimo'),
'value' => wu_format_currency($item->get_total()),
echo wu_responsive_table_row(
array(
'id' => $item->get_id(),
'title' => $item->get_hash(),
'url' => wu_network_admin_url(
'wp-ultimo-edit-payment',
array(
'id' => $item->get_id(),
)
),
'status' => $this->column_status($item),
),
'gateway' => array(
'icon' => 'dashicons-wu-credit-card2 wu-align-middle wu-mr-1',
'label' => __('Gateway', 'wp-ultimo'),
'value' => wu_slug_to_name($item->get_gateway()),
array(
'total' => array(
'icon' => 'dashicons-wu-shopping-bag1 wu-align-middle wu-mr-1',
'label' => __('Payment Total', 'wp-ultimo'),
'value' => wu_format_currency($item->get_total()),
),
'gateway' => array(
'icon' => 'dashicons-wu-credit-card2 wu-align-middle wu-mr-1',
'label' => __('Gateway', 'wp-ultimo'),
'value' => wu_slug_to_name($item->get_gateway()),
),
),
),
array(
'date_created' => array(
'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1',
'label' => '',
'value' => sprintf(__('Created %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_created()))),
),
));
} // end column_responsive;
} // end class Customers_Payment_List_Table;
array(
'date_created' => array(
'icon' => 'dashicons-wu-calendar1 wu-align-middle wu-mr-1',
'label' => '',
'value' => sprintf(__('Created %s', 'wp-ultimo'), wu_human_time_diff(strtotime((string) $item->get_date_created()))),
),
)
);
}
}