From e7ecffaec2d08f75152237558e70650a3debeb63 Mon Sep 17 00:00:00 2001 From: Pavlo Alokhin Date: Mon, 13 May 2024 20:29:57 +0300 Subject: [PATCH 1/4] Listing Package selection template with related blocks were implemented --- includes/configs/strings.php | 1 + .../class-listing-submit-package-page.php | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/includes/configs/strings.php b/includes/configs/strings.php index b40dd45..54b6914 100644 --- a/includes/configs/strings.php +++ b/includes/configs/strings.php @@ -19,6 +19,7 @@ 'listing_limit' => esc_html__( 'Listing Limit', 'hivepress-paid-listings' ), 'listing_limit_exceeded' => esc_html__( 'Limit Exceeded', 'hivepress-paid-listings' ), 'listing_has_been_featured' => esc_html__( 'Thank you! Your listing "%s" is featured and will appear at the top of the page.', 'hivepress-paid-listings' ), + 'listing_details_change_link' => esc_html__( 'Listing Details Change Link', 'hivepress-paid-listings' ), 'set_maximum_number_of_listing_submissions' => esc_html__( 'Set the maximum number of listing submissions.', 'hivepress-paid-listings' ), 'set_number_of_days_until_listing_not_featured' => esc_html__( 'Set the number of days after which a listing loses featured status.', 'hivepress-paid-listings' ), 'choose_product_purchased_to_feature_listing' => esc_html__( 'Choose a product that must be purchased in order to feature a listing.', 'hivepress-paid-listings' ), diff --git a/includes/templates/class-listing-submit-package-page.php b/includes/templates/class-listing-submit-package-page.php index 0d0d041..643b8b9 100644 --- a/includes/templates/class-listing-submit-package-page.php +++ b/includes/templates/class-listing-submit-package-page.php @@ -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' ), + ], + $meta + ); + + parent::init( $meta ); + } + /** * Class constructor. * @@ -39,6 +55,7 @@ public function __construct( $args = [] ) { 'listing_details_change_link' => [ 'type' => 'part', 'path' => 'listing/submit/listing-details-change-link', + '_label' => hivepress()->translator->get_string( 'listing_details_change_link' ), '_order' => 20, ], ], From 753cbfeee2c0130f01af702f01d22fb339bd7a93 Mon Sep 17 00:00:00 2001 From: Pavlo Alokhin Date: Tue, 14 May 2024 18:16:40 +0300 Subject: [PATCH 2/4] Listing Package selection template with related blocks were implemented --- includes/configs/strings.php | 1 - .../class-listing-renew-package-page.php | 16 ++++++++++++++++ .../class-listing-submit-package-page.php | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/includes/configs/strings.php b/includes/configs/strings.php index 54b6914..b40dd45 100644 --- a/includes/configs/strings.php +++ b/includes/configs/strings.php @@ -19,7 +19,6 @@ 'listing_limit' => esc_html__( 'Listing Limit', 'hivepress-paid-listings' ), 'listing_limit_exceeded' => esc_html__( 'Limit Exceeded', 'hivepress-paid-listings' ), 'listing_has_been_featured' => esc_html__( 'Thank you! Your listing "%s" is featured and will appear at the top of the page.', 'hivepress-paid-listings' ), - 'listing_details_change_link' => esc_html__( 'Listing Details Change Link', 'hivepress-paid-listings' ), 'set_maximum_number_of_listing_submissions' => esc_html__( 'Set the maximum number of listing submissions.', 'hivepress-paid-listings' ), 'set_number_of_days_until_listing_not_featured' => esc_html__( 'Set the number of days after which a listing loses featured status.', 'hivepress-paid-listings' ), 'choose_product_purchased_to_feature_listing' => esc_html__( 'Choose a product that must be purchased in order to feature a listing.', 'hivepress-paid-listings' ), diff --git a/includes/templates/class-listing-renew-package-page.php b/includes/templates/class-listing-renew-package-page.php index cbf0347..785b67c 100644 --- a/includes/templates/class-listing-renew-package-page.php +++ b/includes/templates/class-listing-renew-package-page.php @@ -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' ), + ], + $meta + ); + + parent::init( $meta ); + } + /** * Class constructor. * diff --git a/includes/templates/class-listing-submit-package-page.php b/includes/templates/class-listing-submit-package-page.php index 643b8b9..027a74a 100644 --- a/includes/templates/class-listing-submit-package-page.php +++ b/includes/templates/class-listing-submit-package-page.php @@ -55,7 +55,7 @@ public function __construct( $args = [] ) { 'listing_details_change_link' => [ 'type' => 'part', 'path' => 'listing/submit/listing-details-change-link', - '_label' => hivepress()->translator->get_string( 'listing_details_change_link' ), + '_label' => esc_html__( 'Listing Details Change Link', 'hivepress-paid-listings' ), '_order' => 20, ], ], From cbde7bde4b9677470fb0e94da407e5cc9fcd9997 Mon Sep 17 00:00:00 2001 From: Pavlo Alokhin Date: Thu, 16 May 2024 12:58:16 +0300 Subject: [PATCH 3/4] Added strings --- includes/templates/class-listing-renew-package-page.php | 2 +- includes/templates/class-listing-submit-package-page.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/templates/class-listing-renew-package-page.php b/includes/templates/class-listing-renew-package-page.php index 785b67c..ba88dfe 100644 --- a/includes/templates/class-listing-renew-package-page.php +++ b/includes/templates/class-listing-renew-package-page.php @@ -27,7 +27,7 @@ class Listing_Renew_Package_Page extends Listing_Renew_Page { public static function init( $meta = [] ) { $meta = hp\merge_arrays( [ - 'label' => hivepress()->translator->get_string( 'listing_packages' ), + 'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . esc_html__( 'Renew Listings', 'hivepress-paid-listings' ) . ')', ], $meta ); diff --git a/includes/templates/class-listing-submit-package-page.php b/includes/templates/class-listing-submit-package-page.php index 027a74a..8099e11 100644 --- a/includes/templates/class-listing-submit-package-page.php +++ b/includes/templates/class-listing-submit-package-page.php @@ -27,7 +27,7 @@ class Listing_Submit_Package_Page extends Listing_Submit_Page { public static function init( $meta = [] ) { $meta = hp\merge_arrays( [ - 'label' => hivepress()->translator->get_string( 'listing_packages' ), + 'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . esc_html__( 'Submit Package', 'hivepress-paid-listings' ) . ')', ], $meta ); @@ -55,7 +55,7 @@ public function __construct( $args = [] ) { 'listing_details_change_link' => [ 'type' => 'part', 'path' => 'listing/submit/listing-details-change-link', - '_label' => esc_html__( 'Listing Details Change Link', 'hivepress-paid-listings' ), + '_label' => esc_html__( 'Listing Details Change Link', 'hivepress-paid-listings' ), '_order' => 20, ], ], From 57f2f4566268cdb4d5c8ca2b199f7fbf5eb9ea82 Mon Sep 17 00:00:00 2001 From: HivePress <43493187+hivepress@users.noreply.github.com> Date: Mon, 20 May 2024 17:17:21 +0200 Subject: [PATCH 4/4] Minor fixes --- includes/templates/class-listing-renew-package-page.php | 2 +- includes/templates/class-listing-submit-package-page.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/templates/class-listing-renew-package-page.php b/includes/templates/class-listing-renew-package-page.php index ba88dfe..8a19db0 100644 --- a/includes/templates/class-listing-renew-package-page.php +++ b/includes/templates/class-listing-renew-package-page.php @@ -27,7 +27,7 @@ class Listing_Renew_Package_Page extends Listing_Renew_Page { public static function init( $meta = [] ) { $meta = hp\merge_arrays( [ - 'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . esc_html__( 'Renew Listings', 'hivepress-paid-listings' ) . ')', + 'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . hivepress()->translator->get_string( 'renew_listing' ) . ')', ], $meta ); diff --git a/includes/templates/class-listing-submit-package-page.php b/includes/templates/class-listing-submit-package-page.php index 8099e11..e1d4934 100644 --- a/includes/templates/class-listing-submit-package-page.php +++ b/includes/templates/class-listing-submit-package-page.php @@ -27,7 +27,7 @@ class Listing_Submit_Package_Page extends Listing_Submit_Page { public static function init( $meta = [] ) { $meta = hp\merge_arrays( [ - 'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . esc_html__( 'Submit Package', 'hivepress-paid-listings' ) . ')', + 'label' => hivepress()->translator->get_string( 'listing_packages' ) . ' (' . hivepress()->translator->get_string( 'submit_listing' ) . ')', ], $meta ); @@ -55,7 +55,7 @@ public function __construct( $args = [] ) { 'listing_details_change_link' => [ 'type' => 'part', 'path' => 'listing/submit/listing-details-change-link', - '_label' => esc_html__( 'Listing Details Change Link', 'hivepress-paid-listings' ), + '_label' => esc_html__( 'Return Link', 'hivepress-paid-listings' ), '_order' => 20, ], ],