| @@ -403,9 +403,17 @@ | ||
| 403 | 403 | class="fct-cart-total-wrapper" |
| 404 | 404 | role="region" |
| 405 | 405 | aria-label="<?php esc_attr_e('Cart Total', 'fluent-cart'); ?>" |
| 406 | 406 | > |
| 407 | - <span><?php echo esc_html__('Total', 'fluent-cart'); ?>:</span> | |
| 407 | + <span><?php | |
| 408 | + /** | |
| 409 | + * Filters the cart total label. Lets a caller relabel it without | |
| 410 | + * reimplementing this markup; the default renders exactly as before. | |
| 411 | + * | |
| 412 | + * @param string $label | |
| 413 | + */ | |
| 414 | + echo esc_html(apply_filters('fluent_cart/cart/total_label', __('Total', 'fluent-cart'))); | |
| 415 | + ?></span> | |
| 408 | 416 | <span |
| 409 | 417 | data-fluent-cart-cart-total-price |
| 410 | 418 | aria-live="polite" |
| 411 | 419 | aria-label="<?php echo esc_attr($aria_label); ?>" |
| @@ -448,13 +456,21 @@ | ||
| 448 | 456 | public function renderCheckoutButton() |
| 449 | 457 | { |
| 450 | 458 | ?> |
| 451 | 459 | |
| 452 | - <a class="checkout-button" | |
| 460 | + <a class="checkout-button fct-primary-btn" | |
| 453 | 461 | href="<?php echo esc_attr($this->storeSettings->getCheckoutPage()); ?>" |
| 454 | 462 | role="button" |
| 455 | 463 | aria-label="<?php esc_attr_e('Go to checkout page', 'fluent-cart'); ?>"> |
| 456 | - <?php esc_html_e('Go to Checkout', 'fluent-cart'); ?> | |
| 464 | + <?php | |
| 465 | + /** | |
| 466 | + * Filters the cart checkout button text. Lets a caller relabel it | |
| 467 | + * without reimplementing this markup; the default is unchanged. | |
| 468 | + * | |
| 469 | + * @param string $text | |
| 470 | + */ | |
| 471 | + echo esc_html(apply_filters('fluent_cart/cart/checkout_button_text', __('Go to Checkout', 'fluent-cart'))); | |
| 472 | + ?> | |
| 457 | 473 | </a> |
| 458 | 474 | |
| 459 | 475 | <?php |
| 460 | 476 | |