Skip to content

Commit

Permalink
Merge pull request #16 from hivepress/add-listing-package-selection-t…
Browse files Browse the repository at this point in the history
…emplate

Listing Package selection template with related blocks were implemented
  • Loading branch information
hivepress authored May 20, 2024
2 parents d8c39e4 + 57f2f45 commit 1bf0bbe
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions includes/templates/class-listing-renew-package-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@
*/
class Listing_Renew_Package_Page extends Listing_Renew_Page {

/**
* Class initializer.
*
* @param array $meta Class meta values.
*/
public static function init( $meta = [] ) {
$meta = hp\merge_arrays(
[
'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . hivepress()->translator->get_string( 'renew_listing' ) . ')',
],
$meta
);

parent::init( $meta );
}

/**
* Class constructor.
*
Expand Down
17 changes: 17 additions & 0 deletions includes/templates/class-listing-submit-package-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@
*/
class Listing_Submit_Package_Page extends Listing_Submit_Page {

/**
* Class initializer.
*
* @param array $meta Class meta values.
*/
public static function init( $meta = [] ) {
$meta = hp\merge_arrays(
[
'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . hivepress()->translator->get_string( 'submit_listing' ) . ')',
],
$meta
);

parent::init( $meta );
}

/**
* Class constructor.
*
Expand All @@ -39,6 +55,7 @@ public function __construct( $args = [] ) {
'listing_details_change_link' => [
'type' => 'part',
'path' => 'listing/submit/listing-details-change-link',
'_label' => esc_html__( 'Return Link', 'hivepress-paid-listings' ),
'_order' => 20,
],
],
Expand Down

0 comments on commit 1bf0bbe

Please sign in to comment.