Changeset 2068989
- Timestamp:
- 04/15/2019 06:03:58 PM (7 years ago)
- Location:
- wp-user-frontend
- Files:
-
- 12 edited
- 89 copied
-
tags/3.1.3 (copied) (copied from wp-user-frontend/trunk)
-
tags/3.1.3/admin/class-admin-settings.php (copied) (copied from wp-user-frontend/trunk/admin/class-admin-settings.php)
-
tags/3.1.3/admin/class-admin-subscription.php (copied) (copied from wp-user-frontend/trunk/admin/class-admin-subscription.php)
-
tags/3.1.3/admin/form-builder/class-wpuf-admin-form-builder.php (copied) (copied from wp-user-frontend/trunk/admin/form-builder/class-wpuf-admin-form-builder.php)
-
tags/3.1.3/admin/form-builder/class-wpuf-form-builder-field-settings.php (copied) (copied from wp-user-frontend/trunk/admin/form-builder/class-wpuf-form-builder-field-settings.php)
-
tags/3.1.3/admin/form.php (copied) (copied from wp-user-frontend/trunk/admin/form.php)
-
tags/3.1.3/admin/html/form-settings-post-edit.php (copied) (copied from wp-user-frontend/trunk/admin/html/form-settings-post-edit.php)
-
tags/3.1.3/admin/html/whats-new.php (copied) (copied from wp-user-frontend/trunk/admin/html/whats-new.php)
-
tags/3.1.3/admin/posting.php (copied) (copied from wp-user-frontend/trunk/admin/posting.php)
-
tags/3.1.3/admin/premium.php (copied) (copied from wp-user-frontend/trunk/admin/premium.php)
-
tags/3.1.3/admin/promotion.php (copied) (copied from wp-user-frontend/trunk/admin/promotion.php)
-
tags/3.1.3/admin/settings-options.php (copied) (copied from wp-user-frontend/trunk/admin/settings-options.php)
-
tags/3.1.3/assets/css/admin.css (copied) (copied from wp-user-frontend/trunk/assets/css/admin.css)
-
tags/3.1.3/assets/css/admin/gutenblock-editor.css (copied) (copied from wp-user-frontend/trunk/assets/css/admin/gutenblock-editor.css)
-
tags/3.1.3/assets/css/admin/gutenblock.css (copied) (copied from wp-user-frontend/trunk/assets/css/admin/gutenblock.css)
-
tags/3.1.3/assets/css/frontend-forms.css (copied) (copied from wp-user-frontend/trunk/assets/css/frontend-forms.css)
-
tags/3.1.3/assets/css/wpuf-form-builder.css (copied) (copied from wp-user-frontend/trunk/assets/css/wpuf-form-builder.css)
-
tags/3.1.3/assets/images/promotional-offer (copied) (copied from wp-user-frontend/trunk/assets/images/promotional-offer)
-
tags/3.1.3/assets/images/whats-new/column-field.png (copied) (copied from wp-user-frontend/trunk/assets/images/whats-new/column-field.png)
-
tags/3.1.3/assets/js-templates/form-components.php (copied) (copied from wp-user-frontend/trunk/assets/js-templates/form-components.php)
-
tags/3.1.3/assets/js/admin/blockFrameSetup.js (copied) (copied from wp-user-frontend/trunk/assets/js/admin/blockFrameSetup.js)
-
tags/3.1.3/assets/js/admin/gutenblock.js (copied) (copied from wp-user-frontend/trunk/assets/js/admin/gutenblock.js)
-
tags/3.1.3/assets/js/frontend-form.js (copied) (copied from wp-user-frontend/trunk/assets/js/frontend-form.js)
-
tags/3.1.3/assets/js/frontend-form.min.js (copied) (copied from wp-user-frontend/trunk/assets/js/frontend-form.min.js)
-
tags/3.1.3/assets/js/upload.js (copied) (copied from wp-user-frontend/trunk/assets/js/upload.js)
-
tags/3.1.3/assets/js/upload.min.js (copied) (copied from wp-user-frontend/trunk/assets/js/upload.min.js)
-
tags/3.1.3/assets/js/wpuf-admin.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-admin.js)
-
tags/3.1.3/assets/js/wpuf-form-builder-components.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-form-builder-components.js) (1 diff)
-
tags/3.1.3/assets/js/wpuf-form-builder-mixins.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-form-builder-mixins.js)
-
tags/3.1.3/assets/js/wpuf-form-builder-wpuf-forms.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-form-builder-wpuf-forms.js)
-
tags/3.1.3/assets/js/wpuf-form-builder.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-form-builder.js)
-
tags/3.1.3/assets/less/admin.less (copied) (copied from wp-user-frontend/trunk/assets/less/admin.less)
-
tags/3.1.3/assets/less/frontend-forms.less (copied) (copied from wp-user-frontend/trunk/assets/less/frontend-forms.less)
-
tags/3.1.3/class/admin-asset-loader.php (copied) (copied from wp-user-frontend/trunk/class/admin-asset-loader.php)
-
tags/3.1.3/class/asset-loader.php (copied) (copied from wp-user-frontend/trunk/class/asset-loader.php)
-
tags/3.1.3/class/frontend-account.php (copied) (copied from wp-user-frontend/trunk/class/frontend-account.php)
-
tags/3.1.3/class/frontend-dashboard.php (copied) (copied from wp-user-frontend/trunk/class/frontend-dashboard.php)
-
tags/3.1.3/class/frontend-form-post.php (copied) (copied from wp-user-frontend/trunk/class/frontend-form-post.php)
-
tags/3.1.3/class/payment.php (modified) (1 diff)
-
tags/3.1.3/class/post-form-template.php (copied) (copied from wp-user-frontend/trunk/class/post-form-template.php)
-
tags/3.1.3/class/post-form-templates/post.php (copied) (copied from wp-user-frontend/trunk/class/post-form-templates/post.php)
-
tags/3.1.3/class/render-form.php (copied) (copied from wp-user-frontend/trunk/class/render-form.php)
-
tags/3.1.3/class/subscription.php (copied) (copied from wp-user-frontend/trunk/class/subscription.php) (3 diffs)
-
tags/3.1.3/class/upload.php (copied) (copied from wp-user-frontend/trunk/class/upload.php)
-
tags/3.1.3/includes/class-dokan-integration.php (copied) (copied from wp-user-frontend/trunk/includes/class-dokan-integration.php)
-
tags/3.1.3/includes/class-field-manager.php (copied) (copied from wp-user-frontend/trunk/includes/class-field-manager.php)
-
tags/3.1.3/includes/class-form.php (copied) (copied from wp-user-frontend/trunk/includes/class-form.php)
-
tags/3.1.3/includes/class-frontend-form-post.php (copied) (copied from wp-user-frontend/trunk/includes/class-frontend-form-post.php)
-
tags/3.1.3/includes/class-frontend-render-form.php (copied) (copied from wp-user-frontend/trunk/includes/class-frontend-render-form.php)
-
tags/3.1.3/includes/class-gutenblock.php (copied) (copied from wp-user-frontend/trunk/includes/class-gutenblock.php)
-
tags/3.1.3/includes/class-pro-upgrades.php (copied) (copied from wp-user-frontend/trunk/includes/class-pro-upgrades.php)
-
tags/3.1.3/includes/class-upgrades.php (copied) (copied from wp-user-frontend/trunk/includes/class-upgrades.php)
-
tags/3.1.3/includes/class-user.php (copied) (copied from wp-user-frontend/trunk/includes/class-user.php)
-
tags/3.1.3/includes/class-wc-vendors-integration.php (copied) (copied from wp-user-frontend/trunk/includes/class-wc-vendors-integration.php)
-
tags/3.1.3/includes/class-wcmp-integration.php (copied) (copied from wp-user-frontend/trunk/includes/class-wcmp-integration.php)
-
tags/3.1.3/includes/countries-formated.php (modified) (1 diff)
-
tags/3.1.3/includes/fields (copied) (copied from wp-user-frontend/trunk/includes/fields)
-
tags/3.1.3/includes/fields/class-abstract-fields.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-abstract-fields.php)
-
tags/3.1.3/includes/fields/class-field-checkbox.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-checkbox.php) (2 diffs)
-
tags/3.1.3/includes/fields/class-field-column.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-column.php)
-
tags/3.1.3/includes/fields/class-field-featured-image.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-featured-image.php)
-
tags/3.1.3/includes/fields/class-field-image.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-image.php)
-
tags/3.1.3/includes/fields/class-field-post-content.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-post-content.php)
-
tags/3.1.3/includes/fields/class-field-post-excerpt.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-post-excerpt.php)
-
tags/3.1.3/includes/fields/class-field-post-tags.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-post-tags.php)
-
tags/3.1.3/includes/fields/class-field-post-taxonomy.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-post-taxonomy.php)
-
tags/3.1.3/includes/fields/class-field-post-title.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-post-title.php)
-
tags/3.1.3/includes/fields/class-field-radio.php (copied) (copied from wp-user-frontend/trunk/includes/fields/class-field-radio.php)
-
tags/3.1.3/includes/fields/field-trait.php (copied) (copied from wp-user-frontend/trunk/includes/fields/field-trait.php)
-
tags/3.1.3/includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php (copied) (copied from wp-user-frontend/trunk/includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php)
-
tags/3.1.3/includes/free/admin/form-builder/class-wpuf-form-builder-free.php (copied) (copied from wp-user-frontend/trunk/includes/free/admin/form-builder/class-wpuf-form-builder-free.php)
-
tags/3.1.3/includes/free/class-login.php (copied) (copied from wp-user-frontend/trunk/includes/free/class-login.php)
-
tags/3.1.3/includes/free/class-registration.php (copied) (copied from wp-user-frontend/trunk/includes/free/class-registration.php)
-
tags/3.1.3/includes/free/edit-profile.php (copied) (copied from wp-user-frontend/trunk/includes/free/edit-profile.php)
-
tags/3.1.3/includes/free/loader.php (copied) (copied from wp-user-frontend/trunk/includes/free/loader.php)
-
tags/3.1.3/includes/free/post-form-templates/the_events_calendar.php (copied) (copied from wp-user-frontend/trunk/includes/free/post-form-templates/the_events_calendar.php)
-
tags/3.1.3/includes/free/post-form-templates/woocommerce.php (copied) (copied from wp-user-frontend/trunk/includes/free/post-form-templates/woocommerce.php)
-
tags/3.1.3/includes/upgrades/upgrade-2.9.2.php (copied) (copied from wp-user-frontend/trunk/includes/upgrades/upgrade-2.9.2.php)
-
tags/3.1.3/languages/wp-user-frontend.pot (copied) (copied from wp-user-frontend/trunk/languages/wp-user-frontend.pot) (15 diffs)
-
tags/3.1.3/lib/recaptchalib_noCaptcha.php (copied) (copied from wp-user-frontend/trunk/lib/recaptchalib_noCaptcha.php)
-
tags/3.1.3/readme.txt (copied) (copied from wp-user-frontend/trunk/readme.txt) (2 diffs)
-
tags/3.1.3/templates/dashboard.php (copied) (copied from wp-user-frontend/trunk/templates/dashboard.php) (1 diff)
-
tags/3.1.3/templates/dashboard/dashboard.php (copied) (copied from wp-user-frontend/trunk/templates/dashboard/dashboard.php)
-
tags/3.1.3/templates/dashboard/posts.php (copied) (copied from wp-user-frontend/trunk/templates/dashboard/posts.php) (1 diff)
-
tags/3.1.3/templates/registration-form.php (copied) (copied from wp-user-frontend/trunk/templates/registration-form.php)
-
tags/3.1.3/templates/submit-post.php (copied) (copied from wp-user-frontend/trunk/templates/submit-post.php)
-
tags/3.1.3/templates/subscriptions/pack-details.php (copied) (copied from wp-user-frontend/trunk/templates/subscriptions/pack-details.php)
-
tags/3.1.3/templates/wc-marketplace (copied) (copied from wp-user-frontend/trunk/templates/wc-marketplace)
-
tags/3.1.3/templates/wc-vendors (copied) (copied from wp-user-frontend/trunk/templates/wc-vendors)
-
tags/3.1.3/wpuf-functions.php (copied) (copied from wp-user-frontend/trunk/wpuf-functions.php)
-
tags/3.1.3/wpuf.php (copied) (copied from wp-user-frontend/trunk/wpuf.php) (2 diffs)
-
trunk/assets/js/wpuf-form-builder-components.js (modified) (1 diff)
-
trunk/class/payment.php (modified) (1 diff)
-
trunk/class/subscription.php (modified) (3 diffs)
-
trunk/includes/countries-formated.php (modified) (1 diff)
-
trunk/includes/fields/class-field-checkbox.php (modified) (2 diffs)
-
trunk/languages/wp-user-frontend.pot (modified) (15 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/dashboard.php (modified) (1 diff)
-
trunk/templates/dashboard/posts.php (modified) (1 diff)
-
trunk/wpuf.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-user-frontend/tags/3.1.3/assets/js/wpuf-form-builder-components.js
r2060958 r2068989 781 781 * Field template: Column Field 782 782 */ 783 const mixins = [ 784 wpuf_mixins.form_field_mixin 785 ]; 786 787 if (window.wpuf_forms_mixin_builder_stage) { 788 mixins.push(window.wpuf_forms_mixin_builder_stage); 789 } 790 791 if (window.weforms_mixin_builder_stage) { 792 mixins.push(window.weforms_mixin_builder_stage); 793 } 794 783 795 Vue.component('form-column_field', { 784 796 template: '#tmpl-wpuf-form-column_field', 785 797 786 mixins: [ 787 wpuf_mixins.form_field_mixin, 788 window.wpuf_forms_mixin_builder_stage 789 ], 798 mixins: mixins, 790 799 791 800 data() { -
wp-user-frontend/tags/3.1.3/class/payment.php
r1910827 r2068989 216 216 217 217 $current_pack = $current_user->subscription()->current_pack(); 218 if ( $force_pack && is_wp_error( $current_pack ) && $fallback_enabled ) {218 if ( $force_pack && !is_wp_error( $current_pack ) && $fallback_enabled ) { 219 219 $post_cost = $fallback_cost; 220 220 $billing_amount = apply_filters( 'wpuf_payment_amount', $fallback_cost ); -
wp-user-frontend/tags/3.1.3/class/subscription.php
r1967652 r2068989 451 451 $has_post = $current_user->subscription()->has_post_count( $form_settings['post_type'] ); 452 452 453 if ( $payment_options && $force_pack && is_wp_error( $current_pack ) && $fallback_cost && !$has_post ) { 453 454 if ( $payment_options && $force_pack && !is_wp_error( $current_pack ) && $fallback_cost && !$has_post ) { 454 455 $postdata['post_status'] = 'pending'; 455 456 } … … 496 497 $old_status = $post->post_status; 497 498 wp_transition_post_status( $post_status, $old_status, $post ); 498 // wp_update_post( array( 'ID' => $post_id , 'post_status' => $post_status) ); 499 500 // decrease the post count, if not umlimited 499 500 // decrease the post count, if not unlimited 501 501 $wpuf_post_status = get_post_meta( $post_id, 'wpuf_post_status', true ); 502 502 … … 507 507 } 508 508 } 509 509 510 //meta added to make post have flag if post is published 510 511 update_post_meta( $post_id, 'wpuf_post_status', 'published' ); 511 512 512 513 513 } elseif ( !$force_pack && ( $pay_per_post || ( $fallback_cost && !$has_post ) )) {514 } elseif ( $force_pack && $fallback_cost && !$has_post ) { 514 515 //there is some error and it needs payment 515 516 //add a uniqid to track the post easily -
wp-user-frontend/tags/3.1.3/includes/countries-formated.php
r1833388 r2068989 75 75 ), 76 76 array( 77 'name' => 'Bangladesh',77 'name' => __('Bangladesh', 'wp-user-frontend'), 78 78 'code' => 'BD', 79 79 ), -
wp-user-frontend/tags/3.1.3/includes/fields/class-field-checkbox.php
r2060958 r2068989 34 34 $selected = $value; 35 35 } else { 36 $selected = explode( "|", $value ); 36 $selected = array(); 37 $selected_options = explode( "|", $value ); 38 39 foreach ($selected_options as $option) { 40 array_push($selected, trim($option)); 41 } 37 42 } 38 43 } else { … … 46 51 ?> 47 52 48 <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type=" checkbox">53 <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type="radio"> 49 54 50 55 <?php -
wp-user-frontend/tags/3.1.3/languages/wp-user-frontend.pot
r2060958 r2068989 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP User Frontend 3.1. 2\n"5 "Project-Id-Version: WP User Frontend 3.1.3\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 2019-04- 01 11:49:50+00:00\n"7 "POT-Creation-Date: 2019-04-15 17:54:24+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 143 143 #: admin/class-admin-subscription.php:216 144 144 #: admin/class-admin-subscription.php:570 class/frontend-account.php:244 145 #: class/subscription.php:86 6includes/class-user-subscription.php:307145 #: class/subscription.php:867 includes/class-user-subscription.php:307 146 146 #: templates/subscriptions/pack-details.php:25 147 147 msgid "Free" … … 157 157 #: includes/fields/class-abstract-fields.php:358 158 158 #: includes/fields/class-abstract-fields.php:426 159 #: includes/fields/class-field-checkbox.php:9 0159 #: includes/fields/class-field-checkbox.php:95 160 160 #: includes/fields/class-field-radio.php:89 includes/free/form-element.php:477 161 161 #: wpuf.php:706 … … 172 172 #: includes/fields/class-abstract-fields.php:359 173 173 #: includes/fields/class-abstract-fields.php:427 174 #: includes/fields/class-field-checkbox.php:9 1174 #: includes/fields/class-field-checkbox.php:96 175 175 #: includes/fields/class-field-radio.php:90 includes/free/form-element.php:478 176 176 #: wpuf.php:707 … … 305 305 #: admin/class-admin-subscription.php:754 306 306 #: admin/form-builder/class-wpuf-admin-form-builder.php:265 307 #: class/payment.php:199 class/subscription.php:7 79307 #: class/payment.php:199 class/subscription.php:780 308 308 #: includes/class-list-table-subscribers.php:128 309 309 #: lib/class-wedevs-insights.php:667 templates/dashboard/subscription.php:61 … … 582 582 583 583 #: admin/form-builder/class-wpuf-admin-form-builder.php:268 584 #: includes/fields/class-field-checkbox.php:1 19584 #: includes/fields/class-field-checkbox.php:124 585 585 #: includes/fields/class-field-dropdown.php:101 586 586 #: includes/fields/class-field-multidropdown.php:93 … … 3844 3844 msgstr "" 3845 3845 3846 #: class/subscription.php:74 73846 #: class/subscription.php:748 3847 3847 msgid "Payment is complete" 3848 3848 msgstr "" 3849 3849 3850 #: class/subscription.php:74 73850 #: class/subscription.php:748 3851 3851 msgid "Congratulations, your payment has been completed!" 3852 3852 msgstr "" 3853 3853 3854 #: class/subscription.php:75 1 class/subscription.php:7553854 #: class/subscription.php:752 class/subscription.php:756 3855 3855 msgid "Please buy a subscription pack to post" 3856 3856 msgstr "" 3857 3857 3858 #: class/subscription.php:7 693858 #: class/subscription.php:770 3859 3859 msgid "<p><i>You have a subscription pack activated. </i></p>" 3860 3860 msgstr "" 3861 3861 3862 #: class/subscription.php:77 03862 #: class/subscription.php:771 3863 3863 msgid "<p><i>Pack name: %s </i></p>" 3864 3864 msgstr "" 3865 3865 3866 #: class/subscription.php:77 23866 #: class/subscription.php:773 3867 3867 msgid "<p><i>To cancel the pack, press the following cancel button</i></p>" 3868 3868 msgstr "" 3869 3869 3870 #: class/subscription.php:81 63870 #: class/subscription.php:817 3871 3871 msgid "Day" 3872 3872 msgid_plural "Days" … … 3874 3874 msgstr[1] "" 3875 3875 3876 #: class/subscription.php:81 73876 #: class/subscription.php:818 3877 3877 msgid "Week" 3878 3878 msgid_plural "Weeks" … … 3880 3880 msgstr[1] "" 3881 3881 3882 #: class/subscription.php:81 83882 #: class/subscription.php:819 3883 3883 msgid "Month" 3884 3884 msgid_plural "Months" … … 3886 3886 msgstr[1] "" 3887 3887 3888 #: class/subscription.php:8 193888 #: class/subscription.php:820 3889 3889 msgid "Year" 3890 3890 msgid_plural "Years" … … 3892 3892 msgstr[1] "" 3893 3893 3894 #: class/subscription.php:84 13894 #: class/subscription.php:842 3895 3895 msgid "One time payment" 3896 3896 msgstr "" 3897 3897 3898 #: class/subscription.php:84 83898 #: class/subscription.php:849 3899 3899 msgid "Every" 3900 3900 msgstr "" 3901 3901 3902 #: class/subscription.php:8 493902 #: class/subscription.php:850 3903 3903 msgid "for" 3904 3904 msgstr "" 3905 3905 3906 #: class/subscription.php:8 493906 #: class/subscription.php:850 3907 3907 msgid "installments" 3908 3908 msgstr "" 3909 3909 3910 #: class/subscription.php:85 53910 #: class/subscription.php:856 3911 3911 msgid "Trial available for first %s %s" 3912 3912 msgstr "" 3913 3913 3914 #: class/subscription.php:8 593914 #: class/subscription.php:860 3915 3915 msgid "Buy Now" 3916 3916 msgstr "" 3917 3917 3918 #: class/subscription.php:86 33918 #: class/subscription.php:864 3919 3919 msgid "Sign Up" 3920 3920 msgstr "" 3921 3921 3922 #: class/subscription.php:92 63922 #: class/subscription.php:927 3923 3923 msgid "There is a <strong>%s</strong> charge to add a new post." 3924 3924 msgstr "" 3925 3925 3926 #: class/subscription.php:94 33926 #: class/subscription.php:944 3927 3927 msgid "" 3928 3928 "Your Subscription pack exhausted. There is a <strong>%s</strong> charge to " … … 3930 3930 msgstr "" 3931 3931 3932 #: class/subscription.php:98 83932 #: class/subscription.php:989 3933 3933 msgid "You must <a href=\"%s\">purchase a pack</a> before posting" 3934 3934 msgstr "" … … 4721 4721 msgstr "" 4722 4722 4723 #: includes/countries-formated.php:77 4724 msgid "Bangladesh" 4725 msgstr "" 4726 4723 4727 #: includes/fields/class-abstract-fields.php:267 4724 4728 msgid "" … … 4784 4788 4785 4789 #: includes/fields/class-abstract-fields.php:423 4786 #: includes/fields/class-field-checkbox.php: 874790 #: includes/fields/class-field-checkbox.php:92 4787 4791 #: includes/fields/class-field-radio.php:86 4788 4792 msgid "Show in inline list" … … 4790 4794 4791 4795 #: includes/fields/class-abstract-fields.php:433 4792 #: includes/fields/class-field-checkbox.php: 974796 #: includes/fields/class-field-checkbox.php:102 4793 4797 #: includes/fields/class-field-radio.php:96 4794 4798 msgid "Show this option in an inline list" -
wp-user-frontend/tags/3.1.3/readme.txt
r2060958 r2068989 6 6 Tested up to: 5.1.1 7 7 Requires PHP: 5.4 8 Stable tag: 3.1. 28 Stable tag: 3.1.3 9 9 License: GPLv2 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 257 257 258 258 == Changelog == 259 260 = v3.1.3 (15 April, 2019) = 261 262 * **Fix:** Required option of checkbox field was not validating on the frontend. 263 * **Fix:** Select mulitple options in checkbox field doesn't save the data. 264 * **Fix:** Fallback pay per post was not respecting the payment procedure & fallback cost was not correct on the payment page. 259 265 260 266 = v3.1.2 (01 April, 2019) = -
wp-user-frontend/tags/3.1.3/templates/dashboard.php
r1967652 r2068989 244 244 } 245 245 246 if ( $post->post_status =='draft'&& ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {246 if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) { 247 247 $show_edit = false; 248 248 } -
wp-user-frontend/tags/3.1.3/templates/dashboard/posts.php
r1925768 r2068989 153 153 } 154 154 155 if ( $post->post_status =='draft'&& ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {155 if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) { 156 156 $show_edit = false; 157 157 } -
wp-user-frontend/tags/3.1.3/wpuf.php
r2060958 r2068989 5 5 Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more... 6 6 Author: Tareq Hasan 7 Version: 3.1. 27 Version: 3.1.3 8 8 Author URI: https://tareq.co 9 9 License: GPL2 or later … … 13 13 */ 14 14 15 define( 'WPUF_VERSION', '3.1. 2' );15 define( 'WPUF_VERSION', '3.1.3' ); 16 16 define( 'WPUF_FILE', __FILE__ ); 17 17 define( 'WPUF_ROOT', dirname( __FILE__ ) ); -
wp-user-frontend/trunk/assets/js/wpuf-form-builder-components.js
r2060958 r2068989 781 781 * Field template: Column Field 782 782 */ 783 const mixins = [ 784 wpuf_mixins.form_field_mixin 785 ]; 786 787 if (window.wpuf_forms_mixin_builder_stage) { 788 mixins.push(window.wpuf_forms_mixin_builder_stage); 789 } 790 791 if (window.weforms_mixin_builder_stage) { 792 mixins.push(window.weforms_mixin_builder_stage); 793 } 794 783 795 Vue.component('form-column_field', { 784 796 template: '#tmpl-wpuf-form-column_field', 785 797 786 mixins: [ 787 wpuf_mixins.form_field_mixin, 788 window.wpuf_forms_mixin_builder_stage 789 ], 798 mixins: mixins, 790 799 791 800 data() { -
wp-user-frontend/trunk/class/payment.php
r1910827 r2068989 216 216 217 217 $current_pack = $current_user->subscription()->current_pack(); 218 if ( $force_pack && is_wp_error( $current_pack ) && $fallback_enabled ) {218 if ( $force_pack && !is_wp_error( $current_pack ) && $fallback_enabled ) { 219 219 $post_cost = $fallback_cost; 220 220 $billing_amount = apply_filters( 'wpuf_payment_amount', $fallback_cost ); -
wp-user-frontend/trunk/class/subscription.php
r1967652 r2068989 451 451 $has_post = $current_user->subscription()->has_post_count( $form_settings['post_type'] ); 452 452 453 if ( $payment_options && $force_pack && is_wp_error( $current_pack ) && $fallback_cost && !$has_post ) { 453 454 if ( $payment_options && $force_pack && !is_wp_error( $current_pack ) && $fallback_cost && !$has_post ) { 454 455 $postdata['post_status'] = 'pending'; 455 456 } … … 496 497 $old_status = $post->post_status; 497 498 wp_transition_post_status( $post_status, $old_status, $post ); 498 // wp_update_post( array( 'ID' => $post_id , 'post_status' => $post_status) ); 499 500 // decrease the post count, if not umlimited 499 500 // decrease the post count, if not unlimited 501 501 $wpuf_post_status = get_post_meta( $post_id, 'wpuf_post_status', true ); 502 502 … … 507 507 } 508 508 } 509 509 510 //meta added to make post have flag if post is published 510 511 update_post_meta( $post_id, 'wpuf_post_status', 'published' ); 511 512 512 513 513 } elseif ( !$force_pack && ( $pay_per_post || ( $fallback_cost && !$has_post ) )) {514 } elseif ( $force_pack && $fallback_cost && !$has_post ) { 514 515 //there is some error and it needs payment 515 516 //add a uniqid to track the post easily -
wp-user-frontend/trunk/includes/countries-formated.php
r1833388 r2068989 75 75 ), 76 76 array( 77 'name' => 'Bangladesh',77 'name' => __('Bangladesh', 'wp-user-frontend'), 78 78 'code' => 'BD', 79 79 ), -
wp-user-frontend/trunk/includes/fields/class-field-checkbox.php
r2060958 r2068989 34 34 $selected = $value; 35 35 } else { 36 $selected = explode( "|", $value ); 36 $selected = array(); 37 $selected_options = explode( "|", $value ); 38 39 foreach ($selected_options as $option) { 40 array_push($selected, trim($option)); 41 } 37 42 } 38 43 } else { … … 46 51 ?> 47 52 48 <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type=" checkbox">53 <div class="wpuf-fields" data-required="<?php echo $field_settings['required'] ?>" data-type="radio"> 49 54 50 55 <?php -
wp-user-frontend/trunk/languages/wp-user-frontend.pot
r2060958 r2068989 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP User Frontend 3.1. 2\n"5 "Project-Id-Version: WP User Frontend 3.1.3\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 2019-04- 01 11:49:50+00:00\n"7 "POT-Creation-Date: 2019-04-15 17:54:24+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 143 143 #: admin/class-admin-subscription.php:216 144 144 #: admin/class-admin-subscription.php:570 class/frontend-account.php:244 145 #: class/subscription.php:86 6includes/class-user-subscription.php:307145 #: class/subscription.php:867 includes/class-user-subscription.php:307 146 146 #: templates/subscriptions/pack-details.php:25 147 147 msgid "Free" … … 157 157 #: includes/fields/class-abstract-fields.php:358 158 158 #: includes/fields/class-abstract-fields.php:426 159 #: includes/fields/class-field-checkbox.php:9 0159 #: includes/fields/class-field-checkbox.php:95 160 160 #: includes/fields/class-field-radio.php:89 includes/free/form-element.php:477 161 161 #: wpuf.php:706 … … 172 172 #: includes/fields/class-abstract-fields.php:359 173 173 #: includes/fields/class-abstract-fields.php:427 174 #: includes/fields/class-field-checkbox.php:9 1174 #: includes/fields/class-field-checkbox.php:96 175 175 #: includes/fields/class-field-radio.php:90 includes/free/form-element.php:478 176 176 #: wpuf.php:707 … … 305 305 #: admin/class-admin-subscription.php:754 306 306 #: admin/form-builder/class-wpuf-admin-form-builder.php:265 307 #: class/payment.php:199 class/subscription.php:7 79307 #: class/payment.php:199 class/subscription.php:780 308 308 #: includes/class-list-table-subscribers.php:128 309 309 #: lib/class-wedevs-insights.php:667 templates/dashboard/subscription.php:61 … … 582 582 583 583 #: admin/form-builder/class-wpuf-admin-form-builder.php:268 584 #: includes/fields/class-field-checkbox.php:1 19584 #: includes/fields/class-field-checkbox.php:124 585 585 #: includes/fields/class-field-dropdown.php:101 586 586 #: includes/fields/class-field-multidropdown.php:93 … … 3844 3844 msgstr "" 3845 3845 3846 #: class/subscription.php:74 73846 #: class/subscription.php:748 3847 3847 msgid "Payment is complete" 3848 3848 msgstr "" 3849 3849 3850 #: class/subscription.php:74 73850 #: class/subscription.php:748 3851 3851 msgid "Congratulations, your payment has been completed!" 3852 3852 msgstr "" 3853 3853 3854 #: class/subscription.php:75 1 class/subscription.php:7553854 #: class/subscription.php:752 class/subscription.php:756 3855 3855 msgid "Please buy a subscription pack to post" 3856 3856 msgstr "" 3857 3857 3858 #: class/subscription.php:7 693858 #: class/subscription.php:770 3859 3859 msgid "<p><i>You have a subscription pack activated. </i></p>" 3860 3860 msgstr "" 3861 3861 3862 #: class/subscription.php:77 03862 #: class/subscription.php:771 3863 3863 msgid "<p><i>Pack name: %s </i></p>" 3864 3864 msgstr "" 3865 3865 3866 #: class/subscription.php:77 23866 #: class/subscription.php:773 3867 3867 msgid "<p><i>To cancel the pack, press the following cancel button</i></p>" 3868 3868 msgstr "" 3869 3869 3870 #: class/subscription.php:81 63870 #: class/subscription.php:817 3871 3871 msgid "Day" 3872 3872 msgid_plural "Days" … … 3874 3874 msgstr[1] "" 3875 3875 3876 #: class/subscription.php:81 73876 #: class/subscription.php:818 3877 3877 msgid "Week" 3878 3878 msgid_plural "Weeks" … … 3880 3880 msgstr[1] "" 3881 3881 3882 #: class/subscription.php:81 83882 #: class/subscription.php:819 3883 3883 msgid "Month" 3884 3884 msgid_plural "Months" … … 3886 3886 msgstr[1] "" 3887 3887 3888 #: class/subscription.php:8 193888 #: class/subscription.php:820 3889 3889 msgid "Year" 3890 3890 msgid_plural "Years" … … 3892 3892 msgstr[1] "" 3893 3893 3894 #: class/subscription.php:84 13894 #: class/subscription.php:842 3895 3895 msgid "One time payment" 3896 3896 msgstr "" 3897 3897 3898 #: class/subscription.php:84 83898 #: class/subscription.php:849 3899 3899 msgid "Every" 3900 3900 msgstr "" 3901 3901 3902 #: class/subscription.php:8 493902 #: class/subscription.php:850 3903 3903 msgid "for" 3904 3904 msgstr "" 3905 3905 3906 #: class/subscription.php:8 493906 #: class/subscription.php:850 3907 3907 msgid "installments" 3908 3908 msgstr "" 3909 3909 3910 #: class/subscription.php:85 53910 #: class/subscription.php:856 3911 3911 msgid "Trial available for first %s %s" 3912 3912 msgstr "" 3913 3913 3914 #: class/subscription.php:8 593914 #: class/subscription.php:860 3915 3915 msgid "Buy Now" 3916 3916 msgstr "" 3917 3917 3918 #: class/subscription.php:86 33918 #: class/subscription.php:864 3919 3919 msgid "Sign Up" 3920 3920 msgstr "" 3921 3921 3922 #: class/subscription.php:92 63922 #: class/subscription.php:927 3923 3923 msgid "There is a <strong>%s</strong> charge to add a new post." 3924 3924 msgstr "" 3925 3925 3926 #: class/subscription.php:94 33926 #: class/subscription.php:944 3927 3927 msgid "" 3928 3928 "Your Subscription pack exhausted. There is a <strong>%s</strong> charge to " … … 3930 3930 msgstr "" 3931 3931 3932 #: class/subscription.php:98 83932 #: class/subscription.php:989 3933 3933 msgid "You must <a href=\"%s\">purchase a pack</a> before posting" 3934 3934 msgstr "" … … 4721 4721 msgstr "" 4722 4722 4723 #: includes/countries-formated.php:77 4724 msgid "Bangladesh" 4725 msgstr "" 4726 4723 4727 #: includes/fields/class-abstract-fields.php:267 4724 4728 msgid "" … … 4784 4788 4785 4789 #: includes/fields/class-abstract-fields.php:423 4786 #: includes/fields/class-field-checkbox.php: 874790 #: includes/fields/class-field-checkbox.php:92 4787 4791 #: includes/fields/class-field-radio.php:86 4788 4792 msgid "Show in inline list" … … 4790 4794 4791 4795 #: includes/fields/class-abstract-fields.php:433 4792 #: includes/fields/class-field-checkbox.php: 974796 #: includes/fields/class-field-checkbox.php:102 4793 4797 #: includes/fields/class-field-radio.php:96 4794 4798 msgid "Show this option in an inline list" -
wp-user-frontend/trunk/readme.txt
r2060958 r2068989 6 6 Tested up to: 5.1.1 7 7 Requires PHP: 5.4 8 Stable tag: 3.1. 28 Stable tag: 3.1.3 9 9 License: GPLv2 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 257 257 258 258 == Changelog == 259 260 = v3.1.3 (15 April, 2019) = 261 262 * **Fix:** Required option of checkbox field was not validating on the frontend. 263 * **Fix:** Select mulitple options in checkbox field doesn't save the data. 264 * **Fix:** Fallback pay per post was not respecting the payment procedure & fallback cost was not correct on the payment page. 259 265 260 266 = v3.1.2 (01 April, 2019) = -
wp-user-frontend/trunk/templates/dashboard.php
r1967652 r2068989 244 244 } 245 245 246 if ( $post->post_status =='draft'&& ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {246 if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) { 247 247 $show_edit = false; 248 248 } -
wp-user-frontend/trunk/templates/dashboard/posts.php
r1925768 r2068989 153 153 } 154 154 155 if ( $post->post_status =='draft'&& ( !empty( $payment_status ) && $payment_status != 'completed' ) ) {155 if ( ($post->post_status =='draft' || $post->post_status =='pending') && ( !empty( $payment_status ) && $payment_status != 'completed' ) ) { 156 156 $show_edit = false; 157 157 } -
wp-user-frontend/trunk/wpuf.php
r2060958 r2068989 5 5 Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more... 6 6 Author: Tareq Hasan 7 Version: 3.1. 27 Version: 3.1.3 8 8 Author URI: https://tareq.co 9 9 License: GPL2 or later … … 13 13 */ 14 14 15 define( 'WPUF_VERSION', '3.1. 2' );15 define( 'WPUF_VERSION', '3.1.3' ); 16 16 define( 'WPUF_FILE', __FILE__ ); 17 17 define( 'WPUF_ROOT', dirname( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.