From 88e752956f75de58dcef74923134ca472cfb422d Mon Sep 17 00:00:00 2001 From: Sapayth Hossain Date: Tue, 10 Sep 2024 09:29:20 +0600 Subject: [PATCH] translate some more text --- admin/html/form-settings-post.php | 6 +- includes/Admin/views/support.php | 115 +++++++++++++++++++++++++----- includes/Free/Form_Element.php | 2 +- 3 files changed, 103 insertions(+), 20 deletions(-) diff --git a/admin/html/form-settings-post.php b/admin/html/form-settings-post.php index dae0fd0a3..ac0b14f9e 100644 --- a/admin/html/form-settings-post.php +++ b/admin/html/form-settings-post.php @@ -101,8 +101,10 @@ 'selected' => $default_category, 'taxonomy' => $tax->name, ]; - $tax = ' ' . __( 'Default ', 'wp-user-frontend' ) . $post_type_selected . ' '. $tax->name .' - '; $categories = get_terms( $args ); foreach ( $categories as $category ) { diff --git a/includes/Admin/views/support.php b/includes/Admin/views/support.php index ecad4a062..66f2e34c4 100644 --- a/includes/Admin/views/support.php +++ b/includes/Admin/views/support.php @@ -539,18 +539,60 @@ class="form-control"> ); ?> +

+ ', + '' + ); + ?> +

-

When you are making a registration form, you get two shortcodes: - For embedding the registration form: this is something like [wpuf_profile type="registration" id="3573"]

- -

For profile edit page: this is something like [wpuf_profile type="profile" id="3573"]

+

+ ', + '' + ); + ?> +

-

You already know that how to make a registration form in WP User Frontend Pro and embed that into a page. The very same process is for creating the profile edit page.

+

+ +

-

How to get the shortcode

+

-

We assume that you already have created a registration form. If not you can use the default registration form, that was created automatically while installing the plugin. - So to get the shortcode, navigate to User FrontendRegistration Forms and you will be able to see the shortcodes on the right side of your screen.

+

+ ', + '', + '', + '' + ); + ?> +

@@ -582,7 +624,20 @@ class="form-control">

-

Short-code for creating the Subscription page – [wpuf_sub_pack].

+

+ ', + '' + ); + ?> +

@@ -596,7 +651,22 @@ class="form-control">

-

To show the subscription packs in a page, you can use the shortcode: [wpuf_sub_pack]. To show the user subscription info: [wpuf_sub_info]. The info will show the user about his pack’s remaining post count and expiration date of his pack.

+

+

+ ', + '', + '', + '' + ); + ?> +

@@ -609,15 +679,26 @@ class="form-control">

- -

To set content restriction for a certain form, navigate to Pages

+

+ ', + '' + ); + ?> +

    -
  1. Now, select the page that has the shortcode of the selected form.
  2. -
  3. Scroll down and you will find the WPUF Content Restriction settings.
  4. -
  5. You can set the form visible to three types of people: Everyone, Logged in users only or Subscription users only
  6. -
  7. You can also set subscription plans for the form. For this, check the box of relevant subscription pack.
  8. -
  9. Finally, update the page.
  10. +
  11. +
  12. WPUF Content Restriction settings.', 'wp-user-frontend' ); ?>
  13. +
  14. Everyone, Logged in users only or Subscription users only', 'wp-user-frontend' ); ?>
  15. +
  16. subscription plans for the form. For this, check the box of relevant subscription pack.', 'wp-user-frontend' ); ?>
  17. +
diff --git a/includes/Free/Form_Element.php b/includes/Free/Form_Element.php index 244baa0a9..12e47a0ed 100644 --- a/includes/Free/Form_Element.php +++ b/includes/Free/Form_Element.php @@ -133,7 +133,7 @@ public static function render_form_expiration_tab() {