plugin updates

This commit is contained in:
Tony Volpe
2024-02-21 16:19:46 +00:00
parent c72f206574
commit 21d4c85c00
1214 changed files with 102269 additions and 179257 deletions

View File

@@ -1,12 +1,12 @@
<?php
/**
* Display the Order Attribution Data metabox.
* Display the Order Attribution details metabox.
*
* This template is used to display the order source data metabox on the edit order screen.
* This template is used to display the order attribution data metabox on the edit order screen.
*
* @see Automattic\WooCommerce\Internal\Orders\OrderAttributionController
* @package WooCommerce\Templates
* @version 8.4.0
* @version 8.6.0-dev
*/
declare( strict_types=1 );
@@ -47,29 +47,36 @@ defined( 'ABSPATH' ) || exit;
</div>
<div class="woocommerce-order-attribution-details-container closed">
<?php if ( array_key_exists( 'type', $meta ) ) : ?>
<?php if ( array_key_exists( 'source_type', $meta ) ) : ?>
<h4><?php esc_html_e( 'Source type', 'woocommerce' ); ?></h4>
<span class="order-attribution-source_type">
<?php echo esc_html( $meta['type'] ); ?>
<?php echo esc_html( $meta['source_type'] ); ?>
</span>
<?php endif; ?>
<?php if ( array_key_exists( 'utm_campaign', $meta ) ) : ?>
<h4><?php esc_html_e( 'UTM campaign', 'woocommerce' ); ?></h4>
<h4>
<?php esc_html_e( 'Campaign', 'woocommerce' ); ?>
</h4>
<span class="order-attribution-utm-campaign">
<?php echo esc_html( $meta['utm_campaign'] ); ?>
</span>
<?php endif; ?>
<?php if ( array_key_exists( 'utm_source', $meta ) ) : ?>
<h4><?php esc_html_e( 'UTM source', 'woocommerce' ); ?></h4>
<h4>
<?php esc_html_e( 'Source', 'woocommerce' ); ?>
</h4>
<span class="order-attribution-utm-source">
<?php echo esc_html( $meta['utm_source'] ); ?>
</span>
<?php endif; ?>
<?php if ( array_key_exists( 'utm_medium', $meta ) ) : ?>
<h4><?php esc_html_e( 'UTM medium', 'woocommerce' ); ?></h4>
<h4>
<?php esc_html_e( 'Medium', 'woocommerce' ); ?>
</h4>
<span class="order-attribution-utm-medium">
<?php echo esc_html( $meta['utm_medium'] ); ?>
</span>

View File

@@ -6,7 +6,7 @@
*
* @see Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes\CustomerHistory
* @package WooCommerce\Templates
* @version 8.4.0
* @version 8.7.0
*/
declare( strict_types=1 );
@@ -16,9 +16,9 @@ defined( 'ABSPATH' ) || exit;
/**
* Variables used in this file.
*
* @var int $order_count The number of paid orders placed by the current customer.
* @var float $total_spent The total money spent by the current customer.
* @var float $average_spent The average money spent by the current customer.
* @var int $orders_count The number of paid orders placed by the current customer.
* @var float $total_spend The total money spent by the current customer.
* @var float $avg_order_value The average money spent by the current customer.
*/
?>
@@ -35,7 +35,7 @@ defined( 'ABSPATH' ) || exit;
</h4>
<span class="order-attribution-total-orders">
<?php echo esc_html( $order_count ); ?>
<?php echo esc_html( $orders_count ); ?>
</span>
<h4>
@@ -49,11 +49,11 @@ defined( 'ABSPATH' ) || exit;
?>
</h4>
<span class="order-attribution-total-spend">
<?php echo wp_kses_post( wc_price( $total_spent ) ); ?>
<?php echo wp_kses_post( wc_price( $total_spend ) ); ?>
</span>
<h4><?php esc_html_e( 'Average order value', 'woocommerce' ); ?></h4>
<span class="order-attribution-average-order-value">
<?php echo wp_kses_post( wc_price( $average_spent ) ); ?>
<?php echo wp_kses_post( wc_price( $avg_order_value ) ); ?>
</span>
</div>