Changeset 3128069
- Timestamp:
- 07/30/2024 11:09:48 AM (17 months ago)
- Location:
- truvisibility-all-in-one-marketing-suite/trunk
- Files:
-
- 1 added
- 20 edited
-
README.txt (modified) (2 diffs)
-
admin/class-truvisibility-platform-admin.php (modified) (4 diffs)
-
admin/css/truvisibility-platform-admin.min.css (modified) (1 diff)
-
admin/css/truvisibility-platform-font.css (modified) (2 diffs)
-
admin/js/truvisibility-platform-admin.js (modified) (3 diffs)
-
admin/views/main.php (modified) (2 diffs)
-
admin/views/settings-modal.php (added)
-
admin/views/unauthorized.php (modified) (1 diff)
-
admin/views/user-info-header.php (modified) (1 diff)
-
config/class-truvisibility-platform-config.php (modified) (2 diffs)
-
includes/class-truvisibility-platform-activator.php (modified) (1 diff)
-
includes/class-truvisibility-platform-deactivator.php (modified) (1 diff)
-
includes/class-truvisibility-platform-integration-state.php (modified) (3 diffs)
-
includes/class-truvisibility-platform.php (modified) (1 diff)
-
languages/truvisibility-platform-ru_RU-dfbff627e6c248bcb3b61d7d06da9ca9.json (modified) (1 diff)
-
languages/truvisibility-platform-ru_RU.mo (modified) (previous)
-
languages/truvisibility-platform-ru_RU.po (modified) (4 diffs)
-
languages/truvisibility-platform.pot (modified) (4 diffs)
-
public/utils/class-truvisibility-platform-shortcode-utils.php (modified) (4 diffs)
-
services/class-truvisibility-platform-rest-api.php (modified) (3 diffs)
-
truvisibility-platform.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
truvisibility-all-in-one-marketing-suite/trunk/README.txt
r3069416 r3128069 5 5 License URI: http://www.gnu.org/licenses/gpl.html 6 6 Requires at least: 5.4 7 Tested up to: 6. 57 Tested up to: 6.6 8 8 Requires PHP: 7.2 9 Stable tag: 1. 0.19 Stable tag: 1.1.0 10 10 11 11 The TruVISIBILITY Plugin integrates your website with their all-in-one Marketing Suite featuring a CRM, Email Automation, Forms, & Live Chat/Chatbots. … … 136 136 == Changelog == 137 137 138 = 1.1.0 = 139 * (added) GDPR support 140 138 141 = 1.0.1 = 139 142 * (fixed) redirection to the admin panel -
truvisibility-all-in-one-marketing-suite/trunk/admin/class-truvisibility-platform-admin.php
r3069416 r3128069 110 110 public function enqueue_scripts() 111 111 { 112 wp_register_script(self::POPPER_JS, 'https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js', array( ), TruVisibility_Platform_Config::PLUGIN_VERSION, true);113 wp_register_script(self::BOOTSTRAP_JS, 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js', array( ), TruVisibility_Platform_Config::PLUGIN_VERSION, true);114 wp_register_script(self::ADMIN_JS, plugin_dir_url(__FILE__) . 'js/truvisibility-platform-admin.js', array( 'jquery'), TruVisibility_Platform_Config::PLUGIN_VERSION, true);112 wp_register_script(self::POPPER_JS, 'https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js', array('jquery'), TruVisibility_Platform_Config::PLUGIN_VERSION, true); 113 wp_register_script(self::BOOTSTRAP_JS, 'https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js', array(self::POPPER_JS), TruVisibility_Platform_Config::PLUGIN_VERSION, true); 114 wp_register_script(self::ADMIN_JS, plugin_dir_url(__FILE__) . 'js/truvisibility-platform-admin.js', array(self::BOOTSTRAP_JS), TruVisibility_Platform_Config::PLUGIN_VERSION, true); 115 115 if (is_admin()) { 116 116 wp_localize_script(self::ADMIN_JS, self::TRUVISIBILITY_CONFIG, $this->get_config()); … … 175 175 176 176 return array( 177 'pluginPath' => TRUVISIBILITY_PLATFORM_PLUGIN_URL, 178 'accessToken' => $access_token, 179 'adminUrl' => admin_url(), 180 'rootUrl' => home_url(), 181 'title' => $this->get_site_title(), 182 'apiUrl' => get_rest_url(), 183 'isConnected' => $this->integration_state->is_plugin_integrated(), 184 'apiNonce' => wp_create_nonce('wp_rest'), 185 'formsScript' => 'https://forms.' . TruVisibility_Platform_Config::$TvUmbrellaRoot . '/static/scripts/embed.js', 186 'authLink' => 'https://integrations.' . TruVisibility_Platform_Config::$TvUmbrellaRoot . '/auth/redirect?root=' . home_url() . '&vendor=wp-v2', 187 'language' => get_bloginfo("language"), 177 'pluginPath' => TRUVISIBILITY_PLATFORM_PLUGIN_URL, 178 'accessToken' => $access_token, 179 'adminUrl' => admin_url(), 180 'rootUrl' => home_url(), 181 'title' => $this->get_site_title(), 182 'apiUrl' => get_rest_url(), 183 'isConnected' => $this->integration_state->is_plugin_integrated(), 184 'apiNonce' => wp_create_nonce('wp_rest'), 185 'formsScript' => 'https://forms.' . TruVisibility_Platform_Config::$TvUmbrellaRoot . '/static/scripts/embed.js', 186 'authLink' => 'https://integrations.' . TruVisibility_Platform_Config::$TvUmbrellaRoot . '/auth/redirect?root=' . home_url() . '&vendor=wp-v2', 187 'language' => get_bloginfo("language"), 188 'gdprEnabled' => $this->integration_state->is_gdpr_enabled(), 189 'gdprPrivacyUrl' => $this->integration_state->get_gdpr_privacy_url() 188 190 ); 189 191 } … … 229 231 if ($current_user) { 230 232 TruVisibility_Platform_Admin::view('main', array( 231 'title' => $this->get_site_title(), 232 'user' => $current_user, 233 'chats' => $this->get_chats_list(), 234 'forms' => $this->get_forms_list())); 233 'title' => $this->get_site_title(), 234 'user' => $current_user, 235 'chats' => $this->get_chats_list(), 236 'forms' => $this->get_forms_list(), 237 'gdprEnabled' => $this->integration_state->is_gdpr_enabled(), 238 'gdprPrivacyUrl' => $this->integration_state->get_gdpr_privacy_url(), 239 )); 235 240 } else { 236 241 TruVisibility_Platform_Admin::view('unauthorized', array()); … … 283 288 } 284 289 290 public function activation_redirect($plugin) 291 { 292 if (get_option(TruVisibility_Platform_Config::ACTIVATION_REDIRECT_OPTION, false)) { 293 delete_option(TruVisibility_Platform_Config::ACTIVATION_REDIRECT_OPTION); 294 wp_redirect(admin_url('admin.php?page=' . TruVisibility_Platform_Config::PLUGIN_NAME)); 295 } 296 } 285 297 } -
truvisibility-all-in-one-marketing-suite/trunk/admin/css/truvisibility-platform-admin.min.css
r3067294 r3128069 1 @import"internal.css";@import"truvisibility-platform-font.css";#wpbody,#wpbody-content,#wpcontent,#wpwrap,body,html{height:100% !important;background-color:rgba(0,0,0,0)}#wpbody-content,#wpcontent{padding:0 !important;position:relative}#wpfooter{display:none !important}.wp-toolbar:has(.just-connected-message){background:#fafbff}ul#adminmenu>li.current>a.current:after{border-right-color:#fafbff}.btn.btn-plugin-primary{display:inline-flex;align-items:center;padding:8px 24px 8px 24px;border-radius:24px;border:1px solid;font-size:16px;line-height:24px;height:40px}.trv-admin-panel{position:relative;display:table ;height:100%;width:100%}.trv-header{height:56px;display:flex;flex-direction:row;flex:0 0 56px;align-items:center;justify-content:end;padding-left:15px;padding-right:15px;background:#fcfdff;box-shadow:0 4px 16px #e6efff;z-index:600;position:sticky;top:32px}@media screen and (max-width: 599px){.trv-header{top:0}}.trv-header .disconnect-link .icon{display:none}@media screen and (max-width: 599px){.trv-header .disconnect-link{margin-left:16px;padding:0;width:40px;height:40px;display:flex;justify-content:center;align-items:center}.trv-header .disconnect-link__text{display:none}.trv-header .disconnect-link .icon{display:initial}}main.trv-main{padding:40px 55px;transition:padding .5s ease-in-out;min-height:calc(100% - 120px);display:flex;flex-direction:column}@media screen and (max-width: 599px){main.trv-main{padding:20px 12px}}.signin-link{padding:8px 15px 8px 15px;font-size:18px;font-weight:600;line-height:24px;letter-spacing:0em;text-align:left;color:#202020;text-decoration:none;cursor:pointer}.signin-link:hover{color:#1399e7}.content{display:flex;flex-direction:column;max-width:none;align-items:center;margin:0 auto;padding-top:60px;transition:padding .5s ease-in-out;height:100%}@media screen and (max-width: 599px){.content{padding-top:0}}.content h1{font-size:32px;font-weight:700;line-height:40px;text-align:center;color:#202020;padding:0;margin:0 0 15px 0}.content h1 img{margin-right:16px;transition:margin-right .5s ease-in-out;vertical-align:middle}.content h1 .primary-title:after{content:" "}@media screen and (max-width: 599px){.content h1 img{margin-right:4px}.content h1 .primary-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.content h1 .primary-title:after{content:"";display:none}}.subheader{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;row-gap:16px;-moz-column-gap:32px;column-gap:32px;padding:0;margin:0 0 32px 0}.subheader li{display:flex;flex-direction:row;align-items:center;line-height:26px;list-style-type:none;font-size:20px;font-weight:600;color:#202020}.subheader li:before{content:url(../../assets/images/list-marker.svg);margin-right:13px;height:26px;line-height:26px}.products-list{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:16px;max-width:855px;margin-bottom:80px}.products-list{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:16px;max-width:855px;margin-bottom:80px}.products-list__item{width:168px;height:168px;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:9px;color:#3b507d}@media screen and (max-width: 599px){.products-list__item{width:156px}}.products-list__item:hover{color:#1399e7}.products-list__item:focus{outline:0;box-shadow:none}.products-list__item span{font-size:18px;font-weight:600;line-height:24px;flex:0 0 24px}.get-started{padding:16px 24px 16px 24px;border-radius:40px;border:none;background:#ff9a00;color:#fff;font-size:18px;font-weight:600;line-height:24px;letter-spacing:0em;text-align:center;cursor:pointer}.get-started:hover,.get-started:active,.get-started:focus{background-color:#f59700}.get-started:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}#trv-spinner{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;flex-direction:column;align-items:center;opacity:.7;background:#fff;z-index:99999}#trv-spinner .spinner.global{display:none}#trv-spinner.global{opacity:1}#trv-spinner.global .spinner-border{display:none}#trv-spinner.global .spinner.global{display:flex}#trv-spinner,#trv-spinner .spinner{transition:opacity .7s ease-out}#trv-spinner.hiding{opacity:1;display:none}#trv-spinner.hiding .spinner{opacity:.7}.welcome-message{font-size:18px;font-weight:600;flex:1;transition:font-size .5s ease-in-out}@media screen and (max-width: 599px){.welcome-message{font-size:14px}}.content-products{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;align-content:start;gap:20px}.content-products product-tile{width:377px;flex:0 0 377px;transition:width .5s ease-in-out;border:1px solid #dbdbdb;border-radius:8px;height:200px;background:#fff;display:flex;flex-direction:column}.content-products product-tile header{display:flex;flex-direction:row;align-items:center;margin:0 0 16px 0;padding:16px 16px 0 16px}.content-products product-tile header img{height:48px;margin-right:8px}.content-products product-tile header h1{flex:1;font-size:24px;font-weight:700;padding:0;margin:0;color:#3b507d}.content-products product-tile main{padding:16px 16px 0 16px;font-size:14px;font-weight:500;line-height:20px;color:#7b828e;flex:1}.content-products product-tile connectable-menu .integration-menu-toggle{height:52px;width:100%;font-size:14px;font-weight:600;line-height:20px;color:#3b507d;display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:0 0 8px 8px}.content-products product-tile connectable-menu .integration-menu-toggle .icon{font-size:16px;color:#3b507d;margin-left:18px}.content-products product-tile connectable-menu .integration-menu-toggle:hover,.content-products product-tile connectable-menu .integration-menu-toggle:focus,.content-products product-tile connectable-menu .integration-menu-toggle:hover .icon,.content-products product-tile connectable-menu .integration-menu-toggle:focus .icon{color:#12a3f8;background:rgba(0,0,0,0)}.content-products product-tile connectable-menu .dropdown .dropdown-menu.connectable-dropdown{margin-top:4px !important;margin-left:-1px !important;width:100%;padding:3px 0}.content-products product-tile connectable-menu .dropdown.show .dropdown-menu{display:block}.content-products product-tile connectable-menu .integration-menu{margin:0;padding:0;max-height:250px;overflow:auto}.content-products product-tile connectable-menu .connectable-item{display:flex;flex-direction:row;align-items:center;height:50px;padding:0 12px 0 12px;margin-bottom:0}.content-products product-tile connectable-menu .connectable-item:hover{background:rgba(0,0,0,0)}.content-products product-tile connectable-menu .connectable-item.empty{color:#7b828e}.content-products product-tile connectable-menu .connectable-item__status{content:"";width:8px;height:8px;border-radius:4px;display:block;margin-right:12px;flex:0 0 8px}.content-products product-tile connectable-menu .connectable-item__status--active{background:#3ccd68}.content-products product-tile connectable-menu .connectable-item__status--disabled{background:#dbdbdb}.content-products product-tile connectable-menu .connectable-item__status--pending{background:#ff9a00}.content-products product-tile connectable-menu .connectable-item__name{flex:1 1 auto;font-size:16px;font-weight:500;line-height:24px}.content-products product-tile connectable-menu .connectable-item .btn.btn-icon{padding:8px;margin-left:7px}.content-products product-tile connectable-menu .connectable-item .btn.btn-icon .icon{font-size:16px}@media screen and (max-width: 599px){.content-products{flex-direction:column;flex-wrap:nowrap}.content-products product-tile{width:100%;flex:0 0 auto}}.access-denied{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.access-denied h1{font-size:40px;transition:font-size .5s ease-in-out;font-weight:700;line-height:48px;text-align:center;margin-bottom:8px}@media screen and (max-width: 599px){.access-denied h1{font-size:32px}}.access-denied section{font-size:18px;font-weight:500;line-height:28px;text-align:center;margin-bottom:64px;transition:margin-bottom .5s ease-in-out}@media screen and (max-width: 599px){.access-denied section{margin-bottom:40px}}.access-denied img{max-width:318px;width:100%}.rotatable{transition:transform .5s ease-in-out}.integration-menu-toggle.show .rotatable{transform:rotate(180deg)}.btn-icon{position:relative}.content-products product-tile connectable-menu .connectable-item .btn.btn-icon .done .icon{font-size:12px;color:#fff}.done{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center;display:none}.done.show{display:flex}.done__body{display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:50%;animation:doneEnter .5s cubic-bezier(0.895, 0.03, 0.685, 0.22) forwards}.done .icon{font-size:12px;opacity:1;transform:scale(0);color:#fff;animation:iconEnter .3s cubic-bezier(1, 0.008, 0.565, 1.65) .1s 1 forwards}@keyframes doneEnter{0%{width:75%;height:75%;opacity:.1}30%{width:100%;height:100%;background:#4ad173;opacity:.6}60%{width:100%;height:100%;background:#4ad173;opacity:.8}100%{width:100%;height:100%;background:#4ad173;opacity:1}}@keyframes iconEnter{from{opacity:0;transform:scale(0.3)}to{opacity:1;transform:scale(1)}}.trv-footer a{font-size:16px;font-weight:600;line-height:24px}footer.main-footer{padding:0 55px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;row-gap:20px;-moz-column-gap:32px;column-gap:32px;margin-top:32px;margin-bottom:24px}footer.main-footer a{line-height:24px;font-size:16px;font-weight:600}.modal-dialog-no-min-height .modal-content,.modal-dialog-no-min-height .modal-body{min-height:0 !important}.just-connected-message{padding:40px 55px;transition:padding .5s ease-in-out;position:absolute;top:56px;bottom:0;left:0;right:0;z-index:500;background:#fafbff;display:none;flex-direction:column;align-items:center;justify-content:center}@media screen and (max-width: 599px){.just-connected-message{padding:32px 12px}}.just-connected-message__text{font-size:24px;font-weight:700;line-height:32px;max-width:843px;text-align:center;margin-top:40px}@keyframes slideDownAndUp{0%{transform:translateY(-100%);opacity:0}50%{transform:translateY(0%);opacity:1}100%{transform:translateY(-100%);opacity:0}}@keyframes slideUpAndDown{0%{transform:translateY(100%);opacity:0}50%{transform:translateY(0%);opacity:1}100%{transform:translateY(100%);opacity:0}}.just-connected-message .img-animation-target{animation:slideDownAndUp 3s ease forwards}.just-connected-message .text-animation-target{animation:slideUpAndDown 3s ease forwards}1 @import"internal.css";@import"truvisibility-platform-font.css";#wpbody,#wpbody-content,#wpcontent,#wpwrap,body,html{height:100% !important;background-color:rgba(0,0,0,0)}#wpbody-content,#wpcontent{padding:0 !important;position:relative}#wpfooter{display:none !important}.wp-toolbar:has(.just-connected-message){background:#fafbff}ul#adminmenu>li.current>a.current:after{border-right-color:#fafbff}.btn.btn-plugin-primary{display:inline-flex;align-items:center;padding:8px 24px 8px 24px;border-radius:24px;border:1px solid;font-size:16px;line-height:24px;height:40px}.trv-admin-panel{position:relative;display:table !important;height:100%;width:100%}.trv-header{height:56px;display:flex;flex-direction:row;flex:0 0 56px;align-items:center;justify-content:end;padding-left:15px;padding-right:15px;background:#fcfdff;box-shadow:0 4px 16px #e6efff;z-index:600;position:sticky;top:32px}@media screen and (max-width: 599px){.trv-header{top:0}}.trv-header .disconnect-link .icon{display:none}@media screen and (max-width: 599px){.trv-header .disconnect-link{margin-left:16px;padding:0;width:40px;height:40px;display:flex;justify-content:center;align-items:center}.trv-header .disconnect-link__text{display:none}.trv-header .disconnect-link .icon{display:initial}}main.trv-main{padding:40px 55px;transition:padding .5s ease-in-out;min-height:calc(100% - 120px);display:flex;flex-direction:column}@media screen and (max-width: 599px){main.trv-main{padding:20px 12px}}.signin-link{padding:8px 15px 8px 15px;font-size:18px;font-weight:600;line-height:24px;letter-spacing:0em;text-align:left;color:#202020;text-decoration:none;cursor:pointer}.signin-link:hover{color:#1399e7}.content{display:flex;flex-direction:column;max-width:none;align-items:center;margin:0 auto;padding-top:60px;transition:padding .5s ease-in-out;height:100%}@media screen and (max-width: 599px){.content{padding-top:0}}.content h1{font-size:32px;font-weight:700;line-height:40px;text-align:center;color:#202020;padding:0;margin:0 0 15px 0}.content h1 img{margin-right:16px;transition:margin-right .5s ease-in-out;vertical-align:middle}.content h1 .primary-title:after{content:" "}@media screen and (max-width: 599px){.content h1 img{margin-right:4px}.content h1 .primary-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.content h1 .primary-title:after{content:"";display:none}}.subheader{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;row-gap:16px;-moz-column-gap:32px;column-gap:32px;padding:0;margin:0 0 32px 0}.subheader li{display:flex;flex-direction:row;align-items:center;line-height:26px;list-style-type:none;font-size:20px;font-weight:600;color:#202020}.subheader li:before{content:url(../../assets/images/list-marker.svg);margin-right:13px;height:26px;line-height:26px}.products-list{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:16px;max-width:855px;margin-bottom:80px}.products-list{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:16px;max-width:855px;margin-bottom:80px}.products-list__item{width:168px;height:168px;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:9px;color:#3b507d}@media screen and (max-width: 599px){.products-list__item{width:156px}}.products-list__item:hover{color:#1399e7}.products-list__item:focus{outline:0;box-shadow:none}.products-list__item span{font-size:18px;font-weight:600;line-height:24px;flex:0 0 24px}.get-started{padding:16px 24px 16px 24px;border-radius:40px;border:none;background:#ff9a00;color:#fff;font-size:18px;font-weight:600;line-height:24px;letter-spacing:0em;text-align:center;cursor:pointer}.get-started:hover,.get-started:active,.get-started:focus{background-color:#f59700}.get-started:focus{outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}#trv-spinner{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;flex-direction:column;align-items:center;opacity:.7;background:#fff;z-index:99999}#trv-spinner .spinner.global{display:none}#trv-spinner.global{opacity:1}#trv-spinner.global .spinner-border{display:none}#trv-spinner.global .spinner.global{display:flex}#trv-spinner,#trv-spinner .spinner{transition:opacity .7s ease-out}#trv-spinner.hiding{opacity:1;display:none}#trv-spinner.hiding .spinner{opacity:.7}.welcome-message{font-size:18px;font-weight:600;flex:1;transition:font-size .5s ease-in-out}@media screen and (max-width: 599px){.welcome-message{font-size:14px}}.content-products{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;align-content:start;gap:20px}.content-products product-tile{width:377px;flex:0 0 377px;transition:width .5s ease-in-out;border:1px solid #dbdbdb;border-radius:8px;height:200px;background:#fff;display:flex;flex-direction:column}.content-products product-tile header{display:flex;flex-direction:row;align-items:center;margin:0 0 16px 0;padding:16px 16px 0 16px}.content-products product-tile header img{height:48px;margin-right:8px}.content-products product-tile header h1{flex:1;font-size:24px;font-weight:700;padding:0;margin:0;color:#3b507d}.content-products product-tile main{padding:16px 16px 0 16px;font-size:14px;font-weight:500;line-height:20px;color:#7b828e;flex:1}.content-products product-tile connectable-menu .integration-menu-toggle{height:52px;width:100%;font-size:14px;font-weight:600;line-height:20px;color:#3b507d;display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:0 0 8px 8px}.content-products product-tile connectable-menu .integration-menu-toggle .icon{font-size:16px;color:#3b507d;margin-left:18px}.content-products product-tile connectable-menu .integration-menu-toggle:hover,.content-products product-tile connectable-menu .integration-menu-toggle:focus,.content-products product-tile connectable-menu .integration-menu-toggle:hover .icon,.content-products product-tile connectable-menu .integration-menu-toggle:focus .icon{color:#12a3f8;background:rgba(0,0,0,0)}.content-products product-tile connectable-menu .dropdown .dropdown-menu.connectable-dropdown{margin-top:4px !important;margin-left:-1px !important;width:100%;padding:3px 0}.content-products product-tile connectable-menu .dropdown.show .dropdown-menu{display:block}.content-products product-tile connectable-menu .integration-menu{margin:0;padding:0;max-height:250px;overflow:auto}.content-products product-tile connectable-menu .connectable-item{display:flex;flex-direction:row;align-items:center;height:50px;padding:0 12px 0 12px;margin-bottom:0}.content-products product-tile connectable-menu .connectable-item:hover{background:rgba(0,0,0,0)}.content-products product-tile connectable-menu .connectable-item.empty{color:#7b828e}.content-products product-tile connectable-menu .connectable-item__status{content:"";width:8px;height:8px;border-radius:4px;display:block;margin-right:12px;flex:0 0 8px}.content-products product-tile connectable-menu .connectable-item__status--active{background:#3ccd68}.content-products product-tile connectable-menu .connectable-item__status--disabled{background:#dbdbdb}.content-products product-tile connectable-menu .connectable-item__status--pending{background:#ff9a00}.content-products product-tile connectable-menu .connectable-item__name{flex:1 1 auto;font-size:16px;font-weight:500;line-height:24px}.content-products product-tile connectable-menu .connectable-item .btn.btn-icon{padding:8px;margin-left:7px}.content-products product-tile connectable-menu .connectable-item .btn.btn-icon .icon{font-size:16px}@media screen and (max-width: 599px){.content-products{flex-direction:column;flex-wrap:nowrap}.content-products product-tile{width:100%;flex:0 0 auto}}.access-denied{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.access-denied h1{font-size:40px;transition:font-size .5s ease-in-out;font-weight:700;line-height:48px;text-align:center;margin-bottom:8px}@media screen and (max-width: 599px){.access-denied h1{font-size:32px}}.access-denied section{font-size:18px;font-weight:500;line-height:28px;text-align:center;margin-bottom:64px;transition:margin-bottom .5s ease-in-out}@media screen and (max-width: 599px){.access-denied section{margin-bottom:40px}}.access-denied img{max-width:318px;width:100%}.rotatable{transition:transform .5s ease-in-out}.integration-menu-toggle.show .rotatable{transform:rotate(180deg)}.btn-icon{position:relative}.content-products product-tile connectable-menu .connectable-item .btn.btn-icon .done .icon{font-size:12px;color:#fff}.done{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center;display:none}.done.show{display:flex}.done__body{display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:50%;animation:doneEnter .5s cubic-bezier(0.895, 0.03, 0.685, 0.22) forwards}.done .icon{font-size:12px;opacity:1;transform:scale(0);color:#fff;animation:iconEnter .3s cubic-bezier(1, 0.008, 0.565, 1.65) .1s 1 forwards}@keyframes doneEnter{0%{width:75%;height:75%;opacity:.1}30%{width:100%;height:100%;background:#4ad173;opacity:.6}60%{width:100%;height:100%;background:#4ad173;opacity:.8}100%{width:100%;height:100%;background:#4ad173;opacity:1}}@keyframes iconEnter{from{opacity:0;transform:scale(0.3)}to{opacity:1;transform:scale(1)}}.trv-footer a{font-size:16px;font-weight:600;line-height:24px}footer.main-footer{padding:0 55px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;row-gap:20px;-moz-column-gap:32px;column-gap:32px;margin-top:32px;margin-bottom:24px}footer.main-footer a{line-height:24px;font-size:16px;font-weight:600}.modal-dialog-no-min-height .modal-content,.modal-dialog-no-min-height .modal-body{min-height:0 !important}.just-connected-message{padding:40px 55px;transition:padding .5s ease-in-out;position:absolute;top:56px;bottom:0;left:0;right:0;z-index:500;background:#fafbff;display:none;flex-direction:column;align-items:center;justify-content:center}@media screen and (max-width: 599px){.just-connected-message{padding:32px 12px}}.just-connected-message__text{font-size:24px;font-weight:700;line-height:32px;max-width:843px;text-align:center;margin-top:40px}@keyframes slideDownAndUp{0%{transform:translateY(-100%);opacity:0}50%{transform:translateY(0%);opacity:1}100%{transform:translateY(-100%);opacity:0}}@keyframes slideUpAndDown{0%{transform:translateY(100%);opacity:0}50%{transform:translateY(0%);opacity:1}100%{transform:translateY(100%);opacity:0}}.just-connected-message .img-animation-target{animation:slideDownAndUp 3s ease forwards}.just-connected-message .text-animation-target{animation:slideUpAndDown 3s ease forwards}.action-icon-wrapper{min-width:32px;min-height:32px;border-radius:50%;font-weight:600;display:flex;align-items:center;justify-content:center;color:#7b828e;cursor:pointer;margin-right:12px}.action-icon-wrapper:hover{background-color:#f2f5f7}.action-icon-wrapper .icon{font-size:24px}.tooltip.show{opacity:1}.tooltip .tooltip-arrow{display:none}.tooltip .tooltip-inner{padding:8px 12px;border-radius:4px;background-color:#fff;color:#202020;font-size:13px;box-shadow:0px 0px 2px rgba(0,0,0,.1),0px 4px 16px rgba(0,0,0,.2)}.btn:not(.btn-link).btn-save{padding:8px 25px;font-weight:700}.notification-panel{margin:0}.notification-panel .notification-panel-content .text a{font-weight:500}.form-group{margin-top:20px}input[type=checkbox].switchbox:checked::before,input[type=checkbox].switchbox.checked::before{transform:translate(15px, 0);left:3px;top:5px}.modal-dialog .modal-content .modal-header .close-btn{background-color:#f2f5f7;border-radius:50%;font-size:18px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#202020;border:0;position:absolute;right:8px;top:8px} -
truvisibility-all-in-one-marketing-suite/trunk/admin/css/truvisibility-platform-font.css
r3067294 r3128069 1 1 @font-face { 2 2 font-family: 'truintegrations'; 3 src: url('fonts/truintegrations.eot? 93qa3g');4 src: url('fonts/truintegrations.eot? 93qa3g#iefix') format('embedded-opentype'),5 url('fonts/truintegrations.ttf? 93qa3g') format('truetype'),6 url('fonts/truintegrations.woff? 93qa3g') format('woff'),7 url('fonts/truintegrations.svg? 93qa3g#truintegrations') format('svg');3 src: url('fonts/truintegrations.eot?vdoffa'); 4 src: url('fonts/truintegrations.eot?vdoffa#iefix') format('embedded-opentype'), 5 url('fonts/truintegrations.ttf?vdoffa') format('truetype'), 6 url('fonts/truintegrations.woff?vdoffa') format('woff'), 7 url('fonts/truintegrations.svg?vdoffa#truintegrations') format('svg'); 8 8 font-weight: normal; 9 9 font-style: normal; … … 41 41 content: "\e983"; 42 42 } 43 .icon-settings:before { 44 content: "\e900"; 45 } 46 .icon-info:before { 47 content: "\e901"; 48 } 49 .icon-close:before { 50 content: "\e902"; 51 } -
truvisibility-all-in-one-marketing-suite/trunk/admin/js/truvisibility-platform-admin.js
r3067294 r3128069 37 37 } 38 38 } 39 ); 39 ); 40 40 })(jQuery); 41 42 jQuery(document).ready(function() { 43 jQuery("body").tooltip({ selector: '[data-bs-toggle=tooltip]' }); 44 }); 41 45 42 46 function redirectTo(url) { … … 49 53 } 50 54 51 function copyToClipboard(text) { 52 var aux = document.createElement("div"); 53 aux.setAttribute("contentEditable", true); 54 aux.innerHTML = text; 55 aux.setAttribute("onfocus", "document.execCommand('selectAll',false,null)"); 56 document.body.appendChild(aux); 57 aux.focus(); 55 function copyToClipboard(value) { 56 if (!navigator.clipboard) { 57 this.fallbackCopy(value); 58 return; 59 } 60 61 navigator.clipboard.writeText(value).then(() => { 62 // do nothing 63 }, err => { 64 this.fallbackCopy(value); 65 }); 66 } 67 68 function fallbackCopy(value) { 69 const textArea = document.createElement("textarea"); 70 textArea.innerHTML = value; 71 textArea.style.position = "fixed"; 72 document.body.appendChild(textArea); 73 textArea.focus(); 74 textArea.select(); 58 75 document.execCommand("copy"); 59 document.body.removeChild(aux); 76 77 document.body.removeChild(textArea); 60 78 } 61 79 … … 130 148 jQuery("#trv-spinner").toggleClass("global", isGlobal); 131 149 } 150 151 function toggleGdpr(e) { 152 document.getElementById('privacyInput').disabled = !e.target.checked; 153 enableSaveGdpr(); 154 } 155 156 function saveGdprSettings() { 157 setLoading(true, false); 158 159 trv_config.gdprEnabled = jQuery('#chkGdprEnabled').prop('checked'); 160 trv_config.gdprPrivacyUrl = jQuery('#privacyInput').val(); 161 162 closeModal('settings-modal'); 163 jQuery.ajax({ 164 url: trv_config.apiUrl + 'truvisibility/v1/save-gdpr-settings', 165 method: 'POST', 166 contentType: 'application/json; charset=utf-8', 167 dataType: "json", 168 data: JSON.stringify({ 169 'gdpr_enabled': trv_config.gdprEnabled, 170 'gdpr_privacy_url': trv_config.gdprPrivacyUrl 171 }), 172 beforeSend: function (xhr) { 173 xhr.setRequestHeader('X-WP-Nonce', trv_config.apiNonce); 174 } 175 }).always(function() { 176 setLoading(false, false); 177 }); 178 } 179 180 function enableSaveGdpr() { 181 jQuery('#saveGdprBtn').removeAttr('disabled'); 182 } 183 184 jQuery('#settings-modal').on('hidden.bs.modal', function (e) { 185 jQuery('#chkGdprEnabled').prop('checked', trv_config.gdprEnabled); 186 jQuery('#privacyInput').val(trv_config.gdprPrivacyUrl); 187 jQuery('#saveGdprBtn').prop('disabled', 'disabled'); 188 }) -
truvisibility-all-in-one-marketing-suite/trunk/admin/views/main.php
r3067294 r3128069 16 16 ?> 17 17 18 <div class="trv-admin-panel" >18 <div class="trv-admin-panel" style="display: none;"> 19 19 <?php TruVisibility_Platform_Admin::view( 'loading' ); ?> 20 20 … … 118 118 </div> 119 119 </div> 120 121 <!-- Modal --> 122 <?php TruVisibility_Platform_Admin::view( 'settings-modal', 123 array( 124 'gdprEnabled' => $gdprEnabled, 125 'gdprPrivacyUrl' => $gdprPrivacyUrl 126 )); 127 ?> 120 128 </div> -
truvisibility-all-in-one-marketing-suite/trunk/admin/views/unauthorized.php
r3067294 r3128069 19 19 ?> 20 20 21 <div class="trv-admin-panel" >21 <div class="trv-admin-panel" style="display: none;"> 22 22 <?php TruVisibility_Platform_Admin::view( 'loading' ); ?> 23 23 -
truvisibility-all-in-one-marketing-suite/trunk/admin/views/user-info-header.php
r3067294 r3128069 4 4 <?php esc_html_e('TruVISIBILITY Plugin connected to ','truvisibility-platform'); echo esc_html($user_name); ?> 5 5 </span> 6 <a class="disconnect-link btn-plugin-primary btn btn-outline-primary text-nowrap text-truncate" data-bs-toggle="modal" data-bs-target="#disconnect-modal"><!-- onclick="openModal()"--> 6 7 8 <span data-bs-toggle="modal" data-bs-target="#settings-modal"> 9 <span class="action-icon-wrapper" title="<?php esc_html_e('Settings','truvisibility-platform'); ?>" 10 data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-offset="0,5" data-bs-trigger="hover"> 11 <span class="icon icon-settings"></span> 12 </span> 13 </span> 14 15 <a class="disconnect-link btn-plugin-primary btn btn-outline-primary text-nowrap text-truncate" data-bs-toggle="modal" data-bs-target="#disconnect-modal"> 7 16 <span class="disconnect-link__text"><?php esc_html_e('Disconnect Plugin','truvisibility-platform'); ?></span> 8 17 <span class="icon icon-unlink"></span> -
truvisibility-all-in-one-marketing-suite/trunk/config/class-truvisibility-platform-config.php
r3069420 r3128069 5 5 const PLUGIN_NAME = 'truvisibility-platform'; 6 6 7 const PLUGIN_VERSION = '1. 0.1';7 const PLUGIN_VERSION = '1.1.0'; 8 8 9 9 const CLIENT_ACCESS_TOKEN_OPTION = 'truvisibility_platform_client_access_token'; … … 12 12 13 13 const SERVER_ACCESS_TOKEN_OPTION = 'truvisibility_platform_server_access_token'; 14 const SERVER_REFRESH_TOKEN_OPTION = 'truvisibility_platform_server_refresh_token'; 15 const SERVER_ACCESS_TOKEN_EXPIRES_OPTION = 'truvisibility_platform_server_expires'; 14 const SERVER_REFRESH_TOKEN_OPTION = 'truvisibility_platform_server_refresh_token'; 15 const SERVER_ACCESS_TOKEN_EXPIRES_OPTION = 'truvisibility_platform_server_expires'; 16 17 const GDPR_ENABLED = 'truvisibility_platform_gdpr_enabled'; 18 const GDPR_PRIVACY_URL = 'truvisibility_platform_gdpr_privacy_url'; 19 20 const ACTIVATION_REDIRECT_OPTION = 'truvisibility_platform_activation_redirect'; 16 21 17 22 public static $TvUmbrellaRoot = 'truvisibility.com'; -
truvisibility-all-in-one-marketing-suite/trunk/includes/class-truvisibility-platform-activator.php
r3069416 r3128069 29 29 30 30 update_option(TruVisibility_Platform_Config::CLIENT_ACCESS_TOKEN_OPTION, md5(uniqid(wp_rand(), true))); 31 wp_redirect(admin_url('admin.php?page=' . TruVisibility_Platform_Config::PLUGIN_NAME));31 add_option(TruVisibility_Platform_Config::ACTIVATION_REDIRECT_OPTION, true); 32 32 } 33 33 -
truvisibility-all-in-one-marketing-suite/trunk/includes/class-truvisibility-platform-deactivator.php
r3069416 r3128069 34 34 35 35 delete_option(TruVisibility_Platform_Config::CLIENT_ACCESS_TOKEN_OPTION); 36 delete_option(TruVisibility_Platform_Config::ACTIVATION_REDIRECT_OPTION); 36 37 } 37 38 -
truvisibility-all-in-one-marketing-suite/trunk/includes/class-truvisibility-platform-integration-state.php
r3067294 r3128069 94 94 } 95 95 96 /** 97 * @return bool 98 */ 99 public function is_gdpr_enabled() 100 { 101 return boolval(get_option(TruVisibility_Platform_Config::GDPR_ENABLED, false)); 102 } 103 104 /** 105 * @return string|null 106 */ 107 public function get_gdpr_privacy_url() 108 { 109 return get_option(TruVisibility_Platform_Config::GDPR_PRIVACY_URL, null); 110 } 111 96 112 public function save_auth($access_token, $refresh_token, $expires_in) 97 113 { … … 136 152 delete_option(TruVisibility_Platform_Config::SERVER_REFRESH_TOKEN_OPTION); 137 153 delete_option(TruVisibility_Platform_Config::SERVER_ACCESS_TOKEN_EXPIRES_OPTION); 154 delete_option(TruVisibility_Platform_Config::GDPR_ENABLED); 155 delete_option(TruVisibility_Platform_Config::GDPR_PRIVACY_URL); 156 } 157 158 public function save_gdpr_settings($gdpr_enabled, $gdpr_privacy_url) 159 { 160 update_option(TruVisibility_Platform_Config::GDPR_ENABLED, boolval($gdpr_enabled)); 161 update_option(TruVisibility_Platform_Config::GDPR_PRIVACY_URL, $gdpr_privacy_url); 138 162 } 139 163 … … 225 249 { 226 250 $this->api_client->update_server_access_token($this->get_server_access_token()); 227 return $this->api_client->get_current_user(); 251 $account_id = $this->get_account_id(); 252 $current_user = $this->api_client->get_current_user(); 253 if ($current_user && empty($account_id)) { 254 $this->connect_account($current_user->account_id, $this->get_server_access_token()); 255 } 256 return $current_user; 228 257 } 229 258 -
truvisibility-all-in-one-marketing-suite/trunk/includes/class-truvisibility-platform.php
r3069416 r3128069 198 198 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts'); 199 199 $this->loader->add_action('admin_menu', $plugin_admin, 'register_admin_menu'); 200 $this->loader->add_action('admin_init', $plugin_admin, 'activation_redirect'); 200 201 $this->loader->add_action('init', $plugin_admin, 'register_form_block'); 201 202 $this->loader->add_action('enqueue_block_assets', $plugin_admin, 'register_block_assets'); -
truvisibility-all-in-one-marketing-suite/trunk/languages/truvisibility-platform-ru_RU-dfbff627e6c248bcb3b61d7d06da9ca9.json
r3067294 r3128069 1 {"translation-revision-date":"2024-0 3-27 14:05+0300","generator":"WP-CLI\/2.8.1","source":"build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru_RU","plural-forms":"nplurals=2; plural=(n != 1);"},"TruVISIBILITY":["TruVISIBILITY"],"Connect Plugin":["\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u041f\u043b\u0430\u0433\u0438\u043d"],"There are no forms created yet.":[""],"TruVISIBILITY Forms":["TruVISIBILITY \u0424\u043e\u0440\u043c\u044b"],"Select A Form...":["\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443..."],"Your TruVISIBILITY plugin isn\u2019t connected":["\u0412\u0430\u0448 TruVISIBILITY \u043f\u043b\u0430\u0433\u0438\u043d \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d"],"Please login to your account and connect your TruVISIBILITY plugin.":["\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 TruVISIBILITY \u043f\u043b\u0430\u0433\u0438\u043d."]}}}1 {"translation-revision-date":"2024-04-15 12:35+0300","generator":"WP-CLI\/2.8.1","source":"build\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"ru_RU","plural-forms":"nplurals=2; plural=(n != 1);"},"TruVISIBILITY":["TruVISIBILITY"],"Connect Plugin":["\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u041f\u043b\u0430\u0433\u0438\u043d"],"There are no forms created yet.":["\u0424\u043e\u0440\u043c\u044b \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u044b"],"TruVISIBILITY Forms":["TruVISIBILITY \u0424\u043e\u0440\u043c\u044b"],"Select A Form...":["\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443..."],"Your TruVISIBILITY plugin isn\u2019t connected":["\u0412\u0430\u0448 \u043f\u043b\u0430\u0433\u0438\u043d TruVISIBILITY \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d"],"Please login to your account and connect your TruVISIBILITY plugin.":["\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0441\u0432\u043e\u044e \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043f\u043b\u0430\u0433\u0438\u043d TruVISIBILITY."]}}} -
truvisibility-all-in-one-marketing-suite/trunk/languages/truvisibility-platform-ru_RU.po
r3067294 r3128069 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 9 "Content-Transfer-Encoding: 8bit\n" 10 "POT-Creation-Date: 2024-0 3-27T11:59:35+01:00\n"11 "PO-Revision-Date: 2024-0 3-27 14:05+0300\n"10 "POT-Creation-Date: 2024-04-15T11:26:17+02:00\n" 11 "PO-Revision-Date: 2024-04-15 12:35+0300\n" 12 12 "Language: ru_RU\n" 13 13 "X-Generator: Poedit 3.3.2\n" … … 33 33 #: admin/class-truvisibility-platform-admin.php:124 34 34 #: admin/views/loading.php:9 35 #: admin/views/unauthorized.php:3 835 #: admin/views/unauthorized.php:34 36 36 #: build/index.js:1 37 37 msgid "TruVISIBILITY" 38 38 msgstr "TruVISIBILITY" 39 39 40 #: admin/views/main.php:36 40 #: admin/class-truvisibility-platform-admin.php:256 41 msgid "Embedded Widget" 42 msgstr "Встроенный виджет" 43 44 #: admin/class-truvisibility-platform-admin.php:259 45 #: admin/class-truvisibility-platform-admin.php:282 46 msgid "Copy" 47 msgstr "Копировать" 48 49 #: admin/views/main.php:32 41 50 msgid "Chat" 42 51 msgstr "Чат" 43 52 44 #: admin/views/main.php:3 753 #: admin/views/main.php:33 45 54 msgid "Add a chatbot or Live Chat." 46 55 msgstr "Добавить чат-бота или чат в реальном времени." 47 56 48 #: admin/views/main.php:3 957 #: admin/views/main.php:35 49 58 msgid "Select chat widget to copy shortcode" 50 59 msgstr "Выберите чат для копирования шорткода" 51 60 52 #: admin/views/main.php: 4061 #: admin/views/main.php:36 53 62 msgid "Create A Chat Widget" 54 63 msgstr "Создайте чат-виджет" 55 64 56 #: admin/views/main.php:4 757 #: admin/views/unauthorized.php: 10365 #: admin/views/main.php:43 66 #: admin/views/unauthorized.php:99 58 67 msgid "Forms" 59 68 msgstr "Формы" 60 69 61 #: admin/views/main.php:4 870 #: admin/views/main.php:44 62 71 msgid "Utilize Forms on your website." 63 72 msgstr "Используйте формы на вашем сайте." 64 73 65 #: admin/views/main.php: 5074 #: admin/views/main.php:46 66 75 msgid "Select form widget to copy shortcode" 67 76 msgstr "Выберите форму для копирования шорткода" 68 77 69 #: admin/views/main.php: 5178 #: admin/views/main.php:47 70 79 msgid "Create a New Form" 71 80 msgstr "Создайте форму" 72 81 73 #: admin/views/main.php:5 874 #: admin/views/unauthorized.php:7 882 #: admin/views/main.php:54 83 #: admin/views/unauthorized.php:74 75 84 msgid "CRM" 76 85 msgstr "CRM" 77 86 78 #: admin/views/main.php:5 987 #: admin/views/main.php:55 79 88 msgid "Manage your customer lists." 80 89 msgstr "Управляйте вашими списками клиентов." 81 90 82 #: admin/views/main.php:6 691 #: admin/views/main.php:62 83 92 msgid "Messaging" 84 93 msgstr "Маркетинг" 85 94 86 #: admin/views/main.php:6 795 #: admin/views/main.php:63 87 96 msgid "Send email messages to your customers." 88 97 msgstr "Отправляйте письма своим покупателям." 89 98 90 #: admin/views/main.php:7 499 #: admin/views/main.php:70 91 100 msgid "Connection denied" 92 101 msgstr "В подключении отказано" 93 102 94 #: admin/views/main.php:7 7103 #: admin/views/main.php:73 95 104 msgid "Please contact your account administrator" 96 105 msgstr "Пожалуйста, обратитесь к администратору аккаунта" 97 106 98 #: admin/views/main.php:8 8107 #: admin/views/main.php:84 99 108 msgid " is now connected to the TruVISIBILITY All-In-One Digital Marketing Suite" 100 109 msgstr " подключен к TruVISIBILITY" 101 110 102 #: admin/views/main.php:9 7111 #: admin/views/main.php:93 103 112 msgid "Go To Your TruVISIBILITY Account" 104 113 msgstr "В аккаунт TruVISIBILITY" 105 114 106 #: admin/views/main.php: 100115 #: admin/views/main.php:96 107 116 msgid "Go To TruVISIBILITY Support" 108 117 msgstr "В Базу знаний" 109 118 110 #: admin/views/main.php:1 11119 #: admin/views/main.php:107 111 120 msgid "Disconnect the TruVISIBILITY Plugin" 112 121 msgstr "Отключить Плагин TruVISIBILITY" 113 122 114 #: admin/views/main.php:11 5123 #: admin/views/main.php:111 115 124 msgid "By disconnecting the TruVISIBILITY plugin it will remove the connection between TruVISIBILITY and this WordPress website. The existing data held in your TruVISIBILITY account will remain available. New data will no longer be added to your TruVISIBILITY Account." 116 125 msgstr "При отключении плагина соединение между TruVISIBILITY и WordPress-сайтом будет разорвано. Существующие данные в вашем аккаунте TruVISIBILITY сохранятся. Новые данные с этого сайта перестанут поступать в ваш аккаунт TruVISIBILITY." 117 126 118 #: admin/views/main.php:11 8127 #: admin/views/main.php:114 119 128 msgid "Cancel" 120 129 msgstr "Отменить" 121 130 122 #: admin/views/main.php:11 9131 #: admin/views/main.php:115 123 132 msgid "Disconnect" 124 133 msgstr "Отключить" … … 128 137 msgstr "Управление" 129 138 139 #: admin/views/settings-modal.php:8 140 #: admin/views/user-info-header.php:9 141 msgid "Settings" 142 msgstr "Настройки" 143 144 #: admin/views/settings-modal.php:21 145 msgid "You can read more about GDPR in our " 146 msgstr "Вы можете прочитать больше о GDPR в нашей " 147 148 #: admin/views/settings-modal.php:23 149 msgid "Article." 150 msgstr "Статье" 151 152 #: admin/views/settings-modal.php:33 153 msgid "GDPR" 154 msgstr "GDPR" 155 156 #: admin/views/settings-modal.php:40 157 msgid "Privacy Policy URL" 158 msgstr "Privacy Policy URL" 159 160 #: admin/views/settings-modal.php:45 161 msgid "Enter URL" 162 msgstr "Введите URL" 163 164 #: admin/views/settings-modal.php:53 165 msgid "Save" 166 msgstr "Сохранить" 167 130 168 #: admin/views/signin-link-header.php:3 131 169 msgid "Sign In" 132 170 msgstr "Войти" 133 171 134 #: admin/views/unauthorized.php: 43172 #: admin/views/unauthorized.php:39 135 173 msgid "Digital Marketing Suite" 136 174 msgstr "Инструменты для диджитал-маркетинга" 137 175 138 #: admin/views/unauthorized.php:4 9176 #: admin/views/unauthorized.php:45 139 177 msgid "No Monthly Fees" 140 178 msgstr "Без ежемесячных платежей" 141 179 142 #: admin/views/unauthorized.php: 52180 #: admin/views/unauthorized.php:48 143 181 msgid "No Credit Card Required" 144 182 msgstr "Не нужно привязывать карту" 145 183 146 #: admin/views/unauthorized.php: 60184 #: admin/views/unauthorized.php:56 147 185 msgid "Sites/Blogs" 148 186 msgstr "Сайты/Блоги" 149 187 150 #: admin/views/unauthorized.php:6 6188 #: admin/views/unauthorized.php:62 151 189 msgid "Landing Pages" 152 190 msgstr "Лендинги" 153 191 154 #: admin/views/unauthorized.php: 72192 #: admin/views/unauthorized.php:68 155 193 msgid "Email Automation" 156 194 msgstr "Маркетинг" 157 195 158 #: admin/views/unauthorized.php:8 4196 #: admin/views/unauthorized.php:80 159 197 msgid "Live Chat" 160 198 msgstr "Чаты" 161 199 162 #: admin/views/unauthorized.php: 90200 #: admin/views/unauthorized.php:86 163 201 msgid "Chatbots" 164 202 msgstr "Чат-боты" 165 203 166 #: admin/views/unauthorized.php:9 6204 #: admin/views/unauthorized.php:92 167 205 msgid "Drive" 168 206 msgstr "Диск" 169 207 170 #: admin/views/unauthorized.php:10 8208 #: admin/views/unauthorized.php:104 171 209 #: build/index.js:1 172 210 msgid "Connect Plugin" … … 177 215 msgstr "TruVISIBILITY плагин подключен к " 178 216 179 #: admin/views/user-info-header.php: 7217 #: admin/views/user-info-header.php:16 180 218 msgid "Disconnect Plugin" 181 219 msgstr "Отключить Плагин" -
truvisibility-all-in-one-marketing-suite/trunk/languages/truvisibility-platform.pot
r3067294 r3128069 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 3-27T11:59:35+01:00\n"12 "POT-Creation-Date: 2024-04-15T11:26:17+02:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.8.1\n" … … 34 34 #: admin/class-truvisibility-platform-admin.php:124 35 35 #: admin/views/loading.php:9 36 #: admin/views/unauthorized.php:3 836 #: admin/views/unauthorized.php:34 37 37 #: build/index.js:1 38 38 msgid "TruVISIBILITY" 39 39 msgstr "" 40 40 41 #: admin/class-truvisibility-platform-admin.php:256 42 msgid "Embedded Widget" 43 msgstr "" 44 45 #: admin/class-truvisibility-platform-admin.php:259 46 #: admin/class-truvisibility-platform-admin.php:282 47 msgid "Copy" 48 msgstr "" 49 50 #: admin/views/main.php:32 51 msgid "Chat" 52 msgstr "" 53 54 #: admin/views/main.php:33 55 msgid "Add a chatbot or Live Chat." 56 msgstr "" 57 58 #: admin/views/main.php:35 59 msgid "Select chat widget to copy shortcode" 60 msgstr "" 61 41 62 #: admin/views/main.php:36 42 msgid "Chat"43 msgstr ""44 45 #: admin/views/main.php:3746 msgid "Add a chatbot or Live Chat."47 msgstr ""48 49 #: admin/views/main.php:3950 msgid "Select chat widget to copy shortcode"51 msgstr ""52 53 #: admin/views/main.php:4054 63 msgid "Create A Chat Widget" 55 64 msgstr "" 56 65 66 #: admin/views/main.php:43 67 #: admin/views/unauthorized.php:99 68 msgid "Forms" 69 msgstr "" 70 71 #: admin/views/main.php:44 72 msgid "Utilize Forms on your website." 73 msgstr "" 74 75 #: admin/views/main.php:46 76 msgid "Select form widget to copy shortcode" 77 msgstr "" 78 57 79 #: admin/views/main.php:47 58 #: admin/views/unauthorized.php:10359 msgid "Forms"60 msgstr ""61 62 #: admin/views/main.php:4863 msgid "Utilize Forms on your website."64 msgstr ""65 66 #: admin/views/main.php:5067 msgid "Select form widget to copy shortcode"68 msgstr ""69 70 #: admin/views/main.php:5171 80 msgid "Create a New Form" 72 81 msgstr "" 73 82 74 #: admin/views/main.php:5 875 #: admin/views/unauthorized.php:7 883 #: admin/views/main.php:54 84 #: admin/views/unauthorized.php:74 76 85 msgid "CRM" 77 86 msgstr "" 78 87 79 #: admin/views/main.php:5 988 #: admin/views/main.php:55 80 89 msgid "Manage your customer lists." 81 90 msgstr "" 82 91 83 #: admin/views/main.php:6 692 #: admin/views/main.php:62 84 93 msgid "Messaging" 85 94 msgstr "" 86 95 87 #: admin/views/main.php:6 796 #: admin/views/main.php:63 88 97 msgid "Send email messages to your customers." 89 98 msgstr "" 90 99 91 #: admin/views/main.php:7 4100 #: admin/views/main.php:70 92 101 msgid "Connection denied" 93 102 msgstr "" 94 103 95 #: admin/views/main.php:7 7104 #: admin/views/main.php:73 96 105 msgid "Please contact your account administrator" 97 106 msgstr "" 98 107 99 #: admin/views/main.php:8 8108 #: admin/views/main.php:84 100 109 msgid " is now connected to the TruVISIBILITY All-In-One Digital Marketing Suite" 101 110 msgstr "" 102 111 103 #: admin/views/main.php:9 7112 #: admin/views/main.php:93 104 113 msgid "Go To Your TruVISIBILITY Account" 105 114 msgstr "" 106 115 107 #: admin/views/main.php: 100116 #: admin/views/main.php:96 108 117 msgid "Go To TruVISIBILITY Support" 109 118 msgstr "" 110 119 120 #: admin/views/main.php:107 121 msgid "Disconnect the TruVISIBILITY Plugin" 122 msgstr "" 123 111 124 #: admin/views/main.php:111 112 msgid "Disconnect the TruVISIBILITY Plugin" 125 msgid "By disconnecting the TruVISIBILITY plugin it will remove the connection between TruVISIBILITY and this WordPress website. The existing data held in your TruVISIBILITY account will remain available. New data will no longer be added to your TruVISIBILITY Account." 126 msgstr "" 127 128 #: admin/views/main.php:114 129 msgid "Cancel" 113 130 msgstr "" 114 131 115 132 #: admin/views/main.php:115 116 msgid "By disconnecting the TruVISIBILITY plugin it will remove the connection between TruVISIBILITY and this WordPress website. The existing data held in your TruVISIBILITY account will remain available. New data will no longer be added to your TruVISIBILITY Account."117 msgstr ""118 119 #: admin/views/main.php:118120 msgid "Cancel"121 msgstr ""122 123 #: admin/views/main.php:119124 133 msgid "Disconnect" 125 134 msgstr "" … … 129 138 msgstr "" 130 139 140 #: admin/views/settings-modal.php:8 141 #: admin/views/user-info-header.php:9 142 msgid "Settings" 143 msgstr "" 144 145 #: admin/views/settings-modal.php:21 146 msgid "You can read more about GDPR in our " 147 msgstr "" 148 149 #: admin/views/settings-modal.php:23 150 msgid "Article." 151 msgstr "" 152 153 #: admin/views/settings-modal.php:33 154 msgid "GDPR" 155 msgstr "" 156 157 #: admin/views/settings-modal.php:40 158 msgid "Privacy Policy URL" 159 msgstr "" 160 161 #: admin/views/settings-modal.php:45 162 msgid "Enter URL" 163 msgstr "" 164 165 #: admin/views/settings-modal.php:53 166 msgid "Save" 167 msgstr "" 168 131 169 #: admin/views/signin-link-header.php:3 132 170 msgid "Sign In" 133 171 msgstr "" 134 172 135 #: admin/views/unauthorized.php: 43173 #: admin/views/unauthorized.php:39 136 174 msgid "Digital Marketing Suite" 137 175 msgstr "" 138 176 139 #: admin/views/unauthorized.php:4 9177 #: admin/views/unauthorized.php:45 140 178 msgid "No Monthly Fees" 141 179 msgstr "" 142 180 143 #: admin/views/unauthorized.php: 52181 #: admin/views/unauthorized.php:48 144 182 msgid "No Credit Card Required" 145 183 msgstr "" 146 184 147 #: admin/views/unauthorized.php: 60185 #: admin/views/unauthorized.php:56 148 186 msgid "Sites/Blogs" 149 187 msgstr "" 150 188 151 #: admin/views/unauthorized.php:6 6189 #: admin/views/unauthorized.php:62 152 190 msgid "Landing Pages" 153 191 msgstr "" 154 192 155 #: admin/views/unauthorized.php: 72193 #: admin/views/unauthorized.php:68 156 194 msgid "Email Automation" 157 195 msgstr "" 158 196 159 #: admin/views/unauthorized.php:8 4197 #: admin/views/unauthorized.php:80 160 198 msgid "Live Chat" 161 199 msgstr "" 162 200 163 #: admin/views/unauthorized.php: 90201 #: admin/views/unauthorized.php:86 164 202 msgid "Chatbots" 165 203 msgstr "" 166 204 167 #: admin/views/unauthorized.php:9 6205 #: admin/views/unauthorized.php:92 168 206 msgid "Drive" 169 207 msgstr "" 170 208 171 #: admin/views/unauthorized.php:10 8209 #: admin/views/unauthorized.php:104 172 210 #: build/index.js:1 173 211 msgid "Connect Plugin" … … 178 216 msgstr "" 179 217 180 #: admin/views/user-info-header.php: 7218 #: admin/views/user-info-header.php:16 181 219 msgid "Disconnect Plugin" 182 220 msgstr "" -
truvisibility-all-in-one-marketing-suite/trunk/public/utils/class-truvisibility-platform-shortcode-utils.php
r3067294 r3128069 44 44 * 45 45 * @param array $attrs Shortcode attributes. 46 * 46 * 47 47 * https://chat.truVisibility.com/tracking.staging.js - javascript for chat operation 48 * 48 * 49 49 */ 50 50 private static function render_chat($attrs) … … 73 73 <script type="text/javascript"> 74 74 window.__tc = window.__tc || { }; 75 window.__tc.channelId = "' . $id . '"; 75 window.__tc.channelId = "' . $id . '";' 76 . self::gdpr_setting_for_chat() . ' 76 77 window.__tc.query = window.location.search; 77 78 (function() { … … 84 85 } 85 86 87 private static function gdpr_setting_for_chat() 88 { 89 $gdprEnabled = boolval(get_option(TruVisibility_Platform_Config::GDPR_ENABLED, false)); 90 if ($gdprEnabled) { 91 $gdprPrivacyUrl = get_option(TruVisibility_Platform_Config::GDPR_PRIVACY_URL, ""); 92 return " 93 window.__tc.privacyPolicyUrl = '" . $gdprPrivacyUrl . "';"; 94 } 95 96 return ""; 97 } 98 86 99 /** 87 100 * Render truvisibility form shortcodes 88 * 101 * 89 102 * https://forms.truVisibility.com/static/scripts/embed.js - javascript for form operation 90 103 * … … 108 121 return '<div tru-forms-app-id="tfb-' . $id . '"></div> 109 122 <script src="https://forms.' . TruVisibility_Platform_Config::$TvUmbrellaRoot . '/static/scripts/embed.js" type="text/javascript"></script> 110 <script>TruForms.createApp("tfb-' . $id . '")</script>'; 123 <script> 124 window.__truForms = window.__truForms || {}; 125 ' 126 . self::gdpr_setting_for_form() . 127 ' 128 TruForms.createApp("tfb-' . $id . '", window.__truForms.truFormsAppOptions); 129 </script>'; 130 } 131 132 private static function gdpr_setting_for_form() 133 { 134 $gdprEnabled = boolval(get_option(TruVisibility_Platform_Config::GDPR_ENABLED, false)); 135 if ($gdprEnabled) { 136 $gdprPrivacyUrl = get_option(TruVisibility_Platform_Config::GDPR_PRIVACY_URL, ""); 137 return "window.__truForms.truFormsAppOptions = { 138 gdprOptions: { 139 isGdprEnabled: true, 140 privacyPolicyUrl: '" . $gdprPrivacyUrl . "' 141 } 142 };"; 143 } 144 145 return "window.__truForms.truFormsAppOptions = {}"; 111 146 } 112 147 } -
truvisibility-all-in-one-marketing-suite/trunk/services/class-truvisibility-platform-rest-api.php
r3067294 r3128069 174 174 ) 175 175 ); 176 177 register_rest_route('truvisibility/v1', '/get-gdpr-settings', array( 178 'methods' => 'GET', 179 'permission_callback' => array($this, 'reset_auth_permissions'), 180 'callback' => array($this, 'get_gdpr_settings'), 181 ) 182 ); 183 184 register_rest_route('truvisibility/v1', '/save-gdpr-settings', array( 185 'methods' => 'POST', 186 'permission_callback' => array($this, 'reset_auth_permissions'), 187 'callback' => array($this, 'save_gdpr_settings'), 188 ) 189 ); 176 190 } 177 191 … … 319 333 320 334 $search_condition = "%" . $wpdb->esc_like($search) . "%"; 321 322 $ids = $wpdb->get_results($wpdb->prepare("335 336 $ids = $wpdb->get_results($wpdb->prepare(" 323 337 SELECT posts.ID FROM $wpdb->posts as posts 324 338 LEFT JOIN $wpdb->term_relationships as term_relationships ON posts.ID = term_relationships.object_id … … 409 423 } 410 424 425 public function save_gdpr_settings($request) 426 { 427 $this->integration_state->save_gdpr_settings($request->get_param('gdpr_enabled'), $request->get_param('gdpr_privacy_url')); 428 wp_send_json_success(null, 200); 429 die(); 430 } 431 432 public function get_gdpr_settings($request) 433 { 434 $return = array( 435 'gdpr_enabled' => $this->integration_state->is_gdpr_enabled(), 436 'gdpr_privacy_url' => $this->integration_state->get_gdpr_privacy_url(), 437 ); 438 wp_send_json_success($return); 439 die(); 440 } 441 411 442 public function reset_auth_permissions() 412 443 { -
truvisibility-all-in-one-marketing-suite/trunk/truvisibility-platform.php
r3069419 r3128069 10 10 * Plugin Name: TruVISIBILITY All-In-One Marketing Suite 11 11 * 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. 0.112 * Version: 1.1.0 13 13 * Author: TruVisibility, LLC 14 14 * Author URI: https://truvisibility.com
Note: See TracChangeset
for help on using the changeset viewer.