??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/am1atec.co.uk/wp-content/plugins/sureforms/inc/blocks/payment-history/block.php
⬅ Kembali
<?php
/**
* Payment History Block.
*
* Server-side rendering for the Payment History Gutenberg block.
* Delegates to the Payment_History_Shortcode class for output.
*
* @package sureforms
* @since 2.8.0
*/
namespace SRFM\Inc\Blocks\Payment_History;
use SRFM\Inc\Blocks\Base;
use SRFM\Inc\Payments\Payment_History_Shortcode;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Payment History Block.
*
* @since 2.8.0
*/
class Block extends Base {
/**
* Render the block.
*
* @param array<mixed> $attributes Block attributes.
* @since 2.8.0
* @return string
*/
public function render( $attributes ) {
$shortcode_atts = [
'per_page' => isset( $attributes['perPage'] ) && is_numeric( $attributes['perPage'] ) ? strval( absint( $attributes['perPage'] ) ) : '10',
'show_subscription' => ! empty( $attributes['showSubscription'] ) ? 'true' : 'false',
];
$shortcode_instance = Payment_History_Shortcode::get_instance();
return $shortcode_instance->render( $shortcode_atts );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📋 block.json
json
750 B
2026-04-16 14:46
🐘 block.php
php
1 KB
2026-04-16 14:46