first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
<a class="button button-primary" target="_blank" href="<?php echo $download_manifest_url; ?>"><?php _e( 'Download', 'flexible-shipping' ); ?></a>
<a class="button" href="<?php echo $cancel_url; ?>"><?php _e( 'Cancel', 'flexible-shipping' ); ?></a>

View File

@@ -0,0 +1 @@
<a target="_blank" href="<?php echo $download_manifest_url; ?>"><?php echo $manifest->get_number(); ?></a>

View File

@@ -0,0 +1,11 @@
<?php ?>
<div class="alignleft actions">
<select name="flexible_shipping_integration_filter">
<option value=""><?php _e( 'All manifests', 'flexible-shipping' ); ?></option>
<optgroup label="<?php _e( 'Integration', 'flexible-shipping' ); ?>">
<?php foreach ( $integrations as $key => $val ) : ?>
<option value="<?php echo $key; ?>" <?php echo ($key == $integration ? 'selected' : '' ); ?>><?php echo $val; ?></option>
<?php endforeach; ?>
</optgroup>
</select>
</div>

View File

@@ -0,0 +1,55 @@
<table class="wp-list-table widefat fixed striped">
<thead>
<tr>
<th>
</th>
<th>
<?php _e( 'Shipment', 'flexible-shipping' ); ?>
</th>
<th>
<?php _e( 'Order', 'flexible-shipping' ); ?>
</th>
</tr>
</thead>
<tbody id="the-list">
<?php $count = 0; ?>
<?php foreach ( $shipments as $shipment ) : ?>
<?php
$count++;
$order = $shipment->get_order();
if ( version_compare( WC_VERSION, '2.7', '<' ) ) {
$order_id = $order->id;
}
else {
$order_id = $order->get_id();
}
?>
<tr>
<td>
<?php echo $count; ?>
</td>
<td>
<a href="<?php echo $shipment->get_order_metabox_url(); ?>"><?php echo $shipment->get_tracking_number(); ?></a>
</td>
<td>
<a href="<?php echo admin_url( 'post.php?action=edit&post=' . $order_id ); ?>"><?php echo $order->get_order_number(); ?></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th>
</th>
<th>
<?php _e( 'Shipment', 'flexible-shipping' ); ?>
</th>
<th>
<?php _e( 'Order', 'flexible-shipping' ); ?>
</th>
</tr>
</tfoot>
</table>