Changeset 2786574
- Timestamp:
- 09/18/2022 01:27:02 PM (4 years ago)
- Location:
- faq-for-woocommerce/trunk
- Files:
-
- 191 added
- 16 edited
-
assets/admin/js/faq-woocommerce-admin.js (modified) (3 diffs)
-
assets/admin/js/faq-woocommerce-admin.min.js (modified) (1 diff)
-
assets/admin/js/faq-woocommerce-admin.min.js.map (modified) (1 diff)
-
assets/public/css/ffw-classic.css.map (modified) (1 diff)
-
assets/public/css/ffw-classic.scss (modified) (1 diff)
-
assets/public/css/ffw-trip.css.map (modified) (1 diff)
-
assets/public/css/ffw-trip.scss (modified) (1 diff)
-
assets/public/css/ffw-whitish.css (modified) (1 diff)
-
assets/public/css/ffw-whitish.css.map (modified) (1 diff)
-
assets/public/css/ffw-whitish.min.css (modified) (1 diff)
-
assets/public/css/ffw-whitish.scss (modified) (1 diff)
-
assets/public/css/style.css.map (modified) (1 diff)
-
assets/public/css/style.scss (modified) (1 diff)
-
faq-for-woocommerce.php (modified) (3 diffs)
-
includes/ffw-helper.php (modified) (2 diffs)
-
includes/tracker (added)
-
includes/tracker/freemius (added)
-
includes/tracker/freemius-helper.php (added)
-
includes/tracker/freemius/LICENSE.txt (added)
-
includes/tracker/freemius/README.md (added)
-
includes/tracker/freemius/assets (added)
-
includes/tracker/freemius/assets/css (added)
-
includes/tracker/freemius/assets/css/admin (added)
-
includes/tracker/freemius/assets/css/admin/account.css (added)
-
includes/tracker/freemius/assets/css/admin/add-ons.css (added)
-
includes/tracker/freemius/assets/css/admin/affiliation.css (added)
-
includes/tracker/freemius/assets/css/admin/checkout.css (added)
-
includes/tracker/freemius/assets/css/admin/common.css (added)
-
includes/tracker/freemius/assets/css/admin/connect.css (added)
-
includes/tracker/freemius/assets/css/admin/debug.css (added)
-
includes/tracker/freemius/assets/css/admin/dialog-boxes.css (added)
-
includes/tracker/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
includes/tracker/freemius/assets/css/admin/index.php (added)
-
includes/tracker/freemius/assets/css/admin/plugins.css (added)
-
includes/tracker/freemius/assets/css/customizer.css (added)
-
includes/tracker/freemius/assets/css/index.php (added)
-
includes/tracker/freemius/assets/img (added)
-
includes/tracker/freemius/assets/img/faq-for-woocommerce.png (added)
-
includes/tracker/freemius/assets/img/index.php (added)
-
includes/tracker/freemius/assets/img/plugin-icon.png (added)
-
includes/tracker/freemius/assets/img/theme-icon.png (added)
-
includes/tracker/freemius/assets/index.php (added)
-
includes/tracker/freemius/assets/js (added)
-
includes/tracker/freemius/assets/js/index.php (added)
-
includes/tracker/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
includes/tracker/freemius/assets/js/nojquery.ba-postmessage.min.js (added)
-
includes/tracker/freemius/assets/js/postmessage.js (added)
-
includes/tracker/freemius/config.php (added)
-
includes/tracker/freemius/includes (added)
-
includes/tracker/freemius/includes/class-freemius-abstract.php (added)
-
includes/tracker/freemius/includes/class-freemius.php (added)
-
includes/tracker/freemius/includes/class-fs-admin-notices.php (added)
-
includes/tracker/freemius/includes/class-fs-api.php (added)
-
includes/tracker/freemius/includes/class-fs-logger.php (added)
-
includes/tracker/freemius/includes/class-fs-options.php (added)
-
includes/tracker/freemius/includes/class-fs-plugin-updater.php (added)
-
includes/tracker/freemius/includes/class-fs-security.php (added)
-
includes/tracker/freemius/includes/class-fs-storage.php (added)
-
includes/tracker/freemius/includes/class-fs-user-lock.php (added)
-
includes/tracker/freemius/includes/customizer (added)
-
includes/tracker/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
includes/tracker/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
includes/tracker/freemius/includes/customizer/index.php (added)
-
includes/tracker/freemius/includes/debug (added)
-
includes/tracker/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
includes/tracker/freemius/includes/debug/debug-bar-start.php (added)
-
includes/tracker/freemius/includes/debug/index.php (added)
-
includes/tracker/freemius/includes/entities (added)
-
includes/tracker/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-affiliate.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-billing.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-entity.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-payment.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-plugin-info.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-plugin-license.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-plugin.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-pricing.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-scope-entity.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-site.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-subscription.php (added)
-
includes/tracker/freemius/includes/entities/class-fs-user.php (added)
-
includes/tracker/freemius/includes/entities/index.php (added)
-
includes/tracker/freemius/includes/fs-core-functions.php (added)
-
includes/tracker/freemius/includes/fs-essential-functions.php (added)
-
includes/tracker/freemius/includes/fs-plugin-info-dialog.php (added)
-
includes/tracker/freemius/includes/i18n.php (added)
-
includes/tracker/freemius/includes/index.php (added)
-
includes/tracker/freemius/includes/l10n.php (added)
-
includes/tracker/freemius/includes/managers (added)
-
includes/tracker/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-cache-manager.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-license-manager.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-option-manager.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-plan-manager.php (added)
-
includes/tracker/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
includes/tracker/freemius/includes/managers/index.php (added)
-
includes/tracker/freemius/includes/sdk (added)
-
includes/tracker/freemius/includes/sdk/Exceptions (added)
-
includes/tracker/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
includes/tracker/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
includes/tracker/freemius/includes/sdk/Exceptions/Exception.php (added)
-
includes/tracker/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
includes/tracker/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
includes/tracker/freemius/includes/sdk/Exceptions/index.php (added)
-
includes/tracker/freemius/includes/sdk/FreemiusBase.php (added)
-
includes/tracker/freemius/includes/sdk/FreemiusWordPress.php (added)
-
includes/tracker/freemius/includes/sdk/LICENSE.txt (added)
-
includes/tracker/freemius/includes/sdk/index.php (added)
-
includes/tracker/freemius/includes/supplements (added)
-
includes/tracker/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
includes/tracker/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
includes/tracker/freemius/includes/supplements/index.php (added)
-
includes/tracker/freemius/index.php (added)
-
includes/tracker/freemius/languages (added)
-
includes/tracker/freemius/languages/freemius-cs_CZ.mo (added)
-
includes/tracker/freemius/languages/freemius-da_DK.mo (added)
-
includes/tracker/freemius/languages/freemius-de_DE.mo (added)
-
includes/tracker/freemius/languages/freemius-en.mo (added)
-
includes/tracker/freemius/languages/freemius-es_ES.mo (added)
-
includes/tracker/freemius/languages/freemius-fr_FR.mo (added)
-
includes/tracker/freemius/languages/freemius-he_IL.mo (added)
-
includes/tracker/freemius/languages/freemius-hu_HU.mo (added)
-
includes/tracker/freemius/languages/freemius-it_IT.mo (added)
-
includes/tracker/freemius/languages/freemius-ja.mo (added)
-
includes/tracker/freemius/languages/freemius-nl_NL.mo (added)
-
includes/tracker/freemius/languages/freemius-ru_RU.mo (added)
-
includes/tracker/freemius/languages/freemius-ta.mo (added)
-
includes/tracker/freemius/languages/freemius-zh_CN.mo (added)
-
includes/tracker/freemius/languages/freemius.pot (added)
-
includes/tracker/freemius/languages/index.php (added)
-
includes/tracker/freemius/package.json (added)
-
includes/tracker/freemius/require.php (added)
-
includes/tracker/freemius/start.php (added)
-
includes/tracker/freemius/templates (added)
-
includes/tracker/freemius/templates/account (added)
-
includes/tracker/freemius/templates/account.php (added)
-
includes/tracker/freemius/templates/account/billing.php (added)
-
includes/tracker/freemius/templates/account/index.php (added)
-
includes/tracker/freemius/templates/account/partials (added)
-
includes/tracker/freemius/templates/account/partials/activate-license-button.php (added)
-
includes/tracker/freemius/templates/account/partials/addon.php (added)
-
includes/tracker/freemius/templates/account/partials/deactivate-license-button.php (added)
-
includes/tracker/freemius/templates/account/partials/index.php (added)
-
includes/tracker/freemius/templates/account/partials/site.php (added)
-
includes/tracker/freemius/templates/account/payments.php (added)
-
includes/tracker/freemius/templates/add-ons.php (added)
-
includes/tracker/freemius/templates/add-trial-to-pricing.php (added)
-
includes/tracker/freemius/templates/admin-notice.php (added)
-
includes/tracker/freemius/templates/ajax-loader.php (added)
-
includes/tracker/freemius/templates/auto-installation.php (added)
-
includes/tracker/freemius/templates/checkout.php (added)
-
includes/tracker/freemius/templates/connect.php (added)
-
includes/tracker/freemius/templates/contact.php (added)
-
includes/tracker/freemius/templates/debug (added)
-
includes/tracker/freemius/templates/debug.php (added)
-
includes/tracker/freemius/templates/debug/api-calls.php (added)
-
includes/tracker/freemius/templates/debug/index.php (added)
-
includes/tracker/freemius/templates/debug/logger.php (added)
-
includes/tracker/freemius/templates/debug/plugins-themes-sync.php (added)
-
includes/tracker/freemius/templates/debug/scheduled-crons.php (added)
-
includes/tracker/freemius/templates/email.php (added)
-
includes/tracker/freemius/templates/firewall-issues-js.php (added)
-
includes/tracker/freemius/templates/forms (added)
-
includes/tracker/freemius/templates/forms/affiliation.php (added)
-
includes/tracker/freemius/templates/forms/data-debug-mode.php (added)
-
includes/tracker/freemius/templates/forms/deactivation (added)
-
includes/tracker/freemius/templates/forms/deactivation/contact.php (added)
-
includes/tracker/freemius/templates/forms/deactivation/form.php (added)
-
includes/tracker/freemius/templates/forms/deactivation/index.php (added)
-
includes/tracker/freemius/templates/forms/deactivation/retry-skip.php (added)
-
includes/tracker/freemius/templates/forms/index.php (added)
-
includes/tracker/freemius/templates/forms/license-activation.php (added)
-
includes/tracker/freemius/templates/forms/optout.php (added)
-
includes/tracker/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
includes/tracker/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
includes/tracker/freemius/templates/forms/resend-key.php (added)
-
includes/tracker/freemius/templates/forms/subscription-cancellation.php (added)
-
includes/tracker/freemius/templates/forms/trial-start.php (added)
-
includes/tracker/freemius/templates/forms/user-change.php (added)
-
includes/tracker/freemius/templates/gdpr-optin-js.php (added)
-
includes/tracker/freemius/templates/index.php (added)
-
includes/tracker/freemius/templates/js (added)
-
includes/tracker/freemius/templates/js/index.php (added)
-
includes/tracker/freemius/templates/js/jquery.content-change.php (added)
-
includes/tracker/freemius/templates/js/open-license-activation.php (added)
-
includes/tracker/freemius/templates/js/style-premium-theme.php (added)
-
includes/tracker/freemius/templates/partials (added)
-
includes/tracker/freemius/templates/partials/index.php (added)
-
includes/tracker/freemius/templates/partials/network-activation.php (added)
-
includes/tracker/freemius/templates/plugin-icon.php (added)
-
includes/tracker/freemius/templates/plugin-info (added)
-
includes/tracker/freemius/templates/plugin-info/description.php (added)
-
includes/tracker/freemius/templates/plugin-info/features.php (added)
-
includes/tracker/freemius/templates/plugin-info/index.php (added)
-
includes/tracker/freemius/templates/plugin-info/screenshots.php (added)
-
includes/tracker/freemius/templates/powered-by.php (added)
-
includes/tracker/freemius/templates/pricing.php (added)
-
includes/tracker/freemius/templates/secure-https-header.php (added)
-
includes/tracker/freemius/templates/sticky-admin-notice-js.php (added)
-
includes/tracker/freemius/templates/tabs-capture-js.php (added)
-
includes/tracker/freemius/templates/tabs.php (added)
-
readme.txt (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
faq-for-woocommerce/trunk/assets/admin/js/faq-woocommerce-admin.js
r2760626 r2786574 265 265 faq_data: faq_data, 266 266 } ).then( response => { 267 console.log('success.......');268 console.log(response.message);269 267 $('#ffw_products').val(JSON.stringify(response.faq_data)); 270 268 $('.ffw-body').html(response.faq); … … 299 297 console.log(__ffw_products_faqs); 300 298 total_product = 0; 301 302 299 } 303 300 … … 320 317 faq_delete_data: faq_delete_data, 321 318 }).then( response => { 322 console.log('success.......');323 console.log(response.success);324 319 325 320 if(response.success) { 326 321 //item hide 327 322 $('.ffw-metabox-item').hide(); 323 324 //make current faqs data empty 325 $('#ffw_products').val(JSON.stringify([])); 328 326 329 327 const Toast = Swal.mixin({ -
faq-for-woocommerce/trunk/assets/admin/js/faq-woocommerce-admin.min.js
r2760626 r2786574 1 "use strict";jQuery(document).ready(function( s){jQuery.fn.putCursorAtEnd=function(){return this.each(function(){var e,o=s(this),t=this;o.is(":focus")||o.focus(),t.setSelectionRange?(e=2*o.val().length,setTimeout(function(){t.setSelectionRange(e,e)},1)):o.val(o.val()),this.scrollTop=999999})},s.faq_woocommerce={ajax_url:"",init:function(){this.ajax_url=ffw_admin.ajaxurl;var e,o=s("#ffw-popup-form-wrapper .ffw-modal-frame");"product"===ffw_admin.current_post_type&&"edit"===ffw_admin.current_page_action&&((e=s(".ffw_search")).select2({placeholder:"Select a faq post",allowClear:!0,minimumResultsForSearch:1/0}),e.on("select2:select",function(e){console.log("hello puishak");var o=s("#ffw_product_page_id").val(),t=ffw_admin.nonce,a=s(this).val(),f=s("#ffw_products").val(),f=JSON.parse(f);s("#ffw_product_data .ffw-product-loader").addClass("ffw-visible"),wp.ajax.post("ffw_insert_data_from_search",{nonce:t,faq_insert_search_data:{product_id:o,new_item_id:a,product_faqs:f}}).then(function(e){console.log("success......."),console.log(e.message),console.log(e.updated_data),s("#ffw_products").val(JSON.stringify(e.updated_data)),s(".ffw-body").html(e.faq_body),s("#ffw_product_data .ffw-product-loader").removeClass("ffw-visible"),s.faq_woocommerce.ffw_sorting_data()}).fail(function(e){console.log("erorr......."),console.log(e),s("#ffw_product_data .ffw-product-loader").removeClass("ffw-visible")})}),s(".ffw-sortable").sortable({axis:"y",update:function(e,o){var t=s(this).sortable("serialize");console.log(t)}})),ffw_admin.current_page_action&&console.log(ffw_admin.current_page_action),s(".ffw-role-select").select2({placeholder:"Select Roles",allowClear:!0}),s(document).on("click","#ffw-product-form-header .ffw-add-new",this.openPopupForm),s(document).on("click",'#ffw-popup-form-wrapper .ffw-modal-close, #ffw-popup-form-wrapper input[type="button"]',this.closePopupForm),o.bind("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(e){o.hasClass("state-leave")&&o.removeClass("state-leave")}),s(".ffw_question_text_color").wpColorPicker(),s(".ffw_question_bg_color").wpColorPicker(),s(".ffw_question_bg_secondary_color").wpColorPicker(),s(".ffw_question_border_color").wpColorPicker(),s(".ffw_answer_text_color").wpColorPicker(),s(".ffw_answer_bg_color").wpColorPicker(),s(".ffw_answer_border_color").wpColorPicker(),s(".ffw-comments-date-time-color").wpColorPicker(),s(".ffw-comments-content-color").wpColorPicker(),s(".ffw-comments-author-name-color").wpColorPicker(),s(".ffw-comments-submit-button-text-color").wpColorPicker(),s(".ffw-comments-reply-button-text-color").wpColorPicker(),s(".ffw-comments-submit-button-bg-color").wpColorPicker(),s(".ffw-comments-form-border-color").wpColorPicker(),s(".ffw-comments-form-title-color").wpColorPicker(),s(".ffw-comments-reply-form-title-color").wpColorPicker(),s(".ffw-comments-reply-form-submit-button-color").wpColorPicker(),s(".ffw-comments-reply-form-submit-button-bg-color").wpColorPicker(),s(".ffw-comments-reply-form-border-color").wpColorPicker(),s(".ffw-comments-reply-form-submit-button-text-color").wpColorPicker(),s(document).on("click","#ffw_product_data .ffw-metabox h3",this.toggleOptionMetabox),s(document).on("click","#ffw_modal_submit",this.submitModalForm),s(document).on("click","#ffw-delete-all-faq",this.deleteAllFaq),s(document).on("click","#ffw-product-form-header .ffw-single-delete-btn",this.deleteSingleFaq),s(document).on("click","#ffw-product-form-header .ffw-single-edit-btn",this.openUpdatePopupForm),s(document).on("click",".ffw-layout-select",this.changePreviewImage),s(document).on("change",".ffw_question_font_size",this.changeQuestionRange),s(document).on("change",".ffw_answer_font_size",this.changeAnswerRange),this.ffw_sorting_data()},openPopupForm:function(e){e.preventDefault(),s("#ffw_modal_submit").show(),s("#ffw_modal_update").hide();e=s(".ffw-modal-frame");s(".modal-overlay").addClass("state-show"),e.removeClass("state-leave").addClass("state-appear"),setTimeout(function(){s("#ffw-popup-form-wrapper .ffw-popup-form-add-question").focus()},500),s("#ffw-popup-form-wrapper .ffw-popup-form-add-question").val(""),jQuery("#wp-ffw_popup_answer-wrap").hasClass("tmce-active")&&tinymce.get("ffw_popup_answer").setContent("")},closePopupForm:function(e){e.preventDefault();e=s(".ffw-modal-frame");s(".modal-overlay").removeClass("state-show"),e.removeClass("state-appear").addClass("state-leave")},toggleOptionMetabox:function(e){e.preventDefault(),s(this).parent(".ffw-metabox").toggleClass("closed").toggleClass("open"),s(event.target).filter(":input, .ffw-sort, .ffw-handle-item").length||s(this).next(".ffw-metabox-content").stop().slideToggle()},submitModalForm:function(e){e.preventDefault(),s(".ffw-modal-frame").removeClass("state-appear"),s(".modal-overlay ").removeClass("state-show"),s("#ffw_product_data .ffw-product-loader").addClass("ffw-visible");var e=s("#ffw-popup-form-wrapper .ffw-popup-form-add-question"),o="",t=(jQuery("#wp-ffw_popup_answer-wrap").hasClass("tmce-active")&&(o=tinyMCE.activeEditor.getContent()),s("#ffw_product_page_id").val()),a=s("#ffw_products").val(),a=JSON.parse(a),f=ffw_admin.nonce,e=e.val();wp.ajax.post("ffw_insert_new_faq",{nonce:f,faq_data:{question:e,answer:o,product_id:t,faq_list:a}}).then(function(e){console.log("success......."),console.log(e.message),s("#ffw_products").val(JSON.stringify(e.faq_data)),s(".ffw-body").html(e.faq),s(".ffw-popup-form-add-question").val(""),s(".ffw-popup-form-add-answer").val(""),s("#ffw_product_data .ffw-product-loader").removeClass("ffw-visible"),s.faq_woocommerce.ffw_sorting_data()}).fail(function(e){console.log("erorr......."),console.log(e),s.faq_woocommerce.ffw_sorting_data()})},deleteAllFaq:function(e){e.preventDefault();var e=s("#ffw_product_page_id").val(),o=s("#ffw_products").val(),o=JSON.parse(o),t=ffw_admin.nonce,a=(void 0!==o&&0!==o.length||console.log(o),{product_id:e});Swal.fire({title:"Delete all the faqs?",icon:"question",showCancelButton:!0}).then(function(e){e.isConfirmed&&wp.ajax.post("ffw_delete_all_faqs",{nonce:t,faq_delete_data:a}).then(function(e){console.log("success......."),console.log(e.success),e.success&&(s(".ffw-metabox-item").hide(),Swal.mixin({toast:!0,position:"bottom-end",showConfirmButton:!1,timer:1500,timerProgressBar:!0,didOpen:function(e){e.addEventListener("mouseenter",Swal.stopTimer),e.addEventListener("mouseleave",Swal.resumeTimer)}}).fire({icon:"success",title:"Delete successfull."}))}).fail(function(e){console.log("erorr of delete faq......."),console.log(e)})})},deleteSingleFaq:function(e){e.preventDefault(),e.stopPropagation();var o=s("#ffw_product_page_id").val(),t=s("#ffw_products").val(),t=JSON.parse(t),a=ffw_admin.nonce,f=s(this).parents(".ffw-metabox-item"),r=s(this).attr("rel");Swal.fire({title:"Are you sure to Delete?",icon:"question",showCancelButton:!0}).then(function(e){e.isConfirmed&&(-1<(e=t.indexOf(r))&&t.splice(e,1),e={product_id:o,updated_faq_list:t},f.hide(),wp.ajax.post("ffw_delete_single_faq",{nonce:a,faq_updated_data:e}).then(function(e){console.log("success......."),console.log(e),console.log(JSON.stringify(e.update_faq_list)),s("#ffw_products").val(JSON.stringify(e.update_faq_list))}).fail(function(e){console.log("erorr of delete faq......."),console.log(e)}))})},openUpdatePopupForm:function(e){e.preventDefault(),e.stopPropagation(),s("#ffw_modal_submit").hide(),s("#ffw_modal_update").show();var e=s(".ffw-modal-frame"),e=(s(".modal-overlay").addClass("state-show"),e.removeClass("state-leave").addClass("state-appear"),s(this).attr("rel")),e=(s("#ffw-current-ques-id").val(e),s(this).parent("h3").find("strong").html()),o=s(this).parents(".ffw-metabox-item").find(".ffw-metabox-content .data div").html();s("#ffw-popup-form-wrapper .ffw-popup-form-add-question").val(e),setTimeout(function(){s("#ffw-popup-form-wrapper .ffw-popup-form-add-question").focus().putCursorAtEnd()},500),jQuery("#wp-ffw_popup_answer-wrap").hasClass("tmce-active")&&tinymce.get("ffw_popup_answer").setContent(o)},changePreviewImage:function(e){var o=s(this).val();s(".ffw-setting-layout img").each(function(e){s(this).data("layout")===parseInt(o)?s(this).removeClass("ffw-hide").addClass("ffw-visible"):s(this).removeClass("ffw-visible").addClass("ffw-hide")})},changeQuestionRange:function(e){var o=s(this).val();s(".ffw_question_font_size_label").text(o+"px")},changeAnswerRange:function(e){var o=s(this).val();s(".ffw_answer_font_size_label").text(o+"px")},ffw_sorting_data:function(e){s(".ffw-sortable").sortable({cursor:"move",axis:"y",handle:".ffw-sort-icon",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,stop:function(){var e=[];s(".ffw-sortable .ffw-metabox-item").each(function(){e.push(s(this).attr("id"))}),s.faq_woocommerce.ffw_sortable(e)}})},ffw_sortable:function(o){var e=s("#ffw_product_page_id").val(),t=ffw_admin.nonce;wp.ajax.post("ffw_sort_faq_data",{nonce:t,faq_sorted_data:{product_id:e,faq_sorted_list:o}}).then(function(e){console.log("success......."),console.log(e.message),s("#ffw_products").val(JSON.stringify(o))}).fail(function(e){console.log("erorr......."),console.log(e)})}},s.faq_woocommerce.init()});1 "use strict";jQuery(document).ready(function(n){jQuery.fn.putCursorAtEnd=function(){return this.each(function(){var e,o=n(this),t=this;o.is(":focus")||o.focus(),t.setSelectionRange?(e=2*o.val().length,setTimeout(function(){t.setSelectionRange(e,e)},1)):o.val(o.val()),this.scrollTop=999999})},n.faq_woocommerce={ajax_url:"",init:function(){this.ajax_url=ffw_admin.ajaxurl;var e,o=n("#ffw-popup-form-wrapper .ffw-modal-frame");"product"===ffw_admin.current_post_type&&"edit"===ffw_admin.current_page_action&&((e=n(".ffw_search")).select2({placeholder:"Select a faq post",allowClear:!0,minimumResultsForSearch:1/0}),e.on("select2:select",function(e){console.log("hello puishak");var o=n("#ffw_product_page_id").val(),t=ffw_admin.nonce,a=n(this).val(),f=n("#ffw_products").val(),f=JSON.parse(f);n("#ffw_product_data .ffw-product-loader").addClass("ffw-visible"),wp.ajax.post("ffw_insert_data_from_search",{nonce:t,faq_insert_search_data:{product_id:o,new_item_id:a,product_faqs:f}}).then(function(e){console.log("success......."),console.log(e.message),console.log(e.updated_data),n("#ffw_products").val(JSON.stringify(e.updated_data)),n(".ffw-body").html(e.faq_body),n("#ffw_product_data .ffw-product-loader").removeClass("ffw-visible"),n.faq_woocommerce.ffw_sorting_data()}).fail(function(e){console.log("erorr......."),console.log(e),n("#ffw_product_data .ffw-product-loader").removeClass("ffw-visible")})}),n(".ffw-sortable").sortable({axis:"y",update:function(e,o){var t=n(this).sortable("serialize");console.log(t)}})),ffw_admin.current_page_action&&console.log(ffw_admin.current_page_action),n(".ffw-role-select").select2({placeholder:"Select Roles",allowClear:!0}),n(document).on("click","#ffw-product-form-header .ffw-add-new",this.openPopupForm),n(document).on("click",'#ffw-popup-form-wrapper .ffw-modal-close, #ffw-popup-form-wrapper input[type="button"]',this.closePopupForm),o.bind("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(e){o.hasClass("state-leave")&&o.removeClass("state-leave")}),n(".ffw_question_text_color").wpColorPicker(),n(".ffw_question_bg_color").wpColorPicker(),n(".ffw_question_bg_secondary_color").wpColorPicker(),n(".ffw_question_border_color").wpColorPicker(),n(".ffw_answer_text_color").wpColorPicker(),n(".ffw_answer_bg_color").wpColorPicker(),n(".ffw_answer_border_color").wpColorPicker(),n(".ffw-comments-date-time-color").wpColorPicker(),n(".ffw-comments-content-color").wpColorPicker(),n(".ffw-comments-author-name-color").wpColorPicker(),n(".ffw-comments-submit-button-text-color").wpColorPicker(),n(".ffw-comments-reply-button-text-color").wpColorPicker(),n(".ffw-comments-submit-button-bg-color").wpColorPicker(),n(".ffw-comments-form-border-color").wpColorPicker(),n(".ffw-comments-form-title-color").wpColorPicker(),n(".ffw-comments-reply-form-title-color").wpColorPicker(),n(".ffw-comments-reply-form-submit-button-color").wpColorPicker(),n(".ffw-comments-reply-form-submit-button-bg-color").wpColorPicker(),n(".ffw-comments-reply-form-border-color").wpColorPicker(),n(".ffw-comments-reply-form-submit-button-text-color").wpColorPicker(),n(document).on("click","#ffw_product_data .ffw-metabox h3",this.toggleOptionMetabox),n(document).on("click","#ffw_modal_submit",this.submitModalForm),n(document).on("click","#ffw-delete-all-faq",this.deleteAllFaq),n(document).on("click","#ffw-product-form-header .ffw-single-delete-btn",this.deleteSingleFaq),n(document).on("click","#ffw-product-form-header .ffw-single-edit-btn",this.openUpdatePopupForm),n(document).on("click",".ffw-layout-select",this.changePreviewImage),n(document).on("change",".ffw_question_font_size",this.changeQuestionRange),n(document).on("change",".ffw_answer_font_size",this.changeAnswerRange),this.ffw_sorting_data()},openPopupForm:function(e){e.preventDefault(),n("#ffw_modal_submit").show(),n("#ffw_modal_update").hide();e=n(".ffw-modal-frame");n(".modal-overlay").addClass("state-show"),e.removeClass("state-leave").addClass("state-appear"),setTimeout(function(){n("#ffw-popup-form-wrapper .ffw-popup-form-add-question").focus()},500),n("#ffw-popup-form-wrapper .ffw-popup-form-add-question").val(""),jQuery("#wp-ffw_popup_answer-wrap").hasClass("tmce-active")&&tinymce.get("ffw_popup_answer").setContent("")},closePopupForm:function(e){e.preventDefault();e=n(".ffw-modal-frame");n(".modal-overlay").removeClass("state-show"),e.removeClass("state-appear").addClass("state-leave")},toggleOptionMetabox:function(e){e.preventDefault(),n(this).parent(".ffw-metabox").toggleClass("closed").toggleClass("open"),n(event.target).filter(":input, .ffw-sort, .ffw-handle-item").length||n(this).next(".ffw-metabox-content").stop().slideToggle()},submitModalForm:function(e){e.preventDefault(),n(".ffw-modal-frame").removeClass("state-appear"),n(".modal-overlay ").removeClass("state-show"),n("#ffw_product_data .ffw-product-loader").addClass("ffw-visible");var e=n("#ffw-popup-form-wrapper .ffw-popup-form-add-question"),o="",t=(jQuery("#wp-ffw_popup_answer-wrap").hasClass("tmce-active")&&(o=tinyMCE.activeEditor.getContent()),n("#ffw_product_page_id").val()),a=n("#ffw_products").val(),a=JSON.parse(a),f=ffw_admin.nonce,e=e.val();wp.ajax.post("ffw_insert_new_faq",{nonce:f,faq_data:{question:e,answer:o,product_id:t,faq_list:a}}).then(function(e){n("#ffw_products").val(JSON.stringify(e.faq_data)),n(".ffw-body").html(e.faq),n(".ffw-popup-form-add-question").val(""),n(".ffw-popup-form-add-answer").val(""),n("#ffw_product_data .ffw-product-loader").removeClass("ffw-visible"),n.faq_woocommerce.ffw_sorting_data()}).fail(function(e){console.log("erorr......."),console.log(e),n.faq_woocommerce.ffw_sorting_data()})},deleteAllFaq:function(e){e.preventDefault();var e=n("#ffw_product_page_id").val(),o=n("#ffw_products").val(),o=JSON.parse(o),t=ffw_admin.nonce,a=(void 0!==o&&0!==o.length||console.log(o),{product_id:e});Swal.fire({title:"Delete all the faqs?",icon:"question",showCancelButton:!0}).then(function(e){e.isConfirmed&&wp.ajax.post("ffw_delete_all_faqs",{nonce:t,faq_delete_data:a}).then(function(e){e.success&&(n(".ffw-metabox-item").hide(),n("#ffw_products").val(JSON.stringify([])),Swal.mixin({toast:!0,position:"bottom-end",showConfirmButton:!1,timer:1500,timerProgressBar:!0,didOpen:function(e){e.addEventListener("mouseenter",Swal.stopTimer),e.addEventListener("mouseleave",Swal.resumeTimer)}}).fire({icon:"success",title:"Delete successfull."}))}).fail(function(e){console.log("erorr of delete faq......."),console.log(e)})})},deleteSingleFaq:function(e){e.preventDefault(),e.stopPropagation();var o=n("#ffw_product_page_id").val(),t=n("#ffw_products").val(),t=JSON.parse(t),a=ffw_admin.nonce,f=n(this).parents(".ffw-metabox-item"),r=n(this).attr("rel");Swal.fire({title:"Are you sure to Delete?",icon:"question",showCancelButton:!0}).then(function(e){e.isConfirmed&&(-1<(e=t.indexOf(r))&&t.splice(e,1),e={product_id:o,updated_faq_list:t},f.hide(),wp.ajax.post("ffw_delete_single_faq",{nonce:a,faq_updated_data:e}).then(function(e){console.log("success......."),console.log(e),console.log(JSON.stringify(e.update_faq_list)),n("#ffw_products").val(JSON.stringify(e.update_faq_list))}).fail(function(e){console.log("erorr of delete faq......."),console.log(e)}))})},openUpdatePopupForm:function(e){e.preventDefault(),e.stopPropagation(),n("#ffw_modal_submit").hide(),n("#ffw_modal_update").show();var e=n(".ffw-modal-frame"),e=(n(".modal-overlay").addClass("state-show"),e.removeClass("state-leave").addClass("state-appear"),n(this).attr("rel")),e=(n("#ffw-current-ques-id").val(e),n(this).parent("h3").find("strong").html()),o=n(this).parents(".ffw-metabox-item").find(".ffw-metabox-content .data div").html();n("#ffw-popup-form-wrapper .ffw-popup-form-add-question").val(e),setTimeout(function(){n("#ffw-popup-form-wrapper .ffw-popup-form-add-question").focus().putCursorAtEnd()},500),jQuery("#wp-ffw_popup_answer-wrap").hasClass("tmce-active")&&tinymce.get("ffw_popup_answer").setContent(o)},changePreviewImage:function(e){var o=n(this).val();n(".ffw-setting-layout img").each(function(e){n(this).data("layout")===parseInt(o)?n(this).removeClass("ffw-hide").addClass("ffw-visible"):n(this).removeClass("ffw-visible").addClass("ffw-hide")})},changeQuestionRange:function(e){var o=n(this).val();n(".ffw_question_font_size_label").text(o+"px")},changeAnswerRange:function(e){var o=n(this).val();n(".ffw_answer_font_size_label").text(o+"px")},ffw_sorting_data:function(e){n(".ffw-sortable").sortable({cursor:"move",axis:"y",handle:".ffw-sort-icon",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",opacity:.65,stop:function(){var e=[];n(".ffw-sortable .ffw-metabox-item").each(function(){e.push(n(this).attr("id"))}),n.faq_woocommerce.ffw_sortable(e)}})},ffw_sortable:function(o){var e=n("#ffw_product_page_id").val(),t=ffw_admin.nonce;wp.ajax.post("ffw_sort_faq_data",{nonce:t,faq_sorted_data:{product_id:e,faq_sorted_list:o}}).then(function(e){console.log("success......."),console.log(e.message),n("#ffw_products").val(JSON.stringify(o))}).fail(function(e){console.log("erorr......."),console.log(e)})}},n.faq_woocommerce.init()}); 2 2 //# sourceMappingURL=faq-woocommerce-admin.min.js.map -
faq-for-woocommerce/trunk/assets/admin/js/faq-woocommerce-admin.min.js.map
r2760626 r2786574 1 {"version":3,"sources":["faq-woocommerce-admin.js"],"names":["jQuery","document","ready","$","fn","putCursorAtEnd","this","setTimeout","$el","focus","is","el","length","len","val","setSelectionRange","scrollTop","faq_woocommerce","search_dom","ffw_admin","_search_dom","minimumResultsForSearch","__ffw_product_id","placeholder","allowClear","new_item_id","e","__ffw_products_faqs","nonce","JSON","parse","addClass","ajax","post","faq_data","response","ffw_sorting_data","console","error","stringify","html","removeClass","fail","data","sortable","axis","select2","event","$modal","log","on","openPopupForm","closePopupForm","bind","hasClass","wpColorPicker","preventDefault","toggleOptionMetabox","submitModalForm","deleteAllFaq","deleteSingleFaq","openUpdatePopupForm","changePreviewImage","changeQuestionRange","tinymce","changeAnswerRange","show","target","get","setContent","__ffw_question","ffw_answer_text","parent","toggleClass","filter","next","stop","tinyMCE","activeEditor"," ffw_question_val","then","total_product","undefined","faq_delete_data","showCancelButton","hide","Toast","showConfirmButton","timer","Swal","fire","isConfirm","mixin","position","timerProgressBar","toast","addEventListener","stopTimer","indexOf","current_faq_id","current_faq","parents","attr","title","icon","$overlay","index","splice","__ffw_old_answer","faq_updated_data","__ffw_id","scrollSensitivity","find","forcePlaceholderSize","selectedData","each","item","image_layout","message","question_range_val","text","answer_range_val","cursor","handle","helper","opacity","push","ffw_sortable","wp","init"],"mappings":"aAIAA,OAAAC,UAAAC,MAAA,SAAAC,G,OAGCC,GAAAC,eAAA,W,OAESC,KAAID,KAAAA,W,IAoBEE,EAfAC,EAAQL,EAAAG,M,EAARE,KAKIC,EAAJD,GAAAE,W,EAGJF,QAGIG,EAAAA,mBAIAJ,EAAsBK,EAAXC,EAAAL,MAAAM,O,WAIRP,W,oBAEHQ,EAAAF,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IACnBC,EAAqB1F,EAAAA,MAAKU,M,mCAEtBiF,KAASA,EAAA,O,kBAEf,SAAA9F,G,IAVJ+F,EAAAtH,EAAAG,MAAAQ,M,iCAYH0G,KAAAA,EAAA,O,iBAKR,SAAA9F,G,mBA5CckB,SAAkBA,C,OACjB8E,O,KACA7E,I,OACA8E,iB,kBACAZ,G,sBACAE,E,OACAW,Q,QACAC,I,KACAjD,W,MACQsC,G,qCACFC,KAAmCA,W,EACjCD,KAAY/G,EAAC2H,MAAOxB,KAAF,S,kBAEpBrF,aAAgB8G,O,aAIlB,SAAEpF,G,IACVrB,EAAoBnB,EAAA,wBAAQW,MAC5Bc,EAAST,UAAiBA,M,GAQ1B6G,KAAGhG,KAAKC,oBAAM,C,MACVL,E,gBANQ,C,WACRN,E,gBACAqB,KAG+BqC,KAG/BA,SAAM7C,G,QACNE,IAAQY,kB,QACRZ,IAAQY,EAAId,S,mBACVrB,IAAiBA,KAAIe,UAAKU,MAE/BG,KAAGA,SAAMJ,G,QACND,IAAQY,gB,QACRZ,IAAQY,O,EAOtBhC,gBAADgH","file":"faq-woocommerce-admin.min.js","sourcesContent":["/**\n * Woocommerce FAQ Admin JS\n *\n * Copyright (c) 2019 wpfeel\n * Licensed under the GPLv2+ license.\n */\njQuery(document).ready(function ($) {\n\t'use strict';\n\n jQuery.fn.putCursorAtEnd = function() {\n\n return this.each(function() {\n\n // Cache references\n var $el = $(this),\n el = this;\n\n // Only focus if input isn't already\n if (!$el.is(\":focus\")) {\n $el.focus();\n }\n\n // If this function exists... (IE 9+)\n if (el.setSelectionRange) {\n\n // Double the length because Opera is inconsistent about whether a carriage return is one character or two.\n var len = $el.val().length * 2;\n\n // Timeout seems to be required for Blink\n setTimeout(function() {\n el.setSelectionRange(len, len);\n }, 1);\n\n } else {\n\n // As a fallback, replace the contents with itself\n // Doesn't work in Chrome, but Chrome supports setSelectionRange\n $el.val($el.val());\n\n }\n\n // Scroll to the bottom, in case we're in a tall textarea\n // (Necessary for Firefox and Chrome)\n this.scrollTop = 999999;\n\n });\n\n };\n\n\t$.faq_woocommerce = {\n ajax_url: '',\n\t\tinit: function () {\n //assign ajax url\n this.ajax_url = ffw_admin.ajaxurl;\n\n // modal form\n var $modal = $('#ffw-popup-form-wrapper .ffw-modal-frame');\n\n\n if( \"product\" === ffw_admin.current_post_type && \"edit\" === ffw_admin.current_page_action ) {\n //ffw select2 init\n let search_dom = $('.ffw_search');\n search_dom.select2({\n placeholder: \"Select a faq post\",\n allowClear: true,\n minimumResultsForSearch: Infinity\n });\n\n search_dom.on(\"select2:select\", function(e) {\n console.log(\"hello puishak\");\n\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let nonce = ffw_admin.nonce;\n let new_item_id = $(this).val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n\n //show loader\n $('#ffw_product_data .ffw-product-loader').addClass('ffw-visible');\n\n //insert faq's data from search\n let faq_data = {\n 'product_id': __ffw_product_id,\n 'new_item_id': new_item_id,\n 'product_faqs': __ffw_products_faqs,\n };\n\n wp.ajax.post( 'ffw_insert_data_from_search', {\n nonce: nonce,\n faq_insert_search_data: faq_data,\n } ).then( response => {\n console.log('success.......');\n console.log(response.message);\n console.log(response.updated_data);\n $('#ffw_products').val(JSON.stringify(response.updated_data));\n $('.ffw-body').html(response.faq_body);\n\n //hide loader\n $('#ffw_product_data .ffw-product-loader').removeClass('ffw-visible');\n\n // FAQ sorting\n $.faq_woocommerce.ffw_sorting_data();\n\n } ).fail( error => {\n console.log('erorr.......');\n console.log(error);\n\n //hide loader\n $('#ffw_product_data .ffw-product-loader').removeClass('ffw-visible');\n } );\n });\n\n //ffw sortable\n $(\".ffw-sortable\").sortable({\n axis: 'y',\n update : function (event, ui) {\n var data = $(this).sortable('serialize');\n console.log(data);\n\n }\n });\n }\n\n //ffw select2 init\n if( ffw_admin.current_page_action ) {\n console.log(ffw_admin.current_page_action);\n }\n let search_dom = $('.ffw-role-select');\n search_dom.select2({\n placeholder: \"Select Roles\",\n allowClear: true,\n });\n\n //modal js\n $(document).on('click', '#ffw-product-form-header .ffw-add-new', this.openPopupForm);\n $(document).on('click', '#ffw-popup-form-wrapper .ffw-modal-close, #ffw-popup-form-wrapper input[type=\"button\"]', this.closePopupForm);\n $modal.bind('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e){\n if($modal.hasClass('state-leave')) {\n $modal.removeClass('state-leave');\n }\n });\n\n //onchange popup answer, update answer textarea value\n // wp.editor.initialize('#ffw_popup_answer', {\n // setup: function (editor) {\n // editor.on('change', function () {\n // editor.save();\n // });\n // }\n // });\n\n\n //style inputs as color picker\n $('.ffw_question_text_color').wpColorPicker();\n $('.ffw_question_bg_color').wpColorPicker();\n $('.ffw_question_bg_secondary_color').wpColorPicker();\n $('.ffw_question_border_color').wpColorPicker();\n $('.ffw_answer_text_color').wpColorPicker();\n $('.ffw_answer_bg_color').wpColorPicker();\n $('.ffw_answer_border_color').wpColorPicker();\n $('.ffw-comments-date-time-color').wpColorPicker();\n $('.ffw-comments-content-color').wpColorPicker();\n $('.ffw-comments-author-name-color').wpColorPicker();\n $('.ffw-comments-submit-button-text-color').wpColorPicker();\n $('.ffw-comments-reply-button-text-color').wpColorPicker();\n $('.ffw-comments-submit-button-bg-color').wpColorPicker();\n $('.ffw-comments-form-border-color').wpColorPicker();\n $('.ffw-comments-form-title-color').wpColorPicker();\n $('.ffw-comments-reply-form-title-color').wpColorPicker();\n $('.ffw-comments-reply-form-submit-button-color').wpColorPicker();\n $('.ffw-comments-reply-form-submit-button-bg-color').wpColorPicker();\n $('.ffw-comments-reply-form-border-color').wpColorPicker();\n $('.ffw-comments-reply-form-submit-button-text-color').wpColorPicker();\n\n\n\n //metabox option js\n $(document).on('click', '#ffw_product_data .ffw-metabox h3', this.toggleOptionMetabox);\n $(document).on('click', '#ffw_modal_submit', this.submitModalForm);\n $(document).on('click', '#ffw-delete-all-faq', this.deleteAllFaq);\n $(document).on('click', '#ffw-product-form-header .ffw-single-delete-btn', this.deleteSingleFaq);\n $(document).on('click', '#ffw-product-form-header .ffw-single-edit-btn', this.openUpdatePopupForm);\n $(document).on('click', '.ffw-layout-select', this.changePreviewImage);\n $(document).on('change', '.ffw_question_font_size', this.changeQuestionRange);\n $(document).on('change', '.ffw_answer_font_size', this.changeAnswerRange);\n\n // FAQ sorting\n this.ffw_sorting_data();\n\n },\n openPopupForm: function(e) {\n e.preventDefault();\n\n $('#ffw_modal_submit').show();\n $('#ffw_modal_update').hide();\n \n var $modal = $('.ffw-modal-frame');\n var $overlay = $('.modal-overlay');\n $overlay.addClass('state-show');\n $modal.removeClass('state-leave').addClass('state-appear');\n\n //focus input\n setTimeout(function() { \n $('#ffw-popup-form-wrapper .ffw-popup-form-add-question').focus();\n }, 500);\n\n //reset question and answers\n $('#ffw-popup-form-wrapper .ffw-popup-form-add-question').val('');\n if ( jQuery(\"#wp-ffw_popup_answer-wrap\").hasClass(\"tmce-active\") ) {\n tinymce.get(\"ffw_popup_answer\").setContent('');\n }\n },\n closePopupForm: function(e) {\n e.preventDefault();\n\n var $modal = $('.ffw-modal-frame');\n var $overlay = $('.modal-overlay');\n $overlay.removeClass('state-show');\n $modal.removeClass('state-appear').addClass('state-leave');\n\t\t},\n toggleOptionMetabox: function (e) {\n e.preventDefault();\n\n $( this ).parent( '.ffw-metabox' ).toggleClass( 'closed' ).toggleClass( 'open' );\n\n // If the user clicks on some form input inside the h3, the box should not be toggled\n if ( $( event.target ).filter( ':input, .ffw-sort, .ffw-handle-item' ).length ) {\n return;\n }\n\n $( this ).next( '.ffw-metabox-content' ).stop().slideToggle();\n },\n submitModalForm: function (e) {\n e.preventDefault();\n\n //hide the popup\n $('.ffw-modal-frame').removeClass('state-appear');\n $('.modal-overlay ').removeClass('state-show');\n\n //show loader\n $('#ffw_product_data .ffw-product-loader').addClass('ffw-visible');\n\n let __ffw_question = $('#ffw-popup-form-wrapper .ffw-popup-form-add-question');\n let ffw_answer_text = '';\n if ( jQuery(\"#wp-ffw_popup_answer-wrap\").hasClass(\"tmce-active\") ) {\n ffw_answer_text = tinyMCE.activeEditor.getContent();\n }\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n\n let nonce = ffw_admin.nonce;\n let ffw_question_val = __ffw_question.val();\n\n //insert faq's data\n let faq_data = {\n 'question': ffw_question_val,\n 'answer': ffw_answer_text,\n 'product_id': __ffw_product_id,\n 'faq_list': __ffw_products_faqs,\n };\n\n wp.ajax.post( 'ffw_insert_new_faq', {\n nonce: nonce,\n faq_data: faq_data,\n } ).then( response => {\n console.log('success.......');\n console.log(response.message);\n $('#ffw_products').val(JSON.stringify(response.faq_data));\n $('.ffw-body').html(response.faq);\n $('.ffw-popup-form-add-question').val('');\n $('.ffw-popup-form-add-answer').val('');\n\n //hide loader\n $('#ffw_product_data .ffw-product-loader').removeClass('ffw-visible');\n\n // FAQ sorting\n $.faq_woocommerce.ffw_sorting_data();\n\n } ).fail( error => {\n console.log('erorr.......');\n console.log(error);\n\n // FAQ sorting\n $.faq_woocommerce.ffw_sorting_data();\n } );\n\n },\n deleteAllFaq: function (e) {\n e.preventDefault();\n\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n let nonce = ffw_admin.nonce;\n\n let total_product = '';\n if( undefined === __ffw_products_faqs || 0 === __ffw_products_faqs.length ) {\n console.log(__ffw_products_faqs);\n total_product = 0;\n\n }\n\n //insert faq's data\n let faq_delete_data = {\n 'product_id': __ffw_product_id\n };\n\n //delete confirm popup\n Swal.fire({\n title: 'Delete all the faqs?',\n icon: 'question',\n showCancelButton: true,\n }).then(function(isConfirm) {\n\n if (isConfirm.isConfirmed) {\n\n wp.ajax.post( 'ffw_delete_all_faqs', {\n nonce: nonce,\n faq_delete_data: faq_delete_data,\n }).then( response => {\n console.log('success.......');\n console.log(response.success);\n\n if(response.success) {\n //item hide\n $('.ffw-metabox-item').hide();\n\n const Toast = Swal.mixin({\n toast: true,\n position: 'bottom-end',\n showConfirmButton: false,\n timer: 1500,\n timerProgressBar: true,\n didOpen: (toast) => {\n toast.addEventListener('mouseenter', Swal.stopTimer);\n toast.addEventListener('mouseleave', Swal.resumeTimer);\n }\n });\n\n Toast.fire({\n icon: 'success',\n title: 'Delete successfull.'\n });\n }\n\n }).fail( error => {\n console.log('erorr of delete faq.......');\n console.log(error);\n });\n\n }\n });\n\n },\n deleteSingleFaq: function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n let nonce = ffw_admin.nonce;\n let current_faq = $(this).parents('.ffw-metabox-item');\n let current_faq_id = $(this).attr('rel');\n\n //delete confirm popup\n Swal.fire({\n title: 'Are you sure to Delete?',\n icon: 'question',\n showCancelButton: true,\n }).then(function(isConfirm) {\n\n if (isConfirm.isConfirmed) {\n\n const index = __ffw_products_faqs.indexOf(current_faq_id);\n if (index > -1) {\n __ffw_products_faqs.splice(index, 1);\n }\n\n //update faq's data\n let faq_updated_data = {\n 'product_id': __ffw_product_id,\n 'updated_faq_list': __ffw_products_faqs\n };\n\n //hide current faq\n current_faq.hide();\n\n wp.ajax.post( 'ffw_delete_single_faq', {\n nonce: nonce,\n faq_updated_data: faq_updated_data,\n }).then( response => {\n console.log('success.......');\n console.log(response);\n console.log(JSON.stringify(response.update_faq_list));\n $('#ffw_products').val(JSON.stringify(response.update_faq_list));\n\n }).fail( error => {\n console.log('erorr of delete faq.......');\n console.log(error);\n });\n\n }\n });\n\n },\n openUpdatePopupForm: function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $('#ffw_modal_submit').hide();\n $('#ffw_modal_update').show();\n\n //open modal\n var $modal = $('.ffw-modal-frame');\n var $overlay = $('.modal-overlay');\n $overlay.addClass('state-show');\n $modal.removeClass('state-leave').addClass('state-appear');\n\n let __ffw_id = $(this).attr('rel');\n $('#ffw-current-ques-id').val(__ffw_id);\n let __ffw_old_question = $(this).parent('h3').find('strong').html();\n let __ffw_old_answer = $(this).parents('.ffw-metabox-item').find('.ffw-metabox-content .data div').html();\n let __ffw_question = $('#ffw-popup-form-wrapper .ffw-popup-form-add-question');\n __ffw_question.val(__ffw_old_question);\n\n //focus input\n setTimeout(function() {\n $('#ffw-popup-form-wrapper .ffw-popup-form-add-question').focus().putCursorAtEnd();\n }, 500);\n\n //set value for answer\n if ( jQuery(\"#wp-ffw_popup_answer-wrap\").hasClass(\"tmce-active\") ) {\n tinymce.get(\"ffw_popup_answer\").setContent(__ffw_old_answer);\n }\n },\n changePreviewImage: function(e) {\n let current_image = $(this).val();\n\n $('.ffw-setting-layout img').each(function(item) {\n let image_layout = $(this).data('layout');\n if( image_layout === parseInt(current_image) ) {\n $(this).removeClass('ffw-hide').addClass('ffw-visible');\n }else {\n $(this).removeClass('ffw-visible').addClass('ffw-hide');\n }\n });\n },\n changeQuestionRange: function(e) {\n let question_range_val = $(this).val();\n $('.ffw_question_font_size_label').text(question_range_val + \"px\");\n },\n changeAnswerRange: function(e) {\n let answer_range_val = $(this).val();\n $('.ffw_answer_font_size_label').text(answer_range_val + \"px\");\n },\n ffw_sorting_data: function(e) {\n\n // Allow FAQ sorting\n $( '.ffw-sortable' ).sortable({\n cursor: 'move',\n axis: 'y',\n handle: '.ffw-sort-icon',\n scrollSensitivity: 40,\n forcePlaceholderSize: true,\n helper: 'clone',\n opacity: 0.65,\n stop: function() {\n var selectedData = [];\n $('.ffw-sortable .ffw-metabox-item').each(function() {\n selectedData.push($(this).attr(\"id\"));\n });\n $.faq_woocommerce.ffw_sortable(selectedData);\n }\n });\n },\n ffw_sortable: function(data) {\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let nonce = ffw_admin.nonce;\n\n //sort faq's data\n let faq_data = {\n 'product_id': __ffw_product_id,\n 'faq_sorted_list': data,\n };\n\n wp.ajax.post( 'ffw_sort_faq_data', {\n nonce: nonce,\n faq_sorted_data: faq_data,\n } ).then( response => {\n console.log('success.......');\n console.log(response.message);\n $('#ffw_products').val(JSON.stringify(data));\n\n } ).fail( error => {\n console.log('erorr.......');\n console.log(error);\n } );\n },\n\n\t};\n\n\n\t$.faq_woocommerce.init();\n});\n"]}1 {"version":3,"sources":["faq-woocommerce-admin.js"],"names":["jQuery","document","ready","$","fn","putCursorAtEnd","this","setTimeout","$el","focus","is","el","length","len","val","setSelectionRange","scrollTop","faq_woocommerce","search_dom","ffw_admin","_search_dom","minimumResultsForSearch","__ffw_product_id","placeholder","allowClear","new_item_id","e","__ffw_products_faqs","nonce","JSON","parse","addClass","ajax","post","faq_data","response","ffw_sorting_data","console","error","stringify","html","removeClass","fail","data","sortable","axis","select2","event","$modal","log","on","openPopupForm","closePopupForm","bind","hasClass","wpColorPicker","preventDefault","toggleOptionMetabox","submitModalForm","deleteAllFaq","deleteSingleFaq","openUpdatePopupForm","changePreviewImage","changeQuestionRange","tinymce","changeAnswerRange","show","target","get","setContent","__ffw_question","ffw_answer_text","parent","toggleClass","filter","next","stop","tinyMCE","activeEditor","then","undefined","total_product","faq_delete_data","showCancelButton","mixin","timer","timerProgressBar","Toast","Swal","fire","isConfirm","hide","position","showConfirmButton","isConfirmed","toast","indexOf","current_faq_id","addEventListener","resumeTimer","parents","attr","title","icon","$overlay","index","splice","faq_updated_data","current_faq","image_layout","answer_range_val","handle","cursor","forcePlaceholderSize","scrollSensitivity","find","helper","selectedData","current_image","each","item","parseInt","faq_sorted_data","text","opacity","push","ffw_sortable","wp","init"],"mappings":"aAIAA,OAAAC,UAAAC,MAAA,SAAAC,G,OAGCC,GAAAC,eAAA,W,OAESC,KAAID,KAAAA,W,IAoBEE,EAfAC,EAAQL,EAAAG,M,EAARE,KAKIC,EAAJD,GAAAE,W,EAGJF,QAGIG,EAAAA,mBAIAJ,EAAsBK,EAAXC,EAAAL,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AIEpB,SAAAA,G,IAEnB4B,EAAevC,EAAAG,MAAAQ,M,mCACfuB,KAAAsF,EAAA,O,kBATJ,SAAAjG,G,IAYHoF,EAAA3G,EAAAG,MAAAQ,M,iCAhcR6G,KAAAA,EAAA,O,iBA3CD,SAAAjG,G,mBAocekB,SAAkBA,C,OACjBoE,O,KACAnE,I,OACAkE,iB,kBACAG,G,sBACAD,E,OACAG,Q,QACAQ,I,KACAhD,W,MACQyC,G,qCACFE,KAAmCA,W,EACjCF,KAAYlH,EAAC0H,MAAOxB,KAAF,S,kBAEpBpF,aAAgB6G,O,aAIlB,SAAEnF,G,IACVrB,EAAoBnB,EAAA,wBAAQW,MAC5Bc,EAAST,UAAiBA,M,GAQ1B4G,KAAG/F,KAAKC,oBAAM,C,MACVL,E,gBANQ,C,WACRN,E,gBACAqB,KAG+BoC,KAG/BA,SAAM5C,G,QACNE,IAAQY,kB,QACRZ,IAAQY,EAAId,S,mBACVrB,IAAiBA,KAAIe,UAAKU,MAE/BG,KAAGA,SAAMJ,G,QACND,IAAQY,gB,QACRZ,IAAQY,O,EAOtBhC,gBAAD+G","file":"faq-woocommerce-admin.min.js","sourcesContent":["/**\n * Woocommerce FAQ Admin JS\n *\n * Copyright (c) 2019 wpfeel\n * Licensed under the GPLv2+ license.\n */\njQuery(document).ready(function ($) {\n\t'use strict';\n\n jQuery.fn.putCursorAtEnd = function() {\n\n return this.each(function() {\n\n // Cache references\n var $el = $(this),\n el = this;\n\n // Only focus if input isn't already\n if (!$el.is(\":focus\")) {\n $el.focus();\n }\n\n // If this function exists... (IE 9+)\n if (el.setSelectionRange) {\n\n // Double the length because Opera is inconsistent about whether a carriage return is one character or two.\n var len = $el.val().length * 2;\n\n // Timeout seems to be required for Blink\n setTimeout(function() {\n el.setSelectionRange(len, len);\n }, 1);\n\n } else {\n\n // As a fallback, replace the contents with itself\n // Doesn't work in Chrome, but Chrome supports setSelectionRange\n $el.val($el.val());\n\n }\n\n // Scroll to the bottom, in case we're in a tall textarea\n // (Necessary for Firefox and Chrome)\n this.scrollTop = 999999;\n\n });\n\n };\n\n\t$.faq_woocommerce = {\n ajax_url: '',\n\t\tinit: function () {\n //assign ajax url\n this.ajax_url = ffw_admin.ajaxurl;\n\n // modal form\n var $modal = $('#ffw-popup-form-wrapper .ffw-modal-frame');\n\n\n if( \"product\" === ffw_admin.current_post_type && \"edit\" === ffw_admin.current_page_action ) {\n //ffw select2 init\n let search_dom = $('.ffw_search');\n search_dom.select2({\n placeholder: \"Select a faq post\",\n allowClear: true,\n minimumResultsForSearch: Infinity\n });\n\n search_dom.on(\"select2:select\", function(e) {\n console.log(\"hello puishak\");\n\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let nonce = ffw_admin.nonce;\n let new_item_id = $(this).val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n\n //show loader\n $('#ffw_product_data .ffw-product-loader').addClass('ffw-visible');\n\n //insert faq's data from search\n let faq_data = {\n 'product_id': __ffw_product_id,\n 'new_item_id': new_item_id,\n 'product_faqs': __ffw_products_faqs,\n };\n\n wp.ajax.post( 'ffw_insert_data_from_search', {\n nonce: nonce,\n faq_insert_search_data: faq_data,\n } ).then( response => {\n console.log('success.......');\n console.log(response.message);\n console.log(response.updated_data);\n $('#ffw_products').val(JSON.stringify(response.updated_data));\n $('.ffw-body').html(response.faq_body);\n\n //hide loader\n $('#ffw_product_data .ffw-product-loader').removeClass('ffw-visible');\n\n // FAQ sorting\n $.faq_woocommerce.ffw_sorting_data();\n\n } ).fail( error => {\n console.log('erorr.......');\n console.log(error);\n\n //hide loader\n $('#ffw_product_data .ffw-product-loader').removeClass('ffw-visible');\n } );\n });\n\n //ffw sortable\n $(\".ffw-sortable\").sortable({\n axis: 'y',\n update : function (event, ui) {\n var data = $(this).sortable('serialize');\n console.log(data);\n\n }\n });\n }\n\n //ffw select2 init\n if( ffw_admin.current_page_action ) {\n console.log(ffw_admin.current_page_action);\n }\n let search_dom = $('.ffw-role-select');\n search_dom.select2({\n placeholder: \"Select Roles\",\n allowClear: true,\n });\n\n //modal js\n $(document).on('click', '#ffw-product-form-header .ffw-add-new', this.openPopupForm);\n $(document).on('click', '#ffw-popup-form-wrapper .ffw-modal-close, #ffw-popup-form-wrapper input[type=\"button\"]', this.closePopupForm);\n $modal.bind('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e){\n if($modal.hasClass('state-leave')) {\n $modal.removeClass('state-leave');\n }\n });\n\n //onchange popup answer, update answer textarea value\n // wp.editor.initialize('#ffw_popup_answer', {\n // setup: function (editor) {\n // editor.on('change', function () {\n // editor.save();\n // });\n // }\n // });\n\n\n //style inputs as color picker\n $('.ffw_question_text_color').wpColorPicker();\n $('.ffw_question_bg_color').wpColorPicker();\n $('.ffw_question_bg_secondary_color').wpColorPicker();\n $('.ffw_question_border_color').wpColorPicker();\n $('.ffw_answer_text_color').wpColorPicker();\n $('.ffw_answer_bg_color').wpColorPicker();\n $('.ffw_answer_border_color').wpColorPicker();\n $('.ffw-comments-date-time-color').wpColorPicker();\n $('.ffw-comments-content-color').wpColorPicker();\n $('.ffw-comments-author-name-color').wpColorPicker();\n $('.ffw-comments-submit-button-text-color').wpColorPicker();\n $('.ffw-comments-reply-button-text-color').wpColorPicker();\n $('.ffw-comments-submit-button-bg-color').wpColorPicker();\n $('.ffw-comments-form-border-color').wpColorPicker();\n $('.ffw-comments-form-title-color').wpColorPicker();\n $('.ffw-comments-reply-form-title-color').wpColorPicker();\n $('.ffw-comments-reply-form-submit-button-color').wpColorPicker();\n $('.ffw-comments-reply-form-submit-button-bg-color').wpColorPicker();\n $('.ffw-comments-reply-form-border-color').wpColorPicker();\n $('.ffw-comments-reply-form-submit-button-text-color').wpColorPicker();\n\n\n\n //metabox option js\n $(document).on('click', '#ffw_product_data .ffw-metabox h3', this.toggleOptionMetabox);\n $(document).on('click', '#ffw_modal_submit', this.submitModalForm);\n $(document).on('click', '#ffw-delete-all-faq', this.deleteAllFaq);\n $(document).on('click', '#ffw-product-form-header .ffw-single-delete-btn', this.deleteSingleFaq);\n $(document).on('click', '#ffw-product-form-header .ffw-single-edit-btn', this.openUpdatePopupForm);\n $(document).on('click', '.ffw-layout-select', this.changePreviewImage);\n $(document).on('change', '.ffw_question_font_size', this.changeQuestionRange);\n $(document).on('change', '.ffw_answer_font_size', this.changeAnswerRange);\n\n // FAQ sorting\n this.ffw_sorting_data();\n\n },\n openPopupForm: function(e) {\n e.preventDefault();\n\n $('#ffw_modal_submit').show();\n $('#ffw_modal_update').hide();\n \n var $modal = $('.ffw-modal-frame');\n var $overlay = $('.modal-overlay');\n $overlay.addClass('state-show');\n $modal.removeClass('state-leave').addClass('state-appear');\n\n //focus input\n setTimeout(function() { \n $('#ffw-popup-form-wrapper .ffw-popup-form-add-question').focus();\n }, 500);\n\n //reset question and answers\n $('#ffw-popup-form-wrapper .ffw-popup-form-add-question').val('');\n if ( jQuery(\"#wp-ffw_popup_answer-wrap\").hasClass(\"tmce-active\") ) {\n tinymce.get(\"ffw_popup_answer\").setContent('');\n }\n },\n closePopupForm: function(e) {\n e.preventDefault();\n\n var $modal = $('.ffw-modal-frame');\n var $overlay = $('.modal-overlay');\n $overlay.removeClass('state-show');\n $modal.removeClass('state-appear').addClass('state-leave');\n\t\t},\n toggleOptionMetabox: function (e) {\n e.preventDefault();\n\n $( this ).parent( '.ffw-metabox' ).toggleClass( 'closed' ).toggleClass( 'open' );\n\n // If the user clicks on some form input inside the h3, the box should not be toggled\n if ( $( event.target ).filter( ':input, .ffw-sort, .ffw-handle-item' ).length ) {\n return;\n }\n\n $( this ).next( '.ffw-metabox-content' ).stop().slideToggle();\n },\n submitModalForm: function (e) {\n e.preventDefault();\n\n //hide the popup\n $('.ffw-modal-frame').removeClass('state-appear');\n $('.modal-overlay ').removeClass('state-show');\n\n //show loader\n $('#ffw_product_data .ffw-product-loader').addClass('ffw-visible');\n\n let __ffw_question = $('#ffw-popup-form-wrapper .ffw-popup-form-add-question');\n let ffw_answer_text = '';\n if ( jQuery(\"#wp-ffw_popup_answer-wrap\").hasClass(\"tmce-active\") ) {\n ffw_answer_text = tinyMCE.activeEditor.getContent();\n }\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n\n let nonce = ffw_admin.nonce;\n let ffw_question_val = __ffw_question.val();\n\n //insert faq's data\n let faq_data = {\n 'question': ffw_question_val,\n 'answer': ffw_answer_text,\n 'product_id': __ffw_product_id,\n 'faq_list': __ffw_products_faqs,\n };\n\n wp.ajax.post( 'ffw_insert_new_faq', {\n nonce: nonce,\n faq_data: faq_data,\n } ).then( response => {\n $('#ffw_products').val(JSON.stringify(response.faq_data));\n $('.ffw-body').html(response.faq);\n $('.ffw-popup-form-add-question').val('');\n $('.ffw-popup-form-add-answer').val('');\n\n //hide loader\n $('#ffw_product_data .ffw-product-loader').removeClass('ffw-visible');\n\n // FAQ sorting\n $.faq_woocommerce.ffw_sorting_data();\n\n } ).fail( error => {\n console.log('erorr.......');\n console.log(error);\n\n // FAQ sorting\n $.faq_woocommerce.ffw_sorting_data();\n } );\n\n },\n deleteAllFaq: function (e) {\n e.preventDefault();\n\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n let nonce = ffw_admin.nonce;\n\n let total_product = '';\n if( undefined === __ffw_products_faqs || 0 === __ffw_products_faqs.length ) {\n console.log(__ffw_products_faqs);\n total_product = 0;\n }\n\n //insert faq's data\n let faq_delete_data = {\n 'product_id': __ffw_product_id\n };\n\n //delete confirm popup\n Swal.fire({\n title: 'Delete all the faqs?',\n icon: 'question',\n showCancelButton: true,\n }).then(function(isConfirm) {\n\n if (isConfirm.isConfirmed) {\n\n wp.ajax.post( 'ffw_delete_all_faqs', {\n nonce: nonce,\n faq_delete_data: faq_delete_data,\n }).then( response => {\n\n if(response.success) {\n //item hide\n $('.ffw-metabox-item').hide();\n\n //make current faqs data empty\n $('#ffw_products').val(JSON.stringify([]));\n\n const Toast = Swal.mixin({\n toast: true,\n position: 'bottom-end',\n showConfirmButton: false,\n timer: 1500,\n timerProgressBar: true,\n didOpen: (toast) => {\n toast.addEventListener('mouseenter', Swal.stopTimer);\n toast.addEventListener('mouseleave', Swal.resumeTimer);\n }\n });\n\n Toast.fire({\n icon: 'success',\n title: 'Delete successfull.'\n });\n }\n\n }).fail( error => {\n console.log('erorr of delete faq.......');\n console.log(error);\n });\n\n }\n });\n\n },\n deleteSingleFaq: function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let __ffw_products_faqs = $('#ffw_products').val();\n __ffw_products_faqs = JSON.parse(__ffw_products_faqs);\n let nonce = ffw_admin.nonce;\n let current_faq = $(this).parents('.ffw-metabox-item');\n let current_faq_id = $(this).attr('rel');\n\n //delete confirm popup\n Swal.fire({\n title: 'Are you sure to Delete?',\n icon: 'question',\n showCancelButton: true,\n }).then(function(isConfirm) {\n\n if (isConfirm.isConfirmed) {\n\n const index = __ffw_products_faqs.indexOf(current_faq_id);\n if (index > -1) {\n __ffw_products_faqs.splice(index, 1);\n }\n\n //update faq's data\n let faq_updated_data = {\n 'product_id': __ffw_product_id,\n 'updated_faq_list': __ffw_products_faqs\n };\n\n //hide current faq\n current_faq.hide();\n\n wp.ajax.post( 'ffw_delete_single_faq', {\n nonce: nonce,\n faq_updated_data: faq_updated_data,\n }).then( response => {\n console.log('success.......');\n console.log(response);\n console.log(JSON.stringify(response.update_faq_list));\n $('#ffw_products').val(JSON.stringify(response.update_faq_list));\n\n }).fail( error => {\n console.log('erorr of delete faq.......');\n console.log(error);\n });\n\n }\n });\n\n },\n openUpdatePopupForm: function (e) {\n e.preventDefault();\n e.stopPropagation();\n\n $('#ffw_modal_submit').hide();\n $('#ffw_modal_update').show();\n\n //open modal\n var $modal = $('.ffw-modal-frame');\n var $overlay = $('.modal-overlay');\n $overlay.addClass('state-show');\n $modal.removeClass('state-leave').addClass('state-appear');\n\n let __ffw_id = $(this).attr('rel');\n $('#ffw-current-ques-id').val(__ffw_id);\n let __ffw_old_question = $(this).parent('h3').find('strong').html();\n let __ffw_old_answer = $(this).parents('.ffw-metabox-item').find('.ffw-metabox-content .data div').html();\n let __ffw_question = $('#ffw-popup-form-wrapper .ffw-popup-form-add-question');\n __ffw_question.val(__ffw_old_question);\n\n //focus input\n setTimeout(function() {\n $('#ffw-popup-form-wrapper .ffw-popup-form-add-question').focus().putCursorAtEnd();\n }, 500);\n\n //set value for answer\n if ( jQuery(\"#wp-ffw_popup_answer-wrap\").hasClass(\"tmce-active\") ) {\n tinymce.get(\"ffw_popup_answer\").setContent(__ffw_old_answer);\n }\n },\n changePreviewImage: function(e) {\n let current_image = $(this).val();\n\n $('.ffw-setting-layout img').each(function(item) {\n let image_layout = $(this).data('layout');\n if( image_layout === parseInt(current_image) ) {\n $(this).removeClass('ffw-hide').addClass('ffw-visible');\n }else {\n $(this).removeClass('ffw-visible').addClass('ffw-hide');\n }\n });\n },\n changeQuestionRange: function(e) {\n let question_range_val = $(this).val();\n $('.ffw_question_font_size_label').text(question_range_val + \"px\");\n },\n changeAnswerRange: function(e) {\n let answer_range_val = $(this).val();\n $('.ffw_answer_font_size_label').text(answer_range_val + \"px\");\n },\n ffw_sorting_data: function(e) {\n\n // Allow FAQ sorting\n $( '.ffw-sortable' ).sortable({\n cursor: 'move',\n axis: 'y',\n handle: '.ffw-sort-icon',\n scrollSensitivity: 40,\n forcePlaceholderSize: true,\n helper: 'clone',\n opacity: 0.65,\n stop: function() {\n var selectedData = [];\n $('.ffw-sortable .ffw-metabox-item').each(function() {\n selectedData.push($(this).attr(\"id\"));\n });\n $.faq_woocommerce.ffw_sortable(selectedData);\n }\n });\n },\n ffw_sortable: function(data) {\n let __ffw_product_id = $('#ffw_product_page_id').val();\n let nonce = ffw_admin.nonce;\n\n //sort faq's data\n let faq_data = {\n 'product_id': __ffw_product_id,\n 'faq_sorted_list': data,\n };\n\n wp.ajax.post( 'ffw_sort_faq_data', {\n nonce: nonce,\n faq_sorted_data: faq_data,\n } ).then( response => {\n console.log('success.......');\n console.log(response.message);\n $('#ffw_products').val(JSON.stringify(data));\n\n } ).fail( error => {\n console.log('erorr.......');\n console.log(error);\n } );\n },\n\n\t};\n\n\n\t$.faq_woocommerce.init();\n});\n"]} -
faq-for-woocommerce/trunk/assets/public/css/ffw-classic.css.map
r2778411 r2786574 1 {"version":3,"sourceRoot":"","sources":["ffw-classic.scss"],"names":[],"mappings":"AAAA;EACC;;;AA KA;EACC;;AAKC;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;;AAGC;EACC;;AAQL;EACC;;AACA;EACC;EACA;EACA","file":"ffw-classic.css"}1 {"version":3,"sourceRoot":"","sources":["ffw-classic.scss"],"names":[],"mappings":"AAAA;EACC;;;AAIA;EACC;;AAKC;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;;AAGC;EACC;;AAQL;EACC;;AACA;EACC;EACA;EACA","file":"ffw-classic.css"} -
faq-for-woocommerce/trunk/assets/public/css/ffw-classic.scss
r2778411 r2786574 2 2 box-sizing: border-box; 3 3 } 4 5 4 #ffw-main-wrapper { 6 5 -
faq-for-woocommerce/trunk/assets/public/css/ffw-trip.css.map
r2778411 r2786574 1 {"version":3,"sourceRoot":"","sources":["ffw-trip.scss"],"names":[],"mappings":"AAAA;EACC;;;AA GA;EACC;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGF;EACC;;AAGD;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;;AAIF;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;AAGD;EACC","file":"ffw-trip.css"}1 {"version":3,"sourceRoot":"","sources":["ffw-trip.scss"],"names":[],"mappings":"AAAA;EACC;;;AAIA;EACC;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGF;EACC;;AAGD;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;;AAIF;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;EACA;;AAGD;EACC","file":"ffw-trip.css"} -
faq-for-woocommerce/trunk/assets/public/css/ffw-trip.scss
r2778411 r2786574 2 2 box-sizing: border-box; 3 3 } 4 4 5 #ffw-main-wrapper { 5 6 .ffw-main-wrapper-shortcode { -
faq-for-woocommerce/trunk/assets/public/css/ffw-whitish.css
r2778411 r2786574 66 66 cursor: pointer; 67 67 font-size: 20px; 68 box-sizing: border-box;69 68 } 70 69 #ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-classic-answer p { -
faq-for-woocommerce/trunk/assets/public/css/ffw-whitish.css.map
r2778411 r2786574 1 {"version":3,"sourceRoot":"","sources":["ffw-whitish.scss"],"names":[],"mappings":";AAAA;EACC;;;AAIA;EACC;;AAED;EACC;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAKC;EACC;;AAOH;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA; EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"ffw-whitish.css"}1 {"version":3,"sourceRoot":"","sources":["ffw-whitish.scss"],"names":[],"mappings":";AAAA;EACC;;;AAIA;EACC;;AAED;EACC;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAKC;EACC;;AAOH;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA","file":"ffw-whitish.css"} -
faq-for-woocommerce/trunk/assets/public/css/ffw-whitish.min.css
r2778411 r2786574 1 @charset "UTF-8";*{box-sizing:border-box}#ffw-main-wrapper .ffw-main-wrapper-shortcode{width:90%}#ffw-main-wrapper .ffw-accordion{position:relative;padding:20px;margin:0;background-color:#f9f9fa}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item{position:relative;display:block;width:100%;height:auto;background-color:#fff;margin:0 auto 15px auto;border:1px solid #eee;border-radius:5px;cursor:pointer}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button{font-weight:700;position:relative;display:flex;width:100%;height:auto;padding:20px;margin:0;font-size:15px;letter-spacing:.01em;cursor:pointer;justify-content:space-between;align-items:center;background:0 0;color:#000;outline:0}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button:focus,#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button:hover{text-decoration:none}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button.ffw-active .ffw-classic-icon:after{transform:translate(0,-50%) rotate(45deg)}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-classic-icon:after{content:"×";position:absolute;right:20px;top:50%;transform:translate(0,-50%);color:#fcc110;transition:all .3s ease-in-out;font-size:18px}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-classic-answer{position:relative;display:block;width:100%;height:auto;margin:0;padding:0 20px;cursor:pointer;font-size:20px ;box-sizing:border-box}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-classic-answer p{position:relative;display:block;font-weight:300;padding:10px 0 0 0;cursor:pointer;line-height:150%;margin:0 0 15px 0;font-size:18px}1 @charset "UTF-8";*{box-sizing:border-box}#ffw-main-wrapper .ffw-main-wrapper-shortcode{width:90%}#ffw-main-wrapper .ffw-accordion{position:relative;padding:20px;margin:0;background-color:#f9f9fa}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item{position:relative;display:block;width:100%;height:auto;background-color:#fff;margin:0 auto 15px auto;border:1px solid #eee;border-radius:5px;cursor:pointer}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button{font-weight:700;position:relative;display:flex;width:100%;height:auto;padding:20px;margin:0;font-size:15px;letter-spacing:.01em;cursor:pointer;justify-content:space-between;align-items:center;background:0 0;color:#000;outline:0}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button:focus,#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button:hover{text-decoration:none}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-button.ffw-active .ffw-classic-icon:after{transform:translate(0,-50%) rotate(45deg)}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-classic-icon:after{content:"×";position:absolute;right:20px;top:50%;transform:translate(0,-50%);color:#fcc110;transition:all .3s ease-in-out;font-size:18px}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-classic-answer{position:relative;display:block;width:100%;height:auto;margin:0;padding:0 20px;cursor:pointer;font-size:20px}#ffw-main-wrapper .ffw-accordion .ffw-accordion-item .ffw-classic-answer p{position:relative;display:block;font-weight:300;padding:10px 0 0 0;cursor:pointer;line-height:150%;margin:0 0 15px 0;font-size:18px} -
faq-for-woocommerce/trunk/assets/public/css/ffw-whitish.scss
r2778411 r2786574 76 76 cursor: pointer; 77 77 font-size: 20px; 78 box-sizing: border-box;79 78 80 79 p { -
faq-for-woocommerce/trunk/assets/public/css/style.css.map
r2778411 r2786574 1 {"version":3,"sourceRoot":"","sources":["style.scss"],"names":[],"mappings":"AAAA;EACC;;;AA IA;EACC;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;;AAKH;EACC;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;;AAEC;EACC;EACA;;AAIA;EACC;;AAOH;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;;AAIA;EACC;EACA;EACA;EACA;;AAIF;EACC;EACA;;AAGD;EACC;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;EACA;;AAKH;EACC;EACA;EACA;EACA;;AAEA;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAMJ;EACC;EACA;;AAEA;EACC;EACA;EACA;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AAEA;EACC;;AAKH;EACC;EACA;;AAGC;EACC;EACA;;AAEA;EACC;;AAKA;EACC;;AAOD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAOD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAOD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAKH;EACC;;AAEA;EACC;;AAKF;EACC;;AAMA;EACC;EACA;EACA;EACA;EACA;EACA","file":"style.css"}1 {"version":3,"sourceRoot":"","sources":["style.scss"],"names":[],"mappings":"AAAA;EACC;;;AAGA;EACC;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;;AAKH;EACC;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;;AAEC;EACC;EACA;;AAIA;EACC;;AAOH;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;;AAIA;EACC;EACA;EACA;EACA;;AAIF;EACC;EACA;;AAGD;EACC;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;EACA;;AAKH;EACC;EACA;EACA;EACA;;AAEA;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAMJ;EACC;EACA;;AAEA;EACC;EACA;EACA;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AAEA;EACC;;AAKH;EACC;EACA;;AAGC;EACC;EACA;;AAEA;EACC;;AAKA;EACC;;AAOD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAOD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAOD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAKH;EACC;;AAEA;EACC;;AAKF;EACC;;AAMA;EACC;EACA;EACA;EACA;EACA;EACA","file":"style.css"} -
faq-for-woocommerce/trunk/assets/public/css/style.scss
r2778411 r2786574 2 2 box-sizing: border-box; 3 3 } 4 5 4 #ffw-main-wrapper { 6 5 .ffw-hide { -
faq-for-woocommerce/trunk/faq-for-woocommerce.php
r2776538 r2786574 4 4 * Plugin URI: https://wordpress.org/plugins/faq-for-woocommerce/ 5 5 * Description: This plugin shows faq question and answers for per product with comment and FAQ schema support. 6 * Version: 1.3.3 46 * Version: 1.3.35 7 7 * Author: Optemiz 8 8 * Author URI: https://optemiz.com/ … … 30 30 * @since 1.0.0 31 31 */ 32 define( 'FFW_VERSION', '1.3.3 4' );32 define( 'FFW_VERSION', '1.3.35' ); 33 33 } 34 34 … … 62 62 include_once FFW_FILE_DIR . '/includes/class-faq-woocommerce.php'; 63 63 64 /** 65 * Initialize the plugin tracker 66 * 67 * @return void 68 */ 69 function appsero_init_tracker_faq_for_woocommerce() { 70 71 if ( ! class_exists( 'Appsero\Client' ) ) { 72 require_once __DIR__ . '/lib/tracker/appsero/src/Client.php'; 73 } 74 75 $client = new Appsero\Client( 'c989292b-3c3e-454a-a216-cc0df37fb6d9', 'XPlainer – WooCommerce Product FAQ', __FILE__ ); 76 77 // Active insights 78 $client->insights()->init(); 79 80 } 81 82 appsero_init_tracker_faq_for_woocommerce(); 64 // Include tracker file 65 include dirname(__FILE__) . '/includes/tracker/freemius-helper.php'; 83 66 84 67 /** -
faq-for-woocommerce/trunk/includes/ffw-helper.php
r2777304 r2786574 634 634 $post = get_post($faq_id); 635 635 setup_postdata($post); 636 the_content(); 636 637 $content = get_the_content($post); 638 $content = apply_filters("ffw_apply_dynamic_product_attribute", $content, $post, $faq_id); 639 $content = apply_filters( 'the_content', $content ); 640 echo $content = str_replace( ']]>', ']]>', $content ); 637 641 wp_reset_postdata(); 638 642 } … … 800 804 } 801 805 add_filter( 'wp_robots', 'ffw_page_indexing' ); 806 807 if ( ! function_exists( 'ffw_fs' ) ) { 808 // Create a helper function for easy SDK access. 809 function ffw_fs() { 810 global $ffw_fs; 811 812 if ( ! isset( $ffw_fs ) ) { 813 // Include Freemius SDK. 814 require_once dirname(__FILE__) . '/freemius/start.php'; 815 816 $ffw_fs = fs_dynamic_init( array( 817 'id' => '11066', 818 'slug' => 'faq-for-woocommerce', 819 'type' => 'plugin', 820 'public_key' => 'pk_c2fcd40c93b263aa8296b7ef88d38', 821 'is_premium' => false, 822 'has_addons' => false, 823 'has_paid_plans' => false, 824 'menu' => array( 825 'slug' => 'edit.php?post_type=ffw', 826 'account' => false, 827 'contact' => false, 828 'support' => false, 829 ), 830 ) ); 831 } 832 833 return $ffw_fs; 834 } 835 836 // Init Freemius. 837 ffw_fs(); 838 // Signal that SDK was initiated. 839 do_action( 'ffw_fs_loaded' ); 840 } -
faq-for-woocommerce/trunk/readme.txt
r2778411 r2786574 5 5 Tested Up To: 6.0 6 6 Requires PHP: 5.6 7 Stable tag: 1.3.3 47 Stable tag: 1.3.35 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 18 18 👉 [__Support__](https://wordpress.org/support/plugin/faq-for-woocommerce/) 19 19 20 The main purpose of this FAQ plugin for WooCommerce is to generate product FAQs and display those in an eye-pleasing way. While displaying the product FAQ list, you get multiple templates with relative designs. Right now, there are 4 templates, and more are cooking up. 21 22 The product FAQ generated by XPlainer templates is compatible with any themes. So, no more worries about plugin or theme compatibility if you choose XPlainer - the WooCommerce Product FAQ plugin. 20 The main purpose of this FAQ plugin for WooCommerce is to generate product FAQs and display those in an eye-pleasing way. While displaying the product FAQ list, you get multiple templates with relative designs. Right now, there are 4 templates, and more are cooking up. 21 22 The product FAQ generated by XPlainer templates is compatible with any themes. So, no more worries about plugin or theme compatibility if you choose XPlainer - the WooCommerce Product FAQ plugin. 23 23 24 24 > This advanced WooCommerce Question Answer plugin can skyrocket your sales and increase your business’s online visibility. Indeed, a tool that should not be missed for any product site. … … 28 28 ## 🔥 INSTRUCTIONS ## 29 29 30 Install the plugin and go to the settings page by navigating **XPlainer > Settings**. To add FAQ questions and answers, go to **XPlainer > Add New**. There the post title will be the question and the description will be the answer. 30 Install the plugin and go to the settings page by navigating **XPlainer > Settings**. To add FAQ questions and answers, go to **XPlainer > Add New**. There the post title will be the question and the description will be the answer. 31 31 32 32 After adding the questions and answers, go to any product edit page, and you will find the FAQs there. Scroll down directly to the **Product data** tab and choose FAQs from the left sidebar. Simply choose your previously generated FAQs from the dropdown or add questions by using the **Quick Add** button. … … 66 66 * Option of Expand/Collapse All FAQs 67 67 68 Let’s explain these features one-by-one. 68 Let’s explain these features one-by-one. 69 69 70 70 ## ♾️ UNLIMITED FAQS ## 71 71 72 The XPlainer WooCommerce Product FAQ plugin allows you to add unlimited FAQs to your eCommerce store. It doesn’t matter how many products you have in your online store, this WooCommerce FAQ plugin got you covered. You can even add global FAQs for your products. 73 74 Simply add the FAQs by navigating to **XPlainer > Add New**. These FAQs will become available on every product page. All you have to do is just select the appropriate FAQs that you want to add to your product page. 72 The XPlainer WooCommerce Product FAQ plugin allows you to add unlimited FAQs to your eCommerce store. It doesn’t matter how many products you have in your online store, this WooCommerce FAQ plugin got you covered. You can even add global FAQs for your products. 73 74 Simply add the FAQs by navigating to **XPlainer > Add New**. These FAQs will become available on every product page. All you have to do is just select the appropriate FAQs that you want to add to your product page. 75 75 76 76 So, no more hesitation when you are solving the quest of your potential customers. Remember, the sky is your customization limit when you use this XPlainer FAQ manager for your FAQ needs. … … 78 78 ## 🎨 INDIVIDUAL PRODUCT FAQ ## 79 79 80 Every product is special. So, it’s very common for the customers to have specific questions about specific products. As an owner, it’s your sole duty to convert those product visitors into probable buyers by answering their custom questions. 81 82 That’s why this FAQ accordion plugin offers a **Quick Add** button on every product page. It allows you to add customized FAQ questions and answers which are applicable to specific products. Answer those questions smartly and acquire more customers. 80 Every product is special. So, it’s very common for the customers to have specific questions about specific products. As an owner, it’s your sole duty to convert those product visitors into probable buyers by answering their custom questions. 81 82 That’s why this FAQ accordion plugin offers a **Quick Add** button on every product page. It allows you to add customized FAQ questions and answers which are applicable to specific products. Answer those questions smartly and acquire more customers. 83 83 84 84 ## 📭 FAQ POST SUPPORT ## … … 106 106 ## 🔀 SORTING FAQS ## 107 107 108 The XPlainer WooCommerce FAQ plugin works in a more advanced way than the other FAQ accordion plugins. This FAQ sorting feature might be a great example to support this statement. 108 The XPlainer WooCommerce FAQ plugin works in a more advanced way than the other FAQ accordion plugins. This FAQ sorting feature might be a great example to support this statement. 109 109 110 110 XPlainer allows the users to sort the FAQs under different parameters like ‘**order**’ and ‘**order_by**’. You can also implement this sorting feature by using shortcodes. Check the following feature to learn about using the shortcode feature. … … 180 180 * Custom CSS 181 181 182 💡 The **custom CSS** is the most prioritized CSS. Adding custom CSS will override the default styling. 182 💡 The **custom CSS** is the most prioritized CSS. Adding custom CSS will override the default styling. 183 183 184 184 ## 🎯 FULLY RESPONSIVE ## … … 196 196 A picture is worth a thousand words. While answering the questions, you might need to use some images or videos to explain the answer better. To help you in this situation, XPlainer allows the insertion of digital media in the answers. 197 197 198 It not only helps to answer the questions better but also answers them more appropriately. You can insert every media file that is supported by WordPress. 198 It not only helps to answer the questions better but also answers them more appropriately. You can insert every media file that is supported by WordPress. 199 199 200 200 ## 🔁 ADDING CONTENTS BEFORE AND AFTER THE FAQ LIST ## … … 217 217 * Pop Template 218 218 219 We are planning to add more templates within a very short time. 219 We are planning to add more templates within a very short time. 220 220 221 221 ## 🔗 WOOCOMMERCE COMPATIBLE STYLE FOR PRODUCT INFORMATION TAB ## 222 222 223 The XPlainer Product FAQ plugin is totally compatible with WooCommerce. From the coding standard to optimization and designing, XPlainer blends with WooCommerce perfectly. So, when you create your WooCommerce FAQ questions and answers with the XPlainer plugin, it will properly adjust with WooCommerce. 223 The XPlainer Product FAQ plugin is totally compatible with WooCommerce. From the coding standard to optimization and designing, XPlainer blends with WooCommerce perfectly. So, when you create your WooCommerce FAQ questions and answers with the XPlainer plugin, it will properly adjust with WooCommerce. 224 224 225 225 ## 💻 FAQ LAYOUT PREVIEW IN SETTING PAGE ## 226 226 227 The XPlainer FAQ plugins come with multiple colorful and SEO-friendly FAQ layouts. Right now, there are 4 different layouts to choose from. You can check these layouts by navigating to **Woo FAQ > Settings** page. Then select the General tab and select your desired design from the **Layout** option. 227 The XPlainer FAQ plugins come with multiple colorful and SEO-friendly FAQ layouts. Right now, there are 4 different layouts to choose from. You can check these layouts by navigating to **Woo FAQ > Settings** page. Then select the General tab and select your desired design from the **Layout** option. 228 228 229 229 While choosing the layouts, you can see the real-time layout preview on the right side of the settings page. Thus the layout selection process becomes more effortless than ever! … … 231 231 ## 📐 FAQ TAB REORDER SETTING ## 232 232 233 By default, the FAQs you have added will be displayed in the last tab. But, you can control the tab position from the XPlainer settings page if needed. To do that, go to **XPlainer > Settings** page and then find the **Tab Priority** option under the **General** tab. 234 235 Increase or decrease the value by 10 to change the tab’s position. For example, if you want to display the FAQs as the first tab, the value will be 10. Just like that, the value will be 20 for the 2nd position or 50 for the 5th position. 233 By default, the FAQs you have added will be displayed in the last tab. But, you can control the tab position from the XPlainer settings page if needed. To do that, go to **XPlainer > Settings** page and then find the **Tab Priority** option under the **General** tab. 234 235 Increase or decrease the value by 10 to change the tab’s position. For example, if you want to display the FAQs as the first tab, the value will be 10. Just like that, the value will be 20 for the 2nd position or 50 for the 5th position. 236 236 237 237 ## 🎬 SHOW/HIDE FAQ ANSWERS ON PAGE LOAD ## 238 238 239 By default, the product FAQs are listed just like a simple FAQ accordion style. If you want to read the answer to a specific question, you have to click on that question, and it will show the answer. 240 241 But, XPlainer is designed to offer something extra than others. So, you can set whether you want to show or hide the answers while the product page loads initially. 242 243 To do that, go to **XPlainer > Settings** page and then find the **Display All Answers** option under the **General** tab. You can choose to either show or hide the answers from here. After choosing your preferred method, click on the **Save Changes** button, and it will be set for the whole website. 239 By default, the product FAQs are listed just like a simple FAQ accordion style. If you want to read the answer to a specific question, you have to click on that question, and it will show the answer. 240 241 But, XPlainer is designed to offer something extra than others. So, you can set whether you want to show or hide the answers while the product page loads initially. 242 243 To do that, go to **XPlainer > Settings** page and then find the **Display All Answers** option under the **General** tab. You can choose to either show or hide the answers from here. After choosing your preferred method, click on the **Save Changes** button, and it will be set for the whole website. 244 244 245 245 ## 👨💻 OPTION TO EXPAND/COLLAPSE ALL FAQS ## 246 246 247 Besides controlling the FAQs visibility from the dashboard panel, the XPlainer WooCommerce FAQ manager plugin lets the customer control it from the front-end interface. 247 Besides controlling the FAQs visibility from the dashboard panel, the XPlainer WooCommerce FAQ manager plugin lets the customer control it from the front-end interface. 248 248 249 249 To enable this option, follow the steps below: … … 252 252 2. At first, enable this feature and then set the **Expand/Collapse All** Label text. This text will work as the button text for the Expand/Collapse All button. 253 253 3. After you are done with that, click on the **Save Changes** button, and it will be set for every product page. 254 That’s it! 254 That’s it! 255 255 256 256 💚 Satisfied with our XPlainer FAQ plugin? … … 340 340 == Changelog == 341 341 342 = 1.3.35 = 343 * Fixed: After deleting all the faqs, new insertion does not work properly has been fixed. 344 * Updated: Performance boosted. 345 342 346 = 1.3.34 = 343 347 * Fixed: Question and border color doesn't work for classic template has been fixed.
Note: See TracChangeset
for help on using the changeset viewer.