Plugin Directory

Changeset 3191786


Ignore:
Timestamp:
11/19/2024 05:01:28 AM (13 months ago)
Author:
truvisibility
Message:

Improved search

Location:
truvisibility-all-in-one-marketing-suite/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • truvisibility-all-in-one-marketing-suite/trunk/README.txt

    r3170278 r3191786  
    55License URI: http://www.gnu.org/licenses/gpl.html
    66Requires at least: 5.4
    7 Tested up to: 6.6
     7Tested up to: 6.6.2
    88Requires PHP: 7.2
    9 Stable tag: 1.1.3
     9Stable tag: 1.2.0
    1010
    1111The TruVISIBILITY Plugin integrates your website with their all-in-one Marketing Suite featuring a CRM, Email Automation, Forms, & Live Chat/Chatbots.
     
    3232
    3333The TruVISIBILITY CRM accessed through the free WordPress plugin can record into your CRM the activity and data of all your leads and customers submitting data on your WordPress website.
    34  
     34
    3535Here are some of the powerful features of the TruVISIBILITY CRM:
    3636
     
    5353You get full access to the TruVISIBILITY’s CHAT platform inside the Wordpress TruVISIBILITY Plugin. The TruVISIBILITY CHAT App gives you the ability to add live multi-agent live chat to your WordPress website. You can also build out a fully automated CHATBOT and add that to your WordPress website with just a few clicks.  As live chat and the chatbots are accessed by your website visitors, all their interactions are archived, and lead capture fields are automatically inserted into the TruVISIBILITY CRM.
    5454The TruVISIBILITY CHAT App accessed through the free WordPress plugin makes it easy to deploy live chat and chatbots on your WordPress website.
    55  
     55
    5656Here are some of the outstanding features of the Chat App:
    5757
     
    6767*   Connect Chat to internal spreadsheets or Google Sheets
    6868*   Send email and SMS text directly from a chat session
    69  
     69
    7070**[FORMS App](https://forms.truvisibility.com)**
    7171
    7272You get full access to the TruVISIBILITY’s FORMS App inside the Wordpress TruVISIBILITY Plugin. The TruVISIBILITY FORMS App gives you the ability to add unlimited web forms on your WordPress website. And each form submission is saved into the TruVISIBILITY CRM building up and improving your customer database records.
    73  
     73
    7474Use the TruVISIBILITY Forms App to create and customize web forms for your WordPress website. Web forms are online forms that your visitors can fill out and submit to you, such as contact forms, surveys, quizzes, feedback forms, and more. Web forms can help you collect information, generate leads, and survey your visitors.
    7575
     
    9191
    9292You get full access to the TruVISIBILITY’s EMAIL MESSAGING App inside the Wordpress TruVISIBILITY Plugin. The TruVISIBILITY EMAIL MESSAGING App gives you the ability to create newsletters, autoresponders and email automations connected to your WordPress website and your TRUVISIBILITY CRM APP which is also connected to your WordPress website.
    93  
     93
    9494Use the TruVISIBILITY EMAIL MESSAGING App to communicate with your leads and customers delivering email campaigns that will help your business grow.
    95  
     95
    9696Here are some of the powerful features of the EMAIL MESSAGING App that is delivered by utilizing the TruVISIBILITY WordPress plugin:
    9797
     
    114114The TruVISIBILITY plugin is the ultimate solution for WordPress and WooCommerce users who want to take their online business to the next level. With the TruVISIBILITY plugin, you can connect your website with a powerful and easy-to-use marketing suite that can help you grow your online business. Don't miss this opportunity to boost your online presence and performance.
    115115
    116  
     116
    117117Download the TruVISIBILITY plugin today and start using it for free today.
    118  
     118
    119119== Installation ==
    120120
    1211211. Install the TruVISIBILITY All-In-One Marketing Suite plugin to your site
    1221222. Activate it
    123 3. Create <https://www.truvisibility.com/> account 
     1233. Create <https://www.truvisibility.com/> account
    1241244. Authorize this plugin with your account
    125125
     
    135135
    136136== Changelog ==
     137
     138= 1.2.0 =
     139* (added) improved search
    137140
    138141= 1.1.3 =
  • truvisibility-all-in-one-marketing-suite/trunk/build/index.asset.php

    r3067294 r3191786  
    1 <?php return array('dependencies' => array('jquery', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'f539689e2d92450882ef');
     1<?php return array('dependencies' => array('jquery', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'f05c0d66a5b962107176');
  • truvisibility-all-in-one-marketing-suite/trunk/build/index.css

    r3067294 r3191786  
    1 .wp-block-truvisibility-platform-form-block .trv-selector-container{font-size:14px;position:relative;width:100%}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control{align-content:center;align-items:center;background-color:#fff;border:1px solid #d2d2d5;border-radius:4px;box-shadow:none;box-sizing:border-box;color:#202020;cursor:pointer;display:flex;flex-wrap:wrap;font-weight:500;height:40px;justify-content:space-between;outline:0!important;padding:6px 8px;position:relative}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control:hover{border-color:#a8a7ac}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control.focused{border:2px solid #12a3f8;padding:5px 7px}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .control-value{align-items:center;box-sizing:border-box;display:flex;flex:1;flex-wrap:wrap;position:relative}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .control-value .placeholder{box-sizing:border-box;color:gray;font-size:16px;margin-left:2px;margin-right:2px;position:absolute;top:50%;transform:translateY(-50%)}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .control-value .single-value{box-sizing:border-box;color:#333;margin-left:2px;margin-right:2px;max-width:calc(100% - 8px);overflow:hidden;position:absolute;text-overflow:ellipsis;top:50%;transform:translateY(-50%);white-space:nowrap}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .indicator{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yLjM0MTUxIDUuMjIyNjlDMi43NTcxNCA0Ljg5NTM4IDMuMzg4OTEgNC45MzMyOSAzLjc1MjU5IDUuMzA3MzZMMTAgMTEuNzMzM0wxNi4yNDc0IDUuMzA3MzZDMTYuNjExMSA0LjkzMzI5IDE3LjI0MjkgNC44OTUzOCAxNy42NTg1IDUuMjIyNjlDMTguMDc0MSA1LjU1MDAxIDE4LjExNjIgNi4xMTg1OSAxNy43NTI2IDYuNDkyNjZMMTAuNzUyNiAxMy42OTI3QzEwLjU2MjcgMTMuODg4IDEwLjI4ODQgMTQgMTAgMTRDOS43MTE2NCAxNCA5LjQzNzMxIDEzLjg4OCA5LjI0NzQzIDEzLjY5MjdMMi4yNDc0NCA2LjQ5MjY2QzEuODgzNzYgNi4xMTg1OSAxLjkyNTg3IDUuNTUwMDEgMi4zNDE1MSA1LjIyMjY5WiIgZmlsbD0iIzdCODI4RSIvPgo8L3N2Zz4K);height:20px;width:20px}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container{background-color:#fff;border-radius:8px;box-shadow:0 4px 16px 0 rgba(0,0,0,.2),0 0 2px 0 rgba(0,0,0,.102);margin-bottom:8px;margin-top:8px;position:absolute;top:100%;width:100%;z-index:9999}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .components-spinner{margin-top:12px;width:100%}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .no-results{padding:10px 12px}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list{max-height:212px;overflow-y:auto;padding-bottom:4px;padding-top:4px;position:relative}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list .select-item{background-color:transparent;color:inherit;cursor:default;display:block;font-size:inherit;padding:10px 12px}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list .select-item.selected,.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list .select-item:hover{background-color:#f2f5f7}
     1.wp-block-truvisibility-platform-form-block .trv-selector-container{font-size:14px;position:relative;width:100%}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control{align-content:center;align-items:center;background-color:#fff;border:1px solid #d2d2d5;border-radius:4px;box-shadow:none;box-sizing:border-box;color:#202020;cursor:pointer;display:flex;flex-wrap:wrap;font-weight:500;height:40px;justify-content:space-between;outline:0!important;padding:6px 8px;position:relative}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control:hover{border-color:#a8a7ac}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control.focused{border:2px solid #12a3f8;padding:5px 7px}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .control-value{align-items:center;box-sizing:border-box;display:flex;flex:1;flex-wrap:wrap;position:relative}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .control-value .placeholder{box-sizing:border-box;color:gray;font-size:16px;margin-left:2px;margin-right:2px;position:absolute;top:50%;transform:translateY(-50%)}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .control-value .single-value{box-sizing:border-box;color:#333;margin-left:2px;margin-right:2px;max-width:calc(100% - 8px);overflow:hidden;position:absolute;text-overflow:ellipsis;top:50%;transform:translateY(-50%);white-space:nowrap}.wp-block-truvisibility-platform-form-block .trv-selector-container .trv-selector-control .indicator{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMi4zNDE1MSA1LjIyMjY5QzIuNzU3MTQgNC44OTUzOCAzLjM4ODkxIDQuOTMzMjkgMy43NTI1OSA1LjMwNzM2TDEwIDExLjczMzNMMTYuMjQ3NCA1LjMwNzM2QzE2LjYxMTEgNC45MzMyOSAxNy4yNDI5IDQuODk1MzggMTcuNjU4NSA1LjIyMjY5QzE4LjA3NDEgNS41NTAwMSAxOC4xMTYyIDYuMTE4NTkgMTcuNzUyNiA2LjQ5MjY2TDEwLjc1MjYgMTMuNjkyN0MxMC41NjI3IDEzLjg4OCAxMC4yODg0IDE0IDEwIDE0QzkuNzExNjQgMTQgOS40MzczMSAxMy44ODggOS4yNDc0MyAxMy42OTI3TDIuMjQ3NDQgNi40OTI2NkMxLjg4Mzc2IDYuMTE4NTkgMS45MjU4NyA1LjU1MDAxIDIuMzQxNTEgNS4yMjI2OVoiIGZpbGw9IiM3QjgyOEUiLz4NCjwvc3ZnPg0K);height:20px;width:20px}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container{background-color:#fff;border-radius:8px;box-shadow:0 4px 16px 0 rgba(0,0,0,.2),0 0 2px 0 rgba(0,0,0,.102);margin-bottom:8px;margin-top:8px;position:absolute;top:100%;width:100%;z-index:9999}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .components-spinner{margin-top:12px;width:100%}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .no-results{padding:10px 12px}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list{max-height:212px;overflow-y:auto;padding-bottom:4px;padding-top:4px;position:relative}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list .select-item{background-color:transparent;color:inherit;cursor:default;display:block;font-size:inherit;padding:10px 12px}.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list .select-item.selected,.wp-block-truvisibility-platform-form-block .trv-selector-container .menu-container .menu-list .select-item:hover{background-color:#f2f5f7}
  • truvisibility-all-in-one-marketing-suite/trunk/build/index.js

    r3067294 r3191786  
    1 !function(){"use strict";var e,r={680:function(e,r,t){var n=window.wp.blocks,i=t(893),s=window.wp.blockEditor,o=t(196),l=window.wp.components,c=window.wp.i18n;function a({placeholder:e,value:r,loadOptions:t,onChange:n}){const[s,a]=(0,o.useState)(!1),[u,d]=(0,o.useState)(!1),[f,m]=(0,o.useState)(),v=function(e){const r=o.useRef(null),t=o.useRef(e);return o.useLayoutEffect((()=>{t.current=e})),o.useEffect((()=>{const e=e=>{const n=r.current;n&&!n.contains(e.target)&&t.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),r}((()=>{a(!1)}));return(0,o.useEffect)((()=>{t&&(d(!0),t((e=>{m(e),d(!1)})))}),[t]),(0,i.jsxs)("div",{className:"trv-selector-container",children:[(0,i.jsxs)("div",{className:"trv-selector-control "+(s?"focused":""),onClick:()=>{a(!s)},children:[(0,i.jsx)("div",{className:"control-value",children:r&&""!==r.label?(0,i.jsx)("div",{className:"single-value",children:r.label}):(0,i.jsx)("div",{className:"placeholder",children:e})}),(0,i.jsx)("div",{className:"indicator"})]}),s&&(0,i.jsxs)("div",{className:"menu-container",ref:v,children:[u&&(0,i.jsx)(l.Spinner,{}),0==f?.length?(0,i.jsx)("div",{className:"no-results",onClick:()=>{a(!1)},children:(0,c.__)("There are no forms created yet.","truvisibility-platform")}):(0,i.jsx)("div",{className:"menu-list",children:((e=[])=>e.map(((e,t)=>{const s=`select-item-${t}`;return(0,i.jsx)("div",{className:"select-item "+(r&&e.value===r.value?"selected":""),id:s,onClick:()=>{n(e),a(!1)},children:e.label})})))(f)})]})]})}const{pluginPath:u,accessToken:d,adminUrl:f,rootUrl:m,title:v,apiUrl:p,isConnected:h,apiNonce:x,formsScript:b,language:j}=window.trv_config;class w{constructor(e,r){this.value=e,this.label=r}}const g=e=>new w(e.id,e.title);function _({attributes:e,setAttributes:r}){const{formId:t,formName:n}=e,[s,l]=(0,o.useState)(null);return(0,i.jsxs)("div",{className:"form-block-settings",children:[(0,i.jsxs)("div",{className:"form-block-header",children:[(0,i.jsx)("div",{className:"logo_img",children:(0,i.jsx)("a",{href:"https://forms.truvisibility.com/",target:"_blank",title:(0,c.__)("TruVISIBILITY Forms","truvisibility-platform"),children:(0,i.jsx)("img",{alt:"Forms",src:`${u}assets/images/forms.svg`})})}),(0,i.jsx)("div",{className:"logo_title",children:(0,c.__)("TruVISIBILITY Forms","truvisibility-platform")})]}),s?(0,i.jsx)("div",{className:"forms-selector-error",children:s}):(0,i.jsx)(a,{placeholder:(0,c.__)("Select A Form...","truvisibility-platform"),value:new w(t,n),loadOptions:e=>{window.trvFormOptions?e(window.trvFormOptions):wp.apiFetch({path:"truvisibility/v1/forms"}).then((r=>{window.trvFormOptions=[...r.map(g)],e(window.trvFormOptions)})).catch((e=>{l(e)}))},onChange:e=>{r({formId:e.value,formName:e.label})}})]})}var y=window.jQuery,N=t.n(y);function I({formId:e}){const r=(0,o.useRef)(null),[t,n]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{if(n(!0),TruForms){if(r.current){r.current.innerHTML="";const t=document.createElement("script");t.innerHTML=`TruForms.createApp("tfb-${e}");`,r.current.appendChild(t)}n(!1)}else N().getScript(b).done((()=>{if(r.current){r.current.innerHTML="";const t=document.createElement("script");t.innerHTML=`TruForms.createApp("tfb-${e}");`,r.current.appendChild(t)}n(!1)})).fail((e=>{console.log(e),n(!1)}))}),[e,r]),(0,i.jsxs)("div",{className:"form-block-preview",children:[(0,i.jsx)("div",{"tru-forms-app-id":"tfb-"+e}),(0,i.jsx)("div",{ref:r}),t&&(0,i.jsx)("div",{className:"spinner-container",children:(0,i.jsx)(l.Spinner,{})})]})}function k(){const e=(0,s.useBlockProps)();return(0,i.jsx)("div",{...e,children:(0,i.jsxs)("div",{className:"form-block-error",children:[(0,i.jsxs)("div",{className:"logo-container",children:[(0,i.jsx)("img",{alt:"",src:`${u}assets/images/logo.svg`,className:"logo-img"}),(0,i.jsx)("span",{className:"logo_title",children:(0,c.__)("TruVISIBILITY","truvisibility-platform")})]}),(0,i.jsxs)("div",{className:"error-container",children:[(0,i.jsx)("div",{className:"error-message",children:(0,c.__)("Your TruVISIBILITY plugin isn’t connected","truvisibility-platform")}),(0,i.jsx)("div",{className:"error-description",children:(0,c.__)("Please login to your account and connect your TruVISIBILITY plugin.","truvisibility-platform")})]}),(0,i.jsx)("button",{className:"connect-button",onClick:()=>{window.location.href=`${f}admin.php?page=truvisibility-platform`},children:(0,c.__)("Connect Plugin","truvisibility-platform")})]})})}var C=window.wp.element;(0,n.registerBlockType)("truvisibility-platform/form-block",{icon:function(){return(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C10.3217 21 8.75078 20.5406 7.40598 19.7408L3 20.9997L4.2589 16.5935C3.45924 15.2488 3 13.678 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.96 12C6.96 14.7835 9.21649 17.04 12 17.04C14.7835 17.04 17.04 14.7835 17.04 12C17.04 9.21649 14.7835 6.96 12 6.96C9.21649 6.96 6.96 9.21649 6.96 12ZM14.0002 12.0003C14.0002 13.1049 13.1047 14.0003 12.0002 14.0003C10.8956 14.0003 10.0002 13.1049 10.0002 12.0003C10.0002 10.8958 10.8956 10.0003 12.0002 10.0003C13.1047 10.0003 14.0002 10.8958 14.0002 12.0003Z"})})},attributes:{formId:{type:"string",default:""},formName:{type:"string",default:""}},edit:function(e){const{attributes:r,isSelected:t}=e,n=(0,s.useBlockProps)();return"1"===h?(0,i.jsx)("div",{...n,children:(0,i.jsxs)("div",{className:"form-block-edit-content",children:[t||!r.formId?(0,i.jsx)(_,{...e}):(0,i.jsx)(i.Fragment,{}),r.formId&&(0,i.jsx)(I,{formId:r.formId})]})}):(0,i.jsx)(k,{})},save:function({attributes:e}){const{formId:r}=e;return r?(0,i.jsx)(C.RawHTML,{...s.useBlockProps.save(),children:`[truvisibility type="form" id="${r}"]`}):(0,i.jsx)(i.Fragment,{})}})},251:function(e,r,t){var n=t(196),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,t){var n,s={},a=null,u=null;for(n in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(u=r.ref),r)o.call(r,n)&&!c.hasOwnProperty(n)&&(s[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===s[n]&&(s[n]=r[n]);return{$$typeof:i,type:e,key:a,ref:u,props:s,_owner:l.current}}r.Fragment=s,r.jsx=a,r.jsxs=a},893:function(e,r,t){e.exports=t(251)},196:function(e){e.exports=window.React}},t={};function n(e){var i=t[e];if(void 0!==i)return i.exports;var s=t[e]={exports:{}};return r[e](s,s.exports,n),s.exports}n.m=r,e=[],n.O=function(r,t,i,s){if(!t){var o=1/0;for(u=0;u<e.length;u++){t=e[u][0],i=e[u][1],s=e[u][2];for(var l=!0,c=0;c<t.length;c++)(!1&s||o>=s)&&Object.keys(n.O).every((function(e){return n.O[e](t[c])}))?t.splice(c--,1):(l=!1,s<o&&(o=s));if(l){e.splice(u--,1);var a=i();void 0!==a&&(r=a)}}return r}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[t,i,s]},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={826:0,431:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var i,s,o=t[0],l=t[1],c=t[2],a=0;if(o.some((function(r){return 0!==e[r]}))){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(c)var u=c(n)}for(r&&r(t);a<o.length;a++)s=o[a],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(u)},t=self.webpackChunktruvisibility_platform=self.webpackChunktruvisibility_platform||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))}();var i=n.O(void 0,[431],(function(){return n(680)}));i=n.O(i)}();
     1!function(){"use strict";var e,r={680:function(e,r,t){var n=window.wp.blocks,i=t(893),o=window.wp.blockEditor,s=t(196),l=window.wp.components,c=window.wp.i18n;function a({placeholder:e,value:r,loadOptions:t,onChange:n}){const[o,a]=(0,s.useState)(!1),[u,d]=(0,s.useState)(!1),[m,f]=(0,s.useState)(),p=function(e){const r=s.useRef(null),t=s.useRef(e);return s.useLayoutEffect((()=>{t.current=e})),s.useEffect((()=>{const e=e=>{const n=r.current;n&&!n.contains(e.target)&&t.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),r}((()=>{a(!1)}));return(0,s.useEffect)((()=>{t&&(d(!0),t((e=>{f(e),d(!1)})))}),[t]),(0,i.jsxs)("div",{className:"trv-selector-container",children:[(0,i.jsxs)("div",{className:"trv-selector-control "+(o?"focused":""),onClick:()=>{a(!o)},children:[(0,i.jsx)("div",{className:"control-value",children:r&&""!==r.label?(0,i.jsx)("div",{className:"single-value",children:r.label}):(0,i.jsx)("div",{className:"placeholder",children:e})}),(0,i.jsx)("div",{className:"indicator"})]}),o&&(0,i.jsxs)("div",{className:"menu-container",ref:p,children:[u&&(0,i.jsx)(l.Spinner,{}),0==m?.length?(0,i.jsx)("div",{className:"no-results",onClick:()=>{a(!1)},children:(0,c.__)("There are no forms created yet.","truvisibility-platform")}):(0,i.jsx)("div",{className:"menu-list",children:((e=[])=>e.map(((e,t)=>{const o=`select-item-${t}`;return(0,i.jsx)("div",{className:"select-item "+(r&&e.value===r.value?"selected":""),id:o,onClick:()=>{n(e),a(!1)},children:e.label})})))(m)})]})]})}const{pluginPath:u,accessToken:d,adminUrl:m,rootUrl:f,title:p,apiUrl:v,isConnected:h,apiNonce:w,formsScript:_,language:b,gdprEnabled:x,gdprPrivacyUrl:g}=window.trv_config;class j{constructor(e,r){this.value=e,this.label=r}}const y=e=>new j(e.id,e.title);function N({attributes:e,setAttributes:r}){const{formId:t,formName:n}=e,[o,l]=(0,s.useState)(null);return(0,i.jsxs)("div",{className:"form-block-settings",children:[(0,i.jsxs)("div",{className:"form-block-header",children:[(0,i.jsx)("div",{className:"logo_img",children:(0,i.jsx)("a",{href:"https://forms.truvisibility.com/",target:"_blank",title:(0,c.__)("TruVISIBILITY Forms","truvisibility-platform"),children:(0,i.jsx)("img",{alt:"Forms",src:`${u}assets/images/forms.svg`})})}),(0,i.jsx)("div",{className:"logo_title",children:(0,c.__)("TruVISIBILITY Forms","truvisibility-platform")})]}),o?(0,i.jsx)("div",{className:"forms-selector-error",children:o}):(0,i.jsx)(a,{placeholder:(0,c.__)("Select A Form...","truvisibility-platform"),value:new j(t,n),loadOptions:e=>{window.trvFormOptions?e(window.trvFormOptions):wp.apiFetch({path:"truvisibility/v1/forms"}).then((r=>{window.trvFormOptions=[...r.map(y)],e(window.trvFormOptions)})).catch((e=>{l(e)}))},onChange:e=>{r({formId:e.value,formName:e.label})}})]})}var I=window.jQuery,O=t.n(I);function F({formId:e}){const r=(0,s.useRef)(null),[t,n]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{let t;if(n(!0),t=x?`\n                window.__truForms = window.__truForms || {};\n                window.__truForms.truFormsAppOptions = {\n                    gdprOptions: {\n                        isGdprEnabled: true,\n                        privacyPolicyUrl: '${g}'\n                    }\n                };\n            `:"\n                window.__truForms = window.__truForms || {};\n                window.__truForms.truFormsAppOptions = {};\n            ",TruForms){if(r.current){r.current.innerHTML="";const n=document.createElement("script");n.innerHTML=`${t}                    \n                    TruForms.createApp("tfb-${e}", window.__truForms.truFormsAppOptions);\n                `,r.current.appendChild(n)}n(!1)}else O().getScript(_).done((()=>{if(r.current){r.current.innerHTML="";const n=document.createElement("script");n.innerHTML=`${t}                    \n                        TruForms.createApp("tfb-${e}", window.__truForms.truFormsAppOptions);\n                    `,r.current.appendChild(n)}n(!1)})).fail((e=>{console.log(e),n(!1)}))}),[e,r]),(0,i.jsxs)("div",{className:"form-block-preview",children:[(0,i.jsx)("div",{"tru-forms-app-id":"tfb-"+e}),(0,i.jsx)("div",{ref:r}),t&&(0,i.jsx)("div",{className:"spinner-container",children:(0,i.jsx)(l.Spinner,{})})]})}function k(){const e=(0,o.useBlockProps)();return(0,i.jsx)("div",{...e,children:(0,i.jsxs)("div",{className:"form-block-error",children:[(0,i.jsxs)("div",{className:"logo-container",children:[(0,i.jsx)("img",{alt:"",src:`${u}assets/images/logo.svg`,className:"logo-img"}),(0,i.jsx)("span",{className:"logo_title",children:(0,c.__)("TruVISIBILITY","truvisibility-platform")})]}),(0,i.jsxs)("div",{className:"error-container",children:[(0,i.jsx)("div",{className:"error-message",children:(0,c.__)("Your TruVISIBILITY plugin isn’t connected","truvisibility-platform")}),(0,i.jsx)("div",{className:"error-description",children:(0,c.__)("Please login to your account and connect your TruVISIBILITY plugin.","truvisibility-platform")})]}),(0,i.jsx)("button",{className:"connect-button",onClick:()=>{window.location.href=`${m}admin.php?page=truvisibility-platform`},children:(0,c.__)("Connect Plugin","truvisibility-platform")})]})})}var C=window.wp.element;(0,n.registerBlockType)("truvisibility-platform/form-block",{icon:function(){return(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C10.3217 21 8.75078 20.5406 7.40598 19.7408L3 20.9997L4.2589 16.5935C3.45924 15.2488 3 13.678 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.96 12C6.96 14.7835 9.21649 17.04 12 17.04C14.7835 17.04 17.04 14.7835 17.04 12C17.04 9.21649 14.7835 6.96 12 6.96C9.21649 6.96 6.96 9.21649 6.96 12ZM14.0002 12.0003C14.0002 13.1049 13.1047 14.0003 12.0002 14.0003C10.8956 14.0003 10.0002 13.1049 10.0002 12.0003C10.0002 10.8958 10.8956 10.0003 12.0002 10.0003C13.1047 10.0003 14.0002 10.8958 14.0002 12.0003Z"})})},attributes:{formId:{type:"string",default:""},formName:{type:"string",default:""}},edit:function(e){const{attributes:r,isSelected:t}=e,n=(0,o.useBlockProps)();return"1"===h?(0,i.jsx)("div",{...n,children:(0,i.jsxs)("div",{className:"form-block-edit-content",children:[t||!r.formId?(0,i.jsx)(N,{...e}):(0,i.jsx)(i.Fragment,{}),r.formId&&(0,i.jsx)(F,{formId:r.formId})]})}):(0,i.jsx)(k,{})},save:function({attributes:e}){const{formId:r}=e;return r?(0,i.jsx)(C.RawHTML,{...o.useBlockProps.save(),children:`[truvisibility type="form" id="${r}"]`}):(0,i.jsx)(i.Fragment,{})}})},251:function(e,r,t){var n=t(196),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,t){var n,o={},a=null,u=null;for(n in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(u=r.ref),r)s.call(r,n)&&!c.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:l.current}}r.Fragment=o,r.jsx=a,r.jsxs=a},893:function(e,r,t){e.exports=t(251)},196:function(e){e.exports=window.React}},t={};function n(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.m=r,e=[],n.O=function(r,t,i,o){if(!t){var s=1/0;for(u=0;u<e.length;u++){t=e[u][0],i=e[u][1],o=e[u][2];for(var l=!0,c=0;c<t.length;c++)(!1&o||s>=o)&&Object.keys(n.O).every((function(e){return n.O[e](t[c])}))?t.splice(c--,1):(l=!1,o<s&&(s=o));if(l){e.splice(u--,1);var a=i();void 0!==a&&(r=a)}}return r}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[t,i,o]},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={826:0,431:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var i,o,s=t[0],l=t[1],c=t[2],a=0;if(s.some((function(r){return 0!==e[r]}))){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(c)var u=c(n)}for(r&&r(t);a<s.length;a++)o=s[a],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(u)},t=self.webpackChunktruvisibility_platform=self.webpackChunktruvisibility_platform||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))}();var i=n.O(void 0,[431],(function(){return n(680)}));i=n.O(i)}();
  • truvisibility-all-in-one-marketing-suite/trunk/config/class-truvisibility-platform-config.php

    r3170278 r3191786  
    55    const PLUGIN_NAME = 'truvisibility-platform';
    66
    7     const PLUGIN_VERSION = '1.1.3';
     7    const PLUGIN_VERSION = '1.2.0';
    88
    99    const CLIENT_ACCESS_TOKEN_OPTION = 'truvisibility_platform_client_access_token';
  • truvisibility-all-in-one-marketing-suite/trunk/services/class-truvisibility-platform-product-info.php

    r3067294 r3191786  
    9595
    9696    /**
     97     * Variable.
     98     *
     99     * @var bool
     100     */
     101    public $variable;
     102
     103    /**
    97104     * Initialize the class and set its properties.
    98105     *
     
    144151            $this->image_url = wc_placeholder_img_src();
    145152        }
     153
     154        $this->variable = $product->product_type == 'variable';
    146155    }
    147156}
  • truvisibility-all-in-one-marketing-suite/trunk/services/class-truvisibility-platform-rest-api.php

    r3170278 r3191786  
    334334        $search_condition = "%" . $wpdb->esc_like($search) . "%";
    335335
    336         $ids = $wpdb->get_results($wpdb->prepare("
    337             SELECT posts.ID FROM $wpdb->posts as posts
    338             LEFT JOIN $wpdb->term_relationships as term_relationships ON posts.ID = term_relationships.object_id
    339             LEFT JOIN $wpdb->postmeta as postmeta ON posts.ID = postmeta.post_id
    340             WHERE 1=1 AND posts.post_type = 'product' AND term_relationships.term_taxonomy_id IN (2,3,4,5)
    341             AND posts.post_status = 'publish'
    342             AND ((posts.post_title LIKE %s) OR (postmeta.meta_key = '_sku' AND postmeta.meta_value LIKE %s))
    343             AND posts.post_password = ''
    344             GROUP BY posts.ID
    345             ORDER BY posts.post_date DESC
    346             ", $search_condition, $search_condition));
    347         $products = array();
    348         foreach (array_slice($ids, ($page - 1) * $page_size, $page_size) as $product_id) {
    349             $products[] = new TruVisibility_Platform_Product_Info($product_id->ID);
    350         }
    351 
    352         $result["total"] = count($ids);
    353         $result["items"] = $products;
     336        $products = $wpdb->get_results($wpdb->prepare("
     337            SELECT
     338                p.ID AS ID, p.post_date
     339            FROM
     340                $wpdb->posts as p
     341                LEFT JOIN $wpdb->postmeta as pm
     342                    ON p.ID = pm.post_id AND pm.meta_key = '_sku'
     343            WHERE
     344                p.post_type = 'product' AND p.post_status = 'publish' AND p.post_password = ''
     345                AND (p.post_title LIKE %s OR pm.meta_value LIKE %s)
     346
     347            UNION
     348
     349            SELECT
     350                p.ID AS ID, p.post_date
     351            FROM
     352                $wpdb->posts as p
     353                LEFT JOIN $wpdb->postmeta as pm
     354                    ON p.ID = pm.post_id AND pm.meta_key = '_sku'
     355                LEFT JOIN $wpdb->postmeta as pm_price
     356                    ON p.ID = pm_price.post_id AND pm_price.meta_key = '_price'
     357            WHERE
     358                p.post_type = 'product_variation' AND p.post_status = 'publish'
     359                AND pm_price.meta_value IS NOT NULL
     360                AND pm_price.meta_value > 0
     361                AND (p.post_title LIKE %s OR pm.meta_value LIKE %s)
     362                AND p.post_parent IN (
     363                        SELECT ID
     364                        FROM wp_posts
     365                        WHERE post_type = 'product' AND post_status = 'publish' AND p.post_password = ''
     366                    )
     367
     368            ORDER BY post_date DESC
     369            ", $search_condition, $search_condition, $search_condition, $search_condition));
     370
     371        $product_infos = array();
     372        foreach (array_slice($products, ($page - 1) * $page_size, $page_size) as $product) {
     373            $product_infos[] = new TruVisibility_Platform_Product_Info($product->ID);
     374        }
     375
     376        $result["total"] = count($products);
     377        $result["items"] = $product_infos;
    354378
    355379        return $result;
     
    433457    {
    434458        $return = array(
    435             'gdpr_enabled'    => $this->integration_state->is_gdpr_enabled(),
     459            'gdpr_enabled'     => $this->integration_state->is_gdpr_enabled(),
    436460            'gdpr_privacy_url' => $this->integration_state->get_gdpr_privacy_url(),
    437461        );
  • truvisibility-all-in-one-marketing-suite/trunk/truvisibility-platform.php

    r3170278 r3191786  
    1010 * Plugin Name:       TruVISIBILITY All-In-One Marketing Suite
    1111 * Description:       The TruVISIBILITY Plugin integrates your website with their all-in-one Marketing Suite featuring a CRM, Email Automation, Forms, & Live Chat/Chatbots.
    12  * Version:           1.1.3
     12 * Version:           1.2.0
    1313 * Author:            TruVisibility, LLC
    1414 * Author URI:        https://truvisibility.com
Note: See TracChangeset for help on using the changeset viewer.