You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.0 KiB
PHTML
60 lines
2.0 KiB
PHTML
8 months ago
|
<?php
|
||
|
/**
|
||
|
* Single Payment page - Heading navigation.
|
||
|
*
|
||
|
* @since 1.8.2
|
||
|
*
|
||
|
* @var int $count Count of all payments.
|
||
|
* @var int $prev_count Count of previous payments.
|
||
|
* @var string $prev_url Previous payment URL.
|
||
|
* @var string $prev_class Previous payment class.
|
||
|
* @var string $next_url Next payment URL.
|
||
|
* @var string $next_class Next payment class.
|
||
|
* @var string $overview_url Payments Overview page URL.
|
||
|
*/
|
||
|
|
||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||
|
exit;
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
<a href="<?php echo esc_url( $overview_url ); ?>" class="page-title-action wpforms-btn wpforms-btn-orange" data-action="back">
|
||
|
<svg viewBox="0 0 16 14" class="page-title-action-icon">
|
||
|
<path d="M16 6v2H4l4 4-1 2-7-7 7-7 1 2-4 4h12Z"/>
|
||
|
</svg>
|
||
|
<span class="page-title-action-text"><?php esc_html_e( 'Back to All Payments', 'wpforms-lite' ); ?></span>
|
||
|
</a>
|
||
|
|
||
|
<div class="wpforms-admin-single-navigation">
|
||
|
<div class="wpforms-admin-single-navigation-text">
|
||
|
<?php
|
||
|
printf( /* translators: %1$d - current number of payment, %2$d - total number of payments. */
|
||
|
esc_html__( 'Payment %1$d of %2$d', 'wpforms-lite' ),
|
||
|
(int) $prev_count + 1,
|
||
|
(int) $count
|
||
|
);
|
||
|
?>
|
||
|
</div>
|
||
|
<div class="wpforms-admin-single-navigation-buttons">
|
||
|
<a
|
||
|
href="<?php echo esc_url( $prev_url ); ?>"
|
||
|
title="<?php esc_attr_e( 'Previous payment', 'wpforms-lite' ); ?>"
|
||
|
id="wpforms-admin-single-navigation-prev-link"
|
||
|
class="wpforms-btn-grey <?php echo sanitize_html_class( $prev_class ); ?>">
|
||
|
<span class="dashicons dashicons-arrow-left-alt2"></span>
|
||
|
</a>
|
||
|
<span
|
||
|
class="wpforms-admin-single-navigation-current"
|
||
|
title="<?php esc_attr_e( 'Current payment', 'wpforms-lite' ); ?>">
|
||
|
<?php echo (int) $prev_count + 1; ?>
|
||
|
</span>
|
||
|
<a
|
||
|
href="<?php echo esc_url( $next_url ); ?>"
|
||
|
title="<?php esc_attr_e( 'Next payment', 'wpforms-lite' ); ?>"
|
||
|
id="wpforms-admin-single-navigation-next-link"
|
||
|
class="wpforms-btn-grey <?php echo sanitize_html_class( $next_class ); ?>">
|
||
|
<span class="dashicons dashicons-arrow-right-alt2"></span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|