class-listing-renew-complete-page.php
<?php
namespace HivePress\Templates;
use HivePress\Helpers as hp;
defined( 'ABSPATH' ) || exit;
class Listing_Renew_Complete_Page extends Listing_Renew_Page {
public static function init( $meta = [] ) {
$meta = hp\merge_arrays(
[
'label' => hivepress()->translator->get_string( 'renew_listing' ) . ' (' . hivepress()->translator->get_string( 'completed' ) . ')',
],
$meta
);
parent::init( $meta );
}
public function __construct( $args = [] ) {
$args = hp\merge_trees(
[
'blocks' => [
'page_content' => [
'blocks' => [
'listing_complete_message' => [
'type' => 'part',
'path' => 'listing/renew/listing-complete-message',
'_label' => hivepress()->translator->get_string( 'message' ),
'_order' => 10,
],
],
],
],
],
$args
);
parent::__construct( $args );
}
}